; LLVM IR from FOSS-UCSC/FOSSALGO :: algorithms/ar-knn/cpp/knn.ll (Z14classifyAPointP5PointiiS_)

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

%struct.Point = type { i32, double, double, double }

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_Z10comparison5PointS_(ptr noundef byval(%struct.Point) align 8, ptr noundef byval(%struct.Point) align 8) #0

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z14classifyAPointP5PointiiS_(ptr noundef %0, i32 noundef %1, i32 noundef %2, ptr noundef byval(%struct.Point) align 8 %3) #1 {
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store i32 %1, ptr %6, align 4, !tbaa !9
  store i32 %2, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  store i32 0, ptr %8, align 4, !tbaa !9
  br label %12

12:                                               ; preds = %62, %4
  %13 = load i32, ptr %8, align 4, !tbaa !9
  %14 = load i32, ptr %6, align 4, !tbaa !9
  %15 = icmp slt i32 %13, %14
  br i1 %15, label %17, label %16

16:                                               ; preds = %12
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  br label %65

17:                                               ; preds = %12
  %18 = load ptr, ptr %5, align 8, !tbaa !5
  %19 = load i32, ptr %8, align 4, !tbaa !9
  %20 = sext i32 %19 to i64
  %21 = getelementptr inbounds %struct.Point, ptr %18, i64 %20
  %22 = getelementptr inbounds %struct.Point, ptr %21, i32 0, i32 1
  %23 = load double, ptr %22, align 8, !tbaa !11
  %24 = getelementptr inbounds %struct.Point, ptr %3, i32 0, i32 1
  %25 = load double, ptr %24, align 8, !tbaa !11
  %26 = fsub double %23, %25
  %27 = load ptr, ptr %5, align 8, !tbaa !5
  %28 = load i32, ptr %8, align 4, !tbaa !9
  %29 = sext i32 %28 to i64
  %30 = getelementptr inbounds %struct.Point, ptr %27, i64 %29
  %31 = getelementptr inbounds %struct.Point, ptr %30, i32 0, i32 1
  %32 = load double, ptr %31, align 8, !tbaa !11
  %33 = getelementptr inbounds %struct.Point, ptr %3, i32 0, i32 1
  %34 = load double, ptr %33, align 8, !tbaa !11
  %35 = fsub double %32, %34
  %36 = load ptr, ptr %5, align 8, !tbaa !5
  %37 = load i32, ptr %8, align 4, !tbaa !9
  %38 = sext i32 %37 to i64
  %39 = getelementptr inbounds %struct.Point, ptr %36, i64 %38
  %40 = getelementptr inbounds %struct.Point, ptr %39, i32 0, i32 2
  %41 = load double, ptr %40, align 8, !tbaa !14
  %42 = getelementptr inbounds %struct.Point, ptr %3, i32 0, i32 2
  %43 = load double, ptr %42, align 8, !tbaa !14
  %44 = fsub double %41, %43
  %45 = load ptr, ptr %5, align 8, !tbaa !5
  %46 = load i32, ptr %8, align 4, !tbaa !9
  %47 = sext i32 %46 to i64
  %48 = getelementptr inbounds %struct.Point, ptr %45, i64 %47
  %49 = getelementptr inbounds %struct.Point, ptr %48, i32 0, i32 2
  %50 = load double, ptr %49, align 8, !tbaa !14
  %51 = getelementptr inbounds %struct.Point, ptr %3, i32 0, i32 2
  %52 = load double, ptr %51, align 8, !tbaa !14
  %53 = fsub double %50, %52
  %54 = fmul double %44, %53
  %55 = call double @llvm.fmuladd.f64(double %26, double %35, double %54)
  %56 = call double @sqrt(double noundef %55) #6
  %57 = load ptr, ptr %5, align 8, !tbaa !5
  %58 = load i32, ptr %8, align 4, !tbaa !9
  %59 = sext i32 %58 to i64
  %60 = getelementptr inbounds %struct.Point, ptr %57, i64 %59
  %61 = getelementptr inbounds %struct.Point, ptr %60, i32 0, i32 3
  store double %56, ptr %61, align 8, !tbaa !15
  br label %62

62:                                               ; preds = %17
  %63 = load i32, ptr %8, align 4, !tbaa !9
  %64 = add nsw i32 %63, 1
  store i32 %64, ptr %8, align 4, !tbaa !9
  br label %12, !llvm.loop !16

65:                                               ; preds = %16
  %66 = load ptr, ptr %5, align 8, !tbaa !5
  %67 = load ptr, ptr %5, align 8, !tbaa !5
  %68 = load i32, ptr %6, align 4, !tbaa !9
  %69 = sext i32 %68 to i64
  %70 = getelementptr inbounds %struct.Point, ptr %67, i64 %69
  call void @_ZSt4sortIP5PointPFbS0_S0_EEvT_S4_T0_(ptr noundef %66, ptr noundef %70, ptr noundef @_Z10comparison5PointS_)
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  store i32 0, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  store i32 0, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  store i32 0, ptr %11, align 4, !tbaa !9
  br label %71

71:                                               ; preds = %100, %65
  %72 = load i32, ptr %11, align 4, !tbaa !9
  %73 = load i32, ptr %7, align 4, !tbaa !9
  %74 = icmp slt i32 %72, %73
  br i1 %74, label %76, label %75

75:                                               ; preds = %71
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  br label %103

76:                                               ; preds = %71
  %77 = load ptr, ptr %5, align 8, !tbaa !5
  %78 = load i32, ptr %11, align 4, !tbaa !9
  %79 = sext i32 %78 to i64
  %80 = getelementptr inbounds %struct.Point, ptr %77, i64 %79
  %81 = getelementptr inbounds %struct.Point, ptr %80, i32 0, i32 0
  %82 = load i32, ptr %81, align 8, !tbaa !18
  %83 = icmp eq i32 %82, 0
  br i1 %83, label %84, label %87

84:                                               ; preds = %76
  %85 = load i32, ptr %9, align 4, !tbaa !9
  %86 = add nsw i32 %85, 1
  store i32 %86, ptr %9, align 4, !tbaa !9
  br label %99

87:                                               ; preds = %76
  %88 = load ptr, ptr %5, align 8, !tbaa !5
  %89 = load i32, ptr %11, align 4, !tbaa !9
  %90 = sext i32 %89 to i64
  %91 = getelementptr inbounds %struct.Point, ptr %88, i64 %90
  %92 = getelementptr inbounds %struct.Point, ptr %91, i32 0, i32 0
  %93 = load i32, ptr %92, align 8, !tbaa !18
  %94 = icmp eq i32 %93, 1
  br i1 %94, label %95, label %98

95:                                               ; preds = %87
  %96 = load i32, ptr %10, align 4, !tbaa !9
  %97 = add nsw i32 %96, 1
  store i32 %97, ptr %10, align 4, !tbaa !9
  br label %98

98:                                               ; preds = %95, %87
  br label %99

99:                                               ; preds = %98, %84
  br label %100

100:                                              ; preds = %99
  %101 = load i32, ptr %11, align 4, !tbaa !9
  %102 = add nsw i32 %101, 1
  store i32 %102, ptr %11, align 4, !tbaa !9
  br label %71, !llvm.loop !19

103:                                              ; preds = %75
  %104 = load i32, ptr %9, align 4, !tbaa !9
  %105 = load i32, ptr %10, align 4, !tbaa !9
  %106 = icmp sgt i32 %104, %105
  %107 = zext i1 %106 to i64
  %108 = select i1 %106, i32 0, i32 1
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  ret i32 %108
}

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortIP5PointPFbS0_S0_EEvT_S4_T0_(ptr noundef, ptr noundef, ptr noundef) #5

attributes #0 = { mustprogress 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 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 nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { inlinehint mustprogress 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 #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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !13, i64 8}
!12 = !{!"_ZTS5Point", !10, i64 0, !13, i64 8, !13, i64 16, !13, i64 24}
!13 = !{!"double", !7, i64 0}
!14 = !{!12, !13, i64 16}
!15 = !{!12, !13, i64 24}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = !{!12, !10, i64 0}
!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"

%struct.Point = type { i32, double, double, double }

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_Z10comparison5PointS_(ptr noundef byval(%struct.Point) align 8, ptr noundef byval(%struct.Point) align 8) #0

; Function Attrs: mustprogress uwtable
define dso_local noundef range(i32 0, 2) i32 @_Z14classifyAPointP5PointiiS_(ptr noundef %0, i32 noundef %1, i32 noundef %2, ptr nocapture noundef readonly byval(%struct.Point) align 8 %3) local_unnamed_addr #1 {
  %5 = icmp sgt i32 %1, 0
  br i1 %5, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %4
  %6 = getelementptr inbounds i8, ptr %3, i64 8
  %7 = load double, ptr %6, align 8, !tbaa !5
  %8 = getelementptr inbounds i8, ptr %3, i64 16
  %9 = load double, ptr %8, align 8, !tbaa !11
  %wide.trip.count = zext nneg i32 %1 to i64
  %min.iters.check = icmp ult i32 %1, 3
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.ph

scalar.ph.preheader:                              ; preds = %vector.body, %.lr.ph
  %indvars.iv.ph = phi i64 [ 0, %.lr.ph ], [ %n.vec, %vector.body ]
  br label %scalar.ph

vector.ph:                                        ; preds = %.lr.ph
  %.neg = or i64 %wide.trip.count, -2
  %n.vec = add nsw i64 %.neg, %wide.trip.count
  %broadcast.splatinsert = insertelement <2 x double> poison, double %7, i64 0
  %broadcast.splat = shufflevector <2 x double> %broadcast.splatinsert, <2 x double> poison, <2 x i32> zeroinitializer
  %broadcast.splatinsert46 = insertelement <2 x double> poison, double %9, i64 0
  %broadcast.splat47 = shufflevector <2 x double> %broadcast.splatinsert46, <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 ]
  %10 = or disjoint i64 %index, 1
  %11 = getelementptr inbounds %struct.Point, ptr %0, i64 %index
  %12 = getelementptr inbounds %struct.Point, ptr %0, i64 %10
  %13 = getelementptr inbounds i8, ptr %11, i64 8
  %14 = getelementptr inbounds i8, ptr %12, i64 8
  %15 = load double, ptr %13, align 8, !tbaa !5
  %16 = load double, ptr %14, align 8, !tbaa !5
  %17 = insertelement <2 x double> poison, double %15, i64 0
  %18 = insertelement <2 x double> %17, double %16, i64 1
  %19 = fsub <2 x double> %18, %broadcast.splat
  %20 = getelementptr inbounds i8, ptr %11, i64 16
  %21 = getelementptr inbounds i8, ptr %12, i64 16
  %22 = load double, ptr %20, align 8, !tbaa !11
  %23 = load double, ptr %21, align 8, !tbaa !11
  %24 = insertelement <2 x double> poison, double %22, i64 0
  %25 = insertelement <2 x double> %24, double %23, i64 1
  %26 = fsub <2 x double> %25, %broadcast.splat47
  %27 = fmul <2 x double> %26, %26
  %28 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %19, <2 x double> %19, <2 x double> %27)
  %29 = extractelement <2 x double> %28, i64 0
  %30 = tail call double @llvm.sqrt.f64(double %29)
  %31 = extractelement <2 x double> %28, i64 1
  %32 = tail call double @llvm.sqrt.f64(double %31)
  %33 = getelementptr inbounds i8, ptr %11, i64 24
  %34 = getelementptr inbounds i8, ptr %12, i64 24
  store double %30, ptr %33, align 8, !tbaa !12
  store double %32, ptr %34, align 8, !tbaa !12
  %index.next = add nuw i64 %index, 2
  %35 = icmp eq i64 %index.next, %n.vec
  br i1 %35, label %scalar.ph.preheader, label %vector.body, !llvm.loop !13

._crit_edge:                                      ; preds = %scalar.ph, %4
  %36 = sext i32 %1 to i64
  %37 = getelementptr inbounds %struct.Point, ptr %0, i64 %36
  tail call void @_ZSt4sortIP5PointPFbS0_S0_EEvT_S4_T0_(ptr noundef %0, ptr noundef %37, ptr noundef nonnull @_Z10comparison5PointS_)
  %38 = icmp sgt i32 %2, 0
  br i1 %38, label %.lr.ph37.preheader, label %._crit_edge38

.lr.ph37.preheader:                               ; preds = %._crit_edge
  %wide.trip.count44 = zext nneg i32 %2 to i64
  %xtraiter = and i64 %wide.trip.count44, 1
  %39 = icmp eq i32 %2, 1
  br i1 %39, label %._crit_edge38.loopexit.unr-lcssa, label %.lr.ph37.preheader.new

.lr.ph37.preheader.new:                           ; preds = %.lr.ph37.preheader
  %unroll_iter = and i64 %wide.trip.count44, 2147483646
  br label %.lr.ph37

scalar.ph:                                        ; preds = %scalar.ph.preheader, %scalar.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %scalar.ph ], [ %indvars.iv.ph, %scalar.ph.preheader ]
  %40 = getelementptr inbounds %struct.Point, ptr %0, i64 %indvars.iv
  %41 = getelementptr inbounds i8, ptr %40, i64 8
  %42 = load double, ptr %41, align 8, !tbaa !5
  %43 = fsub double %42, %7
  %44 = getelementptr inbounds i8, ptr %40, i64 16
  %45 = load double, ptr %44, align 8, !tbaa !11
  %46 = fsub double %45, %9
  %47 = fmul double %46, %46
  %48 = tail call double @llvm.fmuladd.f64(double %43, double %43, double %47)
  %sqrt = tail call double @llvm.sqrt.f64(double %48)
  %49 = getelementptr inbounds i8, ptr %40, i64 24
  store double %sqrt, ptr %49, align 8, !tbaa !12
  %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 %._crit_edge, label %scalar.ph, !llvm.loop !17

._crit_edge38.loopexit.unr-lcssa:                 ; preds = %70, %.lr.ph37.preheader
  %.128.lcssa.ph = phi i32 [ poison, %.lr.ph37.preheader ], [ %.128.1, %70 ]
  %.1.lcssa.ph = phi i32 [ poison, %.lr.ph37.preheader ], [ %.1.1, %70 ]
  %indvars.iv41.unr = phi i64 [ 0, %.lr.ph37.preheader ], [ %indvars.iv.next42.1, %70 ]
  %.02634.unr = phi i32 [ 0, %.lr.ph37.preheader ], [ %.1.1, %70 ]
  %.02733.unr = phi i32 [ 0, %.lr.ph37.preheader ], [ %.128.1, %70 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge38, label %.lr.ph37.epil

.lr.ph37.epil:                                    ; preds = %._crit_edge38.loopexit.unr-lcssa
  %50 = getelementptr inbounds %struct.Point, ptr %0, i64 %indvars.iv41.unr
  %51 = load i32, ptr %50, align 8, !tbaa !18
  switch i32 %51, label %._crit_edge38 [
    i32 0, label %54
    i32 1, label %52
  ]

52:                                               ; preds = %.lr.ph37.epil
  %53 = add nsw i32 %.02634.unr, 1
  br label %._crit_edge38

54:                                               ; preds = %.lr.ph37.epil
  %55 = add nsw i32 %.02733.unr, 1
  br label %._crit_edge38

._crit_edge38:                                    ; preds = %._crit_edge38.loopexit.unr-lcssa, %54, %52, %.lr.ph37.epil, %._crit_edge
  %.027.lcssa = phi i32 [ 0, %._crit_edge ], [ %.128.lcssa.ph, %._crit_edge38.loopexit.unr-lcssa ], [ %55, %54 ], [ %.02733.unr, %52 ], [ %.02733.unr, %.lr.ph37.epil ]
  %.026.lcssa = phi i32 [ 0, %._crit_edge ], [ %.1.lcssa.ph, %._crit_edge38.loopexit.unr-lcssa ], [ %.02634.unr, %54 ], [ %53, %52 ], [ %.02634.unr, %.lr.ph37.epil ]
  %56 = icmp sle i32 %.027.lcssa, %.026.lcssa
  %57 = zext i1 %56 to i32
  ret i32 %57

.lr.ph37:                                         ; preds = %70, %.lr.ph37.preheader.new
  %indvars.iv41 = phi i64 [ 0, %.lr.ph37.preheader.new ], [ %indvars.iv.next42.1, %70 ]
  %.02634 = phi i32 [ 0, %.lr.ph37.preheader.new ], [ %.1.1, %70 ]
  %.02733 = phi i32 [ 0, %.lr.ph37.preheader.new ], [ %.128.1, %70 ]
  %niter = phi i64 [ 0, %.lr.ph37.preheader.new ], [ %niter.next.1, %70 ]
  %58 = getelementptr inbounds %struct.Point, ptr %0, i64 %indvars.iv41
  %59 = load i32, ptr %58, align 8, !tbaa !18
  switch i32 %59, label %.lr.ph37.1 [
    i32 0, label %60
    i32 1, label %62
  ]

60:                                               ; preds = %.lr.ph37
  %61 = add nsw i32 %.02733, 1
  br label %.lr.ph37.1

62:                                               ; preds = %.lr.ph37
  %63 = add nsw i32 %.02634, 1
  br label %.lr.ph37.1

.lr.ph37.1:                                       ; preds = %.lr.ph37, %60, %62
  %.128 = phi i32 [ %61, %60 ], [ %.02733, %62 ], [ %.02733, %.lr.ph37 ]
  %.1 = phi i32 [ %.02634, %60 ], [ %63, %62 ], [ %.02634, %.lr.ph37 ]
  %indvars.iv.next42 = or disjoint i64 %indvars.iv41, 1
  %64 = getelementptr inbounds %struct.Point, ptr %0, i64 %indvars.iv.next42
  %65 = load i32, ptr %64, align 8, !tbaa !18
  switch i32 %65, label %70 [
    i32 0, label %68
    i32 1, label %66
  ]

66:                                               ; preds = %.lr.ph37.1
  %67 = add nsw i32 %.1, 1
  br label %70

68:                                               ; preds = %.lr.ph37.1
  %69 = add nsw i32 %.128, 1
  br label %70

70:                                               ; preds = %68, %66, %.lr.ph37.1
  %.128.1 = phi i32 [ %69, %68 ], [ %.128, %66 ], [ %.128, %.lr.ph37.1 ]
  %.1.1 = phi i32 [ %.1, %68 ], [ %67, %66 ], [ %.1, %.lr.ph37.1 ]
  %indvars.iv.next42.1 = add nuw nsw i64 %indvars.iv41, 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_edge38.loopexit.unr-lcssa, label %.lr.ph37, !llvm.loop !19
}

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortIP5PointPFbS0_S0_EEvT_S4_T0_(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

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

; 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 = { mustprogress 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 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 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { inlinehint mustprogress 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 = { 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, !10, i64 8}
!6 = !{!"_ZTS5Point", !7, i64 0, !10, i64 8, !10, i64 16, !10, i64 24}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"double", !8, i64 0}
!11 = !{!6, !10, i64 16}
!12 = !{!6, !10, i64 24}
!13 = distinct !{!13, !14, !15, !16}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!"llvm.loop.isvectorized", i32 1}
!16 = !{!"llvm.loop.unroll.runtime.disable"}
!17 = distinct !{!17, !14, !16, !15}
!18 = !{!6, !7, i64 0}
!19 = distinct !{!19, !14}


; Effective O3 passes: AggressiveInstCombinePass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass