array A_nextFree401 integer A_firstFree188 integer A_maxIndex957 array A_b_i_0190 array A_b_i_1563 integer A_firstFree188 = 0 integer A_maxIndex957 = 0 function initGlobals475() { } function main139() { local integer a120 initGlobals475(); a_120 = new_A204(); A_b_i_set631(a_120, 0, 4); A_b_i_set631(a_120, 1, 5); if ((A_b_i_get145(a_120, 0) == 4) and (A_b_i_get145(a_120, 1) == 5)) { testSuccess295(); } else { }; } function config156() { } IS_NATIVE function testSuccess295() { } function new_A204() returns integer { local integer this125 if (A_firstFree_188 == 0) { if (A_maxIndex_957 < 32768) { A_maxIndex_957 = (A_maxIndex_957 + 1); this_125 = A_maxIndex_957; } else { error126("Out of memory: Could not create A."); this_125 = 0; }; } else { A_firstFree_188 = (A_firstFree_188 - 1); this_125 = A_nextFree_401[A_firstFree_188]; }; return this_125; } function error126(string msg651) { $debugPrint147((msg_651 + (" " + #getStackTrace()))); } function A_b_i_set631(integer instanceId230, integer arrayIndex147, integer value209) { if ((arrayIndex_147 < 0) or (arrayIndex_147 >= 2)) { error126("Index out of Bounds"); } else { if (arrayIndex_147 <= 0) { A_b_i_0_190[instanceId_230] = value_209; } else { A_b_i_1_563[instanceId_230] = value_209; }; }; } function A_b_i_get145(integer index1159, integer index2113) returns integer { local integer returnVal560 if ((index2_113 < 0) or (index2_113 >= 2)) { error126("Index out of Bounds"); } else { if (index2_113 <= 0) { returnVal_560 = A_b_i_0_190[index1_159]; } else { returnVal_560 = A_b_i_1_563[index1_159]; }; }; return returnVal_560; }