array A_nextFree355 integer A_firstFree180 integer A_maxIndex173 array A_b_i_0154 array A_b_i_1964 integer A_firstFree180 = 0 integer A_maxIndex173 = 0 function initGlobals172() { A_firstFree_180 = 0; A_maxIndex_173 = 0; } function main144() { initGlobals172(); init_test782(); } function config626() { } function init_test782() { local integer a170 local integer tuple_temp110 local integer tuple_temp149 a_170 = new_A510(); tuple_temp_110 = 4; A_b_i_set495(a_170, 0, tuple_temp_110); tuple_temp_149 = 5; A_b_i_set495(a_170, 1, tuple_temp_149); if ((A_b_i_get136(a_170, 0) == 4) and (A_b_i_get136(a_170, 1) == 5)) { testSuccess712(); } else { }; } IS_NATIVE function testSuccess712() { } function A_init989(integer this201) { } function new_A510() returns integer { local integer this172 this_172 = alloc_A196(); construct_A169(this_172); return this_172; } function construct_A169(integer this625) { A_init989(this_625); } function alloc_A196() returns integer { local integer this168 if (A_firstFree_180 == 0) { if (A_maxIndex_173 < 32768) { A_maxIndex_173 = (A_maxIndex_173 + 1); this_168 = A_maxIndex_173; } else { error147("Out of memory: Could not create A."); this_168 = 0; }; } else { A_firstFree_180 = (A_firstFree_180 - 1); this_168 = A_nextFree_355[A_firstFree_180]; }; return this_168; } function error147(string msg228) { $debugPrint127((msg_228 + (" " + #getStackTrace()))); } function A_b_i_set495(integer instanceId562, integer arrayIndex133, integer value104) { if ((arrayIndex_133 < 0) or (arrayIndex_133 >= 2)) { error147("Index out of Bounds"); } else { if (arrayIndex_133 <= 0) { A_b_i_0_154[instanceId_562] = value_104; } else { A_b_i_1_964[instanceId_562] = value_104; }; }; } function A_b_i_get136(integer index1136, integer index2246) returns integer { local integer returnVal137 if ((index2_246 < 0) or (index2_246 >= 2)) { error147("Index out of Bounds"); } else { if (index2_246 <= 0) { returnVal_137 = A_b_i_0_154[index1_136]; } else { returnVal_137 = A_b_i_1_964[index1_136]; }; }; return returnVal_137; }