array A_nextFree187 integer A_firstFree179 integer A_maxIndex212 array A_ints_0134 array A_ints_1164 array A_ints_2476 array A_ints_3888 integer A_firstFree179 = 0 integer A_maxIndex212 = 0 function initGlobals799() { } function main160() { initGlobals799(); init_test147(); } function config428() { } function init_test147() { local integer a211 a_211 = new_A212(); A_ints_set203(a_211, 0, 1234); if (A_ints_get211(a_211, 0) == 1234) { testSuccess154(); } else { testFail212("wrong value"); }; } IS_NATIVE function testSuccess154() { } IS_NATIVE function testFail212(string msg189) { } function A_init708(integer this171) { } function new_A212() returns integer { local integer this818 this_818 = alloc_A158(); construct_A186(this_818); return this_818; } function construct_A186(integer this160) { A_init708(this_160); } function alloc_A158() returns integer { local integer this127 if (A_firstFree_179 == 0) { if (A_maxIndex_212 < 32768) { A_maxIndex_212 = (A_maxIndex_212 + 1); this_127 = A_maxIndex_212; } else { error347("Out of memory: Could not create A."); this_127 = 0; }; } else { A_firstFree_179 = (A_firstFree_179 - 1); this_127 = A_nextFree_187[A_firstFree_179]; }; return this_127; } function error347(string msg163) { $debugPrint100((msg_163 + (" " + #getStackTrace()))); } function A_ints_set203(integer instanceId194, integer arrayIndex584, integer value906) { if ((arrayIndex_584 < 0) or (arrayIndex_584 >= 4)) { error347("Index out of Bounds"); } else { if (arrayIndex_584 <= 1) { if (arrayIndex_584 <= 0) { A_ints_0_134[instanceId_194] = value_906; } else { A_ints_1_164[instanceId_194] = value_906; }; } else { if (arrayIndex_584 <= 2) { A_ints_2_476[instanceId_194] = value_906; } else { A_ints_3_888[instanceId_194] = value_906; }; }; }; } function A_ints_get211(integer index1125, integer index2155) returns integer { local integer returnVal841 if ((index2_155 < 0) or (index2_155 >= 4)) { error347("Index out of Bounds"); } else { if (index2_155 <= 1) { if (index2_155 <= 0) { returnVal_841 = A_ints_0_134[index1_125]; } else { returnVal_841 = A_ints_1_164[index1_125]; }; } else { if (index2_155 <= 2) { returnVal_841 = A_ints_2_476[index1_125]; } else { returnVal_841 = A_ints_3_888[index1_125]; }; }; }; return returnVal_841; }