// this script was compiled with wurst 1.8.1.0-jenkins-Wurst-1365 globals integer test_at=0 integer array AssistTimestamps_nextFree integer AssistTimestamps_firstFree=0 integer AssistTimestamps_maxIndex=0 integer wurst_stack_depth=0 string array wurst_stack integer array AssistTimestamps_vals_0 integer array AssistTimestamps_vals_1 integer array AssistTimestamps_vals_2 integer array AssistTimestamps_vals_3 integer array AssistTimestamps_vals_4 integer array AssistTimestamps_vals_5 integer array AssistTimestamps_vals_6 integer array AssistTimestamps_vals_7 integer array AssistTimestamps_vals_8 integer array AssistTimestamps_vals_9 integer array AssistTimestamps_vals_10 integer array AssistTimestamps_vals_11 endglobals native testSuccess takes nothing returns nothing function initGlobals takes nothing returns nothing endfunction function error takes string msg, string w__wurst_stackPos returns nothing local integer stacktraceIndex local integer stacktraceLimit set wurst_stack[wurst_stack_depth] = w__wurst_stackPos set wurst_stack_depth = wurst_stack_depth + 1 set w__wurst_stackPos = "" set stacktraceIndex = wurst_stack_depth set stacktraceLimit = 0 loop set stacktraceIndex = stacktraceIndex - 1 set stacktraceLimit = stacktraceLimit + 1 exitwhen stacktraceLimit > 20 or stacktraceIndex < 0 set w__wurst_stackPos = w__wurst_stackPos + "\n " + wurst_stack[stacktraceIndex] endloop call BJDebugMsg(msg + "\n" + w__wurst_stackPos) set wurst_stack_depth = wurst_stack_depth - 1 endfunction function AssistTimestamps_vals_get takes integer index1, integer index2, string stackPos returns integer local integer returnVal if index2 < 0 or index2 >= 12 then call error("Index out of Bounds", stackPos) elseif index2 <= 5 then if index2 <= 2 then if index2 <= 1 then if index2 <= 0 then set returnVal = AssistTimestamps_vals_0[index1] else set returnVal = AssistTimestamps_vals_1[index1] endif else set returnVal = AssistTimestamps_vals_2[index1] endif elseif index2 <= 4 then if index2 <= 3 then set returnVal = AssistTimestamps_vals_3[index1] else set returnVal = AssistTimestamps_vals_4[index1] endif else set returnVal = AssistTimestamps_vals_5[index1] endif elseif index2 <= 8 then if index2 <= 7 then if index2 <= 6 then set returnVal = AssistTimestamps_vals_6[index1] else set returnVal = AssistTimestamps_vals_7[index1] endif else set returnVal = AssistTimestamps_vals_8[index1] endif elseif index2 <= 10 then if index2 <= 9 then set returnVal = AssistTimestamps_vals_9[index1] else set returnVal = AssistTimestamps_vals_10[index1] endif else set returnVal = AssistTimestamps_vals_11[index1] endif return returnVal endfunction function AssistTimestamps_vals_set takes integer instanceId, integer arrayIndex, integer value, string stackPos returns nothing if arrayIndex < 0 or arrayIndex >= 12 then call error("Index out of Bounds", stackPos) elseif arrayIndex <= 5 then if arrayIndex <= 2 then if arrayIndex <= 1 then if arrayIndex <= 0 then set AssistTimestamps_vals_0[instanceId] = value else set AssistTimestamps_vals_1[instanceId] = value endif else set AssistTimestamps_vals_2[instanceId] = value endif elseif arrayIndex <= 4 then if arrayIndex <= 3 then set AssistTimestamps_vals_3[instanceId] = value else set AssistTimestamps_vals_4[instanceId] = value endif else set AssistTimestamps_vals_5[instanceId] = value endif elseif arrayIndex <= 8 then if arrayIndex <= 7 then if arrayIndex <= 6 then set AssistTimestamps_vals_6[instanceId] = value else set AssistTimestamps_vals_7[instanceId] = value endif else set AssistTimestamps_vals_8[instanceId] = value endif elseif arrayIndex <= 10 then if arrayIndex <= 9 then set AssistTimestamps_vals_9[instanceId] = value else set AssistTimestamps_vals_10[instanceId] = value endif else set AssistTimestamps_vals_11[instanceId] = value endif endfunction function init_test takes string w__wurst_stackPos returns nothing local integer this set wurst_stack[wurst_stack_depth] = w__wurst_stackPos set wurst_stack_depth = wurst_stack_depth + 1 set wurst_stack[wurst_stack_depth] = "when calling new_AssistTimestamps in multiArrayNoInline2, line 5" set wurst_stack_depth = wurst_stack_depth + 1 set wurst_stack[wurst_stack_depth] = "when calling alloc_AssistTimestamps in multiArrayNoInline2, line 3" set wurst_stack_depth = wurst_stack_depth + 1 if AssistTimestamps_firstFree == 0 then if AssistTimestamps_maxIndex < 32768 then set AssistTimestamps_maxIndex = AssistTimestamps_maxIndex + 1 set this = AssistTimestamps_maxIndex else call error("Out of memory: Could not create AssistTimestamps.", "when calling error in multiArrayNoInline2, line 3") set this = 0 endif else set AssistTimestamps_firstFree = AssistTimestamps_firstFree - 1 set this = AssistTimestamps_nextFree[AssistTimestamps_firstFree] endif set wurst_stack_depth = wurst_stack_depth - 1 - 1 set test_at = this call AssistTimestamps_vals_set(test_at, 3, 42, "when writing array AssistTimestamps_vals in multiArrayNoInline2, line 7") if AssistTimestamps_vals_get(test_at, 4, "when reading array AssistTimestamps_vals in in multiArrayNoInline2, line 8") == 0 then call testSuccess() endif set wurst_stack_depth = wurst_stack_depth - 1 endfunction function main takes nothing returns nothing call initGlobals() call init_test("when calling init_test in multiArrayNoInline2, line 1") endfunction function config takes nothing returns nothing endfunction