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

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

; 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_fun2XvEPdS0_(ptr noundef nonnull align 8 dereferenceable(52), ptr noundef, ptr noundef) #1 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local noundef double @_ZN11l2r_erm_fun21linesearch_and_updateEPdS0_S0_S0_d(ptr noundef nonnull align 8 dereferenceable(52) %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, double noundef %5) unnamed_addr #1 align 2 {
  %7 = alloca double, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca double, align 8
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca double, align 8
  %17 = alloca double, align 8
  %18 = alloca double, align 8
  %19 = alloca double, align 8
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca double, align 8
  %23 = alloca i32, align 4
  %24 = alloca double, align 8
  %25 = alloca double, align 8
  %26 = alloca i32, align 4
  store ptr %0, ptr %8, align 8, !tbaa !5
  store ptr %1, ptr %9, align 8, !tbaa !5
  store ptr %2, ptr %10, align 8, !tbaa !5
  store ptr %3, ptr %11, align 8, !tbaa !5
  store ptr %4, ptr %12, align 8, !tbaa !5
  store double %5, ptr %13, align 8, !tbaa !9
  %27 = load ptr, ptr %8, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #3
  %28 = getelementptr inbounds %class.l2r_erm_fun, ptr %27, i32 0, i32 2
  %29 = load ptr, ptr %28, align 8, !tbaa !11
  %30 = getelementptr inbounds %struct.problem, ptr %29, i32 0, i32 0
  %31 = load i32, ptr %30, align 8, !tbaa !15
  store i32 %31, ptr %15, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #3
  store double 0.000000e+00, ptr %16, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #3
  store double 0.000000e+00, ptr %17, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #3
  store double 0.000000e+00, ptr %18, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #3
  store double 1.000000e-02, ptr %19, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #3
  %32 = load ptr, ptr %27, align 8, !tbaa !18
  %33 = getelementptr inbounds ptr, ptr %32, i64 3
  %34 = load ptr, ptr %33, align 8
  %35 = call noundef i32 %34(ptr noundef nonnull align 8 dereferenceable(52) %27)
  store i32 %35, ptr %20, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #3
  store i32 20, ptr %21, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #3
  %36 = load ptr, ptr %11, align 8, !tbaa !5
  %37 = load double, ptr %36, align 8, !tbaa !9
  store double %37, ptr %22, align 8, !tbaa !9
  %38 = load ptr, ptr %10, align 8, !tbaa !5
  %39 = getelementptr inbounds %class.l2r_erm_fun, ptr %27, i32 0, i32 4
  %40 = load ptr, ptr %39, align 8, !tbaa !20
  call void @_ZN11l2r_erm_fun2XvEPdS0_(ptr noundef nonnull align 8 dereferenceable(52) %27, ptr noundef %38, ptr noundef %40)
  store i32 0, ptr %14, align 4, !tbaa !17
  br label %41

41:                                               ; preds = %82, %6
  %42 = load i32, ptr %14, align 4, !tbaa !17
  %43 = load i32, ptr %20, align 4, !tbaa !17
  %44 = icmp slt i32 %42, %43
  br i1 %44, label %45, label %85

45:                                               ; preds = %41
  %46 = load ptr, ptr %10, align 8, !tbaa !5
  %47 = load i32, ptr %14, align 4, !tbaa !17
  %48 = sext i32 %47 to i64
  %49 = getelementptr inbounds double, ptr %46, i64 %48
  %50 = load double, ptr %49, align 8, !tbaa !9
  %51 = load ptr, ptr %10, align 8, !tbaa !5
  %52 = load i32, ptr %14, 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 !9
  %56 = load double, ptr %16, align 8, !tbaa !9
  %57 = call double @llvm.fmuladd.f64(double %50, double %55, double %56)
  store double %57, ptr %16, align 8, !tbaa !9
  %58 = load ptr, ptr %10, align 8, !tbaa !5
  %59 = load i32, ptr %14, align 4, !tbaa !17
  %60 = sext i32 %59 to i64
  %61 = getelementptr inbounds double, ptr %58, i64 %60
  %62 = load double, ptr %61, align 8, !tbaa !9
  %63 = load ptr, ptr %9, align 8, !tbaa !5
  %64 = load i32, ptr %14, align 4, !tbaa !17
  %65 = sext i32 %64 to i64
  %66 = getelementptr inbounds double, ptr %63, i64 %65
  %67 = load double, ptr %66, align 8, !tbaa !9
  %68 = load double, ptr %17, align 8, !tbaa !9
  %69 = call double @llvm.fmuladd.f64(double %62, double %67, double %68)
  store double %69, ptr %17, align 8, !tbaa !9
  %70 = load ptr, ptr %10, align 8, !tbaa !5
  %71 = load i32, ptr %14, 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 !9
  %75 = load ptr, ptr %12, align 8, !tbaa !5
  %76 = load i32, ptr %14, align 4, !tbaa !17
  %77 = sext i32 %76 to i64
  %78 = getelementptr inbounds double, ptr %75, i64 %77
  %79 = load double, ptr %78, align 8, !tbaa !9
  %80 = load double, ptr %18, align 8, !tbaa !9
  %81 = call double @llvm.fmuladd.f64(double %74, double %79, double %80)
  store double %81, ptr %18, align 8, !tbaa !9
  br label %82

82:                                               ; preds = %45
  %83 = load i32, ptr %14, align 4, !tbaa !17
  %84 = add nsw i32 %83, 1
  store i32 %84, ptr %14, align 4, !tbaa !17
  br label %41, !llvm.loop !21

