; LLVM IR from lfarcaro/ARINC653_ARMV7A_Z7000 :: ARINC653_ARMV7A_Z7000.sw/ARINC653_ARMV7A_Z7000/src/ARINC653 (SUSPEND)

; 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._MODULE_INFORMATION_TYPE = type { ptr, %struct._heapRECORD, i32, i32, i32, %struct._CONTEXT_TYPE, i32, ptr, ptr, %struct._HEALTHMONITORINGCALLBACK_INFORMATION_TYPE, i64, i64, i64, %struct._priorityqueueRECORD }
%struct._heapRECORD = type { ptr, i32, i32, i32 }
%struct._CONTEXT_TYPE = type { i32, ptr, ptr, ptr, i32, i8, ptr, ptr, i32, i32, i32, i32 }
%struct._HEALTHMONITORINGCALLBACK_INFORMATION_TYPE = type { i8, ptr, i32, %struct._CONTEXT_TYPE, i8, i8, i8, i8, i32, i32 }
%struct._priorityqueueRECORD = type { ptr, i32, i8, i8 }
%struct._PARTITION_INFORMATION_TYPE = type { i8, ptr, ptr, i32, i32, i32, i32, i8, %struct._heapRECORD, %struct._CONTEXT_TYPE, i32, ptr, ptr, %struct._ERRORHANDLER_INFORMATION_TYPE, %struct._HEALTHMONITORINGCALLBACK_INFORMATION_TYPE, i32, %struct._priorityqueueENTRY, %struct._priorityqueueRECORD, %struct._priorityqueueRECORD, %struct._priorityqueueRECORD, i32, i32, ptr, i32, ptr, i32, ptr, i32, ptr, i32, ptr, i32, ptr, i32, ptr }
%struct._ERRORHANDLER_INFORMATION_TYPE = type { i8, ptr, i32, %struct._CONTEXT_TYPE, i8, i8, i8, i8, i32 }
%struct._priorityqueueENTRY = type { i64, i64, ptr, ptr, ptr }
%struct._PROCESS_INFORMATION_TYPE = type { ptr, ptr, i32, i32, i32, i64, i64, i64, i64, i64, %struct._CONTEXT_TYPE, %struct._priorityqueueENTRY, %struct._priorityqueueENTRY, %struct._priorityqueueENTRY, %struct._priorityqueueENTRY, i8, i8, ptr, i32, ptr, ptr }
%struct._PROCESS_ATTRIBUTE_TYPE = type { ptr, ptr, i32, i32, i64, i64, i32 }

@CORE_MODULE_INFORMATION = external global [2 x %struct._MODULE_INFORMATION_TYPE], align 16

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

declare void @ENTER_CORE() #1

declare i32 @PORT_GETCORE() #1

declare void @EXIT_CORE() #1

declare void @PRIORITYQUEUE_REMOVE(ptr noundef) #1

; 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 @SUSPEND(i32 noundef %0, ptr noundef %1) #2 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  store i32 %0, ptr %3, align 4, !tbaa !5
  store ptr %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 @ENTER_CORE()
  %8 = call i32 @PORT_GETCORE()
  %9 = zext i32 %8 to i64
  %10 = getelementptr inbounds [2 x %struct._MODULE_INFORMATION_TYPE], ptr @CORE_MODULE_INFORMATION, i64 0, i64 %9
  store ptr %10, ptr %5, align 8, !tbaa !9
  %11 = load ptr, ptr %5, align 8, !tbaa !9
  %12 = getelementptr inbounds %struct._MODULE_INFORMATION_TYPE, ptr %11, i32 0, i32 8
  %13 = load ptr, ptr %12, align 8, !tbaa !11
  %14 = icmp eq ptr %13, null
  br i1 %14, label %15, label %17

15:                                               ; preds = %2
  %16 = load ptr, ptr %4, align 8, !tbaa !9
  store i32 6, ptr %16, align 4, !tbaa !5
  call void @EXIT_CORE()
  store i32 1, ptr %7, align 4
  br label %108

17:                                               ; preds = %2
  %18 = load ptr, ptr %5, align 8, !tbaa !9
  %19 = getelementptr inbounds %struct._MODULE_INFORMATION_TYPE, ptr %18, i32 0, i32 8
  %20 = load ptr, ptr %19, align 8, !tbaa !11
  %21 = getelementptr inbounds %struct._PARTITION_INFORMATION_TYPE, ptr %20, i32 0, i32 6
  %22 = load i32, ptr %21, align 4, !tbaa !18
  %23 = icmp ugt i32 %22, 0
  br i1 %23, label %24, label %35

24:                                               ; preds = %17
  %25 = load i32, ptr %3, align 4, !tbaa !5
  %26 = load ptr, ptr %5, align 8, !tbaa !9
  %27 = getelementptr inbounds %struct._MODULE_INFORMATION_TYPE, ptr %26, i32 0, i32 8
  %28 = load ptr, ptr %27, align 8, !tbaa !11
  %29 = getelementptr inbounds %struct._PARTITION_INFORMATION_TYPE, ptr %28, i32 0, i32 13
  %30 = getelementptr inbounds %struct._ERRORHANDLER_INFORMATION_TYPE, ptr %29, i32 0, i32 8
  %31 = load i32, ptr %30, align 4, !tbaa !22
  %32 = icmp eq i32 %25, %31
  br i1 %32, label %33, label %35

33:                                               ; preds = %24
  %34 = load ptr, ptr %4, align 8, !tbaa !9
  store i32 6, ptr %34, align 4, !tbaa !5
  call void @EXIT_CORE()
  store i32 1, ptr %7, align 4
  br label %108

35:                                               ; preds = %24, %17
  %36 = load i32, ptr %3, align 4, !tbaa !5
  %37 = load ptr, ptr %5, align 8, !tbaa !9
  %38 = getelementptr inbounds %struct._MODULE_INFORMATION_TYPE, ptr %37, i32 0, i32 8
  %39 = load ptr, ptr %38, align 8, !tbaa !11
  %40 = getelementptr inbounds %struct._PARTITION_INFORMATION_TYPE, ptr %39, i32 0, i32 10
  %41 = load i32, ptr %40, align 8, !tbaa !23
  %42 = icmp uge i32 %36, %41
  br i1 %42, label %43, label %45

43:                                               ; preds = %35
  %44 = load ptr, ptr %4, align 8, !tbaa !9
  store i32 4, ptr %44, align 4, !tbaa !5
  call void @EXIT_CORE()
  store i32 1, ptr %7, align 4
  br label %108

45:                                               ; preds = %35
  %46 = load ptr, ptr %5, align 8, !tbaa !9
  %47 = getelementptr inbounds %struct._MODULE_INFORMATION_TYPE, ptr %46, i32 0, i32 8
  %48 = load ptr, ptr %47, align 8, !tbaa !11
  %49 = getelementptr inbounds %struct._PARTITION_INFORMATION_TYPE, ptr %48, i32 0, i32 12
  %50 = load ptr, ptr %49, align 8, !tbaa !24
  %51 = icmp ne ptr %50, null
  br i1 %51, label %52, label %65

52:                                               ; preds = %45
  %53 = load i32, ptr %3, align 4, !tbaa !5
  %54 = load ptr, ptr %5, align 8, !tbaa !9
  %55 = getelementptr inbounds %struct._MODULE_INFORMATION_TYPE, ptr %54, i32 0, i32 8
  %56 = load ptr, ptr %55, align 8, !tbaa !11
  %57 = getelementptr inbounds %struct._PARTITION_INFORMATION_TYPE, ptr %56, i32 0, i32 12
  %58 = load ptr, ptr %57, align 8, !tbaa !24
  %59 = getelementptr inbounds %struct._PROCESS_INFORMATION_TYPE, ptr %58, i32 0, i32 2
  %60 = load i32, ptr %59, align 8, !tbaa !25
  %61 = icmp eq i32 %53, %60
  br i1 %61, label %62, label %64

62:                                               ; preds = %52
  %63 = load ptr, ptr %4, align 8, !tbaa !9
  store i32 4, ptr %63, align 4, !tbaa !5
  call void @EXIT_CORE()
  store i32 1, ptr %7, align 4
  br label %108

64:                                               ; preds = %52
  br label %65

65:                                               ; preds = %64, %45
  %66 = load ptr, ptr %5, align 8, !tbaa !9
  %67 = getelementptr inbounds %struct._MODULE_INFORMATION_TYPE, ptr %66, i32 0, i32 8
  %68 = load ptr, ptr %67, align 8, !tbaa !11
  %69 = getelementptr inbounds %struct._PARTITION_INFORMATION_TYPE, ptr %68, i32 0, i32 11
  %70 = load ptr, ptr %69, align 8, !tbaa !27
  %71 = load i32, ptr %3, align 4, !tbaa !5
  %72 = zext i32 %71 to i64
  %73 = getelementptr inbounds %struct._PROCESS_INFORMATION_TYPE, ptr %70, i64 %72
  store ptr %73, ptr %6, align 8, !tbaa !9
  %74 = load ptr, ptr %6, align 8, !tbaa !9
  %75 = getelementptr inbounds %struct._PROCESS_INFORMATION_TYPE, ptr %74, i32 0, i32 4
  %76 = load i32, ptr %75, align 8, !tbaa !28
  %77 = icmp eq i32 %76, 1
  br i1 %77, label %78, label %80

78:                                               ; preds = %65
  %79 = load ptr, ptr %4, align 8, !tbaa !9
  store i32 6, ptr %79, align 4, !tbaa !5
  call void @EXIT_CORE()
  store i32 1, ptr %7, align 4
  br label %108

80:                                               ; preds = %65
  %81 = load ptr, ptr %6, align 8, !tbaa !9
  %82 = getelementptr inbounds %struct._PROCESS_INFORMATION_TYPE, ptr %81, i32 0, i32 0
  %83 = load ptr, ptr %82, align 8, !tbaa !29
  %84 = getelementptr inbounds %struct._PROCESS_ATTRIBUTE_TYPE, ptr %83, i32 0, i32 4
  %85 = load i64, ptr %84, align 8, !tbaa !30
  %86 = icmp ne i64 %85, 0
  br i1 %86, label %87, label %89

87:                                               ; preds = %80
  %88 = load ptr, ptr %4, align 8, !tbaa !9
  store i32 6, ptr %88, align 4, !tbaa !5
  call void @EXIT_CORE()
  store i32 1, ptr %7, align 4
  br label %108

89:                                               ; preds = %80
  %90 = load ptr, ptr %6, align 8, !tbaa !9
  %91 = getelementptr inbounds %struct._PROCESS_INFORMATION_TYPE, ptr %90, i32 0, i32 15
  %92 = load i8, ptr %91, align 8, !tbaa !32
  %93 = icmp ne i8 %92, 0
  br i1 %93, label %94, label %96

94:                                               ; preds = %89
  %95 = load ptr, ptr %4, align 8, !tbaa !9
  store i32 2, ptr %95, align 4, !tbaa !5
  call void @EXIT_CORE()
  store i32 1, ptr %7, align 4
  br label %108

96:                                               ; preds = %89
  %97 = load ptr, ptr %6, align 8, !tbaa !9
  %98 = getelementptr inbounds %struct._PROCESS_INFORMATION_TYPE, ptr %97, i32 0, i32 11
  call void @PRIORITYQUEUE_REMOVE(ptr noundef %98)
  %99 = load ptr, ptr %6, align 8, !tbaa !9
  %100 = getelementptr inbounds %struct._PROCESS_INFORMATION_TYPE, ptr %99, i32 0, i32 12
  call void @PRIORITYQUEUE_REMOVE(ptr noundef %100)
  %101 = load ptr, ptr %6, align 8, !tbaa !9
  %102 = getelementptr inbounds %struct._PROCESS_INFORMATION_TYPE, ptr %101, i32 0, i32 4
  store i32 4, ptr %102, align 8, !tbaa !28
  %103 = load ptr, ptr %6, align 8, !tbaa !9
  %104 = getelementptr inbounds %struct._PROCESS_INFORMATION_TYPE, ptr %103, i32 0, i32 15
  store i8 1, ptr %104, align 8, !tbaa !32
  %105 = load ptr, ptr %6, align 8, !tbaa !9
  %106 = getelementptr inbounds %struct._PROCESS_INFORMATION_TYPE, ptr %105, i32 0, i32 16
  store i8 0, ptr %106, align 1, !tbaa !33
  %107 = load ptr, ptr %4, align 8, !tbaa !9
  store i32 1, ptr %107, align 4, !tbaa !5
  call void @EXIT_CORE()
  store i32 0, ptr %7, align 4
  br label %108

108:                                              ; preds = %96, %94, %87, %78, %62, %43, %33, %15
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #3
  %109 = load i32, ptr %7, align 4
  switch i32 %109, label %111 [
    i32 0, label %110
    i32 1, label %110
  ]

110:                                              ; preds = %108, %108
  ret void

111:                                              ; preds = %108
  unreachable
}

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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !10, i64 136}
!12 = !{!"_MODULE_INFORMATION_TYPE", !10, i64 0, !13, i64 8, !6, i64 32, !6, i64 36, !6, i64 40, !14, i64 48, !6, i64 120, !10, i64 128, !10, i64 136, !15, i64 144, !16, i64 256, !16, i64 264, !16, i64 272, !17, i64 280}
!13 = !{!"_heapRECORD", !10, i64 0, !6, i64 8, !6, i64 12, !6, i64 16}
!14 = !{!"_CONTEXT_TYPE", !6, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !6, i64 32, !7, i64 36, !10, i64 40, !10, i64 48, !6, i64 56, !6, i64 60, !6, i64 64, !6, i64 68}
!15 = !{!"_HEALTHMONITORINGCALLBACK_INFORMATION_TYPE", !7, i64 0, !10, i64 8, !6, i64 16, !14, i64 24, !7, i64 96, !7, i64 97, !7, i64 98, !7, i64 99, !6, i64 100, !6, i64 104}
!16 = !{!"long long", !7, i64 0}
!17 = !{!"_priorityqueueRECORD", !10, i64 0, !6, i64 8, !7, i64 12, !7, i64 13}
!18 = !{!19, !6, i64 36}
!19 = !{!"_PARTITION_INFORMATION_TYPE", !7, i64 0, !10, i64 8, !10, i64 16, !6, i64 24, !6, i64 28, !6, i64 32, !6, i64 36, !7, i64 40, !13, i64 48, !14, i64 72, !6, i64 144, !10, i64 152, !10, i64 160, !20, i64 168, !15, i64 272, !6, i64 384, !21, i64 392, !17, i64 432, !17, i64 448, !17, i64 464, !6, i64 480, !6, i64 484, !10, i64 488, !6, i64 496, !10, i64 504, !6, i64 512, !10, i64 520, !6, i64 528, !10, i64 536, !6, i64 544, !10, i64 552, !6, i64 560, !10, i64 568, !6, i64 576, !10, i64 584}
!20 = !{!"_ERRORHANDLER_INFORMATION_TYPE", !7, i64 0, !10, i64 8, !6, i64 16, !14, i64 24, !7, i64 96, !7, i64 97, !7, i64 98, !7, i64 99, !6, i64 100}
!21 = !{!"_priorityqueueENTRY", !16, i64 0, !16, i64 8, !10, i64 16, !10, i64 24, !10, i64 32}
!22 = !{!19, !6, i64 268}
!23 = !{!19, !6, i64 144}
!24 = !{!19, !10, i64 160}
!25 = !{!26, !6, i64 16}
!26 = !{!"_PROCESS_INFORMATION_TYPE", !10, i64 0, !10, i64 8, !6, i64 16, !6, i64 20, !6, i64 24, !16, i64 32, !16, i64 40, !16, i64 48, !16, i64 56, !16, i64 64, !14, i64 72, !21, i64 144, !21, i64 184, !21, i64 224, !21, i64 264, !7, i64 304, !7, i64 305, !10, i64 312, !6, i64 320, !10, i64 328, !10, i64 336}
!27 = !{!19, !10, i64 152}
!28 = !{!26, !6, i64 24}
!29 = !{!26, !10, i64 0}
!30 = !{!31, !16, i64 24}
!31 = !{!"_PROCESS_ATTRIBUTE_TYPE", !10, i64 0, !10, i64 8, !6, i64 16, !6, i64 20, !16, i64 24, !16, i64 32, !6, i64 40}
!32 = !{!26, !7, i64 304}
!33 = !{!26, !7, i64 305}


; 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._MODULE_INFORMATION_TYPE = type { ptr, %struct._heapRECORD, i32, i32, i32, %struct._CONTEXT_TYPE, i32, ptr, ptr, %struct._HEALTHMONITORINGCALLBACK_INFORMATION_TYPE, i64, i64, i64, %struct._priorityqueueRECORD }
%struct._heapRECORD = type { ptr, i32, i32, i32 }
%struct._CONTEXT_TYPE = type { i32, ptr, ptr, ptr, i32, i8, ptr, ptr, i32, i32, i32, i32 }
%struct._HEALTHMONITORINGCALLBACK_INFORMATION_TYPE = type { i8, ptr, i32, %struct._CONTEXT_TYPE, i8, i8, i8, i8, i32, i32 }
%struct._priorityqueueRECORD = type { ptr, i32, i8, i8 }
%struct._PROCESS_INFORMATION_TYPE = type { ptr, ptr, i32, i32, i32, i64, i64, i64, i64, i64, %struct._CONTEXT_TYPE, %struct._priorityqueueENTRY, %struct._priorityqueueENTRY, %struct._priorityqueueENTRY, %struct._priorityqueueENTRY, i8, i8, ptr, i32, ptr, ptr }
%struct._priorityqueueENTRY = type { i64, i64, ptr, ptr, ptr }

@CORE_MODULE_INFORMATION = external local_unnamed_addr global [2 x %struct._MODULE_INFORMATION_TYPE], align 16

declare void @ENTER_CORE() local_unnamed_addr #0

declare i32 @PORT_GETCORE() local_unnamed_addr #0

declare void @EXIT_CORE() local_unnamed_addr #0

declare void @PRIORITYQUEUE_REMOVE(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local void @SUSPEND(i32 noundef %0, ptr nocapture noundef writeonly %1) local_unnamed_addr #1 {
  tail call void @ENTER_CORE() #2
  %3 = tail call i32 @PORT_GETCORE() #2
  %4 = zext i32 %3 to i64
  %5 = getelementptr inbounds [2 x %struct._MODULE_INFORMATION_TYPE], ptr @CORE_MODULE_INFORMATION, i64 0, i64 %4, i32 8
  %6 = load ptr, ptr %5, align 8, !tbaa !5
  %7 = icmp eq ptr %6, null
  br i1 %7, label %44, label %8

8:                                                ; preds = %2
  %9 = getelementptr inbounds i8, ptr %6, i64 36
  %10 = load i32, ptr %9, align 4, !tbaa !16
  %.not = icmp eq i32 %10, 0
  br i1 %.not, label %15, label %11

11:                                               ; preds = %8
  %12 = getelementptr inbounds i8, ptr %6, i64 268
  %13 = load i32, ptr %12, align 4, !tbaa !20
  %14 = icmp eq i32 %13, %0
  br i1 %14, label %44, label %15

15:                                               ; preds = %11, %8
  %16 = getelementptr inbounds i8, ptr %6, i64 144
  %17 = load i32, ptr %16, align 8, !tbaa !21
  %.not28 = icmp ugt i32 %17, %0
  br i1 %.not28, label %18, label %44

18:                                               ; preds = %15
  %19 = getelementptr inbounds i8, ptr %6, i64 160
  %20 = load ptr, ptr %19, align 8, !tbaa !22
  %.not29 = icmp eq ptr %20, null
  br i1 %.not29, label %25, label %21

21:                                               ; preds = %18
  %22 = getelementptr inbounds i8, ptr %20, i64 16
  %23 = load i32, ptr %22, align 8, !tbaa !23
  %24 = icmp eq i32 %23, %0
  br i1 %24, label %44, label %25

25:                                               ; preds = %21, %18
  %26 = getelementptr inbounds i8, ptr %6, i64 152
  %27 = load ptr, ptr %26, align 8, !tbaa !25
  %28 = zext i32 %0 to i64
  %29 = getelementptr inbounds %struct._PROCESS_INFORMATION_TYPE, ptr %27, i64 %28
  %30 = getelementptr inbounds i8, ptr %29, i64 24
  %31 = load i32, ptr %30, align 8, !tbaa !26
  %32 = icmp eq i32 %31, 1
  br i1 %32, label %44, label %33

33:                                               ; preds = %25
  %34 = load ptr, ptr %29, align 8, !tbaa !27
  %35 = getelementptr inbounds i8, ptr %34, i64 24
  %36 = load i64, ptr %35, align 8, !tbaa !28
  %.not30 = icmp eq i64 %36, 0
  br i1 %.not30, label %37, label %44

37:                                               ; preds = %33
  %38 = getelementptr inbounds i8, ptr %29, i64 304
  %39 = load i8, ptr %38, align 8, !tbaa !30
  %.not31 = icmp eq i8 %39, 0
  br i1 %.not31, label %40, label %44

40:                                               ; preds = %37
  %41 = getelementptr inbounds i8, ptr %29, i64 144
  tail call void @PRIORITYQUEUE_REMOVE(ptr noundef nonnull %41) #2
  %42 = getelementptr inbounds i8, ptr %29, i64 184
  tail call void @PRIORITYQUEUE_REMOVE(ptr noundef nonnull %42) #2
  store i32 4, ptr %30, align 8, !tbaa !26
  store i8 1, ptr %38, align 8, !tbaa !30
  %43 = getelementptr inbounds i8, ptr %29, i64 305
  store i8 0, ptr %43, align 1, !tbaa !31
  br label %44

44:                                               ; preds = %37, %33, %25, %21, %15, %11, %2, %40
  %.sink = phi i32 [ 1, %40 ], [ 6, %2 ], [ 6, %11 ], [ 4, %15 ], [ 4, %21 ], [ 6, %25 ], [ 6, %33 ], [ 2, %37 ]
  store i32 %.sink, ptr %1, align 4, !tbaa !32
  tail call void @EXIT_CORE() #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 = !{!6, !7, i64 136}
!6 = !{!"_MODULE_INFORMATION_TYPE", !7, i64 0, !10, i64 8, !11, i64 32, !11, i64 36, !11, i64 40, !12, i64 48, !11, i64 120, !7, i64 128, !7, i64 136, !13, i64 144, !14, i64 256, !14, i64 264, !14, i64 272, !15, i64 280}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"_heapRECORD", !7, i64 0, !11, i64 8, !11, i64 12, !11, i64 16}
!11 = !{!"int", !8, i64 0}
!12 = !{!"_CONTEXT_TYPE", !11, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !11, i64 32, !8, i64 36, !7, i64 40, !7, i64 48, !11, i64 56, !11, i64 60, !11, i64 64, !11, i64 68}
!13 = !{!"_HEALTHMONITORINGCALLBACK_INFORMATION_TYPE", !8, i64 0, !7, i64 8, !11, i64 16, !12, i64 24, !8, i64 96, !8, i64 97, !8, i64 98, !8, i64 99, !11, i64 100, !11, i64 104}
!14 = !{!"long long", !8, i64 0}
!15 = !{!"_priorityqueueRECORD", !7, i64 0, !11, i64 8, !8, i64 12, !8, i64 13}
!16 = !{!17, !11, i64 36}
!17 = !{!"_PARTITION_INFORMATION_TYPE", !8, i64 0, !7, i64 8, !7, i64 16, !11, i64 24, !11, i64 28, !11, i64 32, !11, i64 36, !8, i64 40, !10, i64 48, !12, i64 72, !11, i64 144, !7, i64 152, !7, i64 160, !18, i64 168, !13, i64 272, !11, i64 384, !19, i64 392, !15, i64 432, !15, i64 448, !15, i64 464, !11, i64 480, !11, i64 484, !7, i64 488, !11, i64 496, !7, i64 504, !11, i64 512, !7, i64 520, !11, i64 528, !7, i64 536, !11, i64 544, !7, i64 552, !11, i64 560, !7, i64 568, !11, i64 576, !7, i64 584}
!18 = !{!"_ERRORHANDLER_INFORMATION_TYPE", !8, i64 0, !7, i64 8, !11, i64 16, !12, i64 24, !8, i64 96, !8, i64 97, !8, i64 98, !8, i64 99, !11, i64 100}
!19 = !{!"_priorityqueueENTRY", !14, i64 0, !14, i64 8, !7, i64 16, !7, i64 24, !7, i64 32}
!20 = !{!17, !11, i64 268}
!21 = !{!17, !11, i64 144}
!22 = !{!17, !7, i64 160}
!23 = !{!24, !11, i64 16}
!24 = !{!"_PROCESS_INFORMATION_TYPE", !7, i64 0, !7, i64 8, !11, i64 16, !11, i64 20, !11, i64 24, !14, i64 32, !14, i64 40, !14, i64 48, !14, i64 56, !14, i64 64, !12, i64 72, !19, i64 144, !19, i64 184, !19, i64 224, !19, i64 264, !8, i64 304, !8, i64 305, !7, i64 312, !11, i64 320, !7, i64 328, !7, i64 336}
!25 = !{!17, !7, i64 152}
!26 = !{!24, !11, i64 24}
!27 = !{!24, !7, i64 0}
!28 = !{!29, !14, i64 24}
!29 = !{!"_PROCESS_ATTRIBUTE_TYPE", !7, i64 0, !7, i64 8, !11, i64 16, !11, i64 20, !14, i64 24, !14, i64 32, !11, i64 40}
!30 = !{!24, !8, i64 304}
!31 = !{!24, !8, i64 305}
!32 = !{!11, !11, i64 0}


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