integer test_x859 array A_nextFree187 integer A_firstFree778 integer A_maxIndex203 array A_typeId150 integer test_x859 = 2 integer A_firstFree778 = 0 integer A_maxIndex203 = 0 function initGlobals185() { } function main711() { local integer a116 initGlobals185(); test_x_859 = 2; a_116 = new_B797(); dispatch_A_test_A_foo204(a_116); if (test_x_859 == 5) { testSuccess140(); } else { }; } function config640() { } IS_NATIVE function testSuccess140() { } function new_B797() returns integer { local integer this113 local integer this176 if (A_firstFree_778 == 0) { if (A_maxIndex_203 < 32768) { A_maxIndex_203 = (A_maxIndex_203 + 1); this_176 = A_maxIndex_203; A_typeId_150[this_176] = 2; } else { error211("Out of memory: Could not create B."); this_176 = 0; }; } else { A_firstFree_778 = (A_firstFree_778 - 1); this_176 = A_nextFree_187[A_firstFree_778]; A_typeId_150[this_176] = 2; }; this_113 = this_176; return this_113; } function error211(string msg160) { $debugPrint886((msg_160 + (" " + #getStackTrace()))); } function dispatch_A_test_A_foo204(integer this135) { if (A_typeId_150[this_135] == 0) { if (this_135 == 0) { error211("Nullpointer exception when calling A.foo"); } else { error211("Called A.foo on invalid object."); }; } else { }; if (A_typeId_150[this_135] <= 2) { if (A_typeId_150[this_135] <= 1) { test_x_859 = 4; } else { test_x_859 = 5; }; } else { test_x_859 = 6; }; }