array A_nextFree143 integer A_firstFree201 integer A_maxIndex179 array A_b_i_0138 array A_b_i_1272 integer A_firstFree201 = 0 integer A_maxIndex179 = 0 function initGlobals157() { A_firstFree_201 = 0; A_maxIndex_179 = 0; } function main191() { initGlobals157(); init_test374(); } function config165() { } function init_test374() { local integer a169 local integer tuple_temp510 local integer tuple_temp923 a_169 = new_A174(); tuple_temp_510 = 4; A_b_i_set912(a_169, 0, tuple_temp_510); tuple_temp_923 = 5; A_b_i_set912(a_169, 1, tuple_temp_923); if ((A_b_i_get780(a_169, 0) == 4) and (A_b_i_get780(a_169, 1) == 5)) { testSuccess112(); } else { }; } IS_NATIVE function testSuccess112() { } function A_init708(integer this165) { } function new_A174() returns integer { local integer this106 this_106 = alloc_A193(); construct_A264(this_106); return this_106; } function construct_A264(integer this119) { A_init708(this_119); } function alloc_A193() returns integer { local integer this122 if (A_firstFree_201 == 0) { if (A_maxIndex_179 < 32768) { A_maxIndex_179 = (A_maxIndex_179 + 1); this_122 = A_maxIndex_179; } else { error183("Out of memory: Could not create A."); this_122 = 0; }; } else { A_firstFree_201 = (A_firstFree_201 - 1); this_122 = A_nextFree_143[A_firstFree_201]; }; return this_122; } function error183(string msg483) { $debugPrint824((msg_483 + (" " + #getStackTrace()))); } function A_b_i_set912(integer instanceId107, integer arrayIndex154, integer value108) { if ((arrayIndex_154 < 0) or (arrayIndex_154 >= 2)) { error183("Index out of Bounds"); } else { if (arrayIndex_154 <= 0) { A_b_i_0_138[instanceId_107] = value_108; } else { A_b_i_1_272[instanceId_107] = value_108; }; }; } function A_b_i_get780(integer index1211, integer index2188) returns integer { local integer returnVal805 if ((index2_188 < 0) or (index2_188 >= 2)) { error183("Index out of Bounds"); } else { if (index2_188 <= 0) { returnVal_805 = A_b_i_0_138[index1_211]; } else { returnVal_805 = A_b_i_1_272[index1_211]; }; }; return returnVal_805; }