85:                                               ; preds = %41
  %86 = getelementptr inbounds %class.l2r_erm_fun, ptr %27, i32 0, i32 6
  %87 = load i32, ptr %86, align 8, !tbaa !23
  %88 = icmp eq i32 %87, 0
  br i1 %88, label %89, label %120

89:                                               ; preds = %85
  %90 = load ptr, ptr %10, align 8, !tbaa !5
  %91 = load i32, ptr %20, align 4, !tbaa !17
  %92 = sub nsw i32 %91, 1
  %93 = sext i32 %92 to i64
  %94 = getelementptr inbounds double, ptr %90, i64 %93
  %95 = load double, ptr %94, align 8, !tbaa !9
  %96 = load ptr, ptr %10, align 8, !tbaa !5
  %97 = load i32, ptr %20, align 4, !tbaa !17
  %98 = sub nsw i32 %97, 1
  %99 = sext i32 %98 to i64
  %100 = getelementptr inbounds double, ptr %96, i64 %99
  %101 = load double, ptr %100, align 8, !tbaa !9
  %102 = load double, ptr %16, align 8, !tbaa !9
  %103 = fneg double %95
  %104 = call double @llvm.fmuladd.f64(double %103, double %101, double %102)
  store double %104, ptr %16, align 8, !tbaa !9
  %105 = load ptr, ptr %10, align 8, !tbaa !5
  %106 = load i32, ptr %20, align 4, !tbaa !17
  %107 = sub nsw i32 %106, 1
  %108 = sext i32 %107 to i64
  %109 = getelementptr inbounds double, ptr %105, i64 %108
  %110 = load double, ptr %109, align 8, !tbaa !9
  %111 = load ptr, ptr %9, align 8, !tbaa !5
  %112 = load i32, ptr %20, align 4, !tbaa !17
  %113 = sub nsw i32 %112, 1
  %114 = sext i32 %113 to i64
  %115 = getelementptr inbounds double, ptr %111, i64 %114
  %116 = load double, ptr %115, align 8, !tbaa !9
  %117 = load double, ptr %17, align 8, !tbaa !9
  %118 = fneg double %110
  %119 = call double @llvm.fmuladd.f64(double %118, double %116, double %117)
  store double %119, ptr %17, align 8, !tbaa !9
  br label %120

120:                                              ; preds = %89, %85
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #3
  store i32 0, ptr %23, align 4, !tbaa !17
  store i32 0, ptr %23, align 4, !tbaa !17
  br label %121

121:                                              ; preds = %212, %120
  %122 = load i32, ptr %23, align 4, !tbaa !17
  %123 = load i32, ptr %21, align 4, !tbaa !17
  %124 = icmp slt i32 %122, %123
  br i1 %124, label %125, label %215

125:                                              ; preds = %121
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #3
  store double 0.000000e+00, ptr %24, align 8, !tbaa !9
  store i32 0, ptr %14, align 4, !tbaa !17
  br label %126

126:                                              ; preds = %153, %125
  %127 = load i32, ptr %14, align 4, !tbaa !17
  %128 = load i32, ptr %15, align 4, !tbaa !17
  %129 = icmp slt i32 %127, %128
  br i1 %129, label %130, label %156

130:                                              ; preds = %126
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #3
  %131 = getelementptr inbounds %class.l2r_erm_fun, ptr %27, i32 0, i32 4
  %132 = load ptr, ptr %131, align 8, !tbaa !20
  %133 = load i32, ptr %14, align 4, !tbaa !17
  %134 = sext i32 %133 to i64
  %135 = getelementptr inbounds double, ptr %132, i64 %134
  %136 = load double, ptr %135, align 8, !tbaa !9
  %137 = load double, ptr %13, align 8, !tbaa !9
  %138 = getelementptr inbounds %class.l2r_erm_fun, ptr %27, i32 0, i32 3
  %139 = load ptr, ptr %138, align 8, !tbaa !24
  %140 = load i32, ptr %14, align 4, !tbaa !17
  %141 = sext i32 %140 to i64
  %142 = getelementptr inbounds double, ptr %139, i64 %141
  %143 = load double, ptr %142, align 8, !tbaa !9
  %144 = call double @llvm.fmuladd.f64(double %136, double %137, double %143)
  store double %144, ptr %25, align 8, !tbaa !9
  %145 = load i32, ptr %14, align 4, !tbaa !17
  %146 = load double, ptr %25, align 8, !tbaa !9
  %147 = load ptr, ptr %27, align 8, !tbaa !18
  %148 = getelementptr inbounds ptr, ptr %147, i64 8
  %149 = load ptr, ptr %148, align 8
  %150 = call noundef double %149(ptr noundef nonnull align 8 dereferenceable(52) %27, i32 noundef %145, double noundef %146)
  %151 = load double, ptr %24, align 8, !tbaa !9
  %152 = fadd double %151, %150
  store double %152, ptr %24, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #3
  br label %153

153:                                              ; preds = %130
  %154 = load i32, ptr %14, align 4, !tbaa !17
  %155 = add nsw i32 %154, 1
  store i32 %155, ptr %14, align 4, !tbaa !17
  br label %126, !llvm.loop !25

