; LLVM IR from AlgoGenesis/C :: Mathematical Algorithms/Sieve Of Eratosthenes (program)

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

18:                                               ; preds = %29, %2
  %19 = load i32, ptr %6, align 4, !tbaa !5
  %20 = load i32, ptr %3, align 4, !tbaa !5
  %21 = icmp sle i32 %19, %20
  br i1 %21, label %23, label %22

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

23:                                               ; preds = %18
  %24 = load i32, ptr %6, align 4, !tbaa !5
  %25 = load ptr, ptr %5, align 8, !tbaa !9
  %26 = load i32, ptr %6, align 4, !tbaa !5
  %27 = sext i32 %26 to i64
  %28 = getelementptr inbounds i32, ptr %25, i64 %27
  store i32 %24, ptr %28, align 4, !tbaa !5
  br label %29

29:                                               ; preds = %23
  %30 = load i32, ptr %6, align 4, !tbaa !5
  %31 = add nsw i32 %30, 1
  store i32 %31, ptr %6, align 4, !tbaa !5
  br label %18, !llvm.loop !11

32:                                               ; preds = %22
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  store i32 2, ptr %7, align 4, !tbaa !5
  br label %33

33:                                               ; preds = %68, %32
  %34 = load i32, ptr %7, align 4, !tbaa !5
  %35 = sitofp i32 %34 to double
  %36 = load i32, ptr %3, align 4, !tbaa !5
  %37 = sitofp i32 %36 to double
  %38 = call double @sqrt(double noundef %37) #4
  %39 = fcmp ole double %35, %38
  br i1 %39, label %41, label %40

40:                                               ; preds = %33
  store i32 5, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  br label %71

41:                                               ; preds = %33
  %42 = load ptr, ptr %5, align 8, !tbaa !9
  %43 = load i32, ptr %7, align 4, !tbaa !5
  %44 = sext i32 %43 to i64
  %45 = getelementptr inbounds i32, ptr %42, i64 %44
  %46 = load i32, ptr %45, align 4, !tbaa !5
  %47 = icmp ne i32 %46, 0
  br i1 %47, label %48, label %67

48:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  %49 = load i32, ptr %7, align 4, !tbaa !5
  %50 = load i32, ptr %7, align 4, !tbaa !5
  %51 = mul nsw i32 %49, %50
  store i32 %51, ptr %9, align 4, !tbaa !5
  br label %52

52:                                               ; preds = %62, %48
  %53 = load i32, ptr %9, align 4, !tbaa !5
  %54 = load i32, ptr %3, align 4, !tbaa !5
  %55 = icmp sle i32 %53, %54
  br i1 %55, label %57, label %56

56:                                               ; preds = %52
  store i32 8, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  br label %66

57:                                               ; preds = %52
  %58 = load ptr, ptr %5, align 8, !tbaa !9
  %59 = load i32, ptr %9, align 4, !tbaa !5
  %60 = sext i32 %59 to i64
  %61 = getelementptr inbounds i32, ptr %58, i64 %60
  store i32 0, ptr %61, align 4, !tbaa !5
  br label %62

62:                                               ; preds = %57
  %63 = load i32, ptr %7, align 4, !tbaa !5
  %64 = load i32, ptr %9, align 4, !tbaa !5
  %65 = add nsw i32 %64, %63
  store i32 %65, ptr %9, align 4, !tbaa !5
  br label %52, !llvm.loop !13

66:                                               ; preds = %56
  br label %67

67:                                               ; preds = %66, %41
  br label %68

68:                                               ; preds = %67
  %69 = load i32, ptr %7, align 4, !tbaa !5
  %70 = add nsw i32 %69, 1
  store i32 %70, ptr %7, align 4, !tbaa !5
  br label %33, !llvm.loop !14

71:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  %72 = load i32, ptr %3, align 4, !tbaa !5
  %73 = sitofp i32 %72 to double
  %74 = load i32, ptr %3, align 4, !tbaa !5
  %75 = sitofp i32 %74 to double
  %76 = call double @log(double noundef %75) #4
  %77 = fdiv double %73, %76
  %78 = fadd double %77, 1.000000e+00
  %79 = fmul double %78, 4.000000e+00
  %80 = fptoui double %79 to i64
  %81 = call noalias ptr @malloc(i64 noundef %80) #5
  store ptr %81, ptr %10, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  store i32 0, ptr %11, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  store i32 2, ptr %12, align 4, !tbaa !5
  br label %82

