array A_nextFree129 integer A_firstFree417 integer A_maxIndex168 array A_ints_0739 array A_ints_1162 array A_ints_2198 array A_ints_3120 integer A_firstFree417 = 0 integer A_maxIndex168 = 0 function initGlobals124() { } function main590() { initGlobals124(); init_test167(); } function config230() { } function init_test167() { local integer a534 a_534 = new_A169(); A_ints_set819(a_534, 0, 1234); if (A_ints_get668(a_534, 0) == 1234) { testSuccess152(); } else { testFail145("wrong value"); }; } IS_NATIVE function testSuccess152() { } IS_NATIVE function testFail145(string msg208) { } function new_A169() returns integer { local integer this139 local integer this206 if (A_firstFree_417 == 0) { if (A_maxIndex_168 < 32768) { A_maxIndex_168 = (A_maxIndex_168 + 1); this_206 = A_maxIndex_168; } else { error891("Out of memory: Could not create A."); this_206 = 0; }; } else { A_firstFree_417 = (A_firstFree_417 - 1); this_206 = A_nextFree_129[A_firstFree_417]; }; this_139 = this_206; return this_139; } function error891(string msg669) { $debugPrint302((msg_669 + (" " + #getStackTrace()))); } function A_ints_set819(integer instanceId202, integer arrayIndex107, integer value704) { if ((arrayIndex_107 < 0) or (arrayIndex_107 >= 4)) { error891("Index out of Bounds"); } else { if (arrayIndex_107 <= 1) { if (arrayIndex_107 <= 0) { A_ints_0_739[instanceId_202] = value_704; } else { A_ints_1_162[instanceId_202] = value_704; }; } else { if (arrayIndex_107 <= 2) { A_ints_2_198[instanceId_202] = value_704; } else { A_ints_3_120[instanceId_202] = value_704; }; }; }; } function A_ints_get668(integer index1182, integer index2180) returns integer { local integer returnVal464 if ((index2_180 < 0) or (index2_180 >= 4)) { error891("Index out of Bounds"); } else { if (index2_180 <= 1) { if (index2_180 <= 0) { returnVal_464 = A_ints_0_739[index1_182]; } else { returnVal_464 = A_ints_1_162[index1_182]; }; } else { if (index2_180 <= 2) { returnVal_464 = A_ints_2_198[index1_182]; } else { returnVal_464 = A_ints_3_120[index1_182]; }; }; }; return returnVal_464; }