; LLVM IR from TheAlgorithms/C-Plus-Plus :: sorting/radix_sort.ll (Z9radixsortPii)

; 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 @_Z9radixsortPii(ptr noundef %0, i32 noundef %1) #0 {
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca [10 x i32], align 16
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  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 40, ptr %5) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #7
  %19 = load i32, ptr %4, align 4, !tbaa !9
  %20 = sext i32 %19 to i64
  %21 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %20, i64 4)
  %22 = extractvalue { i64, i1 } %21, 1
  %23 = extractvalue { i64, i1 } %21, 0
  %24 = select i1 %22, i64 -1, i64 %23
  %25 = call noalias noundef nonnull ptr @_Znam(i64 noundef %24) #8
  store ptr %25, ptr %6, align 8, !tbaa !5
  %26 = load ptr, ptr %6, align 8, !tbaa !5
  %27 = load i32, ptr %4, align 4, !tbaa !9
  %28 = sext i32 %27 to i64
  %29 = mul i64 %28, 4
  call void @llvm.memset.p0.i64(ptr align 4 %26, i8 0, i64 %29, i1 false)
  %30 = getelementptr inbounds [10 x i32], ptr %5, i64 0, i64 0
  call void @llvm.memset.p0.i64(ptr align 16 %30, i8 0, i64 40, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #7
  store i32 0, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  store i32 0, ptr %8, align 4, !tbaa !9
  br label %31

31:                                               ; preds = %51, %2
  %32 = load i32, ptr %8, align 4, !tbaa !9
  %33 = load i32, ptr %4, align 4, !tbaa !9
  %34 = icmp slt i32 %32, %33
  br i1 %34, label %36, label %35

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

36:                                               ; preds = %31
  %37 = load ptr, ptr %3, align 8, !tbaa !5
  %38 = load i32, ptr %8, align 4, !tbaa !9
  %39 = sext i32 %38 to i64
  %40 = getelementptr inbounds i32, ptr %37, i64 %39
  %41 = load i32, ptr %40, align 4, !tbaa !9
  %42 = load i32, ptr %7, align 4, !tbaa !9
  %43 = icmp sgt i32 %41, %42
  br i1 %43, label %44, label %50

44:                                               ; preds = %36
  %45 = load ptr, ptr %3, align 8, !tbaa !5
  %46 = load i32, ptr %8, align 4, !tbaa !9
  %47 = sext i32 %46 to i64
  %48 = getelementptr inbounds i32, ptr %45, i64 %47
  %49 = load i32, ptr %48, align 4, !tbaa !9
  store i32 %49, ptr %7, align 4, !tbaa !9
  br label %50

50:                                               ; preds = %44, %36
  br label %51

51:                                               ; preds = %50
  %52 = load i32, ptr %8, align 4, !tbaa !9
  %53 = add nsw i32 %52, 1
  store i32 %53, ptr %8, align 4, !tbaa !9
  br label %31, !llvm.loop !11

54:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  store i32 0, ptr %9, align 4, !tbaa !9
  br label %55

55:                                               ; preds = %58, %54
  %56 = load i32, ptr %7, align 4, !tbaa !9
  %57 = icmp ne i32 %56, 0
  br i1 %57, label %58, label %63

58:                                               ; preds = %55
  %59 = load i32, ptr %9, align 4, !tbaa !9
  %60 = add nsw i32 %59, 1
  store i32 %60, ptr %9, align 4, !tbaa !9
  %61 = load i32, ptr %7, align 4, !tbaa !9
  %62 = sdiv i32 %61, 10
  store i32 %62, ptr %7, align 4, !tbaa !9
  br label %55, !llvm.loop !13

63:                                               ; preds = %55
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  store i32 0, ptr %10, align 4, !tbaa !9
  br label %64

64:                                               ; preds = %164, %63
  %65 = load i32, ptr %10, align 4, !tbaa !9
  %66 = load i32, ptr %9, align 4, !tbaa !9
  %67 = icmp slt i32 %65, %66
  br i1 %67, label %69, label %68

68:                                               ; preds = %64
  store i32 7, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  br label %167

69:                                               ; preds = %64
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  store i32 0, ptr %12, align 4, !tbaa !9
  br label %70

70:                                               ; preds = %93, %69
  %71 = load i32, ptr %12, align 4, !tbaa !9
  %72 = load i32, ptr %4, align 4, !tbaa !9
  %73 = icmp slt i32 %71, %72
  br i1 %73, label %75, label %74

74:                                               ; preds = %70
  store i32 10, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  br label %96

75:                                               ; preds = %70
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  %76 = load i32, ptr %10, align 4, !tbaa !9
  %77 = call noundef double @_ZSt3powIiiEN9__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, i32 noundef %76)
  %78 = fptosi double %77 to i32
  store i32 %78, ptr %13, align 4, !tbaa !9
  %79 = load ptr, ptr %3, align 8, !tbaa !5
  %80 = load i32, ptr %12, align 4, !tbaa !9
  %81 = sext i32 %80 to i64
  %82 = getelementptr inbounds i32, ptr %79, i64 %81
  %83 = load i32, ptr %82, align 4, !tbaa !9
  %84 = load i32, ptr %13, align 4, !tbaa !9
  %85 = mul nsw i32 10, %84
  %86 = srem i32 %83, %85
  %87 = load i32, ptr %13, align 4, !tbaa !9
  %88 = sdiv i32 %86, %87
  %89 = sext i32 %88 to i64
  %90 = getelementptr inbounds [10 x i32], ptr %5, i64 0, i64 %89
  %91 = load i32, ptr %90, align 4, !tbaa !9
  %92 = add nsw i32 %91, 1
  store i32 %92, ptr %90, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  br label %93

93:                                               ; preds = %75
  %94 = load i32, ptr %12, align 4, !tbaa !9
  %95 = add nsw i32 %94, 1
  store i32 %95, ptr %12, align 4, !tbaa !9
  br label %70, !llvm.loop !14

96:                                               ; preds = %74
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  store i32 0, ptr %14, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  store i32 0, ptr %15, align 4, !tbaa !9
  br label %97

97:                                               ; preds = %140, %96
  %98 = load i32, ptr %15, align 4, !tbaa !9
  %99 = icmp slt i32 %98, 10
  br i1 %99, label %101, label %100

100:                                              ; preds = %97
  store i32 13, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  br label %143

101:                                              ; preds = %97
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  store i32 0, ptr %16, align 4, !tbaa !9
  br label %102

102:                                              ; preds = %136, %101
  %103 = load i32, ptr %16, align 4, !tbaa !9
  %104 = load i32, ptr %4, align 4, !tbaa !9
  %105 = icmp slt i32 %103, %104
  br i1 %105, label %107, label %106

106:                                              ; preds = %102
  store i32 16, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  br label %139

107:                                              ; preds = %102
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #7
  %108 = load i32, ptr %10, align 4, !tbaa !9
  %109 = call noundef double @_ZSt3powIiiEN9__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, i32 noundef %108)
  %110 = fptosi double %109 to i32
  store i32 %110, ptr %17, align 4, !tbaa !9
  %111 = load ptr, ptr %3, align 8, !tbaa !5
  %112 = load i32, ptr %16, align 4, !tbaa !9
  %113 = sext i32 %112 to i64
  %114 = getelementptr inbounds i32, ptr %111, i64 %113
  %115 = load i32, ptr %114, align 4, !tbaa !9
  %116 = load i32, ptr %17, align 4, !tbaa !9
  %117 = mul nsw i32 10, %116
  %118 = srem i32 %115, %117
  %119 = load i32, ptr %17, align 4, !tbaa !9
  %120 = sdiv i32 %118, %119
  %121 = load i32, ptr %15, align 4, !tbaa !9
  %122 = icmp eq i32 %120, %121
  br i1 %122, label %123, label %135

123:                                              ; preds = %107
  %124 = load ptr, ptr %3, align 8, !tbaa !5
  %125 = load i32, ptr %16, align 4, !tbaa !9
  %126 = sext i32 %125 to i64
  %127 = getelementptr inbounds i32, ptr %124, i64 %126
  %128 = load i32, ptr %127, align 4, !tbaa !9
  %129 = load ptr, ptr %6, align 8, !tbaa !5
  %130 = load i32, ptr %14, align 4, !tbaa !9
  %131 = sext i32 %130 to i64
  %132 = getelementptr inbounds i32, ptr %129, i64 %131
  store i32 %128, ptr %132, align 4, !tbaa !9
  %133 = load i32, ptr %14, align 4, !tbaa !9
  %134 = add nsw i32 %133, 1
  store i32 %134, ptr %14, align 4, !tbaa !9
  br label %135

135:                                              ; preds = %123, %107
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  br label %136

136:                                              ; preds = %135
  %137 = load i32, ptr %16, align 4, !tbaa !9
  %138 = add nsw i32 %137, 1
  store i32 %138, ptr %16, align 4, !tbaa !9
  br label %102, !llvm.loop !15

139:                                              ; preds = %106
  br label %140

140:                                              ; preds = %139
  %141 = load i32, ptr %15, align 4, !tbaa !9
  %142 = add nsw i32 %141, 1
  store i32 %142, ptr %15, align 4, !tbaa !9
  br label %97, !llvm.loop !16

143:                                              ; preds = %100
  %144 = getelementptr inbounds [10 x i32], ptr %5, i64 0, i64 0
  call void @llvm.memset.p0.i64(ptr align 16 %144, i8 0, i64 40, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #7
  store i32 0, ptr %18, align 4, !tbaa !9
  br label %145

145:                                              ; preds = %160, %143
  %146 = load i32, ptr %18, align 4, !tbaa !9
  %147 = load i32, ptr %4, align 4, !tbaa !9
  %148 = icmp slt i32 %146, %147
  br i1 %148, label %150, label %149

149:                                              ; preds = %145
  store i32 19, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  br label %163

150:                                              ; preds = %145
  %151 = load ptr, ptr %6, align 8, !tbaa !5
  %152 = load i32, ptr %18, align 4, !tbaa !9
  %153 = sext i32 %152 to i64
  %154 = getelementptr inbounds i32, ptr %151, i64 %153
  %155 = load i32, ptr %154, align 4, !tbaa !9
  %156 = load ptr, ptr %3, align 8, !tbaa !5
  %157 = load i32, ptr %18, align 4, !tbaa !9
  %158 = sext i32 %157 to i64
  %159 = getelementptr inbounds i32, ptr %156, i64 %158
  store i32 %155, ptr %159, align 4, !tbaa !9
  br label %160

160:                                              ; preds = %150
  %161 = load i32, ptr %18, align 4, !tbaa !9
  %162 = add nsw i32 %161, 1
  store i32 %162, ptr %18, align 4, !tbaa !9
  br label %145, !llvm.loop !17

163:                                              ; preds = %149
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  br label %164

164:                                              ; preds = %163
  %165 = load i32, ptr %10, align 4, !tbaa !9
  %166 = add nsw i32 %165, 1
  store i32 %166, ptr %10, align 4, !tbaa !9
  br label %64, !llvm.loop !18

167:                                              ; preds = %68
  %168 = load ptr, ptr %6, align 8, !tbaa !5
  %169 = icmp eq ptr %168, null
  br i1 %169, label %171, label %170

170:                                              ; preds = %167
  call void @_ZdaPv(ptr noundef %168) #9
  br label %171

171:                                              ; preds = %170, %167
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr %5) #7
  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: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare { i64, i1 } @llvm.umul.with.overflow.i64(i64, i64) #2

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) #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 nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZSt3powIiiEN9__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, i32 noundef) #5

; Function Attrs: nobuiltin nounwind
declare void @_ZdaPv(ptr noundef) #6

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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { nobuiltin allocsize(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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { 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 #6 = { nobuiltin nounwind "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 #7 = { nounwind }
attributes #8 = { builtin allocsize(0) }
attributes #9 = { builtin 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 = !{!"int", !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}
!17 = distinct !{!17, !12}
!18 = distinct !{!18, !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 uwtable
define dso_local void @_Z9radixsortPii(ptr nocapture noundef %0, i32 noundef %1) local_unnamed_addr #0 {
  %3 = alloca [10 x i32], align 16
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %3) #8
  %4 = sext i32 %1 to i64
  %5 = icmp slt i32 %1, 0
  %6 = shl nsw i64 %4, 2
  %7 = select i1 %5, i64 -1, i64 %6
  %8 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %7) #9
  tail call void @llvm.memset.p0.i64(ptr nonnull align 4 %8, i8 0, i64 %6, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(40) %3, i8 0, i64 40, i1 false)
  %9 = icmp sgt i32 %1, 0
  br i1 %9, label %.lr.ph.preheader, label %._crit_edge82

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

.lr.ph.preheader127:                              ; preds = %middle.block, %.lr.ph.preheader
  %indvars.iv.ph = phi i64 [ 0, %.lr.ph.preheader ], [ %n.vec, %middle.block ]
  %.04865.ph = phi i32 [ 0, %.lr.ph.preheader ], [ %15, %middle.block ]
  br label %.lr.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.phi = phi <4 x i32> [ zeroinitializer, %vector.ph ], [ %12, %vector.body ]
  %vec.phi125 = phi <4 x i32> [ zeroinitializer, %vector.ph ], [ %13, %vector.body ]
  %10 = getelementptr inbounds i32, ptr %0, i64 %index
  %11 = getelementptr inbounds i8, ptr %10, i64 16
  %wide.load = load <4 x i32>, ptr %10, align 4, !tbaa !5
  %wide.load126 = load <4 x i32>, ptr %11, align 4, !tbaa !5
  %12 = tail call <4 x i32> @llvm.smax.v4i32(<4 x i32> %wide.load, <4 x i32> %vec.phi)
  %13 = tail call <4 x i32> @llvm.smax.v4i32(<4 x i32> %wide.load126, <4 x i32> %vec.phi125)
  %index.next = add nuw i64 %index, 8
  %14 = icmp eq i64 %index.next, %n.vec
  br i1 %14, label %middle.block, label %vector.body, !llvm.loop !9

middle.block:                                     ; preds = %vector.body
  %rdx.minmax = tail call <4 x i32> @llvm.smax.v4i32(<4 x i32> %12, <4 x i32> %13)
  %15 = tail call i32 @llvm.vector.reduce.smax.v4i32(<4 x i32> %rdx.minmax)
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count
  br i1 %cmp.n, label %.preheader63, label %.lr.ph.preheader127

.preheader63:                                     ; preds = %.lr.ph, %middle.block
  %spec.select.lcssa = phi i32 [ %15, %middle.block ], [ %spec.select, %.lr.ph ]
  %.not66 = icmp eq i32 %spec.select.lcssa, 0
  br i1 %.not66, label %._crit_edge82, label %.lr.ph69

.lr.ph:                                           ; preds = %.lr.ph.preheader127, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ %indvars.iv.ph, %.lr.ph.preheader127 ]
  %.04865 = phi i32 [ %spec.select, %.lr.ph ], [ %.04865.ph, %.lr.ph.preheader127 ]
  %16 = getelementptr inbounds i32, ptr %0, i64 %indvars.iv
  %17 = load i32, ptr %16, align 4, !tbaa !5
  %spec.select = tail call i32 @llvm.smax.i32(i32 %17, i32 %.04865)
  %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 %.preheader63, label %.lr.ph, !llvm.loop !13

.preheader61.lr.ph:                               ; preds = %.lr.ph69
  br i1 %9, label %.preheader61.us.preheader, label %._crit_edge82

.preheader61.us.preheader:                        ; preds = %.preheader61.lr.ph
  %18 = zext nneg i32 %1 to i64
  %19 = shl nuw nsw i64 %18, 2
  br label %.lr.ph72.us.preheader

.lr.ph72.us.preheader:                            ; preds = %._crit_edge.us83, %.preheader61.us.preheader
  %.05681.us = phi i32 [ %20, %._crit_edge.us83 ], [ 0, %.preheader61.us.preheader ]
  br label %.lr.ph72.us

._crit_edge.us83:                                 ; preds = %161
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(40) %3, i8 0, i64 40, i1 false)
  tail call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 4 %0, ptr nonnull align 4 %8, i64 %19, i1 false), !tbaa !5
  %20 = add nuw i32 %.05681.us, 1
  %exitcond118.not = icmp eq i32 %.05681.us, %.05767
  br i1 %exitcond118.not, label %._crit_edge82, label %.lr.ph72.us.preheader, !llvm.loop !14

.lr.ph72.us:                                      ; preds = %.lr.ph72.us.preheader, %.lr.ph72.us
  %indvars.iv104 = phi i64 [ 0, %.lr.ph72.us.preheader ], [ %indvars.iv.next105, %.lr.ph72.us ]
  %21 = tail call noundef double @_ZSt3powIiiEN9__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, i32 noundef %.05681.us)
  %22 = fptosi double %21 to i32
  %23 = getelementptr inbounds i32, ptr %0, i64 %indvars.iv104
  %24 = load i32, ptr %23, align 4, !tbaa !5
  %25 = mul nsw i32 %22, 10
  %26 = srem i32 %24, %25
  %27 = sdiv i32 %26, %22
  %28 = sext i32 %27 to i64
  %29 = getelementptr inbounds [10 x i32], ptr %3, i64 0, i64 %28
  %30 = load i32, ptr %29, align 4, !tbaa !5
  %31 = add nsw i32 %30, 1
  store i32 %31, ptr %29, align 4, !tbaa !5
  %indvars.iv.next105 = add nuw nsw i64 %indvars.iv104, 1
  %exitcond108.not = icmp eq i64 %indvars.iv.next105, %18
  br i1 %exitcond108.not, label %.preheader60.us, label %.lr.ph72.us, !llvm.loop !15

.preheader60.us:                                  ; preds = %.lr.ph72.us, %44
  %indvars.iv109 = phi i64 [ %indvars.iv.next110, %44 ], [ 0, %.lr.ph72.us ]
  %.15273.us.us = phi i32 [ %.253.us.us, %44 ], [ 0, %.lr.ph72.us ]
  %32 = tail call noundef double @_ZSt3powIiiEN9__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, i32 noundef %.05681.us)
  %33 = fptosi double %32 to i32
  %34 = getelementptr inbounds i32, ptr %0, i64 %indvars.iv109
  %35 = load i32, ptr %34, align 4, !tbaa !5
  %36 = mul nsw i32 %33, 10
  %37 = srem i32 %35, %36
  %38 = sdiv i32 %37, %33
  %39 = icmp eq i32 %38, 0
  br i1 %39, label %40, label %44

40:                                               ; preds = %.preheader60.us
  %41 = sext i32 %.15273.us.us to i64
  %42 = getelementptr inbounds i32, ptr %8, i64 %41
  store i32 %35, ptr %42, align 4, !tbaa !5
  %43 = add nsw i32 %.15273.us.us, 1
  br label %44

44:                                               ; preds = %40, %.preheader60.us
  %.253.us.us = phi i32 [ %43, %40 ], [ %.15273.us.us, %.preheader60.us ]
  %indvars.iv.next110 = add nuw nsw i64 %indvars.iv109, 1
  %exitcond113.not = icmp eq i64 %indvars.iv.next110, %18
  br i1 %exitcond113.not, label %._crit_edge.us.us, label %.preheader60.us, !llvm.loop !16

._crit_edge.us.us:                                ; preds = %44, %57
  %indvars.iv109.1 = phi i64 [ %indvars.iv.next110.1, %57 ], [ 0, %44 ]
  %.15273.us.us.1 = phi i32 [ %.253.us.us.1, %57 ], [ %.253.us.us, %44 ]
  %45 = tail call noundef double @_ZSt3powIiiEN9__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, i32 noundef %.05681.us)
  %46 = fptosi double %45 to i32
  %47 = getelementptr inbounds i32, ptr %0, i64 %indvars.iv109.1
  %48 = load i32, ptr %47, align 4, !tbaa !5
  %49 = mul nsw i32 %46, 10
  %50 = srem i32 %48, %49
  %51 = sdiv i32 %50, %46
  %52 = icmp eq i32 %51, 1
  br i1 %52, label %53, label %57

53:                                               ; preds = %._crit_edge.us.us
  %54 = sext i32 %.15273.us.us.1 to i64
  %55 = getelementptr inbounds i32, ptr %8, i64 %54
  store i32 %48, ptr %55, align 4, !tbaa !5
  %56 = add nsw i32 %.15273.us.us.1, 1
  br label %57

57:                                               ; preds = %53, %._crit_edge.us.us
  %.253.us.us.1 = phi i32 [ %56, %53 ], [ %.15273.us.us.1, %._crit_edge.us.us ]
  %indvars.iv.next110.1 = add nuw nsw i64 %indvars.iv109.1, 1
  %exitcond113.1.not = icmp eq i64 %indvars.iv.next110.1, %18
  br i1 %exitcond113.1.not, label %._crit_edge.us.us.1, label %._crit_edge.us.us, !llvm.loop !16

._crit_edge.us.us.1:                              ; preds = %57, %70
  %indvars.iv109.2 = phi i64 [ %indvars.iv.next110.2, %70 ], [ 0, %57 ]
  %.15273.us.us.2 = phi i32 [ %.253.us.us.2, %70 ], [ %.253.us.us.1, %57 ]
  %58 = tail call noundef double @_ZSt3powIiiEN9__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, i32 noundef %.05681.us)
  %59 = fptosi double %58 to i32
  %60 = getelementptr inbounds i32, ptr %0, i64 %indvars.iv109.2
  %61 = load i32, ptr %60, align 4, !tbaa !5
  %62 = mul nsw i32 %59, 10
  %63 = srem i32 %61, %62
  %64 = sdiv i32 %63, %59
  %65 = icmp eq i32 %64, 2
  br i1 %65, label %66, label %70

66:                                               ; preds = %._crit_edge.us.us.1
  %67 = sext i32 %.15273.us.us.2 to i64
  %68 = getelementptr inbounds i32, ptr %8, i64 %67
  store i32 %61, ptr %68, align 4, !tbaa !5
  %69 = add nsw i32 %.15273.us.us.2, 1
  br label %70

70:                                               ; preds = %66, %._crit_edge.us.us.1
  %.253.us.us.2 = phi i32 [ %69, %66 ], [ %.15273.us.us.2, %._crit_edge.us.us.1 ]
  %indvars.iv.next110.2 = add nuw nsw i64 %indvars.iv109.2, 1
  %exitcond113.2.not = icmp eq i64 %indvars.iv.next110.2, %18
  br i1 %exitcond113.2.not, label %._crit_edge.us.us.2, label %._crit_edge.us.us.1, !llvm.loop !16

._crit_edge.us.us.2:                              ; preds = %70, %83
  %indvars.iv109.3 = phi i64 [ %indvars.iv.next110.3, %83 ], [ 0, %70 ]
  %.15273.us.us.3 = phi i32 [ %.253.us.us.3, %83 ], [ %.253.us.us.2, %70 ]
  %71 = tail call noundef double @_ZSt3powIiiEN9__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, i32 noundef %.05681.us)
  %72 = fptosi double %71 to i32
  %73 = getelementptr inbounds i32, ptr %0, i64 %indvars.iv109.3
  %74 = load i32, ptr %73, align 4, !tbaa !5
  %75 = mul nsw i32 %72, 10
  %76 = srem i32 %74, %75
  %77 = sdiv i32 %76, %72
  %78 = icmp eq i32 %77, 3
  br i1 %78, label %79, label %83

79:                                               ; preds = %._crit_edge.us.us.2
  %80 = sext i32 %.15273.us.us.3 to i64
  %81 = getelementptr inbounds i32, ptr %8, i64 %80
  store i32 %74, ptr %81, align 4, !tbaa !5
  %82 = add nsw i32 %.15273.us.us.3, 1
  br label %83

83:                                               ; preds = %79, %._crit_edge.us.us.2
  %.253.us.us.3 = phi i32 [ %82, %79 ], [ %.15273.us.us.3, %._crit_edge.us.us.2 ]
  %indvars.iv.next110.3 = add nuw nsw i64 %indvars.iv109.3, 1
  %exitcond113.3.not = icmp eq i64 %indvars.iv.next110.3, %18
  br i1 %exitcond113.3.not, label %._crit_edge.us.us.3, label %._crit_edge.us.us.2, !llvm.loop !16

._crit_edge.us.us.3:                              ; preds = %83, %96
  %indvars.iv109.4 = phi i64 [ %indvars.iv.next110.4, %96 ], [ 0, %83 ]
  %.15273.us.us.4 = phi i32 [ %.253.us.us.4, %96 ], [ %.253.us.us.3, %83 ]
  %84 = tail call noundef double @_ZSt3powIiiEN9__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, i32 noundef %.05681.us)
  %85 = fptosi double %84 to i32
  %86 = getelementptr inbounds i32, ptr %0, i64 %indvars.iv109.4
  %87 = load i32, ptr %86, align 4, !tbaa !5
  %88 = mul nsw i32 %85, 10
  %89 = srem i32 %87, %88
  %90 = sdiv i32 %89, %85
  %91 = icmp eq i32 %90, 4
  br i1 %91, label %92, label %96

92:                                               ; preds = %._crit_edge.us.us.3
  %93 = sext i32 %.15273.us.us.4 to i64
  %94 = getelementptr inbounds i32, ptr %8, i64 %93
  store i32 %87, ptr %94, align 4, !tbaa !5
  %95 = add nsw i32 %.15273.us.us.4, 1
  br label %96

96:                                               ; preds = %92, %._crit_edge.us.us.3
  %.253.us.us.4 = phi i32 [ %95, %92 ], [ %.15273.us.us.4, %._crit_edge.us.us.3 ]
  %indvars.iv.next110.4 = add nuw nsw i64 %indvars.iv109.4, 1
  %exitcond113.4.not = icmp eq i64 %indvars.iv.next110.4, %18
  br i1 %exitcond113.4.not, label %._crit_edge.us.us.4, label %._crit_edge.us.us.3, !llvm.loop !16

._crit_edge.us.us.4:                              ; preds = %96, %109
  %indvars.iv109.5 = phi i64 [ %indvars.iv.next110.5, %109 ], [ 0, %96 ]
  %.15273.us.us.5 = phi i32 [ %.253.us.us.5, %109 ], [ %.253.us.us.4, %96 ]
  %97 = tail call noundef double @_ZSt3powIiiEN9__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, i32 noundef %.05681.us)
  %98 = fptosi double %97 to i32
  %99 = getelementptr inbounds i32, ptr %0, i64 %indvars.iv109.5
  %100 = load i32, ptr %99, align 4, !tbaa !5
  %101 = mul nsw i32 %98, 10
  %102 = srem i32 %100, %101
  %103 = sdiv i32 %102, %98
  %104 = icmp eq i32 %103, 5
  br i1 %104, label %105, label %109

105:                                              ; preds = %._crit_edge.us.us.4
  %106 = sext i32 %.15273.us.us.5 to i64
  %107 = getelementptr inbounds i32, ptr %8, i64 %106
  store i32 %100, ptr %107, align 4, !tbaa !5
  %108 = add nsw i32 %.15273.us.us.5, 1
  br label %109

109:                                              ; preds = %105, %._crit_edge.us.us.4
  %.253.us.us.5 = phi i32 [ %108, %105 ], [ %.15273.us.us.5, %._crit_edge.us.us.4 ]
  %indvars.iv.next110.5 = add nuw nsw i64 %indvars.iv109.5, 1
  %exitcond113.5.not = icmp eq i64 %indvars.iv.next110.5, %18
  br i1 %exitcond113.5.not, label %._crit_edge.us.us.5, label %._crit_edge.us.us.4, !llvm.loop !16

._crit_edge.us.us.5:                              ; preds = %109, %122
  %indvars.iv109.6 = phi i64 [ %indvars.iv.next110.6, %122 ], [ 0, %109 ]
  %.15273.us.us.6 = phi i32 [ %.253.us.us.6, %122 ], [ %.253.us.us.5, %109 ]
  %110 = tail call noundef double @_ZSt3powIiiEN9__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, i32 noundef %.05681.us)
  %111 = fptosi double %110 to i32
  %112 = getelementptr inbounds i32, ptr %0, i64 %indvars.iv109.6
  %113 = load i32, ptr %112, align 4, !tbaa !5
  %114 = mul nsw i32 %111, 10
  %115 = srem i32 %113, %114
  %116 = sdiv i32 %115, %111
  %117 = icmp eq i32 %116, 6
  br i1 %117, label %118, label %122

118:                                              ; preds = %._crit_edge.us.us.5
  %119 = sext i32 %.15273.us.us.6 to i64
  %120 = getelementptr inbounds i32, ptr %8, i64 %119
  store i32 %113, ptr %120, align 4, !tbaa !5
  %121 = add nsw i32 %.15273.us.us.6, 1
  br label %122

122:                                              ; preds = %118, %._crit_edge.us.us.5
  %.253.us.us.6 = phi i32 [ %121, %118 ], [ %.15273.us.us.6, %._crit_edge.us.us.5 ]
  %indvars.iv.next110.6 = add nuw nsw i64 %indvars.iv109.6, 1
  %exitcond113.6.not = icmp eq i64 %indvars.iv.next110.6, %18
  br i1 %exitcond113.6.not, label %._crit_edge.us.us.6, label %._crit_edge.us.us.5, !llvm.loop !16

._crit_edge.us.us.6:                              ; preds = %122, %135
  %indvars.iv109.7 = phi i64 [ %indvars.iv.next110.7, %135 ], [ 0, %122 ]
  %.15273.us.us.7 = phi i32 [ %.253.us.us.7, %135 ], [ %.253.us.us.6, %122 ]
  %123 = tail call noundef double @_ZSt3powIiiEN9__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, i32 noundef %.05681.us)
  %124 = fptosi double %123 to i32
  %125 = getelementptr inbounds i32, ptr %0, i64 %indvars.iv109.7
  %126 = load i32, ptr %125, align 4, !tbaa !5
  %127 = mul nsw i32 %124, 10
  %128 = srem i32 %126, %127
  %129 = sdiv i32 %128, %124
  %130 = icmp eq i32 %129, 7
  br i1 %130, label %131, label %135

131:                                              ; preds = %._crit_edge.us.us.6
  %132 = sext i32 %.15273.us.us.7 to i64
  %133 = getelementptr inbounds i32, ptr %8, i64 %132
  store i32 %126, ptr %133, align 4, !tbaa !5
  %134 = add nsw i32 %.15273.us.us.7, 1
  br label %135

135:                                              ; preds = %131, %._crit_edge.us.us.6
  %.253.us.us.7 = phi i32 [ %134, %131 ], [ %.15273.us.us.7, %._crit_edge.us.us.6 ]
  %indvars.iv.next110.7 = add nuw nsw i64 %indvars.iv109.7, 1
  %exitcond113.7.not = icmp eq i64 %indvars.iv.next110.7, %18
  br i1 %exitcond113.7.not, label %._crit_edge.us.us.7, label %._crit_edge.us.us.6, !llvm.loop !16

._crit_edge.us.us.7:                              ; preds = %135, %148
  %indvars.iv109.8 = phi i64 [ %indvars.iv.next110.8, %148 ], [ 0, %135 ]
  %.15273.us.us.8 = phi i32 [ %.253.us.us.8, %148 ], [ %.253.us.us.7, %135 ]
  %136 = tail call noundef double @_ZSt3powIiiEN9__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, i32 noundef %.05681.us)
  %137 = fptosi double %136 to i32
  %138 = getelementptr inbounds i32, ptr %0, i64 %indvars.iv109.8
  %139 = load i32, ptr %138, align 4, !tbaa !5
  %140 = mul nsw i32 %137, 10
  %141 = srem i32 %139, %140
  %142 = sdiv i32 %141, %137
  %143 = icmp eq i32 %142, 8
  br i1 %143, label %144, label %148

144:                                              ; preds = %._crit_edge.us.us.7
  %145 = sext i32 %.15273.us.us.8 to i64
  %146 = getelementptr inbounds i32, ptr %8, i64 %145
  store i32 %139, ptr %146, align 4, !tbaa !5
  %147 = add nsw i32 %.15273.us.us.8, 1
  br label %148

148:                                              ; preds = %144, %._crit_edge.us.us.7
  %.253.us.us.8 = phi i32 [ %147, %144 ], [ %.15273.us.us.8, %._crit_edge.us.us.7 ]
  %indvars.iv.next110.8 = add nuw nsw i64 %indvars.iv109.8, 1
  %exitcond113.8.not = icmp eq i64 %indvars.iv.next110.8, %18
  br i1 %exitcond113.8.not, label %._crit_edge.us.us.8, label %._crit_edge.us.us.7, !llvm.loop !16

._crit_edge.us.us.8:                              ; preds = %148, %161
  %indvars.iv109.9 = phi i64 [ %indvars.iv.next110.9, %161 ], [ 0, %148 ]
  %.15273.us.us.9 = phi i32 [ %.253.us.us.9, %161 ], [ %.253.us.us.8, %148 ]
  %149 = tail call noundef double @_ZSt3powIiiEN9__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, i32 noundef %.05681.us)
  %150 = fptosi double %149 to i32
  %151 = getelementptr inbounds i32, ptr %0, i64 %indvars.iv109.9
  %152 = load i32, ptr %151, align 4, !tbaa !5
  %153 = mul nsw i32 %150, 10
  %154 = srem i32 %152, %153
  %155 = sdiv i32 %154, %150
  %156 = icmp eq i32 %155, 9
  br i1 %156, label %157, label %161

157:                                              ; preds = %._crit_edge.us.us.8
  %158 = sext i32 %.15273.us.us.9 to i64
  %159 = getelementptr inbounds i32, ptr %8, i64 %158
  store i32 %152, ptr %159, align 4, !tbaa !5
  %160 = add nsw i32 %.15273.us.us.9, 1
  br label %161

161:                                              ; preds = %157, %._crit_edge.us.us.8
  %.253.us.us.9 = phi i32 [ %160, %157 ], [ %.15273.us.us.9, %._crit_edge.us.us.8 ]
  %indvars.iv.next110.9 = add nuw nsw i64 %indvars.iv109.9, 1
  %exitcond113.9.not = icmp eq i64 %indvars.iv.next110.9, %18
  br i1 %exitcond113.9.not, label %._crit_edge.us83, label %._crit_edge.us.us.8, !llvm.loop !16

.lr.ph69:                                         ; preds = %.preheader63, %.lr.ph69
  %.268 = phi i32 [ %163, %.lr.ph69 ], [ %spec.select.lcssa, %.preheader63 ]
  %.05767 = phi i32 [ %162, %.lr.ph69 ], [ 0, %.preheader63 ]
  %162 = add nuw nsw i32 %.05767, 1
  %163 = udiv i32 %.268, 10
  %.not = icmp ult i32 %.268, 10
  br i1 %.not, label %.preheader61.lr.ph, label %.lr.ph69, !llvm.loop !17

._crit_edge82:                                    ; preds = %._crit_edge.us83, %.preheader61.lr.ph, %2, %.preheader63
  tail call void @_ZdaPv(ptr noundef nonnull %8) #10
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %3) #8
  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: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) local_unnamed_addr #2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZSt3powIiiEN9__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, i32 noundef) local_unnamed_addr #4

; Function Attrs: nobuiltin nounwind
declare void @_ZdaPv(ptr noundef) local_unnamed_addr #5

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smax.i32(i32, i32) #6

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <4 x i32> @llvm.smax.v4i32(<4 x i32>, <4 x i32>) #6

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.vector.reduce.smax.v4i32(<4 x i32>) #6

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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nobuiltin allocsize(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 nounwind willreturn memory(argmem: write) }
attributes #4 = { 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 #5 = { nobuiltin nounwind "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 #6 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #7 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #8 = { nounwind }
attributes #9 = { builtin allocsize(0) }
attributes #10 = { builtin 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++ 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}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !10}
!16 = distinct !{!16, !10}
!17 = distinct !{!17, !10}


; Effective O3 passes: CorrelatedValuePropagationPass,DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopIdiomRecognizePass,LoopInstSimplifyPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,PostOrderFunctionAttrsPass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass