array C_nextFree851 integer C_firstFree580 integer C_maxIndex184 integer wurst_stack_depth349 array wurst_stack847 array C_ang_rad_0151 array C_ang_rad_1130 integer C_firstFree580 = 0 integer C_maxIndex184 = 0 integer wurst_stack_depth349 = 0 function initGlobals585() { } function main243() { initGlobals585(); init_test167("when calling init_test in tupleArrayInClass, line 1"); } function config200() { } function init_test167(string __wurst_stackPos181) { local integer this961 wurst_stack_847[wurst_stack_depth_349] = __wurst_stackPos_181; wurst_stack_depth_349 = (wurst_stack_depth_349 + 1); wurst_stack_847[wurst_stack_depth_349] = "when calling new_C in tupleArrayInClass, line 7"; wurst_stack_depth_349 = (wurst_stack_depth_349 + 1); wurst_stack_847[wurst_stack_depth_349] = "when calling alloc_C in tupleArrayInClass, line 3"; wurst_stack_depth_349 = (wurst_stack_depth_349 + 1); if (C_firstFree_580 == 0) { if (C_maxIndex_184 < 32768) { C_maxIndex_184 = (C_maxIndex_184 + 1); this_961 = C_maxIndex_184; } else { error355("Out of memory: Could not create C.", "when calling error in tupleArrayInClass, line 3"); this_961 = 0; }; } else { C_firstFree_580 = (C_firstFree_580 - 1); this_961 = C_nextFree_851[C_firstFree_580]; }; wurst_stack_depth_349 = ((wurst_stack_depth_349 - 1) - 1); C_ang_rad_set176(this_961, 0, 4., "when writing array C_ang_rad in tupleArrayInClass, line 8"); C_ang_rad_set176(this_961, 1, 2., "when writing array C_ang_rad in tupleArrayInClass, line 9"); if ((C_ang_rad_get588(this_961, 0, "when reading array C_ang_rad in in tupleArrayInClass, line 10") == 4.) and (C_ang_rad_get588(this_961, 1, "when reading array C_ang_rad in in tupleArrayInClass, line 10") == 2.)) { testSuccess188(); } else { }; wurst_stack_depth_349 = (wurst_stack_depth_349 - 1); } IS_NATIVE function testSuccess188() { } function error355(string msg529, string __wurst_stackPos119) { local integer stacktraceIndex121 local integer stacktraceLimit156 wurst_stack_847[wurst_stack_depth_349] = __wurst_stackPos_119; wurst_stack_depth_349 = (wurst_stack_depth_349 + 1); __wurst_stackPos_119 = ""; stacktraceIndex_121 = wurst_stack_depth_349; stacktraceLimit_156 = 0; loop { stacktraceIndex_121 = (stacktraceIndex_121 - 1); stacktraceLimit_156 = (stacktraceLimit_156 + 1); exitwhen ((stacktraceLimit_156 > 20) or (stacktraceIndex_121 < 0)); __wurst_stackPos_119 = (__wurst_stackPos_119 + (" " + wurst_stack_847[stacktraceIndex_121])); }; $debugPrint114((msg_529 + (" " + __wurst_stackPos_119))); wurst_stack_depth_349 = (wurst_stack_depth_349 - 1); } function C_ang_rad_set176(integer instanceId441, integer arrayIndex845, real value171, string stackPos144) { if ((arrayIndex_845 < 0) or (arrayIndex_845 >= 2)) { error355("Index out of Bounds", stackPos_144); } else { if (arrayIndex_845 <= 0) { C_ang_rad_0_151[instanceId_441] = value_171; } else { C_ang_rad_1_130[instanceId_441] = value_171; }; }; } function C_ang_rad_get588(integer index1103, integer index2209, string stackPos201) returns real { local real returnVal416 if ((index2_209 < 0) or (index2_209 >= 2)) { error355("Index out of Bounds", stackPos_201); } else { if (index2_209 <= 0) { returnVal_416 = C_ang_rad_0_151[index1_103]; } else { returnVal_416 = C_ang_rad_1_130[index1_103]; }; }; return returnVal_416; }