array A_nextFree566 integer A_firstFree619 integer A_maxIndex150 array A_s_0142 array A_s_1142 array A_s_2100 array A_s_3103 integer A_firstFree619 = 0 integer A_maxIndex150 = 0 function initGlobals142() { } function main754() { initGlobals142(); init_test108(); } function config101() { } function init_test108() { local integer a264 a_264 = new_A936(); A_s_set206(a_264, 0, "a"); A_s_set206(a_264, 1, "b"); A_s_set206(a_264, 2, "c"); A_s_set206(a_264, 3, "d"); if ((((A_s_get202(a_264, 0) == "a") and (A_s_get202(a_264, 1) == "b")) and (A_s_get202(a_264, 2) == "c")) and (A_s_get202(a_264, 3) == "d")) { testSuccess152(); } else { testFail140("wrong value"); }; } IS_NATIVE function testSuccess152() { } IS_NATIVE function testFail140(string msg179) { } function new_A936() returns integer { local integer this997 if (A_firstFree_619 == 0) { if (A_maxIndex_150 < 32768) { A_maxIndex_150 = (A_maxIndex_150 + 1); this_997 = A_maxIndex_150; } else { error148("Out of memory: Could not create A."); this_997 = 0; }; } else { A_firstFree_619 = (A_firstFree_619 - 1); this_997 = A_nextFree_566[A_firstFree_619]; }; return this_997; } function error148(string msg591) { $debugPrint128((msg_591 + (" " + #getStackTrace()))); } function A_s_set206(integer instanceId635, integer arrayIndex131, string value108) { if ((arrayIndex_131 < 0) or (arrayIndex_131 >= 4)) { error148("Index out of Bounds"); } else { if (arrayIndex_131 <= 1) { if (arrayIndex_131 <= 0) { A_s_0_142[instanceId_635] = value_108; } else { A_s_1_142[instanceId_635] = value_108; }; } else { if (arrayIndex_131 <= 2) { A_s_2_100[instanceId_635] = value_108; } else { A_s_3_103[instanceId_635] = value_108; }; }; }; } function A_s_get202(integer index1208, integer index2116) returns string { local string returnVal568 if ((index2_116 < 0) or (index2_116 >= 4)) { error148("Index out of Bounds"); } else { if (index2_116 <= 1) { if (index2_116 <= 0) { returnVal_568 = A_s_0_142[index1_208]; } else { returnVal_568 = A_s_1_142[index1_208]; }; } else { if (index2_116 <= 2) { returnVal_568 = A_s_2_100[index1_208]; } else { returnVal_568 = A_s_3_103[index1_208]; }; }; }; return returnVal_568; }