array C_nextFree584 integer C_firstFree427 integer C_maxIndex744 array C_v_0289 array C_v_1124 array C_v_2798 array C_v_3119 array C_v_4203 integer C_firstFree427 = 0 integer C_maxIndex744 = 0 function initGlobals207() { } function main117() { initGlobals207(); init_test124(); } function config209() { } function init_test124() { local integer c154 c_154 = new_C170(); C_v_set138(c_154, 2, (C_v_get201(c_154, 3) + 1)); if (C_v_get201(c_154, 2) == 1) { testSuccess445(); } else { }; } IS_NATIVE function testSuccess445() { } function C_init937(integer this101) { } function new_C170() returns integer { local integer this725 this_725 = alloc_C534(); construct_C208(this_725); return this_725; } function construct_C208(integer this202) { C_init937(this_202); } function alloc_C534() returns integer { local integer this608 if (C_firstFree_427 == 0) { if (C_maxIndex_744 < 32768) { C_maxIndex_744 = (C_maxIndex_744 + 1); this_608 = C_maxIndex_744; } else { error130("Out of memory: Could not create C."); this_608 = 0; }; } else { C_firstFree_427 = (C_firstFree_427 - 1); this_608 = C_nextFree_584[C_firstFree_427]; }; return this_608; } function error130(string msg315) { $debugPrint931((msg_315 + (" " + #getStackTrace()))); } function C_v_set138(integer instanceId104, integer arrayIndex109, integer value153) { if ((arrayIndex_109 < 0) or (arrayIndex_109 >= 5)) { error130("Index out of Bounds"); } else { if (arrayIndex_109 <= 2) { if (arrayIndex_109 <= 1) { if (arrayIndex_109 <= 0) { C_v_0_289[instanceId_104] = value_153; } else { C_v_1_124[instanceId_104] = value_153; }; } else { C_v_2_798[instanceId_104] = value_153; }; } else { if (arrayIndex_109 <= 3) { C_v_3_119[instanceId_104] = value_153; } else { C_v_4_203[instanceId_104] = value_153; }; }; }; } function C_v_get201(integer index1156, integer index2166) returns integer { local integer returnVal127 if ((index2_166 < 0) or (index2_166 >= 5)) { error130("Index out of Bounds"); } else { if (index2_166 <= 2) { if (index2_166 <= 1) { if (index2_166 <= 0) { returnVal_127 = C_v_0_289[index1_156]; } else { returnVal_127 = C_v_1_124[index1_156]; }; } else { returnVal_127 = C_v_2_798[index1_156]; }; } else { if (index2_166 <= 3) { returnVal_127 = C_v_3_119[index1_156]; } else { returnVal_127 = C_v_4_203[index1_156]; }; }; }; return returnVal_127; }