integer test_x855 array B_nextFree100 integer B_firstFree136 integer B_maxIndex152 array B_typeId578 array B_y166 integer test_x855 = 2 integer B_firstFree136 = 0 integer B_maxIndex152 = 0 function initGlobals262() { } function main125() { initGlobals262(); test_x_855 = 2; dispatch_A_test_A_foo470(new_A474()); if (test_x_855 == 8) { testSuccess698(); } else { }; } function config173() { } IS_NATIVE function testSuccess698() { } function new_A474() returns integer { local integer this191 if (B_firstFree_136 == 0) { if (B_maxIndex_152 < 32768) { B_maxIndex_152 = (B_maxIndex_152 + 1); this_191 = B_maxIndex_152; B_typeId_578[this_191] = 2; } else { error166("Out of memory: Could not create A."); this_191 = 0; }; } else { B_firstFree_136 = (B_firstFree_136 - 1); this_191 = B_nextFree_100[B_firstFree_136]; B_typeId_578[this_191] = 2; }; B_y_166[this_191] = 2; return this_191; } function error166(string msg707) { $debugPrint116((msg_707 + (" " + #getStackTrace()))); } function dispatch_A_test_A_foo470(integer this527) { if (B_typeId_578[this_527] == 0) { if (this_527 == 0) { error166("Nullpointer exception when calling A.foo"); } else { error166("Called A.foo on invalid object."); }; } else { }; test_x_855 = ((test_x_855 + B_y_166[this_527]) * B_y_166[this_527]); }