; LLVM IR from softmin/ReHLine-SVM :: liblinear/linear.ll (ZN14l2r_l2_svc_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_l2_svc_fun = type <{ %class.l2r_erm_fun.base, [4 x i8], ptr, i32, [4 x i8] }>
%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: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN14l2r_l2_svc_fun4gradEPdS0_(ptr noundef nonnull align 8 dereferenceable(68) %0, ptr noundef %1, ptr noundef %2) unnamed_addr #2 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
  %24 = getelementptr inbounds %class.l2r_l2_svc_fun, ptr %11, i32 0, i32 3
  store i32 0, ptr %24, align 8, !tbaa !20
  store i32 0, ptr %7, align 4, !tbaa !17
  br label %25

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

29:                                               ; preds = %25
  %30 = getelementptr inbounds %class.l2r_erm_fun, ptr %11, i32 0, i32 3
  %31 = load ptr, ptr %30, align 8, !tbaa !22
  %32 = load i32, ptr %7, align 4, !tbaa !17
  %33 = sext i32 %32 to i64
  %34 = getelementptr inbounds double, ptr %31, i64 %33
  %35 = load double, ptr %34, align 8, !tbaa !23
  %36 = load ptr, ptr %8, align 8, !tbaa !5
  %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 !23
  %41 = fmul double %35, %40
  %42 = getelementptr inbounds %class.l2r_erm_fun, ptr %11, i32 0, i32 4
  %43 = load ptr, ptr %42, align 8, !tbaa !24
  %44 = load i32, ptr %7, align 4, !tbaa !17
  %45 = sext i32 %44 to i64
  %46 = getelementptr inbounds double, ptr %43, i64 %45
  store double %41, ptr %46, align 8, !tbaa !23
  %47 = getelementptr inbounds %class.l2r_erm_fun, ptr %11, i32 0, i32 4
  %48 = load ptr, ptr %47, align 8, !tbaa !24
  %49 = load i32, ptr %7, align 4, !tbaa !17
  %50 = sext i32 %49 to i64
  %51 = getelementptr inbounds double, ptr %48, i64 %50
  %52 = load double, ptr %51, align 8, !tbaa !23
  %53 = fcmp olt double %52, 1.000000e+00
  br i1 %53, label %54, label %91

54:                                               ; preds = %29
  %55 = getelementptr inbounds %class.l2r_erm_fun, ptr %11, i32 0, i32 1
  %56 = load ptr, ptr %55, align 8, !tbaa !25
  %57 = load i32, ptr %7, align 4, !tbaa !17
  %58 = sext i32 %57 to i64
  %59 = getelementptr inbounds double, ptr %56, i64 %58
  %60 = load double, ptr %59, align 8, !tbaa !23
  %61 = load ptr, ptr %8, align 8, !tbaa !5
  %62 = load i32, ptr %7, align 4, !tbaa !17
  %63 = sext i32 %62 to i64
  %64 = getelementptr inbounds double, ptr %61, i64 %63
  %65 = load double, ptr %64, align 8, !tbaa !23
  %66 = fmul double %60, %65
  %67 = getelementptr inbounds %class.l2r_erm_fun, ptr %11, i32 0, i32 4
  %68 = load ptr, ptr %67, align 8, !tbaa !24
  %69 = load i32, ptr %7, align 4, !tbaa !17
  %70 = sext i32 %69 to i64
  %71 = getelementptr inbounds double, ptr %68, i64 %70
  %72 = load double, ptr %71, align 8, !tbaa !23
  %73 = fsub double %72, 1.000000e+00
  %74 = fmul double %66, %73
  %75 = getelementptr inbounds %class.l2r_erm_fun, ptr %11, i32 0, i32 4
  %76 = load ptr, ptr %75, align 8, !tbaa !24
  %77 = getelementptr inbounds %class.l2r_l2_svc_fun, ptr %11, i32 0, i32 3
  %78 = load i32, ptr %77, align 8, !tbaa !20
  %79 = sext i32 %78 to i64
  %80 = getelementptr inbounds double, ptr %76, i64 %79
  store double %74, ptr %80, align 8, !tbaa !23
  %81 = load i32, ptr %7, align 4, !tbaa !17
  %82 = getelementptr inbounds %class.l2r_l2_svc_fun, ptr %11, i32 0, i32 2
  %83 = load ptr, ptr %82, align 8, !tbaa !26
  %84 = getelementptr inbounds %class.l2r_l2_svc_fun, ptr %11, i32 0, i32 3
  %85 = load i32, ptr %84, align 8, !tbaa !20
  %86 = sext i32 %85 to i64
  %87 = getelementptr inbounds i32, ptr %83, i64 %86
  store i32 %81, ptr %87, align 4, !tbaa !17
  %88 = getelementptr inbounds %class.l2r_l2_svc_fun, ptr %11, i32 0, i32 3
  %89 = load i32, ptr %88, align 8, !tbaa !20
  %90 = add nsw i32 %89, 1
  store i32 %90, ptr %88, align 8, !tbaa !20
  br label %91

91:                                               ; preds = %54, %29
  br label %92

92:                                               ; preds = %91
  %93 = load i32, ptr %7, align 4, !tbaa !17
  %94 = add nsw i32 %93, 1
  store i32 %94, ptr %7, align 4, !tbaa !17
  br label %25, !llvm.loop !27

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

99:                                               ; preds = %119, %95
  %100 = load i32, ptr %7, align 4, !tbaa !17
  %101 = load i32, ptr %10, align 4, !tbaa !17
  %102 = icmp slt i32 %100, %101
  br i1 %102, label %103, label %122

103:                                              ; preds = %99
  %104 = load ptr, ptr %5, align 8, !tbaa !5
  %105 = load i32, ptr %7, align 4, !tbaa !17
  %106 = sext i32 %105 to i64
  %107 = getelementptr inbounds double, ptr %104, i64 %106
  %108 = load double, ptr %107, align 8, !tbaa !23
  %109 = load ptr, ptr %6, align 8, !tbaa !5
  %110 = load i32, ptr %7, align 4, !tbaa !17
  %111 = sext i32 %110 to i64
  %112 = getelementptr inbounds double, ptr %109, i64 %111
  %113 = load double, ptr %112, align 8, !tbaa !23
  %114 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %113, double %108)
  %115 = load ptr, ptr %6, align 8, !tbaa !5
  %116 = load i32, ptr %7, align 4, !tbaa !17
  %117 = sext i32 %116 to i64
  %118 = getelementptr inbounds double, ptr %115, i64 %117
  store double %114, ptr %118, align 8, !tbaa !23
  br label %119

119:                                              ; preds = %103
  %120 = load i32, ptr %7, align 4, !tbaa !17
  %121 = add nsw i32 %120, 1
  store i32 %121, ptr %7, align 4, !tbaa !17
  br label %99, !llvm.loop !29

122:                                              ; preds = %99
  %123 = getelementptr inbounds %class.l2r_erm_fun, ptr %11, i32 0, i32 6
  %124 = load i32, ptr %123, align 8, !tbaa !30
  %125 = icmp eq i32 %124, 0
  br i1 %125, label %126, label %140

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

140:                                              ; preds = %126, %122
  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
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN14l2r_l2_svc_fun6subXTvEPdS0_(ptr noundef nonnull align 8 dereferenceable(68), ptr noundef, ptr noundef) #2 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { 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 #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 = !{!21, !13, i64 64}
!21 = !{!"_ZTS14l2r_l2_svc_fun", !10, i64 0, !6, i64 56, !13, i64 64}
!22 = !{!10, !6, i64 24}
!23 = !{!12, !12, i64 0}
!24 = !{!10, !6, i64 32}
!25 = !{!10, !6, i64 8}
!26 = !{!21, !6, i64 56}
!27 = distinct !{!27, !28}
!28 = !{!"llvm.loop.mustprogress"}
!29 = distinct !{!29, !28}
!30 = !{!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 nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #0

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN14l2r_l2_svc_fun4gradEPdS0_(ptr noundef nonnull align 8 dereferenceable(68) %0, ptr nocapture noundef readonly %1, ptr noundef %2) unnamed_addr #1 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 = getelementptr inbounds i8, ptr %0, i64 64
  store i32 0, ptr %13, align 8, !tbaa !18
  %14 = icmp sgt i32 %8, 0
  br i1 %14, 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 !20
  br label %._crit_edge

.lr.ph:                                           ; preds = %3
  %15 = getelementptr inbounds i8, ptr %0, i64 24
  %16 = load ptr, ptr %15, align 8, !tbaa !21
  %17 = getelementptr inbounds i8, ptr %0, i64 32
  %18 = load ptr, ptr %17, align 8, !tbaa !20
  %19 = getelementptr inbounds i8, ptr %0, i64 8
  %20 = load ptr, ptr %19, align 8
  %21 = getelementptr inbounds i8, ptr %0, i64 56
  %22 = load ptr, ptr %21, align 8
  %wide.trip.count = zext nneg i32 %8 to i64
  br label %23

23:                                               ; preds = %.lr.ph, %45
  %24 = phi i32 [ 0, %.lr.ph ], [ %46, %45 ]
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %45 ]
  %25 = getelementptr inbounds double, ptr %16, i64 %indvars.iv
  %26 = load double, ptr %25, align 8, !tbaa !22
  %27 = getelementptr inbounds double, ptr %7, i64 %indvars.iv
  %28 = load double, ptr %27, align 8, !tbaa !22
  %29 = fmul double %26, %28
  %30 = getelementptr inbounds double, ptr %18, i64 %indvars.iv
  store double %29, ptr %30, align 8, !tbaa !22
  %31 = fcmp olt double %29, 1.000000e+00
  br i1 %31, label %32, label %45

