array C_nextFree114 integer C_firstFree177 integer C_maxIndex450 array C_v_0615 array C_v_1558 array C_v_2130 array C_v_3198 array C_v_4223 integer C_firstFree177 = 0 integer C_maxIndex450 = 0 function initGlobals137() { C_firstFree_177 = 0; C_maxIndex_450 = 0; } function main138() { initGlobals137(); init_test101(); } function config324() { } function init_test101() { local integer c142 c_142 = new_C154(); C_v_set964(c_142, 2, (C_v_get200(c_142, 3) + 1)); if (C_v_get200(c_142, 2) == 1) { testSuccess109(); } else { }; } IS_NATIVE function testSuccess109() { } function C_init190(integer this112) { } function new_C154() returns integer { local integer this960 this_960 = alloc_C167(); construct_C203(this_960); return this_960; } function construct_C203(integer this843) { C_init190(this_843); } function alloc_C167() returns integer { local integer this193 if (C_firstFree_177 == 0) { if (C_maxIndex_450 < 32768) { C_maxIndex_450 = (C_maxIndex_450 + 1); this_193 = C_maxIndex_450; } else { error193("Out of memory: Could not create C."); this_193 = 0; }; } else { C_firstFree_177 = (C_firstFree_177 - 1); this_193 = C_nextFree_114[C_firstFree_177]; }; return this_193; } function error193(string msg740) { $debugPrint183((msg_740 + (" " + #getStackTrace()))); } function C_v_set964(integer instanceId204, integer arrayIndex278, integer value106) { if ((arrayIndex_278 < 0) or (arrayIndex_278 >= 5)) { error193("Index out of Bounds"); } else { if (arrayIndex_278 <= 2) { if (arrayIndex_278 <= 1) { if (arrayIndex_278 <= 0) { C_v_0_615[instanceId_204] = value_106; } else { C_v_1_558[instanceId_204] = value_106; }; } else { C_v_2_130[instanceId_204] = value_106; }; } else { if (arrayIndex_278 <= 3) { C_v_3_198[instanceId_204] = value_106; } else { C_v_4_223[instanceId_204] = value_106; }; }; }; } function C_v_get200(integer index1145, integer index2120) returns integer { local integer returnVal147 if ((index2_120 < 0) or (index2_120 >= 5)) { error193("Index out of Bounds"); } else { if (index2_120 <= 2) { if (index2_120 <= 1) { if (index2_120 <= 0) { returnVal_147 = C_v_0_615[index1_145]; } else { returnVal_147 = C_v_1_558[index1_145]; }; } else { returnVal_147 = C_v_2_130[index1_145]; }; } else { if (index2_120 <= 3) { returnVal_147 = C_v_3_198[index1_145]; } else { returnVal_147 = C_v_4_223[index1_145]; }; }; }; return returnVal_147; }