array A_nextFree108 integer A_firstFree125 integer A_maxIndex779 array A_a_0207 array A_a_1735 integer A_firstFree125 = 0 integer A_maxIndex779 = 0 function initGlobals628() { } function main207() { local integer a923 initGlobals628(); a_923 = new_A195(); if ((A_a_get666(a_923, 0) == 1) and (A_a_get666(a_923, 1) == 2)) { testSuccess454(); } else { }; } function config579() { } IS_NATIVE function testSuccess454() { } function new_A195() returns integer { local integer this102 local integer this208 local integer this105 local integer this117 if (A_firstFree_125 == 0) { if (A_maxIndex_779 < 32768) { A_maxIndex_779 = (A_maxIndex_779 + 1); this_208 = A_maxIndex_779; } else { error132("Out of memory: Could not create A."); this_208 = 0; }; } else { A_firstFree_125 = (A_firstFree_125 - 1); this_208 = A_nextFree_108[A_firstFree_125]; }; this_102 = this_208; this_105 = this_102; this_117 = this_105; A_a_set159(this_117, 0, 1); A_a_set159(this_117, 1, 2); return this_102; } function error132(string msg122) { $debugPrint132((msg_122 + (" " + #getStackTrace()))); } function A_a_set159(integer instanceId114, integer arrayIndex208, integer value175) { if ((arrayIndex_208 < 0) or (arrayIndex_208 >= 2)) { error132("Index out of Bounds"); } else { if (arrayIndex_208 <= 0) { A_a_0_207[instanceId_114] = value_175; } else { A_a_1_735[instanceId_114] = value_175; }; }; } function A_a_get666(integer index1463, integer index2128) returns integer { local integer returnVal142 if ((index2_128 < 0) or (index2_128 >= 2)) { error132("Index out of Bounds"); } else { if (index2_128 <= 0) { returnVal_142 = A_a_0_207[index1_463]; } else { returnVal_142 = A_a_1_735[index1_463]; }; }; return returnVal_142; }