array A_nextFree212 integer A_firstFree322 integer A_maxIndex146 array A_s_0755 array A_s_1183 array A_s_2110 array A_s_3178 integer A_firstFree322 = 0 integer A_maxIndex146 = 0 function initGlobals112() { A_firstFree_322 = 0; A_maxIndex_146 = 0; } function main621() { initGlobals112(); init_test174(); } function config473() { } function init_test174() { local integer a233 a_233 = new_A858(); A_s_set922(a_233, 0, "a"); A_s_set922(a_233, 1, "b"); A_s_set922(a_233, 2, "c"); A_s_set922(a_233, 3, "d"); if ((((A_s_get578(a_233, 0) == "a") and (A_s_get578(a_233, 1) == "b")) and (A_s_get578(a_233, 2) == "c")) and (A_s_get578(a_233, 3) == "d")) { testSuccess658(); } else { testFail214("wrong value"); }; } IS_NATIVE function testSuccess658() { } IS_NATIVE function testFail214(string msg212) { } function A_init150(integer this569) { } function new_A858() returns integer { local integer this134 this_134 = alloc_A343(); construct_A150(this_134); return this_134; } function construct_A150(integer this140) { A_init150(this_140); } function alloc_A343() returns integer { local integer this331 if (A_firstFree_322 == 0) { if (A_maxIndex_146 < 32768) { A_maxIndex_146 = (A_maxIndex_146 + 1); this_331 = A_maxIndex_146; } else { error854("Out of memory: Could not create A."); this_331 = 0; }; } else { A_firstFree_322 = (A_firstFree_322 - 1); this_331 = A_nextFree_212[A_firstFree_322]; }; return this_331; } function error854(string msg335) { $debugPrint981((msg_335 + (" " + #getStackTrace()))); } function A_s_set922(integer instanceId107, integer arrayIndex210, string value378) { if ((arrayIndex_210 < 0) or (arrayIndex_210 >= 4)) { error854("Index out of Bounds"); } else { if (arrayIndex_210 <= 1) { if (arrayIndex_210 <= 0) { A_s_0_755[instanceId_107] = value_378; } else { A_s_1_183[instanceId_107] = value_378; }; } else { if (arrayIndex_210 <= 2) { A_s_2_110[instanceId_107] = value_378; } else { A_s_3_178[instanceId_107] = value_378; }; }; }; } function A_s_get578(integer index1116, integer index2559) returns string { local string returnVal807 if ((index2_559 < 0) or (index2_559 >= 4)) { error854("Index out of Bounds"); } else { if (index2_559 <= 1) { if (index2_559 <= 0) { returnVal_807 = A_s_0_755[index1_116]; } else { returnVal_807 = A_s_1_183[index1_116]; }; } else { if (index2_559 <= 2) { returnVal_807 = A_s_2_110[index1_116]; } else { returnVal_807 = A_s_3_178[index1_116]; }; }; }; return returnVal_807; }