array A_nextFree157 integer A_firstFree442 integer A_maxIndex126 array A_ints_0177 array A_ints_1689 array A_ints_2484 array A_ints_3211 integer A_firstFree442 = 0 integer A_maxIndex126 = 0 function initGlobals601() { A_firstFree_442 = 0; A_maxIndex_126 = 0; } function main204() { initGlobals601(); init_test167(); } function config174() { } function init_test167() { local integer a112 a_112 = new_A147(); A_ints_set404(a_112, 0, 1234); if (A_ints_get208(a_112, 0) == 1234) { testSuccess108(); } else { testFail443("wrong value"); }; } IS_NATIVE function testSuccess108() { } IS_NATIVE function testFail443(string msg295) { } function A_init118(integer this102) { } function new_A147() returns integer { local integer this234 this_234 = alloc_A148(); construct_A834(this_234); return this_234; } function construct_A834(integer this157) { A_init118(this_157); } function alloc_A148() returns integer { local integer this133 if (A_firstFree_442 == 0) { if (A_maxIndex_126 < 32768) { A_maxIndex_126 = (A_maxIndex_126 + 1); this_133 = A_maxIndex_126; } else { error108("Out of memory: Could not create A."); this_133 = 0; }; } else { A_firstFree_442 = (A_firstFree_442 - 1); this_133 = A_nextFree_157[A_firstFree_442]; }; return this_133; } function error108(string msg141) { $debugPrint202((msg_141 + (" " + #getStackTrace()))); } function A_ints_set404(integer instanceId134, integer arrayIndex204, integer value235) { if ((arrayIndex_204 < 0) or (arrayIndex_204 >= 4)) { error108("Index out of Bounds"); } else { if (arrayIndex_204 <= 1) { if (arrayIndex_204 <= 0) { A_ints_0_177[instanceId_134] = value_235; } else { A_ints_1_689[instanceId_134] = value_235; }; } else { if (arrayIndex_204 <= 2) { A_ints_2_484[instanceId_134] = value_235; } else { A_ints_3_211[instanceId_134] = value_235; }; }; }; } function A_ints_get208(integer index1205, integer index2135) returns integer { local integer returnVal111 if ((index2_135 < 0) or (index2_135 >= 4)) { error108("Index out of Bounds"); } else { if (index2_135 <= 1) { if (index2_135 <= 0) { returnVal_111 = A_ints_0_177[index1_205]; } else { returnVal_111 = A_ints_1_689[index1_205]; }; } else { if (index2_135 <= 2) { returnVal_111 = A_ints_2_484[index1_205]; } else { returnVal_111 = A_ints_3_211[index1_205]; }; }; }; return returnVal_111; }