82:                                               ; preds = %107, %71
  %83 = load i32, ptr %12, align 4, !tbaa !5
  %84 = load i32, ptr %3, align 4, !tbaa !5
  %85 = icmp sle i32 %83, %84
  br i1 %85, label %87, label %86

86:                                               ; preds = %82
  store i32 11, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  br label %110

87:                                               ; preds = %82
  %88 = load ptr, ptr %5, align 8, !tbaa !9
  %89 = load i32, ptr %12, align 4, !tbaa !5
  %90 = sext i32 %89 to i64
  %91 = getelementptr inbounds i32, ptr %88, i64 %90
  %92 = load i32, ptr %91, align 4, !tbaa !5
  %93 = icmp ne i32 %92, 0
  br i1 %93, label %94, label %106

94:                                               ; preds = %87
  %95 = load ptr, ptr %5, align 8, !tbaa !9
  %96 = load i32, ptr %12, align 4, !tbaa !5
  %97 = sext i32 %96 to i64
  %98 = getelementptr inbounds i32, ptr %95, i64 %97
  %99 = load i32, ptr %98, align 4, !tbaa !5
  %100 = load ptr, ptr %10, align 8, !tbaa !9
  %101 = load i32, ptr %11, align 4, !tbaa !5
  %102 = sext i32 %101 to i64
  %103 = getelementptr inbounds i32, ptr %100, i64 %102
  store i32 %99, ptr %103, align 4, !tbaa !5
  %104 = load i32, ptr %11, align 4, !tbaa !5
  %105 = add nsw i32 %104, 1
  store i32 %105, ptr %11, align 4, !tbaa !5
  br label %106

106:                                              ; preds = %94, %87
  br label %107

107:                                              ; preds = %106
  %108 = load i32, ptr %12, align 4, !tbaa !5
  %109 = add nsw i32 %108, 1
  store i32 %109, ptr %12, align 4, !tbaa !5
  br label %82, !llvm.loop !15

110:                                              ; preds = %86
  %111 = load i32, ptr %11, align 4, !tbaa !5
  %112 = load ptr, ptr %4, align 8, !tbaa !9
  store i32 %111, ptr %112, align 4, !tbaa !5
  %113 = load ptr, ptr %5, align 8, !tbaa !9
  call void @free(ptr noundef %113) #4
  %114 = load ptr, ptr %10, align 8, !tbaa !9
  store i32 1, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  ret ptr %114
}

; 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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: nounwind
declare double @sqrt(double noundef) #3

; Function Attrs: nounwind
declare double @log(double noundef) #3

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

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 "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 = { nounwind 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 = !{!"any pointer", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !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: nounwind memory(readwrite, argmem: write) uwtable
define dso_local noalias noundef ptr @sieve(i32 noundef %0, ptr nocapture noundef writeonly %1) local_unnamed_addr #0 {
  %3 = add i32 %0, 1
  %4 = sext i32 %3 to i64
  %5 = shl nsw i64 %4, 2
  %6 = tail call noalias ptr @malloc(i64 noundef %5) #4
  %.not45 = icmp slt i32 %0, 2
  br i1 %.not45, label %.preheader, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %2
  %wide.trip.count = zext i32 %3 to i64
  %7 = add nsw i64 %wide.trip.count, -2
  %min.iters.check = icmp ult i64 %7, 8
  br i1 %min.iters.check, label %.lr.ph.preheader76, label %vector.ph

.lr.ph.preheader76:                               ; preds = %middle.block, %.lr.ph.preheader
  %indvars.iv.ph = phi i64 [ 2, %.lr.ph.preheader ], [ %ind.end, %middle.block ]
  br label %.lr.ph

vector.ph:                                        ; preds = %.lr.ph.preheader
  %n.vec = and i64 %7, -8
  %ind.end = or disjoint i64 %n.vec, 2
  br label %vector.body

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

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %7, %n.vec
  br i1 %cmp.n, label %.preheader, label %.lr.ph.preheader76

.preheader:                                       ; preds = %.lr.ph, %middle.block, %2
  %11 = sitofp i32 %0 to double
  %12 = tail call double @sqrt(double noundef %11) #5
  %13 = fcmp ult double %12, 2.000000e+00
  br i1 %13, label %._crit_edge, label %.lr.ph51

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

._crit_edge:                                      ; preds = %.loopexit, %.preheader
  %16 = tail call double @log(double noundef %11) #5
  %17 = fdiv double %11, %16
  %18 = fadd double %17, 1.000000e+00
  %19 = fmul double %18, 4.000000e+00
  %20 = fptoui double %19 to i64
  %21 = tail call noalias ptr @malloc(i64 noundef %20) #4
  br i1 %.not45, label %._crit_edge57, label %.lr.ph56.preheader

.lr.ph56.preheader:                               ; preds = %._crit_edge
  %wide.trip.count73 = zext i32 %3 to i64
  %xtraiter = and i64 %wide.trip.count73, 1
  %22 = icmp eq i32 %3, 3
  br i1 %22, label %._crit_edge57.loopexit.unr-lcssa, label %.lr.ph56.preheader.new

.lr.ph56.preheader.new:                           ; preds = %.lr.ph56.preheader
  %23 = and i64 %wide.trip.count73, 4294967294
  %24 = add nsw i64 %23, -4
  br label %.lr.ph56

.lr.ph51:                                         ; preds = %.preheader, %.loopexit
  %indvars.iv64 = phi i64 [ %indvars.iv.next65, %.loopexit ], [ 2, %.preheader ]
  %indvars.iv62 = phi i32 [ %indvars.iv.next63, %.loopexit ], [ 4, %.preheader ]
  %indvars.iv60 = phi i32 [ %indvars.iv.next61, %.loopexit ], [ 5, %.preheader ]
  %25 = getelementptr inbounds i32, ptr %6, i64 %indvars.iv64
  %26 = load i32, ptr %25, align 4, !tbaa !5
  %.not43 = icmp eq i32 %26, 0
  %27 = mul nuw nsw i64 %indvars.iv64, %indvars.iv64
  %28 = trunc nuw i64 %27 to i32
  %.not4447 = icmp sgt i32 %28, %0
  %or.cond = select i1 %.not43, i1 true, i1 %.not4447
  br i1 %or.cond, label %.loopexit, label %.lr.ph49.preheader

.lr.ph49.preheader:                               ; preds = %.lr.ph51
  %29 = zext i32 %indvars.iv62 to i64
  br label %.lr.ph49

.lr.ph49:                                         ; preds = %.lr.ph49.preheader, %.lr.ph49
  %indvars.iv66 = phi i64 [ %29, %.lr.ph49.preheader ], [ %indvars.iv.next67, %.lr.ph49 ]
  %30 = getelementptr inbounds i32, ptr %6, i64 %indvars.iv66
  store i32 0, ptr %30, align 4, !tbaa !5
  %indvars.iv.next67 = add nuw nsw i64 %indvars.iv66, %indvars.iv64
  %31 = trunc nuw i64 %indvars.iv.next67 to i32
  %.not44 = icmp sgt i32 %31, %0
  br i1 %.not44, label %.loopexit, label %.lr.ph49, !llvm.loop !14

.loopexit:                                        ; preds = %.lr.ph49, %.lr.ph51
  %indvars.iv.next65 = add nuw nsw i64 %indvars.iv64, 1
  %32 = trunc nuw nsw i64 %indvars.iv.next65 to i32
  %33 = uitofp nneg i32 %32 to double
  %34 = tail call double @sqrt(double noundef %11) #5
  %35 = fcmp ult double %34, %33
  %indvars.iv.next61 = add i32 %indvars.iv60, 2
  %indvars.iv.next63 = add i32 %indvars.iv62, %indvars.iv60
  br i1 %35, label %._crit_edge, label %.lr.ph51, !llvm.loop !15

._crit_edge57.loopexit.unr-lcssa:                 ; preds = %54, %.lr.ph56.preheader
  %.1.lcssa.ph = phi i32 [ poison, %.lr.ph56.preheader ], [ %.1.1, %54 ]
  %indvars.iv70.unr = phi i64 [ 2, %.lr.ph56.preheader ], [ %indvars.iv.next71.1, %54 ]
  %.03553.unr = phi i32 [ 0, %.lr.ph56.preheader ], [ %.1.1, %54 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge57, label %.lr.ph56.epil

.lr.ph56.epil:                                    ; preds = %._crit_edge57.loopexit.unr-lcssa
  %36 = getelementptr inbounds i32, ptr %6, i64 %indvars.iv70.unr
  %37 = load i32, ptr %36, align 4, !tbaa !5
  %.not42.epil = icmp eq i32 %37, 0
  br i1 %.not42.epil, label %._crit_edge57, label %38

38:                                               ; preds = %.lr.ph56.epil
  %39 = sext i32 %.03553.unr to i64
  %40 = getelementptr inbounds i32, ptr %21, i64 %39
  store i32 %37, ptr %40, align 4, !tbaa !5
  %41 = add nsw i32 %.03553.unr, 1
  br label %._crit_edge57

._crit_edge57:                                    ; preds = %._crit_edge57.loopexit.unr-lcssa, %38, %.lr.ph56.epil, %._crit_edge
  %.035.lcssa = phi i32 [ 0, %._crit_edge ], [ %.1.lcssa.ph, %._crit_edge57.loopexit.unr-lcssa ], [ %41, %38 ], [ %.03553.unr, %.lr.ph56.epil ]
  store i32 %.035.lcssa, ptr %1, align 4, !tbaa !5
  tail call void @free(ptr noundef %6) #5
  ret ptr %21

.lr.ph56:                                         ; preds = %54, %.lr.ph56.preheader.new
  %indvars.iv70 = phi i64 [ 2, %.lr.ph56.preheader.new ], [ %indvars.iv.next71.1, %54 ]
  %.03553 = phi i32 [ 0, %.lr.ph56.preheader.new ], [ %.1.1, %54 ]
  %niter = phi i64 [ 0, %.lr.ph56.preheader.new ], [ %niter.next.1, %54 ]
  %42 = getelementptr inbounds i32, ptr %6, i64 %indvars.iv70
  %43 = load i32, ptr %42, align 4, !tbaa !5
  %.not42 = icmp eq i32 %43, 0
  br i1 %.not42, label %.lr.ph56.1, label %44

44:                                               ; preds = %.lr.ph56
  %45 = sext i32 %.03553 to i64
  %46 = getelementptr inbounds i32, ptr %21, i64 %45
  store i32 %43, ptr %46, align 4, !tbaa !5
  %47 = add nsw i32 %.03553, 1
  br label %.lr.ph56.1

.lr.ph56.1:                                       ; preds = %.lr.ph56, %44
  %.1 = phi i32 [ %47, %44 ], [ %.03553, %.lr.ph56 ]
  %indvars.iv.next71 = or disjoint i64 %indvars.iv70, 1
  %48 = getelementptr inbounds i32, ptr %6, i64 %indvars.iv.next71
  %49 = load i32, ptr %48, align 4, !tbaa !5
  %.not42.1 = icmp eq i32 %49, 0
  br i1 %.not42.1, label %54, label %50

50:                                               ; preds = %.lr.ph56.1
  %51 = sext i32 %.1 to i64
  %52 = getelementptr inbounds i32, ptr %21, i64 %51
  store i32 %49, ptr %52, align 4, !tbaa !5
  %53 = add nsw i32 %.1, 1
  br label %54

54:                                               ; preds = %50, %.lr.ph56.1
  %.1.1 = phi i32 [ %53, %50 ], [ %.1, %.lr.ph56.1 ]
  %indvars.iv.next71.1 = add nuw nsw i64 %indvars.iv70, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter, %24
  br i1 %niter.ncmp.1, label %._crit_edge57.loopexit.unr-lcssa, label %.lr.ph56, !llvm.loop !16
}

; 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 memory(write)
declare double @sqrt(double noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @log(double 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

attributes #0 = { nounwind memory(readwrite, argmem: write) 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 memory(write) "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 = { nounwind allocsize(0) }
attributes #5 = { nounwind }

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

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


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