array A_nextFree175 integer A_firstFree895 integer A_maxIndex120 array A_foo_0140 array A_foo_1814 array A_foo_2187 array A_foo_3184 array A_foo_4186 integer A_firstFree895 = 0 integer A_maxIndex120 = 0 function initGlobals379() { } function main744() { local integer a197 initGlobals379(); a_197 = new_A177(); A_foo_set747(a_197, 3, 6); if (A_foo_get803(a_197, 3) == 6) { testSuccess181(); } else { }; } function config462() { } IS_NATIVE function testSuccess181() { } function new_A177() returns integer { local integer this108 local integer this126 if (A_firstFree_895 == 0) { if (A_maxIndex_120 < 32768) { A_maxIndex_120 = (A_maxIndex_120 + 1); this_126 = A_maxIndex_120; } else { error174("Out of memory: Could not create A."); this_126 = 0; }; } else { A_firstFree_895 = (A_firstFree_895 - 1); this_126 = A_nextFree_175[A_firstFree_895]; }; this_108 = this_126; return this_108; } function error174(string msg140) { $debugPrint700((msg_140 + (" " + #getStackTrace()))); } function A_foo_set747(integer instanceId778, integer arrayIndex117, integer value165) { if ((arrayIndex_117 < 0) or (arrayIndex_117 >= 5)) { error174("Index out of Bounds"); } else { if (arrayIndex_117 <= 2) { if (arrayIndex_117 <= 1) { if (arrayIndex_117 <= 0) { A_foo_0_140[instanceId_778] = value_165; } else { A_foo_1_814[instanceId_778] = value_165; }; } else { A_foo_2_187[instanceId_778] = value_165; }; } else { if (arrayIndex_117 <= 3) { A_foo_3_184[instanceId_778] = value_165; } else { A_foo_4_186[instanceId_778] = value_165; }; }; }; } function A_foo_get803(integer index1918, integer index2290) returns integer { local integer returnVal392 if ((index2_290 < 0) or (index2_290 >= 5)) { error174("Index out of Bounds"); } else { if (index2_290 <= 2) { if (index2_290 <= 1) { if (index2_290 <= 0) { returnVal_392 = A_foo_0_140[index1_918]; } else { returnVal_392 = A_foo_1_814[index1_918]; }; } else { returnVal_392 = A_foo_2_187[index1_918]; }; } else { if (index2_290 <= 3) { returnVal_392 = A_foo_3_184[index1_918]; } else { returnVal_392 = A_foo_4_186[index1_918]; }; }; }; return returnVal_392; }