array A_nextFree344 integer A_firstFree500 integer A_maxIndex143 array A_foo_0207 array A_foo_1128 array A_foo_2822 array A_foo_3113 array A_foo_4963 integer A_firstFree500 = 0 integer A_maxIndex143 = 0 function initGlobals199() { A_firstFree_500 = 0; A_maxIndex_143 = 0; } function main821() { initGlobals199(); init_test428(); } function config489() { } function init_test428() { local integer a151 a_151 = new_A174(); A_foo_set177(a_151, 3, 6); if (A_foo_get102(a_151, 3) == 6) { testSuccess195(); } else { }; } IS_NATIVE function testSuccess195() { } function A_init196(integer this170) { } function new_A174() returns integer { local integer this135 this_135 = alloc_A185(); construct_A159(this_135); return this_135; } function construct_A159(integer this307) { A_init196(this_307); } function alloc_A185() returns integer { local integer this870 if (A_firstFree_500 == 0) { if (A_maxIndex_143 < 32768) { A_maxIndex_143 = (A_maxIndex_143 + 1); this_870 = A_maxIndex_143; } else { error415("Out of memory: Could not create A."); this_870 = 0; }; } else { A_firstFree_500 = (A_firstFree_500 - 1); this_870 = A_nextFree_344[A_firstFree_500]; }; return this_870; } function error415(string msg212) { $debugPrint745((msg_212 + (" " + #getStackTrace()))); } function A_foo_set177(integer instanceId827, integer arrayIndex191, integer value179) { if ((arrayIndex_191 < 0) or (arrayIndex_191 >= 5)) { error415("Index out of Bounds"); } else { if (arrayIndex_191 <= 2) { if (arrayIndex_191 <= 1) { if (arrayIndex_191 <= 0) { A_foo_0_207[instanceId_827] = value_179; } else { A_foo_1_128[instanceId_827] = value_179; }; } else { A_foo_2_822[instanceId_827] = value_179; }; } else { if (arrayIndex_191 <= 3) { A_foo_3_113[instanceId_827] = value_179; } else { A_foo_4_963[instanceId_827] = value_179; }; }; }; } function A_foo_get102(integer index1133, integer index2112) returns integer { local integer returnVal147 if ((index2_112 < 0) or (index2_112 >= 5)) { error415("Index out of Bounds"); } else { if (index2_112 <= 2) { if (index2_112 <= 1) { if (index2_112 <= 0) { returnVal_147 = A_foo_0_207[index1_133]; } else { returnVal_147 = A_foo_1_128[index1_133]; }; } else { returnVal_147 = A_foo_2_822[index1_133]; }; } else { if (index2_112 <= 3) { returnVal_147 = A_foo_3_113[index1_133]; } else { returnVal_147 = A_foo_4_963[index1_133]; }; }; }; return returnVal_147; }