; LLVM IR from CactiLab/Sherloc-Cortex-M-CFVD :: Sherloc_runtime/freertos (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.tskTaskControlBlock = type { ptr, %struct.MPU_SETTINGS, %struct.xLIST_ITEM, %struct.xLIST_ITEM, i64, ptr, [10 x i8], i64, i64, i64, i64, [1 x i32], [1 x i8], i8, i8 }
%struct.MPU_SETTINGS = type { i32, [4 x %struct.MPURegionSettings] }
%struct.MPURegionSettings = type { i32, i32 }
%struct.xLIST_ITEM = type { i32, ptr, ptr, ptr, ptr }

@pxCurrentTCB = external dso_local global ptr, section "privileged_data", align 8
@pxReadyTasksLists = external hidden global [5 x %struct.xLIST], section "privileged_data", align 16
@uxTopReadyPriority = external hidden global i64, section "privileged_data", 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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

declare void @vPortEnterCritical() #1

declare i64 @uxListRemove(ptr noundef) #1 section "privileged_functions"

declare void @vPortExitCritical() #1

declare void @vPortYield() #1

; Function Attrs: nounwind uwtable
define dso_local void @vTaskPrioritySet(ptr noundef %0, i64 noundef %1) #2 section "privileged_functions" {
  %3 = alloca ptr, align 8
  %4 = alloca i64, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca ptr, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store i64 %1, ptr %4, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #3
  store i64 0, ptr %8, align 8, !tbaa !9
  %10 = load i64, ptr %4, align 8, !tbaa !9
  %11 = icmp ult i64 %10, 5
  %12 = zext i1 %11 to i32
  %13 = icmp eq i32 %12, 0
  br i1 %13, label %14, label %16

14:                                               ; preds = %2
  call void asm sideeffect " cpsid i ", "~{memory},~{dirflag},~{fpsr},~{flags}"() #3, !srcloc !11
  br label %15

15:                                               ; preds = %15, %14
  br label %15

16:                                               ; preds = %2
  %17 = load i64, ptr %4, align 8, !tbaa !9
  %18 = icmp uge i64 %17, 5
  br i1 %18, label %19, label %20

19:                                               ; preds = %16
  store i64 4, ptr %4, align 8, !tbaa !9
  br label %21

20:                                               ; preds = %16
  br label %21

21:                                               ; preds = %20, %19
  call void @vPortEnterCritical()
  %22 = load ptr, ptr %3, align 8, !tbaa !5
  %23 = icmp eq ptr %22, null
  br i1 %23, label %24, label %26

24:                                               ; preds = %21
  %25 = load volatile ptr, ptr @pxCurrentTCB, align 8, !tbaa !5
  br label %28

26:                                               ; preds = %21
  %27 = load ptr, ptr %3, align 8, !tbaa !5
  br label %28

28:                                               ; preds = %26, %24
  %29 = phi ptr [ %25, %24 ], [ %27, %26 ]
  store ptr %29, ptr %5, align 8, !tbaa !5
  %30 = load ptr, ptr %5, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.tskTaskControlBlock, ptr %30, i32 0, i32 9
  %32 = load i64, ptr %31, align 8, !tbaa !12
  store i64 %32, ptr %6, align 8, !tbaa !9
  %33 = load i64, ptr %6, align 8, !tbaa !9
  %34 = load i64, ptr %4, align 8, !tbaa !9
  %35 = icmp ne i64 %33, %34
  br i1 %35, label %36, label %174

36:                                               ; preds = %28
  %37 = load i64, ptr %4, align 8, !tbaa !9
  %38 = load i64, ptr %6, align 8, !tbaa !9
  %39 = icmp ugt i64 %37, %38
  br i1 %39, label %40, label %55

40:                                               ; preds = %36
  %41 = load ptr, ptr %5, align 8, !tbaa !5
  %42 = load volatile ptr, ptr @pxCurrentTCB, align 8, !tbaa !5
  %43 = icmp ne ptr %41, %42
  br i1 %43, label %44, label %53

44:                                               ; preds = %40
  %45 = load i64, ptr %4, align 8, !tbaa !9
  %46 = load volatile ptr, ptr @pxCurrentTCB, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.tskTaskControlBlock, ptr %46, i32 0, i32 4
  %48 = load i64, ptr %47, align 8, !tbaa !17
  %49 = icmp uge i64 %45, %48
  br i1 %49, label %50, label %51

50:                                               ; preds = %44
  store i64 1, ptr %8, align 8, !tbaa !9
  br label %52

51:                                               ; preds = %44
  br label %52

52:                                               ; preds = %51, %50
  br label %54

53:                                               ; preds = %40
  br label %54

54:                                               ; preds = %53, %52
  br label %62

55:                                               ; preds = %36
  %56 = load ptr, ptr %5, align 8, !tbaa !5
  %57 = load volatile ptr, ptr @pxCurrentTCB, align 8, !tbaa !5
  %58 = icmp eq ptr %56, %57
  br i1 %58, label %59, label %60

59:                                               ; preds = %55
  store i64 1, ptr %8, align 8, !tbaa !9
  br label %61

60:                                               ; preds = %55
  br label %61

61:                                               ; preds = %60, %59
  br label %62

62:                                               ; preds = %61, %54
  %63 = load ptr, ptr %5, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.tskTaskControlBlock, ptr %63, i32 0, i32 4
  %65 = load i64, ptr %64, align 8, !tbaa !17
  store i64 %65, ptr %7, align 8, !tbaa !9
  %66 = load ptr, ptr %5, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.tskTaskControlBlock, ptr %66, i32 0, i32 9
  %68 = load i64, ptr %67, align 8, !tbaa !12
  %69 = load ptr, ptr %5, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.tskTaskControlBlock, ptr %69, i32 0, i32 4
  %71 = load i64, ptr %70, align 8, !tbaa !17
  %72 = icmp eq i64 %68, %71
  br i1 %72, label %73, label %77

73:                                               ; preds = %62
  %74 = load i64, ptr %4, align 8, !tbaa !9
  %75 = load ptr, ptr %5, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.tskTaskControlBlock, ptr %75, i32 0, i32 4
  store i64 %74, ptr %76, align 8, !tbaa !17
  br label %78

77:                                               ; preds = %62
  br label %78

78:                                               ; preds = %77, %73
  %79 = load i64, ptr %4, align 8, !tbaa !9
  %80 = load ptr, ptr %5, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.tskTaskControlBlock, ptr %80, i32 0, i32 9
  store i64 %79, ptr %81, align 8, !tbaa !12
  %82 = load ptr, ptr %5, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.tskTaskControlBlock, ptr %82, i32 0, i32 3
  %84 = getelementptr inbounds %struct.xLIST_ITEM, ptr %83, i32 0, i32 0
  %85 = load i32, ptr %84, align 8, !tbaa !18
  %86 = zext i32 %85 to i64
  %87 = and i64 %86, 2147483648
  %88 = icmp eq i64 %87, 0
  br i1 %88, label %89, label %96

89:                                               ; preds = %78
  %90 = load i64, ptr %4, align 8, !tbaa !9
  %91 = trunc i64 %90 to i32
  %92 = sub i32 5, %91
  %93 = load ptr, ptr %5, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.tskTaskControlBlock, ptr %93, i32 0, i32 3
  %95 = getelementptr inbounds %struct.xLIST_ITEM, ptr %94, i32 0, i32 0
  store i32 %92, ptr %95, align 8, !tbaa !18
  br label %97

96:                                               ; preds = %78
  br label %97

97:                                               ; preds = %96, %89
  %98 = load ptr, ptr %5, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.tskTaskControlBlock, ptr %98, i32 0, i32 2
  %100 = getelementptr inbounds %struct.xLIST_ITEM, ptr %99, i32 0, i32 4
  %101 = load ptr, ptr %100, align 8, !tbaa !19
  %102 = load i64, ptr %7, align 8, !tbaa !9
  %103 = getelementptr inbounds [5 x %struct.xLIST], ptr @pxReadyTasksLists, i64 0, i64 %102
  %104 = icmp eq ptr %101, %103
  %105 = zext i1 %104 to i64
  %106 = select i1 %104, i64 1, i64 0
  %107 = icmp ne i64 %106, 0
  br i1 %107, label %108, label %166

108:                                              ; preds = %97
  %109 = load ptr, ptr %5, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct.tskTaskControlBlock, ptr %109, i32 0, i32 2
  %111 = call i64 @uxListRemove(ptr noundef %110)
  %112 = icmp eq i64 %111, 0
  br i1 %112, label %113, label %114

113:                                              ; preds = %108
  br label %115

114:                                              ; preds = %108
  br label %115

115:                                              ; preds = %114, %113
  %116 = load ptr, ptr %5, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct.tskTaskControlBlock, ptr %116, i32 0, i32 4
  %118 = load i64, ptr %117, align 8, !tbaa !17
  %119 = load volatile i64, ptr @uxTopReadyPriority, align 8, !tbaa !9
  %120 = icmp ugt i64 %118, %119
  br i1 %120, label %121, label %125

121:                                              ; preds = %115
  %122 = load ptr, ptr %5, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.tskTaskControlBlock, ptr %122, i32 0, i32 4
  %124 = load i64, ptr %123, align 8, !tbaa !17
  store volatile i64 %124, ptr @uxTopReadyPriority, align 8, !tbaa !9
  br label %125

125:                                              ; preds = %121, %115
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #3
  %126 = load ptr, ptr %5, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct.tskTaskControlBlock, ptr %126, i32 0, i32 4
  %128 = load i64, ptr %127, align 8, !tbaa !17
  %129 = getelementptr inbounds [5 x %struct.xLIST], ptr @pxReadyTasksLists, i64 0, i64 %128
  %130 = getelementptr inbounds %struct.xLIST, ptr %129, i32 0, i32 1
  %131 = load ptr, ptr %130, align 8, !tbaa !20
  store ptr %131, ptr %9, align 8, !tbaa !5
  %132 = load ptr, ptr %9, align 8, !tbaa !5
  %133 = load ptr, ptr %5, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct.tskTaskControlBlock, ptr %133, i32 0, i32 2
  %135 = getelementptr inbounds %struct.xLIST_ITEM, ptr %134, i32 0, i32 1
  store ptr %132, ptr %135, align 8, !tbaa !23
  %136 = load ptr, ptr %9, align 8, !tbaa !5
  %137 = getelementptr inbounds %struct.xLIST_ITEM, ptr %136, i32 0, i32 2
  %138 = load ptr, ptr %137, align 8, !tbaa !24
  %139 = load ptr, ptr %5, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.tskTaskControlBlock, ptr %139, i32 0, i32 2
  %141 = getelementptr inbounds %struct.xLIST_ITEM, ptr %140, i32 0, i32 2
  store ptr %138, ptr %141, align 8, !tbaa !25
  %142 = load ptr, ptr %5, align 8, !tbaa !5
  %143 = getelementptr inbounds %struct.tskTaskControlBlock, ptr %142, i32 0, i32 2
  %144 = load ptr, ptr %9, align 8, !tbaa !5
  %145 = getelementptr inbounds %struct.xLIST_ITEM, ptr %144, i32 0, i32 2
  %146 = load ptr, ptr %145, align 8, !tbaa !24
  %147 = getelementptr inbounds %struct.xLIST_ITEM, ptr %146, i32 0, i32 1
  store ptr %143, ptr %147, align 8, !tbaa !26
  %148 = load ptr, ptr %5, align 8, !tbaa !5
  %149 = getelementptr inbounds %struct.tskTaskControlBlock, ptr %148, i32 0, i32 2
  %150 = load ptr, ptr %9, align 8, !tbaa !5
  %151 = getelementptr inbounds %struct.xLIST_ITEM, ptr %150, i32 0, i32 2
  store ptr %149, ptr %151, align 8, !tbaa !24
  %152 = load ptr, ptr %5, align 8, !tbaa !5
  %153 = getelementptr inbounds %struct.tskTaskControlBlock, ptr %152, i32 0, i32 4
  %154 = load i64, ptr %153, align 8, !tbaa !17
  %155 = getelementptr inbounds [5 x %struct.xLIST], ptr @pxReadyTasksLists, i64 0, i64 %154
  %156 = load ptr, ptr %5, align 8, !tbaa !5
  %157 = getelementptr inbounds %struct.tskTaskControlBlock, ptr %156, i32 0, i32 2
  %158 = getelementptr inbounds %struct.xLIST_ITEM, ptr %157, i32 0, i32 4
  store ptr %155, ptr %158, align 8, !tbaa !19
  %159 = load ptr, ptr %5, align 8, !tbaa !5
  %160 = getelementptr inbounds %struct.tskTaskControlBlock, ptr %159, i32 0, i32 4
  %161 = load i64, ptr %160, align 8, !tbaa !17
  %162 = getelementptr inbounds [5 x %struct.xLIST], ptr @pxReadyTasksLists, i64 0, i64 %161
  %163 = getelementptr inbounds %struct.xLIST, ptr %162, i32 0, i32 0
  %164 = load volatile i64, ptr %163, align 8, !tbaa !27
  %165 = add i64 %164, 1
  store volatile i64 %165, ptr %163, align 8, !tbaa !27
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  br label %167

166:                                              ; preds = %97
  br label %167

167:                                              ; preds = %166, %125
  %168 = load i64, ptr %8, align 8, !tbaa !9
  %169 = icmp ne i64 %168, 0
  br i1 %169, label %170, label %171

170:                                              ; preds = %167
  call void @vPortYield()
  br label %172

171:                                              ; preds = %167
  br label %172

172:                                              ; preds = %171, %170
  %173 = load i64, ptr %7, align 8, !tbaa !9
  br label %174

174:                                              ; preds = %172, %28
  call void @vPortExitCritical()
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #3
  ret void
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{i64 2148429316}
!12 = !{!13, !10, i64 176}
!13 = !{!"tskTaskControlBlock", !6, i64 0, !14, i64 8, !16, i64 48, !16, i64 88, !10, i64 128, !6, i64 136, !7, i64 144, !10, i64 160, !10, i64 168, !10, i64 176, !10, i64 184, !7, i64 192, !7, i64 196, !7, i64 197, !7, i64 198}
!14 = !{!"MPU_SETTINGS", !15, i64 0, !7, i64 4}
!15 = !{!"int", !7, i64 0}
!16 = !{!"xLIST_ITEM", !15, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32}
!17 = !{!13, !10, i64 128}
!18 = !{!13, !15, i64 88}
!19 = !{!13, !6, i64 80}
!20 = !{!21, !6, i64 8}
!21 = !{!"xLIST", !10, i64 0, !6, i64 8, !22, i64 16}
!22 = !{!"xMINI_LIST_ITEM", !15, i64 0, !6, i64 8, !6, i64 16}
!23 = !{!13, !6, i64 56}
!24 = !{!16, !6, i64 16}
!25 = !{!13, !6, i64 64}
!26 = !{!16, !6, i64 8}
!27 = !{!21, !10, i64 0}


; 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, section "privileged_data", align 8
@pxReadyTasksLists = external hidden global [5 x %struct.xLIST], section "privileged_data", align 16
@uxTopReadyPriority = external hidden global i64, section "privileged_data", align 8

declare void @vPortEnterCritical() local_unnamed_addr #0

declare i64 @uxListRemove(ptr noundef) local_unnamed_addr #0 section "privileged_functions"

declare void @vPortExitCritical() local_unnamed_addr #0

declare void @vPortYield() local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local void @vTaskPrioritySet(ptr noundef %0, i64 noundef %1) local_unnamed_addr #1 section "privileged_functions" {
  %3 = icmp ugt i64 %1, 4
  br i1 %3, label %4, label %6

4:                                                ; preds = %2
  tail call void asm sideeffect " cpsid i ", "~{memory},~{dirflag},~{fpsr},~{flags}"() #2, !srcloc !5
  br label %5

5:                                                ; preds = %5, %4
  br label %5

6:                                                ; preds = %2
  tail call void @vPortEnterCritical() #2
  %7 = icmp eq ptr %0, null
  br i1 %7, label %8, label %10

8:                                                ; preds = %6
  %9 = load volatile ptr, ptr @pxCurrentTCB, align 8, !tbaa !6
  br label %10

10:                                               ; preds = %6, %8
  %11 = phi ptr [ %9, %8 ], [ %0, %6 ]
  %12 = getelementptr inbounds i8, ptr %11, i64 176
  %13 = load i64, ptr %12, align 8, !tbaa !10
  %.not = icmp eq i64 %13, %1
  br i1 %.not, label %61, label %14

14:                                               ; preds = %10
  %15 = icmp ult i64 %13, %1
  %16 = load volatile ptr, ptr @pxCurrentTCB, align 8, !tbaa !6
  br i1 %15, label %17, label %22

17:                                               ; preds = %14
  %.not42 = icmp eq ptr %11, %16
  br i1 %.not42, label %24, label %18

18:                                               ; preds = %17
  %19 = load volatile ptr, ptr @pxCurrentTCB, align 8, !tbaa !6
  %20 = getelementptr inbounds i8, ptr %19, i64 128
  %21 = load i64, ptr %20, align 8, !tbaa !16
  %.not43 = icmp ugt i64 %21, %1
  br label %24

22:                                               ; preds = %14
  %23 = icmp ne ptr %11, %16
  br label %24

24:                                               ; preds = %22, %18, %17
  %.not44 = phi i1 [ true, %17 ], [ %.not43, %18 ], [ %23, %22 ]
  %25 = getelementptr inbounds i8, ptr %11, i64 128
  %26 = load i64, ptr %25, align 8, !tbaa !16
  %27 = icmp eq i64 %13, %26
  br i1 %27, label %28, label %29

28:                                               ; preds = %24
  store i64 %1, ptr %25, align 8, !tbaa !16
  br label %29

29:                                               ; preds = %24, %28
  store i64 %1, ptr %12, align 8, !tbaa !10
  %30 = getelementptr inbounds i8, ptr %11, i64 88
  %31 = load i32, ptr %30, align 8, !tbaa !17
  %32 = icmp sgt i32 %31, -1
  br i1 %32, label %33, label %36

33:                                               ; preds = %29
  %34 = trunc nuw i64 %1 to i32
  %35 = sub nuw nsw i32 5, %34
  store i32 %35, ptr %30, align 8, !tbaa !17
  br label %36

36:                                               ; preds = %29, %33
  %37 = getelementptr inbounds i8, ptr %11, i64 48
  %38 = getelementptr inbounds i8, ptr %11, i64 80
  %39 = load ptr, ptr %38, align 8, !tbaa !18
  %40 = getelementptr inbounds [5 x %struct.xLIST], ptr @pxReadyTasksLists, i64 0, i64 %26
  %41 = icmp eq ptr %39, %40
  br i1 %41, label %42, label %59

42:                                               ; preds = %36
  %43 = tail call i64 @uxListRemove(ptr noundef nonnull %37) #2
  %44 = load i64, ptr %25, align 8, !tbaa !16
  %45 = load volatile i64, ptr @uxTopReadyPriority, align 8, !tbaa !19
  %46 = icmp ugt i64 %44, %45
  br i1 %46, label %47, label %48

47:                                               ; preds = %42
  store volatile i64 %44, ptr @uxTopReadyPriority, align 8, !tbaa !19
  br label %48

48:                                               ; preds = %47, %42
  %49 = getelementptr inbounds [5 x %struct.xLIST], ptr @pxReadyTasksLists, i64 0, i64 %44, i32 1
  %50 = load ptr, ptr %49, align 8, !tbaa !20
  %51 = getelementptr inbounds i8, ptr %11, i64 56
  store ptr %50, ptr %51, align 8, !tbaa !23
  %52 = getelementptr inbounds i8, ptr %50, i64 16
  %53 = load ptr, ptr %52, align 8, !tbaa !24
  %54 = getelementptr inbounds i8, ptr %11, i64 64
  store ptr %53, ptr %54, align 8, !tbaa !25
  %55 = getelementptr inbounds i8, ptr %53, i64 8
  store ptr %37, ptr %55, align 8, !tbaa !26
  store ptr %37, ptr %52, align 8, !tbaa !24
  %56 = getelementptr inbounds [5 x %struct.xLIST], ptr @pxReadyTasksLists, i64 0, i64 %44
  store ptr %56, ptr %38, align 8, !tbaa !18
  %57 = load volatile i64, ptr %56, align 8, !tbaa !27
  %58 = add i64 %57, 1
  store volatile i64 %58, ptr %56, align 8, !tbaa !27
  br label %59

59:                                               ; preds = %36, %48
  br i1 %.not44, label %61, label %60

60:                                               ; preds = %59
  tail call void @vPortYield() #2
  br label %61

61:                                               ; preds = %60, %59, %10
  tail call void @vPortExitCritical() #2
  ret void
}

attributes #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 = { 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 = { 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 = !{i64 2148429316}
!6 = !{!7, !7, i64 0}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !15, i64 176}
!11 = !{!"tskTaskControlBlock", !7, i64 0, !12, i64 8, !14, i64 48, !14, i64 88, !15, i64 128, !7, i64 136, !8, i64 144, !15, i64 160, !15, i64 168, !15, i64 176, !15, i64 184, !8, i64 192, !8, i64 196, !8, i64 197, !8, i64 198}
!12 = !{!"MPU_SETTINGS", !13, i64 0, !8, i64 4}
!13 = !{!"int", !8, i64 0}
!14 = !{!"xLIST_ITEM", !13, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32}
!15 = !{!"long", !8, i64 0}
!16 = !{!11, !15, i64 128}
!17 = !{!11, !13, i64 88}
!18 = !{!11, !7, i64 80}
!19 = !{!15, !15, i64 0}
!20 = !{!21, !7, i64 8}
!21 = !{!"xLIST", !15, i64 0, !7, i64 8, !22, i64 16}
!22 = !{!"xMINI_LIST_ITEM", !13, i64 0, !7, i64 8, !7, i64 16}
!23 = !{!11, !7, i64 56}
!24 = !{!14, !7, i64 16}
!25 = !{!11, !7, i64 64}
!26 = !{!14, !7, i64 8}
!27 = !{!21, !15, i64 0}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,SROAPass,SimplifyCFGPass,TailCallElimPass