; LLVM IR from HarshCasper/NeoAlgo :: C-Plus-Plus/sort/radix_sort.ll (Z13counting_sortPxxx)

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z13counting_sortPxxx(ptr noundef %0, i64 noundef %1, i64 noundef %2) #0 {
  %4 = alloca ptr, align 8
  %5 = alloca i64, align 8
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca [10 x i64], align 16
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  %16 = alloca i64, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i64 %1, ptr %5, align 8, !tbaa !9
  store i64 %2, ptr %6, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  %17 = load i64, ptr %6, align 8, !tbaa !9
  %18 = call noundef double @_ZSt3powIixEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(i32 noundef 10, i64 noundef %17)
  %19 = fptosi double %18 to i64
  store i64 %19, ptr %7, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  %20 = load i64, ptr %7, align 8, !tbaa !9
  %21 = sdiv i64 %20, 10
  store i64 %21, ptr %8, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 80, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  store i64 0, ptr %10, align 8, !tbaa !9
  br label %22

22:                                               ; preds = %29, %3
  %23 = load i64, ptr %10, align 8, !tbaa !9
  %24 = icmp slt i64 %23, 10
  br i1 %24, label %26, label %25

25:                                               ; preds = %22
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  br label %32

26:                                               ; preds = %22
  %27 = load i64, ptr %10, align 8, !tbaa !9
  %28 = getelementptr inbounds [10 x i64], ptr %9, i64 0, i64 %27
  store i64 0, ptr %28, align 8, !tbaa !9
  br label %29

29:                                               ; preds = %26
  %30 = load i64, ptr %10, align 8, !tbaa !9
  %31 = add nsw i64 %30, 1
  store i64 %31, ptr %10, align 8, !tbaa !9
  br label %22, !llvm.loop !11

32:                                               ; preds = %25
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  store i64 0, ptr %11, align 8, !tbaa !9
  br label %33

33:                                               ; preds = %50, %32
  %34 = load i64, ptr %11, align 8, !tbaa !9
  %35 = load i64, ptr %5, align 8, !tbaa !9
  %36 = icmp slt i64 %34, %35
  br i1 %36, label %38, label %37

37:                                               ; preds = %33
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  br label %53

38:                                               ; preds = %33
  %39 = load ptr, ptr %4, align 8, !tbaa !5
  %40 = load i64, ptr %11, align 8, !tbaa !9
  %41 = getelementptr inbounds i64, ptr %39, i64 %40
  %42 = load i64, ptr %41, align 8, !tbaa !9
  %43 = load i64, ptr %7, align 8, !tbaa !9
  %44 = srem i64 %42, %43
  %45 = load i64, ptr %8, align 8, !tbaa !9
  %46 = sdiv i64 %44, %45
  %47 = getelementptr inbounds [10 x i64], ptr %9, i64 0, i64 %46
  %48 = load i64, ptr %47, align 8, !tbaa !9
  %49 = add nsw i64 %48, 1
  store i64 %49, ptr %47, align 8, !tbaa !9
  br label %50

50:                                               ; preds = %38
  %51 = load i64, ptr %11, align 8, !tbaa !9
  %52 = add nsw i64 %51, 1
  store i64 %52, ptr %11, align 8, !tbaa !9
  br label %33, !llvm.loop !13

53:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  store i64 1, ptr %12, align 8, !tbaa !9
  br label %54

54:                                               ; preds = %67, %53
  %55 = load i64, ptr %12, align 8, !tbaa !9
  %56 = icmp slt i64 %55, 10
  br i1 %56, label %58, label %57

57:                                               ; preds = %54
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  br label %70

58:                                               ; preds = %54
  %59 = load i64, ptr %12, align 8, !tbaa !9
  %60 = sub nsw i64 %59, 1
  %61 = getelementptr inbounds [10 x i64], ptr %9, i64 0, i64 %60
  %62 = load i64, ptr %61, align 8, !tbaa !9
  %63 = load i64, ptr %12, align 8, !tbaa !9
  %64 = getelementptr inbounds [10 x i64], ptr %9, i64 0, i64 %63
  %65 = load i64, ptr %64, align 8, !tbaa !9
  %66 = add nsw i64 %65, %62
  store i64 %66, ptr %64, align 8, !tbaa !9
  br label %67

67:                                               ; preds = %58
  %68 = load i64, ptr %12, align 8, !tbaa !9
  %69 = add nsw i64 %68, 1
  store i64 %69, ptr %12, align 8, !tbaa !9
  br label %54, !llvm.loop !14

70:                                               ; preds = %57
  %71 = load i64, ptr %5, align 8, !tbaa !9
  %72 = call ptr @llvm.stacksave.p0()
  store ptr %72, ptr %13, align 8
  %73 = alloca i64, i64 %71, align 16
  store i64 %71, ptr %14, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  %74 = load i64, ptr %5, align 8, !tbaa !9
  %75 = sub nsw i64 %74, 1
  store i64 %75, ptr %15, align 8, !tbaa !9
  br label %76

76:                                               ; preds = %108, %70
  %77 = load i64, ptr %15, align 8, !tbaa !9
  %78 = icmp sge i64 %77, 0
  br i1 %78, label %80, label %79

79:                                               ; preds = %76
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  br label %111

80:                                               ; preds = %76
  %81 = load ptr, ptr %4, align 8, !tbaa !5
  %82 = load i64, ptr %15, align 8, !tbaa !9
  %83 = getelementptr inbounds i64, ptr %81, i64 %82
  %84 = load i64, ptr %83, align 8, !tbaa !9
  %85 = load ptr, ptr %4, align 8, !tbaa !5
  %86 = load i64, ptr %15, align 8, !tbaa !9
  %87 = getelementptr inbounds i64, ptr %85, i64 %86
  %88 = load i64, ptr %87, align 8, !tbaa !9
  %89 = load i64, ptr %7, align 8, !tbaa !9
  %90 = srem i64 %88, %89
  %91 = load i64, ptr %8, align 8, !tbaa !9
  %92 = sdiv i64 %90, %91
  %93 = getelementptr inbounds [10 x i64], ptr %9, i64 0, i64 %92
  %94 = load i64, ptr %93, align 8, !tbaa !9
  %95 = sub nsw i64 %94, 1
  %96 = getelementptr inbounds i64, ptr %73, i64 %95
  store i64 %84, ptr %96, align 8, !tbaa !9
  %97 = load ptr, ptr %4, align 8, !tbaa !5
  %98 = load i64, ptr %15, align 8, !tbaa !9
  %99 = getelementptr inbounds i64, ptr %97, i64 %98
  %100 = load i64, ptr %99, align 8, !tbaa !9
  %101 = load i64, ptr %7, align 8, !tbaa !9
  %102 = srem i64 %100, %101
  %103 = load i64, ptr %8, align 8, !tbaa !9
  %104 = sdiv i64 %102, %103
  %105 = getelementptr inbounds [10 x i64], ptr %9, i64 0, i64 %104
  %106 = load i64, ptr %105, align 8, !tbaa !9
  %107 = add nsw i64 %106, -1
  store i64 %107, ptr %105, align 8, !tbaa !9
  br label %108

108:                                              ; preds = %80
  %109 = load i64, ptr %15, align 8, !tbaa !9
  %110 = add nsw i64 %109, -1
  store i64 %110, ptr %15, align 8, !tbaa !9
  br label %76, !llvm.loop !15

111:                                              ; preds = %79
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #4
  store i64 0, ptr %16, align 8, !tbaa !9
  br label %112

112:                                              ; preds = %124, %111
  %113 = load i64, ptr %16, align 8, !tbaa !9
  %114 = load i64, ptr %5, align 8, !tbaa !9
  %115 = icmp slt i64 %113, %114
  br i1 %115, label %117, label %116

116:                                              ; preds = %112
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  br label %127

117:                                              ; preds = %112
  %118 = load i64, ptr %16, align 8, !tbaa !9
  %119 = getelementptr inbounds i64, ptr %73, i64 %118
  %120 = load i64, ptr %119, align 8, !tbaa !9
  %121 = load ptr, ptr %4, align 8, !tbaa !5
  %122 = load i64, ptr %16, align 8, !tbaa !9
  %123 = getelementptr inbounds i64, ptr %121, i64 %122
  store i64 %120, ptr %123, align 8, !tbaa !9
  br label %124

124:                                              ; preds = %117
  %125 = load i64, ptr %16, align 8, !tbaa !9
  %126 = add nsw i64 %125, 1
  store i64 %126, ptr %16, align 8, !tbaa !9
  br label %112, !llvm.loop !16

127:                                              ; preds = %116
  %128 = load ptr, ptr %13, align 8
  call void @llvm.stackrestore.p0(ptr %128)
  call void @llvm.lifetime.end.p0(i64 80, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  ret void
}

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZSt3powIixEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(i32 noundef, i64 noundef) #2

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

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #3

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #3

attributes #0 = { mustprogress 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { inlinehint mustprogress 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 = { nocallback nofree nosync nounwind willreturn }
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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long long", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !12}


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

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_Z13counting_sortPxxx(ptr nocapture noundef %0, i64 noundef %1, i64 noundef %2) local_unnamed_addr #0 {
.preheader42:
  %3 = alloca [10 x i64], align 16
  %4 = tail call noundef double @_ZSt3powIixEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(i32 noundef 10, i64 noundef %2)
  %5 = fptosi double %4 to i64
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %3) #6
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(80) %3, i8 0, i64 80, i1 false), !tbaa !5
  %6 = sdiv i64 %5, 10
  %7 = icmp sgt i64 %1, 0
  br i1 %7, label %.lr.ph, label %.preheader41

.preheader41.loopexit:                            ; preds = %.lr.ph
  %.pre = load i64, ptr %3, align 16, !tbaa !5
  %.phi.trans.insert = getelementptr inbounds i8, ptr %3, i64 8
  %.pre51 = load i64, ptr %.phi.trans.insert, align 8, !tbaa !5
  %.phi.trans.insert52 = getelementptr inbounds i8, ptr %3, i64 16
  %.pre53 = load i64, ptr %.phi.trans.insert52, align 16, !tbaa !5
  %.phi.trans.insert54 = getelementptr inbounds i8, ptr %3, i64 24
  %.pre55 = load i64, ptr %.phi.trans.insert54, align 8, !tbaa !5
  %.phi.trans.insert56 = getelementptr inbounds i8, ptr %3, i64 32
  %.pre57 = load i64, ptr %.phi.trans.insert56, align 16, !tbaa !5
  %.phi.trans.insert58 = getelementptr inbounds i8, ptr %3, i64 40
  %.pre59 = load i64, ptr %.phi.trans.insert58, align 8, !tbaa !5
  %.phi.trans.insert60 = getelementptr inbounds i8, ptr %3, i64 48
  %.pre61 = load i64, ptr %.phi.trans.insert60, align 16, !tbaa !5
  %.phi.trans.insert62 = getelementptr inbounds i8, ptr %3, i64 56
  %.pre63 = load i64, ptr %.phi.trans.insert62, align 8, !tbaa !5
  %.phi.trans.insert64 = getelementptr inbounds i8, ptr %3, i64 64
  %.pre65 = load i64, ptr %.phi.trans.insert64, align 16, !tbaa !5
  %.phi.trans.insert66 = getelementptr inbounds i8, ptr %3, i64 72
  %.pre67 = load i64, ptr %.phi.trans.insert66, align 8, !tbaa !5
  %8 = add nsw i64 %.pre51, %.pre
  br label %.preheader41

.preheader41:                                     ; preds = %.preheader41.loopexit, %.preheader42
  %9 = phi i64 [ %.pre67, %.preheader41.loopexit ], [ 0, %.preheader42 ]
  %10 = phi i64 [ %.pre65, %.preheader41.loopexit ], [ 0, %.preheader42 ]
  %11 = phi i64 [ %.pre63, %.preheader41.loopexit ], [ 0, %.preheader42 ]
  %12 = phi i64 [ %.pre61, %.preheader41.loopexit ], [ 0, %.preheader42 ]
  %13 = phi i64 [ %.pre59, %.preheader41.loopexit ], [ 0, %.preheader42 ]
  %14 = phi i64 [ %.pre57, %.preheader41.loopexit ], [ 0, %.preheader42 ]
  %15 = phi i64 [ %.pre55, %.preheader41.loopexit ], [ 0, %.preheader42 ]
  %16 = phi i64 [ %.pre53, %.preheader41.loopexit ], [ 0, %.preheader42 ]
  %17 = phi i64 [ %8, %.preheader41.loopexit ], [ 0, %.preheader42 ]
  %18 = getelementptr inbounds i8, ptr %3, i64 8
  store i64 %17, ptr %18, align 8, !tbaa !5
  %19 = getelementptr inbounds i8, ptr %3, i64 16
  %20 = add nsw i64 %16, %17
  store i64 %20, ptr %19, align 16, !tbaa !5
  %21 = getelementptr inbounds i8, ptr %3, i64 24
  %22 = add nsw i64 %15, %20
  store i64 %22, ptr %21, align 8, !tbaa !5
  %23 = getelementptr inbounds i8, ptr %3, i64 32
  %24 = add nsw i64 %14, %22
  store i64 %24, ptr %23, align 16, !tbaa !5
  %25 = getelementptr inbounds i8, ptr %3, i64 40
  %26 = add nsw i64 %13, %24
  store i64 %26, ptr %25, align 8, !tbaa !5
  %27 = getelementptr inbounds i8, ptr %3, i64 48
  %28 = add nsw i64 %12, %26
  store i64 %28, ptr %27, align 16, !tbaa !5
  %29 = getelementptr inbounds i8, ptr %3, i64 56
  %30 = add nsw i64 %11, %28
  store i64 %30, ptr %29, align 8, !tbaa !5
  %31 = getelementptr inbounds i8, ptr %3, i64 64
  %32 = add nsw i64 %10, %30
  store i64 %32, ptr %31, align 16, !tbaa !5
  %33 = getelementptr inbounds i8, ptr %3, i64 72
  %34 = add nsw i64 %9, %32
  store i64 %34, ptr %33, align 8, !tbaa !5
  %35 = tail call ptr @llvm.stacksave.p0()
  %36 = alloca i64, i64 %1, align 16
  %invariant.gep = getelementptr i8, ptr %36, i64 -8
  br i1 %7, label %.lr.ph47, label %._crit_edge

.lr.ph:                                           ; preds = %.preheader42, %.lr.ph
  %.03844 = phi i64 [ %44, %.lr.ph ], [ 0, %.preheader42 ]
  %37 = getelementptr inbounds i64, ptr %0, i64 %.03844
  %38 = load i64, ptr %37, align 8, !tbaa !5
  %39 = srem i64 %38, %5
  %40 = sdiv i64 %39, %6
  %41 = getelementptr inbounds [10 x i64], ptr %3, i64 0, i64 %40
  %42 = load i64, ptr %41, align 8, !tbaa !5
  %43 = add nsw i64 %42, 1
  store i64 %43, ptr %41, align 8, !tbaa !5
  %44 = add nuw nsw i64 %.03844, 1
  %exitcond.not = icmp eq i64 %44, %1
  br i1 %exitcond.not, label %.preheader41.loopexit, label %.lr.ph, !llvm.loop !9

.preheader:                                       ; preds = %.lr.ph47
  br i1 %7, label %.lr.ph49.preheader, label %._crit_edge

.lr.ph49.preheader:                               ; preds = %.preheader
  %45 = shl nuw i64 %1, 3
  call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 8 %0, ptr nonnull align 16 %36, i64 %45, i1 false), !tbaa !5
  br label %._crit_edge

.lr.ph47:                                         ; preds = %.preheader41, %.lr.ph47
  %.036.in46 = phi i64 [ %.036, %.lr.ph47 ], [ %1, %.preheader41 ]
  %.036 = add nsw i64 %.036.in46, -1
  %46 = getelementptr inbounds i64, ptr %0, i64 %.036
  %47 = load i64, ptr %46, align 8, !tbaa !5
  %48 = srem i64 %47, %5
  %49 = sdiv i64 %48, %6
  %50 = getelementptr inbounds [10 x i64], ptr %3, i64 0, i64 %49
  %51 = load i64, ptr %50, align 8, !tbaa !5
  %gep = getelementptr i64, ptr %invariant.gep, i64 %51
  store i64 %47, ptr %gep, align 8, !tbaa !5
  %52 = add nsw i64 %51, -1
  store i64 %52, ptr %50, align 8, !tbaa !5
  %53 = icmp ugt i64 %.036.in46, 1
  br i1 %53, label %.lr.ph47, label %.preheader, !llvm.loop !11

._crit_edge:                                      ; preds = %.preheader41, %.lr.ph49.preheader, %.preheader
  tail call void @llvm.stackrestore.p0(ptr %35)
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %3) #6
  ret void
}

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZSt3powIixEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(i32 noundef, i64 noundef) local_unnamed_addr #2

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #3

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #3

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #4

; 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) #5

attributes #0 = { mustprogress 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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { inlinehint mustprogress 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 = { mustprogress nocallback nofree nosync nounwind willreturn }
attributes #4 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { 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 long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopIdiomRecognizePass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass