array C_nextFree173 integer C_firstFree338 integer C_maxIndex115 integer wurst_stack_depth112 array wurst_stack966 array C_v_0974 array C_v_1319 array C_v_2191 integer C_firstFree338 = 0 integer C_maxIndex115 = 0 integer wurst_stack_depth112 = 0 function initGlobals158() { } function main718() { local integer c714 initGlobals158(); wurst_stack_966[wurst_stack_depth_112] = "when calling init_test in multiArrayInit, line 1"; wurst_stack_depth_112 = (wurst_stack_depth_112 + 1); c_714 = new_C238("when calling new_C in multiArrayInit, line 6"); if (((C_v_get126(c_714, 0, "when reading array C_v in in multiArrayInit, line 7") == 7) and (C_v_get126(c_714, 1, "when reading array C_v in in multiArrayInit, line 7") == 8)) and (C_v_get126(c_714, 2, "when reading array C_v in in multiArrayInit, line 7") == 9)) { testSuccess126(); } else { }; wurst_stack_depth_112 = (wurst_stack_depth_112 - 1); } function config210() { } IS_NATIVE function testSuccess126() { } function new_C238(string __wurst_stackPos287) returns integer { local integer this213 wurst_stack_966[wurst_stack_depth_112] = __wurst_stackPos_287; wurst_stack_depth_112 = (wurst_stack_depth_112 + 1); wurst_stack_966[wurst_stack_depth_112] = "when calling alloc_C in multiArrayInit, line 3"; wurst_stack_depth_112 = (wurst_stack_depth_112 + 1); if (C_firstFree_338 == 0) { if (C_maxIndex_115 < 32768) { C_maxIndex_115 = (C_maxIndex_115 + 1); this_213 = C_maxIndex_115; } else { error165("Out of memory: Could not create C.", "when calling error in multiArrayInit, line 3"); this_213 = 0; }; } else { C_firstFree_338 = (C_firstFree_338 - 1); this_213 = C_nextFree_173[C_firstFree_338]; }; wurst_stack_depth_112 = (wurst_stack_depth_112 - 1); wurst_stack_966[wurst_stack_depth_112] = "when calling construct_C in multiArrayInit, line 3"; wurst_stack_depth_112 = (wurst_stack_depth_112 + 1); wurst_stack_966[wurst_stack_depth_112] = "when calling C_init in multiArrayInit, line 3"; wurst_stack_depth_112 = (wurst_stack_depth_112 + 1); C_v_set943(this_213, 0, 7, "when writing array C_v in multiArrayInit, line 3"); C_v_set943(this_213, 1, 8, "when writing array C_v in multiArrayInit, line 3"); C_v_set943(this_213, 2, 9, "when writing array C_v in multiArrayInit, line 3"); wurst_stack_depth_112 = (((wurst_stack_depth_112 - 1) - 1) - 1); return this_213; } function error165(string msg183, string __wurst_stackPos200) { local integer stacktraceIndex847 local integer stacktraceLimit676 wurst_stack_966[wurst_stack_depth_112] = __wurst_stackPos_200; wurst_stack_depth_112 = (wurst_stack_depth_112 + 1); __wurst_stackPos_200 = ""; stacktraceIndex_847 = wurst_stack_depth_112; stacktraceLimit_676 = 0; loop { stacktraceIndex_847 = (stacktraceIndex_847 - 1); stacktraceLimit_676 = (stacktraceLimit_676 + 1); exitwhen ((stacktraceLimit_676 > 20) or (stacktraceIndex_847 < 0)); __wurst_stackPos_200 = (__wurst_stackPos_200 + (" " + wurst_stack_966[stacktraceIndex_847])); }; $debugPrint271((msg_183 + (" " + __wurst_stackPos_200))); wurst_stack_depth_112 = (wurst_stack_depth_112 - 1); } function C_v_set943(integer instanceId741, integer arrayIndex191, integer value194, string stackPos193) { if ((arrayIndex_191 < 0) or (arrayIndex_191 >= 3)) { error165("Index out of Bounds", stackPos_193); } else { if (arrayIndex_191 <= 1) { if (arrayIndex_191 <= 0) { C_v_0_974[instanceId_741] = value_194; } else { C_v_1_319[instanceId_741] = value_194; }; } else { C_v_2_191[instanceId_741] = value_194; }; }; } function C_v_get126(integer index1123, integer index2189, string stackPos585) returns integer { local integer returnVal135 if ((index2_189 < 0) or (index2_189 >= 3)) { error165("Index out of Bounds", stackPos_585); } else { if (index2_189 <= 1) { if (index2_189 <= 0) { returnVal_135 = C_v_0_974[index1_123]; } else { returnVal_135 = C_v_1_319[index1_123]; }; } else { returnVal_135 = C_v_2_191[index1_123]; }; }; return returnVal_135; }