; LLVM IR from daanx/mimalloc-bench :: bench/cfrac (pcfrac)

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

@pone = external global ptr, align 8
@primes = external global [0 x i16], align 2
@primesize = external global i32, align 4

; 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

; Function Attrs: allocsize(0)
declare ptr @malloc(i64 noundef) #1

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @pparmq(ptr noundef) #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @pdestroy(ptr noundef) #2

declare ptr @pmul(ptr noundef, ptr noundef) #3

declare ptr @ppowmod(ptr noundef, ptr noundef, ptr noundef) #3

declare ptr @utop(i32 noundef) #3

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @pnew(ptr noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local double @pomeranceLpow(double noundef, double noundef) #4

; Function Attrs: nounwind uwtable
declare dso_local double @cfracA(double noundef, i32 noundef) #4

; Function Attrs: nounwind uwtable
define dso_local ptr @pfactorbase(ptr noundef %0, i32 noundef %1, ptr noundef %2, i32 noundef %3) #4 {
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca double, align 8
  %10 = alloca double, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store i32 %1, ptr %6, align 4, !tbaa !9
  store ptr %2, ptr %7, align 8, !tbaa !5
  store i32 %3, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  store ptr @primes, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  %17 = load ptr, ptr %7, align 8, !tbaa !5
  %18 = load i32, ptr %17, align 4, !tbaa !9
  store i32 %18, ptr %12, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  %19 = load i32, ptr @primesize, align 4, !tbaa !9
  %20 = sub i32 %19, 1
  %21 = zext i32 %20 to i64
  %22 = getelementptr inbounds [0 x i16], ptr @primes, i64 0, i64 %21
  %23 = load i16, ptr %22, align 2, !tbaa !11
  %24 = zext i16 %23 to i32
  store i32 %24, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  store ptr null, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  %25 = load ptr, ptr %5, align 8, !tbaa !5
  %26 = call ptr @pparmq(ptr noundef %25)
  %27 = load i32, ptr %6, align 4, !tbaa !9
  %28 = call ptr @utop(i32 noundef %27)
  %29 = call ptr @pmul(ptr noundef %26, ptr noundef %28)
  %30 = call ptr @pnew(ptr noundef %29)
  store ptr %30, ptr %16, align 8, !tbaa !5
  %31 = load ptr, ptr %7, align 8, !tbaa !5
  %32 = load i32, ptr %31, align 4, !tbaa !9
  %33 = icmp eq i32 %32, 0
  br i1 %33, label %34, label %65

34:                                               ; preds = %4
  %35 = load ptr, ptr %16, align 8, !tbaa !5
  %36 = call double @ptod(ptr noundef %35)
  store double %36, ptr %9, align 8, !tbaa !13
  %37 = load double, ptr %9, align 8, !tbaa !13
  %38 = load i32, ptr %8, align 4, !tbaa !9
  %39 = call double @cfracA(double noundef %37, i32 noundef %38)
  store double %39, ptr %10, align 8, !tbaa !13
  %40 = load double, ptr %9, align 8, !tbaa !13
  %41 = load double, ptr %10, align 8, !tbaa !13
  %42 = call double @pomeranceLpow(double noundef %40, double noundef %41)
  %43 = fadd double %42, 5.000000e-01
  %44 = fptoui double %43 to i32
  store i32 %44, ptr %13, align 4, !tbaa !9
  br label %45

45:                                               ; preds = %54, %34
  %46 = load ptr, ptr %11, align 8, !tbaa !5
  %47 = getelementptr inbounds i16, ptr %46, i32 1
  store ptr %47, ptr %11, align 8, !tbaa !5
  %48 = load i16, ptr %46, align 2, !tbaa !11
  %49 = zext i16 %48 to i32
  %50 = load i32, ptr %13, align 4, !tbaa !9
  %51 = icmp uge i32 %49, %50
  br i1 %51, label %52, label %53

52:                                               ; preds = %45
  br label %59

53:                                               ; preds = %45
  br label %54

54:                                               ; preds = %53
  %55 = load ptr, ptr %11, align 8, !tbaa !5
  %56 = load i16, ptr %55, align 2, !tbaa !11
  %57 = zext i16 %56 to i32
  %58 = icmp ne i32 %57, 1
  br i1 %58, label %45, label %59, !llvm.loop !15

59:                                               ; preds = %54, %52
  %60 = load ptr, ptr %11, align 8, !tbaa !5
  %61 = ptrtoint ptr %60 to i64
  %62 = sub i64 %61, ptrtoint (ptr @primes to i64)
  %63 = sdiv exact i64 %62, 2
  %64 = trunc i64 %63 to i32
  store i32 %64, ptr %12, align 4, !tbaa !9
  store ptr @primes, ptr %11, align 8, !tbaa !5
  br label %65

65:                                               ; preds = %59, %4
  %66 = load i32, ptr %12, align 4, !tbaa !9
  %67 = zext i32 %66 to i64
  %68 = mul i64 %67, 4
  %69 = call ptr @malloc(i64 noundef %68) #6
  store ptr %69, ptr %14, align 8, !tbaa !5
  %70 = load ptr, ptr %14, align 8, !tbaa !5
  %71 = icmp eq ptr %70, null
  br i1 %71, label %72, label %73

72:                                               ; preds = %65
  br label %135

73:                                               ; preds = %65
  %74 = load ptr, ptr %14, align 8, !tbaa !5
  store ptr %74, ptr %15, align 8, !tbaa !5
  %75 = load ptr, ptr %11, align 8, !tbaa !5
  %76 = getelementptr inbounds i16, ptr %75, i32 1
  store ptr %76, ptr %11, align 8, !tbaa !5
  %77 = load i16, ptr %75, align 2, !tbaa !11
  %78 = zext i16 %77 to i32
  %79 = load ptr, ptr %15, align 8, !tbaa !5
  %80 = getelementptr inbounds i32, ptr %79, i32 1
  store ptr %80, ptr %15, align 8, !tbaa !5
  store i32 %78, ptr %79, align 4, !tbaa !9
  store i32 1, ptr %12, align 4, !tbaa !9
  %81 = load i32, ptr %12, align 4, !tbaa !9
  %82 = load ptr, ptr %7, align 8, !tbaa !5
  %83 = load i32, ptr %82, align 4, !tbaa !9
  %84 = icmp ne i32 %81, %83
  br i1 %84, label %85, label %132

85:                                               ; preds = %73
  br label %86

86:                                               ; preds = %126, %85
  %87 = load ptr, ptr %16, align 8, !tbaa !5
  %88 = load ptr, ptr %11, align 8, !tbaa !5
  %89 = load i16, ptr %88, align 2, !tbaa !11
  %90 = zext i16 %89 to i32
  %91 = call ptr @utop(i32 noundef %90)
  %92 = load ptr, ptr @pone, align 8, !tbaa !5
  %93 = call ptr @psub(ptr noundef %91, ptr noundef %92)
  %94 = call ptr @phalf(ptr noundef %93)
  %95 = load ptr, ptr %11, align 8, !tbaa !5
  %96 = load i16, ptr %95, align 2, !tbaa !11
  %97 = zext i16 %96 to i32
  %98 = call ptr @utop(i32 noundef %97)
  %99 = call ptr @ppowmod(ptr noundef %87, ptr noundef %94, ptr noundef %98)
  %100 = call i32 @picmp(ptr noundef %99, i32 noundef 1)
  %101 = icmp sle i32 %100, 0
  br i1 %101, label %102, label %123

102:                                              ; preds = %86
  %103 = load ptr, ptr %11, align 8, !tbaa !5
  %104 = load i16, ptr %103, align 2, !tbaa !11
  %105 = zext i16 %104 to i32
  %106 = load ptr, ptr %15, align 8, !tbaa !5
  %107 = getelementptr inbounds i32, ptr %106, i32 1
  store ptr %107, ptr %15, align 8, !tbaa !5
  store i32 %105, ptr %106, align 4, !tbaa !9
  %108 = load i32, ptr %12, align 4, !tbaa !9
  %109 = add i32 %108, 1
  store i32 %109, ptr %12, align 4, !tbaa !9
  %110 = load i32, ptr %12, align 4, !tbaa !9
  %111 = load ptr, ptr %7, align 8, !tbaa !5
  %112 = load i32, ptr %111, align 4, !tbaa !9
  %113 = icmp eq i32 %110, %112
  br i1 %113, label %114, label %115

114:                                              ; preds = %102
  br label %131

115:                                              ; preds = %102
  %116 = load ptr, ptr %11, align 8, !tbaa !5
  %117 = load i16, ptr %116, align 2, !tbaa !11
  %118 = zext i16 %117 to i32
  %119 = load i32, ptr %13, align 4, !tbaa !9
  %120 = icmp uge i32 %118, %119
  br i1 %120, label %121, label %122

121:                                              ; preds = %115
  br label %131

122:                                              ; preds = %115
  br label %123

123:                                              ; preds = %122, %86
  %124 = load ptr, ptr %11, align 8, !tbaa !5
  %125 = getelementptr inbounds i16, ptr %124, i32 1
  store ptr %125, ptr %11, align 8, !tbaa !5
  br label %126

126:                                              ; preds = %123
  %127 = load ptr, ptr %11, align 8, !tbaa !5
  %128 = load i16, ptr %127, align 2, !tbaa !11
  %129 = zext i16 %128 to i32
  %130 = icmp ne i32 %129, 1
  br i1 %130, label %86, label %131, !llvm.loop !17

131:                                              ; preds = %126, %121, %114
  br label %132

132:                                              ; preds = %131, %73
  %133 = load i32, ptr %12, align 4, !tbaa !9
  %134 = load ptr, ptr %7, align 8, !tbaa !5
  store i32 %133, ptr %134, align 4, !tbaa !9
  br label %135

135:                                              ; preds = %132, %72
  %136 = load ptr, ptr %16, align 8, !tbaa !5
  call void @pdestroy(ptr noundef %136)
  %137 = load ptr, ptr %5, align 8, !tbaa !5
  call void @pdestroy(ptr noundef %137)
  %138 = load ptr, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  ret ptr %138
}

declare double @ptod(ptr noundef) #3

declare i32 @picmp(ptr noundef, i32 noundef) #3

declare ptr @phalf(ptr noundef) #3

declare ptr @psub(ptr noundef, ptr noundef) #3

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { inlinehint 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 = { "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 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 = { nounwind }
attributes #6 = { allocsize(0) }

!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 = !{!"short", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"double", !7, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}


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

@pone = external local_unnamed_addr global ptr, align 8
@primes = external global [0 x i16], align 2
@primesize = external local_unnamed_addr global i32, align 4

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @pparmq(ptr noundef) local_unnamed_addr #1

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @pdestroy(ptr noundef) local_unnamed_addr #1

declare ptr @pmul(ptr noundef, ptr noundef) local_unnamed_addr #2

declare ptr @ppowmod(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare ptr @utop(i32 noundef) local_unnamed_addr #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @pnew(ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local double @pomeranceLpow(double noundef, double noundef) local_unnamed_addr #3

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

; Function Attrs: nounwind uwtable
define dso_local noalias noundef ptr @pfactorbase(ptr noundef %0, i32 noundef %1, ptr nocapture noundef %2, i32 noundef %3) local_unnamed_addr #3 {
  %5 = load i32, ptr %2, align 4, !tbaa !5
  %6 = load i32, ptr @primesize, align 4, !tbaa !5
  %7 = add i32 %6, -1
  %8 = zext i32 %7 to i64
  %9 = getelementptr inbounds [0 x i16], ptr @primes, i64 0, i64 %8
  %10 = load i16, ptr %9, align 2, !tbaa !9
  %11 = zext i16 %10 to i32
  %12 = tail call ptr @pparmq(ptr noundef %0)
  %13 = tail call ptr @utop(i32 noundef %1) #4
  %14 = tail call ptr @pmul(ptr noundef %12, ptr noundef %13) #4
  %15 = tail call ptr @pnew(ptr noundef %14)
  %16 = load i32, ptr %2, align 4, !tbaa !5
  %17 = icmp eq i32 %16, 0
  br i1 %17, label %18, label %35

18:                                               ; preds = %4
  %19 = tail call double @ptod(ptr noundef %15) #4
  %20 = tail call double @cfracA(double noundef %19, i32 noundef %3)
  %21 = tail call double @pomeranceLpow(double noundef %19, double noundef %20)
  %22 = fadd double %21, 5.000000e-01
  %23 = fptoui double %22 to i32
  %.pre = load i16, ptr @primes, align 2, !tbaa !9
  br label %24

24:                                               ; preds = %28, %18
  %25 = phi i16 [ %.pre, %18 ], [ %29, %28 ]
  %.0 = phi ptr [ @primes, %18 ], [ %26, %28 ]
  %26 = getelementptr inbounds i8, ptr %.0, i64 2
  %27 = zext i16 %25 to i32
  %.not = icmp ult i32 %27, %23
  br i1 %.not, label %28, label %30

28:                                               ; preds = %24
  %29 = load i16, ptr %26, align 2, !tbaa !9
  %.not44 = icmp eq i16 %29, 1
  br i1 %.not44, label %30, label %24, !llvm.loop !11

30:                                               ; preds = %24, %28
  %31 = ptrtoint ptr %26 to i64
  %32 = sub i64 %31, ptrtoint (ptr @primes to i64)
  %33 = lshr exact i64 %32, 1
  %34 = trunc i64 %33 to i32
  br label %35

35:                                               ; preds = %30, %4
  %.039 = phi i32 [ %34, %30 ], [ %5, %4 ]
  %.038 = phi i32 [ %23, %30 ], [ %11, %4 ]
  %36 = zext i32 %.039 to i64
  %37 = shl nuw nsw i64 %36, 2
  %38 = tail call ptr @malloc(i64 noundef %37) #5
  %39 = icmp eq ptr %38, null
  br i1 %39, label %67, label %40

40:                                               ; preds = %35
  %41 = load i16, ptr @primes, align 2, !tbaa !9
  %42 = zext i16 %41 to i32
  store i32 %42, ptr %38, align 4, !tbaa !5
  %43 = load i32, ptr %2, align 4, !tbaa !5
  %.not45 = icmp eq i32 %43, 1
  br i1 %.not45, label %.loopexit, label %.preheader.preheader

.preheader.preheader:                             ; preds = %40
  %44 = getelementptr inbounds i8, ptr %38, i64 4
  %.pre48 = load i16, ptr getelementptr inbounds (i8, ptr @primes, i64 2), align 2, !tbaa !9
  br label %.preheader

.preheader:                                       ; preds = %.preheader.preheader, %64
  %45 = phi i16 [ %66, %64 ], [ %.pre48, %.preheader.preheader ]
  %.140 = phi i32 [ %.241, %64 ], [ 1, %.preheader.preheader ]
  %.036 = phi ptr [ %.137, %64 ], [ %44, %.preheader.preheader ]
  %.2 = phi ptr [ %65, %64 ], [ getelementptr inbounds (i8, ptr @primes, i64 2), %.preheader.preheader ]
  %46 = zext i16 %45 to i32
  %47 = tail call ptr @utop(i32 noundef %46) #4
  %48 = load ptr, ptr @pone, align 8, !tbaa !13
  %49 = tail call ptr @psub(ptr noundef %47, ptr noundef %48) #4
  %50 = tail call ptr @phalf(ptr noundef %49) #4
  %51 = load i16, ptr %.2, align 2, !tbaa !9
  %52 = zext i16 %51 to i32
  %53 = tail call ptr @utop(i32 noundef %52) #4
  %54 = tail call ptr @ppowmod(ptr noundef %15, ptr noundef %50, ptr noundef %53) #4
  %55 = tail call i32 @picmp(ptr noundef %54, i32 noundef 1) #4
  %56 = icmp slt i32 %55, 1
  br i1 %56, label %57, label %64

57:                                               ; preds = %.preheader
  %58 = load i16, ptr %.2, align 2, !tbaa !9
  %59 = zext i16 %58 to i32
  store i32 %59, ptr %.036, align 4, !tbaa !5
  %60 = add i32 %.140, 1
  %61 = load i32, ptr %2, align 4, !tbaa !5
  %62 = icmp ne i32 %60, %61
  %63 = getelementptr inbounds i8, ptr %.036, i64 4
  %.not46 = icmp ugt i32 %.038, %59
  %or.cond = select i1 %62, i1 %.not46, i1 false
  br i1 %or.cond, label %64, label %.loopexit

64:                                               ; preds = %57, %.preheader
  %.241 = phi i32 [ %.140, %.preheader ], [ %60, %57 ]
  %.137 = phi ptr [ %.036, %.preheader ], [ %63, %57 ]
  %65 = getelementptr inbounds i8, ptr %.2, i64 2
  %66 = load i16, ptr %65, align 2, !tbaa !9
  %.not47 = icmp eq i16 %66, 1
  br i1 %.not47, label %.loopexit, label %.preheader, !llvm.loop !15

.loopexit:                                        ; preds = %64, %57, %40
  %.3 = phi i32 [ 1, %40 ], [ %.241, %64 ], [ %60, %57 ]
  store i32 %.3, ptr %2, align 4, !tbaa !5
  br label %67

67:                                               ; preds = %35, %.loopexit
  tail call void @pdestroy(ptr noundef %15)
  tail call void @pdestroy(ptr noundef %0)
  ret ptr %38
}

declare double @ptod(ptr noundef) local_unnamed_addr #2

declare i32 @picmp(ptr noundef, i32 noundef) local_unnamed_addr #2

declare ptr @phalf(ptr noundef) local_unnamed_addr #2

declare ptr @psub(ptr noundef, ptr noundef) local_unnamed_addr #2

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

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

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


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass