array A_nextFree178 integer A_firstFree366 integer A_maxIndex121 array A_s_0170 array A_s_1207 array A_s_2108 array A_s_3438 integer A_firstFree366 = 0 integer A_maxIndex121 = 0 function initGlobals125() { } function main210() { initGlobals125(); init_test169(); } function config319() { } function init_test169() { local integer a188 a_188 = new_A158(); A_s_set492(a_188, 0, "a"); A_s_set492(a_188, 1, "b"); A_s_set492(a_188, 2, "c"); A_s_set492(a_188, 3, "d"); if ((((A_s_get194(a_188, 0) == "a") and (A_s_get194(a_188, 1) == "b")) and (A_s_get194(a_188, 2) == "c")) and (A_s_get194(a_188, 3) == "d")) { testSuccess199(); } else { testFail159("wrong value"); }; } IS_NATIVE function testSuccess199() { } IS_NATIVE function testFail159(string msg297) { } function new_A158() returns integer { local integer this921 local integer this617 if (A_firstFree_366 == 0) { if (A_maxIndex_121 < 32768) { A_maxIndex_121 = (A_maxIndex_121 + 1); this_617 = A_maxIndex_121; } else { error203("Out of memory: Could not create A."); this_617 = 0; }; } else { A_firstFree_366 = (A_firstFree_366 - 1); this_617 = A_nextFree_178[A_firstFree_366]; }; this_921 = this_617; return this_921; } function error203(string msg326) { $debugPrint904((msg_326 + (" " + #getStackTrace()))); } function A_s_set492(integer instanceId468, integer arrayIndex112, string value120) { if ((arrayIndex_112 < 0) or (arrayIndex_112 >= 4)) { error203("Index out of Bounds"); } else { if (arrayIndex_112 <= 1) { if (arrayIndex_112 <= 0) { A_s_0_170[instanceId_468] = value_120; } else { A_s_1_207[instanceId_468] = value_120; }; } else { if (arrayIndex_112 <= 2) { A_s_2_108[instanceId_468] = value_120; } else { A_s_3_438[instanceId_468] = value_120; }; }; }; } function A_s_get194(integer index1188, integer index2398) returns string { local string returnVal150 if ((index2_398 < 0) or (index2_398 >= 4)) { error203("Index out of Bounds"); } else { if (index2_398 <= 1) { if (index2_398 <= 0) { returnVal_150 = A_s_0_170[index1_188]; } else { returnVal_150 = A_s_1_207[index1_188]; }; } else { if (index2_398 <= 2) { returnVal_150 = A_s_2_108[index1_188]; } else { returnVal_150 = A_s_3_438[index1_188]; }; }; }; return returnVal_150; }