integer test_x271 array B_nextFree130 integer B_firstFree210 integer B_maxIndex270 array B_typeId295 array B_y882 integer test_x271 = 2 integer B_firstFree210 = 0 integer B_maxIndex270 = 0 function initGlobals117() { } function main403() { initGlobals117(); test_x_271 = 2; dispatch_A_test_A_foo162(new_A203()); if (test_x_271 == 8) { testSuccess117(); } else { }; } function config275() { } IS_NATIVE function testSuccess117() { } function new_A203() returns integer { local integer this167 if (B_firstFree_210 == 0) { if (B_maxIndex_270 < 32768) { B_maxIndex_270 = (B_maxIndex_270 + 1); this_167 = B_maxIndex_270; B_typeId_295[this_167] = 2; } else { error807("Out of memory: Could not create A."); this_167 = 0; }; } else { B_firstFree_210 = (B_firstFree_210 - 1); this_167 = B_nextFree_130[B_firstFree_210]; B_typeId_295[this_167] = 2; }; B_y_882[this_167] = 2; return this_167; } function error807(string msg358) { $debugPrint212((msg_358 + (" " + #getStackTrace()))); } function dispatch_A_test_A_foo162(integer this194) { if (B_typeId_295[this_194] == 0) { if (this_194 == 0) { error807("Nullpointer exception when calling A.foo"); } else { error807("Called A.foo on invalid object."); }; } else { }; test_x_271 = ((test_x_271 + B_y_882[this_194]) * B_y_882[this_194]); }