array C_nextFree371 integer C_firstFree584 integer C_maxIndex208 array C_v_0798 array C_v_1119 array C_v_2203 array C_v_3138 array C_v_4201 integer C_firstFree584 = 0 integer C_maxIndex208 = 0 function initGlobals170() { } function main209() { initGlobals170(); init_test445(); } function config142() { } function init_test445() { local integer c174 c_174 = new_C208(); C_v_set104(c_174, 2, (C_v_get109(c_174, 3) + 1)); if (C_v_get109(c_174, 2) == 1) { testSuccess937(); } else { }; } IS_NATIVE function testSuccess937() { } function C_init117(integer this202) { } function new_C208() returns integer { local integer this721 this_721 = alloc_C166(); construct_C117(this_721); return this_721; } function construct_C117(integer this149) { C_init117(this_149); } function alloc_C166() returns integer { local integer this315 if (C_firstFree_584 == 0) { if (C_maxIndex_208 < 32768) { C_maxIndex_208 = (C_maxIndex_208 + 1); this_315 = C_maxIndex_208; } else { error931("Out of memory: Could not create C."); this_315 = 0; }; } else { C_firstFree_584 = (C_firstFree_584 - 1); this_315 = C_nextFree_371[C_firstFree_584]; }; return this_315; } function error931(string msg125) { $debugPrint502((msg_125 + (" " + #getStackTrace()))); } function C_v_set104(integer instanceId153, integer arrayIndex156, integer value166) { if ((arrayIndex_156 < 0) or (arrayIndex_156 >= 5)) { error931("Index out of Bounds"); } else { if (arrayIndex_156 <= 2) { if (arrayIndex_156 <= 1) { if (arrayIndex_156 <= 0) { C_v_0_798[instanceId_153] = value_166; } else { C_v_1_119[instanceId_153] = value_166; }; } else { C_v_2_203[instanceId_153] = value_166; }; } else { if (arrayIndex_156 <= 3) { C_v_3_138[instanceId_153] = value_166; } else { C_v_4_201[instanceId_153] = value_166; }; }; }; } function C_v_get109(integer index1127, integer index2212) returns integer { local integer returnVal174 if ((index2_212 < 0) or (index2_212 >= 5)) { error931("Index out of Bounds"); } else { if (index2_212 <= 2) { if (index2_212 <= 1) { if (index2_212 <= 0) { returnVal_174 = C_v_0_798[index1_127]; } else { returnVal_174 = C_v_1_119[index1_127]; }; } else { returnVal_174 = C_v_2_203[index1_127]; }; } else { if (index2_212 <= 3) { returnVal_174 = C_v_3_138[index1_127]; } else { returnVal_174 = C_v_4_201[index1_127]; }; }; }; return returnVal_174; }