array A_nextFree601 integer A_firstFree170 integer A_maxIndex156 array A_i125 integer A_firstFree170 = 0 integer A_maxIndex156 = 0 function initGlobals190() { } function main197() { initGlobals190(); init_test710(); } function config120() { } function init_test710() { local integer a1151 local integer a2164 a1_151 = new_A357(); a2_164 = new_A357(); if ((A_i_125[a1_151] + A_i_125[a2_164]) == 4) { testSuccess157(); } else { }; } IS_NATIVE function testSuccess157() { } function new_A357() returns integer { local integer this830 if (A_firstFree_170 == 0) { if (A_maxIndex_156 < 32768) { A_maxIndex_156 = (A_maxIndex_156 + 1); this_830 = A_maxIndex_156; } else { error200("Out of memory: Could not create A."); this_830 = 0; }; } else { A_firstFree_170 = (A_firstFree_170 - 1); this_830 = A_nextFree_601[A_firstFree_170]; }; A_i_125[this_830] = 2; return this_830; } function error200(string msg162) { $debugPrint434((msg_162 + (" " + #getStackTrace()))); }