array A_nextFree452 integer A_firstFree163 integer A_maxIndex164 array A_foo_0477 array A_foo_1177 array A_foo_2211 array A_foo_3148 array A_foo_4142 integer A_firstFree163 = 0 integer A_maxIndex164 = 0 function initGlobals110() { } function main171() { initGlobals110(); init_test555(); } function config145() { } function init_test555() { local integer a608 a_608 = new_A207(); A_foo_set135(a_608, 3, 6); if (A_foo_get755(a_608, 3) == 6) { testSuccess106(); } else { }; } IS_NATIVE function testSuccess106() { } function A_init987(integer this824) { } function new_A207() returns integer { local integer this853 this_853 = alloc_A467(); construct_A370(this_853); return this_853; } function construct_A370(integer this142) { A_init987(this_142); } function alloc_A467() returns integer { local integer this111 if (A_firstFree_163 == 0) { if (A_maxIndex_164 < 32768) { A_maxIndex_164 = (A_maxIndex_164 + 1); this_111 = A_maxIndex_164; } else { error210("Out of memory: Could not create A."); this_111 = 0; }; } else { A_firstFree_163 = (A_firstFree_163 - 1); this_111 = A_nextFree_452[A_firstFree_163]; }; return this_111; } function error210(string msg748) { $debugPrint373((msg_748 + (" " + #getStackTrace()))); } function A_foo_set135(integer instanceId673, integer arrayIndex503, integer value328) { if ((arrayIndex_503 < 0) or (arrayIndex_503 >= 5)) { error210("Index out of Bounds"); } else { if (arrayIndex_503 <= 2) { if (arrayIndex_503 <= 1) { if (arrayIndex_503 <= 0) { A_foo_0_477[instanceId_673] = value_328; } else { A_foo_1_177[instanceId_673] = value_328; }; } else { A_foo_2_211[instanceId_673] = value_328; }; } else { if (arrayIndex_503 <= 3) { A_foo_3_148[instanceId_673] = value_328; } else { A_foo_4_142[instanceId_673] = value_328; }; }; }; } function A_foo_get755(integer index1118, integer index2168) returns integer { local integer returnVal990 if ((index2_168 < 0) or (index2_168 >= 5)) { error210("Index out of Bounds"); } else { if (index2_168 <= 2) { if (index2_168 <= 1) { if (index2_168 <= 0) { returnVal_990 = A_foo_0_477[index1_118]; } else { returnVal_990 = A_foo_1_177[index1_118]; }; } else { returnVal_990 = A_foo_2_211[index1_118]; }; } else { if (index2_168 <= 3) { returnVal_990 = A_foo_3_148[index1_118]; } else { returnVal_990 = A_foo_4_142[index1_118]; }; }; }; return returnVal_990; }