; LLVM IR from kostya/crystal-benchmarks-game :: spectralnorm (spectralnorm)

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

@.str = external hidden unnamed_addr constant [7 x i8], align 1

; 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 speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #1

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

; Function Attrs: nounwind uwtable
declare dso_local void @eval_AtA_times_u(i32 noundef, ptr noundef, ptr noundef) #2

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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #2 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca double, align 8
  %12 = alloca double, align 8
  store i32 0, ptr %3, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #7
  %13 = load i32, ptr %4, align 4, !tbaa !5
  %14 = icmp eq i32 %13, 2
  br i1 %14, label %15, label %20

15:                                               ; preds = %2
  %16 = load ptr, ptr %5, align 8, !tbaa !9
  %17 = getelementptr inbounds ptr, ptr %16, i64 1
  %18 = load ptr, ptr %17, align 8, !tbaa !9
  %19 = call i32 @atoi(ptr noundef %18) #8
  br label %21

20:                                               ; preds = %2
  br label %21

21:                                               ; preds = %20, %15
  %22 = phi i32 [ %19, %15 ], [ 2000, %20 ]
  store i32 %22, ptr %7, align 4, !tbaa !5
  %23 = load i32, ptr %7, align 4, !tbaa !5
  %24 = zext i32 %23 to i64
  %25 = call ptr @llvm.stacksave.p0()
  store ptr %25, ptr %8, align 8
  %26 = alloca double, i64 %24, align 16
  store i64 %24, ptr %9, align 8
  %27 = load i32, ptr %7, align 4, !tbaa !5
  %28 = zext i32 %27 to i64
  %29 = alloca double, i64 %28, align 16
  store i64 %28, ptr %10, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  store i32 0, ptr %6, align 4, !tbaa !5
  br label %30

30:                                               ; preds = %38, %21
  %31 = load i32, ptr %6, align 4, !tbaa !5
  %32 = load i32, ptr %7, align 4, !tbaa !5
  %33 = icmp slt i32 %31, %32
  br i1 %33, label %34, label %41

34:                                               ; preds = %30
  %35 = load i32, ptr %6, align 4, !tbaa !5
  %36 = sext i32 %35 to i64
  %37 = getelementptr inbounds double, ptr %26, i64 %36
  store double 1.000000e+00, ptr %37, align 8, !tbaa !11
  br label %38

38:                                               ; preds = %34
  %39 = load i32, ptr %6, align 4, !tbaa !5
  %40 = add nsw i32 %39, 1
  store i32 %40, ptr %6, align 4, !tbaa !5
  br label %30, !llvm.loop !13

41:                                               ; preds = %30
  store i32 0, ptr %6, align 4, !tbaa !5
  br label %42

42:                                               ; preds = %48, %41
  %43 = load i32, ptr %6, align 4, !tbaa !5
  %44 = icmp slt i32 %43, 10
  br i1 %44, label %45, label %51

45:                                               ; preds = %42
  %46 = load i32, ptr %7, align 4, !tbaa !5
  call void @eval_AtA_times_u(i32 noundef %46, ptr noundef %26, ptr noundef %29)
  %47 = load i32, ptr %7, align 4, !tbaa !5
  call void @eval_AtA_times_u(i32 noundef %47, ptr noundef %29, ptr noundef %26)
  br label %48

48:                                               ; preds = %45
  %49 = load i32, ptr %6, align 4, !tbaa !5
  %50 = add nsw i32 %49, 1
  store i32 %50, ptr %6, align 4, !tbaa !5
  br label %42, !llvm.loop !15

51:                                               ; preds = %42
  store double 0.000000e+00, ptr %12, align 8, !tbaa !11
  store double 0.000000e+00, ptr %11, align 8, !tbaa !11
  store i32 0, ptr %6, align 4, !tbaa !5
  br label %52

52:                                               ; preds = %77, %51
  %53 = load i32, ptr %6, align 4, !tbaa !5
  %54 = load i32, ptr %7, align 4, !tbaa !5
  %55 = icmp slt i32 %53, %54
  br i1 %55, label %56, label %80

56:                                               ; preds = %52
  %57 = load i32, ptr %6, align 4, !tbaa !5
  %58 = sext i32 %57 to i64
  %59 = getelementptr inbounds double, ptr %26, i64 %58
  %60 = load double, ptr %59, align 8, !tbaa !11
  %61 = load i32, ptr %6, align 4, !tbaa !5
  %62 = sext i32 %61 to i64
  %63 = getelementptr inbounds double, ptr %29, i64 %62
  %64 = load double, ptr %63, align 8, !tbaa !11
  %65 = load double, ptr %11, align 8, !tbaa !11
  %66 = call double @llvm.fmuladd.f64(double %60, double %64, double %65)
  store double %66, ptr %11, align 8, !tbaa !11
  %67 = load i32, ptr %6, align 4, !tbaa !5
  %68 = sext i32 %67 to i64
  %69 = getelementptr inbounds double, ptr %29, i64 %68
  %70 = load double, ptr %69, align 8, !tbaa !11
  %71 = load i32, ptr %6, align 4, !tbaa !5
  %72 = sext i32 %71 to i64
  %73 = getelementptr inbounds double, ptr %29, i64 %72
  %74 = load double, ptr %73, align 8, !tbaa !11
  %75 = load double, ptr %12, align 8, !tbaa !11
  %76 = call double @llvm.fmuladd.f64(double %70, double %74, double %75)
  store double %76, ptr %12, align 8, !tbaa !11
  br label %77

77:                                               ; preds = %56
  %78 = load i32, ptr %6, align 4, !tbaa !5
  %79 = add nsw i32 %78, 1
  store i32 %79, ptr %6, align 4, !tbaa !5
  br label %52, !llvm.loop !16

80:                                               ; preds = %52
  %81 = load double, ptr %11, align 8, !tbaa !11
  %82 = load double, ptr %12, align 8, !tbaa !11
  %83 = fdiv double %81, %82
  %84 = call double @sqrt(double noundef %83) #7
  %85 = call i32 (ptr, ...) @printf(ptr noundef @.str, double noundef %84)
  store i32 0, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  %86 = load ptr, ptr %8, align 8
  call void @llvm.stackrestore.p0(ptr %86)
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
  %87 = load i32, ptr %3, align 4
  ret i32 %87
}

; Function Attrs: inlinehint nounwind willreturn memory(read) uwtable
declare i32 @atoi(ptr noundef nonnull) #4

declare i32 @printf(ptr noundef, ...) #5

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

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

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

@.str = external hidden unnamed_addr constant [7 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local void @eval_AtA_times_u(i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr nocapture noundef readonly %1) local_unnamed_addr #0 {
  %3 = icmp eq i32 %0, 2
  br i1 %3, label %6, label %.thread

.thread:                                          ; preds = %2
  %4 = alloca [2000 x double], align 16
  %5 = alloca [2000 x double], align 16
  br label %.lr.ph.preheader

6:                                                ; preds = %2
  %7 = getelementptr inbounds i8, ptr %1, i64 8
  %8 = load ptr, ptr %7, align 8, !tbaa !5
  %9 = tail call i32 @atoi(ptr nocapture noundef %8) #5
  %10 = zext i32 %9 to i64
  %11 = alloca double, i64 %10, align 16
  %12 = alloca double, i64 %10, align 16
  %13 = icmp sgt i32 %9, 0
  br i1 %13, label %.lr.ph.preheader, label %.preheader27

.lr.ph.preheader:                                 ; preds = %.thread, %6
  %14 = phi ptr [ %5, %.thread ], [ %12, %6 ]
  %15 = phi ptr [ %4, %.thread ], [ %11, %6 ]
  %16 = phi i64 [ 2000, %.thread ], [ %10, %6 ]
  %17 = phi i32 [ 2000, %.thread ], [ %9, %6 ]
  %min.iters.check = icmp ult i64 %16, 4
  br i1 %min.iters.check, label %.lr.ph.preheader45, label %vector.ph

.lr.ph.preheader45:                               ; preds = %middle.block, %.lr.ph.preheader
  %indvars.iv.ph = phi i64 [ 0, %.lr.ph.preheader ], [ %n.vec, %middle.block ]
  br label %.lr.ph

vector.ph:                                        ; preds = %.lr.ph.preheader
  %n.vec = and i64 %16, 4294967292
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %18 = getelementptr inbounds double, ptr %15, i64 %index
  %19 = getelementptr inbounds i8, ptr %18, i64 16
  store <2 x double> <double 1.000000e+00, double 1.000000e+00>, ptr %18, align 16, !tbaa !9
  store <2 x double> <double 1.000000e+00, double 1.000000e+00>, ptr %19, align 16, !tbaa !9
  %index.next = add nuw i64 %index, 4
  %20 = icmp eq i64 %index.next, %n.vec
  br i1 %20, label %middle.block, label %vector.body, !llvm.loop !11

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %16, %n.vec
  br i1 %cmp.n, label %.preheader27, label %.lr.ph.preheader45

.preheader27:                                     ; preds = %.lr.ph, %middle.block, %6
  %21 = phi i1 [ false, %6 ], [ true, %middle.block ], [ true, %.lr.ph ]
  %22 = phi ptr [ %12, %6 ], [ %14, %middle.block ], [ %14, %.lr.ph ]
  %23 = phi ptr [ %11, %6 ], [ %15, %middle.block ], [ %15, %.lr.ph ]
  %24 = phi i64 [ %10, %6 ], [ %16, %middle.block ], [ %16, %.lr.ph ]
  %25 = phi i32 [ %9, %6 ], [ %17, %middle.block ], [ %17, %.lr.ph ]
  call void @eval_AtA_times_u(i32 noundef %25, ptr noundef nonnull %23, ptr noundef nonnull %22)
  call void @eval_AtA_times_u(i32 noundef %25, ptr noundef nonnull %22, ptr noundef nonnull %23)
  call void @eval_AtA_times_u(i32 noundef %25, ptr noundef nonnull %23, ptr noundef nonnull %22)
  call void @eval_AtA_times_u(i32 noundef %25, ptr noundef nonnull %22, ptr noundef nonnull %23)
  call void @eval_AtA_times_u(i32 noundef %25, ptr noundef nonnull %23, ptr noundef nonnull %22)
  call void @eval_AtA_times_u(i32 noundef %25, ptr noundef nonnull %22, ptr noundef nonnull %23)
  call void @eval_AtA_times_u(i32 noundef %25, ptr noundef nonnull %23, ptr noundef nonnull %22)
  call void @eval_AtA_times_u(i32 noundef %25, ptr noundef nonnull %22, ptr noundef nonnull %23)
  call void @eval_AtA_times_u(i32 noundef %25, ptr noundef nonnull %23, ptr noundef nonnull %22)
  call void @eval_AtA_times_u(i32 noundef %25, ptr noundef nonnull %22, ptr noundef nonnull %23)
  call void @eval_AtA_times_u(i32 noundef %25, ptr noundef nonnull %23, ptr noundef nonnull %22)
  call void @eval_AtA_times_u(i32 noundef %25, ptr noundef nonnull %22, ptr noundef nonnull %23)
  call void @eval_AtA_times_u(i32 noundef %25, ptr noundef nonnull %23, ptr noundef nonnull %22)
  call void @eval_AtA_times_u(i32 noundef %25, ptr noundef nonnull %22, ptr noundef nonnull %23)
  call void @eval_AtA_times_u(i32 noundef %25, ptr noundef nonnull %23, ptr noundef nonnull %22)
  call void @eval_AtA_times_u(i32 noundef %25, ptr noundef nonnull %22, ptr noundef nonnull %23)
  call void @eval_AtA_times_u(i32 noundef %25, ptr noundef nonnull %23, ptr noundef nonnull %22)
  call void @eval_AtA_times_u(i32 noundef %25, ptr noundef nonnull %22, ptr noundef nonnull %23)
  call void @eval_AtA_times_u(i32 noundef %25, ptr noundef nonnull %23, ptr noundef nonnull %22)
  call void @eval_AtA_times_u(i32 noundef %25, ptr noundef nonnull %22, ptr noundef nonnull %23)
  br i1 %21, label %.lr.ph33.preheader, label %._crit_edge

.lr.ph33.preheader:                               ; preds = %.preheader27
  %xtraiter = and i64 %24, 1
  %26 = icmp eq i64 %24, 1
  br i1 %26, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph33.preheader.new

.lr.ph33.preheader.new:                           ; preds = %.lr.ph33.preheader
  %unroll_iter = and i64 %24, -2
  br label %.lr.ph33

.lr.ph:                                           ; preds = %.lr.ph.preheader45, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ %indvars.iv.ph, %.lr.ph.preheader45 ]
  %27 = getelementptr inbounds double, ptr %15, i64 %indvars.iv
  store double 1.000000e+00, ptr %27, align 8, !tbaa !9
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %16
  br i1 %exitcond.not, label %.preheader27, label %.lr.ph, !llvm.loop !15

.lr.ph33:                                         ; preds = %.lr.ph33, %.lr.ph33.preheader.new
  %indvars.iv38 = phi i64 [ 0, %.lr.ph33.preheader.new ], [ %indvars.iv.next39.1, %.lr.ph33 ]
  %28 = phi <2 x double> [ zeroinitializer, %.lr.ph33.preheader.new ], [ %44, %.lr.ph33 ]
  %niter = phi i64 [ 0, %.lr.ph33.preheader.new ], [ %niter.next.1, %.lr.ph33 ]
  %29 = getelementptr inbounds double, ptr %23, i64 %indvars.iv38
  %30 = load double, ptr %29, align 8, !tbaa !9
  %31 = getelementptr inbounds double, ptr %22, i64 %indvars.iv38
  %32 = load double, ptr %31, align 8, !tbaa !9
  %33 = insertelement <2 x double> poison, double %32, i64 0
  %34 = insertelement <2 x double> %33, double %30, i64 1
  %35 = shufflevector <2 x double> %33, <2 x double> poison, <2 x i32> zeroinitializer
  %36 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %34, <2 x double> %35, <2 x double> %28)
  %indvars.iv.next39 = or disjoint i64 %indvars.iv38, 1
  %37 = getelementptr inbounds double, ptr %23, i64 %indvars.iv.next39
  %38 = load double, ptr %37, align 8, !tbaa !9
  %39 = getelementptr inbounds double, ptr %22, i64 %indvars.iv.next39
  %40 = load double, ptr %39, align 8, !tbaa !9
  %41 = insertelement <2 x double> poison, double %40, i64 0
  %42 = insertelement <2 x double> %41, double %38, i64 1
  %43 = shufflevector <2 x double> %41, <2 x double> poison, <2 x i32> zeroinitializer
  %44 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %42, <2 x double> %43, <2 x double> %36)
  %indvars.iv.next39.1 = add nuw nsw i64 %indvars.iv38, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph33, !llvm.loop !16

._crit_edge.loopexit.unr-lcssa:                   ; preds = %.lr.ph33, %.lr.ph33.preheader
  %.lcssa.ph = phi <2 x double> [ poison, %.lr.ph33.preheader ], [ %44, %.lr.ph33 ]
  %indvars.iv38.unr = phi i64 [ 0, %.lr.ph33.preheader ], [ %indvars.iv.next39.1, %.lr.ph33 ]
  %.unr = phi <2 x double> [ zeroinitializer, %.lr.ph33.preheader ], [ %44, %.lr.ph33 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge.loopexit, label %.lr.ph33.epil

.lr.ph33.epil:                                    ; preds = %._crit_edge.loopexit.unr-lcssa
  %45 = getelementptr inbounds double, ptr %23, i64 %indvars.iv38.unr
  %46 = load double, ptr %45, align 8, !tbaa !9
  %47 = getelementptr inbounds double, ptr %22, i64 %indvars.iv38.unr
  %48 = load double, ptr %47, align 8, !tbaa !9
  %49 = insertelement <2 x double> poison, double %48, i64 0
  %50 = insertelement <2 x double> %49, double %46, i64 1
  %51 = shufflevector <2 x double> %49, <2 x double> poison, <2 x i32> zeroinitializer
  %52 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %50, <2 x double> %51, <2 x double> %.unr)
  br label %._crit_edge.loopexit

._crit_edge.loopexit:                             ; preds = %._crit_edge.loopexit.unr-lcssa, %.lr.ph33.epil
  %.lcssa = phi <2 x double> [ %.lcssa.ph, %._crit_edge.loopexit.unr-lcssa ], [ %52, %.lr.ph33.epil ]
  %53 = extractelement <2 x double> %.lcssa, i64 0
  %54 = extractelement <2 x double> %.lcssa, i64 1
  %55 = fdiv double %54, %53
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %.preheader27
  %56 = phi double [ 0x7FF8000000000000, %.preheader27 ], [ %55, %._crit_edge.loopexit ]
  %57 = call double @sqrt(double noundef %56) #6
  %58 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, double noundef %57)
  ret i32 0
}

; Function Attrs: inlinehint mustprogress nofree nounwind willreturn memory(read) uwtable
declare i32 @atoi(ptr nocapture noundef nonnull) local_unnamed_addr #1

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @sqrt(double noundef) local_unnamed_addr #3

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <2 x double> @llvm.fmuladd.v2f64(<2 x double>, <2 x double>, <2 x double>) #4

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 = { inlinehint mustprogress nofree nounwind willreturn memory(read) 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 = { nofree 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 #3 = { 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 #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { nounwind willreturn memory(read) }
attributes #6 = { nounwind }

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

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


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