; LLVM IR from QiaoLiuHit/LSOTB-TIR :: vlfeat-0.9.19/vl/mathop_sse2.ll (vl_weighted_mean_sse2_d)

; 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 willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: alwaysinline nounwind uwtable
declare hidden <2 x double> @_mm_mul_pd(<2 x double> noundef, <2 x double> noundef) #1

; Function Attrs: alwaysinline nounwind uwtable
declare hidden <2 x double> @_mm_add_pd(<2 x double> noundef, <2 x double> noundef) #1

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

; Function Attrs: alwaysinline nounwind uwtable
declare hidden <2 x double> @_mm_loadu_pd(ptr noundef) #1

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

; Function Attrs: alwaysinline nounwind uwtable
declare hidden <2 x double> @_mm_load1_pd(ptr noundef) #1

; Function Attrs: alwaysinline nounwind uwtable
declare hidden void @_mm_storeu_pd(ptr noundef, <2 x double> noundef) #1

; Function Attrs: nounwind uwtable
define dso_local void @_vl_weighted_mean_sse2_d(i64 noundef %0, ptr noundef %1, ptr noundef %2, double noundef %3) #3 {
  %5 = alloca i64, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca double, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca <2 x double>, align 16
  %13 = alloca <2 x double>, align 16
  %14 = alloca <2 x double>, align 16
  %15 = alloca <2 x double>, align 16
  %16 = alloca <2 x double>, align 16
  %17 = alloca <2 x double>, align 16
  %18 = alloca <2 x double>, align 16
  %19 = alloca <2 x double>, align 16
  %20 = alloca <2 x double>, align 16
  %21 = alloca double, align 8
  store i64 %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !9
  store ptr %2, ptr %7, align 8, !tbaa !9
  store double %3, ptr %8, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  %22 = load ptr, ptr %7, align 8, !tbaa !9
  %23 = load i64, ptr %5, align 8, !tbaa !5
  %24 = getelementptr inbounds double, ptr %22, i64 %23
  store ptr %24, ptr %9, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  %25 = load ptr, ptr %9, align 8, !tbaa !9
  %26 = getelementptr inbounds double, ptr %25, i64 -2
  %27 = getelementptr inbounds double, ptr %26, i64 1
  store ptr %27, ptr %10, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  %28 = load ptr, ptr %7, align 8, !tbaa !9
  %29 = ptrtoint ptr %28 to i64
  %30 = and i64 %29, 15
  %31 = icmp ne i64 %30, 0
  %32 = xor i1 %31, true
  %33 = zext i1 %32 to i32
  %34 = load ptr, ptr %6, align 8, !tbaa !9
  %35 = ptrtoint ptr %34 to i64
  %36 = and i64 %35, 15
  %37 = icmp ne i64 %36, 0
  %38 = xor i1 %37, true
  %39 = zext i1 %38 to i32
  %40 = and i32 %33, %39
  store i32 %40, ptr %11, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #4
  %41 = call <2 x double> @_mm_load1_pd(ptr noundef %8)
  store <2 x double> %41, ptr %12, align 16, !tbaa !15
  %42 = load i32, ptr %11, align 4, !tbaa !13
  %43 = icmp ne i32 %42, 0
  br i1 %43, label %44, label %67

44:                                               ; preds = %4
  br label %45

45:                                               ; preds = %49, %44
  %46 = load ptr, ptr %7, align 8, !tbaa !9
  %47 = load ptr, ptr %10, align 8, !tbaa !9
  %48 = icmp ult ptr %46, %47
  br i1 %48, label %49, label %66

49:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #4
  %50 = load ptr, ptr %7, align 8, !tbaa !9
  %51 = load <2 x double>, ptr %50, align 16, !tbaa !15
  store <2 x double> %51, ptr %13, align 16, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #4
  %52 = load ptr, ptr %6, align 8, !tbaa !9
  %53 = load <2 x double>, ptr %52, align 16, !tbaa !15
  store <2 x double> %53, ptr %14, align 16, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #4
  %54 = load <2 x double>, ptr %13, align 16, !tbaa !15
  %55 = load <2 x double>, ptr %12, align 16, !tbaa !15
  %56 = call <2 x double> @_mm_mul_pd(<2 x double> noundef %54, <2 x double> noundef %55)
  store <2 x double> %56, ptr %15, align 16, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #4
  %57 = load <2 x double>, ptr %15, align 16, !tbaa !15
  %58 = load <2 x double>, ptr %14, align 16, !tbaa !15
  %59 = call <2 x double> @_mm_add_pd(<2 x double> noundef %57, <2 x double> noundef %58)
  store <2 x double> %59, ptr %16, align 16, !tbaa !15
  %60 = load <2 x double>, ptr %16, align 16, !tbaa !15
  %61 = load ptr, ptr %6, align 8, !tbaa !9
  store <2 x double> %60, ptr %61, align 16, !tbaa !15
  %62 = load ptr, ptr %7, align 8, !tbaa !9
  %63 = getelementptr inbounds double, ptr %62, i64 2
  store ptr %63, ptr %7, align 8, !tbaa !9
  %64 = load ptr, ptr %6, align 8, !tbaa !9
  %65 = getelementptr inbounds double, ptr %64, i64 2
  store ptr %65, ptr %6, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #4
  br label %45, !llvm.loop !16

66:                                               ; preds = %45
  br label %90

67:                                               ; preds = %4
  br label %68

68:                                               ; preds = %72, %67
  %69 = load ptr, ptr %7, align 8, !tbaa !9
  %70 = load ptr, ptr %10, align 8, !tbaa !9
  %71 = icmp ult ptr %69, %70
  br i1 %71, label %72, label %89

72:                                               ; preds = %68
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #4
  %73 = load ptr, ptr %7, align 8, !tbaa !9
  %74 = call <2 x double> @_mm_loadu_pd(ptr noundef %73)
  store <2 x double> %74, ptr %17, align 16, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #4
  %75 = load ptr, ptr %6, align 8, !tbaa !9
  %76 = call <2 x double> @_mm_loadu_pd(ptr noundef %75)
  store <2 x double> %76, ptr %18, align 16, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #4
  %77 = load <2 x double>, ptr %17, align 16, !tbaa !15
  %78 = load <2 x double>, ptr %12, align 16, !tbaa !15
  %79 = call <2 x double> @_mm_mul_pd(<2 x double> noundef %77, <2 x double> noundef %78)
  store <2 x double> %79, ptr %19, align 16, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #4
  %80 = load <2 x double>, ptr %19, align 16, !tbaa !15
  %81 = load <2 x double>, ptr %18, align 16, !tbaa !15
  %82 = call <2 x double> @_mm_add_pd(<2 x double> noundef %80, <2 x double> noundef %81)
  store <2 x double> %82, ptr %20, align 16, !tbaa !15
  %83 = load ptr, ptr %6, align 8, !tbaa !9
  %84 = load <2 x double>, ptr %20, align 16, !tbaa !15
  call void @_mm_storeu_pd(ptr noundef %83, <2 x double> noundef %84)
  %85 = load ptr, ptr %7, align 8, !tbaa !9
  %86 = getelementptr inbounds double, ptr %85, i64 2
  store ptr %86, ptr %7, align 8, !tbaa !9
  %87 = load ptr, ptr %6, align 8, !tbaa !9
  %88 = getelementptr inbounds double, ptr %87, i64 2
  store ptr %88, ptr %6, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #4
  br label %68, !llvm.loop !18

89:                                               ; preds = %68
  br label %90

90:                                               ; preds = %89, %66
  br label %91

91:                                               ; preds = %95, %90
  %92 = load ptr, ptr %7, align 8, !tbaa !9
  %93 = load ptr, ptr %9, align 8, !tbaa !9
  %94 = icmp ult ptr %92, %93
  br i1 %94, label %95, label %106

95:                                               ; preds = %91
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #4
  %96 = load ptr, ptr %7, align 8, !tbaa !9
  %97 = getelementptr inbounds double, ptr %96, i32 1
  store ptr %97, ptr %7, align 8, !tbaa !9
  %98 = load double, ptr %96, align 8, !tbaa !11
  store double %98, ptr %21, align 8, !tbaa !11
  %99 = load double, ptr %21, align 8, !tbaa !11
  %100 = load double, ptr %8, align 8, !tbaa !11
  %101 = load ptr, ptr %6, align 8, !tbaa !9
  %102 = load double, ptr %101, align 8, !tbaa !11
  %103 = call double @llvm.fmuladd.f64(double %99, double %100, double %102)
  store double %103, ptr %101, align 8, !tbaa !11
  %104 = load ptr, ptr %6, align 8, !tbaa !9
  %105 = getelementptr inbounds double, ptr %104, i32 1
  store ptr %105, ptr %6, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #4
  br label %91, !llvm.loop !19

106:                                              ; preds = %91
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #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 %9) #4
  ret void
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { alwaysinline nounwind uwtable "min-legal-vector-width"="128" "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 nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { nounwind uwtable "min-legal-vector-width"="128" "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 = !{!"long long", !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 = !{!14, !14, i64 0}
!14 = !{!"int", !7, i64 0}
!15 = !{!7, !7, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = distinct !{!18, !17}
!19 = distinct !{!19, !17}


; 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: alwaysinline nounwind uwtable
declare hidden <2 x double> @_mm_mul_pd(<2 x double> noundef, <2 x double> noundef) local_unnamed_addr #0

; Function Attrs: alwaysinline nounwind uwtable
declare hidden <2 x double> @_mm_add_pd(<2 x double> noundef, <2 x double> noundef) local_unnamed_addr #0

; Function Attrs: alwaysinline nounwind uwtable
declare hidden <2 x double> @_mm_loadu_pd(ptr noundef) local_unnamed_addr #0

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

; Function Attrs: alwaysinline nounwind uwtable
declare hidden <2 x double> @_mm_load1_pd(ptr noundef) local_unnamed_addr #0

; Function Attrs: alwaysinline nounwind uwtable
declare hidden void @_mm_storeu_pd(ptr noundef, <2 x double> noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local void @_vl_weighted_mean_sse2_d(i64 noundef %0, ptr noundef %1, ptr noundef %2, double noundef %3) local_unnamed_addr #2 {
  %5 = ptrtoint ptr %2 to i64
  %6 = alloca double, align 8
  store double %3, ptr %6, align 8, !tbaa !5
  %7 = getelementptr inbounds double, ptr %2, i64 %0
  %8 = getelementptr inbounds i8, ptr %7, i64 -8
  %9 = ptrtoint ptr %2 to i64
  %10 = ptrtoint ptr %1 to i64
  %11 = or i64 %9, %10
  %12 = and i64 %11, 15
  %13 = icmp eq i64 %12, 0
  %14 = call <2 x double> @_mm_load1_pd(ptr noundef nonnull %6)
  %15 = icmp ugt ptr %8, %2
  br i1 %13, label %.preheader, label %.preheader40

.preheader40:                                     ; preds = %4
  br i1 %15, label %.lr.ph, label %.loopexit

.preheader:                                       ; preds = %4
  br i1 %15, label %.lr.ph47, label %.loopexit

.lr.ph47:                                         ; preds = %.preheader, %.lr.ph47
  %.046 = phi ptr [ %21, %.lr.ph47 ], [ %1, %.preheader ]
  %.03545 = phi ptr [ %20, %.lr.ph47 ], [ %2, %.preheader ]
  %16 = load <2 x double>, ptr %.03545, align 16, !tbaa !9
  %17 = load <2 x double>, ptr %.046, align 16, !tbaa !9
  %18 = call <2 x double> @_mm_mul_pd(<2 x double> noundef %16, <2 x double> noundef %14)
  %19 = call <2 x double> @_mm_add_pd(<2 x double> noundef %18, <2 x double> noundef %17)
  store <2 x double> %19, ptr %.046, align 16, !tbaa !9
  %20 = getelementptr inbounds i8, ptr %.03545, i64 16
  %21 = getelementptr inbounds i8, ptr %.046, i64 16
  %22 = icmp ult ptr %20, %8
  br i1 %22, label %.lr.ph47, label %.loopexit, !llvm.loop !10

.lr.ph:                                           ; preds = %.preheader40, %.lr.ph
  %.143 = phi ptr [ %28, %.lr.ph ], [ %1, %.preheader40 ]
  %.13642 = phi ptr [ %27, %.lr.ph ], [ %2, %.preheader40 ]
  %23 = call <2 x double> @_mm_loadu_pd(ptr noundef %.13642)
  %24 = call <2 x double> @_mm_loadu_pd(ptr noundef %.143)
  %25 = call <2 x double> @_mm_mul_pd(<2 x double> noundef %23, <2 x double> noundef %14)
  %26 = call <2 x double> @_mm_add_pd(<2 x double> noundef %25, <2 x double> noundef %24)
  call void @_mm_storeu_pd(ptr noundef %.143, <2 x double> noundef %26)
  %27 = getelementptr inbounds i8, ptr %.13642, i64 16
  %28 = getelementptr inbounds i8, ptr %.143, i64 16
  %29 = icmp ult ptr %27, %8
  br i1 %29, label %.lr.ph, label %.loopexit, !llvm.loop !12

.loopexit:                                        ; preds = %.lr.ph, %.lr.ph47, %.preheader40, %.preheader
  %.237 = phi ptr [ %2, %.preheader ], [ %2, %.preheader40 ], [ %20, %.lr.ph47 ], [ %27, %.lr.ph ]
  %.2 = phi ptr [ %1, %.preheader ], [ %1, %.preheader40 ], [ %21, %.lr.ph47 ], [ %28, %.lr.ph ]
  %.23765 = ptrtoint ptr %.237 to i64
  %30 = icmp ult ptr %.237, %7
  br i1 %30, label %.lr.ph52.preheader, label %._crit_edge

.lr.ph52.preheader:                               ; preds = %.loopexit
  %31 = shl i64 %0, 3
  %32 = add i64 %31, %5
  %33 = add i64 %.23765, 8
  %umax71 = call i64 @llvm.umax.i64(i64 %32, i64 %33)
  %34 = xor i64 %.23765, -1
  %35 = add i64 %umax71, %34
  %36 = lshr i64 %35, 3
  %37 = add nuw nsw i64 %36, 1
  %min.iters.check = icmp ult i64 %35, 136
  br i1 %min.iters.check, label %.lr.ph52.preheader83, label %vector.memcheck

vector.memcheck:                                  ; preds = %.lr.ph52.preheader
  %38 = shl i64 %0, 3
  %39 = add i64 %38, %5
  %40 = add i64 %.23765, 8
  %umax = call i64 @llvm.umax.i64(i64 %39, i64 %40)
  %41 = xor i64 %.23765, -1
  %42 = add i64 %umax, %41
  %43 = and i64 %42, -8
  %44 = add i64 %43, 8
  %scevgep = getelementptr i8, ptr %.2, i64 %44
  %scevgep66 = getelementptr i8, ptr %.237, i64 %44
  %scevgep67 = getelementptr inbounds i8, ptr %6, i64 8
  %bound0 = icmp ult ptr %.2, %scevgep66
  %bound1 = icmp ult ptr %.237, %scevgep
  %found.conflict = and i1 %bound0, %bound1
  %bound068 = icmp ult ptr %.2, %scevgep67
  %bound169 = icmp ult ptr %6, %scevgep
  %found.conflict70 = and i1 %bound068, %bound169
  %conflict.rdx = or i1 %found.conflict, %found.conflict70
  br i1 %conflict.rdx, label %.lr.ph52.preheader83, label %vector.ph

vector.ph:                                        ; preds = %vector.memcheck
  %n.vec = and i64 %37, 4611686018427387900
  %45 = shl i64 %n.vec, 3
  %ind.end = getelementptr i8, ptr %.2, i64 %45
  %46 = shl i64 %n.vec, 3
  %ind.end72 = getelementptr i8, ptr %.237, i64 %46
  %47 = load double, ptr %6, align 8, !tbaa !5, !alias.scope !13
  %broadcast.splatinsert81 = insertelement <2 x double> poison, double %47, i64 0
  %broadcast.splat82 = shufflevector <2 x double> %broadcast.splatinsert81, <2 x double> poison, <2 x i32> zeroinitializer
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %offset.idx = shl i64 %index, 3
  %next.gep = getelementptr i8, ptr %.2, i64 %offset.idx
  %offset.idx75 = shl i64 %index, 3
  %next.gep76 = getelementptr i8, ptr %.237, i64 %offset.idx75
  %48 = getelementptr i8, ptr %next.gep76, i64 16
  %wide.load = load <2 x double>, ptr %next.gep76, align 8, !tbaa !5, !alias.scope !16
  %wide.load78 = load <2 x double>, ptr %48, align 8, !tbaa !5, !alias.scope !16
  %49 = getelementptr i8, ptr %next.gep, i64 16
  %wide.load79 = load <2 x double>, ptr %next.gep, align 8, !tbaa !5, !alias.scope !18, !noalias !20
  %wide.load80 = load <2 x double>, ptr %49, align 8, !tbaa !5, !alias.scope !18, !noalias !20
  %50 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %wide.load, <2 x double> %broadcast.splat82, <2 x double> %wide.load79)
  %51 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %wide.load78, <2 x double> %broadcast.splat82, <2 x double> %wide.load80)
  store <2 x double> %50, ptr %next.gep, align 8, !tbaa !5, !alias.scope !18, !noalias !20
  store <2 x double> %51, ptr %49, align 8, !tbaa !5, !alias.scope !18, !noalias !20
  %index.next = add nuw i64 %index, 4
  %52 = icmp eq i64 %index.next, %n.vec
  br i1 %52, label %middle.block, label %vector.body, !llvm.loop !21

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %37, %n.vec
  br i1 %cmp.n, label %._crit_edge, label %.lr.ph52.preheader83

.lr.ph52.preheader83:                             ; preds = %middle.block, %vector.memcheck, %.lr.ph52.preheader
  %.351.ph = phi ptr [ %.2, %vector.memcheck ], [ %.2, %.lr.ph52.preheader ], [ %ind.end, %middle.block ]
  %.33850.ph = phi ptr [ %.237, %vector.memcheck ], [ %.237, %.lr.ph52.preheader ], [ %ind.end72, %middle.block ]
  br label %.lr.ph52

.lr.ph52:                                         ; preds = %.lr.ph52.preheader83, %.lr.ph52
  %.351 = phi ptr [ %58, %.lr.ph52 ], [ %.351.ph, %.lr.ph52.preheader83 ]
  %.33850 = phi ptr [ %53, %.lr.ph52 ], [ %.33850.ph, %.lr.ph52.preheader83 ]
  %53 = getelementptr inbounds i8, ptr %.33850, i64 8
  %54 = load double, ptr %.33850, align 8, !tbaa !5
  %55 = load double, ptr %6, align 8, !tbaa !5
  %56 = load double, ptr %.351, align 8, !tbaa !5
  %57 = call double @llvm.fmuladd.f64(double %54, double %55, double %56)
  store double %57, ptr %.351, align 8, !tbaa !5
  %58 = getelementptr inbounds i8, ptr %.351, i64 8
  %59 = icmp ult ptr %53, %7
  br i1 %59, label %.lr.ph52, label %._crit_edge, !llvm.loop !24

._crit_edge:                                      ; preds = %.lr.ph52, %middle.block, %.loopexit
  ret void
}

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.umax.i64(i64, i64) #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>) #3

attributes #0 = { alwaysinline nounwind uwtable "min-legal-vector-width"="128" "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 speculatable willreturn memory(none) }
attributes #2 = { nounwind uwtable "min-legal-vector-width"="128" "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) }

!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 = !{!7, !7, i64 0}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}
!12 = distinct !{!12, !11}
!13 = !{!14}
!14 = distinct !{!14, !15}
!15 = distinct !{!15, !"LVerDomain"}
!16 = !{!17}
!17 = distinct !{!17, !15}
!18 = !{!19}
!19 = distinct !{!19, !15}
!20 = !{!17, !14}
!21 = distinct !{!21, !11, !22, !23}
!22 = !{!"llvm.loop.isvectorized", i32 1}
!23 = !{!"llvm.loop.unroll.runtime.disable"}
!24 = distinct !{!24, !11, !22}


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