; LLVM IR from CLASS-SZ/class_sz :: class-sz/tools (r8lib)

; 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 willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.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: nounwind
declare double @sqrt(double noundef) #2

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

; Function Attrs: nounwind
declare double @pow(double noundef, double noundef) #2

; Function Attrs: nounwind uwtable
define dso_local double @r8vec_norm_lp(i32 noundef %0, ptr noundef %1, double noundef %2) #3 {
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca double, align 8
  %7 = alloca i32, align 4
  %8 = alloca double, align 8
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  store double %2, ptr %6, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  store double 0.000000e+00, ptr %8, align 8, !tbaa !11
  %9 = load double, ptr %6, align 8, !tbaa !11
  %10 = fcmp oeq double %9, 1.000000e+00
  br i1 %10, label %11, label %29

11:                                               ; preds = %3
  store i32 0, ptr %7, align 4, !tbaa !5
  br label %12

12:                                               ; preds = %25, %11
  %13 = load i32, ptr %7, align 4, !tbaa !5
  %14 = load i32, ptr %4, align 4, !tbaa !5
  %15 = icmp slt i32 %13, %14
  br i1 %15, label %16, label %28

16:                                               ; preds = %12
  %17 = load double, ptr %8, align 8, !tbaa !11
  %18 = load ptr, ptr %5, align 8, !tbaa !9
  %19 = load i32, ptr %7, align 4, !tbaa !5
  %20 = sext i32 %19 to i64
  %21 = getelementptr inbounds double, ptr %18, i64 %20
  %22 = load double, ptr %21, align 8, !tbaa !11
  %23 = call double @llvm.fabs.f64(double %22)
  %24 = fadd double %17, %23
  store double %24, ptr %8, align 8, !tbaa !11
  br label %25

25:                                               ; preds = %16
  %26 = load i32, ptr %7, align 4, !tbaa !5
  %27 = add nsw i32 %26, 1
  store i32 %27, ptr %7, align 4, !tbaa !5
  br label %12, !llvm.loop !13

28:                                               ; preds = %12
  br label %81

29:                                               ; preds = %3
  %30 = load double, ptr %6, align 8, !tbaa !11
  %31 = fcmp oeq double %30, 2.000000e+00
  br i1 %31, label %32, label %56

32:                                               ; preds = %29
  store i32 0, ptr %7, align 4, !tbaa !5
  br label %33

33:                                               ; preds = %50, %32
  %34 = load i32, ptr %7, align 4, !tbaa !5
  %35 = load i32, ptr %4, align 4, !tbaa !5
  %36 = icmp slt i32 %34, %35
  br i1 %36, label %37, label %53

37:                                               ; preds = %33
  %38 = load double, ptr %8, align 8, !tbaa !11
  %39 = load ptr, ptr %5, align 8, !tbaa !9
  %40 = load i32, ptr %7, align 4, !tbaa !5
  %41 = sext i32 %40 to i64
  %42 = getelementptr inbounds double, ptr %39, i64 %41
  %43 = load double, ptr %42, align 8, !tbaa !11
  %44 = load ptr, ptr %5, align 8, !tbaa !9
  %45 = load i32, ptr %7, align 4, !tbaa !5
  %46 = sext i32 %45 to i64
  %47 = getelementptr inbounds double, ptr %44, i64 %46
  %48 = load double, ptr %47, align 8, !tbaa !11
  %49 = call double @llvm.fmuladd.f64(double %43, double %48, double %38)
  store double %49, ptr %8, align 8, !tbaa !11
  br label %50

50:                                               ; preds = %37
  %51 = load i32, ptr %7, align 4, !tbaa !5
  %52 = add nsw i32 %51, 1
  store i32 %52, ptr %7, align 4, !tbaa !5
  br label %33, !llvm.loop !15

53:                                               ; preds = %33
  %54 = load double, ptr %8, align 8, !tbaa !11
  %55 = call double @sqrt(double noundef %54) #4
  store double %55, ptr %8, align 8, !tbaa !11
  br label %80

56:                                               ; preds = %29
  store i32 0, ptr %7, align 4, !tbaa !5
  br label %57

57:                                               ; preds = %72, %56
  %58 = load i32, ptr %7, align 4, !tbaa !5
  %59 = load i32, ptr %4, align 4, !tbaa !5
  %60 = icmp slt i32 %58, %59
  br i1 %60, label %61, label %75

61:                                               ; preds = %57
  %62 = load double, ptr %8, align 8, !tbaa !11
  %63 = load ptr, ptr %5, align 8, !tbaa !9
  %64 = load i32, ptr %7, align 4, !tbaa !5
  %65 = sext i32 %64 to i64
  %66 = getelementptr inbounds double, ptr %63, i64 %65
  %67 = load double, ptr %66, align 8, !tbaa !11
  %68 = call double @llvm.fabs.f64(double %67)
  %69 = load double, ptr %6, align 8, !tbaa !11
  %70 = call double @pow(double noundef %68, double noundef %69) #4
  %71 = fadd double %62, %70
  store double %71, ptr %8, align 8, !tbaa !11
  br label %72

72:                                               ; preds = %61
  %73 = load i32, ptr %7, align 4, !tbaa !5
  %74 = add nsw i32 %73, 1
  store i32 %74, ptr %7, align 4, !tbaa !5
  br label %57, !llvm.loop !16

75:                                               ; preds = %57
  %76 = load double, ptr %8, align 8, !tbaa !11
  %77 = load double, ptr %6, align 8, !tbaa !11
  %78 = fdiv double 1.000000e+00, %77
  %79 = call double @pow(double noundef %76, double noundef %78) #4
  store double %79, ptr %8, align 8, !tbaa !11
  br label %80

80:                                               ; preds = %75, %53
  br label %81

81:                                               ; preds = %80, %28
  %82 = load double, ptr %8, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  ret double %82
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { 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 #3 = { 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 #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 = !{!"int", !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 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !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 nounwind willreturn memory(write)
declare double @sqrt(double noundef) local_unnamed_addr #1

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @pow(double noundef, double noundef) local_unnamed_addr #1

; Function Attrs: nofree nounwind memory(write, argmem: readwrite) uwtable
define dso_local double @r8vec_norm_lp(i32 noundef %0, ptr nocapture noundef readonly %1, double noundef %2) local_unnamed_addr #2 {
  %4 = fcmp oeq double %2, 1.000000e+00
  br i1 %4, label %.preheader, label %23

.preheader:                                       ; preds = %3
  %5 = icmp sgt i32 %0, 0
  br i1 %5, label %.lr.ph41.preheader, label %.loopexit

.lr.ph41.preheader:                               ; preds = %.preheader
  %wide.trip.count54 = zext nneg i32 %0 to i64
  %xtraiter69 = and i64 %wide.trip.count54, 3
  %6 = icmp ult i32 %0, 4
  br i1 %6, label %.loopexit.loopexit.unr-lcssa, label %.lr.ph41.preheader.new

.lr.ph41.preheader.new:                           ; preds = %.lr.ph41.preheader
  %unroll_iter73 = and i64 %wide.trip.count54, 2147483644
  br label %.lr.ph41

.lr.ph41:                                         ; preds = %.lr.ph41, %.lr.ph41.preheader.new
  %indvars.iv51 = phi i64 [ 0, %.lr.ph41.preheader.new ], [ %indvars.iv.next52.3, %.lr.ph41 ]
  %.040 = phi double [ 0.000000e+00, %.lr.ph41.preheader.new ], [ %22, %.lr.ph41 ]
  %niter74 = phi i64 [ 0, %.lr.ph41.preheader.new ], [ %niter74.next.3, %.lr.ph41 ]
  %7 = getelementptr inbounds double, ptr %1, i64 %indvars.iv51
  %8 = load double, ptr %7, align 8, !tbaa !5
  %9 = tail call double @llvm.fabs.f64(double %8)
  %10 = fadd double %.040, %9
  %indvars.iv.next52 = or disjoint i64 %indvars.iv51, 1
  %11 = getelementptr inbounds double, ptr %1, i64 %indvars.iv.next52
  %12 = load double, ptr %11, align 8, !tbaa !5
  %13 = tail call double @llvm.fabs.f64(double %12)
  %14 = fadd double %10, %13
  %indvars.iv.next52.1 = or disjoint i64 %indvars.iv51, 2
  %15 = getelementptr inbounds double, ptr %1, i64 %indvars.iv.next52.1
  %16 = load double, ptr %15, align 8, !tbaa !5
  %17 = tail call double @llvm.fabs.f64(double %16)
  %18 = fadd double %14, %17
  %indvars.iv.next52.2 = or disjoint i64 %indvars.iv51, 3
  %19 = getelementptr inbounds double, ptr %1, i64 %indvars.iv.next52.2
  %20 = load double, ptr %19, align 8, !tbaa !5
  %21 = tail call double @llvm.fabs.f64(double %20)
  %22 = fadd double %18, %21
  %indvars.iv.next52.3 = add nuw nsw i64 %indvars.iv51, 4
  %niter74.next.3 = add i64 %niter74, 4
  %niter74.ncmp.3 = icmp eq i64 %niter74.next.3, %unroll_iter73
  br i1 %niter74.ncmp.3, label %.loopexit.loopexit.unr-lcssa, label %.lr.ph41, !llvm.loop !9

23:                                               ; preds = %3
  %24 = fcmp oeq double %2, 2.000000e+00
  %25 = icmp sgt i32 %0, 0
  br i1 %24, label %.preheader30, label %.preheader31

.preheader31:                                     ; preds = %23
  br i1 %25, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %.preheader31
  %wide.trip.count = zext nneg i32 %0 to i64
  %xtraiter = and i64 %wide.trip.count, 3
  %26 = icmp ult i32 %0, 4
  br i1 %26, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph.preheader.new

.lr.ph.preheader.new:                             ; preds = %.lr.ph.preheader
  %unroll_iter = and i64 %wide.trip.count, 2147483644
  br label %.lr.ph

.preheader30:                                     ; preds = %23
  br i1 %25, label %.lr.ph36.preheader, label %._crit_edge37

.lr.ph36.preheader:                               ; preds = %.preheader30
  %wide.trip.count49 = zext nneg i32 %0 to i64
  %xtraiter63 = and i64 %wide.trip.count49, 3
  %27 = icmp ult i32 %0, 4
  br i1 %27, label %._crit_edge37.loopexit.unr-lcssa, label %.lr.ph36.preheader.new

.lr.ph36.preheader.new:                           ; preds = %.lr.ph36.preheader
  %unroll_iter67 = and i64 %wide.trip.count49, 2147483644
  br label %.lr.ph36

.lr.ph36:                                         ; preds = %.lr.ph36, %.lr.ph36.preheader.new
  %indvars.iv46 = phi i64 [ 0, %.lr.ph36.preheader.new ], [ %indvars.iv.next47.3, %.lr.ph36 ]
  %.135 = phi double [ 0.000000e+00, %.lr.ph36.preheader.new ], [ %39, %.lr.ph36 ]
  %niter68 = phi i64 [ 0, %.lr.ph36.preheader.new ], [ %niter68.next.3, %.lr.ph36 ]
  %28 = getelementptr inbounds double, ptr %1, i64 %indvars.iv46
  %29 = load double, ptr %28, align 8, !tbaa !5
  %30 = tail call double @llvm.fmuladd.f64(double %29, double %29, double %.135)
  %indvars.iv.next47 = or disjoint i64 %indvars.iv46, 1
  %31 = getelementptr inbounds double, ptr %1, i64 %indvars.iv.next47
  %32 = load double, ptr %31, align 8, !tbaa !5
  %33 = tail call double @llvm.fmuladd.f64(double %32, double %32, double %30)
  %indvars.iv.next47.1 = or disjoint i64 %indvars.iv46, 2
  %34 = getelementptr inbounds double, ptr %1, i64 %indvars.iv.next47.1
  %35 = load double, ptr %34, align 8, !tbaa !5
  %36 = tail call double @llvm.fmuladd.f64(double %35, double %35, double %33)
  %indvars.iv.next47.2 = or disjoint i64 %indvars.iv46, 3
  %37 = getelementptr inbounds double, ptr %1, i64 %indvars.iv.next47.2
  %38 = load double, ptr %37, align 8, !tbaa !5
  %39 = tail call double @llvm.fmuladd.f64(double %38, double %38, double %36)
  %indvars.iv.next47.3 = add nuw nsw i64 %indvars.iv46, 4
  %niter68.next.3 = add i64 %niter68, 4
  %niter68.ncmp.3 = icmp eq i64 %niter68.next.3, %unroll_iter67
  br i1 %niter68.ncmp.3, label %._crit_edge37.loopexit.unr-lcssa, label %.lr.ph36, !llvm.loop !11

._crit_edge37.loopexit.unr-lcssa:                 ; preds = %.lr.ph36, %.lr.ph36.preheader
  %.lcssa60.ph = phi double [ poison, %.lr.ph36.preheader ], [ %39, %.lr.ph36 ]
  %indvars.iv46.unr = phi i64 [ 0, %.lr.ph36.preheader ], [ %indvars.iv.next47.3, %.lr.ph36 ]
  %.135.unr = phi double [ 0.000000e+00, %.lr.ph36.preheader ], [ %39, %.lr.ph36 ]
  %lcmp.mod65.not = icmp eq i64 %xtraiter63, 0
  br i1 %lcmp.mod65.not, label %._crit_edge37, label %.lr.ph36.epil

.lr.ph36.epil:                                    ; preds = %._crit_edge37.loopexit.unr-lcssa, %.lr.ph36.epil
  %indvars.iv46.epil = phi i64 [ %indvars.iv.next47.epil, %.lr.ph36.epil ], [ %indvars.iv46.unr, %._crit_edge37.loopexit.unr-lcssa ]
  %.135.epil = phi double [ %42, %.lr.ph36.epil ], [ %.135.unr, %._crit_edge37.loopexit.unr-lcssa ]
  %epil.iter64 = phi i64 [ %epil.iter64.next, %.lr.ph36.epil ], [ 0, %._crit_edge37.loopexit.unr-lcssa ]
  %40 = getelementptr inbounds double, ptr %1, i64 %indvars.iv46.epil
  %41 = load double, ptr %40, align 8, !tbaa !5
  %42 = tail call double @llvm.fmuladd.f64(double %41, double %41, double %.135.epil)
  %indvars.iv.next47.epil = add nuw nsw i64 %indvars.iv46.epil, 1
  %epil.iter64.next = add i64 %epil.iter64, 1
  %epil.iter64.cmp.not = icmp eq i64 %epil.iter64.next, %xtraiter63
  br i1 %epil.iter64.cmp.not, label %._crit_edge37, label %.lr.ph36.epil, !llvm.loop !12

._crit_edge37:                                    ; preds = %._crit_edge37.loopexit.unr-lcssa, %.lr.ph36.epil, %.preheader30
  %.1.lcssa = phi double [ 0.000000e+00, %.preheader30 ], [ %.lcssa60.ph, %._crit_edge37.loopexit.unr-lcssa ], [ %42, %.lr.ph36.epil ]
  %43 = tail call double @sqrt(double noundef %.1.lcssa) #3
  br label %.loopexit

.lr.ph:                                           ; preds = %.lr.ph, %.lr.ph.preheader.new
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader.new ], [ %indvars.iv.next.3, %.lr.ph ]
  %.233 = phi double [ 0.000000e+00, %.lr.ph.preheader.new ], [ %63, %.lr.ph ]
  %niter = phi i64 [ 0, %.lr.ph.preheader.new ], [ %niter.next.3, %.lr.ph ]
  %44 = getelementptr inbounds double, ptr %1, i64 %indvars.iv
  %45 = load double, ptr %44, align 8, !tbaa !5
  %46 = tail call double @llvm.fabs.f64(double %45)
  %47 = tail call double @pow(double noundef %46, double noundef %2) #3
  %48 = fadd double %.233, %47
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %49 = getelementptr inbounds double, ptr %1, i64 %indvars.iv.next
  %50 = load double, ptr %49, align 8, !tbaa !5
  %51 = tail call double @llvm.fabs.f64(double %50)
  %52 = tail call double @pow(double noundef %51, double noundef %2) #3
  %53 = fadd double %48, %52
  %indvars.iv.next.1 = or disjoint i64 %indvars.iv, 2
  %54 = getelementptr inbounds double, ptr %1, i64 %indvars.iv.next.1
  %55 = load double, ptr %54, align 8, !tbaa !5
  %56 = tail call double @llvm.fabs.f64(double %55)
  %57 = tail call double @pow(double noundef %56, double noundef %2) #3
  %58 = fadd double %53, %57
  %indvars.iv.next.2 = or disjoint i64 %indvars.iv, 3
  %59 = getelementptr inbounds double, ptr %1, i64 %indvars.iv.next.2
  %60 = load double, ptr %59, align 8, !tbaa !5
  %61 = tail call double @llvm.fabs.f64(double %60)
  %62 = tail call double @pow(double noundef %61, double noundef %2) #3
  %63 = fadd double %58, %62
  %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 %._crit_edge.loopexit.unr-lcssa, label %.lr.ph, !llvm.loop !14

._crit_edge.loopexit.unr-lcssa:                   ; preds = %.lr.ph, %.lr.ph.preheader
  %.lcssa61.ph = phi double [ poison, %.lr.ph.preheader ], [ %63, %.lr.ph ]
  %indvars.iv.unr = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next.3, %.lr.ph ]
  %.233.unr = phi double [ 0.000000e+00, %.lr.ph.preheader ], [ %63, %.lr.ph ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge, label %.lr.ph.epil

.lr.ph.epil:                                      ; preds = %._crit_edge.loopexit.unr-lcssa, %.lr.ph.epil
  %indvars.iv.epil = phi i64 [ %indvars.iv.next.epil, %.lr.ph.epil ], [ %indvars.iv.unr, %._crit_edge.loopexit.unr-lcssa ]
  %.233.epil = phi double [ %68, %.lr.ph.epil ], [ %.233.unr, %._crit_edge.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.lr.ph.epil ], [ 0, %._crit_edge.loopexit.unr-lcssa ]
  %64 = getelementptr inbounds double, ptr %1, i64 %indvars.iv.epil
  %65 = load double, ptr %64, align 8, !tbaa !5
  %66 = tail call double @llvm.fabs.f64(double %65)
  %67 = tail call double @pow(double noundef %66, double noundef %2) #3
  %68 = fadd double %.233.epil, %67
  %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 %._crit_edge, label %.lr.ph.epil, !llvm.loop !15

._crit_edge:                                      ; preds = %._crit_edge.loopexit.unr-lcssa, %.lr.ph.epil, %.preheader31
  %.2.lcssa = phi double [ 0.000000e+00, %.preheader31 ], [ %.lcssa61.ph, %._crit_edge.loopexit.unr-lcssa ], [ %68, %.lr.ph.epil ]
  %69 = fdiv double 1.000000e+00, %2
  %70 = tail call double @pow(double noundef %.2.lcssa, double noundef %69) #3
  br label %.loopexit

.loopexit.loopexit.unr-lcssa:                     ; preds = %.lr.ph41, %.lr.ph41.preheader
  %.lcssa.ph = phi double [ poison, %.lr.ph41.preheader ], [ %22, %.lr.ph41 ]
  %indvars.iv51.unr = phi i64 [ 0, %.lr.ph41.preheader ], [ %indvars.iv.next52.3, %.lr.ph41 ]
  %.040.unr = phi double [ 0.000000e+00, %.lr.ph41.preheader ], [ %22, %.lr.ph41 ]
  %lcmp.mod71.not = icmp eq i64 %xtraiter69, 0
  br i1 %lcmp.mod71.not, label %.loopexit, label %.lr.ph41.epil

.lr.ph41.epil:                                    ; preds = %.loopexit.loopexit.unr-lcssa, %.lr.ph41.epil
  %indvars.iv51.epil = phi i64 [ %indvars.iv.next52.epil, %.lr.ph41.epil ], [ %indvars.iv51.unr, %.loopexit.loopexit.unr-lcssa ]
  %.040.epil = phi double [ %74, %.lr.ph41.epil ], [ %.040.unr, %.loopexit.loopexit.unr-lcssa ]
  %epil.iter70 = phi i64 [ %epil.iter70.next, %.lr.ph41.epil ], [ 0, %.loopexit.loopexit.unr-lcssa ]
  %71 = getelementptr inbounds double, ptr %1, i64 %indvars.iv51.epil
  %72 = load double, ptr %71, align 8, !tbaa !5
  %73 = tail call double @llvm.fabs.f64(double %72)
  %74 = fadd double %.040.epil, %73
  %indvars.iv.next52.epil = add nuw nsw i64 %indvars.iv51.epil, 1
  %epil.iter70.next = add i64 %epil.iter70, 1
  %epil.iter70.cmp.not = icmp eq i64 %epil.iter70.next, %xtraiter69
  br i1 %epil.iter70.cmp.not, label %.loopexit, label %.lr.ph41.epil, !llvm.loop !16

.loopexit:                                        ; preds = %.loopexit.loopexit.unr-lcssa, %.lr.ph41.epil, %.preheader, %._crit_edge37, %._crit_edge
  %.3 = phi double [ %43, %._crit_edge37 ], [ %70, %._crit_edge ], [ 0.000000e+00, %.preheader ], [ %.lcssa.ph, %.loopexit.loopexit.unr-lcssa ], [ %74, %.lr.ph41.epil ]
  ret double %.3
}

attributes #0 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #1 = { 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 #2 = { nofree nounwind memory(write, argmem: readwrite) 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 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.unroll.disable"}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !13}
!16 = distinct !{!16, !13}


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