; LLVM IR from bbenligiray/stag :: src/ED/LineSegment.ll (Z7LineFitPdS_iS_S_i)

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

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

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_Z7LineFitPdS_iS_S_i(ptr noundef %0, ptr noundef %1, i32 noundef %2, ptr noundef %3, ptr noundef %4, i32 noundef %5) #2 {
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca double, align 8
  %14 = alloca double, align 8
  %15 = alloca double, align 8
  %16 = alloca double, align 8
  %17 = alloca double, align 8
  %18 = alloca i32, align 4
  %19 = alloca ptr, align 8
  %20 = alloca double, align 8
  %21 = alloca i32, align 4
  %22 = alloca double, align 8
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store i32 %2, ptr %9, align 4, !tbaa !9
  store ptr %3, ptr %10, align 8, !tbaa !5
  store ptr %4, ptr %11, align 8, !tbaa !5
  store i32 %5, ptr %12, align 4, !tbaa !9
  %23 = load i32, ptr %9, align 4, !tbaa !9
  %24 = icmp slt i32 %23, 2
  br i1 %24, label %25, label %26

25:                                               ; preds = %6
  br label %124

26:                                               ; preds = %6
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #3
  %27 = load i32, ptr %9, align 4, !tbaa !9
  %28 = sitofp i32 %27 to double
  store double %28, ptr %13, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #3
  store double 0.000000e+00, ptr %14, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #3
  store double 0.000000e+00, ptr %15, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #3
  store double 0.000000e+00, ptr %16, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #3
  store double 0.000000e+00, ptr %17, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #3
  store i32 0, ptr %18, align 4, !tbaa !9
  br label %29

29:                                               ; preds = %49, %26
  %30 = load i32, ptr %18, align 4, !tbaa !9
  %31 = load i32, ptr %9, align 4, !tbaa !9
  %32 = icmp slt i32 %30, %31
  br i1 %32, label %34, label %33

33:                                               ; preds = %29
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #3
  br label %52

34:                                               ; preds = %29
  %35 = load ptr, ptr %7, align 8, !tbaa !5
  %36 = load i32, ptr %18, align 4, !tbaa !9
  %37 = sext i32 %36 to i64
  %38 = getelementptr inbounds double, ptr %35, i64 %37
  %39 = load double, ptr %38, align 8, !tbaa !11
  %40 = load double, ptr %14, align 8, !tbaa !11
  %41 = fadd double %40, %39
  store double %41, ptr %14, align 8, !tbaa !11
  %42 = load ptr, ptr %8, align 8, !tbaa !5
  %43 = load i32, ptr %18, align 4, !tbaa !9
  %44 = sext i32 %43 to i64
  %45 = getelementptr inbounds double, ptr %42, i64 %44
  %46 = load double, ptr %45, align 8, !tbaa !11
  %47 = load double, ptr %15, align 8, !tbaa !11
  %48 = fadd double %47, %46
  store double %48, ptr %15, align 8, !tbaa !11
  br label %49

49:                                               ; preds = %34
  %50 = load i32, ptr %18, align 4, !tbaa !9
  %51 = add nsw i32 %50, 1
  store i32 %51, ptr %18, align 4, !tbaa !9
  br label %29, !llvm.loop !13

52:                                               ; preds = %33
  %53 = load i32, ptr %12, align 4, !tbaa !9
  %54 = icmp ne i32 %53, 0
  br i1 %54, label %55, label %62

55:                                               ; preds = %52
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #3
  %56 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr %56, ptr %19, align 8, !tbaa !5
  %57 = load ptr, ptr %8, align 8, !tbaa !5
  store ptr %57, ptr %7, align 8, !tbaa !5
  %58 = load ptr, ptr %19, align 8, !tbaa !5
  store ptr %58, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #3
  %59 = load double, ptr %14, align 8, !tbaa !11
  store double %59, ptr %20, align 8, !tbaa !11
  %60 = load double, ptr %15, align 8, !tbaa !11
  store double %60, ptr %14, align 8, !tbaa !11
  %61 = load double, ptr %20, align 8, !tbaa !11
  store double %61, ptr %15, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #3
  br label %62

62:                                               ; preds = %55, %52
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #3
  store i32 0, ptr %21, align 4, !tbaa !9
  br label %63

63:                                               ; preds = %93, %62
  %64 = load i32, ptr %21, align 4, !tbaa !9
  %65 = load i32, ptr %9, align 4, !tbaa !9
  %66 = icmp slt i32 %64, %65
  br i1 %66, label %68, label %67

67:                                               ; preds = %63
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #3
  br label %96

68:                                               ; preds = %63
  %69 = load ptr, ptr %7, align 8, !tbaa !5
  %70 = load i32, ptr %21, align 4, !tbaa !9
  %71 = sext i32 %70 to i64
  %72 = getelementptr inbounds double, ptr %69, i64 %71
  %73 = load double, ptr %72, align 8, !tbaa !11
  %74 = load ptr, ptr %7, align 8, !tbaa !5
  %75 = load i32, ptr %21, align 4, !tbaa !9
  %76 = sext i32 %75 to i64
  %77 = getelementptr inbounds double, ptr %74, i64 %76
  %78 = load double, ptr %77, align 8, !tbaa !11
  %79 = load double, ptr %16, align 8, !tbaa !11
  %80 = call double @llvm.fmuladd.f64(double %73, double %78, double %79)
  store double %80, ptr %16, align 8, !tbaa !11
  %81 = load ptr, ptr %7, align 8, !tbaa !5
  %82 = load i32, ptr %21, align 4, !tbaa !9
  %83 = sext i32 %82 to i64
  %84 = getelementptr inbounds double, ptr %81, i64 %83
  %85 = load double, ptr %84, align 8, !tbaa !11
  %86 = load ptr, ptr %8, align 8, !tbaa !5
  %87 = load i32, ptr %21, align 4, !tbaa !9
  %88 = sext i32 %87 to i64
  %89 = getelementptr inbounds double, ptr %86, i64 %88
  %90 = load double, ptr %89, align 8, !tbaa !11
  %91 = load double, ptr %17, align 8, !tbaa !11
  %92 = call double @llvm.fmuladd.f64(double %85, double %90, double %91)
  store double %92, ptr %17, align 8, !tbaa !11
  br label %93

93:                                               ; preds = %68
  %94 = load i32, ptr %21, align 4, !tbaa !9
  %95 = add nsw i32 %94, 1
  store i32 %95, ptr %21, align 4, !tbaa !9
  br label %63, !llvm.loop !15

96:                                               ; preds = %67
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #3
  %97 = load double, ptr %13, align 8, !tbaa !11
  %98 = load double, ptr %16, align 8, !tbaa !11
  %99 = load double, ptr %14, align 8, !tbaa !11
  %100 = load double, ptr %14, align 8, !tbaa !11
  %101 = fmul double %99, %100
  %102 = fneg double %101
  %103 = call double @llvm.fmuladd.f64(double %97, double %98, double %102)
  store double %103, ptr %22, align 8, !tbaa !11
  %104 = load double, ptr %16, align 8, !tbaa !11
  %105 = load double, ptr %15, align 8, !tbaa !11
  %106 = load double, ptr %14, align 8, !tbaa !11
  %107 = load double, ptr %17, align 8, !tbaa !11
  %108 = fmul double %106, %107
  %109 = fneg double %108
  %110 = call double @llvm.fmuladd.f64(double %104, double %105, double %109)
  %111 = load double, ptr %22, align 8, !tbaa !11
  %112 = fdiv double %110, %111
  %113 = load ptr, ptr %10, align 8, !tbaa !5
  store double %112, ptr %113, align 8, !tbaa !11
  %114 = load double, ptr %13, align 8, !tbaa !11
  %115 = load double, ptr %17, align 8, !tbaa !11
  %116 = load double, ptr %14, align 8, !tbaa !11
  %117 = load double, ptr %15, align 8, !tbaa !11
  %118 = fmul double %116, %117
  %119 = fneg double %118
  %120 = call double @llvm.fmuladd.f64(double %114, double %115, double %119)
  %121 = load double, ptr %22, align 8, !tbaa !11
  %122 = fdiv double %120, %121
  %123 = load ptr, ptr %11, align 8, !tbaa !5
  store double %122, ptr %123, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #3
  br label %124

124:                                              ; preds = %96, %25
  ret void
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { 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 #3 = { 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, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !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: mustprogress nofree norecurse nosync nounwind memory(read, argmem: readwrite, inaccessiblemem: none) uwtable
define dso_local void @_Z7LineFitPdS_iS_S_i(ptr nocapture noundef readonly %0, ptr nocapture noundef readonly %1, i32 noundef %2, ptr nocapture noundef writeonly %3, ptr nocapture noundef writeonly %4, i32 noundef %5) local_unnamed_addr #1 {
  %7 = icmp slt i32 %2, 2
  br i1 %7, label %88, label %8

8:                                                ; preds = %6
  %wide.trip.count = zext nneg i32 %2 to i64
  %xtraiter = and i64 %wide.trip.count, 3
  %9 = icmp ult i32 %2, 4
  br i1 %9, label %.unr-lcssa, label %.new

.new:                                             ; preds = %8
  %unroll_iter = and i64 %wide.trip.count, 2147483644
  br label %17

.unr-lcssa:                                       ; preds = %17, %8
  %.lcssa78.ph = phi double [ poison, %8 ], [ %38, %17 ]
  %.lcssa77.ph = phi double [ poison, %8 ], [ %41, %17 ]
  %indvars.iv.unr = phi i64 [ 0, %8 ], [ %indvars.iv.next.3, %17 ]
  %.04857.unr = phi double [ 0.000000e+00, %8 ], [ %38, %17 ]
  %.05255.unr = phi double [ 0.000000e+00, %8 ], [ %41, %17 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.epilog-lcssa, label %.epil.preheader

.epil.preheader:                                  ; preds = %.unr-lcssa, %.epil.preheader
  %indvars.iv.epil = phi i64 [ %indvars.iv.next.epil, %.epil.preheader ], [ %indvars.iv.unr, %.unr-lcssa ]
  %.04857.epil = phi double [ %12, %.epil.preheader ], [ %.04857.unr, %.unr-lcssa ]
  %.05255.epil = phi double [ %15, %.epil.preheader ], [ %.05255.unr, %.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %.unr-lcssa ]
  %10 = getelementptr inbounds double, ptr %0, i64 %indvars.iv.epil
  %11 = load double, ptr %10, align 8, !tbaa !5
  %12 = fadd double %.04857.epil, %11
  %13 = getelementptr inbounds double, ptr %1, i64 %indvars.iv.epil
  %14 = load double, ptr %13, align 8, !tbaa !5
  %15 = fadd double %.05255.epil, %14
  %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 %.epilog-lcssa, label %.epil.preheader, !llvm.loop !9

.epilog-lcssa:                                    ; preds = %.epil.preheader, %.unr-lcssa
  %.lcssa78 = phi double [ %.lcssa78.ph, %.unr-lcssa ], [ %12, %.epil.preheader ]
  %.lcssa77 = phi double [ %.lcssa77.ph, %.unr-lcssa ], [ %15, %.epil.preheader ]
  %16 = uitofp nneg i32 %2 to double
  %.not = icmp eq i32 %5, 0
  br i1 %.not, label %.lr.ph.preheader, label %42

17:                                               ; preds = %17, %.new
  %indvars.iv = phi i64 [ 0, %.new ], [ %indvars.iv.next.3, %17 ]
  %.04857 = phi double [ 0.000000e+00, %.new ], [ %38, %17 ]
  %.05255 = phi double [ 0.000000e+00, %.new ], [ %41, %17 ]
  %niter = phi i64 [ 0, %.new ], [ %niter.next.3, %17 ]
  %18 = getelementptr inbounds double, ptr %0, i64 %indvars.iv
  %19 = load double, ptr %18, align 8, !tbaa !5
  %20 = fadd double %.04857, %19
  %21 = getelementptr inbounds double, ptr %1, i64 %indvars.iv
  %22 = load double, ptr %21, align 8, !tbaa !5
  %23 = fadd double %.05255, %22
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %24 = getelementptr inbounds double, ptr %0, i64 %indvars.iv.next
  %25 = load double, ptr %24, align 8, !tbaa !5
  %26 = fadd double %20, %25
  %27 = getelementptr inbounds double, ptr %1, i64 %indvars.iv.next
  %28 = load double, ptr %27, align 8, !tbaa !5
  %29 = fadd double %23, %28
  %indvars.iv.next.1 = or disjoint i64 %indvars.iv, 2
  %30 = getelementptr inbounds double, ptr %0, i64 %indvars.iv.next.1
  %31 = load double, ptr %30, align 8, !tbaa !5
  %32 = fadd double %26, %31
  %33 = getelementptr inbounds double, ptr %1, i64 %indvars.iv.next.1
  %34 = load double, ptr %33, align 8, !tbaa !5
  %35 = fadd double %29, %34
  %indvars.iv.next.2 = or disjoint i64 %indvars.iv, 3
  %36 = getelementptr inbounds double, ptr %0, i64 %indvars.iv.next.2
  %37 = load double, ptr %36, align 8, !tbaa !5
  %38 = fadd double %32, %37
  %39 = getelementptr inbounds double, ptr %1, i64 %indvars.iv.next.2
  %40 = load double, ptr %39, align 8, !tbaa !5
  %41 = fadd double %35, %40
  %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 %.unr-lcssa, label %17, !llvm.loop !11

42:                                               ; preds = %.epilog-lcssa
  br label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %.epilog-lcssa, %42
  %.153 = phi double [ %.lcssa78, %42 ], [ %.lcssa77, %.epilog-lcssa ]
  %.1 = phi double [ %.lcssa77, %42 ], [ %.lcssa78, %.epilog-lcssa ]
  %.047 = phi ptr [ %0, %42 ], [ %1, %.epilog-lcssa ]
  %.0 = phi ptr [ %1, %42 ], [ %0, %.epilog-lcssa ]
  %smax = tail call i32 @llvm.smax.i32(i32 %2, i32 1)
  %wide.trip.count69 = zext nneg i32 %smax to i64
  %xtraiter81 = and i64 %wide.trip.count69, 1
  %unroll_iter85 = and i64 %wide.trip.count69, 2147483646
  br label %.lr.ph

._crit_edge.unr-lcssa:                            ; preds = %.lr.ph
  %lcmp.mod83.not = icmp eq i64 %xtraiter81, 0
  br i1 %lcmp.mod83.not, label %._crit_edge, label %.lr.ph.epil

.lr.ph.epil:                                      ; preds = %._crit_edge.unr-lcssa
  %43 = getelementptr inbounds double, ptr %.0, i64 %indvars.iv.next67.1
  %44 = load double, ptr %43, align 8, !tbaa !5
  %45 = getelementptr inbounds double, ptr %.047, i64 %indvars.iv.next67.1
  %46 = load double, ptr %45, align 8, !tbaa !5
  %47 = insertelement <2 x double> poison, double %44, i64 0
  %48 = shufflevector <2 x double> %47, <2 x double> poison, <2 x i32> zeroinitializer
  %49 = insertelement <2 x double> poison, double %46, i64 0
  %50 = insertelement <2 x double> %49, double %44, i64 1
  %51 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %48, <2 x double> %50, <2 x double> %87)
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.unr-lcssa, %.lr.ph.epil
  %.lcssa = phi <2 x double> [ %87, %._crit_edge.unr-lcssa ], [ %51, %.lr.ph.epil ]
  %52 = fneg double %.1
  %53 = insertelement <2 x double> %.lcssa, double %.1, i64 1
  %54 = insertelement <2 x double> poison, double %52, i64 0
  %55 = shufflevector <2 x double> %54, <2 x double> poison, <2 x i32> zeroinitializer
  %56 = fmul <2 x double> %53, %55
  %57 = shufflevector <2 x double> %.lcssa, <2 x double> poison, <2 x i32> <i32 1, i32 1>
  %58 = insertelement <2 x double> poison, double %.153, i64 0
  %59 = insertelement <2 x double> %58, double %16, i64 1
  %60 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %57, <2 x double> %59, <2 x double> %56)
  %61 = extractelement <2 x double> %60, i64 0
  %62 = extractelement <2 x double> %60, i64 1
  %63 = fdiv double %61, %62
  store double %63, ptr %3, align 8, !tbaa !5
  %64 = fneg double %.lcssa77
  %65 = fmul double %.lcssa78, %64
  %66 = extractelement <2 x double> %.lcssa, i64 0
  %67 = tail call double @llvm.fmuladd.f64(double %16, double %66, double %65)
  %68 = fdiv double %67, %62
  store double %68, ptr %4, align 8, !tbaa !5
  br label %88

.lr.ph:                                           ; preds = %.lr.ph, %.lr.ph.preheader
  %indvars.iv66 = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next67.1, %.lr.ph ]
  %69 = phi <2 x double> [ zeroinitializer, %.lr.ph.preheader ], [ %87, %.lr.ph ]
  %niter86 = phi i64 [ 0, %.lr.ph.preheader ], [ %niter86.next.1, %.lr.ph ]
  %70 = getelementptr inbounds double, ptr %.0, i64 %indvars.iv66
  %71 = load double, ptr %70, align 8, !tbaa !5
  %72 = getelementptr inbounds double, ptr %.047, i64 %indvars.iv66
  %73 = load double, ptr %72, align 8, !tbaa !5
  %74 = insertelement <2 x double> poison, double %71, i64 0
  %75 = shufflevector <2 x double> %74, <2 x double> poison, <2 x i32> zeroinitializer
  %76 = insertelement <2 x double> poison, double %73, i64 0
  %77 = insertelement <2 x double> %76, double %71, i64 1
  %78 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %75, <2 x double> %77, <2 x double> %69)
  %indvars.iv.next67 = or disjoint i64 %indvars.iv66, 1
  %79 = getelementptr inbounds double, ptr %.0, i64 %indvars.iv.next67
  %80 = load double, ptr %79, align 8, !tbaa !5
  %81 = getelementptr inbounds double, ptr %.047, i64 %indvars.iv.next67
  %82 = load double, ptr %81, align 8, !tbaa !5
  %83 = insertelement <2 x double> poison, double %80, i64 0
  %84 = shufflevector <2 x double> %83, <2 x double> poison, <2 x i32> zeroinitializer
  %85 = insertelement <2 x double> poison, double %82, i64 0
  %86 = insertelement <2 x double> %85, double %80, i64 1
  %87 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %84, <2 x double> %86, <2 x double> %78)
  %indvars.iv.next67.1 = add nuw nsw i64 %indvars.iv66, 2
  %niter86.next.1 = add i64 %niter86, 2
  %niter86.ncmp.1 = icmp eq i64 %niter86.next.1, %unroll_iter85
  br i1 %niter86.ncmp.1, label %._crit_edge.unr-lcssa, label %.lr.ph, !llvm.loop !13

88:                                               ; preds = %6, %._crit_edge
  ret void
}

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #1 = { mustprogress nofree norecurse nosync nounwind memory(read, argmem: readwrite, inaccessiblemem: none) 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 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++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.unroll.disable"}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SCCPPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass