array A_nextFree382 integer A_firstFree122 integer A_maxIndex161 array A_i139 integer A_firstFree122 = 0 integer A_maxIndex161 = 0 function initGlobals202() { A_firstFree_122 = 0; A_maxIndex_161 = 0; } function main141() { initGlobals202(); init_test185(); } function config302() { } function init_test185() { local integer a1301 local integer a2160 local integer result123 a1_301 = new_A169(); a2_160 = new_A169(); result_123 = A_op_plus757(a1_301, a2_160); if (result_123 == 4) { testSuccess144(); } else { }; } IS_NATIVE function testSuccess144() { } function A_op_plus757(integer this751, integer a125) returns integer { return (A_i_139[this_751] + A_i_139[a_125]); } function A_init114(integer this115) { A_i_139[this_115] = 2; } function new_A169() returns integer { local integer this447 this_447 = alloc_A116(); construct_A456(this_447); return this_447; } function construct_A456(integer this109) { A_init114(this_109); } function alloc_A116() returns integer { local integer this202 if (A_firstFree_122 == 0) { if (A_maxIndex_161 < 32768) { A_maxIndex_161 = (A_maxIndex_161 + 1); this_202 = A_maxIndex_161; } else { error207("Out of memory: Could not create A."); this_202 = 0; }; } else { A_firstFree_122 = (A_firstFree_122 - 1); this_202 = A_nextFree_382[A_firstFree_122]; }; return this_202; } function error207(string msg187) { $debugPrint199((msg_187 + (" " + #getStackTrace()))); }