32:                                               ; preds = %23
  %33 = getelementptr inbounds double, ptr %20, i64 %indvars.iv
  %34 = load double, ptr %33, align 8, !tbaa !22
  %35 = load double, ptr %27, align 8, !tbaa !22
  %36 = fmul double %34, %35
  %37 = fadd double %29, -1.000000e+00
  %38 = fmul double %37, %36
  %39 = sext i32 %24 to i64
  %40 = getelementptr inbounds double, ptr %18, i64 %39
  store double %38, ptr %40, align 8, !tbaa !22
  %41 = getelementptr inbounds i32, ptr %22, i64 %39
  %42 = trunc nuw nsw i64 %indvars.iv to i32
  store i32 %42, ptr %41, align 4, !tbaa !23
  %43 = load i32, ptr %13, align 8, !tbaa !18
  %44 = add nsw i32 %43, 1
  store i32 %44, ptr %13, align 8, !tbaa !18
  br label %45

45:                                               ; preds = %23, %32
  %46 = phi i32 [ %24, %23 ], [ %44, %32 ]
  %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 %23, !llvm.loop !24

._crit_edge:                                      ; preds = %45, %.._crit_edge_crit_edge
  %47 = phi ptr [ %.pre, %.._crit_edge_crit_edge ], [ %18, %45 ]
  tail call void @_ZN14l2r_l2_svc_fun6subXTvEPdS0_(ptr noundef nonnull align 8 dereferenceable(68) %0, ptr noundef %47, ptr noundef %2)
  %48 = icmp sgt i32 %12, 0
  br i1 %48, label %.lr.ph32.preheader, label %._crit_edge33

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

vector.memcheck:                                  ; preds = %.lr.ph32.preheader
  %49 = shl nuw nsw i64 %wide.trip.count38, 3
  %scevgep = getelementptr i8, ptr %2, i64 %49
  %scevgep40 = getelementptr i8, ptr %1, i64 %49
  %bound0 = icmp ugt ptr %scevgep40, %2
  %bound1 = icmp ugt ptr %scevgep, %1
  %found.conflict = and i1 %bound0, %bound1
  br i1 %found.conflict, label %.lr.ph32.preheader44, label %vector.ph

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

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %50 = getelementptr inbounds double, ptr %1, i64 %index
  %51 = getelementptr inbounds i8, ptr %50, i64 16
  %wide.load = load <2 x double>, ptr %50, align 8, !tbaa !22, !alias.scope !26
  %wide.load41 = load <2 x double>, ptr %51, align 8, !tbaa !22, !alias.scope !26
  %52 = getelementptr inbounds double, ptr %2, i64 %index
  %53 = getelementptr inbounds i8, ptr %52, i64 16
  %wide.load42 = load <2 x double>, ptr %52, align 8, !tbaa !22, !alias.scope !29, !noalias !26
  %wide.load43 = load <2 x double>, ptr %53, align 8, !tbaa !22, !alias.scope !29, !noalias !26
  %54 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %wide.load42, <2 x double> <double 2.000000e+00, double 2.000000e+00>, <2 x double> %wide.load)
  %55 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %wide.load43, <2 x double> <double 2.000000e+00, double 2.000000e+00>, <2 x double> %wide.load41)
  store <2 x double> %54, ptr %52, align 8, !tbaa !22, !alias.scope !29, !noalias !26
  store <2 x double> %55, ptr %53, align 8, !tbaa !22, !alias.scope !29, !noalias !26
  %index.next = add nuw i64 %index, 4
  %56 = icmp eq i64 %index.next, %n.vec
  br i1 %56, label %middle.block, label %vector.body, !llvm.loop !31

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count38
  br i1 %cmp.n, label %._crit_edge33, label %.lr.ph32.preheader44

.lr.ph32.preheader44:                             ; preds = %middle.block, %vector.memcheck, %.lr.ph32.preheader
  %indvars.iv35.ph = phi i64 [ 0, %vector.memcheck ], [ 0, %.lr.ph32.preheader ], [ %n.vec, %middle.block ]
  %xtraiter = and i64 %wide.trip.count38, 1
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.lr.ph32.prol.loopexit, label %.lr.ph32.prol

.lr.ph32.prol:                                    ; preds = %.lr.ph32.preheader44
  %57 = getelementptr inbounds double, ptr %1, i64 %indvars.iv35.ph
  %58 = load double, ptr %57, align 8, !tbaa !22
  %59 = getelementptr inbounds double, ptr %2, i64 %indvars.iv35.ph
  %60 = load double, ptr %59, align 8, !tbaa !22
  %61 = tail call double @llvm.fmuladd.f64(double %60, double 2.000000e+00, double %58)
  store double %61, ptr %59, align 8, !tbaa !22
  %indvars.iv.next36.prol = or disjoint i64 %indvars.iv35.ph, 1
  br label %.lr.ph32.prol.loopexit

.lr.ph32.prol.loopexit:                           ; preds = %.lr.ph32.prol, %.lr.ph32.preheader44
  %indvars.iv35.unr = phi i64 [ %indvars.iv35.ph, %.lr.ph32.preheader44 ], [ %indvars.iv.next36.prol, %.lr.ph32.prol ]
  %62 = add nsw i64 %wide.trip.count38, -1
  %63 = icmp eq i64 %indvars.iv35.ph, %62
  br i1 %63, label %._crit_edge33, label %.lr.ph32

.lr.ph32:                                         ; preds = %.lr.ph32.prol.loopexit, %.lr.ph32
  %indvars.iv35 = phi i64 [ %indvars.iv.next36.1, %.lr.ph32 ], [ %indvars.iv35.unr, %.lr.ph32.prol.loopexit ]
  %64 = getelementptr inbounds double, ptr %1, i64 %indvars.iv35
  %65 = load double, ptr %64, align 8, !tbaa !22
  %66 = getelementptr inbounds double, ptr %2, i64 %indvars.iv35
  %67 = load double, ptr %66, align 8, !tbaa !22
  %68 = tail call double @llvm.fmuladd.f64(double %67, double 2.000000e+00, double %65)
  store double %68, ptr %66, align 8, !tbaa !22
  %indvars.iv.next36 = add nuw nsw i64 %indvars.iv35, 1
  %69 = getelementptr inbounds double, ptr %1, i64 %indvars.iv.next36
  %70 = load double, ptr %69, align 8, !tbaa !22
  %71 = getelementptr inbounds double, ptr %2, i64 %indvars.iv.next36
  %72 = load double, ptr %71, align 8, !tbaa !22
  %73 = tail call double @llvm.fmuladd.f64(double %72, double 2.000000e+00, double %70)
  store double %73, ptr %71, align 8, !tbaa !22
  %indvars.iv.next36.1 = add nuw nsw i64 %indvars.iv35, 2
  %exitcond39.not.1 = icmp eq i64 %indvars.iv.next36.1, %wide.trip.count38
  br i1 %exitcond39.not.1, label %._crit_edge33, label %.lr.ph32, !llvm.loop !34

._crit_edge33:                                    ; preds = %.lr.ph32.prol.loopexit, %.lr.ph32, %middle.block, %._crit_edge
  %74 = getelementptr inbounds i8, ptr %0, i64 48
  %75 = load i32, ptr %74, align 8, !tbaa !35
  %76 = icmp eq i32 %75, 0
  br i1 %76, label %77, label %85

77:                                               ; preds = %._crit_edge33
  %78 = add nsw i32 %12, -1
  %79 = sext i32 %78 to i64
  %80 = getelementptr inbounds double, ptr %1, i64 %79
  %81 = load double, ptr %80, align 8, !tbaa !22
  %82 = getelementptr inbounds double, ptr %2, i64 %79
  %83 = load double, ptr %82, align 8, !tbaa !22
  %84 = fsub double %83, %81
  store double %84, ptr %82, align 8, !tbaa !22
  br label %85

85:                                               ; preds = %77, %._crit_edge33
  ret void
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN14l2r_l2_svc_fun6subXTvEPdS0_(ptr noundef nonnull align 8 dereferenceable(68), ptr noundef, ptr noundef) local_unnamed_addr #1 align 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 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, !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 = !{!19, !12, i64 64}
!19 = !{!"_ZTS14l2r_l2_svc_fun", !6, i64 0, !8, i64 56, !12, i64 64}
!20 = !{!6, !8, i64 32}
!21 = !{!6, !8, i64 24}
!22 = !{!11, !11, i64 0}
!23 = !{!12, !12, i64 0}
!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, !25, !32}
!35 = !{!6, !12, i64 48}


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