integer test_x743 array B_nextFree181 integer B_firstFree124 integer B_maxIndex695 array B_typeId602 array B_y337 integer test_x743 = 2 integer B_firstFree124 = 0 integer B_maxIndex695 = 0 function initGlobals604() { } function main430() { initGlobals604(); test_x_743 = 2; dispatch_A_test_A_foo178(new_A184()); if (test_x_743 == 8) { testSuccess425(); } else { }; } function config154() { } IS_NATIVE function testSuccess425() { } function new_A184() returns integer { local integer this149 if (B_firstFree_124 == 0) { if (B_maxIndex_695 < 32768) { B_maxIndex_695 = (B_maxIndex_695 + 1); this_149 = B_maxIndex_695; B_typeId_602[this_149] = 2; } else { error141("Out of memory: Could not create A."); this_149 = 0; }; } else { B_firstFree_124 = (B_firstFree_124 - 1); this_149 = B_nextFree_181[B_firstFree_124]; B_typeId_602[this_149] = 2; }; B_y_337[this_149] = 2; return this_149; } function error141(string msg214) { $debugPrint174((msg_214 + (" " + #getStackTrace()))); } function dispatch_A_test_A_foo178(integer this117) { if (B_typeId_602[this_117] == 0) { if (this_117 == 0) { error141("Nullpointer exception when calling A.foo"); } else { error141("Called A.foo on invalid object."); }; } else { }; test_x_743 = ((test_x_743 + B_y_337[this_117]) * B_y_337[this_117]); }