; LLVM IR from h-ssiqueira/Sort_Algorithms :: src/noncomparisonDistribution (countingSort)

; 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: nounwind uwtable
define dso_local void @countingSort(ptr noundef %0, i32 noundef %1) #0 {
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store i32 %1, ptr %4, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  %12 = load i32, ptr %4, align 4, !tbaa !9
  %13 = sext i32 %12 to i64
  %14 = mul i64 %13, 8
  %15 = call noalias ptr @malloc(i64 noundef %14) #6
  store ptr %15, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  %16 = load ptr, ptr %3, align 8, !tbaa !5
  %17 = load i64, ptr %16, align 8, !tbaa !11
  store i64 %17, ptr %6, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  %18 = load ptr, ptr %3, align 8, !tbaa !5
  %19 = load i64, ptr %18, align 8, !tbaa !11
  store i64 %19, ptr %7, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %20 = load ptr, ptr %3, align 8, !tbaa !5
  store ptr %20, ptr %8, align 8, !tbaa !5
  br label %21

21:                                               ; preds = %45, %2
  %22 = load ptr, ptr %8, align 8, !tbaa !5
  %23 = load ptr, ptr %3, align 8, !tbaa !5
  %24 = load i32, ptr %4, align 4, !tbaa !9
  %25 = sext i32 %24 to i64
  %26 = getelementptr inbounds i64, ptr %23, i64 %25
  %27 = icmp ult ptr %22, %26
  br i1 %27, label %28, label %48

28:                                               ; preds = %21
  %29 = load ptr, ptr %8, align 8, !tbaa !5
  %30 = load i64, ptr %29, align 8, !tbaa !11
  %31 = load i64, ptr %6, align 8, !tbaa !11
  %32 = icmp sgt i64 %30, %31
  br i1 %32, label %33, label %36

33:                                               ; preds = %28
  %34 = load ptr, ptr %8, align 8, !tbaa !5
  %35 = load i64, ptr %34, align 8, !tbaa !11
  store i64 %35, ptr %6, align 8, !tbaa !11
  br label %36

36:                                               ; preds = %33, %28
  %37 = load ptr, ptr %8, align 8, !tbaa !5
  %38 = load i64, ptr %37, align 8, !tbaa !11
  %39 = load i64, ptr %7, align 8, !tbaa !11
  %40 = icmp slt i64 %38, %39
  br i1 %40, label %41, label %44

41:                                               ; preds = %36
  %42 = load ptr, ptr %8, align 8, !tbaa !5
  %43 = load i64, ptr %42, align 8, !tbaa !11
  store i64 %43, ptr %7, align 8, !tbaa !11
  br label %44

44:                                               ; preds = %41, %36
  br label %45

45:                                               ; preds = %44
  %46 = load ptr, ptr %8, align 8, !tbaa !5
  %47 = getelementptr inbounds i64, ptr %46, i32 1
  store ptr %47, ptr %8, align 8, !tbaa !5
  br label %21, !llvm.loop !13

48:                                               ; preds = %21
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  %49 = load i64, ptr %6, align 8, !tbaa !11
  %50 = load i64, ptr %7, align 8, !tbaa !11
  %51 = sub nsw i64 %49, %50
  %52 = add nsw i64 %51, 1
  %53 = trunc i64 %52 to i32
  store i32 %53, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %54 = load i32, ptr %10, align 4, !tbaa !9
  %55 = sext i32 %54 to i64
  %56 = call noalias ptr @calloc(i64 noundef %55, i64 noundef 8) #7
  store ptr %56, ptr %11, align 8, !tbaa !5
  %57 = load ptr, ptr %3, align 8, !tbaa !5
  store ptr %57, ptr %8, align 8, !tbaa !5
  br label %58

58:                                               ; preds = %75, %48
  %59 = load ptr, ptr %8, align 8, !tbaa !5
  %60 = load ptr, ptr %3, align 8, !tbaa !5
  %61 = load i32, ptr %4, align 4, !tbaa !9
  %62 = sext i32 %61 to i64
  %63 = getelementptr inbounds i64, ptr %60, i64 %62
  %64 = icmp ult ptr %59, %63
  br i1 %64, label %65, label %78

65:                                               ; preds = %58
  %66 = load ptr, ptr %11, align 8, !tbaa !5
  %67 = load ptr, ptr %8, align 8, !tbaa !5
  %68 = load i64, ptr %67, align 8, !tbaa !11
  %69 = getelementptr inbounds i64, ptr %66, i64 %68
  %70 = load i64, ptr %7, align 8, !tbaa !11
  %71 = sub i64 0, %70
  %72 = getelementptr inbounds i64, ptr %69, i64 %71
  %73 = load i64, ptr %72, align 8, !tbaa !11
  %74 = add nsw i64 %73, 1
  store i64 %74, ptr %72, align 8, !tbaa !11
  br label %75

