array A_nextFree215 integer A_firstFree106 integer A_maxIndex562 array A_ints_0755 array A_ints_1877 array A_ints_2463 array A_ints_3393 integer A_firstFree106 = 0 integer A_maxIndex562 = 0 function initGlobals104() { } function main249() { initGlobals104(); init_test158(); } function config326() { } function init_test158() { local integer a178 a_178 = new_A178(); A_ints_set712(a_178, 0, 1234); if (A_ints_get121(a_178, 0) == 1234) { testSuccess294(); } else { testFail166("wrong value"); }; } IS_NATIVE function testSuccess294() { } IS_NATIVE function testFail166(string msg132) { } function A_init654(integer this210) { } function new_A178() returns integer { local integer this117 this_117 = alloc_A631(); construct_A157(this_117); return this_117; } function construct_A157(integer this549) { A_init654(this_549); } function alloc_A631() returns integer { local integer this819 if (A_firstFree_106 == 0) { if (A_maxIndex_562 < 32768) { A_maxIndex_562 = (A_maxIndex_562 + 1); this_819 = A_maxIndex_562; } else { error530("Out of memory: Could not create A."); this_819 = 0; }; } else { A_firstFree_106 = (A_firstFree_106 - 1); this_819 = A_nextFree_215[A_firstFree_106]; }; return this_819; } function error530(string msg241) { $debugPrint333((msg_241 + (" " + #getStackTrace()))); } function A_ints_set712(integer instanceId466, integer arrayIndex925, integer value384) { if ((arrayIndex_925 < 0) or (arrayIndex_925 >= 4)) { error530("Index out of Bounds"); } else { if (arrayIndex_925 <= 1) { if (arrayIndex_925 <= 0) { A_ints_0_755[instanceId_466] = value_384; } else { A_ints_1_877[instanceId_466] = value_384; }; } else { if (arrayIndex_925 <= 2) { A_ints_2_463[instanceId_466] = value_384; } else { A_ints_3_393[instanceId_466] = value_384; }; }; }; } function A_ints_get121(integer index1188, integer index2167) returns integer { local integer returnVal185 if ((index2_167 < 0) or (index2_167 >= 4)) { error530("Index out of Bounds"); } else { if (index2_167 <= 1) { if (index2_167 <= 0) { returnVal_185 = A_ints_0_755[index1_188]; } else { returnVal_185 = A_ints_1_877[index1_188]; }; } else { if (index2_167 <= 2) { returnVal_185 = A_ints_2_463[index1_188]; } else { returnVal_185 = A_ints_3_393[index1_188]; }; }; }; return returnVal_185; }