; LLVM IR from radualexandrub/Optimization-Algorithms-Find-local-minimum :: 2D_Derivative_NonQuadratic_CostFunctions (Vec_Mat_Vec)

; 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: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #0

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local double @Vec_Mat_Vec(i32 noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) #3 {
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i64, align 8
  %13 = alloca double, align 8
  %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 i32 %0, ptr %6, align 4, !tbaa !5
  store i32 %1, ptr %7, align 4, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !9
  store ptr %3, ptr %9, align 8, !tbaa !9
  store ptr %4, ptr %10, align 8, !tbaa !9
  %19 = load i32, ptr %6, align 4, !tbaa !5
  %20 = zext i32 %19 to i64
  %21 = load i32, ptr %6, align 4, !tbaa !5
  %22 = zext i32 %21 to i64
  %23 = load i32, ptr %7, align 4, !tbaa !5
  %24 = zext i32 %23 to i64
  %25 = load i32, ptr %7, align 4, !tbaa !5
  %26 = zext i32 %25 to i64
  %27 = load i32, ptr %6, align 4, !tbaa !5
  %28 = zext i32 %27 to i64
  %29 = call ptr @llvm.stacksave.p0()
  store ptr %29, ptr %11, align 8
  %30 = alloca double, i64 %28, align 16
  store i64 %28, ptr %12, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  store double 0.000000e+00, ptr %13, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  store i32 0, ptr %14, align 4, !tbaa !5
  br label %31

31:                                               ; preds = %40, %5
  %32 = load i32, ptr %14, align 4, !tbaa !5
  %33 = load i32, ptr %6, align 4, !tbaa !5
  %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 %14) #4
  br label %43

36:                                               ; preds = %31
  %37 = load i32, ptr %14, align 4, !tbaa !5
  %38 = sext i32 %37 to i64
  %39 = getelementptr inbounds double, ptr %30, i64 %38
  store double 0.000000e+00, ptr %39, align 8, !tbaa !11
  br label %40

40:                                               ; preds = %36
  %41 = load i32, ptr %14, align 4, !tbaa !5
  %42 = add nsw i32 %41, 1
  store i32 %42, ptr %14, align 4, !tbaa !5
  br label %31, !llvm.loop !13

43:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  store i32 0, ptr %15, align 4, !tbaa !5
  br label %44

44:                                               ; preds = %79, %43
  %45 = load i32, ptr %15, align 4, !tbaa !5
  %46 = load i32, ptr %6, align 4, !tbaa !5
  %47 = icmp slt i32 %45, %46
  br i1 %47, label %49, label %48

48:                                               ; preds = %44
  store i32 5, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  br label %82

49:                                               ; preds = %44
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #4
  store i32 0, ptr %17, align 4, !tbaa !5
  br label %50

50:                                               ; preds = %75, %49
  %51 = load i32, ptr %17, align 4, !tbaa !5
  %52 = load i32, ptr %7, align 4, !tbaa !5
  %53 = icmp slt i32 %51, %52
  br i1 %53, label %55, label %54

54:                                               ; preds = %50
  store i32 8, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  br label %78

55:                                               ; preds = %50
  %56 = load ptr, ptr %8, align 8, !tbaa !9
  %57 = load i32, ptr %17, align 4, !tbaa !5
  %58 = sext i32 %57 to i64
  %59 = getelementptr inbounds double, ptr %56, i64 %58
  %60 = load double, ptr %59, align 8, !tbaa !11
  %61 = load ptr, ptr %9, align 8, !tbaa !9
  %62 = load i32, ptr %17, align 4, !tbaa !5
  %63 = sext i32 %62 to i64
  %64 = mul nsw i64 %63, %24
  %65 = getelementptr inbounds double, ptr %61, i64 %64
  %66 = load i32, ptr %15, align 4, !tbaa !5
  %67 = sext i32 %66 to i64
  %68 = getelementptr inbounds double, ptr %65, i64 %67
  %69 = load double, ptr %68, align 8, !tbaa !11
  %70 = load i32, ptr %15, align 4, !tbaa !5
  %71 = sext i32 %70 to i64
  %72 = getelementptr inbounds double, ptr %30, i64 %71
  %73 = load double, ptr %72, align 8, !tbaa !11
  %74 = call double @llvm.fmuladd.f64(double %60, double %69, double %73)
  store double %74, ptr %72, align 8, !tbaa !11
  br label %75

75:                                               ; preds = %55
  %76 = load i32, ptr %17, align 4, !tbaa !5
  %77 = add nsw i32 %76, 1
  store i32 %77, ptr %17, align 4, !tbaa !5
  br label %50, !llvm.loop !15

78:                                               ; preds = %54
  br label %79

79:                                               ; preds = %78
  %80 = load i32, ptr %15, align 4, !tbaa !5
  %81 = add nsw i32 %80, 1
  store i32 %81, ptr %15, align 4, !tbaa !5
  br label %44, !llvm.loop !16

82:                                               ; preds = %48
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #4
  store i32 0, ptr %18, align 4, !tbaa !5
  br label %83

83:                                               ; preds = %100, %82
  %84 = load i32, ptr %18, align 4, !tbaa !5
  %85 = load i32, ptr %6, align 4, !tbaa !5
  %86 = icmp slt i32 %84, %85
  br i1 %86, label %88, label %87

87:                                               ; preds = %83
  store i32 11, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #4
  br label %103

88:                                               ; preds = %83
  %89 = load i32, ptr %18, align 4, !tbaa !5
  %90 = sext i32 %89 to i64
  %91 = getelementptr inbounds double, ptr %30, i64 %90
  %92 = load double, ptr %91, align 8, !tbaa !11
  %93 = load ptr, ptr %10, align 8, !tbaa !9
  %94 = load i32, ptr %18, align 4, !tbaa !5
  %95 = sext i32 %94 to i64
  %96 = getelementptr inbounds double, ptr %93, i64 %95
  %97 = load double, ptr %96, align 8, !tbaa !11
  %98 = load double, ptr %13, align 8, !tbaa !11
  %99 = call double @llvm.fmuladd.f64(double %92, double %97, double %98)
  store double %99, ptr %13, align 8, !tbaa !11
  br label %100

100:                                              ; preds = %88
  %101 = load i32, ptr %18, align 4, !tbaa !5
  %102 = add nsw i32 %101, 1
  store i32 %102, ptr %18, align 4, !tbaa !5
  br label %83, !llvm.loop !17

103:                                              ; preds = %87
  %104 = load double, ptr %13, align 8, !tbaa !11
  store i32 1, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  %105 = load ptr, ptr %11, align 8
  call void @llvm.stackrestore.p0(ptr %105)
  ret double %104
}

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

!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}
!17 = distinct !{!17, !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: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #0

; Function Attrs: nofree norecurse nosync nounwind memory(argmem: read) uwtable
define dso_local double @Vec_Mat_Vec(i32 noundef %0, i32 noundef %1, ptr nocapture noundef readonly %2, ptr nocapture noundef readonly %3, ptr nocapture noundef readonly %4) local_unnamed_addr #1 {
  %6 = zext i32 %1 to i64
  %7 = zext i32 %0 to i64
  %8 = alloca double, i64 %7, align 16
  %9 = icmp sgt i32 %0, 0
  br i1 %9, label %.preheader34.lr.ph, label %._crit_edge

.preheader34.lr.ph:                               ; preds = %5
  %10 = shl nuw nsw i64 %7, 3
  call void @llvm.memset.p0.i64(ptr nonnull align 16 %8, i8 0, i64 %10, i1 false), !tbaa !5
  %11 = icmp sgt i32 %1, 0
  br i1 %11, label %.preheader34.us.preheader, label %.lr.ph42.preheader

.preheader34.us.preheader:                        ; preds = %.preheader34.lr.ph
  %xtraiter = and i64 %6, 3
  %12 = icmp ult i32 %1, 4
  %unroll_iter = and i64 %6, 2147483644
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br label %.preheader34.us

.preheader34.us:                                  ; preds = %.preheader34.us.preheader, %._crit_edge.us
  %indvars.iv47 = phi i64 [ %indvars.iv.next48, %._crit_edge.us ], [ 0, %.preheader34.us.preheader ]
  %invariant.gep.us = getelementptr inbounds double, ptr %3, i64 %indvars.iv47
  %13 = getelementptr inbounds double, ptr %8, i64 %indvars.iv47
  %.promoted.us = load double, ptr %13, align 8, !tbaa !5
  br i1 %12, label %._crit_edge.us.unr-lcssa, label %.preheader34.us.new

.preheader34.us.new:                              ; preds = %.preheader34.us, %.preheader34.us.new
  %indvars.iv = phi i64 [ %indvars.iv.next.3, %.preheader34.us.new ], [ 0, %.preheader34.us ]
  %14 = phi double [ %34, %.preheader34.us.new ], [ %.promoted.us, %.preheader34.us ]
  %niter = phi i64 [ %niter.next.3, %.preheader34.us.new ], [ 0, %.preheader34.us ]
  %15 = getelementptr inbounds double, ptr %2, i64 %indvars.iv
  %16 = load double, ptr %15, align 8, !tbaa !5
  %17 = mul nuw nsw i64 %indvars.iv, %6
  %gep.us = getelementptr inbounds double, ptr %invariant.gep.us, i64 %17
  %18 = load double, ptr %gep.us, align 8, !tbaa !5
  %19 = tail call double @llvm.fmuladd.f64(double %16, double %18, double %14)
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %20 = getelementptr inbounds double, ptr %2, i64 %indvars.iv.next
  %21 = load double, ptr %20, align 8, !tbaa !5
  %22 = mul nuw nsw i64 %indvars.iv.next, %6
  %gep.us.1 = getelementptr inbounds double, ptr %invariant.gep.us, i64 %22
  %23 = load double, ptr %gep.us.1, align 8, !tbaa !5
  %24 = tail call double @llvm.fmuladd.f64(double %21, double %23, double %19)
  %indvars.iv.next.1 = or disjoint i64 %indvars.iv, 2
  %25 = getelementptr inbounds double, ptr %2, i64 %indvars.iv.next.1
  %26 = load double, ptr %25, align 8, !tbaa !5
  %27 = mul nuw nsw i64 %indvars.iv.next.1, %6
  %gep.us.2 = getelementptr inbounds double, ptr %invariant.gep.us, i64 %27
  %28 = load double, ptr %gep.us.2, align 8, !tbaa !5
  %29 = tail call double @llvm.fmuladd.f64(double %26, double %28, double %24)
  %indvars.iv.next.2 = or disjoint i64 %indvars.iv, 3
  %30 = getelementptr inbounds double, ptr %2, i64 %indvars.iv.next.2
  %31 = load double, ptr %30, align 8, !tbaa !5
  %32 = mul nuw nsw i64 %indvars.iv.next.2, %6
  %gep.us.3 = getelementptr inbounds double, ptr %invariant.gep.us, i64 %32
  %33 = load double, ptr %gep.us.3, align 8, !tbaa !5
  %34 = tail call double @llvm.fmuladd.f64(double %31, double %33, double %29)
  %indvars.iv.next.3 = add nuw nsw i64 %indvars.iv, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %._crit_edge.us.unr-lcssa, label %.preheader34.us.new, !llvm.loop !9

._crit_edge.us.unr-lcssa:                         ; preds = %.preheader34.us.new, %.preheader34.us
  %.lcssa60.ph = phi double [ poison, %.preheader34.us ], [ %34, %.preheader34.us.new ]
  %indvars.iv.unr = phi i64 [ 0, %.preheader34.us ], [ %indvars.iv.next.3, %.preheader34.us.new ]
  %.unr = phi double [ %.promoted.us, %.preheader34.us ], [ %34, %.preheader34.us.new ]
  br i1 %lcmp.mod.not, label %._crit_edge.us, label %.epil.preheader

.epil.preheader:                                  ; preds = %._crit_edge.us.unr-lcssa, %.epil.preheader
  %indvars.iv.epil = phi i64 [ %indvars.iv.next.epil, %.epil.preheader ], [ %indvars.iv.unr, %._crit_edge.us.unr-lcssa ]
  %35 = phi double [ %40, %.epil.preheader ], [ %.unr, %._crit_edge.us.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %._crit_edge.us.unr-lcssa ]
  %36 = getelementptr inbounds double, ptr %2, i64 %indvars.iv.epil
  %37 = load double, ptr %36, align 8, !tbaa !5
  %38 = mul nuw nsw i64 %indvars.iv.epil, %6
  %gep.us.epil = getelementptr inbounds double, ptr %invariant.gep.us, i64 %38
  %39 = load double, ptr %gep.us.epil, align 8, !tbaa !5
  %40 = tail call double @llvm.fmuladd.f64(double %37, double %39, double %35)
  %indvars.iv.next.epil = add nuw nsw i64 %indvars.iv.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %._crit_edge.us, label %.epil.preheader, !llvm.loop !11

._crit_edge.us:                                   ; preds = %.epil.preheader, %._crit_edge.us.unr-lcssa
  %.lcssa60 = phi double [ %.lcssa60.ph, %._crit_edge.us.unr-lcssa ], [ %40, %.epil.preheader ]
  store double %.lcssa60, ptr %13, align 8, !tbaa !5
  %indvars.iv.next48 = add nuw nsw i64 %indvars.iv47, 1
  %exitcond51.not = icmp eq i64 %indvars.iv.next48, %7
  br i1 %exitcond51.not, label %.preheader, label %.preheader34.us, !llvm.loop !13

.preheader:                                       ; preds = %._crit_edge.us
  br i1 %9, label %.lr.ph42.preheader, label %._crit_edge

.lr.ph42.preheader:                               ; preds = %.preheader34.lr.ph, %.preheader
  %xtraiter62 = and i64 %7, 3
  %41 = icmp ult i32 %0, 4
  br i1 %41, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph42.preheader.new

.lr.ph42.preheader.new:                           ; preds = %.lr.ph42.preheader
  %unroll_iter66 = and i64 %7, 2147483644
  br label %.lr.ph42

._crit_edge.loopexit.unr-lcssa:                   ; preds = %.lr.ph42, %.lr.ph42.preheader
  %.lcssa.ph = phi double [ poison, %.lr.ph42.preheader ], [ %66, %.lr.ph42 ]
  %indvars.iv52.unr = phi i64 [ 0, %.lr.ph42.preheader ], [ %indvars.iv.next53.3, %.lr.ph42 ]
  %.03240.unr = phi double [ 0.000000e+00, %.lr.ph42.preheader ], [ %66, %.lr.ph42 ]
  %lcmp.mod64.not = icmp eq i64 %xtraiter62, 0
  br i1 %lcmp.mod64.not, label %._crit_edge, label %.lr.ph42.epil

.lr.ph42.epil:                                    ; preds = %._crit_edge.loopexit.unr-lcssa, %.lr.ph42.epil
  %indvars.iv52.epil = phi i64 [ %indvars.iv.next53.epil, %.lr.ph42.epil ], [ %indvars.iv52.unr, %._crit_edge.loopexit.unr-lcssa ]
  %.03240.epil = phi double [ %46, %.lr.ph42.epil ], [ %.03240.unr, %._crit_edge.loopexit.unr-lcssa ]
  %epil.iter63 = phi i64 [ %epil.iter63.next, %.lr.ph42.epil ], [ 0, %._crit_edge.loopexit.unr-lcssa ]
  %42 = getelementptr inbounds double, ptr %8, i64 %indvars.iv52.epil
  %43 = load double, ptr %42, align 8, !tbaa !5
  %44 = getelementptr inbounds double, ptr %4, i64 %indvars.iv52.epil
  %45 = load double, ptr %44, align 8, !tbaa !5
  %46 = tail call double @llvm.fmuladd.f64(double %43, double %45, double %.03240.epil)
  %indvars.iv.next53.epil = add nuw nsw i64 %indvars.iv52.epil, 1
  %epil.iter63.next = add i64 %epil.iter63, 1
  %epil.iter63.cmp.not = icmp eq i64 %epil.iter63.next, %xtraiter62
  br i1 %epil.iter63.cmp.not, label %._crit_edge, label %.lr.ph42.epil, !llvm.loop !14

._crit_edge:                                      ; preds = %._crit_edge.loopexit.unr-lcssa, %.lr.ph42.epil, %5, %.preheader
  %.032.lcssa = phi double [ 0.000000e+00, %.preheader ], [ 0.000000e+00, %5 ], [ %.lcssa.ph, %._crit_edge.loopexit.unr-lcssa ], [ %46, %.lr.ph42.epil ]
  ret double %.032.lcssa

.lr.ph42:                                         ; preds = %.lr.ph42, %.lr.ph42.preheader.new
  %indvars.iv52 = phi i64 [ 0, %.lr.ph42.preheader.new ], [ %indvars.iv.next53.3, %.lr.ph42 ]
  %.03240 = phi double [ 0.000000e+00, %.lr.ph42.preheader.new ], [ %66, %.lr.ph42 ]
  %niter67 = phi i64 [ 0, %.lr.ph42.preheader.new ], [ %niter67.next.3, %.lr.ph42 ]
  %47 = getelementptr inbounds double, ptr %8, i64 %indvars.iv52
  %48 = load double, ptr %47, align 16, !tbaa !5
  %49 = getelementptr inbounds double, ptr %4, i64 %indvars.iv52
  %50 = load double, ptr %49, align 8, !tbaa !5
  %51 = tail call double @llvm.fmuladd.f64(double %48, double %50, double %.03240)
  %indvars.iv.next53 = or disjoint i64 %indvars.iv52, 1
  %52 = getelementptr inbounds double, ptr %8, i64 %indvars.iv.next53
  %53 = load double, ptr %52, align 8, !tbaa !5
  %54 = getelementptr inbounds double, ptr %4, i64 %indvars.iv.next53
  %55 = load double, ptr %54, align 8, !tbaa !5
  %56 = tail call double @llvm.fmuladd.f64(double %53, double %55, double %51)
  %indvars.iv.next53.1 = or disjoint i64 %indvars.iv52, 2
  %57 = getelementptr inbounds double, ptr %8, i64 %indvars.iv.next53.1
  %58 = load double, ptr %57, align 16, !tbaa !5
  %59 = getelementptr inbounds double, ptr %4, i64 %indvars.iv.next53.1
  %60 = load double, ptr %59, align 8, !tbaa !5
  %61 = tail call double @llvm.fmuladd.f64(double %58, double %60, double %56)
  %indvars.iv.next53.2 = or disjoint i64 %indvars.iv52, 3
  %62 = getelementptr inbounds double, ptr %8, i64 %indvars.iv.next53.2
  %63 = load double, ptr %62, align 8, !tbaa !5
  %64 = getelementptr inbounds double, ptr %4, i64 %indvars.iv.next53.2
  %65 = load double, ptr %64, align 8, !tbaa !5
  %66 = tail call double @llvm.fmuladd.f64(double %63, double %65, double %61)
  %indvars.iv.next53.3 = add nuw nsw i64 %indvars.iv52, 4
  %niter67.next.3 = add i64 %niter67, 4
  %niter67.ncmp.3 = icmp eq i64 %niter67.next.3, %unroll_iter66
  br i1 %niter67.ncmp.3, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph42, !llvm.loop !15
}

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #1 = { nofree norecurse nosync nounwind memory(argmem: 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 = { nocallback nofree nounwind willreturn memory(argmem: write) }

!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 = !{!"double", !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, !12}
!12 = !{!"llvm.loop.unroll.disable"}
!13 = distinct !{!13, !10}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !10}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopIdiomRecognizePass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass