; LLVM IR from softmin/ReHLine-SVM :: liblinear/linear.ll (ZN10l2r_lr_fun4gradEPdS0_)

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

%class.l2r_erm_fun = type <{ %class.function, ptr, ptr, ptr, ptr, double, i32, [4 x i8] }>
%class.function = type { ptr }
%struct.problem = type { i32, i32, ptr, ptr, double }
%class.l2r_lr_fun = type { %class.l2r_erm_fun.base, ptr }
%class.l2r_erm_fun.base = type <{ %class.function, ptr, ptr, ptr, ptr, double, i32 }>

; 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: mustprogress uwtable
declare dso_local void @_ZN11l2r_erm_fun3XTvEPdS0_(ptr noundef nonnull align 8 dereferenceable(52), ptr noundef, ptr noundef) #1 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN10l2r_lr_fun4gradEPdS0_(ptr noundef nonnull align 8 dereferenceable(64) %0, ptr noundef %1, ptr noundef %2) unnamed_addr #1 align 2 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  %11 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #3
  %12 = getelementptr inbounds %class.l2r_erm_fun, ptr %11, i32 0, i32 2
  %13 = load ptr, ptr %12, align 8, !tbaa !9
  %14 = getelementptr inbounds %struct.problem, ptr %13, i32 0, i32 2
  %15 = load ptr, ptr %14, align 8, !tbaa !14
  store ptr %15, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #3
  %16 = getelementptr inbounds %class.l2r_erm_fun, ptr %11, i32 0, i32 2
  %17 = load ptr, ptr %16, align 8, !tbaa !9
  %18 = getelementptr inbounds %struct.problem, ptr %17, i32 0, i32 0
  %19 = load i32, ptr %18, align 8, !tbaa !16
  store i32 %19, ptr %9, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #3
  %20 = load ptr, ptr %11, align 8, !tbaa !18
  %21 = getelementptr inbounds ptr, ptr %20, i64 3
  %22 = load ptr, ptr %21, align 8
  %23 = call noundef i32 %22(ptr noundef nonnull align 8 dereferenceable(52) %11)
  store i32 %23, ptr %10, align 4, !tbaa !17
  store i32 0, ptr %7, align 4, !tbaa !17
  br label %24

24:                                               ; preds = %94, %3
  %25 = load i32, ptr %7, align 4, !tbaa !17
  %26 = load i32, ptr %9, align 4, !tbaa !17
  %27 = icmp slt i32 %25, %26
  br i1 %27, label %28, label %97

28:                                               ; preds = %24
  %29 = load ptr, ptr %8, align 8, !tbaa !5
  %30 = load i32, ptr %7, align 4, !tbaa !17
  %31 = sext i32 %30 to i64
  %32 = getelementptr inbounds double, ptr %29, i64 %31
  %33 = load double, ptr %32, align 8, !tbaa !20
  %34 = fneg double %33
  %35 = getelementptr inbounds %class.l2r_erm_fun, ptr %11, i32 0, i32 3
  %36 = load ptr, ptr %35, align 8, !tbaa !21
  %37 = load i32, ptr %7, align 4, !tbaa !17
  %38 = sext i32 %37 to i64
  %39 = getelementptr inbounds double, ptr %36, i64 %38
  %40 = load double, ptr %39, align 8, !tbaa !20
  %41 = fmul double %34, %40
  %42 = call double @exp(double noundef %41) #3
  %43 = fadd double 1.000000e+00, %42
  %44 = fdiv double 1.000000e+00, %43
  %45 = getelementptr inbounds %class.l2r_erm_fun, ptr %11, i32 0, i32 4
  %46 = load ptr, ptr %45, align 8, !tbaa !22
  %47 = load i32, ptr %7, align 4, !tbaa !17
  %48 = sext i32 %47 to i64
  %49 = getelementptr inbounds double, ptr %46, i64 %48
  store double %44, ptr %49, align 8, !tbaa !20
  %50 = getelementptr inbounds %class.l2r_erm_fun, ptr %11, i32 0, i32 4
  %51 = load ptr, ptr %50, align 8, !tbaa !22
  %52 = load i32, ptr %7, align 4, !tbaa !17
  %53 = sext i32 %52 to i64
  %54 = getelementptr inbounds double, ptr %51, i64 %53
  %55 = load double, ptr %54, align 8, !tbaa !20
  %56 = getelementptr inbounds %class.l2r_erm_fun, ptr %11, i32 0, i32 4
  %57 = load ptr, ptr %56, align 8, !tbaa !22
  %58 = load i32, ptr %7, align 4, !tbaa !17
  %59 = sext i32 %58 to i64
  %60 = getelementptr inbounds double, ptr %57, i64 %59
  %61 = load double, ptr %60, align 8, !tbaa !20
  %62 = fsub double 1.000000e+00, %61
  %63 = fmul double %55, %62
  %64 = getelementptr inbounds %class.l2r_lr_fun, ptr %11, i32 0, i32 1
  %65 = load ptr, ptr %64, align 8, !tbaa !23
  %66 = load i32, ptr %7, align 4, !tbaa !17
  %67 = sext i32 %66 to i64
  %68 = getelementptr inbounds double, ptr %65, i64 %67
  store double %63, ptr %68, align 8, !tbaa !20
  %69 = getelementptr inbounds %class.l2r_erm_fun, ptr %11, i32 0, i32 1
  %70 = load ptr, ptr %69, align 8, !tbaa !25
  %71 = load i32, ptr %7, align 4, !tbaa !17
  %72 = sext i32 %71 to i64
  %73 = getelementptr inbounds double, ptr %70, i64 %72
  %74 = load double, ptr %73, align 8, !tbaa !20
  %75 = getelementptr inbounds %class.l2r_erm_fun, ptr %11, i32 0, i32 4
  %76 = load ptr, ptr %75, align 8, !tbaa !22
  %77 = load i32, ptr %7, align 4, !tbaa !17
  %78 = sext i32 %77 to i64
  %79 = getelementptr inbounds double, ptr %76, i64 %78
  %80 = load double, ptr %79, align 8, !tbaa !20
  %81 = fsub double %80, 1.000000e+00
  %82 = fmul double %74, %81
  %83 = load ptr, ptr %8, align 8, !tbaa !5
  %84 = load i32, ptr %7, align 4, !tbaa !17
  %85 = sext i32 %84 to i64
  %86 = getelementptr inbounds double, ptr %83, i64 %85
  %87 = load double, ptr %86, align 8, !tbaa !20
  %88 = fmul double %82, %87
  %89 = getelementptr inbounds %class.l2r_erm_fun, ptr %11, i32 0, i32 4
  %90 = load ptr, ptr %89, align 8, !tbaa !22
  %91 = load i32, ptr %7, align 4, !tbaa !17
  %92 = sext i32 %91 to i64
  %93 = getelementptr inbounds double, ptr %90, i64 %92
  store double %88, ptr %93, align 8, !tbaa !20
  br label %94

94:                                               ; preds = %28
  %95 = load i32, ptr %7, align 4, !tbaa !17
  %96 = add nsw i32 %95, 1
  store i32 %96, ptr %7, align 4, !tbaa !17
  br label %24, !llvm.loop !26

97:                                               ; preds = %24
  %98 = getelementptr inbounds %class.l2r_erm_fun, ptr %11, i32 0, i32 4
  %99 = load ptr, ptr %98, align 8, !tbaa !22
  %100 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11l2r_erm_fun3XTvEPdS0_(ptr noundef nonnull align 8 dereferenceable(52) %11, ptr noundef %99, ptr noundef %100)
  store i32 0, ptr %7, align 4, !tbaa !17
  br label %101

101:                                              ; preds = %121, %97
  %102 = load i32, ptr %7, align 4, !tbaa !17
  %103 = load i32, ptr %10, align 4, !tbaa !17
  %104 = icmp slt i32 %102, %103
  br i1 %104, label %105, label %124

105:                                              ; preds = %101
  %106 = load ptr, ptr %5, align 8, !tbaa !5
  %107 = load i32, ptr %7, align 4, !tbaa !17
  %108 = sext i32 %107 to i64
  %109 = getelementptr inbounds double, ptr %106, i64 %108
  %110 = load double, ptr %109, align 8, !tbaa !20
  %111 = load ptr, ptr %6, align 8, !tbaa !5
  %112 = load i32, ptr %7, align 4, !tbaa !17
  %113 = sext i32 %112 to i64
  %114 = getelementptr inbounds double, ptr %111, i64 %113
  %115 = load double, ptr %114, align 8, !tbaa !20
  %116 = fadd double %110, %115
  %117 = load ptr, ptr %6, align 8, !tbaa !5
  %118 = load i32, ptr %7, align 4, !tbaa !17
  %119 = sext i32 %118 to i64
  %120 = getelementptr inbounds double, ptr %117, i64 %119
  store double %116, ptr %120, align 8, !tbaa !20
  br label %121

121:                                              ; preds = %105
  %122 = load i32, ptr %7, align 4, !tbaa !17
  %123 = add nsw i32 %122, 1
  store i32 %123, ptr %7, align 4, !tbaa !17
  br label %101, !llvm.loop !28

124:                                              ; preds = %101
  %125 = getelementptr inbounds %class.l2r_erm_fun, ptr %11, i32 0, i32 6
  %126 = load i32, ptr %125, align 8, !tbaa !29
  %127 = icmp eq i32 %126, 0
  br i1 %127, label %128, label %142

128:                                              ; preds = %124
  %129 = load ptr, ptr %5, align 8, !tbaa !5
  %130 = load i32, ptr %10, align 4, !tbaa !17
  %131 = sub nsw i32 %130, 1
  %132 = sext i32 %131 to i64
  %133 = getelementptr inbounds double, ptr %129, i64 %132
  %134 = load double, ptr %133, align 8, !tbaa !20
  %135 = load ptr, ptr %6, align 8, !tbaa !5
  %136 = load i32, ptr %10, align 4, !tbaa !17
  %137 = sub nsw i32 %136, 1
  %138 = sext i32 %137 to i64
  %139 = getelementptr inbounds double, ptr %135, i64 %138
  %140 = load double, ptr %139, align 8, !tbaa !20
  %141 = fsub double %140, %134
  store double %141, ptr %139, align 8, !tbaa !20
  br label %142

142:                                              ; preds = %128, %124
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #3
  ret void
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 }

!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, !6, i64 16}
!10 = !{!"_ZTS11l2r_erm_fun", !11, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !12, i64 40, !13, i64 48}
!11 = !{!"_ZTS8function"}
!12 = !{!"double", !7, i64 0}
!13 = !{!"int", !7, i64 0}
!14 = !{!15, !6, i64 8}
!15 = !{!"_ZTS7problem", !13, i64 0, !13, i64 4, !6, i64 8, !6, i64 16, !12, i64 24}
!16 = !{!15, !13, i64 0}
!17 = !{!13, !13, i64 0}
!18 = !{!19, !19, i64 0}
!19 = !{!"vtable pointer", !8, i64 0}
!20 = !{!12, !12, i64 0}
!21 = !{!10, !6, i64 24}
!22 = !{!10, !6, i64 32}
!23 = !{!24, !6, i64 56}
!24 = !{!"_ZTS10l2r_lr_fun", !10, i64 0, !6, i64 56}
!25 = !{!10, !6, i64 8}
!26 = distinct !{!26, !27}
!27 = !{!"llvm.loop.mustprogress"}
!28 = distinct !{!28, !27}
!29 = !{!10, !13, i64 48}


; 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 uwtable
declare dso_local void @_ZN11l2r_erm_fun3XTvEPdS0_(ptr noundef nonnull align 8 dereferenceable(52), ptr noundef, ptr noundef) local_unnamed_addr #0 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN10l2r_lr_fun4gradEPdS0_(ptr noundef nonnull align 8 dereferenceable(64) %0, ptr nocapture noundef readonly %1, ptr noundef %2) unnamed_addr #0 align 2 {
  %4 = getelementptr inbounds i8, ptr %0, i64 16
  %5 = load ptr, ptr %4, align 8, !tbaa !5
  %6 = getelementptr inbounds i8, ptr %5, i64 8
  %7 = load ptr, ptr %6, align 8, !tbaa !13
  %8 = load i32, ptr %5, align 8, !tbaa !15
  %9 = load ptr, ptr %0, align 8, !tbaa !16
  %10 = getelementptr inbounds i8, ptr %9, i64 24
  %11 = load ptr, ptr %10, align 8
  %12 = tail call noundef i32 %11(ptr noundef nonnull align 8 dereferenceable(52) %0)
  %13 = icmp sgt i32 %8, 0
  br i1 %13, label %.lr.ph, label %.._crit_edge_crit_edge

.._crit_edge_crit_edge:                           ; preds = %3
  %.phi.trans.insert = getelementptr inbounds i8, ptr %0, i64 32
  %.pre = load ptr, ptr %.phi.trans.insert, align 8, !tbaa !18
  br label %._crit_edge

.lr.ph:                                           ; preds = %3
  %14 = getelementptr inbounds i8, ptr %0, i64 24
  %15 = getelementptr inbounds i8, ptr %0, i64 32
  %16 = getelementptr inbounds i8, ptr %0, i64 56
  %17 = getelementptr inbounds i8, ptr %0, i64 8
  %wide.trip.count = zext nneg i32 %8 to i64
  br label %18

18:                                               ; preds = %.lr.ph, %18
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %18 ]
  %19 = getelementptr inbounds double, ptr %7, i64 %indvars.iv
  %20 = load double, ptr %19, align 8, !tbaa !19
  %21 = fneg double %20
  %22 = load ptr, ptr %14, align 8, !tbaa !20
  %23 = getelementptr inbounds double, ptr %22, i64 %indvars.iv
  %24 = load double, ptr %23, align 8, !tbaa !19
  %25 = fmul double %24, %21
  %26 = tail call double @exp(double noundef %25) #2
  %27 = fadd double %26, 1.000000e+00
  %28 = fdiv double 1.000000e+00, %27
  %29 = load ptr, ptr %15, align 8, !tbaa !18
  %30 = getelementptr inbounds double, ptr %29, i64 %indvars.iv
  store double %28, ptr %30, align 8, !tbaa !19
  %31 = fsub double 1.000000e+00, %28
  %32 = fmul double %28, %31
  %33 = load ptr, ptr %16, align 8, !tbaa !21
  %34 = getelementptr inbounds double, ptr %33, i64 %indvars.iv
  store double %32, ptr %34, align 8, !tbaa !19
  %35 = load ptr, ptr %17, align 8, !tbaa !23
  %36 = getelementptr inbounds double, ptr %35, i64 %indvars.iv
  %37 = load double, ptr %36, align 8, !tbaa !19
  %38 = load double, ptr %30, align 8, !tbaa !19
  %39 = fadd double %38, -1.000000e+00
  %40 = fmul double %37, %39
  %41 = load double, ptr %19, align 8, !tbaa !19
  %42 = fmul double %41, %40
  store double %42, ptr %30, align 8, !tbaa !19
  %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 %18, !llvm.loop !24

._crit_edge:                                      ; preds = %18, %.._crit_edge_crit_edge
  %43 = phi ptr [ %.pre, %.._crit_edge_crit_edge ], [ %29, %18 ]
  tail call void @_ZN11l2r_erm_fun3XTvEPdS0_(ptr noundef nonnull align 8 dereferenceable(52) %0, ptr noundef %43, ptr noundef %2)
  %44 = icmp sgt i32 %12, 0
  br i1 %44, label %.lr.ph33.preheader, label %._crit_edge34

.lr.ph33.preheader:                               ; preds = %._crit_edge
  %wide.trip.count39 = zext nneg i32 %12 to i64
  %min.iters.check = icmp ult i32 %12, 6
  br i1 %min.iters.check, label %.lr.ph33.preheader45, label %vector.memcheck

vector.memcheck:                                  ; preds = %.lr.ph33.preheader
  %45 = shl nuw nsw i64 %wide.trip.count39, 3
  %scevgep = getelementptr i8, ptr %2, i64 %45
  %scevgep41 = getelementptr i8, ptr %1, i64 %45
  %bound0 = icmp ugt ptr %scevgep41, %2
  %bound1 = icmp ugt ptr %scevgep, %1
  %found.conflict = and i1 %bound0, %bound1
  br i1 %found.conflict, label %.lr.ph33.preheader45, label %vector.ph

vector.ph:                                        ; preds = %vector.memcheck
  %n.vec = and i64 %wide.trip.count39, 2147483644
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %46 = getelementptr inbounds double, ptr %1, i64 %index
  %47 = getelementptr inbounds i8, ptr %46, i64 16
  %wide.load = load <2 x double>, ptr %46, align 8, !tbaa !19, !alias.scope !26
  %wide.load42 = load <2 x double>, ptr %47, align 8, !tbaa !19, !alias.scope !26
  %48 = getelementptr inbounds double, ptr %2, i64 %index
  %49 = getelementptr inbounds i8, ptr %48, i64 16
  %wide.load43 = load <2 x double>, ptr %48, align 8, !tbaa !19, !alias.scope !29, !noalias !26
  %wide.load44 = load <2 x double>, ptr %49, align 8, !tbaa !19, !alias.scope !29, !noalias !26
  %50 = fadd <2 x double> %wide.load, %wide.load43
  %51 = fadd <2 x double> %wide.load42, %wide.load44
  store <2 x double> %50, ptr %48, align 8, !tbaa !19, !alias.scope !29, !noalias !26
  store <2 x double> %51, ptr %49, align 8, !tbaa !19, !alias.scope !29, !noalias !26
  %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 !31

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count39
  br i1 %cmp.n, label %._crit_edge34, label %.lr.ph33.preheader45

.lr.ph33.preheader45:                             ; preds = %middle.block, %vector.memcheck, %.lr.ph33.preheader
  %indvars.iv36.ph = phi i64 [ 0, %vector.memcheck ], [ 0, %.lr.ph33.preheader ], [ %n.vec, %middle.block ]
  %xtraiter = and i64 %wide.trip.count39, 3
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.lr.ph33.prol.loopexit, label %.lr.ph33.prol

.lr.ph33.prol:                                    ; preds = %.lr.ph33.preheader45, %.lr.ph33.prol
  %indvars.iv36.prol = phi i64 [ %indvars.iv.next37.prol, %.lr.ph33.prol ], [ %indvars.iv36.ph, %.lr.ph33.preheader45 ]
  %prol.iter = phi i64 [ %prol.iter.next, %.lr.ph33.prol ], [ 0, %.lr.ph33.preheader45 ]
  %53 = getelementptr inbounds double, ptr %1, i64 %indvars.iv36.prol
  %54 = load double, ptr %53, align 8, !tbaa !19
  %55 = getelementptr inbounds double, ptr %2, i64 %indvars.iv36.prol
  %56 = load double, ptr %55, align 8, !tbaa !19
  %57 = fadd double %54, %56
  store double %57, ptr %55, align 8, !tbaa !19
  %indvars.iv.next37.prol = add nuw nsw i64 %indvars.iv36.prol, 1
  %prol.iter.next = add i64 %prol.iter, 1
  %prol.iter.cmp.not = icmp eq i64 %prol.iter.next, %xtraiter
  br i1 %prol.iter.cmp.not, label %.lr.ph33.prol.loopexit, label %.lr.ph33.prol, !llvm.loop !34

.lr.ph33.prol.loopexit:                           ; preds = %.lr.ph33.prol, %.lr.ph33.preheader45
  %indvars.iv36.unr = phi i64 [ %indvars.iv36.ph, %.lr.ph33.preheader45 ], [ %indvars.iv.next37.prol, %.lr.ph33.prol ]
  %58 = sub nsw i64 %indvars.iv36.ph, %wide.trip.count39
  %59 = icmp ugt i64 %58, -4
  br i1 %59, label %._crit_edge34, label %.lr.ph33

.lr.ph33:                                         ; preds = %.lr.ph33.prol.loopexit, %.lr.ph33
  %indvars.iv36 = phi i64 [ %indvars.iv.next37.3, %.lr.ph33 ], [ %indvars.iv36.unr, %.lr.ph33.prol.loopexit ]
  %60 = getelementptr inbounds double, ptr %1, i64 %indvars.iv36
  %61 = load double, ptr %60, align 8, !tbaa !19
  %62 = getelementptr inbounds double, ptr %2, i64 %indvars.iv36
  %63 = load double, ptr %62, align 8, !tbaa !19
  %64 = fadd double %61, %63
  store double %64, ptr %62, align 8, !tbaa !19
  %indvars.iv.next37 = add nuw nsw i64 %indvars.iv36, 1
  %65 = getelementptr inbounds double, ptr %1, i64 %indvars.iv.next37
  %66 = load double, ptr %65, align 8, !tbaa !19
  %67 = getelementptr inbounds double, ptr %2, i64 %indvars.iv.next37
  %68 = load double, ptr %67, align 8, !tbaa !19
  %69 = fadd double %66, %68
  store double %69, ptr %67, align 8, !tbaa !19
  %indvars.iv.next37.1 = add nuw nsw i64 %indvars.iv36, 2
  %70 = getelementptr inbounds double, ptr %1, i64 %indvars.iv.next37.1
  %71 = load double, ptr %70, align 8, !tbaa !19
  %72 = getelementptr inbounds double, ptr %2, i64 %indvars.iv.next37.1
  %73 = load double, ptr %72, align 8, !tbaa !19
  %74 = fadd double %71, %73
  store double %74, ptr %72, align 8, !tbaa !19
  %indvars.iv.next37.2 = add nuw nsw i64 %indvars.iv36, 3
  %75 = getelementptr inbounds double, ptr %1, i64 %indvars.iv.next37.2
  %76 = load double, ptr %75, align 8, !tbaa !19
  %77 = getelementptr inbounds double, ptr %2, i64 %indvars.iv.next37.2
  %78 = load double, ptr %77, align 8, !tbaa !19
  %79 = fadd double %76, %78
  store double %79, ptr %77, align 8, !tbaa !19
  %indvars.iv.next37.3 = add nuw nsw i64 %indvars.iv36, 4
  %exitcond40.not.3 = icmp eq i64 %indvars.iv.next37.3, %wide.trip.count39
  br i1 %exitcond40.not.3, label %._crit_edge34, label %.lr.ph33, !llvm.loop !36

._crit_edge34:                                    ; preds = %.lr.ph33.prol.loopexit, %.lr.ph33, %middle.block, %._crit_edge
  %80 = getelementptr inbounds i8, ptr %0, i64 48
  %81 = load i32, ptr %80, align 8, !tbaa !37
  %82 = icmp eq i32 %81, 0
  br i1 %82, label %83, label %91

83:                                               ; preds = %._crit_edge34
  %84 = add nsw i32 %12, -1
  %85 = sext i32 %84 to i64
  %86 = getelementptr inbounds double, ptr %1, i64 %85
  %87 = load double, ptr %86, align 8, !tbaa !19
  %88 = getelementptr inbounds double, ptr %2, i64 %85
  %89 = load double, ptr %88, align 8, !tbaa !19
  %90 = fsub double %89, %87
  store double %90, ptr %88, align 8, !tbaa !19
  br label %91

91:                                               ; preds = %83, %._crit_edge34
  ret void
}

attributes #0 = { 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 #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 = { 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, !8, i64 16}
!6 = !{!"_ZTS11l2r_erm_fun", !7, i64 0, !8, i64 8, !8, i64 16, !8, i64 24, !8, i64 32, !11, i64 40, !12, i64 48}
!7 = !{!"_ZTS8function"}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"double", !9, i64 0}
!12 = !{!"int", !9, i64 0}
!13 = !{!14, !8, i64 8}
!14 = !{!"_ZTS7problem", !12, i64 0, !12, i64 4, !8, i64 8, !8, i64 16, !11, i64 24}
!15 = !{!14, !12, i64 0}
!16 = !{!17, !17, i64 0}
!17 = !{!"vtable pointer", !10, i64 0}
!18 = !{!6, !8, i64 32}
!19 = !{!11, !11, i64 0}
!20 = !{!6, !8, i64 24}
!21 = !{!22, !8, i64 56}
!22 = !{!"_ZTS10l2r_lr_fun", !6, i64 0, !8, i64 56}
!23 = !{!6, !8, i64 8}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"}
!26 = !{!27}
!27 = distinct !{!27, !28}
!28 = distinct !{!28, !"LVerDomain"}
!29 = !{!30}
!30 = distinct !{!30, !28}
!31 = distinct !{!31, !25, !32, !33}
!32 = !{!"llvm.loop.isvectorized", i32 1}
!33 = !{!"llvm.loop.unroll.runtime.disable"}
!34 = distinct !{!34, !35}
!35 = !{!"llvm.loop.unroll.disable"}
!36 = distinct !{!36, !25, !32}
!37 = !{!6, !12, i64 48}


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