array A_nextFree187 integer A_firstFree181 integer A_maxIndex214 array A_i171 integer A_firstFree181 = 0 integer A_maxIndex214 = 0 function initGlobals195() { A_firstFree_181 = 0; A_maxIndex_214 = 0; } function main103() { initGlobals195(); init_test221(); } function config169() { } function init_test221() { local integer a1910 local integer a2198 local integer result200 a1_910 = new_A174(); a2_198 = new_A174(); result_200 = A_op_plus138(a1_910, a2_198); if (result_200 == 4) { testSuccess136(); } else { }; } IS_NATIVE function testSuccess136() { } function A_op_plus138(integer this369, integer a177) returns integer { return (A_i_171[this_369] + A_i_171[a_177]); } function A_init101(integer this870) { A_i_171[this_870] = 2; } function new_A174() returns integer { local integer this921 this_921 = alloc_A171(); construct_A374(this_921); return this_921; } function construct_A374(integer this131) { A_init101(this_131); } function alloc_A171() returns integer { local integer this152 if (A_firstFree_181 == 0) { if (A_maxIndex_214 < 32768) { A_maxIndex_214 = (A_maxIndex_214 + 1); this_152 = A_maxIndex_214; } else { error171("Out of memory: Could not create A."); this_152 = 0; }; } else { A_firstFree_181 = (A_firstFree_181 - 1); this_152 = A_nextFree_187[A_firstFree_181]; }; return this_152; } function error171(string msg707) { $debugPrint942((msg_707 + (" " + #getStackTrace()))); }