156:                                              ; preds = %126
  %157 = load double, ptr %24, align 8, !tbaa !9
  %158 = load double, ptr %13, align 8, !tbaa !9
  %159 = load double, ptr %13, align 8, !tbaa !9
  %160 = fmul double %158, %159
  %161 = load double, ptr %16, align 8, !tbaa !9
  %162 = getelementptr inbounds %class.l2r_erm_fun, ptr %27, i32 0, i32 5
  %163 = load double, ptr %162, align 8, !tbaa !26
  %164 = call double @llvm.fmuladd.f64(double %160, double %161, double %163)
  %165 = fdiv double %164, 2.000000e+00
  %166 = fadd double %157, %165
  %167 = load double, ptr %13, align 8, !tbaa !9
  %168 = load double, ptr %17, align 8, !tbaa !9
  %169 = call double @llvm.fmuladd.f64(double %167, double %168, double %166)
  %170 = load ptr, ptr %11, align 8, !tbaa !5
  store double %169, ptr %170, align 8, !tbaa !9
  %171 = load ptr, ptr %11, align 8, !tbaa !5
  %172 = load double, ptr %171, align 8, !tbaa !9
  %173 = load double, ptr %22, align 8, !tbaa !9
  %174 = fsub double %172, %173
  %175 = load double, ptr %19, align 8, !tbaa !9
  %176 = load double, ptr %13, align 8, !tbaa !9
  %177 = fmul double %175, %176
  %178 = load double, ptr %18, align 8, !tbaa !9
  %179 = fmul double %177, %178
  %180 = fcmp ole double %174, %179
  br i1 %180, label %181, label %205

181:                                              ; preds = %156
  store i32 0, ptr %14, align 4, !tbaa !17
  br label %182

182:                                              ; preds = %201, %181
  %183 = load i32, ptr %14, align 4, !tbaa !17
  %184 = load i32, ptr %15, align 4, !tbaa !17
  %185 = icmp slt i32 %183, %184
  br i1 %185, label %186, label %204

186:                                              ; preds = %182
  %187 = load double, ptr %13, align 8, !tbaa !9
  %188 = getelementptr inbounds %class.l2r_erm_fun, ptr %27, i32 0, i32 4
  %189 = load ptr, ptr %188, align 8, !tbaa !20
  %190 = load i32, ptr %14, align 4, !tbaa !17
  %191 = sext i32 %190 to i64
  %192 = getelementptr inbounds double, ptr %189, i64 %191
  %193 = load double, ptr %192, align 8, !tbaa !9
  %194 = getelementptr inbounds %class.l2r_erm_fun, ptr %27, i32 0, i32 3
  %195 = load ptr, ptr %194, align 8, !tbaa !24
  %196 = load i32, ptr %14, align 4, !tbaa !17
  %197 = sext i32 %196 to i64
  %198 = getelementptr inbounds double, ptr %195, i64 %197
  %199 = load double, ptr %198, align 8, !tbaa !9
  %200 = call double @llvm.fmuladd.f64(double %187, double %193, double %199)
  store double %200, ptr %198, align 8, !tbaa !9
  br label %201

201:                                              ; preds = %186
  %202 = load i32, ptr %14, align 4, !tbaa !17
  %203 = add nsw i32 %202, 1
  store i32 %203, ptr %14, align 4, !tbaa !17
  br label %182, !llvm.loop !27

204:                                              ; preds = %182
  store i32 5, ptr %26, align 4
  br label %209

205:                                              ; preds = %156
  %206 = load double, ptr %13, align 8, !tbaa !9
  %207 = fmul double %206, 5.000000e-01
  store double %207, ptr %13, align 8, !tbaa !9
  br label %208

208:                                              ; preds = %205
  store i32 0, ptr %26, align 4
  br label %209

209:                                              ; preds = %208, %204
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #3
  %210 = load i32, ptr %26, align 4
  switch i32 %210, label %260 [
    i32 0, label %211
    i32 5, label %215
  ]

211:                                              ; preds = %209
  br label %212

212:                                              ; preds = %211
  %213 = load i32, ptr %23, align 4, !tbaa !17
  %214 = add nsw i32 %213, 1
  store i32 %214, ptr %23, align 4, !tbaa !17
  br label %121, !llvm.loop !28

215:                                              ; preds = %209, %121
  %216 = load i32, ptr %23, align 4, !tbaa !17
  %217 = load i32, ptr %21, align 4, !tbaa !17
  %218 = icmp sge i32 %216, %217
  br i1 %218, label %219, label %222

219:                                              ; preds = %215
  %220 = load double, ptr %22, align 8, !tbaa !9
  %221 = load ptr, ptr %11, align 8, !tbaa !5
  store double %220, ptr %221, align 8, !tbaa !9
  store double 0.000000e+00, ptr %7, align 8
  store i32 1, ptr %26, align 4
  br label %258

222:                                              ; preds = %215
  store i32 0, ptr %14, align 4, !tbaa !17
  br label %223

223:                                              ; preds = %240, %222
  %224 = load i32, ptr %14, align 4, !tbaa !17
  %225 = load i32, ptr %20, align 4, !tbaa !17
  %226 = icmp slt i32 %224, %225
  br i1 %226, label %227, label %243

227:                                              ; preds = %223
  %228 = load double, ptr %13, align 8, !tbaa !9
  %229 = load ptr, ptr %10, align 8, !tbaa !5
  %230 = load i32, ptr %14, align 4, !tbaa !17
  %231 = sext i32 %230 to i64
  %232 = getelementptr inbounds double, ptr %229, i64 %231
  %233 = load double, ptr %232, align 8, !tbaa !9
  %234 = load ptr, ptr %9, align 8, !tbaa !5
  %235 = load i32, ptr %14, align 4, !tbaa !17
  %236 = sext i32 %235 to i64
  %237 = getelementptr inbounds double, ptr %234, i64 %236
  %238 = load double, ptr %237, align 8, !tbaa !9
  %239 = call double @llvm.fmuladd.f64(double %228, double %233, double %238)
  store double %239, ptr %237, align 8, !tbaa !9
  br label %240

240:                                              ; preds = %227
  %241 = load i32, ptr %14, align 4, !tbaa !17
  %242 = add nsw i32 %241, 1
  store i32 %242, ptr %14, align 4, !tbaa !17
  br label %223, !llvm.loop !29

243:                                              ; preds = %223
  br label %244

244:                                              ; preds = %243
  %245 = load double, ptr %13, align 8, !tbaa !9
  %246 = load double, ptr %13, align 8, !tbaa !9
  %247 = fmul double %245, %246
  %248 = load double, ptr %16, align 8, !tbaa !9
  %249 = load double, ptr %13, align 8, !tbaa !9
  %250 = fmul double 2.000000e+00, %249
  %251 = load double, ptr %17, align 8, !tbaa !9
  %252 = fmul double %250, %251
  %253 = call double @llvm.fmuladd.f64(double %247, double %248, double %252)
  %254 = getelementptr inbounds %class.l2r_erm_fun, ptr %27, i32 0, i32 5
  %255 = load double, ptr %254, align 8, !tbaa !26
  %256 = fadd double %255, %253
  store double %256, ptr %254, align 8, !tbaa !26
  %257 = load double, ptr %13, align 8, !tbaa !9
  store double %257, ptr %7, align 8
  store i32 1, ptr %26, align 4
  br label %258

258:                                              ; preds = %244, %219
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #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 4, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #3
  %259 = load double, ptr %7, align 8
  ret double %259

260:                                              ; preds = %209
  unreachable
}

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


; 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_fun2XvEPdS0_(ptr noundef nonnull align 8 dereferenceable(52), ptr noundef, ptr noundef) local_unnamed_addr #0 align 2

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

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

.lr.ph.preheader:                                 ; preds = %6
  %wide.trip.count = zext nneg i32 %13 to i64
  %xtraiter = and i64 %wide.trip.count, 1
  %18 = icmp eq i32 %13, 1
  br i1 %18, 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, 2147483646
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph, %.lr.ph.preheader.new
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader.new ], [ %indvars.iv.next.1, %.lr.ph ]
  %.092104 = phi double [ 0.000000e+00, %.lr.ph.preheader.new ], [ %43, %.lr.ph ]
  %19 = phi <2 x double> [ zeroinitializer, %.lr.ph.preheader.new ], [ %40, %.lr.ph ]
  %niter = phi i64 [ 0, %.lr.ph.preheader.new ], [ %niter.next.1, %.lr.ph ]
  %20 = getelementptr inbounds double, ptr %2, i64 %indvars.iv
  %21 = load double, ptr %20, align 8, !tbaa !17
  %22 = getelementptr inbounds double, ptr %1, i64 %indvars.iv
  %23 = load double, ptr %22, align 8, !tbaa !17
  %24 = insertelement <2 x double> poison, double %21, i64 0
  %25 = shufflevector <2 x double> %24, <2 x double> poison, <2 x i32> zeroinitializer
  %26 = insertelement <2 x double> poison, double %23, i64 0
  %27 = insertelement <2 x double> %26, double %21, i64 1
  %28 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %25, <2 x double> %27, <2 x double> %19)
  %29 = getelementptr inbounds double, ptr %4, i64 %indvars.iv
  %30 = load double, ptr %29, align 8, !tbaa !17
  %31 = tail call double @llvm.fmuladd.f64(double %21, double %30, double %.092104)
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %32 = getelementptr inbounds double, ptr %2, i64 %indvars.iv.next
  %33 = load double, ptr %32, align 8, !tbaa !17
  %34 = getelementptr inbounds double, ptr %1, i64 %indvars.iv.next
  %35 = load double, ptr %34, align 8, !tbaa !17
  %36 = insertelement <2 x double> poison, double %33, i64 0
  %37 = shufflevector <2 x double> %36, <2 x double> poison, <2 x i32> zeroinitializer
  %38 = insertelement <2 x double> poison, double %35, i64 0
  %39 = insertelement <2 x double> %38, double %33, i64 1
  %40 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %37, <2 x double> %39, <2 x double> %28)
  %41 = getelementptr inbounds double, ptr %4, i64 %indvars.iv.next
  %42 = load double, ptr %41, align 8, !tbaa !17
  %43 = tail call double @llvm.fmuladd.f64(double %33, double %42, double %31)
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 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_edge.loopexit.unr-lcssa, label %.lr.ph, !llvm.loop !19

._crit_edge.loopexit.unr-lcssa:                   ; preds = %.lr.ph, %.lr.ph.preheader
  %.lcssa194.ph = phi <2 x double> [ poison, %.lr.ph.preheader ], [ %40, %.lr.ph ]
  %.lcssa193.ph = phi double [ poison, %.lr.ph.preheader ], [ %43, %.lr.ph ]
  %indvars.iv.unr = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next.1, %.lr.ph ]
  %.092104.unr = phi double [ 0.000000e+00, %.lr.ph.preheader ], [ %43, %.lr.ph ]
  %.unr = phi <2 x double> [ zeroinitializer, %.lr.ph.preheader ], [ %40, %.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
  %44 = getelementptr inbounds double, ptr %2, i64 %indvars.iv.unr
  %45 = load double, ptr %44, align 8, !tbaa !17
  %46 = getelementptr inbounds double, ptr %1, i64 %indvars.iv.unr
  %47 = load double, ptr %46, align 8, !tbaa !17
  %48 = insertelement <2 x double> poison, double %45, i64 0
  %49 = shufflevector <2 x double> %48, <2 x double> poison, <2 x i32> zeroinitializer
  %50 = insertelement <2 x double> poison, double %47, i64 0
  %51 = insertelement <2 x double> %50, double %45, i64 1
  %52 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %49, <2 x double> %51, <2 x double> %.unr)
  %53 = getelementptr inbounds double, ptr %4, i64 %indvars.iv.unr
  %54 = load double, ptr %53, align 8, !tbaa !17
  %55 = tail call double @llvm.fmuladd.f64(double %45, double %54, double %.092104.unr)
  br label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph.epil, %._crit_edge.loopexit.unr-lcssa, %6
  %.092.lcssa = phi double [ 0.000000e+00, %6 ], [ %.lcssa193.ph, %._crit_edge.loopexit.unr-lcssa ], [ %55, %.lr.ph.epil ]
  %56 = phi <2 x double> [ zeroinitializer, %6 ], [ %.lcssa194.ph, %._crit_edge.loopexit.unr-lcssa ], [ %52, %.lr.ph.epil ]
  %57 = getelementptr inbounds i8, ptr %0, i64 48
  %58 = load i32, ptr %57, align 8, !tbaa !21
  %59 = icmp eq i32 %58, 0
  br i1 %59, label %60, label %73

60:                                               ; preds = %._crit_edge
  %61 = add nsw i32 %13, -1
  %62 = sext i32 %61 to i64
  %63 = getelementptr inbounds double, ptr %2, i64 %62
  %64 = load double, ptr %63, align 8, !tbaa !17
  %65 = fneg double %64
  %66 = getelementptr inbounds double, ptr %1, i64 %62
  %67 = load double, ptr %66, align 8, !tbaa !17
  %68 = insertelement <2 x double> poison, double %65, i64 0
  %69 = shufflevector <2 x double> %68, <2 x double> poison, <2 x i32> zeroinitializer
  %70 = insertelement <2 x double> poison, double %67, i64 0
  %71 = insertelement <2 x double> %70, double %64, i64 1
  %72 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %69, <2 x double> %71, <2 x double> %56)
  br label %73

73:                                               ; preds = %60, %._crit_edge
  %74 = phi <2 x double> [ %72, %60 ], [ %56, %._crit_edge ]
  %75 = icmp sgt i32 %9, 0
  %76 = getelementptr inbounds i8, ptr %0, i64 24
  %77 = getelementptr inbounds i8, ptr %0, i64 40
  br i1 %75, label %.preheader102.us.preheader, label %.preheader102.preheader

.preheader102.preheader:                          ; preds = %73
  %78 = extractelement <2 x double> %74, i64 1
  %79 = extractelement <2 x double> %74, i64 0
  br label %.preheader102

.preheader102.us.preheader:                       ; preds = %73
  %wide.trip.count134 = zext nneg i32 %9 to i64
  %80 = extractelement <2 x double> %74, i64 0
  %81 = extractelement <2 x double> %74, i64 1
  br label %.preheader102.us

.preheader102.us:                                 ; preds = %.preheader102.us.preheader, %82
  %.083116.us = phi i32 [ %84, %82 ], [ 0, %.preheader102.us.preheader ]
  %.084115.us = phi double [ %83, %82 ], [ %5, %.preheader102.us.preheader ]
  br label %85

82:                                               ; preds = %._crit_edge113.us
  %83 = fmul double %.084115.us, 5.000000e-01
  %84 = add nuw nsw i32 %.083116.us, 1
  %exitcond136.not = icmp eq i32 %84, 20
  br i1 %exitcond136.not, label %.thread99, label %.preheader102.us, !llvm.loop !22

85:                                               ; preds = %.preheader102.us, %85
  %indvars.iv131 = phi i64 [ 0, %.preheader102.us ], [ %indvars.iv.next132, %85 ]
  %.082111.us = phi double [ 0.000000e+00, %.preheader102.us ], [ %98, %85 ]
  %86 = load ptr, ptr %15, align 8, !tbaa !18
  %87 = getelementptr inbounds double, ptr %86, i64 %indvars.iv131
  %88 = load double, ptr %87, align 8, !tbaa !17
  %89 = load ptr, ptr %76, align 8, !tbaa !23
  %90 = getelementptr inbounds double, ptr %89, i64 %indvars.iv131
  %91 = load double, ptr %90, align 8, !tbaa !17
  %92 = tail call double @llvm.fmuladd.f64(double %88, double %.084115.us, double %91)
  %93 = load ptr, ptr %0, align 8, !tbaa !15
  %94 = getelementptr inbounds i8, ptr %93, i64 64
  %95 = load ptr, ptr %94, align 8
  %96 = trunc nuw nsw i64 %indvars.iv131 to i32
  %97 = tail call noundef double %95(ptr noundef nonnull align 8 dereferenceable(52) %0, i32 noundef %96, double noundef %92)
  %98 = fadd double %.082111.us, %97
  %indvars.iv.next132 = add nuw nsw i64 %indvars.iv131, 1
  %exitcond135.not = icmp eq i64 %indvars.iv.next132, %wide.trip.count134
  br i1 %exitcond135.not, label %._crit_edge113.us, label %85, !llvm.loop !24

._crit_edge113.us:                                ; preds = %85
  %99 = fmul double %.084115.us, %.084115.us
  %100 = load double, ptr %77, align 8, !tbaa !25
  %101 = tail call double @llvm.fmuladd.f64(double %99, double %81, double %100)
  %102 = fmul double %101, 5.000000e-01
  %103 = fadd double %98, %102
  %104 = tail call double @llvm.fmuladd.f64(double %.084115.us, double %80, double %103)
  store double %104, ptr %3, align 8, !tbaa !17
  %105 = fsub double %104, %14
  %106 = fmul double %.084115.us, 1.000000e-02
  %107 = fmul double %.092.lcssa, %106
  %108 = fcmp ugt double %105, %107
  br i1 %108, label %82, label %.preheader101

.preheader102:                                    ; preds = %.preheader102.preheader, %161
  %.083116 = phi i32 [ %163, %161 ], [ 0, %.preheader102.preheader ]
  %.084115 = phi double [ %162, %161 ], [ %5, %.preheader102.preheader ]
  %109 = fmul double %.084115, %.084115
  %110 = load double, ptr %77, align 8, !tbaa !25
  %111 = tail call double @llvm.fmuladd.f64(double %109, double %78, double %110)
  %112 = fmul double %111, 5.000000e-01
  %113 = fadd double %112, 0.000000e+00
  %114 = tail call double @llvm.fmuladd.f64(double %.084115, double %79, double %113)
  store double %114, ptr %3, align 8, !tbaa !17
  %115 = fsub double %114, %14
  %116 = fmul double %.084115, 1.000000e-02
  %117 = fmul double %.092.lcssa, %116
  %118 = fcmp ugt double %115, %117
  br i1 %118, label %161, label %.preheader101

.preheader101:                                    ; preds = %.preheader102, %._crit_edge113.us
  %.us-phi = phi double [ %.084115.us, %._crit_edge113.us ], [ %.084115, %.preheader102 ]
  br i1 %75, label %.lr.ph118, label %.preheader

.lr.ph118:                                        ; preds = %.preheader101
  %119 = load ptr, ptr %15, align 8, !tbaa !18
  %120 = load ptr, ptr %76, align 8, !tbaa !23
  %wide.trip.count140 = zext nneg i32 %9 to i64
  %min.iters.check = icmp ult i32 %9, 6
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.memcheck

scalar.ph.preheader:                              ; preds = %middle.block, %vector.memcheck, %.lr.ph118
  %indvars.iv137.ph = phi i64 [ 0, %vector.memcheck ], [ 0, %.lr.ph118 ], [ %n.vec, %middle.block ]
  %xtraiter197 = and i64 %wide.trip.count140, 1
  %lcmp.mod198.not = icmp eq i64 %xtraiter197, 0
  br i1 %lcmp.mod198.not, label %scalar.ph.prol.loopexit, label %scalar.ph.prol

scalar.ph.prol:                                   ; preds = %scalar.ph.preheader
  %121 = getelementptr inbounds double, ptr %119, i64 %indvars.iv137.ph
  %122 = load double, ptr %121, align 8, !tbaa !17
  %123 = getelementptr inbounds double, ptr %120, i64 %indvars.iv137.ph
  %124 = load double, ptr %123, align 8, !tbaa !17
  %125 = tail call double @llvm.fmuladd.f64(double %.us-phi, double %122, double %124)
  store double %125, ptr %123, align 8, !tbaa !17
  %indvars.iv.next138.prol = or disjoint i64 %indvars.iv137.ph, 1
  br label %scalar.ph.prol.loopexit

scalar.ph.prol.loopexit:                          ; preds = %scalar.ph.prol, %scalar.ph.preheader
  %indvars.iv137.unr = phi i64 [ %indvars.iv137.ph, %scalar.ph.preheader ], [ %indvars.iv.next138.prol, %scalar.ph.prol ]
  %126 = add nsw i64 %wide.trip.count140, -1
  %127 = icmp eq i64 %indvars.iv137.ph, %126
  br i1 %127, label %.preheader, label %scalar.ph

vector.memcheck:                                  ; preds = %.lr.ph118
  %128 = shl nuw nsw i64 %wide.trip.count140, 3
  %scevgep = getelementptr i8, ptr %120, i64 %128
  %scevgep161 = getelementptr i8, ptr %119, i64 %128
  %bound0 = icmp ult ptr %120, %scevgep161
  %bound1 = icmp ult ptr %119, %scevgep
  %found.conflict = and i1 %bound0, %bound1
  br i1 %found.conflict, label %scalar.ph.preheader, label %vector.ph

vector.ph:                                        ; preds = %vector.memcheck
  %n.vec = and i64 %wide.trip.count140, 2147483644
  %broadcast.splatinsert = insertelement <2 x double> poison, double %.us-phi, i64 0
  %broadcast.splat = shufflevector <2 x double> %broadcast.splatinsert, <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 ]
  %129 = getelementptr inbounds double, ptr %119, i64 %index
  %130 = getelementptr inbounds i8, ptr %129, i64 16
  %wide.load = load <2 x double>, ptr %129, align 8, !tbaa !17, !alias.scope !26
  %wide.load162 = load <2 x double>, ptr %130, align 8, !tbaa !17, !alias.scope !26
  %131 = getelementptr inbounds double, ptr %120, i64 %index
  %132 = getelementptr inbounds i8, ptr %131, i64 16
  %wide.load163 = load <2 x double>, ptr %131, align 8, !tbaa !17, !alias.scope !29, !noalias !26
  %wide.load164 = load <2 x double>, ptr %132, align 8, !tbaa !17, !alias.scope !29, !noalias !26
  %133 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %broadcast.splat, <2 x double> %wide.load, <2 x double> %wide.load163)
  %134 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %broadcast.splat, <2 x double> %wide.load162, <2 x double> %wide.load164)
  store <2 x double> %133, ptr %131, align 8, !tbaa !17, !alias.scope !29, !noalias !26
  store <2 x double> %134, ptr %132, align 8, !tbaa !17, !alias.scope !29, !noalias !26
  %index.next = add nuw i64 %index, 4
  %135 = icmp eq i64 %index.next, %n.vec
  br i1 %135, label %middle.block, label %vector.body, !llvm.loop !31

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count140
  br i1 %cmp.n, label %.preheader, label %scalar.ph.preheader

.preheader:                                       ; preds = %scalar.ph.prol.loopexit, %scalar.ph, %middle.block, %.preheader101
  br i1 %17, label %.lr.ph120.preheader, label %._crit_edge121

.lr.ph120.preheader:                              ; preds = %.preheader
  %wide.trip.count145 = zext nneg i32 %13 to i64
  %min.iters.check173 = icmp ult i32 %13, 6
  br i1 %min.iters.check173, label %.lr.ph120.preheader188, label %vector.memcheck165

.lr.ph120.preheader188:                           ; preds = %middle.block171, %vector.memcheck165, %.lr.ph120.preheader
  %indvars.iv142.ph = phi i64 [ 0, %vector.memcheck165 ], [ 0, %.lr.ph120.preheader ], [ %n.vec176, %middle.block171 ]
  %xtraiter199 = and i64 %wide.trip.count145, 1
  %lcmp.mod200.not = icmp eq i64 %xtraiter199, 0
  br i1 %lcmp.mod200.not, label %.lr.ph120.prol.loopexit, label %.lr.ph120.prol

.lr.ph120.prol:                                   ; preds = %.lr.ph120.preheader188
  %136 = getelementptr inbounds double, ptr %2, i64 %indvars.iv142.ph
  %137 = load double, ptr %136, align 8, !tbaa !17
  %138 = getelementptr inbounds double, ptr %1, i64 %indvars.iv142.ph
  %139 = load double, ptr %138, align 8, !tbaa !17
  %140 = tail call double @llvm.fmuladd.f64(double %.us-phi, double %137, double %139)
  store double %140, ptr %138, align 8, !tbaa !17
  %indvars.iv.next143.prol = or disjoint i64 %indvars.iv142.ph, 1
  br label %.lr.ph120.prol.loopexit

.lr.ph120.prol.loopexit:                          ; preds = %.lr.ph120.prol, %.lr.ph120.preheader188
  %indvars.iv142.unr = phi i64 [ %indvars.iv142.ph, %.lr.ph120.preheader188 ], [ %indvars.iv.next143.prol, %.lr.ph120.prol ]
  %141 = add nsw i64 %wide.trip.count145, -1
  %142 = icmp eq i64 %indvars.iv142.ph, %141
  br i1 %142, label %._crit_edge121, label %.lr.ph120

vector.memcheck165:                               ; preds = %.lr.ph120.preheader
  %143 = shl nuw nsw i64 %wide.trip.count145, 3
  %scevgep166 = getelementptr i8, ptr %1, i64 %143
  %scevgep167 = getelementptr i8, ptr %2, i64 %143
  %bound0168 = icmp ugt ptr %scevgep167, %1
  %bound1169 = icmp ugt ptr %scevgep166, %2
  %found.conflict170 = and i1 %bound0168, %bound1169
  br i1 %found.conflict170, label %.lr.ph120.preheader188, label %vector.ph174

vector.ph174:                                     ; preds = %vector.memcheck165
  %n.vec176 = and i64 %wide.trip.count145, 2147483644
  %broadcast.splatinsert184 = insertelement <2 x double> poison, double %.us-phi, i64 0
  %broadcast.splat185 = shufflevector <2 x double> %broadcast.splatinsert184, <2 x double> poison, <2 x i32> zeroinitializer
  br label %vector.body178

vector.body178:                                   ; preds = %vector.body178, %vector.ph174
  %index179 = phi i64 [ 0, %vector.ph174 ], [ %index.next186, %vector.body178 ]
  %144 = getelementptr inbounds double, ptr %2, i64 %index179
  %145 = getelementptr inbounds i8, ptr %144, i64 16
  %wide.load180 = load <2 x double>, ptr %144, align 8, !tbaa !17, !alias.scope !34
  %wide.load181 = load <2 x double>, ptr %145, align 8, !tbaa !17, !alias.scope !34
  %146 = getelementptr inbounds double, ptr %1, i64 %index179
  %147 = getelementptr inbounds i8, ptr %146, i64 16
  %wide.load182 = load <2 x double>, ptr %146, align 8, !tbaa !17, !alias.scope !37, !noalias !34
  %wide.load183 = load <2 x double>, ptr %147, align 8, !tbaa !17, !alias.scope !37, !noalias !34
  %148 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %broadcast.splat185, <2 x double> %wide.load180, <2 x double> %wide.load182)
  %149 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %broadcast.splat185, <2 x double> %wide.load181, <2 x double> %wide.load183)
  store <2 x double> %148, ptr %146, align 8, !tbaa !17, !alias.scope !37, !noalias !34
  store <2 x double> %149, ptr %147, align 8, !tbaa !17, !alias.scope !37, !noalias !34
  %index.next186 = add nuw i64 %index179, 4
  %150 = icmp eq i64 %index.next186, %n.vec176
  br i1 %150, label %middle.block171, label %vector.body178, !llvm.loop !39

middle.block171:                                  ; preds = %vector.body178
  %cmp.n187 = icmp eq i64 %n.vec176, %wide.trip.count145
  br i1 %cmp.n187, label %._crit_edge121, label %.lr.ph120.preheader188

scalar.ph:                                        ; preds = %scalar.ph.prol.loopexit, %scalar.ph
  %indvars.iv137 = phi i64 [ %indvars.iv.next138.1, %scalar.ph ], [ %indvars.iv137.unr, %scalar.ph.prol.loopexit ]
  %151 = getelementptr inbounds double, ptr %119, i64 %indvars.iv137
  %152 = load double, ptr %151, align 8, !tbaa !17
  %153 = getelementptr inbounds double, ptr %120, i64 %indvars.iv137
  %154 = load double, ptr %153, align 8, !tbaa !17
  %155 = tail call double @llvm.fmuladd.f64(double %.us-phi, double %152, double %154)
  store double %155, ptr %153, align 8, !tbaa !17
  %indvars.iv.next138 = add nuw nsw i64 %indvars.iv137, 1
  %156 = getelementptr inbounds double, ptr %119, i64 %indvars.iv.next138
  %157 = load double, ptr %156, align 8, !tbaa !17
  %158 = getelementptr inbounds double, ptr %120, i64 %indvars.iv.next138
  %159 = load double, ptr %158, align 8, !tbaa !17
  %160 = tail call double @llvm.fmuladd.f64(double %.us-phi, double %157, double %159)
  store double %160, ptr %158, align 8, !tbaa !17
  %indvars.iv.next138.1 = add nuw nsw i64 %indvars.iv137, 2
  %exitcond141.not.1 = icmp eq i64 %indvars.iv.next138.1, %wide.trip.count140
  br i1 %exitcond141.not.1, label %.preheader, label %scalar.ph, !llvm.loop !40

161:                                              ; preds = %.preheader102
  %162 = fmul double %.084115, 5.000000e-01
  %163 = add nuw nsw i32 %.083116, 1
  %exitcond130.not = icmp eq i32 %163, 20
  br i1 %exitcond130.not, label %.thread99, label %.preheader102, !llvm.loop !22

.thread99:                                        ; preds = %161, %82
  store double %14, ptr %3, align 8, !tbaa !17
  br label %182

.lr.ph120:                                        ; preds = %.lr.ph120.prol.loopexit, %.lr.ph120
  %indvars.iv142 = phi i64 [ %indvars.iv.next143.1, %.lr.ph120 ], [ %indvars.iv142.unr, %.lr.ph120.prol.loopexit ]
  %164 = getelementptr inbounds double, ptr %2, i64 %indvars.iv142
  %165 = load double, ptr %164, align 8, !tbaa !17
  %166 = getelementptr inbounds double, ptr %1, i64 %indvars.iv142
  %167 = load double, ptr %166, align 8, !tbaa !17
  %168 = tail call double @llvm.fmuladd.f64(double %.us-phi, double %165, double %167)
  store double %168, ptr %166, align 8, !tbaa !17
  %indvars.iv.next143 = add nuw nsw i64 %indvars.iv142, 1
  %169 = getelementptr inbounds double, ptr %2, i64 %indvars.iv.next143
  %170 = load double, ptr %169, align 8, !tbaa !17
  %171 = getelementptr inbounds double, ptr %1, i64 %indvars.iv.next143
  %172 = load double, ptr %171, align 8, !tbaa !17
  %173 = tail call double @llvm.fmuladd.f64(double %.us-phi, double %170, double %172)
  store double %173, ptr %171, align 8, !tbaa !17
  %indvars.iv.next143.1 = add nuw nsw i64 %indvars.iv142, 2
  %exitcond146.not.1 = icmp eq i64 %indvars.iv.next143.1, %wide.trip.count145
  br i1 %exitcond146.not.1, label %._crit_edge121, label %.lr.ph120, !llvm.loop !41

._crit_edge121:                                   ; preds = %.lr.ph120.prol.loopexit, %.lr.ph120, %middle.block171, %.preheader
  %174 = fmul double %.us-phi, %.us-phi
  %175 = fmul double %.us-phi, 2.000000e+00
  %176 = extractelement <2 x double> %74, i64 0
  %177 = fmul double %176, %175
  %178 = extractelement <2 x double> %74, i64 1
  %179 = tail call double @llvm.fmuladd.f64(double %174, double %178, double %177)
  %180 = load double, ptr %77, align 8, !tbaa !25
  %181 = fadd double %179, %180
  store double %181, ptr %77, align 8, !tbaa !25
  br label %182

182:                                              ; preds = %._crit_edge121, %.thread99
  %.081 = phi double [ 0.000000e+00, %.thread99 ], [ %.us-phi, %._crit_edge121 ]
  ret double %.081
}

; 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 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 nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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, !12, i64 0}
!14 = !{!"_ZTS7problem", !12, i64 0, !12, i64 4, !8, i64 8, !8, i64 16, !11, i64 24}
!15 = !{!16, !16, i64 0}
!16 = !{!"vtable pointer", !10, i64 0}
!17 = !{!11, !11, i64 0}
!18 = !{!6, !8, i64 32}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = !{!6, !12, i64 48}
!22 = distinct !{!22, !20}
!23 = !{!6, !8, i64 24}
!24 = distinct !{!24, !20}
!25 = !{!6, !11, i64 40}
!26 = !{!27}
!27 = distinct !{!27, !28}
!28 = distinct !{!28, !"LVerDomain"}
!29 = !{!30}
!30 = distinct !{!30, !28}
!31 = distinct !{!31, !20, !32, !33}
!32 = !{!"llvm.loop.isvectorized", i32 1}
!33 = !{!"llvm.loop.unroll.runtime.disable"}
!34 = !{!35}
!35 = distinct !{!35, !36}
!36 = distinct !{!36, !"LVerDomain"}
!37 = !{!38}
!38 = distinct !{!38, !36}
!39 = distinct !{!39, !20, !32, !33}
!40 = distinct !{!40, !20, !32}
!41 = distinct !{!41, !20, !32}


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