array A_nextFree481 integer A_firstFree106 integer A_maxIndex829 array A_s_0972 array A_s_1610 array A_s_2145 array A_s_3165 integer A_firstFree106 = 0 integer A_maxIndex829 = 0 function initGlobals454() { } function main170() { initGlobals454(); init_test610(); } function config130() { } function init_test610() { local integer a276 a_276 = new_A122(); A_s_set136(a_276, 0, "a"); A_s_set136(a_276, 1, "b"); A_s_set136(a_276, 2, "c"); A_s_set136(a_276, 3, "d"); if ((((A_s_get461(a_276, 0) == "a") and (A_s_get461(a_276, 1) == "b")) and (A_s_get461(a_276, 2) == "c")) and (A_s_get461(a_276, 3) == "d")) { testSuccess111(); } else { testFail126("wrong value"); }; } IS_NATIVE function testSuccess111() { } IS_NATIVE function testFail126(string msg193) { } function new_A122() returns integer { local integer this551 local integer this921 if (A_firstFree_106 == 0) { if (A_maxIndex_829 < 32768) { A_maxIndex_829 = (A_maxIndex_829 + 1); this_921 = A_maxIndex_829; } else { error123("Out of memory: Could not create A."); this_921 = 0; }; } else { A_firstFree_106 = (A_firstFree_106 - 1); this_921 = A_nextFree_481[A_firstFree_106]; }; this_551 = this_921; return this_551; } function error123(string msg244) { $debugPrint188((msg_244 + (" " + #getStackTrace()))); } function A_s_set136(integer instanceId192, integer arrayIndex122, string value780) { if ((arrayIndex_122 < 0) or (arrayIndex_122 >= 4)) { error123("Index out of Bounds"); } else { if (arrayIndex_122 <= 1) { if (arrayIndex_122 <= 0) { A_s_0_972[instanceId_192] = value_780; } else { A_s_1_610[instanceId_192] = value_780; }; } else { if (arrayIndex_122 <= 2) { A_s_2_145[instanceId_192] = value_780; } else { A_s_3_165[instanceId_192] = value_780; }; }; }; } function A_s_get461(integer index1134, integer index2803) returns string { local string returnVal508 if ((index2_803 < 0) or (index2_803 >= 4)) { error123("Index out of Bounds"); } else { if (index2_803 <= 1) { if (index2_803 <= 0) { returnVal_508 = A_s_0_972[index1_134]; } else { returnVal_508 = A_s_1_610[index1_134]; }; } else { if (index2_803 <= 2) { returnVal_508 = A_s_2_145[index1_134]; } else { returnVal_508 = A_s_3_165[index1_134]; }; }; }; return returnVal_508; }