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

; 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 @slarnv_(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 float], 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 512, 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 float, 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 = %154, %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 %157

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 float], ptr %13, i64 0, i64 0
  call void @slaruv_(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 float], ptr %13, i64 0, i64 %66
  %68 = load float, ptr %67, align 4, !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 float, ptr %69, i64 %74
  store float %68, ptr %75, align 4, !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 %153

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 float], ptr %13, i64 0, i64 %93
  %95 = load float, ptr %94, align 4, !tbaa !11
  %96 = call float @llvm.fmuladd.f32(float %95, float 2.000000e+00, float -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 float, ptr %97, i64 %102
  store float %96, ptr %103, align 4, !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 %152

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 %151

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 = %147, %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 %150

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 float], ptr %13, i64 0, i64 %122
  %124 = load float, ptr %123, align 4, !tbaa !11
  %125 = fpext float %124 to double
  %126 = call double @log(double noundef %125) #5
  %127 = fmul double %126, -2.000000e+00
  %128 = call double @sqrt(double noundef %127) #5
  %129 = load i32, ptr %12, align 4, !tbaa !9
  %130 = shl i32 %129, 1
  %131 = sub nsw i32 %130, 1
  %132 = sext i32 %131 to i64
  %133 = getelementptr inbounds [128 x float], ptr %13, i64 0, i64 %132
  %134 = load float, ptr %133, align 4, !tbaa !11
  %135 = fmul float %134, 0x401921FB60000000
  %136 = fpext float %135 to double
  %137 = call double @cos(double noundef %136) #5
  %138 = fmul double %128, %137
  %139 = fptrunc double %138 to float
  %140 = load ptr, ptr %8, align 8, !tbaa !5
  %141 = load i32, ptr %15, align 4, !tbaa !9
  %142 = load i32, ptr %12, align 4, !tbaa !9
  %143 = add nsw i32 %141, %142
  %144 = sub nsw i32 %143, 1
  %145 = sext i32 %144 to i64
  %146 = getelementptr inbounds float, ptr %140, i64 %145
  store float %139, ptr %146, align 4, !tbaa !11
  br label %147

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

150:                                              ; preds = %114
  br label %151

151:                                              ; preds = %150, %108
  br label %152

152:                                              ; preds = %151, %107
  br label %153

153:                                              ; preds = %152, %79
  br label %154

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

157:                                              ; 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 512, 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 @slaruv_(ptr noundef, ptr noundef, ptr noundef) #2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #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 = !{!"float", !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 @slarnv_(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 float], align 16
  %6 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 512, 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 -8
  %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, 8
  %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 @slaruv_(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 float, 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 float, ptr %invariant.gep, i64 %indvars.iv79
  %23 = zext nneg i32 %16 to i64
  %min.iters.check = icmp ult i32 %16, 8
  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, 2147483640
  %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 float], ptr %5, i64 0, i64 %index
  %25 = getelementptr inbounds i8, ptr %24, i64 16
  %wide.load = load <4 x float>, ptr %24, align 16, !tbaa !9
  %wide.load87 = load <4 x float>, ptr %25, align 16, !tbaa !9
  %26 = call <4 x float> @llvm.fmuladd.v4f32(<4 x float> %wide.load, <4 x float> <float 2.000000e+00, float 2.000000e+00, float 2.000000e+00, float 2.000000e+00>, <4 x float> <float -1.000000e+00, float -1.000000e+00, float -1.000000e+00, float -1.000000e+00>)
  %27 = call <4 x float> @llvm.fmuladd.v4f32(<4 x float> %wide.load87, <4 x float> <float 2.000000e+00, float 2.000000e+00, float 2.000000e+00, float 2.000000e+00>, <4 x float> <float -1.000000e+00, float -1.000000e+00, float -1.000000e+00, float -1.000000e+00>)
  %28 = getelementptr float, ptr %invariant.gep85, i64 %offset.idx
  %29 = getelementptr i8, ptr %28, i64 16
  store <4 x float> %26, ptr %28, align 4, !tbaa !9
  store <4 x float> %27, ptr %29, align 4, !tbaa !9
  %index.next = add nuw i64 %index, 8
  %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, 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %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 float], ptr %5, i64 0, i64 %33
  %35 = load float, ptr %34, align 4, !tbaa !9
  %36 = call float @llvm.fmuladd.f32(float %35, float 2.000000e+00, float -1.000000e+00)
  %gep = getelementptr float, ptr %invariant.gep85, i64 %indvars.iv71
  store float %36, ptr %gep, align 4, !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 float], ptr %5, i64 0, i64 %38
  %40 = load float, ptr %39, align 8, !tbaa !9
  %41 = fpext float %40 to double
  %42 = call double @log(double noundef %41) #7
  %43 = fmul double %42, -2.000000e+00
  %44 = call double @sqrt(double noundef %43) #7
  %indvars.iv.tr = trunc i64 %indvars.iv to i32
  %45 = shl i32 %indvars.iv.tr, 1
  %46 = add i32 %45, -1
  %47 = sext i32 %46 to i64
  %48 = getelementptr inbounds [128 x float], ptr %5, i64 0, i64 %47
  %49 = load float, ptr %48, align 4, !tbaa !9
  %50 = fmul float %49, 0x401921FB60000000
  %51 = fpext float %50 to double
  %52 = call double @cos(double noundef %51) #7
  %53 = fmul double %44, %52
  %54 = fptrunc double %53 to float
  %gep84 = getelementptr float, ptr %invariant.gep83, i64 %indvars.iv
  store float %54, ptr %gep84, align 4, !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 512, 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 @slaruv_(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #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 <4 x float> @llvm.fmuladd.v4f32(<4 x float>, <4 x float>, <4 x float>) #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 = !{!"float", !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