array C_nextFree338 integer C_firstFree117 integer C_maxIndex630 integer wurst_stack_depth958 array wurst_stack470 array C_v_0179 array C_v_1377 array C_v_2974 integer C_firstFree117 = 0 integer C_maxIndex630 = 0 integer wurst_stack_depth958 = 0 function initGlobals123() { } function main111() { local integer c219 initGlobals123(); wurst_stack_470[wurst_stack_depth_958] = "when calling init_test in multiArrayInit, line 1"; wurst_stack_depth_958 = (wurst_stack_depth_958 + 1); c_219 = new_C158("when calling new_C in multiArrayInit, line 6"); if (((C_v_get319(c_219, 0, "when reading array C_v in in multiArrayInit, line 7") == 7) and (C_v_get319(c_219, 1, "when reading array C_v in in multiArrayInit, line 7") == 8)) and (C_v_get319(c_219, 2, "when reading array C_v in in multiArrayInit, line 7") == 9)) { testSuccess135(); } else { }; wurst_stack_depth_958 = (wurst_stack_depth_958 - 1); } function config718() { } IS_NATIVE function testSuccess135() { } function new_C158(string __wurst_stackPos966) returns integer { local integer this847 wurst_stack_470[wurst_stack_depth_958] = __wurst_stackPos_966; wurst_stack_depth_958 = (wurst_stack_depth_958 + 1); wurst_stack_470[wurst_stack_depth_958] = "when calling alloc_C in multiArrayInit, line 3"; wurst_stack_depth_958 = (wurst_stack_depth_958 + 1); if (C_firstFree_117 == 0) { if (C_maxIndex_630 < 32768) { C_maxIndex_630 = (C_maxIndex_630 + 1); this_847 = C_maxIndex_630; } else { error211("Out of memory: Could not create C.", "when calling error in multiArrayInit, line 3"); this_847 = 0; }; } else { C_firstFree_117 = (C_firstFree_117 - 1); this_847 = C_nextFree_338[C_firstFree_117]; }; wurst_stack_depth_958 = (wurst_stack_depth_958 - 1); wurst_stack_470[wurst_stack_depth_958] = "when calling construct_C in multiArrayInit, line 3"; wurst_stack_depth_958 = (wurst_stack_depth_958 + 1); wurst_stack_470[wurst_stack_depth_958] = "when calling C_init in multiArrayInit, line 3"; wurst_stack_depth_958 = (wurst_stack_depth_958 + 1); C_v_set191(this_847, 0, 7, "when writing array C_v in multiArrayInit, line 3"); C_v_set191(this_847, 1, 8, "when writing array C_v in multiArrayInit, line 3"); C_v_set191(this_847, 2, 9, "when writing array C_v in multiArrayInit, line 3"); wurst_stack_depth_958 = (((wurst_stack_depth_958 - 1) - 1) - 1); return this_847; } function error211(string msg684, string __wurst_stackPos185) { local integer stacktraceIndex200 local integer stacktraceLimit200 wurst_stack_470[wurst_stack_depth_958] = __wurst_stackPos_185; wurst_stack_depth_958 = (wurst_stack_depth_958 + 1); __wurst_stackPos_185 = ""; stacktraceIndex_200 = wurst_stack_depth_958; stacktraceLimit_200 = 0; loop { stacktraceIndex_200 = (stacktraceIndex_200 - 1); stacktraceLimit_200 = (stacktraceLimit_200 + 1); exitwhen ((stacktraceLimit_200 > 20) or (stacktraceIndex_200 < 0)); __wurst_stackPos_185 = (__wurst_stackPos_185 + (" " + wurst_stack_470[stacktraceIndex_200])); }; $debugPrint165((msg_684 + (" " + __wurst_stackPos_185))); wurst_stack_depth_958 = (wurst_stack_depth_958 - 1); } function C_v_set191(integer instanceId126, integer arrayIndex943, integer value741, string stackPos191) { if ((arrayIndex_943 < 0) or (arrayIndex_943 >= 3)) { error211("Index out of Bounds", stackPos_191); } else { if (arrayIndex_943 <= 1) { if (arrayIndex_943 <= 0) { C_v_0_179[instanceId_126] = value_741; } else { C_v_1_377[instanceId_126] = value_741; }; } else { C_v_2_974[instanceId_126] = value_741; }; }; } function C_v_get319(integer index1194, integer index2193, string stackPos123) returns integer { local integer returnVal189 if ((index2_193 < 0) or (index2_193 >= 3)) { error211("Index out of Bounds", stackPos_123); } else { if (index2_193 <= 1) { if (index2_193 <= 0) { returnVal_189 = C_v_0_179[index1_194]; } else { returnVal_189 = C_v_1_377[index1_194]; }; } else { returnVal_189 = C_v_2_974[index1_194]; }; }; return returnVal_189; }