array A_nextFree994 integer A_firstFree182 integer A_maxIndex344 array A_b_i_0189 array A_b_i_1537 integer A_firstFree182 = 0 integer A_maxIndex344 = 0 function initGlobals714() { } function main422() { initGlobals714(); init_test161(); } function config999() { } function init_test161() { local integer a126 a_126 = new_A104(); A_b_i_set756(a_126, 0, 4); A_b_i_set756(a_126, 1, 5); if ((A_b_i_get119(a_126, 0) == 4) and (A_b_i_get119(a_126, 1) == 5)) { testSuccess113(); } else { }; } IS_NATIVE function testSuccess113() { } function A_init175(integer this683) { } function new_A104() returns integer { local integer this257 this_257 = alloc_A604(); construct_A129(this_257); return this_257; } function construct_A129(integer this155) { A_init175(this_155); } function alloc_A604() returns integer { local integer this625 if (A_firstFree_182 == 0) { if (A_maxIndex_344 < 32768) { A_maxIndex_344 = (A_maxIndex_344 + 1); this_625 = A_maxIndex_344; } else { error196("Out of memory: Could not create A."); this_625 = 0; }; } else { A_firstFree_182 = (A_firstFree_182 - 1); this_625 = A_nextFree_994[A_firstFree_182]; }; return this_625; } function error196(string msg194) { $debugPrint140((msg_194 + (" " + #getStackTrace()))); } function A_b_i_set756(integer instanceId891, integer arrayIndex891, integer value137) { if ((arrayIndex_891 < 0) or (arrayIndex_891 >= 2)) { error196("Index out of Bounds"); } else { if (arrayIndex_891 <= 0) { A_b_i_0_189[instanceId_891] = value_137; } else { A_b_i_1_537[instanceId_891] = value_137; }; }; } function A_b_i_get119(integer index1202, integer index2177) returns integer { local integer returnVal172 if ((index2_177 < 0) or (index2_177 >= 2)) { error196("Index out of Bounds"); } else { if (index2_177 <= 0) { returnVal_172 = A_b_i_0_189[index1_202]; } else { returnVal_172 = A_b_i_1_537[index1_202]; }; }; return returnVal_172; }