; 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.xLIST_ITEM = type { i32, ptr, ptr, 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 }

@pxCurrentTCB = external dso_local global ptr, section "privileged_data", align 8
@uxSchedulerSuspended = external hidden global i64, 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
@xYieldPending = 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

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

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

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

15:                                               ; preds = %2
  %16 = load i32, ptr %4, align 4, !tbaa !9
  %17 = zext i32 %16 to i64
  %18 = or i64 %17, 2147483648
  %19 = trunc i64 %18 to i32
  %20 = load ptr, ptr %3, align 8, !tbaa !5
  %21 = getelementptr inbounds %struct.xLIST_ITEM, ptr %20, i32 0, i32 0
  store i32 %19, ptr %21, align 8, !tbaa !14
  %22 = load ptr, ptr %3, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct.xLIST_ITEM, ptr %22, i32 0, i32 3
  %24 = load ptr, ptr %23, align 8, !tbaa !16
  store ptr %24, ptr %5, align 8, !tbaa !5
  %25 = load ptr, ptr %5, align 8, !tbaa !5
  %26 = icmp eq ptr %25, null
  br i1 %26, label %27, label %29

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

28:                                               ; preds = %28, %27
  br label %28

29:                                               ; preds = %15
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #2
  %30 = load ptr, ptr %3, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.xLIST_ITEM, ptr %30, i32 0, i32 4
  %32 = load ptr, ptr %31, align 8, !tbaa !18
  store ptr %32, ptr %6, align 8, !tbaa !5
  %33 = load ptr, ptr %3, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.xLIST_ITEM, ptr %33, i32 0, i32 2
  %35 = load ptr, ptr %34, align 8, !tbaa !19
  %36 = load ptr, ptr %3, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.xLIST_ITEM, ptr %36, i32 0, i32 1
  %38 = load ptr, ptr %37, align 8, !tbaa !20
  %39 = getelementptr inbounds %struct.xLIST_ITEM, ptr %38, i32 0, i32 2
  store ptr %35, ptr %39, align 8, !tbaa !19
  %40 = load ptr, ptr %3, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct.xLIST_ITEM, ptr %40, i32 0, i32 1
  %42 = load ptr, ptr %41, align 8, !tbaa !20
  %43 = load ptr, ptr %3, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct.xLIST_ITEM, ptr %43, i32 0, i32 2
  %45 = load ptr, ptr %44, align 8, !tbaa !19
  %46 = getelementptr inbounds %struct.xLIST_ITEM, ptr %45, i32 0, i32 1
  store ptr %42, ptr %46, align 8, !tbaa !20
  %47 = load ptr, ptr %6, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.xLIST, ptr %47, i32 0, i32 1
  %49 = load ptr, ptr %48, align 8, !tbaa !21
  %50 = load ptr, ptr %3, align 8, !tbaa !5
  %51 = icmp eq ptr %49, %50
  br i1 %51, label %52, label %58

52:                                               ; preds = %29
  %53 = load ptr, ptr %3, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.xLIST_ITEM, ptr %53, i32 0, i32 2
  %55 = load ptr, ptr %54, align 8, !tbaa !19
  %56 = load ptr, ptr %6, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.xLIST, ptr %56, i32 0, i32 1
  store ptr %55, ptr %57, align 8, !tbaa !21
  br label %58

58:                                               ; preds = %52, %29
  %59 = load ptr, ptr %3, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.xLIST_ITEM, ptr %59, i32 0, i32 4
  store ptr null, ptr %60, align 8, !tbaa !18
  %61 = load ptr, ptr %6, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.xLIST, ptr %61, i32 0, i32 0
  %63 = load volatile i64, ptr %62, align 8, !tbaa !24
  %64 = add i64 %63, -1
  store volatile i64 %64, ptr %62, align 8, !tbaa !24
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #2
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #2
  %65 = load ptr, ptr %5, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.tskTaskControlBlock, ptr %65, i32 0, i32 2
  %67 = getelementptr inbounds %struct.xLIST_ITEM, ptr %66, i32 0, i32 4
  %68 = load ptr, ptr %67, align 8, !tbaa !25
  store ptr %68, ptr %7, align 8, !tbaa !5
  %69 = load ptr, ptr %5, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.tskTaskControlBlock, ptr %69, i32 0, i32 2
  %71 = getelementptr inbounds %struct.xLIST_ITEM, ptr %70, i32 0, i32 2
  %72 = load ptr, ptr %71, align 8, !tbaa !28
  %73 = load ptr, ptr %5, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.tskTaskControlBlock, ptr %73, i32 0, i32 2
  %75 = getelementptr inbounds %struct.xLIST_ITEM, ptr %74, i32 0, i32 1
  %76 = load ptr, ptr %75, align 8, !tbaa !29
  %77 = getelementptr inbounds %struct.xLIST_ITEM, ptr %76, i32 0, i32 2
  store ptr %72, ptr %77, align 8, !tbaa !19
  %78 = load ptr, ptr %5, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.tskTaskControlBlock, ptr %78, i32 0, i32 2
  %80 = getelementptr inbounds %struct.xLIST_ITEM, ptr %79, i32 0, i32 1
  %81 = load ptr, ptr %80, align 8, !tbaa !29
  %82 = load ptr, ptr %5, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.tskTaskControlBlock, ptr %82, i32 0, i32 2
  %84 = getelementptr inbounds %struct.xLIST_ITEM, ptr %83, i32 0, i32 2
  %85 = load ptr, ptr %84, align 8, !tbaa !28
  %86 = getelementptr inbounds %struct.xLIST_ITEM, ptr %85, i32 0, i32 1
  store ptr %81, ptr %86, align 8, !tbaa !20
  %87 = load ptr, ptr %7, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.xLIST, ptr %87, i32 0, i32 1
  %89 = load ptr, ptr %88, align 8, !tbaa !21
  %90 = load ptr, ptr %5, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.tskTaskControlBlock, ptr %90, i32 0, i32 2
  %92 = icmp eq ptr %89, %91
  br i1 %92, label %93, label %100

93:                                               ; preds = %58
  %94 = load ptr, ptr %5, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.tskTaskControlBlock, ptr %94, i32 0, i32 2
  %96 = getelementptr inbounds %struct.xLIST_ITEM, ptr %95, i32 0, i32 2
  %97 = load ptr, ptr %96, align 8, !tbaa !28
  %98 = load ptr, ptr %7, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.xLIST, ptr %98, i32 0, i32 1
  store ptr %97, ptr %99, align 8, !tbaa !21
  br label %100

100:                                              ; preds = %93, %58
  %101 = load ptr, ptr %5, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.tskTaskControlBlock, ptr %101, i32 0, i32 2
  %103 = getelementptr inbounds %struct.xLIST_ITEM, ptr %102, i32 0, i32 4
  store ptr null, ptr %103, align 8, !tbaa !25
  %104 = load ptr, ptr %7, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.xLIST, ptr %104, i32 0, i32 0
  %106 = load volatile i64, ptr %105, align 8, !tbaa !24
  %107 = add i64 %106, -1
  store volatile i64 %107, ptr %105, align 8, !tbaa !24
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #2
  %108 = load ptr, ptr %5, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct.tskTaskControlBlock, ptr %108, i32 0, i32 4
  %110 = load i64, ptr %109, align 8, !tbaa !30
  %111 = load volatile i64, ptr @uxTopReadyPriority, align 8, !tbaa !11
  %112 = icmp ugt i64 %110, %111
  br i1 %112, label %113, label %117

113:                                              ; preds = %100
  %114 = load ptr, ptr %5, align 8, !tbaa !5
  %115 = getelementptr inbounds %struct.tskTaskControlBlock, ptr %114, i32 0, i32 4
  %116 = load i64, ptr %115, align 8, !tbaa !30
  store volatile i64 %116, ptr @uxTopReadyPriority, align 8, !tbaa !11
  br label %117

117:                                              ; preds = %113, %100
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #2
  %118 = load ptr, ptr %5, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct.tskTaskControlBlock, ptr %118, i32 0, i32 4
  %120 = load i64, ptr %119, align 8, !tbaa !30
  %121 = getelementptr inbounds [5 x %struct.xLIST], ptr @pxReadyTasksLists, i64 0, i64 %120
  %122 = getelementptr inbounds %struct.xLIST, ptr %121, i32 0, i32 1
  %123 = load ptr, ptr %122, align 8, !tbaa !21
  store ptr %123, ptr %8, align 8, !tbaa !5
  %124 = load ptr, ptr %8, align 8, !tbaa !5
  %125 = load ptr, ptr %5, align 8, !tbaa !5
  %126 = getelementptr inbounds %struct.tskTaskControlBlock, ptr %125, i32 0, i32 2
  %127 = getelementptr inbounds %struct.xLIST_ITEM, ptr %126, i32 0, i32 1
  store ptr %124, ptr %127, align 8, !tbaa !29
  %128 = load ptr, ptr %8, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.xLIST_ITEM, ptr %128, i32 0, i32 2
  %130 = load ptr, ptr %129, align 8, !tbaa !19
  %131 = load ptr, ptr %5, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct.tskTaskControlBlock, ptr %131, i32 0, i32 2
  %133 = getelementptr inbounds %struct.xLIST_ITEM, ptr %132, i32 0, i32 2
  store ptr %130, ptr %133, align 8, !tbaa !28
  %134 = load ptr, ptr %5, align 8, !tbaa !5
  %135 = getelementptr inbounds %struct.tskTaskControlBlock, ptr %134, i32 0, i32 2
  %136 = load ptr, ptr %8, align 8, !tbaa !5
  %137 = getelementptr inbounds %struct.xLIST_ITEM, ptr %136, i32 0, i32 2
  %138 = load ptr, ptr %137, align 8, !tbaa !19
  %139 = getelementptr inbounds %struct.xLIST_ITEM, ptr %138, i32 0, i32 1
  store ptr %135, ptr %139, align 8, !tbaa !20
  %140 = load ptr, ptr %5, align 8, !tbaa !5
  %141 = getelementptr inbounds %struct.tskTaskControlBlock, ptr %140, i32 0, i32 2
  %142 = load ptr, ptr %8, align 8, !tbaa !5
  %143 = getelementptr inbounds %struct.xLIST_ITEM, ptr %142, i32 0, i32 2
  store ptr %141, ptr %143, align 8, !tbaa !19
  %144 = load ptr, ptr %5, align 8, !tbaa !5
  %145 = getelementptr inbounds %struct.tskTaskControlBlock, ptr %144, i32 0, i32 4
  %146 = load i64, ptr %145, align 8, !tbaa !30
  %147 = getelementptr inbounds [5 x %struct.xLIST], ptr @pxReadyTasksLists, i64 0, i64 %146
  %148 = load ptr, ptr %5, align 8, !tbaa !5
  %149 = getelementptr inbounds %struct.tskTaskControlBlock, ptr %148, i32 0, i32 2
  %150 = getelementptr inbounds %struct.xLIST_ITEM, ptr %149, i32 0, i32 4
  store ptr %147, ptr %150, align 8, !tbaa !25
  %151 = load ptr, ptr %5, align 8, !tbaa !5
  %152 = getelementptr inbounds %struct.tskTaskControlBlock, ptr %151, i32 0, i32 4
  %153 = load i64, ptr %152, align 8, !tbaa !30
  %154 = getelementptr inbounds [5 x %struct.xLIST], ptr @pxReadyTasksLists, i64 0, i64 %153
  %155 = getelementptr inbounds %struct.xLIST, ptr %154, i32 0, i32 0
  %156 = load volatile i64, ptr %155, align 8, !tbaa !24
  %157 = add i64 %156, 1
  store volatile i64 %157, ptr %155, align 8, !tbaa !24
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #2
  %158 = load ptr, ptr %5, align 8, !tbaa !5
  %159 = getelementptr inbounds %struct.tskTaskControlBlock, ptr %158, i32 0, i32 4
  %160 = load i64, ptr %159, align 8, !tbaa !30
  %161 = load volatile ptr, ptr @pxCurrentTCB, align 8, !tbaa !5
  %162 = getelementptr inbounds %struct.tskTaskControlBlock, ptr %161, i32 0, i32 4
  %163 = load i64, ptr %162, align 8, !tbaa !30
  %164 = icmp ugt i64 %160, %163
  br i1 %164, label %165, label %166

165:                                              ; preds = %117
  store volatile i64 1, ptr @xYieldPending, align 8, !tbaa !11
  br label %166

166:                                              ; preds = %165, %117
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #2
  ret void
}

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


; 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
@uxSchedulerSuspended = external hidden global i64, 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
@xYieldPending = external hidden global i64, section "privileged_data", align 8

; Function Attrs: nounwind uwtable
define dso_local void @vTaskRemoveFromUnorderedEventList(ptr noundef %0, i32 noundef %1) local_unnamed_addr #0 section "privileged_functions" {
  %3 = load volatile i64, ptr @uxSchedulerSuspended, align 8, !tbaa !5
  %.not = icmp eq i64 %3, 0
  br i1 %.not, label %4, label %6

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

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

6:                                                ; preds = %2
  %7 = or i32 %1, -2147483648
  store i32 %7, ptr %0, align 8, !tbaa !10
  %8 = getelementptr inbounds i8, ptr %0, i64 24
  %9 = load ptr, ptr %8, align 8, !tbaa !14
  %10 = icmp eq ptr %9, null
  br i1 %10, label %11, label %13

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

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

13:                                               ; preds = %6
  %14 = getelementptr inbounds i8, ptr %0, i64 32
  %15 = load ptr, ptr %14, align 8, !tbaa !16
  %16 = getelementptr inbounds i8, ptr %0, i64 16
  %17 = load ptr, ptr %16, align 8, !tbaa !17
  %18 = getelementptr inbounds i8, ptr %0, i64 8
  %19 = load ptr, ptr %18, align 8, !tbaa !18
  %20 = getelementptr inbounds i8, ptr %19, i64 16
  store ptr %17, ptr %20, align 8, !tbaa !17
  %21 = getelementptr inbounds i8, ptr %17, i64 8
  store ptr %19, ptr %21, align 8, !tbaa !18
  %22 = getelementptr inbounds i8, ptr %15, i64 8
  %23 = load ptr, ptr %22, align 8, !tbaa !19
  %24 = icmp eq ptr %23, %0
  br i1 %24, label %25, label %26

25:                                               ; preds = %13
  store ptr %17, ptr %22, align 8, !tbaa !19
  br label %26

26:                                               ; preds = %25, %13
  store ptr null, ptr %14, align 8, !tbaa !16
  %27 = load volatile i64, ptr %15, align 8, !tbaa !22
  %28 = add i64 %27, -1
  store volatile i64 %28, ptr %15, align 8, !tbaa !22
  %29 = getelementptr inbounds i8, ptr %9, i64 48
  %30 = getelementptr inbounds i8, ptr %9, i64 80
  %31 = load ptr, ptr %30, align 8, !tbaa !23
  %32 = getelementptr inbounds i8, ptr %9, i64 64
  %33 = load ptr, ptr %32, align 8, !tbaa !26
  %34 = getelementptr inbounds i8, ptr %9, i64 56
  %35 = load ptr, ptr %34, align 8, !tbaa !27
  %36 = getelementptr inbounds i8, ptr %35, i64 16
  store ptr %33, ptr %36, align 8, !tbaa !17
  %37 = getelementptr inbounds i8, ptr %33, i64 8
  store ptr %35, ptr %37, align 8, !tbaa !18
  %38 = getelementptr inbounds i8, ptr %31, i64 8
  %39 = load ptr, ptr %38, align 8, !tbaa !19
  %40 = icmp eq ptr %39, %29
  br i1 %40, label %41, label %42

41:                                               ; preds = %26
  store ptr %33, ptr %38, align 8, !tbaa !19
  br label %42

42:                                               ; preds = %41, %26
  %43 = load volatile i64, ptr %31, align 8, !tbaa !22
  %44 = add i64 %43, -1
  store volatile i64 %44, ptr %31, align 8, !tbaa !22
  %45 = getelementptr inbounds i8, ptr %9, i64 128
  %46 = load i64, ptr %45, align 8, !tbaa !28
  %47 = load volatile i64, ptr @uxTopReadyPriority, align 8, !tbaa !5
  %48 = icmp ugt i64 %46, %47
  br i1 %48, label %49, label %50

49:                                               ; preds = %42
  store volatile i64 %46, ptr @uxTopReadyPriority, align 8, !tbaa !5
  br label %50

50:                                               ; preds = %49, %42
  %51 = getelementptr inbounds [5 x %struct.xLIST], ptr @pxReadyTasksLists, i64 0, i64 %46, i32 1
  %52 = load ptr, ptr %51, align 8, !tbaa !19
  store ptr %52, ptr %34, align 8, !tbaa !27
  %53 = getelementptr inbounds i8, ptr %52, i64 16
  %54 = load ptr, ptr %53, align 8, !tbaa !17
  store ptr %54, ptr %32, align 8, !tbaa !26
  %55 = getelementptr inbounds i8, ptr %54, i64 8
  store ptr %29, ptr %55, align 8, !tbaa !18
  store ptr %29, ptr %53, align 8, !tbaa !17
  %56 = getelementptr inbounds [5 x %struct.xLIST], ptr @pxReadyTasksLists, i64 0, i64 %46
  store ptr %56, ptr %30, align 8, !tbaa !23
  %57 = load volatile i64, ptr %56, align 8, !tbaa !22
  %58 = add i64 %57, 1
  store volatile i64 %58, ptr %56, align 8, !tbaa !22
  %59 = load volatile ptr, ptr @pxCurrentTCB, align 8, !tbaa !29
  %60 = getelementptr inbounds i8, ptr %59, i64 128
  %61 = load i64, ptr %60, align 8, !tbaa !28
  %62 = icmp ugt i64 %46, %61
  br i1 %62, label %63, label %64

63:                                               ; preds = %50
  store volatile i64 1, ptr @xYieldPending, align 8, !tbaa !5
  br label %64

64:                                               ; preds = %63, %50
  ret void
}

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


; Effective O3 passes: DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,SROAPass,TailCallElimPass