integer test_x125 array B_nextFree927 integer B_firstFree349 integer B_maxIndex624 array B_typeId622 array B_y211 integer test_x125 = 2 integer B_firstFree349 = 0 integer B_maxIndex624 = 0 function initGlobals189() { } function main768() { local integer a346 initGlobals189(); test_x_125 = 2; a_346 = new_A164(); dispatch_A_test_A_foo298(a_346); if (test_x_125 == 8) { testSuccess902(); } else { }; } function config191() { } IS_NATIVE function testSuccess902() { } function new_A164() returns integer { local integer this213 local integer this157 local integer this795 local integer this808 local integer this185 if (B_firstFree_349 == 0) { if (B_maxIndex_624 < 32768) { B_maxIndex_624 = (B_maxIndex_624 + 1); this_157 = B_maxIndex_624; B_typeId_622[this_157] = 2; } else { error180("Out of memory: Could not create A."); this_157 = 0; }; } else { B_firstFree_349 = (B_firstFree_349 - 1); this_157 = B_nextFree_927[B_firstFree_349]; B_typeId_622[this_157] = 2; }; this_213 = this_157; this_795 = this_213; this_808 = this_795; this_185 = this_808; B_y_211[this_185] = 2; return this_213; } function error180(string msg186) { $debugPrint103((msg_186 + (" " + #getStackTrace()))); } function dispatch_A_test_A_foo298(integer this188) { local integer this646 local integer this490 if (B_typeId_622[this_188] == 0) { if (this_188 == 0) { error180("Nullpointer exception when calling A.foo"); } else { error180("Called A.foo on invalid object."); }; } else { }; this_646 = this_188; test_x_125 = (test_x_125 + B_y_211[this_646]); this_490 = this_646; test_x_125 = (test_x_125 * B_y_211[this_490]); }