; LLVM IR from jingweizhanghuai/Morn :: src/math (morn_sort)

; 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"

@.str = external hidden unnamed_addr constant [76 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [52 x i8], align 1
@__FUNCTION__.mMaxSubsetD64 = external hidden unnamed_addr constant [14 x i8], align 1

; 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 @m_Exception(i32 noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, ...) #1

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2

declare ptr @m_Malloc(i32 noundef) #1

declare void @m_Free(ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local double @DataMaxSubsetD64(ptr noundef, i32 noundef, i32 noundef) #3

; Function Attrs: nounwind uwtable
declare dso_local double @IndexMaxSubsetD64(ptr noundef, ptr noundef, i32 noundef, i32 noundef) #3

; Function Attrs: nounwind uwtable
define dso_local double @mMaxSubsetD64(ptr noundef %0, ptr noundef %1, i32 noundef %2, ptr noundef %3, ptr noundef %4, i32 noundef %5) #3 {
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca ptr, align 8
  %18 = alloca double, align 8
  %19 = alloca ptr, align 8
  %20 = alloca i32, align 4
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store i32 %2, ptr %9, align 4, !tbaa !9
  store ptr %3, ptr %10, align 8, !tbaa !5
  store ptr %4, ptr %11, align 8, !tbaa !5
  store i32 %5, ptr %12, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  %21 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr %21, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  %22 = load ptr, ptr %10, align 8, !tbaa !5
  store ptr %22, ptr %14, align 8, !tbaa !5
  br label %23

23:                                               ; preds = %6
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  %24 = load ptr, ptr %13, align 8, !tbaa !5
  %25 = icmp eq ptr %24, null
  %26 = zext i1 %25 to i32
  store i32 %26, ptr %15, align 4, !tbaa !9
  %27 = load i32, ptr %15, align 4, !tbaa !9
  %28 = icmp ne i32 %27, 0
  br i1 %28, label %29, label %31

29:                                               ; preds = %23
  %30 = load i32, ptr %15, align 4, !tbaa !9
  call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef %30, i32 noundef -1, ptr noundef @.str, i32 noundef 474, ptr noundef @__FUNCTION__.mMaxSubsetD64, ptr noundef @.str.1)
  br label %31

31:                                               ; preds = %29, %23
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  br label %32

32:                                               ; preds = %31
  br label %33

33:                                               ; preds = %32
  br label %34

34:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #4
  %35 = load i32, ptr %12, align 4, !tbaa !9
  %36 = load i32, ptr %9, align 4, !tbaa !9
  %37 = icmp sge i32 %35, %36
  br i1 %37, label %44, label %38

38:                                               ; preds = %34
  %39 = load i32, ptr %9, align 4, !tbaa !9
  %40 = icmp sle i32 %39, 0
  br i1 %40, label %44, label %41

41:                                               ; preds = %38
  %42 = load i32, ptr %12, align 4, !tbaa !9
  %43 = icmp sle i32 %42, 0
  br label %44

44:                                               ; preds = %41, %38, %34
  %45 = phi i1 [ true, %38 ], [ true, %34 ], [ %43, %41 ]
  %46 = zext i1 %45 to i32
  store i32 %46, ptr %16, align 4, !tbaa !9
  %47 = load i32, ptr %16, align 4, !tbaa !9
  %48 = icmp ne i32 %47, 0
  br i1 %48, label %49, label %53

49:                                               ; preds = %44
  %50 = load i32, ptr %16, align 4, !tbaa !9
  %51 = load i32, ptr %9, align 4, !tbaa !9
  %52 = load i32, ptr %12, align 4, !tbaa !9
  call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef %50, i32 noundef -1, ptr noundef @.str, i32 noundef 474, ptr noundef @__FUNCTION__.mMaxSubsetD64, ptr noundef @.str.2, i32 noundef %51, i32 noundef %52)
  br label %53

53:                                               ; preds = %49, %44
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  br label %54

54:                                               ; preds = %53
  br label %55

55:                                               ; preds = %54
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #4
  %56 = load ptr, ptr %14, align 8, !tbaa !5
  %57 = load ptr, ptr %13, align 8, !tbaa !5
  %58 = icmp eq ptr %56, %57
  br i1 %58, label %62, label %59

59:                                               ; preds = %55
  %60 = load ptr, ptr %14, align 8, !tbaa !5
  %61 = icmp eq ptr %60, null
  br i1 %61, label %62, label %64

62:                                               ; preds = %59, %55
  %63 = load ptr, ptr %13, align 8, !tbaa !5
  store ptr %63, ptr %17, align 8, !tbaa !5
  br label %70

64:                                               ; preds = %59
  %65 = load i32, ptr %9, align 4, !tbaa !9
  %66 = sext i32 %65 to i64
  %67 = mul i64 %66, 8
  %68 = trunc i64 %67 to i32
  %69 = call ptr @m_Malloc(i32 noundef %68)
  store ptr %69, ptr %17, align 8, !tbaa !5
  br label %70

70:                                               ; preds = %64, %62
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #4
  %71 = load ptr, ptr %8, align 8, !tbaa !5
  %72 = icmp eq ptr %71, null
  br i1 %72, label %73, label %81

73:                                               ; preds = %70
  %74 = load ptr, ptr %11, align 8, !tbaa !5
  %75 = icmp eq ptr %74, null
  br i1 %75, label %76, label %81

76:                                               ; preds = %73
  %77 = load ptr, ptr %17, align 8, !tbaa !5
  %78 = load i32, ptr %9, align 4, !tbaa !9
  %79 = load i32, ptr %12, align 4, !tbaa !9
  %80 = call double @DataMaxSubsetD64(ptr noundef %77, i32 noundef %78, i32 noundef %79)
  store double %80, ptr %18, align 8, !tbaa !11
  br label %139

81:                                               ; preds = %73, %70
  %82 = load ptr, ptr %11, align 8, !tbaa !5
  %83 = load ptr, ptr %8, align 8, !tbaa !5
  %84 = icmp eq ptr %82, %83
  br i1 %84, label %85, label %86

85:                                               ; preds = %81
  store ptr null, ptr %11, align 8, !tbaa !5
  br label %86

86:                                               ; preds = %85, %81
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #4
  %87 = load ptr, ptr %11, align 8, !tbaa !5
  %88 = icmp eq ptr %87, null
  br i1 %88, label %89, label %91

89:                                               ; preds = %86
  %90 = load ptr, ptr %8, align 8, !tbaa !5
  store ptr %90, ptr %19, align 8, !tbaa !5
  br label %123

91:                                               ; preds = %86
  %92 = load i32, ptr %9, align 4, !tbaa !9
  %93 = sext i32 %92 to i64
  %94 = mul i64 %93, 4
  %95 = trunc i64 %94 to i32
  %96 = call ptr @m_Malloc(i32 noundef %95)
  store ptr %96, ptr %19, align 8, !tbaa !5
  %97 = load ptr, ptr %8, align 8, !tbaa !5
  %98 = icmp eq ptr %97, null
  br i1 %98, label %99, label %116

99:                                               ; preds = %91
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #4
  store i32 0, ptr %20, align 4, !tbaa !9
  br label %100

100:                                              ; preds = %111, %99
  %101 = load i32, ptr %20, align 4, !tbaa !9
  %102 = load i32, ptr %9, align 4, !tbaa !9
  %103 = icmp slt i32 %101, %102
  br i1 %103, label %105, label %104

104:                                              ; preds = %100
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #4
  br label %114

105:                                              ; preds = %100
  %106 = load i32, ptr %20, align 4, !tbaa !9
  %107 = load ptr, ptr %19, align 8, !tbaa !5
  %108 = load i32, ptr %20, align 4, !tbaa !9
  %109 = sext i32 %108 to i64
  %110 = getelementptr inbounds i32, ptr %107, i64 %109
  store i32 %106, ptr %110, align 4, !tbaa !9
  br label %111

111:                                              ; preds = %105
  %112 = load i32, ptr %20, align 4, !tbaa !9
  %113 = add nsw i32 %112, 1
  store i32 %113, ptr %20, align 4, !tbaa !9
  br label %100, !llvm.loop !13

114:                                              ; preds = %104
  %115 = load ptr, ptr %19, align 8, !tbaa !5
  store ptr %115, ptr %8, align 8, !tbaa !5
  br label %122

116:                                              ; preds = %91
  %117 = load ptr, ptr %19, align 8, !tbaa !5
  %118 = load ptr, ptr %8, align 8, !tbaa !5
  %119 = load i32, ptr %9, align 4, !tbaa !9
  %120 = sext i32 %119 to i64
  %121 = mul i64 %120, 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %117, ptr align 4 %118, i64 %121, i1 false)
  br label %122

122:                                              ; preds = %116, %114
  br label %123

123:                                              ; preds = %122, %89
  %124 = load ptr, ptr %17, align 8, !tbaa !5
  %125 = load ptr, ptr %19, align 8, !tbaa !5
  %126 = load i32, ptr %9, align 4, !tbaa !9
  %127 = load i32, ptr %12, align 4, !tbaa !9
  %128 = call double @IndexMaxSubsetD64(ptr noundef %124, ptr noundef %125, i32 noundef %126, i32 noundef %127)
  store double %128, ptr %18, align 8, !tbaa !11
  %129 = load ptr, ptr %11, align 8, !tbaa !5
  %130 = icmp ne ptr %129, null
  br i1 %130, label %131, label %138

131:                                              ; preds = %123
  %132 = load ptr, ptr %11, align 8, !tbaa !5
  %133 = load ptr, ptr %19, align 8, !tbaa !5
  %134 = load i32, ptr %12, align 4, !tbaa !9
  %135 = sext i32 %134 to i64
  %136 = mul i64 %135, 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %132, ptr align 4 %133, i64 %136, i1 false)
  %137 = load ptr, ptr %19, align 8, !tbaa !5
  call void @m_Free(ptr noundef %137)
  br label %138

138:                                              ; preds = %131, %123
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #4
  br label %139

139:                                              ; preds = %138, %76
  %140 = load ptr, ptr %17, align 8, !tbaa !5
  %141 = load ptr, ptr %13, align 8, !tbaa !5
  %142 = icmp ne ptr %140, %141
  br i1 %142, label %143, label %150

143:                                              ; preds = %139
  %144 = load ptr, ptr %14, align 8, !tbaa !5
  %145 = load ptr, ptr %17, align 8, !tbaa !5
  %146 = load i32, ptr %12, align 4, !tbaa !9
  %147 = sext i32 %146 to i64
  %148 = mul i64 %147, 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %144, ptr align 8 %145, i64 %148, i1 false)
  %149 = load ptr, ptr %17, align 8, !tbaa !5
  call void @m_Free(ptr noundef %149)
  br label %150

150:                                              ; preds = %143, %139
  %151 = load double, ptr %18, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  ret double %151
}

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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = !{!"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 = !{!"double", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}


; 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"

@.str = external hidden unnamed_addr constant [76 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [52 x i8], align 1
@__FUNCTION__.mMaxSubsetD64 = external hidden unnamed_addr constant [14 x i8], align 1

declare void @m_Exception(i32 noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, ...) local_unnamed_addr #0

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

declare ptr @m_Malloc(i32 noundef) local_unnamed_addr #0

declare void @m_Free(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local double @DataMaxSubsetD64(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local double @IndexMaxSubsetD64(ptr noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
define dso_local double @mMaxSubsetD64(ptr noundef %0, ptr noundef %1, i32 noundef %2, ptr noundef writeonly %3, ptr noundef writeonly %4, i32 noundef %5) local_unnamed_addr #2 {
  %7 = icmp eq ptr %0, null
  br i1 %7, label %8, label %9

8:                                                ; preds = %6
  tail call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef 1, i32 noundef -1, ptr noundef nonnull @.str, i32 noundef 474, ptr noundef nonnull @__FUNCTION__.mMaxSubsetD64, ptr noundef nonnull @.str.1) #3
  br label %9

9:                                                ; preds = %8, %6
  %10 = icmp sge i32 %5, %2
  %11 = icmp slt i32 %2, 1
  %or.cond = or i1 %11, %10
  %12 = icmp slt i32 %5, 1
  %spec.select = or i1 %12, %or.cond
  br i1 %spec.select, label %13, label %14

13:                                               ; preds = %9
  tail call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef 1, i32 noundef -1, ptr noundef nonnull @.str, i32 noundef 474, ptr noundef nonnull @__FUNCTION__.mMaxSubsetD64, ptr noundef nonnull @.str.2, i32 noundef %2, i32 noundef %5) #3
  br label %14

14:                                               ; preds = %13, %9
  %15 = icmp eq ptr %3, %0
  %16 = icmp eq ptr %3, null
  %or.cond3 = or i1 %15, %16
  br i1 %or.cond3, label %20, label %17

17:                                               ; preds = %14
  %18 = shl i32 %2, 3
  %19 = tail call ptr @m_Malloc(i32 noundef %18) #3
  br label %20

20:                                               ; preds = %14, %17
  %.061 = phi ptr [ %19, %17 ], [ %0, %14 ]
  %21 = icmp eq ptr %1, null
  %22 = icmp eq ptr %4, null
  %or.cond5 = and i1 %21, %22
  br i1 %or.cond5, label %23, label %25

23:                                               ; preds = %20
  %24 = tail call double @DataMaxSubsetD64(ptr noundef %.061, i32 noundef %2, i32 noundef %5)
  br label %43

25:                                               ; preds = %20
  %26 = icmp eq ptr %4, %1
  %27 = or i1 %26, %22
  br i1 %27, label %.thread, label %29

.thread:                                          ; preds = %25
  %28 = tail call double @IndexMaxSubsetD64(ptr noundef %.061, ptr noundef %1, i32 noundef %2, i32 noundef %5)
  br label %43

29:                                               ; preds = %25
  %30 = sext i32 %2 to i64
  %31 = shl nsw i64 %30, 2
  %32 = trunc i64 %31 to i32
  %33 = tail call ptr @m_Malloc(i32 noundef %32) #3
  br i1 %21, label %.preheader, label %.thread66

.preheader:                                       ; preds = %29
  %34 = icmp sgt i32 %2, 0
  br i1 %34, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %.preheader
  %wide.trip.count = zext nneg i32 %2 to i64
  %min.iters.check = icmp ult i32 %2, 8
  br i1 %min.iters.check, label %.lr.ph.preheader72, label %vector.ph

vector.ph:                                        ; preds = %.lr.ph.preheader
  %n.vec = and i64 %wide.trip.count, 2147483640
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %vec.ind = phi <4 x i32> [ <i32 0, i32 1, i32 2, i32 3>, %vector.ph ], [ %vec.ind.next, %vector.body ]
  %step.add = add <4 x i32> %vec.ind, <i32 4, i32 4, i32 4, i32 4>
  %35 = getelementptr inbounds i32, ptr %33, i64 %index
  %36 = getelementptr inbounds i8, ptr %35, i64 16
  store <4 x i32> %vec.ind, ptr %35, align 4, !tbaa !5
  store <4 x i32> %step.add, ptr %36, align 4, !tbaa !5
  %index.next = add nuw i64 %index, 8
  %vec.ind.next = add <4 x i32> %vec.ind, <i32 8, i32 8, i32 8, i32 8>
  %37 = icmp eq i64 %index.next, %n.vec
  br i1 %37, label %middle.block, label %vector.body, !llvm.loop !9

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count
  br i1 %cmp.n, label %._crit_edge, label %.lr.ph.preheader72

.lr.ph.preheader72:                               ; preds = %middle.block, %.lr.ph.preheader
  %indvars.iv.ph = phi i64 [ 0, %.lr.ph.preheader ], [ %n.vec, %middle.block ]
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader72, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ %indvars.iv.ph, %.lr.ph.preheader72 ]
  %38 = getelementptr inbounds i32, ptr %33, i64 %indvars.iv
  %39 = trunc nuw nsw i64 %indvars.iv to i32
  store i32 %39, ptr %38, align 4, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !13

.thread66:                                        ; preds = %29
  tail call void @llvm.memcpy.p0.p0.i64(ptr align 4 %33, ptr nonnull align 4 %1, i64 %31, i1 false)
  br label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph, %middle.block, %.preheader, %.thread66
  %40 = tail call double @IndexMaxSubsetD64(ptr noundef %.061, ptr noundef %33, i32 noundef %2, i32 noundef %5)
  %41 = sext i32 %5 to i64
  %42 = shl nsw i64 %41, 2
  tail call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 4 %4, ptr align 4 %33, i64 %42, i1 false)
  tail call void @m_Free(ptr noundef %33) #3
  br label %43

43:                                               ; preds = %.thread, %._crit_edge, %23
  %.060 = phi double [ %24, %23 ], [ %40, %._crit_edge ], [ %28, %.thread ]
  %.not64 = icmp eq ptr %.061, %0
  br i1 %.not64, label %47, label %44

44:                                               ; preds = %43
  %45 = sext i32 %5 to i64
  %46 = shl nsw i64 %45, 3
  tail call void @llvm.memcpy.p0.p0.i64(ptr align 8 %3, ptr align 8 %.061, i64 %46, i1 false)
  tail call void @m_Free(ptr noundef %.061) #3
  br label %47

47:                                               ; preds = %44, %43
  ret double %.060
}

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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = distinct !{!9, !10, !11, !12}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!"llvm.loop.isvectorized", i32 1}
!12 = !{!"llvm.loop.unroll.runtime.disable"}
!13 = distinct !{!13, !10, !12, !11}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,PostOrderFunctionAttrsPass,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass