array C_nextFree122 integer C_firstFree577 integer C_maxIndex139 array C_ang_rad_0263 array C_ang_rad_1203 integer C_firstFree577 = 0 integer C_maxIndex139 = 0 function initGlobals861() { } function main201() { local integer c118 local real tuple_temp132 local real tuple_temp366 initGlobals861(); c_118 = new_C590(); tuple_temp_132 = 4.; C_ang_rad_set199(c_118, 0, tuple_temp_132); tuple_temp_366 = 2.; C_ang_rad_set199(c_118, 1, tuple_temp_366); if ((C_ang_rad_get385(c_118, 0) == 4.) and (C_ang_rad_get385(c_118, 1) == 2.)) { testSuccess151(); } else { }; } function config134() { } IS_NATIVE function testSuccess151() { } function new_C590() returns integer { local integer this155 local integer this208 if (C_firstFree_577 == 0) { if (C_maxIndex_139 < 32768) { C_maxIndex_139 = (C_maxIndex_139 + 1); this_208 = C_maxIndex_139; } else { error116("Out of memory: Could not create C."); this_208 = 0; }; } else { C_firstFree_577 = (C_firstFree_577 - 1); this_208 = C_nextFree_122[C_firstFree_577]; }; this_155 = this_208; return this_155; } function error116(string msg230) { $debugPrint102((msg_230 + (" " + #getStackTrace()))); } function C_ang_rad_set199(integer instanceId388, integer arrayIndex154, real value143) { if ((arrayIndex_154 < 0) or (arrayIndex_154 >= 2)) { error116("Index out of Bounds"); } else { if (arrayIndex_154 <= 0) { C_ang_rad_0_263[instanceId_388] = value_143; } else { C_ang_rad_1_203[instanceId_388] = value_143; }; }; } function C_ang_rad_get385(integer index1734, integer index2837) returns real { local real returnVal177 if ((index2_837 < 0) or (index2_837 >= 2)) { error116("Index out of Bounds"); } else { if (index2_837 <= 0) { returnVal_177 = C_ang_rad_0_263[index1_734]; } else { returnVal_177 = C_ang_rad_1_203[index1_734]; }; }; return returnVal_177; }