array C_nextFree177 integer C_firstFree140 integer C_maxIndex821 array C_v_0451 array C_v_1204 array C_v_2615 array C_v_3558 array C_v_4130 integer C_firstFree140 = 0 integer C_maxIndex821 = 0 function initGlobals158() { C_firstFree_140 = 0; C_maxIndex_821 = 0; } function main190() { initGlobals158(); init_test162(); } function config138() { } function init_test162() { local integer c222 c_222 = new_C137(); C_v_set198(c_222, 2, (C_v_get223(c_222, 3) + 1)); if (C_v_get223(c_222, 2) == 1) { testSuccess101(); } else { }; } IS_NATIVE function testSuccess101() { } function C_init109(integer this159) { } function new_C137() returns integer { local integer this114 this_114 = alloc_C120(); construct_C154(this_114); return this_114; } function construct_C154(integer this112) { C_init109(this_112); } function alloc_C120() returns integer { local integer this208 if (C_firstFree_140 == 0) { if (C_maxIndex_821 < 32768) { C_maxIndex_821 = (C_maxIndex_821 + 1); this_208 = C_maxIndex_821; } else { error419("Out of memory: Could not create C."); this_208 = 0; }; } else { C_firstFree_140 = (C_firstFree_140 - 1); this_208 = C_nextFree_177[C_firstFree_140]; }; return this_208; } function error419(string msg193) { $debugPrint193((msg_193 + (" " + #getStackTrace()))); } function C_v_set198(integer instanceId964, integer arrayIndex200, integer value204) { if ((arrayIndex_200 < 0) or (arrayIndex_200 >= 5)) { error419("Index out of Bounds"); } else { if (arrayIndex_200 <= 2) { if (arrayIndex_200 <= 1) { if (arrayIndex_200 <= 0) { C_v_0_451[instanceId_964] = value_204; } else { C_v_1_204[instanceId_964] = value_204; }; } else { C_v_2_615[instanceId_964] = value_204; }; } else { if (arrayIndex_200 <= 3) { C_v_3_558[instanceId_964] = value_204; } else { C_v_4_130[instanceId_964] = value_204; }; }; }; } function C_v_get223(integer index1278, integer index2106) returns integer { local integer returnVal145 if ((index2_106 < 0) or (index2_106 >= 5)) { error419("Index out of Bounds"); } else { if (index2_106 <= 2) { if (index2_106 <= 1) { if (index2_106 <= 0) { returnVal_145 = C_v_0_451[index1_278]; } else { returnVal_145 = C_v_1_204[index1_278]; }; } else { returnVal_145 = C_v_2_615[index1_278]; }; } else { if (index2_106 <= 3) { returnVal_145 = C_v_3_558[index1_278]; } else { returnVal_145 = C_v_4_130[index1_278]; }; }; }; return returnVal_145; }