array C_nextFree761 integer C_firstFree164 integer C_maxIndex563 array C_v_0114 array C_v_1661 array C_v_2618 integer C_firstFree164 = 0 integer C_maxIndex563 = 0 function initGlobals309() { } function main190() { local integer c190 initGlobals309(); c_190 = new_C263(); if (((C_v_get196(c_190, 0) == 7) and (C_v_get196(c_190, 1) == 8)) and (C_v_get196(c_190, 2) == 9)) { testSuccess647(); } else { }; } function config185() { } IS_NATIVE function testSuccess647() { } function new_C263() returns integer { local integer this338 local integer this109 local integer this483 local integer this266 if (C_firstFree_164 == 0) { if (C_maxIndex_563 < 32768) { C_maxIndex_563 = (C_maxIndex_563 + 1); this_109 = C_maxIndex_563; } else { error110("Out of memory: Could not create C."); this_109 = 0; }; } else { C_firstFree_164 = (C_firstFree_164 - 1); this_109 = C_nextFree_761[C_firstFree_164]; }; this_338 = this_109; this_483 = this_338; this_266 = this_483; C_v_set142(this_266, 0, 7); C_v_set142(this_266, 1, 8); C_v_set142(this_266, 2, 9); return this_338; } function error110(string msg136) { $debugPrint157((msg_136 + (" " + #getStackTrace()))); } function C_v_set142(integer instanceId101, integer arrayIndex158, integer value333) { if ((arrayIndex_158 < 0) or (arrayIndex_158 >= 3)) { error110("Index out of Bounds"); } else { if (arrayIndex_158 <= 1) { if (arrayIndex_158 <= 0) { C_v_0_114[instanceId_101] = value_333; } else { C_v_1_661[instanceId_101] = value_333; }; } else { C_v_2_618[instanceId_101] = value_333; }; }; } function C_v_get196(integer index1190, integer index2106) returns integer { local integer returnVal588 if ((index2_106 < 0) or (index2_106 >= 3)) { error110("Index out of Bounds"); } else { if (index2_106 <= 1) { if (index2_106 <= 0) { returnVal_588 = C_v_0_114[index1_190]; } else { returnVal_588 = C_v_1_661[index1_190]; }; } else { returnVal_588 = C_v_2_618[index1_190]; }; }; return returnVal_588; }