array A_nextFree192 integer A_firstFree415 integer A_maxIndex201 array A_typeId199 array A_i889 integer A_firstFree415 = 0 integer A_maxIndex201 = 0 function initGlobals299() { } function main894() { initGlobals299(); init_test929(); } function config158() { } function init_test929() { local integer receiver209 receiver_209 = new_A290(); dispatch_A_test_A_plus313(receiver_209, 3); dispatch_A_test_A_minus156(receiver_209, 4); dispatch_A_test_A_plus313(receiver_209, 5); if (A_i_889[receiver_209] == 4) { testSuccess151(); } else { }; } IS_NATIVE function testSuccess151() { } function A_plus216(integer this438, integer x908) { A_i_889[this_438] = (A_i_889[this_438] + x_908); } function A_minus191(integer this593, integer x206) { A_i_889[this_593] = (A_i_889[this_593] - x_206); } function A_init210(integer this108) { } function new_A290() returns integer { local integer this205 this_205 = alloc_A137(); construct_A154(this_205); return this_205; } function construct_A154(integer this178) { A_init210(this_178); } function alloc_A137() returns integer { local integer this121 if (A_firstFree_415 == 0) { if (A_maxIndex_201 < 32768) { A_maxIndex_201 = (A_maxIndex_201 + 1); this_121 = A_maxIndex_201; A_typeId_199[this_121] = 1; } else { error111("Out of memory: Could not create A."); this_121 = 0; }; } else { A_firstFree_415 = (A_firstFree_415 - 1); this_121 = A_nextFree_192[A_firstFree_415]; A_typeId_199[this_121] = 1; }; return this_121; } function error111(string msg547) { $debugPrint118((msg_547 + (" " + #getStackTrace()))); } function dispatch_A_test_A_plus313(integer this362, integer x686) { if (A_typeId_199[this_362] == 0) { if (this_362 == 0) { error111("Nullpointer exception when calling A.plus"); } else { error111("Called A.plus on invalid object."); }; } else { }; A_plus216(this_362, x_686); } function dispatch_A_test_A_minus156(integer this911, integer x746) { if (A_typeId_199[this_911] == 0) { if (this_911 == 0) { error111("Nullpointer exception when calling A.minus"); } else { error111("Called A.minus on invalid object."); }; } else { }; A_minus191(this_911, x_746); }