; LLVM IR from ctlst-tech/catpilot :: os/freertos/core/src (tasks)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.xLIST = type { i64, ptr, %struct.xMINI_LIST_ITEM }
%struct.xMINI_LIST_ITEM = type { i32, ptr, ptr }
%struct.xLIST_ITEM = type { i32, ptr, ptr, ptr, ptr }
%struct.tskTaskControlBlock = type { ptr, %struct.xLIST_ITEM, %struct.xLIST_ITEM, i64, ptr, [24 x i8], ptr, i64, i64, ptr, [5 x ptr], [3 x i32], [3 x i8], i8, i8, i32 }

@pxCurrentTCB = external dso_local global ptr, align 8
@uxSchedulerSuspended = external hidden global i64, align 8
@xTickCount = external hidden global i32, align 4
@pxDelayedTaskList = external hidden global ptr, align 8
@pxOverflowDelayedTaskList = external hidden global ptr, align 8
@pxReadyTasksLists = external hidden global [32 x %struct.xLIST], align 16
@uxTopReadyPriority = external hidden global i64, align 8
@xYieldPending = external hidden global i64, align 8
@xNextTaskUnblockTime = external hidden global i32, align 4
@xPendedTicks = external hidden global i32, align 4
@xNumOfOverflows = external hidden global i64, align 8

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: alwaysinline nounwind uwtable
declare hidden void @vPortRaiseBASEPRI() #1

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

declare i64 @uxListRemove(ptr noundef) #2

declare void @vListInsertEnd(ptr noundef, ptr noundef) #2

; Function Attrs: nounwind uwtable
declare hidden void @prvResetNextTaskUnblockTime() #3

; Function Attrs: nounwind uwtable
define dso_local i64 @xTaskIncrementTick() #3 {
  %1 = alloca ptr, align 8
  %2 = alloca i32, align 4
  %3 = alloca i64, align 8
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %1) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #4
  store i64 0, ptr %3, align 8, !tbaa !5
  %6 = load volatile i64, ptr @uxSchedulerSuspended, align 8, !tbaa !5
  %7 = icmp eq i64 %6, 0
  br i1 %7, label %8, label %111

8:                                                ; preds = %0
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #4
  %9 = load volatile i32, ptr @xTickCount, align 4, !tbaa !9
  %10 = add i32 %9, 1
  store i32 %10, ptr %4, align 4, !tbaa !9
  %11 = load i32, ptr %4, align 4, !tbaa !9
  store volatile i32 %11, ptr @xTickCount, align 4, !tbaa !9
  %12 = load i32, ptr %4, align 4, !tbaa !9
  %13 = icmp eq i32 %12, 0
  br i1 %13, label %14, label %30

14:                                               ; preds = %8
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
  %15 = load volatile ptr, ptr @pxDelayedTaskList, align 8, !tbaa !11
  %16 = getelementptr inbounds %struct.xLIST, ptr %15, i32 0, i32 0
  %17 = load volatile i64, ptr %16, align 8, !tbaa !13
  %18 = icmp eq i64 %17, 0
  %19 = zext i1 %18 to i64
  %20 = select i1 %18, i64 1, i64 0
  %21 = icmp eq i64 %20, 0
  br i1 %21, label %22, label %24

22:                                               ; preds = %14
  call void @vPortRaiseBASEPRI()
  br label %23

23:                                               ; preds = %23, %22
  br label %23

24:                                               ; preds = %14
  %25 = load volatile ptr, ptr @pxDelayedTaskList, align 8, !tbaa !11
  store ptr %25, ptr %5, align 8, !tbaa !11
  %26 = load volatile ptr, ptr @pxOverflowDelayedTaskList, align 8, !tbaa !11
  store volatile ptr %26, ptr @pxDelayedTaskList, align 8, !tbaa !11
  %27 = load ptr, ptr %5, align 8, !tbaa !11
  store volatile ptr %27, ptr @pxOverflowDelayedTaskList, align 8, !tbaa !11
  %28 = load volatile i64, ptr @xNumOfOverflows, align 8, !tbaa !5
  %29 = add nsw i64 %28, 1
  store volatile i64 %29, ptr @xNumOfOverflows, align 8, !tbaa !5
  call void @prvResetNextTaskUnblockTime()
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  br label %31

30:                                               ; preds = %8
  br label %31

31:                                               ; preds = %30, %24
  %32 = load i32, ptr %4, align 4, !tbaa !9
  %33 = load volatile i32, ptr @xNextTaskUnblockTime, align 4, !tbaa !9
  %34 = icmp uge i32 %32, %33
  br i1 %34, label %35, label %105

35:                                               ; preds = %31
  br label %36

36:                                               ; preds = %103, %35
  %37 = load volatile ptr, ptr @pxDelayedTaskList, align 8, !tbaa !11
  %38 = getelementptr inbounds %struct.xLIST, ptr %37, i32 0, i32 0
  %39 = load volatile i64, ptr %38, align 8, !tbaa !13
  %40 = icmp eq i64 %39, 0
  %41 = zext i1 %40 to i64
  %42 = select i1 %40, i64 1, i64 0
  %43 = icmp ne i64 %42, 0
  br i1 %43, label %44, label %45

44:                                               ; preds = %36
  store volatile i32 -1, ptr @xNextTaskUnblockTime, align 4, !tbaa !9
  br label %104

45:                                               ; preds = %36
  %46 = load volatile ptr, ptr @pxDelayedTaskList, align 8, !tbaa !11
  %47 = getelementptr inbounds %struct.xLIST, ptr %46, i32 0, i32 2
  %48 = getelementptr inbounds %struct.xMINI_LIST_ITEM, ptr %47, i32 0, i32 1
  %49 = load ptr, ptr %48, align 8, !tbaa !16
  %50 = getelementptr inbounds %struct.xLIST_ITEM, ptr %49, i32 0, i32 3
  %51 = load ptr, ptr %50, align 8, !tbaa !17
  store ptr %51, ptr %1, align 8, !tbaa !11
  %52 = load ptr, ptr %1, align 8, !tbaa !11
  %53 = getelementptr inbounds %struct.tskTaskControlBlock, ptr %52, i32 0, i32 1
  %54 = getelementptr inbounds %struct.xLIST_ITEM, ptr %53, i32 0, i32 0
  %55 = load i32, ptr %54, align 8, !tbaa !19
  store i32 %55, ptr %2, align 4, !tbaa !9
  %56 = load i32, ptr %4, align 4, !tbaa !9
  %57 = load i32, ptr %2, align 4, !tbaa !9
  %58 = icmp ult i32 %56, %57
  br i1 %58, label %59, label %61

59:                                               ; preds = %45
  %60 = load i32, ptr %2, align 4, !tbaa !9
  store volatile i32 %60, ptr @xNextTaskUnblockTime, align 4, !tbaa !9
  br label %104

61:                                               ; preds = %45
  br label %62

62:                                               ; preds = %61
  %63 = load ptr, ptr %1, align 8, !tbaa !11
  %64 = getelementptr inbounds %struct.tskTaskControlBlock, ptr %63, i32 0, i32 1
  %65 = call i64 @uxListRemove(ptr noundef %64)
  %66 = load ptr, ptr %1, align 8, !tbaa !11
  %67 = getelementptr inbounds %struct.tskTaskControlBlock, ptr %66, i32 0, i32 2
  %68 = getelementptr inbounds %struct.xLIST_ITEM, ptr %67, i32 0, i32 4
  %69 = load ptr, ptr %68, align 8, !tbaa !21
  %70 = icmp ne ptr %69, null
  br i1 %70, label %71, label %75

71:                                               ; preds = %62
  %72 = load ptr, ptr %1, align 8, !tbaa !11
  %73 = getelementptr inbounds %struct.tskTaskControlBlock, ptr %72, i32 0, i32 2
  %74 = call i64 @uxListRemove(ptr noundef %73)
  br label %76

75:                                               ; preds = %62
  br label %76

76:                                               ; preds = %75, %71
  %77 = load ptr, ptr %1, align 8, !tbaa !11
  %78 = getelementptr inbounds %struct.tskTaskControlBlock, ptr %77, i32 0, i32 3
  %79 = load i64, ptr %78, align 8, !tbaa !22
  %80 = load volatile i64, ptr @uxTopReadyPriority, align 8, !tbaa !5
  %81 = icmp ugt i64 %79, %80
  br i1 %81, label %82, label %86

82:                                               ; preds = %76
  %83 = load ptr, ptr %1, align 8, !tbaa !11
  %84 = getelementptr inbounds %struct.tskTaskControlBlock, ptr %83, i32 0, i32 3
  %85 = load i64, ptr %84, align 8, !tbaa !22
  store volatile i64 %85, ptr @uxTopReadyPriority, align 8, !tbaa !5
  br label %86

86:                                               ; preds = %82, %76
  %87 = load ptr, ptr %1, align 8, !tbaa !11
  %88 = getelementptr inbounds %struct.tskTaskControlBlock, ptr %87, i32 0, i32 3
  %89 = load i64, ptr %88, align 8, !tbaa !22
  %90 = getelementptr inbounds [32 x %struct.xLIST], ptr @pxReadyTasksLists, i64 0, i64 %89
  %91 = load ptr, ptr %1, align 8, !tbaa !11
  %92 = getelementptr inbounds %struct.tskTaskControlBlock, ptr %91, i32 0, i32 1
  call void @vListInsertEnd(ptr noundef %90, ptr noundef %92)
  %93 = load ptr, ptr %1, align 8, !tbaa !11
  %94 = getelementptr inbounds %struct.tskTaskControlBlock, ptr %93, i32 0, i32 3
  %95 = load i64, ptr %94, align 8, !tbaa !22
  %96 = load volatile ptr, ptr @pxCurrentTCB, align 8, !tbaa !11
  %97 = getelementptr inbounds %struct.tskTaskControlBlock, ptr %96, i32 0, i32 3
  %98 = load i64, ptr %97, align 8, !tbaa !22
  %99 = icmp uge i64 %95, %98
  br i1 %99, label %100, label %101

100:                                              ; preds = %86
  store i64 1, ptr %3, align 8, !tbaa !5
  br label %102

101:                                              ; preds = %86
  br label %102

102:                                              ; preds = %101, %100
  br label %103

103:                                              ; preds = %102
  br label %36

104:                                              ; preds = %59, %44
  br label %105

105:                                              ; preds = %104, %31
  %106 = load volatile i64, ptr @xYieldPending, align 8, !tbaa !5
  %107 = icmp ne i64 %106, 0
  br i1 %107, label %108, label %109

108:                                              ; preds = %105
  store i64 1, ptr %3, align 8, !tbaa !5
  br label %110

109:                                              ; preds = %105
  br label %110

110:                                              ; preds = %109, %108
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #4
  br label %114

111:                                              ; preds = %0
  %112 = load volatile i32, ptr @xPendedTicks, align 4, !tbaa !9
  %113 = add i32 %112, 1
  store volatile i32 %113, ptr @xPendedTicks, align 4, !tbaa !9
  br label %114

114:                                              ; preds = %111, %110
  %115 = load i64, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %1) #4
  ret i64 %115
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { alwaysinline nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{!14, !6, i64 0}
!14 = !{!"xLIST", !6, i64 0, !12, i64 8, !15, i64 16}
!15 = !{!"xMINI_LIST_ITEM", !10, i64 0, !12, i64 8, !12, i64 16}
!16 = !{!14, !12, i64 24}
!17 = !{!18, !12, i64 24}
!18 = !{!"xLIST_ITEM", !10, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !12, i64 32}
!19 = !{!20, !10, i64 8}
!20 = !{!"tskTaskControlBlock", !12, i64 0, !18, i64 8, !18, i64 48, !6, i64 88, !12, i64 96, !7, i64 104, !12, i64 128, !6, i64 136, !6, i64 144, !12, i64 152, !7, i64 160, !7, i64 200, !7, i64 212, !7, i64 215, !7, i64 216, !10, i64 220}
!21 = !{!20, !12, i64 80}
!22 = !{!20, !6, i64 88}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.xLIST = type { i64, ptr, %struct.xMINI_LIST_ITEM }
%struct.xMINI_LIST_ITEM = type { i32, ptr, ptr }

@pxCurrentTCB = external dso_local global ptr, align 8
@uxSchedulerSuspended = external hidden global i64, align 8
@xTickCount = external hidden global i32, align 4
@pxDelayedTaskList = external hidden global ptr, align 8
@pxOverflowDelayedTaskList = external hidden global ptr, align 8
@pxReadyTasksLists = external hidden global [32 x %struct.xLIST], align 16
@uxTopReadyPriority = external hidden global i64, align 8
@xYieldPending = external hidden global i64, align 8
@xNextTaskUnblockTime = external hidden global i32, align 4
@xPendedTicks = external hidden global i32, align 4
@xNumOfOverflows = external hidden global i64, align 8

; Function Attrs: alwaysinline nounwind uwtable
declare hidden void @vPortRaiseBASEPRI() local_unnamed_addr #0

declare i64 @uxListRemove(ptr noundef) local_unnamed_addr #1

declare void @vListInsertEnd(ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare hidden void @prvResetNextTaskUnblockTime() local_unnamed_addr #2

; Function Attrs: nounwind uwtable
define dso_local range(i64 0, 2) i64 @xTaskIncrementTick() local_unnamed_addr #2 {
  %1 = load volatile i64, ptr @uxSchedulerSuspended, align 8, !tbaa !5
  %2 = icmp eq i64 %1, 0
  br i1 %2, label %3, label %54

3:                                                ; preds = %0
  %4 = load volatile i32, ptr @xTickCount, align 4, !tbaa !9
  %5 = add i32 %4, 1
  store volatile i32 %5, ptr @xTickCount, align 4, !tbaa !9
  %6 = icmp eq i32 %5, 0
  br i1 %6, label %7, label %17

7:                                                ; preds = %3
  %8 = load volatile ptr, ptr @pxDelayedTaskList, align 8, !tbaa !11
  %9 = load volatile i64, ptr %8, align 8, !tbaa !13
  %.not = icmp eq i64 %9, 0
  br i1 %.not, label %12, label %10

10:                                               ; preds = %7
  tail call void @vPortRaiseBASEPRI()
  br label %11

11:                                               ; preds = %11, %10
  br label %11

12:                                               ; preds = %7
  %13 = load volatile ptr, ptr @pxDelayedTaskList, align 8, !tbaa !11
  %14 = load volatile ptr, ptr @pxOverflowDelayedTaskList, align 8, !tbaa !11
  store volatile ptr %14, ptr @pxDelayedTaskList, align 8, !tbaa !11
  store volatile ptr %13, ptr @pxOverflowDelayedTaskList, align 8, !tbaa !11
  %15 = load volatile i64, ptr @xNumOfOverflows, align 8, !tbaa !5
  %16 = add nsw i64 %15, 1
  store volatile i64 %16, ptr @xNumOfOverflows, align 8, !tbaa !5
  tail call void @prvResetNextTaskUnblockTime()
  br label %17

17:                                               ; preds = %3, %12
  %18 = load volatile i32, ptr @xNextTaskUnblockTime, align 4, !tbaa !9
  %.not17 = icmp ult i32 %5, %18
  br i1 %.not17, label %52, label %.preheader

.preheader:                                       ; preds = %17
  %19 = load volatile ptr, ptr @pxDelayedTaskList, align 8, !tbaa !11
  %20 = load volatile i64, ptr %19, align 8, !tbaa !13
  %21 = icmp eq i64 %20, 0
  br i1 %21, label %.sink.split, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader, %43
  %.023 = phi i64 [ %spec.select, %43 ], [ 0, %.preheader ]
  %22 = load volatile ptr, ptr @pxDelayedTaskList, align 8, !tbaa !11
  %23 = getelementptr inbounds i8, ptr %22, i64 24
  %24 = load ptr, ptr %23, align 8, !tbaa !16
  %25 = getelementptr inbounds i8, ptr %24, i64 24
  %26 = load ptr, ptr %25, align 8, !tbaa !17
  %27 = getelementptr inbounds i8, ptr %26, i64 8
  %28 = load i32, ptr %27, align 8, !tbaa !19
  %29 = icmp ult i32 %5, %28
  br i1 %29, label %.sink.split, label %30

30:                                               ; preds = %.lr.ph
  %31 = tail call i64 @uxListRemove(ptr noundef nonnull %27) #3
  %32 = getelementptr inbounds i8, ptr %26, i64 80
  %33 = load ptr, ptr %32, align 8, !tbaa !21
  %.not18 = icmp eq ptr %33, null
  br i1 %.not18, label %37, label %34

34:                                               ; preds = %30
  %35 = getelementptr inbounds i8, ptr %26, i64 48
  %36 = tail call i64 @uxListRemove(ptr noundef nonnull %35) #3
  br label %37

37:                                               ; preds = %30, %34
  %38 = getelementptr inbounds i8, ptr %26, i64 88
  %39 = load i64, ptr %38, align 8, !tbaa !22
  %40 = load volatile i64, ptr @uxTopReadyPriority, align 8, !tbaa !5
  %41 = icmp ugt i64 %39, %40
  br i1 %41, label %42, label %43

42:                                               ; preds = %37
  store volatile i64 %39, ptr @uxTopReadyPriority, align 8, !tbaa !5
  br label %43

43:                                               ; preds = %42, %37
  %44 = getelementptr inbounds [32 x %struct.xLIST], ptr @pxReadyTasksLists, i64 0, i64 %39
  tail call void @vListInsertEnd(ptr noundef nonnull %44, ptr noundef nonnull %27) #3
  %45 = load i64, ptr %38, align 8, !tbaa !22
  %46 = load volatile ptr, ptr @pxCurrentTCB, align 8, !tbaa !11
  %47 = getelementptr inbounds i8, ptr %46, i64 88
  %48 = load i64, ptr %47, align 8, !tbaa !22
  %.not19 = icmp ult i64 %45, %48
  %spec.select = select i1 %.not19, i64 %.023, i64 1
  %49 = load volatile ptr, ptr @pxDelayedTaskList, align 8, !tbaa !11
  %50 = load volatile i64, ptr %49, align 8, !tbaa !13
  %51 = icmp eq i64 %50, 0
  br i1 %51, label %.sink.split, label %.lr.ph

.sink.split:                                      ; preds = %.lr.ph, %43, %.preheader
  %.sink = phi i32 [ -1, %.preheader ], [ -1, %43 ], [ %28, %.lr.ph ]
  %.2.ph = phi i64 [ 0, %.preheader ], [ %spec.select, %43 ], [ %.023, %.lr.ph ]
  store volatile i32 %.sink, ptr @xNextTaskUnblockTime, align 4, !tbaa !9
  br label %52

52:                                               ; preds = %.sink.split, %17
  %.2 = phi i64 [ 0, %17 ], [ %.2.ph, %.sink.split ]
  %53 = load volatile i64, ptr @xYieldPending, align 8, !tbaa !5
  %.not20 = icmp eq i64 %53, 0
  %spec.select21 = select i1 %.not20, i64 %.2, i64 1
  br label %57

54:                                               ; preds = %0
  %55 = load volatile i32, ptr @xPendedTicks, align 4, !tbaa !9
  %56 = add i32 %55, 1
  store volatile i32 %56, ptr @xPendedTicks, align 4, !tbaa !9
  br label %57

57:                                               ; preds = %54, %52
  %.4 = phi i64 [ %spec.select21, %52 ], [ 0, %54 ]
  ret i64 %.4
}

attributes #0 = { alwaysinline nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{!14, !6, i64 0}
!14 = !{!"xLIST", !6, i64 0, !12, i64 8, !15, i64 16}
!15 = !{!"xMINI_LIST_ITEM", !10, i64 0, !12, i64 8, !12, i64 16}
!16 = !{!14, !12, i64 24}
!17 = !{!18, !12, i64 24}
!18 = !{!"xLIST_ITEM", !10, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !12, i64 32}
!19 = !{!20, !10, i64 8}
!20 = !{!"tskTaskControlBlock", !12, i64 0, !18, i64 8, !18, i64 48, !6, i64 88, !12, i64 96, !7, i64 104, !12, i64 128, !6, i64 136, !6, i64 144, !12, i64 152, !7, i64 160, !7, i64 200, !7, i64 212, !7, i64 215, !7, i64 216, !10, i64 220}
!21 = !{!20, !12, i64 80}
!22 = !{!20, !6, i64 88}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass