array A_nextFree125 integer A_firstFree169 integer A_maxIndex783 array A_i397 integer A_firstFree169 = 0 integer A_maxIndex783 = 0 function initGlobals182() { A_firstFree_169 = 0; A_maxIndex_783 = 0; } function main815() { initGlobals182(); init_test114(); } function config182() { } function init_test114() { local integer a1176 local integer a2180 local integer result712 a1_176 = new_A360(); a2_180 = new_A360(); result_712 = A_op_plus212(a1_176, a2_180); if (result_712 == 4) { testSuccess189(); } else { }; } IS_NATIVE function testSuccess189() { } function A_op_plus212(integer this201, integer a904) returns integer { return (A_i_397[this_201] + A_i_397[a_904]); } function A_init166(integer this545) { A_i_397[this_545] = 2; } function new_A360() returns integer { local integer this164 this_164 = alloc_A208(); construct_A208(this_164); return this_164; } function construct_A208(integer this193) { A_init166(this_193); } function alloc_A208() returns integer { local integer this138 if (A_firstFree_169 == 0) { if (A_maxIndex_783 < 32768) { A_maxIndex_783 = (A_maxIndex_783 + 1); this_138 = A_maxIndex_783; } else { error112("Out of memory: Could not create A."); this_138 = 0; }; } else { A_firstFree_169 = (A_firstFree_169 - 1); this_138 = A_nextFree_125[A_firstFree_169]; }; return this_138; } function error112(string msg301) { $debugPrint346((msg_301 + (" " + #getStackTrace()))); }