array A_nextFree203 integer A_firstFree120 integer A_maxIndex152 array A_s_0188 array A_s_1398 array A_s_2150 array A_s_3710 integer A_firstFree120 = 0 integer A_maxIndex152 = 0 function initGlobals297() { } function main979() { initGlobals297(); init_test732(); } function config121() { } function init_test732() { local integer a178 a_178 = new_A597(); A_s_set641(a_178, 0, "a"); A_s_set641(a_178, 1, "b"); A_s_set641(a_178, 2, "c"); A_s_set641(a_178, 3, "d"); if ((((A_s_get909(a_178, 0) == "a") and (A_s_get909(a_178, 1) == "b")) and (A_s_get909(a_178, 2) == "c")) and (A_s_get909(a_178, 3) == "d")) { testSuccess137(); } else { testFail622("wrong value"); }; } IS_NATIVE function testSuccess137() { } IS_NATIVE function testFail622(string msg157) { } function A_init246(integer this816) { } function new_A597() returns integer { local integer this142 this_142 = alloc_A119(); construct_A921(this_142); return this_142; } function construct_A921(integer this879) { A_init246(this_879); } function alloc_A119() returns integer { local integer this108 if (A_firstFree_120 == 0) { if (A_maxIndex_152 < 32768) { A_maxIndex_152 = (A_maxIndex_152 + 1); this_108 = A_maxIndex_152; } else { error438("Out of memory: Could not create A."); this_108 = 0; }; } else { A_firstFree_120 = (A_firstFree_120 - 1); this_108 = A_nextFree_203[A_firstFree_120]; }; return this_108; } function error438(string msg492) { $debugPrint194((msg_492 + (" " + #getStackTrace()))); } function A_s_set641(integer instanceId101, integer arrayIndex822, string value293) { if ((arrayIndex_822 < 0) or (arrayIndex_822 >= 4)) { error438("Index out of Bounds"); } else { if (arrayIndex_822 <= 1) { if (arrayIndex_822 <= 0) { A_s_0_188[instanceId_101] = value_293; } else { A_s_1_398[instanceId_101] = value_293; }; } else { if (arrayIndex_822 <= 2) { A_s_2_150[instanceId_101] = value_293; } else { A_s_3_710[instanceId_101] = value_293; }; }; }; } function A_s_get909(integer index1776, integer index2154) returns string { local string returnVal180 if ((index2_154 < 0) or (index2_154 >= 4)) { error438("Index out of Bounds"); } else { if (index2_154 <= 1) { if (index2_154 <= 0) { returnVal_180 = A_s_0_188[index1_776]; } else { returnVal_180 = A_s_1_398[index1_776]; }; } else { if (index2_154 <= 2) { returnVal_180 = A_s_2_150[index1_776]; } else { returnVal_180 = A_s_3_710[index1_776]; }; }; }; return returnVal_180; }