75:                                               ; preds = %65
  %76 = load ptr, ptr %8, align 8, !tbaa !5
  %77 = getelementptr inbounds i64, ptr %76, i32 1
  store ptr %77, ptr %8, align 8, !tbaa !5
  br label %58, !llvm.loop !15

78:                                               ; preds = %58
  %79 = load ptr, ptr %11, align 8, !tbaa !5
  %80 = getelementptr inbounds i64, ptr %79, i64 1
  store ptr %80, ptr %8, align 8, !tbaa !5
  br label %81

81:                                               ; preds = %95, %78
  %82 = load ptr, ptr %8, align 8, !tbaa !5
  %83 = load ptr, ptr %11, align 8, !tbaa !5
  %84 = load i32, ptr %10, align 4, !tbaa !9
  %85 = sext i32 %84 to i64
  %86 = getelementptr inbounds i64, ptr %83, i64 %85
  %87 = icmp ult ptr %82, %86
  br i1 %87, label %88, label %98

88:                                               ; preds = %81
  %89 = load ptr, ptr %8, align 8, !tbaa !5
  %90 = getelementptr inbounds i64, ptr %89, i64 -1
  %91 = load i64, ptr %90, align 8, !tbaa !11
  %92 = load ptr, ptr %8, align 8, !tbaa !5
  %93 = load i64, ptr %92, align 8, !tbaa !11
  %94 = add nsw i64 %93, %91
  store i64 %94, ptr %92, align 8, !tbaa !11
  br label %95

95:                                               ; preds = %88
  %96 = load ptr, ptr %8, align 8, !tbaa !5
  %97 = getelementptr inbounds i64, ptr %96, i32 1
  store ptr %97, ptr %8, align 8, !tbaa !5
  br label %81, !llvm.loop !16

98:                                               ; preds = %81
  %99 = load ptr, ptr %3, align 8, !tbaa !5
  %100 = load i32, ptr %4, align 4, !tbaa !9
  %101 = sext i32 %100 to i64
  %102 = getelementptr inbounds i64, ptr %99, i64 %101
  %103 = getelementptr inbounds i64, ptr %102, i64 -1
  store ptr %103, ptr %8, align 8, !tbaa !5
  br label %104

104:                                              ; preds = %131, %98
  %105 = load ptr, ptr %8, align 8, !tbaa !5
  %106 = load ptr, ptr %3, align 8, !tbaa !5
  %107 = icmp uge ptr %105, %106
  br i1 %107, label %108, label %134

108:                                              ; preds = %104
  %109 = load ptr, ptr %8, align 8, !tbaa !5
  %110 = load i64, ptr %109, align 8, !tbaa !11
  %111 = load ptr, ptr %5, align 8, !tbaa !5
  %112 = load ptr, ptr %11, align 8, !tbaa !5
  %113 = load ptr, ptr %8, align 8, !tbaa !5
  %114 = load i64, ptr %113, align 8, !tbaa !11
  %115 = getelementptr inbounds i64, ptr %112, i64 %114
  %116 = load i64, ptr %7, align 8, !tbaa !11
  %117 = sub i64 0, %116
  %118 = getelementptr inbounds i64, ptr %115, i64 %117
  %119 = load i64, ptr %118, align 8, !tbaa !11
  %120 = getelementptr inbounds i64, ptr %111, i64 %119
  %121 = getelementptr inbounds i64, ptr %120, i64 -1
  store i64 %110, ptr %121, align 8, !tbaa !11
  %122 = load ptr, ptr %11, align 8, !tbaa !5
  %123 = load ptr, ptr %8, align 8, !tbaa !5
  %124 = load i64, ptr %123, align 8, !tbaa !11
  %125 = getelementptr inbounds i64, ptr %122, i64 %124
  %126 = load i64, ptr %7, align 8, !tbaa !11
  %127 = sub i64 0, %126
  %128 = getelementptr inbounds i64, ptr %125, i64 %127
  %129 = load i64, ptr %128, align 8, !tbaa !11
  %130 = add nsw i64 %129, -1
  store i64 %130, ptr %128, align 8, !tbaa !11
  br label %131

131:                                              ; preds = %108
  %132 = load ptr, ptr %8, align 8, !tbaa !5
  %133 = getelementptr inbounds i64, ptr %132, i32 -1
  store ptr %133, ptr %8, align 8, !tbaa !5
  br label %104, !llvm.loop !17

134:                                              ; preds = %104
  %135 = load ptr, ptr %3, align 8, !tbaa !5
  store ptr %135, ptr %8, align 8, !tbaa !5
  %136 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %136, ptr %9, align 8, !tbaa !5
  br label %137

137:                                              ; preds = %148, %134
  %138 = load ptr, ptr %8, align 8, !tbaa !5
  %139 = load ptr, ptr %3, align 8, !tbaa !5
  %140 = load i32, ptr %4, align 4, !tbaa !9
  %141 = sext i32 %140 to i64
  %142 = getelementptr inbounds i64, ptr %139, i64 %141
  %143 = icmp ult ptr %138, %142
  br i1 %143, label %144, label %153

144:                                              ; preds = %137
  %145 = load ptr, ptr %9, align 8, !tbaa !5
  %146 = load i64, ptr %145, align 8, !tbaa !11
  %147 = load ptr, ptr %8, align 8, !tbaa !5
  store i64 %146, ptr %147, align 8, !tbaa !11
  br label %148

148:                                              ; preds = %144
  %149 = load ptr, ptr %8, align 8, !tbaa !5
  %150 = getelementptr inbounds i64, ptr %149, i32 1
  store ptr %150, ptr %8, align 8, !tbaa !5
  %151 = load ptr, ptr %9, align 8, !tbaa !5
  %152 = getelementptr inbounds i64, ptr %151, i32 1
  store ptr %152, ptr %9, align 8, !tbaa !5
  br label %137, !llvm.loop !18

153:                                              ; preds = %137
  %154 = load ptr, ptr %11, align 8, !tbaa !5
  call void @free(ptr noundef %154) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  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: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #2

; Function Attrs: nounwind allocsize(0,1)
declare noalias ptr @calloc(i64 noundef, i64 noundef) #3

; Function Attrs: nounwind
declare void @free(ptr noundef) #4

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

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nounwind 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 = { nounwind allocsize(0,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 #4 = { 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 #5 = { nounwind }
attributes #6 = { nounwind allocsize(0) }
attributes #7 = { nounwind allocsize(0,1) }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}
!17 = distinct !{!17, !14}
!18 = distinct !{!18, !14}


; 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: nounwind uwtable
define dso_local void @countingSort(ptr noundef %0, i32 noundef %1) local_unnamed_addr #0 {
  %3 = ptrtoint ptr %0 to i64
  %4 = sext i32 %1 to i64
  %5 = shl nsw i64 %4, 3
  %6 = tail call noalias ptr @malloc(i64 noundef %5) #6
  %7 = load i64, ptr %0, align 8, !tbaa !5
  %8 = getelementptr inbounds i64, ptr %0, i64 %4
  %9 = icmp sgt i32 %1, 0
  br i1 %9, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %2, %.lr.ph
  %.068 = phi i64 [ %spec.select, %.lr.ph ], [ %7, %2 ]
  %.05467 = phi i64 [ %.155, %.lr.ph ], [ %7, %2 ]
  %.05766 = phi ptr [ %11, %.lr.ph ], [ %0, %2 ]
  %10 = load i64, ptr %.05766, align 8, !tbaa !5
  %spec.select = tail call i64 @llvm.smax.i64(i64 %10, i64 %.068)
  %.155 = tail call i64 @llvm.smin.i64(i64 %10, i64 %.05467)
  %11 = getelementptr inbounds i8, ptr %.05766, i64 8
  %12 = icmp ult ptr %11, %8
  br i1 %12, label %.lr.ph, label %._crit_edge, !llvm.loop !9

._crit_edge:                                      ; preds = %.lr.ph, %2
  %.054.lcssa = phi i64 [ %7, %2 ], [ %.155, %.lr.ph ]
  %.0.lcssa = phi i64 [ %7, %2 ], [ %spec.select, %.lr.ph ]
  %13 = sub nsw i64 %.0.lcssa, %.054.lcssa
  %14 = shl i64 %13, 32
  %sext = add i64 %14, 4294967296
  %15 = ashr exact i64 %sext, 32
  %16 = tail call noalias ptr @calloc(i64 noundef %15, i64 noundef 8) #7
  br i1 %9, label %.lr.ph73, label %.preheader65

.lr.ph73:                                         ; preds = %._crit_edge
  %17 = sub i64 0, %.054.lcssa
  %invariant.gep = getelementptr i64, ptr %16, i64 %17
  br label %20

.preheader65:                                     ; preds = %20, %._crit_edge
  %.idx = ashr exact i64 %sext, 29
  %18 = getelementptr inbounds i8, ptr %16, i64 %.idx
  %19 = icmp sgt i64 %.idx, 8
  br i1 %19, label %.lr.ph77.preheader, label %.preheader64

.lr.ph77.preheader:                               ; preds = %.preheader65
  %.274 = getelementptr inbounds i8, ptr %16, i64 8
  %.pre = load i64, ptr %16, align 8, !tbaa !5
  br label %.lr.ph77

20:                                               ; preds = %.lr.ph73, %20
  %.15871 = phi ptr [ %0, %.lr.ph73 ], [ %24, %20 ]
  %21 = load i64, ptr %.15871, align 8, !tbaa !5
  %gep = getelementptr i64, ptr %invariant.gep, i64 %21
  %22 = load i64, ptr %gep, align 8, !tbaa !5
  %23 = add nsw i64 %22, 1
  store i64 %23, ptr %gep, align 8, !tbaa !5
  %24 = getelementptr inbounds i8, ptr %.15871, i64 8
  %25 = icmp ult ptr %24, %8
  br i1 %25, label %20, label %.preheader65, !llvm.loop !11

.preheader64:                                     ; preds = %.lr.ph77, %.preheader65
  %invariant.gep78 = getelementptr i8, ptr %6, i64 -8
  %.380 = getelementptr inbounds i8, ptr %8, i64 -8
  %.not81 = icmp ult ptr %.380, %0
  br i1 %.not81, label %.preheader, label %.lr.ph83

.lr.ph83:                                         ; preds = %.preheader64
  %26 = sub i64 0, %.054.lcssa
  %invariant.gep84 = getelementptr i64, ptr %16, i64 %26
  br label %37

.lr.ph77:                                         ; preds = %.lr.ph77.preheader, %.lr.ph77
  %27 = phi i64 [ %29, %.lr.ph77 ], [ %.pre, %.lr.ph77.preheader ]
  %.276 = phi ptr [ %.2, %.lr.ph77 ], [ %.274, %.lr.ph77.preheader ]
  %28 = load i64, ptr %.276, align 8, !tbaa !5
  %29 = add nsw i64 %28, %27
  store i64 %29, ptr %.276, align 8, !tbaa !5
  %.2 = getelementptr inbounds i8, ptr %.276, i64 8
  %30 = icmp ult ptr %.2, %18
  br i1 %30, label %.lr.ph77, label %.preheader64, !llvm.loop !12

.preheader:                                       ; preds = %37, %.preheader64
  br i1 %9, label %.lr.ph88.preheader, label %._crit_edge89

.lr.ph88.preheader:                               ; preds = %.preheader
  %31 = add i64 %5, %3
  %32 = add i64 %3, 8
  %umax = tail call i64 @llvm.umax.i64(i64 %31, i64 %32)
  %33 = xor i64 %3, -1
  %34 = add i64 %umax, %33
  %35 = and i64 %34, -8
  %36 = add i64 %35, 8
  tail call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 8 %0, ptr align 8 %6, i64 %36, i1 false), !tbaa !5
  br label %._crit_edge89

37:                                               ; preds = %.lr.ph83, %37
  %.382 = phi ptr [ %.380, %.lr.ph83 ], [ %.3, %37 ]
  %38 = load i64, ptr %.382, align 8, !tbaa !5
  %gep85 = getelementptr i64, ptr %invariant.gep84, i64 %38
  %39 = load i64, ptr %gep85, align 8, !tbaa !5
  %gep79 = getelementptr i64, ptr %invariant.gep78, i64 %39
  store i64 %38, ptr %gep79, align 8, !tbaa !5
  %40 = add nsw i64 %39, -1
  store i64 %40, ptr %gep85, align 8, !tbaa !5
  %.3 = getelementptr inbounds i8, ptr %.382, i64 -8
  %.not = icmp ult ptr %.3, %0
  br i1 %.not, label %.preheader, label %37, !llvm.loop !13

._crit_edge89:                                    ; preds = %.lr.ph88.preheader, %.preheader
  tail call void @free(ptr noundef %16) #8
  ret void
}

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,zeroed") allocsize(0,1) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @calloc(i64 noundef, i64 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #3

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.smin.i64(i64, i64) #4

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.umax.i64(i64, i64) #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 = { 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 nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "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 = { mustprogress nofree nounwind willreturn allockind("alloc,zeroed") allocsize(0,1) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "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 nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "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 nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { nounwind allocsize(0) }
attributes #7 = { nounwind allocsize(0,1) }
attributes #8 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = distinct !{!12, !10}
!13 = distinct !{!13, !10}


; Effective O3 passes: BDCEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopIdiomRecognizePass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass