; LLVM IR from OpenMathLib/OpenBLAS :: lapack-netlib/SRC (dlarnv)

; 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 @dlarnv_(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #0 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca [128 x double], align 16
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  store ptr %3, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.start.p0(i64 1024, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  %17 = load ptr, ptr %8, align 8, !tbaa !5
  %18 = getelementptr inbounds double, ptr %17, i32 -1
  store ptr %18, ptr %8, align 8, !tbaa !5
  %19 = load ptr, ptr %6, align 8, !tbaa !5
  %20 = getelementptr inbounds i32, ptr %19, i32 -1
  store ptr %20, ptr %6, align 8, !tbaa !5
  %21 = load ptr, ptr %7, align 8, !tbaa !5
  %22 = load i32, ptr %21, align 4, !tbaa !9
  store i32 %22, ptr %9, align 4, !tbaa !9
  store i32 1, ptr %15, align 4, !tbaa !9
  br label %23

23:                                               ; preds = %151, %4
  %24 = load i32, ptr %15, align 4, !tbaa !9
  %25 = load i32, ptr %9, align 4, !tbaa !9
  %26 = icmp sle i32 %24, %25
  br i1 %26, label %27, label %154

27:                                               ; preds = %23
  store i32 64, ptr %10, align 4, !tbaa !9
  %28 = load ptr, ptr %7, align 8, !tbaa !5
  %29 = load i32, ptr %28, align 4, !tbaa !9
  %30 = load i32, ptr %15, align 4, !tbaa !9
  %31 = sub nsw i32 %29, %30
  %32 = add nsw i32 %31, 1
  store i32 %32, ptr %11, align 4, !tbaa !9
  %33 = load i32, ptr %10, align 4, !tbaa !9
  %34 = load i32, ptr %11, align 4, !tbaa !9
  %35 = icmp sle i32 %33, %34
  br i1 %35, label %36, label %38

36:                                               ; preds = %27
  %37 = load i32, ptr %10, align 4, !tbaa !9
  br label %40

38:                                               ; preds = %27
  %39 = load i32, ptr %11, align 4, !tbaa !9
  br label %40

40:                                               ; preds = %38, %36
  %41 = phi i32 [ %37, %36 ], [ %39, %38 ]
  store i32 %41, ptr %14, align 4, !tbaa !9
  %42 = load ptr, ptr %5, align 8, !tbaa !5
  %43 = load i32, ptr %42, align 4, !tbaa !9
  %44 = icmp eq i32 %43, 3
  br i1 %44, label %45, label %48

45:                                               ; preds = %40
  %46 = load i32, ptr %14, align 4, !tbaa !9
  %47 = shl i32 %46, 1
  store i32 %47, ptr %16, align 4, !tbaa !9
  br label %50

48:                                               ; preds = %40
  %49 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %49, ptr %16, align 4, !tbaa !9
  br label %50

50:                                               ; preds = %48, %45
  %51 = load ptr, ptr %6, align 8, !tbaa !5
  %52 = getelementptr inbounds i32, ptr %51, i64 1
  %53 = getelementptr inbounds [128 x double], ptr %13, i64 0, i64 0
  call void @dlaruv_(ptr noundef %52, ptr noundef %16, ptr noundef %53)
  %54 = load ptr, ptr %5, align 8, !tbaa !5
  %55 = load i32, ptr %54, align 4, !tbaa !9
  %56 = icmp eq i32 %55, 1
  br i1 %56, label %57, label %80

57:                                               ; preds = %50
  %58 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %58, ptr %10, align 4, !tbaa !9
  store i32 1, ptr %12, align 4, !tbaa !9
  br label %59

59:                                               ; preds = %76, %57
  %60 = load i32, ptr %12, align 4, !tbaa !9
  %61 = load i32, ptr %10, align 4, !tbaa !9
  %62 = icmp sle i32 %60, %61
  br i1 %62, label %63, label %79

63:                                               ; preds = %59
  %64 = load i32, ptr %12, align 4, !tbaa !9
  %65 = sub nsw i32 %64, 1
  %66 = sext i32 %65 to i64
  %67 = getelementptr inbounds [128 x double], ptr %13, i64 0, i64 %66
  %68 = load double, ptr %67, align 8, !tbaa !11
  %69 = load ptr, ptr %8, align 8, !tbaa !5
  %70 = load i32, ptr %15, align 4, !tbaa !9
  %71 = load i32, ptr %12, align 4, !tbaa !9
  %72 = add nsw i32 %70, %71
  %73 = sub nsw i32 %72, 1
  %74 = sext i32 %73 to i64
  %75 = getelementptr inbounds double, ptr %69, i64 %74
  store double %68, ptr %75, align 8, !tbaa !11
  br label %76

76:                                               ; preds = %63
  %77 = load i32, ptr %12, align 4, !tbaa !9
  %78 = add nsw i32 %77, 1
  store i32 %78, ptr %12, align 4, !tbaa !9
  br label %59, !llvm.loop !13

79:                                               ; preds = %59
  br label %150

80:                                               ; preds = %50
  %81 = load ptr, ptr %5, align 8, !tbaa !5
  %82 = load i32, ptr %81, align 4, !tbaa !9
  %83 = icmp eq i32 %82, 2
  br i1 %83, label %84, label %108

84:                                               ; preds = %80
  %85 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %85, ptr %10, align 4, !tbaa !9
  store i32 1, ptr %12, align 4, !tbaa !9
  br label %86

86:                                               ; preds = %104, %84
  %87 = load i32, ptr %12, align 4, !tbaa !9
  %88 = load i32, ptr %10, align 4, !tbaa !9
  %89 = icmp sle i32 %87, %88
  br i1 %89, label %90, label %107

90:                                               ; preds = %86
  %91 = load i32, ptr %12, align 4, !tbaa !9
  %92 = sub nsw i32 %91, 1
  %93 = sext i32 %92 to i64
  %94 = getelementptr inbounds [128 x double], ptr %13, i64 0, i64 %93
  %95 = load double, ptr %94, align 8, !tbaa !11
  %96 = call double @llvm.fmuladd.f64(double %95, double 2.000000e+00, double -1.000000e+00)
  %97 = load ptr, ptr %8, align 8, !tbaa !5
  %98 = load i32, ptr %15, align 4, !tbaa !9
  %99 = load i32, ptr %12, align 4, !tbaa !9
  %100 = add nsw i32 %98, %99
  %101 = sub nsw i32 %100, 1
  %102 = sext i32 %101 to i64
  %103 = getelementptr inbounds double, ptr %97, i64 %102
  store double %96, ptr %103, align 8, !tbaa !11
  br label %104

104:                                              ; preds = %90
  %105 = load i32, ptr %12, align 4, !tbaa !9
  %106 = add nsw i32 %105, 1
  store i32 %106, ptr %12, align 4, !tbaa !9
  br label %86, !llvm.loop !15

107:                                              ; preds = %86
  br label %149

108:                                              ; preds = %80
  %109 = load ptr, ptr %5, align 8, !tbaa !5
  %110 = load i32, ptr %109, align 4, !tbaa !9
  %111 = icmp eq i32 %110, 3
  br i1 %111, label %112, label %148

112:                                              ; preds = %108
  %113 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %113, ptr %10, align 4, !tbaa !9
  store i32 1, ptr %12, align 4, !tbaa !9
  br label %114

114:                                              ; preds = %144, %112
  %115 = load i32, ptr %12, align 4, !tbaa !9
  %116 = load i32, ptr %10, align 4, !tbaa !9
  %117 = icmp sle i32 %115, %116
  br i1 %117, label %118, label %147

118:                                              ; preds = %114
  %119 = load i32, ptr %12, align 4, !tbaa !9
  %120 = shl i32 %119, 1
  %121 = sub nsw i32 %120, 2
  %122 = sext i32 %121 to i64
  %123 = getelementptr inbounds [128 x double], ptr %13, i64 0, i64 %122
  %124 = load double, ptr %123, align 8, !tbaa !11
  %125 = call double @log(double noundef %124) #5
  %126 = fmul double %125, -2.000000e+00
  %127 = call double @sqrt(double noundef %126) #5
  %128 = load i32, ptr %12, align 4, !tbaa !9
  %129 = shl i32 %128, 1
  %130 = sub nsw i32 %129, 1
  %131 = sext i32 %130 to i64
  %132 = getelementptr inbounds [128 x double], ptr %13, i64 0, i64 %131
  %133 = load double, ptr %132, align 8, !tbaa !11
  %134 = fmul double %133, 0x401921FB54442D18
  %135 = call double @cos(double noundef %134) #5
  %136 = fmul double %127, %135
  %137 = load ptr, ptr %8, align 8, !tbaa !5
  %138 = load i32, ptr %15, align 4, !tbaa !9
  %139 = load i32, ptr %12, align 4, !tbaa !9
  %140 = add nsw i32 %138, %139
  %141 = sub nsw i32 %140, 1
  %142 = sext i32 %141 to i64
  %143 = getelementptr inbounds double, ptr %137, i64 %142
  store double %136, ptr %143, align 8, !tbaa !11
  br label %144

144:                                              ; preds = %118
  %145 = load i32, ptr %12, align 4, !tbaa !9
  %146 = add nsw i32 %145, 1
  store i32 %146, ptr %12, align 4, !tbaa !9
  br label %114, !llvm.loop !16

147:                                              ; preds = %114
  br label %148

148:                                              ; preds = %147, %108
  br label %149

149:                                              ; preds = %148, %107
  br label %150

150:                                              ; preds = %149, %79
  br label %151

151:                                              ; preds = %150
  %152 = load i32, ptr %15, align 4, !tbaa !9
  %153 = add nsw i32 %152, 64
  store i32 %153, ptr %15, align 4, !tbaa !9
  br label %23, !llvm.loop !17

154:                                              ; preds = %23
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 1024, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  ret void
}

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

declare void @dlaruv_(ptr noundef, ptr noundef, ptr noundef) #2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #3

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

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

; Function Attrs: nounwind
declare double @cos(double 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 = { "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 speculatable willreturn memory(none) }
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 }

!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 = !{!"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: nounwind uwtable
define dso_local void @dlarnv_(ptr nocapture noundef readonly %0, ptr noundef %1, ptr nocapture noundef readonly %2, ptr nocapture noundef writeonly %3) local_unnamed_addr #0 {
  %5 = alloca [128 x double], align 16
  %6 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 1024, ptr nonnull %5) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #7
  %7 = load i32, ptr %2, align 4, !tbaa !5
  %.not64 = icmp slt i32 %7, 1
  br i1 %.not64, label %._crit_edge, label %.lr.ph67

.lr.ph67:                                         ; preds = %4
  %invariant.gep = getelementptr i8, ptr %3, i64 -16
  %8 = zext nneg i32 %7 to i64
  br label %9

9:                                                ; preds = %.lr.ph67, %.loopexit
  %indvars.iv79 = phi i64 [ 1, %.lr.ph67 ], [ %indvars.iv.next80, %.loopexit ]
  %indvar = phi i64 [ 0, %.lr.ph67 ], [ %indvar.next, %.loopexit ]
  %10 = shl i64 %indvar, 9
  %scevgep = getelementptr i8, ptr %3, i64 %10
  %11 = load i32, ptr %2, align 4, !tbaa !5
  %12 = trunc nuw nsw i64 %indvars.iv79 to i32
  %13 = sub nsw i32 %11, %12
  %14 = add nsw i32 %13, 1
  %15 = icmp sgt i32 %13, 62
  %16 = select i1 %15, i32 64, i32 %14
  %17 = load i32, ptr %0, align 4, !tbaa !5
  %18 = icmp eq i32 %17, 3
  %19 = zext i1 %18 to i32
  %storemerge = shl i32 %16, %19
  store i32 %storemerge, ptr %6, align 4, !tbaa !5
  call void @dlaruv_(ptr noundef %1, ptr noundef nonnull %6, ptr noundef nonnull %5) #7
  %20 = load i32, ptr %0, align 4, !tbaa !5
  switch i32 %20, label %.loopexit [
    i32 1, label %.preheader
    i32 2, label %.preheader48
    i32 3, label %.preheader50
  ]

.preheader50:                                     ; preds = %9
  %.not4552 = icmp slt i32 %16, 1
  br i1 %.not4552, label %.loopexit, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %.preheader50
  %21 = add nuw i32 %16, 1
  %wide.trip.count = zext i32 %21 to i64
  %invariant.gep83 = getelementptr double, ptr %invariant.gep, i64 %indvars.iv79
  br label %.lr.ph

.preheader48:                                     ; preds = %9
  %.not4656 = icmp slt i32 %16, 1
  br i1 %.not4656, label %.loopexit, label %.lr.ph58.preheader

.lr.ph58.preheader:                               ; preds = %.preheader48
  %22 = add nuw i32 %16, 1
  %wide.trip.count74 = zext i32 %22 to i64
  %invariant.gep85 = getelementptr double, ptr %invariant.gep, i64 %indvars.iv79
  %23 = zext nneg i32 %16 to i64
  %min.iters.check = icmp ult i32 %16, 4
  br i1 %min.iters.check, label %.lr.ph58.preheader88, label %vector.ph

.lr.ph58.preheader88:                             ; preds = %middle.block, %.lr.ph58.preheader
  %indvars.iv71.ph = phi i64 [ 1, %.lr.ph58.preheader ], [ %ind.end, %middle.block ]
  br label %.lr.ph58

vector.ph:                                        ; preds = %.lr.ph58.preheader
  %n.vec = and i64 %23, 2147483644
  %ind.end = or disjoint i64 %n.vec, 1
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %offset.idx = or disjoint i64 %index, 1
  %24 = getelementptr inbounds [128 x double], ptr %5, i64 0, i64 %index
  %25 = getelementptr inbounds i8, ptr %24, i64 16
  %wide.load = load <2 x double>, ptr %24, align 16, !tbaa !9
  %wide.load87 = load <2 x double>, ptr %25, align 16, !tbaa !9
  %26 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %wide.load, <2 x double> <double 2.000000e+00, double 2.000000e+00>, <2 x double> <double -1.000000e+00, double -1.000000e+00>)
  %27 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %wide.load87, <2 x double> <double 2.000000e+00, double 2.000000e+00>, <2 x double> <double -1.000000e+00, double -1.000000e+00>)
  %28 = getelementptr double, ptr %invariant.gep85, i64 %offset.idx
  %29 = getelementptr i8, ptr %28, i64 16
  store <2 x double> %26, ptr %28, align 8, !tbaa !9
  store <2 x double> %27, ptr %29, align 8, !tbaa !9
  %index.next = add nuw i64 %index, 4
  %30 = icmp eq i64 %index.next, %n.vec
  br i1 %30, label %middle.block, label %vector.body, !llvm.loop !11

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %23
  br i1 %cmp.n, label %.loopexit, label %.lr.ph58.preheader88

.preheader:                                       ; preds = %9
  %.not4761 = icmp slt i32 %16, 1
  br i1 %.not4761, label %.loopexit, label %.lr.ph63.preheader

.lr.ph63.preheader:                               ; preds = %.preheader
  %31 = zext nneg i32 %16 to i64
  %32 = shl nuw nsw i64 %31, 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %scevgep, ptr nonnull align 16 %5, i64 %32, i1 false), !tbaa !9
  br label %.loopexit

.lr.ph58:                                         ; preds = %.lr.ph58.preheader88, %.lr.ph58
  %indvars.iv71 = phi i64 [ %indvars.iv.next72, %.lr.ph58 ], [ %indvars.iv71.ph, %.lr.ph58.preheader88 ]
  %33 = add nsw i64 %indvars.iv71, -1
  %34 = getelementptr inbounds [128 x double], ptr %5, i64 0, i64 %33
  %35 = load double, ptr %34, align 8, !tbaa !9
  %36 = call double @llvm.fmuladd.f64(double %35, double 2.000000e+00, double -1.000000e+00)
  %gep = getelementptr double, ptr %invariant.gep85, i64 %indvars.iv71
  store double %36, ptr %gep, align 8, !tbaa !9
  %indvars.iv.next72 = add nuw nsw i64 %indvars.iv71, 1
  %exitcond75.not = icmp eq i64 %indvars.iv.next72, %wide.trip.count74
  br i1 %exitcond75.not, label %.loopexit, label %.lr.ph58, !llvm.loop !15

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %indvars.iv = phi i64 [ 1, %.lr.ph.preheader ], [ %indvars.iv.next, %.lr.ph ]
  %37 = shl i64 %indvars.iv, 33
  %sext = add i64 %37, -8589934592
  %38 = ashr exact i64 %sext, 32
  %39 = getelementptr inbounds [128 x double], ptr %5, i64 0, i64 %38
  %40 = load double, ptr %39, align 16, !tbaa !9
  %41 = call double @log(double noundef %40) #7
  %42 = fmul double %41, -2.000000e+00
  %43 = call double @sqrt(double noundef %42) #7
  %indvars.iv.tr = trunc i64 %indvars.iv to i32
  %44 = shl i32 %indvars.iv.tr, 1
  %45 = add i32 %44, -1
  %46 = sext i32 %45 to i64
  %47 = getelementptr inbounds [128 x double], ptr %5, i64 0, i64 %46
  %48 = load double, ptr %47, align 8, !tbaa !9
  %49 = fmul double %48, 0x401921FB54442D18
  %50 = call double @cos(double noundef %49) #7
  %51 = fmul double %43, %50
  %gep84 = getelementptr double, ptr %invariant.gep83, i64 %indvars.iv
  store double %51, ptr %gep84, align 8, !tbaa !9
  %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 %.loopexit, label %.lr.ph, !llvm.loop !16

.loopexit:                                        ; preds = %.lr.ph, %.lr.ph58, %middle.block, %.lr.ph63.preheader, %.preheader50, %.preheader48, %.preheader, %9
  %indvars.iv.next80 = add nuw nsw i64 %indvars.iv79, 64
  %.not = icmp ugt i64 %indvars.iv.next80, %8
  %indvar.next = add i64 %indvar, 1
  br i1 %.not, label %._crit_edge, label %9, !llvm.loop !17

._crit_edge:                                      ; preds = %.loopexit, %4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 1024, ptr nonnull %5) #7
  ret void
}

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

declare void @dlaruv_(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #3

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

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

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

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

; 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

; 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>) #6

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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { 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 #5 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #7 = { 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 = !{!"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}
!17 = distinct !{!17, !12}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopIdiomRecognizePass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass