integer test_x123 array B_nextFree130 integer B_firstFree104 integer B_maxIndex175 array B_typeId162 array B_y177 integer test_x123 = 2 integer B_firstFree104 = 0 integer B_maxIndex175 = 0 function initGlobals167() { } function main111() { local integer a776 initGlobals167(); test_x_123 = 2; a_776 = new_A197(); dispatch_A_test_A_foo112(a_776); if (test_x_123 == 8) { testSuccess110(); } else { }; } function config372() { } IS_NATIVE function testSuccess110() { } function new_A197() returns integer { local integer this760 local integer this939 local integer this187 local integer this801 local integer this448 if (B_firstFree_104 == 0) { if (B_maxIndex_175 < 32768) { B_maxIndex_175 = (B_maxIndex_175 + 1); this_939 = B_maxIndex_175; B_typeId_162[this_939] = 2; } else { error166("Out of memory: Could not create A."); this_939 = 0; }; } else { B_firstFree_104 = (B_firstFree_104 - 1); this_939 = B_nextFree_130[B_firstFree_104]; B_typeId_162[this_939] = 2; }; this_760 = this_939; this_187 = this_760; this_801 = this_187; this_448 = this_801; B_y_177[this_448] = 2; return this_760; } function error166(string msg588) { $debugPrint136((msg_588 + (" " + #getStackTrace()))); } function dispatch_A_test_A_foo112(integer this141) { local integer this513 local integer this117 if (B_typeId_162[this_141] == 0) { if (this_141 == 0) { error166("Nullpointer exception when calling A.foo"); } else { error166("Called A.foo on invalid object."); }; } else { }; this_513 = this_141; test_x_123 = (test_x_123 + B_y_177[this_513]); this_117 = this_513; test_x_123 = (test_x_123 * B_y_177[this_117]); }