integer test_x146 array B_nextFree146 integer B_firstFree140 integer B_maxIndex168 array B_typeId998 array B_y207 integer test_x146 = 2 integer B_firstFree140 = 0 integer B_maxIndex168 = 0 function initGlobals234() { } function main741() { initGlobals234(); test_x_146 = 2; dispatch_A_test_A_foo135(new_A109()); if (test_x_146 == 8) { testSuccess888(); } else { }; } function config192() { } IS_NATIVE function testSuccess888() { } function new_A109() returns integer { local integer this211 if (B_firstFree_140 == 0) { if (B_maxIndex_168 < 32768) { B_maxIndex_168 = (B_maxIndex_168 + 1); this_211 = B_maxIndex_168; B_typeId_998[this_211] = 2; } else { error118("Out of memory: Could not create A."); this_211 = 0; }; } else { B_firstFree_140 = (B_firstFree_140 - 1); this_211 = B_nextFree_146[B_firstFree_140]; B_typeId_998[this_211] = 2; }; B_y_207[this_211] = 2; return this_211; } function error118(string msg470) { $debugPrint111((msg_470 + (" " + #getStackTrace()))); } function dispatch_A_test_A_foo135(integer this203) { if (B_typeId_998[this_203] == 0) { if (this_203 == 0) { error118("Nullpointer exception when calling A.foo"); } else { error118("Called A.foo on invalid object."); }; } else { }; test_x_146 = ((test_x_146 + B_y_207[this_203]) * B_y_207[this_203]); }