; LLVM IR from bjack205/altro :: src/linesearch (linesearch)

; 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.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%struct.CubicSpline = type { double, double, double, double, double }
%"class.std::function" = type { %"class.std::_Function_base", ptr }
%"class.std::_Function_base" = type { %"union.std::_Any_data", ptr }
%"union.std::_Any_data" = type { %"union.std::_Nocopy_types" }
%"union.std::_Nocopy_types" = type { { i64, i64 } }
%"class.linesearch::CubicLineSearch" = type <{ i32, [4 x i8], double, double, double, double, i8, i8, [2 x i8], i32, double, double, i32, [4 x i8], double, double, double, double, double, double, double, double, i8, i8, i8, [5 x i8] }>

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [52 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [54 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [35 x i8], align 1

; 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
define dso_local noundef double @_ZN10linesearch15CubicLineSearch3RunESt8functionIFvdPdS2_EEddd(ptr noundef nonnull align 8 dereferenceable(139) %0, ptr noundef %1, double noundef %2, double noundef %3, double noundef %4) #1 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca double, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca double, align 8
  %10 = alloca double, align 8
  %11 = alloca double, align 8
  %12 = alloca double, align 8
  %13 = alloca double, align 8
  %14 = alloca double, align 8
  %15 = alloca double, align 8
  %16 = alloca double, align 8
  %17 = alloca double, align 8
  %18 = alloca i8, align 1
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i8, align 1
  %24 = alloca i8, align 1
  %25 = alloca i8, align 1
  %26 = alloca i32, align 4
  %27 = alloca %struct.CubicSpline, align 8
  %28 = alloca i8, align 1
  %29 = alloca double, align 8
  %30 = alloca double, align 8
  %31 = alloca double, align 8
  %32 = alloca i8, align 1
  %33 = alloca i8, align 1
  %34 = alloca %"class.std::function", align 8
  %35 = alloca ptr, align 8
  %36 = alloca i32, align 4
  %37 = alloca double, align 8
  %38 = alloca double, align 8
  %39 = alloca %"class.std::function", align 8
  %40 = alloca double, align 8
  %41 = alloca double, align 8
  %42 = alloca %"class.std::function", align 8
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store double %2, ptr %9, align 8, !tbaa !9
  store double %3, ptr %10, align 8, !tbaa !9
  store double %4, ptr %11, align 8, !tbaa !9
  %43 = load ptr, ptr %7, align 8
  %44 = load double, ptr %10, align 8, !tbaa !9
  %45 = getelementptr inbounds %"class.linesearch::CubicLineSearch", ptr %43, i32 0, i32 14
  store double %44, ptr %45, align 8, !tbaa !11
  %46 = load double, ptr %11, align 8, !tbaa !9
  %47 = getelementptr inbounds %"class.linesearch::CubicLineSearch", ptr %43, i32 0, i32 18
  store double %46, ptr %47, align 8, !tbaa !16
  %48 = getelementptr inbounds %"class.linesearch::CubicLineSearch", ptr %43, i32 0, i32 12
  store i32 0, ptr %48, align 8, !tbaa !17
  %49 = getelementptr inbounds %"class.linesearch::CubicLineSearch", ptr %43, i32 0, i32 22
  store i8 0, ptr %49, align 8, !tbaa !18
  %50 = getelementptr inbounds %"class.linesearch::CubicLineSearch", ptr %43, i32 0, i32 23
  store i8 0, ptr %50, align 1, !tbaa !19
  %51 = getelementptr inbounds %"class.linesearch::CubicLineSearch", ptr %43, i32 0, i32 9
  store i32 0, ptr %51, align 4, !tbaa !20
  %52 = load double, ptr %11, align 8, !tbaa !9
  %53 = fcmp oge double %52, 0.000000e+00
  br i1 %53, label %54, label %56

54:                                               ; preds = %5
  %55 = getelementptr inbounds %"class.linesearch::CubicLineSearch", ptr %43, i32 0, i32 9
  store i32 3, ptr %55, align 4, !tbaa !20
  store double 0.000000e+00, ptr %6, align 8
  br label %437

56:                                               ; preds = %5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  store double 0.000000e+00, ptr %12, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  %57 = load double, ptr %10, align 8, !tbaa !9
  store double %57, ptr %13, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  %58 = load double, ptr %11, align 8, !tbaa !9
  store double %58, ptr %14, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  %59 = load double, ptr %9, align 8, !tbaa !9
  store double %59, ptr %15, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  %60 = getelementptr inbounds %"class.linesearch::CubicLineSearch", ptr %43, i32 0, i32 10
  %61 = load double, ptr %60, align 8, !tbaa !21
  store double %61, ptr %16, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  %62 = getelementptr inbounds %"class.linesearch::CubicLineSearch", ptr %43, i32 0, i32 11
  %63 = load double, ptr %62, align 8, !tbaa !22
  store double %63, ptr %17, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %18) #6
  store i8 0, ptr %18, align 1, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #6
  %64 = getelementptr inbounds %"class.linesearch::CubicLineSearch", ptr %43, i32 0, i32 15
  store ptr %64, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #6
  %65 = getelementptr inbounds %"class.linesearch::CubicLineSearch", ptr %43, i32 0, i32 19
  store ptr %65, ptr %20, align 8, !tbaa !5
  %66 = getelementptr inbounds %"class.linesearch::CubicLineSearch", ptr %43, i32 0, i32 24
  %67 = load i8, ptr %66, align 2, !tbaa !24, !range !25, !noundef !26
  %68 = trunc i8 %67 to i1
  br i1 %68, label %69, label %77

69:                                               ; preds = %56
  %70 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str)
  %71 = load double, ptr %10, align 8, !tbaa !9
  %72 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %70, double noundef %71)
  %73 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %72, ptr noundef @.str.1)
  %74 = load double, ptr %11, align 8, !tbaa !9
  %75 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %73, double noundef %74)
  %76 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %75, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %77

77:                                               ; preds = %69, %56
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #6
  store i32 0, ptr %21, align 4, !tbaa !27
  br label %78

78:                                               ; preds = %428, %77
  %79 = load i32, ptr %21, align 4, !tbaa !27
  %80 = getelementptr inbounds %"class.linesearch::CubicLineSearch", ptr %43, i32 0, i32 0
  %81 = load i32, ptr %80, align 8, !tbaa !28
  %82 = icmp slt i32 %79, %81
  br i1 %82, label %84, label %83

83:                                               ; preds = %78
  store i32 2, ptr %22, align 4
  br label %432

84:                                               ; preds = %78
  %85 = getelementptr inbounds %"class.linesearch::CubicLineSearch", ptr %43, i32 0, i32 12
  %86 = load i32, ptr %85, align 8, !tbaa !17
  %87 = add nsw i32 %86, 1
  store i32 %87, ptr %85, align 8, !tbaa !17
  %88 = load double, ptr %15, align 8, !tbaa !9
  %89 = load ptr, ptr %19, align 8, !tbaa !5
  %90 = load ptr, ptr %20, align 8, !tbaa !5
  call void @_ZNKSt8functionIFvdPdS0_EEclEdS0_S0_(ptr noundef nonnull align 8 dereferenceable(32) %1, double noundef %88, ptr noundef %89, ptr noundef %90)
  call void @llvm.lifetime.start.p0(i64 1, ptr %23) #6
  %91 = load ptr, ptr %19, align 8, !tbaa !5
  %92 = load double, ptr %91, align 8, !tbaa !9
  %93 = load double, ptr %10, align 8, !tbaa !9
  %94 = load double, ptr %16, align 8, !tbaa !9
  %95 = load double, ptr %15, align 8, !tbaa !9
  %96 = fmul double %94, %95
  %97 = load double, ptr %11, align 8, !tbaa !9
  %98 = call double @llvm.fmuladd.f64(double %96, double %97, double %93)
  %99 = fcmp ole double %92, %98
  %100 = zext i1 %99 to i8
  store i8 %100, ptr %23, align 1, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 1, ptr %24) #6
  %101 = load ptr, ptr %19, align 8, !tbaa !5
  %102 = load double, ptr %101, align 8, !tbaa !9
  %103 = load double, ptr %13, align 8, !tbaa !9
  %104 = fcmp oge double %102, %103
  %105 = zext i1 %104 to i8
  store i8 %105, ptr %24, align 1, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 1, ptr %25) #6
  %106 = load ptr, ptr %20, align 8, !tbaa !5
  %107 = load double, ptr %106, align 8, !tbaa !9
  %108 = call double @llvm.fabs.f64(double %107)
  %109 = load double, ptr %17, align 8, !tbaa !9
  %110 = fneg double %109
  %111 = load double, ptr %11, align 8, !tbaa !9
  %112 = fmul double %110, %111
  %113 = fcmp ole double %108, %112
  %114 = zext i1 %113 to i8
  store i8 %114, ptr %25, align 1, !tbaa !23
  %115 = getelementptr inbounds %"class.linesearch::CubicLineSearch", ptr %43, i32 0, i32 24
  %116 = load i8, ptr %115, align 2, !tbaa !24, !range !25, !noundef !26
  %117 = trunc i8 %116 to i1
  br i1 %117, label %118, label %142

118:                                              ; preds = %84
  %119 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.2)
  %120 = load i32, ptr %21, align 4, !tbaa !27
  %121 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %119, i32 noundef %120)
  %122 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %121, ptr noundef @.str.3)
  %123 = load double, ptr %15, align 8, !tbaa !9
  %124 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %122, double noundef %123)
  %125 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %124, ptr noundef @.str.4)
  %126 = load ptr, ptr %19, align 8, !tbaa !5
  %127 = load double, ptr %126, align 8, !tbaa !9
  %128 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %125, double noundef %127)
  %129 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %128, ptr noundef @.str.5)
  %130 = load ptr, ptr %20, align 8, !tbaa !5
  %131 = load double, ptr %130, align 8, !tbaa !9
  %132 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %129, double noundef %131)
  %133 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %132, ptr noundef @.str.6)
  %134 = load i8, ptr %23, align 1, !tbaa !23, !range !25, !noundef !26
  %135 = trunc i8 %134 to i1
  %136 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEb(ptr noundef nonnull align 8 dereferenceable(8) %133, i1 noundef zeroext %135)
  %137 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %136, ptr noundef @.str.7)
  %138 = load i8, ptr %25, align 1, !tbaa !23, !range !25, !noundef !26
  %139 = trunc i8 %138 to i1
  %140 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEb(ptr noundef nonnull align 8 dereferenceable(8) %137, i1 noundef zeroext %139)
  %141 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %140, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %142

142:                                              ; preds = %118, %84
  %143 = load i8, ptr %23, align 1, !tbaa !23, !range !25, !noundef !26
  %144 = trunc i8 %143 to i1
  br i1 %144, label %145, label %159

145:                                              ; preds = %142
  %146 = load i8, ptr %25, align 1, !tbaa !23, !range !25, !noundef !26
  %147 = trunc i8 %146 to i1
  br i1 %147, label %148, label %159

148:                                              ; preds = %145
  %149 = getelementptr inbounds %"class.linesearch::CubicLineSearch", ptr %43, i32 0, i32 24
  %150 = load i8, ptr %149, align 2, !tbaa !24, !range !25, !noundef !26
  %151 = trunc i8 %150 to i1
  br i1 %151, label %152, label %154

152:                                              ; preds = %148
  %153 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.8)
  br label %154

154:                                              ; preds = %152, %148
  %155 = getelementptr inbounds %"class.linesearch::CubicLineSearch", ptr %43, i32 0, i32 22
  store i8 1, ptr %155, align 8, !tbaa !18
  %156 = getelementptr inbounds %"class.linesearch::CubicLineSearch", ptr %43, i32 0, i32 23
  store i8 1, ptr %156, align 1, !tbaa !19
  %157 = getelementptr inbounds %"class.linesearch::CubicLineSearch", ptr %43, i32 0, i32 9
  store i32 1, ptr %157, align 4, !tbaa !20
  %158 = load double, ptr %15, align 8, !tbaa !9
  store double %158, ptr %6, align 8
  store i32 1, ptr %22, align 4
  br label %425

159:                                              ; preds = %145, %142
  %160 = load i32, ptr %21, align 4, !tbaa !27
  %161 = icmp eq i32 %160, 0
  br i1 %161, label %162, label %278

162:                                              ; preds = %159
  %163 = getelementptr inbounds %"class.linesearch::CubicLineSearch", ptr %43, i32 0, i32 6
  %164 = load i8, ptr %163, align 8, !tbaa !29, !range !25, !noundef !26
  %165 = trunc i8 %164 to i1
  br i1 %165, label %166, label %278

166:                                              ; preds = %162
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #6
  call void @llvm.lifetime.start.p0(i64 40, ptr %27) #6
  %167 = load double, ptr %10, align 8, !tbaa !9
  %168 = load double, ptr %11, align 8, !tbaa !9
  %169 = load double, ptr %15, align 8, !tbaa !9
  %170 = load ptr, ptr %19, align 8, !tbaa !5
  %171 = load double, ptr %170, align 8, !tbaa !9
  %172 = load ptr, ptr %20, align 8, !tbaa !5
  %173 = load double, ptr %172, align 8, !tbaa !9
  call void @CubicSpline_From2Points(ptr dead_on_unwind writable sret(%struct.CubicSpline) align 8 %27, double noundef 0.000000e+00, double noundef %167, double noundef %168, double noundef %169, double noundef %171, double noundef %173, ptr noundef %26)
  call void @llvm.lifetime.start.p0(i64 1, ptr %28) #6
  store i8 1, ptr %28, align 1, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #6
  %174 = load i32, ptr %26, align 4, !tbaa !30
  %175 = icmp eq i32 %174, 0
  br i1 %175, label %176, label %197

176:                                              ; preds = %166
  %177 = call double @CubicSpline_ArgMin(ptr noundef %27, ptr noundef %26)
  store double %177, ptr %29, align 8, !tbaa !9
  %178 = load i32, ptr %26, align 4, !tbaa !30
  %179 = icmp eq i32 %178, 1
  br i1 %179, label %180, label %196

180:                                              ; preds = %176
  %181 = load double, ptr %29, align 8, !tbaa !9
  %182 = call noundef zeroext i1 @_ZSt8isfinited(double noundef %181)
  br i1 %182, label %183, label %196

183:                                              ; preds = %180
  %184 = getelementptr inbounds %"class.linesearch::CubicLineSearch", ptr %43, i32 0, i32 24
  %185 = load i8, ptr %184, align 2, !tbaa !24, !range !25, !noundef !26
  %186 = trunc i8 %185 to i1
  br i1 %186, label %187, label %195

187:                                              ; preds = %183
  %188 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.9)
  %189 = load double, ptr %15, align 8, !tbaa !9
  %190 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %188, double noundef %189)
  %191 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %190, ptr noundef @.str.10)
  %192 = load double, ptr %29, align 8, !tbaa !9
  %193 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %191, double noundef %192)
  %194 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %193, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %195

195:                                              ; preds = %187, %183
  store i8 0, ptr %28, align 1, !tbaa !23
  br label %196

196:                                              ; preds = %195, %180, %176
  br label %197

197:                                              ; preds = %196, %166
  %198 = load i8, ptr %28, align 1, !tbaa !23, !range !25, !noundef !26
  %199 = trunc i8 %198 to i1
  br i1 %199, label %274, label %200

200:                                              ; preds = %197
  %201 = getelementptr inbounds %"class.linesearch::CubicLineSearch", ptr %43, i32 0, i32 12
  %202 = load i32, ptr %201, align 8, !tbaa !17
  %203 = add nsw i32 %202, 1
  store i32 %203, ptr %201, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #6
  %204 = load i32, ptr %21, align 4, !tbaa !27
  %205 = add nsw i32 %204, 1
  store i32 %205, ptr %21, align 4, !tbaa !27
  %206 = load double, ptr %29, align 8, !tbaa !9
  call void @_ZNKSt8functionIFvdPdS0_EEclEdS0_S0_(ptr noundef nonnull align 8 dereferenceable(32) %1, double noundef %206, ptr noundef %30, ptr noundef %31)
  call void @llvm.lifetime.start.p0(i64 1, ptr %32) #6
  %207 = load double, ptr %30, align 8, !tbaa !9
  %208 = load double, ptr %10, align 8, !tbaa !9
  %209 = load double, ptr %16, align 8, !tbaa !9
  %210 = load double, ptr %29, align 8, !tbaa !9
  %211 = fmul double %209, %210
  %212 = load double, ptr %11, align 8, !tbaa !9
  %213 = call double @llvm.fmuladd.f64(double %211, double %212, double %208)
  %214 = fcmp ole double %207, %213
  %215 = zext i1 %214 to i8
  store i8 %215, ptr %32, align 1, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 1, ptr %33) #6
  %216 = load double, ptr %31, align 8, !tbaa !9
  %217 = call double @llvm.fabs.f64(double %216)
  %218 = load double, ptr %17, align 8, !tbaa !9
  %219 = fneg double %218
  %220 = load double, ptr %11, align 8, !tbaa !9
  %221 = fmul double %219, %220
  %222 = fcmp ole double %217, %221
  %223 = zext i1 %222 to i8
  store i8 %223, ptr %33, align 1, !tbaa !23
  %224 = getelementptr inbounds %"class.linesearch::CubicLineSearch", ptr %43, i32 0, i32 24
  %225 = load i8, ptr %224, align 2, !tbaa !24, !range !25, !noundef !26
  %226 = trunc i8 %225 to i1
  br i1 %226, label %227, label %249

227:                                              ; preds = %200
  %228 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.2)
  %229 = load i32, ptr %21, align 4, !tbaa !27
  %230 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %228, i32 noundef %229)
  %231 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %230, ptr noundef @.str.3)
  %232 = load double, ptr %29, align 8, !tbaa !9
  %233 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %231, double noundef %232)
  %234 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %233, ptr noundef @.str.4)
  %235 = load double, ptr %30, align 8, !tbaa !9
  %236 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %234, double noundef %235)
  %237 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %236, ptr noundef @.str.5)
  %238 = load double, ptr %31, align 8, !tbaa !9
  %239 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %237, double noundef %238)
  %240 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %239, ptr noundef @.str.6)
  %241 = load i8, ptr %32, align 1, !tbaa !23, !range !25, !noundef !26
  %242 = trunc i8 %241 to i1
  %243 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEb(ptr noundef nonnull align 8 dereferenceable(8) %240, i1 noundef zeroext %242)
  %244 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %243, ptr noundef @.str.7)
  %245 = load i8, ptr %33, align 1, !tbaa !23, !range !25, !noundef !26
  %246 = trunc i8 %245 to i1
  %247 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEb(ptr noundef nonnull align 8 dereferenceable(8) %244, i1 noundef zeroext %246)
  %248 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %247, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %249

249:                                              ; preds = %227, %200
  %250 = load i8, ptr %32, align 1, !tbaa !23, !range !25, !noundef !26
  %251 = trunc i8 %250 to i1
  br i1 %251, label %252, label %270

252:                                              ; preds = %249
  %253 = load i8, ptr %33, align 1, !tbaa !23, !range !25, !noundef !26
  %254 = trunc i8 %253 to i1
  br i1 %254, label %255, label %270

255:                                              ; preds = %252
  %256 = getelementptr inbounds %"class.linesearch::CubicLineSearch", ptr %43, i32 0, i32 24
  %257 = load i8, ptr %256, align 2, !tbaa !24, !range !25, !noundef !26
  %258 = trunc i8 %257 to i1
  br i1 %258, label %259, label %261

259:                                              ; preds = %255
  %260 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.8)
  br label %261

261:                                              ; preds = %259, %255
  %262 = load double, ptr %30, align 8, !tbaa !9
  %263 = getelementptr inbounds %"class.linesearch::CubicLineSearch", ptr %43, i32 0, i32 15
  store double %262, ptr %263, align 8, !tbaa !32
  %264 = load double, ptr %31, align 8, !tbaa !9
  %265 = getelementptr inbounds %"class.linesearch::CubicLineSearch", ptr %43, i32 0, i32 19
  store double %264, ptr %265, align 8, !tbaa !33
  %266 = getelementptr inbounds %"class.linesearch::CubicLineSearch", ptr %43, i32 0, i32 22
  store i8 1, ptr %266, align 8, !tbaa !18
  %267 = getelementptr inbounds %"class.linesearch::CubicLineSearch", ptr %43, i32 0, i32 23
  store i8 1, ptr %267, align 1, !tbaa !19
  %268 = getelementptr inbounds %"class.linesearch::CubicLineSearch", ptr %43, i32 0, i32 9
  store i32 1, ptr %268, align 4, !tbaa !20
  %269 = load double, ptr %29, align 8, !tbaa !9
  store double %269, ptr %6, align 8
  store i32 1, ptr %22, align 4
  br label %271

270:                                              ; preds = %252, %249
  store i32 0, ptr %22, align 4
  br label %271

271:                                              ; preds = %270, %261
  call void @llvm.lifetime.end.p0(i64 1, ptr %33) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %32) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #6
  %272 = load i32, ptr %22, align 4
  switch i32 %272, label %275 [
    i32 0, label %273
  ]

273:                                              ; preds = %271
  br label %274

274:                                              ; preds = %273, %197
  store i32 0, ptr %22, align 4
  br label %275

275:                                              ; preds = %274, %271
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %28) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr %27) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #6
  %276 = load i32, ptr %22, align 4
  switch i32 %276, label %425 [
    i32 0, label %277
  ]

277:                                              ; preds = %275
  br label %278

278:                                              ; preds = %277, %162, %159
  br label %279

279:                                              ; preds = %278
  %280 = getelementptr inbounds %"class.linesearch::CubicLineSearch", ptr %43, i32 0, i32 7
  %281 = load i8, ptr %280, align 1, !tbaa !34, !range !25, !noundef !26
  %282 = trunc i8 %281 to i1
  br i1 %282, label %283, label %294

283:                                              ; preds = %279
  call void @_ZNSt8functionIFvdPdS0_EEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(32) %34, ptr noundef nonnull align 8 dereferenceable(32) %1)
  %284 = load double, ptr %9, align 8, !tbaa !9
  %285 = getelementptr inbounds %"class.linesearch::CubicLineSearch", ptr %43, i32 0, i32 4
  %286 = load double, ptr %285, align 8, !tbaa !35
  %287 = fmul double %284, %286
  %288 = invoke noundef double @_ZN10linesearch15CubicLineSearch18SimpleBacktrackingESt8functionIFvdPdS2_EEd(ptr noundef nonnull align 8 dereferenceable(139) %43, ptr noundef %34, double noundef %287)
          to label %289 unwind label %290

289:                                              ; preds = %283
  store double %288, ptr %6, align 8
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %34) #6
  store i32 1, ptr %22, align 4
  br label %425

290:                                              ; preds = %283
  %291 = landingpad { ptr, i32 }
          cleanup
  %292 = extractvalue { ptr, i32 } %291, 0
  store ptr %292, ptr %35, align 8
  %293 = extractvalue { ptr, i32 } %291, 1
  store i32 %293, ptr %36, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %34) #6
  br label %431

294:                                              ; preds = %279
  %295 = load i8, ptr %23, align 1, !tbaa !23, !range !25, !noundef !26
  %296 = trunc i8 %295 to i1
  br i1 %296, label %297, label %303

297:                                              ; preds = %294
  %298 = load i32, ptr %21, align 4, !tbaa !27
  %299 = icmp sgt i32 %298, 0
  br i1 %299, label %300, label %346

300:                                              ; preds = %297
  %301 = load i8, ptr %24, align 1, !tbaa !23, !range !25, !noundef !26
  %302 = trunc i8 %301 to i1
  br i1 %302, label %303, label %346

303:                                              ; preds = %300, %294
  %304 = getelementptr inbounds %"class.linesearch::CubicLineSearch", ptr %43, i32 0, i32 24
  %305 = load i8, ptr %304, align 2, !tbaa !24, !range !25, !noundef !26
  %306 = trunc i8 %305 to i1
  br i1 %306, label %307, label %325

307:                                              ; preds = %303
  %308 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.11)
  %309 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.12)
  %310 = load i8, ptr %23, align 1, !tbaa !23, !range !25, !noundef !26
  %311 = trunc i8 %310 to i1
  %312 = xor i1 %311, true
  %313 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEb(ptr noundef nonnull align 8 dereferenceable(8) %309, i1 noundef zeroext %312)
  %314 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %313, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %315 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.13)
  %316 = load i32, ptr %21, align 4, !tbaa !27
  %317 = icmp sgt i32 %316, 0
  br i1 %317, label %318, label %321

318:                                              ; preds = %307
  %319 = load i8, ptr %24, align 1, !tbaa !23, !range !25, !noundef !26
  %320 = trunc i8 %319 to i1
  br label %321

321:                                              ; preds = %318, %307
  %322 = phi i1 [ false, %307 ], [ %320, %318 ]
  %323 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEb(ptr noundef nonnull align 8 dereferenceable(8) %315, i1 noundef zeroext %322)
  %324 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %323, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %325

325:                                              ; preds = %321, %303
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #6
  %326 = load double, ptr %12, align 8, !tbaa !9
  store double %326, ptr %37, align 8, !tbaa !9
  %327 = load double, ptr %13, align 8, !tbaa !9
  %328 = getelementptr inbounds %"class.linesearch::CubicLineSearch", ptr %43, i32 0, i32 16
  store double %327, ptr %328, align 8, !tbaa !36
  %329 = load double, ptr %14, align 8, !tbaa !9
  %330 = getelementptr inbounds %"class.linesearch::CubicLineSearch", ptr %43, i32 0, i32 20
  store double %329, ptr %330, align 8, !tbaa !37
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #6
  %331 = load double, ptr %15, align 8, !tbaa !9
  store double %331, ptr %38, align 8, !tbaa !9
  %332 = load ptr, ptr %19, align 8, !tbaa !5
  %333 = load double, ptr %332, align 8, !tbaa !9
  %334 = getelementptr inbounds %"class.linesearch::CubicLineSearch", ptr %43, i32 0, i32 17
  store double %333, ptr %334, align 8, !tbaa !38
  %335 = load ptr, ptr %20, align 8, !tbaa !5
  %336 = load double, ptr %335, align 8, !tbaa !9
  %337 = getelementptr inbounds %"class.linesearch::CubicLineSearch", ptr %43, i32 0, i32 21
  store double %336, ptr %337, align 8, !tbaa !39
  call void @_ZNSt8functionIFvdPdS0_EEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(32) %39, ptr noundef nonnull align 8 dereferenceable(32) %1)
  %338 = load double, ptr %37, align 8, !tbaa !9
  %339 = load double, ptr %38, align 8, !tbaa !9
  %340 = invoke noundef double @_ZN10linesearch15CubicLineSearch4ZoomESt8functionIFvdPdS2_EEdd(ptr noundef nonnull align 8 dereferenceable(139) %43, ptr noundef %39, double noundef %338, double noundef %339)
          to label %341 unwind label %342

341:                                              ; preds = %325
  store double %340, ptr %6, align 8
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %39) #6
  store i32 1, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #6
  br label %425

342:                                              ; preds = %325
  %343 = landingpad { ptr, i32 }
          cleanup
  %344 = extractvalue { ptr, i32 } %343, 0
  store ptr %344, ptr %35, align 8
  %345 = extractvalue { ptr, i32 } %343, 1
  store i32 %345, ptr %36, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %39) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #6
  br label %431

346:                                              ; preds = %300, %297
  %347 = load ptr, ptr %20, align 8, !tbaa !5
  %348 = load double, ptr %347, align 8, !tbaa !9
  %349 = fcmp oge double %348, 0.000000e+00
  br i1 %349, label %350, label %383

350:                                              ; preds = %346
  call void @llvm.lifetime.start.p0(i64 8, ptr %40) #6
  %351 = load double, ptr %15, align 8, !tbaa !9
  store double %351, ptr %40, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %41) #6
  %352 = load double, ptr %12, align 8, !tbaa !9
  store double %352, ptr %41, align 8, !tbaa !9
  %353 = load ptr, ptr %19, align 8, !tbaa !5
  %354 = load double, ptr %353, align 8, !tbaa !9
  %355 = getelementptr inbounds %"class.linesearch::CubicLineSearch", ptr %43, i32 0, i32 16
  store double %354, ptr %355, align 8, !tbaa !36
  %356 = load ptr, ptr %20, align 8, !tbaa !5
  %357 = load double, ptr %356, align 8, !tbaa !9
  %358 = getelementptr inbounds %"class.linesearch::CubicLineSearch", ptr %43, i32 0, i32 20
  store double %357, ptr %358, align 8, !tbaa !37
  %359 = load double, ptr %13, align 8, !tbaa !9
  %360 = getelementptr inbounds %"class.linesearch::CubicLineSearch", ptr %43, i32 0, i32 17
  store double %359, ptr %360, align 8, !tbaa !38
  %361 = load double, ptr %14, align 8, !tbaa !9
  %362 = getelementptr inbounds %"class.linesearch::CubicLineSearch", ptr %43, i32 0, i32 21
  store double %361, ptr %362, align 8, !tbaa !39
  %363 = getelementptr inbounds %"class.linesearch::CubicLineSearch", ptr %43, i32 0, i32 24
  %364 = load i8, ptr %363, align 2, !tbaa !24, !range !25, !noundef !26
  %365 = trunc i8 %364 to i1
  br i1 %365, label %366, label %374

366:                                              ; preds = %350
  %367 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.14)
  %368 = load double, ptr %41, align 8, !tbaa !9
  %369 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %367, double noundef %368)
  %370 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %369, ptr noundef @.str.15)
  %371 = load double, ptr %40, align 8, !tbaa !9
  %372 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %370, double noundef %371)
  %373 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %372, ptr noundef @.str.16)
  br label %374

374:                                              ; preds = %366, %350
  call void @_ZNSt8functionIFvdPdS0_EEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(32) %42, ptr noundef nonnull align 8 dereferenceable(32) %1)
  %375 = load double, ptr %40, align 8, !tbaa !9
  %376 = load double, ptr %41, align 8, !tbaa !9
  %377 = invoke noundef double @_ZN10linesearch15CubicLineSearch4ZoomESt8functionIFvdPdS2_EEdd(ptr noundef nonnull align 8 dereferenceable(139) %43, ptr noundef %42, double noundef %375, double noundef %376)
          to label %378 unwind label %379

378:                                              ; preds = %374
  store double %377, ptr %6, align 8
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %42) #6
  store i32 1, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #6
  br label %425

379:                                              ; preds = %374
  %380 = landingpad { ptr, i32 }
          cleanup
  %381 = extractvalue { ptr, i32 } %380, 0
  store ptr %381, ptr %35, align 8
  %382 = extractvalue { ptr, i32 } %380, 1
  store i32 %382, ptr %36, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %42) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #6
  br label %431

383:                                              ; preds = %346
  %384 = load double, ptr %15, align 8, !tbaa !9
  store double %384, ptr %12, align 8, !tbaa !9
  %385 = load double, ptr %15, align 8, !tbaa !9
  %386 = getelementptr inbounds %"class.linesearch::CubicLineSearch", ptr %43, i32 0, i32 3
  %387 = load double, ptr %386, align 8, !tbaa !40
  %388 = fmul double %385, %387
  store double %388, ptr %15, align 8, !tbaa !9
  %389 = load double, ptr %15, align 8, !tbaa !9
  %390 = getelementptr inbounds %"class.linesearch::CubicLineSearch", ptr %43, i32 0, i32 2
  %391 = load double, ptr %390, align 8, !tbaa !41
  %392 = fcmp ogt double %389, %391
  br i1 %392, label %393, label %411

393:                                              ; preds = %383
  %394 = getelementptr inbounds %"class.linesearch::CubicLineSearch", ptr %43, i32 0, i32 2
  %395 = load double, ptr %394, align 8, !tbaa !41
  store double %395, ptr %15, align 8, !tbaa !9
  %396 = load i8, ptr %18, align 1, !tbaa !23, !range !25, !noundef !26
  %397 = trunc i8 %396 to i1
  br i1 %397, label %398, label %409

398:                                              ; preds = %393
  %399 = getelementptr inbounds %"class.linesearch::CubicLineSearch", ptr %43, i32 0, i32 9
  store i32 7, ptr %399, align 4, !tbaa !20
  %400 = load i8, ptr %23, align 1, !tbaa !23, !range !25, !noundef !26
  %401 = trunc i8 %400 to i1
  %402 = getelementptr inbounds %"class.linesearch::CubicLineSearch", ptr %43, i32 0, i32 22
  %403 = zext i1 %401 to i8
  store i8 %403, ptr %402, align 8, !tbaa !18
  %404 = load i8, ptr %25, align 1, !tbaa !23, !range !25, !noundef !26
  %405 = trunc i8 %404 to i1
  %406 = getelementptr inbounds %"class.linesearch::CubicLineSearch", ptr %43, i32 0, i32 23
  %407 = zext i1 %405 to i8
  store i8 %407, ptr %406, align 1, !tbaa !19
  %408 = load double, ptr %15, align 8, !tbaa !9
  store double %408, ptr %6, align 8
  store i32 1, ptr %22, align 4
  br label %425

409:                                              ; preds = %393
  store i8 1, ptr %18, align 1, !tbaa !23
  br label %410

410:                                              ; preds = %409
  br label %411

411:                                              ; preds = %410, %383
  %412 = getelementptr inbounds %"class.linesearch::CubicLineSearch", ptr %43, i32 0, i32 24
  %413 = load i8, ptr %412, align 2, !tbaa !24, !range !25, !noundef !26
  %414 = trunc i8 %413 to i1
  br i1 %414, label %415, label %420

415:                                              ; preds = %411
  %416 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.17)
  %417 = load double, ptr %15, align 8, !tbaa !9
  %418 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %416, double noundef %417)
  %419 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %418, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %420

420:                                              ; preds = %415, %411
  %421 = load ptr, ptr %19, align 8, !tbaa !5
  %422 = load double, ptr %421, align 8, !tbaa !9
  store double %422, ptr %13, align 8, !tbaa !9
  %423 = load ptr, ptr %20, align 8, !tbaa !5
  %424 = load double, ptr %423, align 8, !tbaa !9
  store double %424, ptr %14, align 8, !tbaa !9
  store i32 0, ptr %22, align 4
  br label %425

425:                                              ; preds = %420, %398, %378, %341, %289, %275, %154
  call void @llvm.lifetime.end.p0(i64 1, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #6
  %426 = load i32, ptr %22, align 4
  switch i32 %426, label %432 [
    i32 0, label %427
  ]

427:                                              ; preds = %425
  br label %428

428:                                              ; preds = %427
  %429 = load i32, ptr %21, align 4, !tbaa !27
  %430 = add nsw i32 %429, 1
  store i32 %430, ptr %21, align 4, !tbaa !27
  br label %78, !llvm.loop !42

431:                                              ; preds = %379, %342, %290
  call void @llvm.lifetime.end.p0(i64 1, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  br label %439

432:                                              ; preds = %425, %83
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  %433 = load i32, ptr %22, align 4
  switch i32 %433, label %436 [
    i32 2, label %434
  ]

434:                                              ; preds = %432
  %435 = load double, ptr %15, align 8, !tbaa !9
  store double %435, ptr %6, align 8
  store i32 1, ptr %22, align 4
  br label %436

436:                                              ; preds = %434, %432
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  br label %437

437:                                              ; preds = %436, %54
  %438 = load double, ptr %6, align 8
  ret double %438

439:                                              ; preds = %431
  %440 = load ptr, ptr %35, align 8
  %441 = load i32, ptr %36, align 4
  %442 = insertvalue { ptr, i32 } poison, ptr %440, 0
  %443 = insertvalue { ptr, i32 } %442, i32 %441, 1
  resume { ptr, i32 } %443
}

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #2

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8), double noundef) #1 align 2

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNKSt8functionIFvdPdS0_EEclEdS0_S0_(ptr noundef nonnull align 8 dereferenceable(32), double noundef, 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) #3

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

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #4

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEb(ptr noundef nonnull align 8 dereferenceable(8), i1 noundef zeroext) #1 align 2

declare void @CubicSpline_From2Points(ptr dead_on_unwind writable sret(%struct.CubicSpline) align 8, double noundef, double noundef, double noundef, double noundef, double noundef, double noundef, ptr noundef) #4

declare double @CubicSpline_ArgMin(ptr noundef, ptr noundef) #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZSt8isfinited(double noundef) #5

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_ZN10linesearch15CubicLineSearch18SimpleBacktrackingESt8functionIFvdPdS2_EEd(ptr noundef nonnull align 8 dereferenceable(139), ptr noundef, double noundef) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt8functionIFvdPdS0_EEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #1 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_ZN10linesearch15CubicLineSearch4ZoomESt8functionIFvdPdS2_EEdd(ptr noundef nonnull align 8 dereferenceable(139), ptr noundef, double noundef, double noundef) #1 align 2

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 = { inlinehint 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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { "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 #5 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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, !10, i64 72}
!12 = !{!"_ZTSN10linesearch15CubicLineSearchE", !13, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !14, i64 40, !14, i64 41, !15, i64 44, !10, i64 48, !10, i64 56, !13, i64 64, !10, i64 72, !10, i64 80, !10, i64 88, !10, i64 96, !10, i64 104, !10, i64 112, !10, i64 120, !10, i64 128, !14, i64 136, !14, i64 137, !14, i64 138}
!13 = !{!"int", !7, i64 0}
!14 = !{!"bool", !7, i64 0}
!15 = !{!"_ZTSN10linesearch15CubicLineSearch11ReturnCodesE", !7, i64 0}
!16 = !{!12, !10, i64 104}
!17 = !{!12, !13, i64 64}
!18 = !{!12, !14, i64 136}
!19 = !{!12, !14, i64 137}
!20 = !{!12, !15, i64 44}
!21 = !{!12, !10, i64 48}
!22 = !{!12, !10, i64 56}
!23 = !{!14, !14, i64 0}
!24 = !{!12, !14, i64 138}
!25 = !{i8 0, i8 2}
!26 = !{}
!27 = !{!13, !13, i64 0}
!28 = !{!12, !13, i64 0}
!29 = !{!12, !14, i64 40}
!30 = !{!31, !31, i64 0}
!31 = !{!"_ZTS22CubicSplineReturnCodes", !7, i64 0}
!32 = !{!12, !10, i64 80}
!33 = !{!12, !10, i64 112}
!34 = !{!12, !14, i64 41}
!35 = !{!12, !10, i64 24}
!36 = !{!12, !10, i64 88}
!37 = !{!12, !10, i64 120}
!38 = !{!12, !10, i64 96}
!39 = !{!12, !10, i64 128}
!40 = !{!12, !10, i64 16}
!41 = !{!12, !10, i64 8}
!42 = distinct !{!42, !43}
!43 = !{!"llvm.loop.mustprogress"}


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

%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%struct.CubicSpline = type { double, double, double, double, double }
%"class.std::function" = type { %"class.std::_Function_base", ptr }
%"class.std::_Function_base" = type { %"union.std::_Any_data", ptr }
%"union.std::_Any_data" = type { %"union.std::_Nocopy_types" }
%"union.std::_Nocopy_types" = type { { i64, i64 } }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [52 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [54 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [35 x i8], align 1

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef double @_ZN10linesearch15CubicLineSearch3RunESt8functionIFvdPdS2_EEddd(ptr noundef nonnull align 8 dereferenceable(139) %0, ptr noundef %1, double noundef %2, double noundef %3, double noundef %4) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca i32, align 4
  %7 = alloca %struct.CubicSpline, align 8
  %8 = alloca double, align 8
  %9 = alloca double, align 8
  %10 = alloca %"class.std::function", align 8
  %11 = alloca %"class.std::function", align 8
  %12 = alloca %"class.std::function", align 8
  %13 = getelementptr inbounds i8, ptr %0, i64 72
  store double %3, ptr %13, align 8, !tbaa !5
  %14 = getelementptr inbounds i8, ptr %0, i64 104
  store double %4, ptr %14, align 8, !tbaa !13
  %15 = getelementptr inbounds i8, ptr %0, i64 64
  store i32 0, ptr %15, align 8, !tbaa !14
  %16 = getelementptr inbounds i8, ptr %0, i64 136
  store i8 0, ptr %16, align 8, !tbaa !15
  %17 = getelementptr inbounds i8, ptr %0, i64 137
  store i8 0, ptr %17, align 1, !tbaa !16
  %18 = getelementptr inbounds i8, ptr %0, i64 44
  store i32 0, ptr %18, align 4, !tbaa !17
  %19 = fcmp ult double %4, 0.000000e+00
  br i1 %19, label %21, label %20

20:                                               ; preds = %5
  store i32 3, ptr %18, align 4, !tbaa !17
  br label %.thread157

21:                                               ; preds = %5
  %22 = getelementptr inbounds i8, ptr %0, i64 48
  %23 = load double, ptr %22, align 8, !tbaa !18
  %24 = getelementptr inbounds i8, ptr %0, i64 56
  %25 = load double, ptr %24, align 8, !tbaa !19
  %26 = getelementptr inbounds i8, ptr %0, i64 80
  %27 = getelementptr inbounds i8, ptr %0, i64 112
  %28 = getelementptr inbounds i8, ptr %0, i64 138
  %29 = load i8, ptr %28, align 2, !tbaa !20, !range !21, !noundef !22
  %30 = trunc nuw i8 %29 to i1
  br i1 %30, label %31, label %37

31:                                               ; preds = %21
  %32 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str)
  %33 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %32, double noundef %3)
  %34 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %33, ptr noundef nonnull @.str.1)
  %35 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %34, double noundef %4)
  %36 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %35, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %37

37:                                               ; preds = %31, %21
  %38 = load i32, ptr %0, align 8, !tbaa !23
  %.not226 = icmp sgt i32 %38, 0
  br i1 %.not226, label %.lr.ph, label %.thread157

.lr.ph:                                           ; preds = %37
  %39 = fneg double %25
  %40 = fmul double %39, %4
  %41 = getelementptr inbounds i8, ptr %0, i64 40
  %42 = getelementptr inbounds i8, ptr %0, i64 41
  %43 = getelementptr inbounds i8, ptr %0, i64 16
  %44 = getelementptr inbounds i8, ptr %0, i64 8
  br label %45

45:                                               ; preds = %.lr.ph, %217
  %.0104233 = phi double [ 0.000000e+00, %.lr.ph ], [ %.0112230, %217 ]
  %.0106232 = phi double [ %3, %.lr.ph ], [ %219, %217 ]
  %.0108231 = phi double [ %4, %.lr.ph ], [ %218, %217 ]
  %.0112230 = phi double [ %2, %.lr.ph ], [ %.mux, %217 ]
  %.0116229 = phi i1 [ false, %.lr.ph ], [ %.0116.mux, %217 ]
  %.0124227 = phi i32 [ 0, %.lr.ph ], [ %220, %217 ]
  %46 = load i32, ptr %15, align 8, !tbaa !14
  %47 = add nsw i32 %46, 1
  store i32 %47, ptr %15, align 8, !tbaa !14
  call void @_ZNKSt8functionIFvdPdS0_EEclEdS0_S0_(ptr noundef nonnull align 8 dereferenceable(32) %1, double noundef %.0112230, ptr noundef nonnull %26, ptr noundef nonnull %27)
  %48 = load double, ptr %26, align 8, !tbaa !24
  %49 = fmul double %23, %.0112230
  %50 = call double @llvm.fmuladd.f64(double %49, double %4, double %3)
  %51 = fcmp ole double %48, %50
  %52 = fcmp oge double %48, %.0106232
  %53 = load double, ptr %27, align 8, !tbaa !24
  %54 = call double @llvm.fabs.f64(double %53)
  %55 = fcmp ole double %54, %40
  %56 = load i8, ptr %28, align 2, !tbaa !20, !range !21, !noundef !22
  %57 = trunc nuw i8 %56 to i1
  br i1 %57, label %58, label %74

58:                                               ; preds = %45
  %59 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.2)
  %60 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %59, i32 noundef %.0124227)
  %61 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %60, ptr noundef nonnull @.str.3)
  %62 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %61, double noundef %.0112230)
  %63 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %62, ptr noundef nonnull @.str.4)
  %64 = load double, ptr %26, align 8, !tbaa !24
  %65 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %63, double noundef %64)
  %66 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %65, ptr noundef nonnull @.str.5)
  %67 = load double, ptr %27, align 8, !tbaa !24
  %68 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %66, double noundef %67)
  %69 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %68, ptr noundef nonnull @.str.6)
  %70 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEb(ptr noundef nonnull align 8 dereferenceable(8) %69, i1 noundef zeroext %51)
  %71 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %70, ptr noundef nonnull @.str.7)
  %72 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEb(ptr noundef nonnull align 8 dereferenceable(8) %71, i1 noundef zeroext %55)
  %73 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %72, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %74

74:                                               ; preds = %58, %45
  %75 = select i1 %51, i1 %55, i1 false
  br i1 %75, label %76, label %82

76:                                               ; preds = %74
  %77 = load i8, ptr %28, align 2, !tbaa !20, !range !21, !noundef !22
  %78 = trunc nuw i8 %77 to i1
  br i1 %78, label %79, label %81

79:                                               ; preds = %76
  %80 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.8)
  br label %81

81:                                               ; preds = %79, %76
  store i8 1, ptr %16, align 8, !tbaa !15
  store i8 1, ptr %17, align 1, !tbaa !16
  store i32 1, ptr %18, align 4, !tbaa !17
  br label %.thread157

82:                                               ; preds = %74
  %83 = icmp eq i32 %.0124227, 0
  br i1 %83, label %84, label %145

84:                                               ; preds = %82
  %85 = load i8, ptr %41, align 8, !tbaa !25, !range !21, !noundef !22
  %86 = trunc nuw i8 %85 to i1
  br i1 %86, label %87, label %145

87:                                               ; preds = %84
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #6
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %7) #6
  %88 = load double, ptr %26, align 8, !tbaa !24
  %89 = load double, ptr %27, align 8, !tbaa !24
  call void @CubicSpline_From2Points(ptr dead_on_unwind nonnull writable sret(%struct.CubicSpline) align 8 %7, double noundef 0.000000e+00, double noundef %3, double noundef %4, double noundef %.0112230, double noundef %88, double noundef %89, ptr noundef nonnull %6)
  %90 = load i32, ptr %6, align 4, !tbaa !26
  %91 = icmp eq i32 %90, 0
  br i1 %91, label %92, label %.thread148

92:                                               ; preds = %87
  %93 = call double @CubicSpline_ArgMin(ptr noundef nonnull %7, ptr noundef nonnull %6)
  %94 = load i32, ptr %6, align 4, !tbaa !26
  %95 = icmp eq i32 %94, 1
  br i1 %95, label %96, label %.thread148

96:                                               ; preds = %92
  %97 = call noundef zeroext i1 @_ZSt8isfinited(double noundef %93)
  br i1 %97, label %98, label %.thread148

98:                                               ; preds = %96
  %99 = load i8, ptr %28, align 2, !tbaa !20, !range !21, !noundef !22
  %100 = trunc nuw i8 %99 to i1
  br i1 %100, label %101, label %107

101:                                              ; preds = %98
  %102 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.9)
  %103 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %102, double noundef %.0112230)
  %104 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %103, ptr noundef nonnull @.str.10)
  %105 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %104, double noundef %93)
  %106 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %105, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %107

.thread148:                                       ; preds = %87, %92, %96
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #6
  br label %145

107:                                              ; preds = %101, %98
  %108 = load i32, ptr %15, align 8, !tbaa !14
  %109 = add nsw i32 %108, 1
  store i32 %109, ptr %15, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #6
  call void @_ZNKSt8functionIFvdPdS0_EEclEdS0_S0_(ptr noundef nonnull align 8 dereferenceable(32) %1, double noundef %93, ptr noundef nonnull %8, ptr noundef nonnull %9)
  %110 = load double, ptr %8, align 8, !tbaa !24
  %111 = fmul double %23, %93
  %112 = call double @llvm.fmuladd.f64(double %111, double %4, double %3)
  %113 = fcmp ole double %110, %112
  %114 = load double, ptr %9, align 8, !tbaa !24
  %115 = call double @llvm.fabs.f64(double %114)
  %116 = fcmp ole double %115, %40
  %117 = load i8, ptr %28, align 2, !tbaa !20, !range !21, !noundef !22
  %118 = trunc nuw i8 %117 to i1
  br i1 %118, label %119, label %135

119:                                              ; preds = %107
  %120 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.2)
  %121 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %120, i32 noundef 1)
  %122 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %121, ptr noundef nonnull @.str.3)
  %123 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %122, double noundef %93)
  %124 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %123, ptr noundef nonnull @.str.4)
  %125 = load double, ptr %8, align 8, !tbaa !24
  %126 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %124, double noundef %125)
  %127 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %126, ptr noundef nonnull @.str.5)
  %128 = load double, ptr %9, align 8, !tbaa !24
  %129 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %127, double noundef %128)
  %130 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %129, ptr noundef nonnull @.str.6)
  %131 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEb(ptr noundef nonnull align 8 dereferenceable(8) %130, i1 noundef zeroext %113)
  %132 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %131, ptr noundef nonnull @.str.7)
  %133 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEb(ptr noundef nonnull align 8 dereferenceable(8) %132, i1 noundef zeroext %116)
  %134 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %133, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %135

135:                                              ; preds = %119, %107
  %136 = select i1 %113, i1 %116, i1 false
  br i1 %136, label %137, label %.thread153

.thread153:                                       ; preds = %135
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #6
  br label %145

137:                                              ; preds = %135
  %138 = load i8, ptr %28, align 2, !tbaa !20, !range !21, !noundef !22
  %139 = trunc nuw i8 %138 to i1
  br i1 %139, label %140, label %142

140:                                              ; preds = %137
  %141 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.8)
  br label %142

142:                                              ; preds = %137, %140
  %143 = load double, ptr %8, align 8, !tbaa !24
  store double %143, ptr %26, align 8, !tbaa !28
  %144 = load double, ptr %9, align 8, !tbaa !24
  store double %144, ptr %27, align 8, !tbaa !29
  store i8 1, ptr %16, align 8, !tbaa !15
  store i8 1, ptr %17, align 1, !tbaa !16
  store i32 1, ptr %18, align 4, !tbaa !17
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #6
  br label %.thread157

145:                                              ; preds = %.thread153, %.thread148, %82, %84
  %.3127 = phi i32 [ 0, %84 ], [ %.0124227, %82 ], [ 0, %.thread148 ], [ 1, %.thread153 ]
  %146 = load i8, ptr %42, align 1, !tbaa !30, !range !21, !noundef !22
  %147 = trunc nuw i8 %146 to i1
  br i1 %147, label %148, label %156

148:                                              ; preds = %145
  call void @_ZNSt8functionIFvdPdS0_EEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(32) %10, ptr noundef nonnull align 8 dereferenceable(32) %1)
  %149 = getelementptr inbounds i8, ptr %0, i64 24
  %150 = load double, ptr %149, align 8, !tbaa !31
  %151 = fmul double %150, %2
  %152 = invoke noundef double @_ZN10linesearch15CubicLineSearch18SimpleBacktrackingESt8functionIFvdPdS2_EEd(ptr noundef nonnull align 8 dereferenceable(139) %0, ptr noundef nonnull %10, double noundef %151)
          to label %153 unwind label %154

153:                                              ; preds = %148
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #6
  br label %.thread157

154:                                              ; preds = %148
  %155 = landingpad { ptr, i32 }
          cleanup
  br label %222

156:                                              ; preds = %145
  %.not168 = xor i1 %51, true
  %157 = icmp sgt i32 %.3127, 0
  %brmerge144.not = select i1 %157, i1 %52, i1 false
  %or.cond = select i1 %.not168, i1 true, i1 %brmerge144.not
  br i1 %or.cond, label %158, label %180

158:                                              ; preds = %156
  %159 = load i8, ptr %28, align 2, !tbaa !20, !range !21, !noundef !22
  %160 = trunc nuw i8 %159 to i1
  br i1 %160, label %161, label %169

161:                                              ; preds = %158
  %162 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.11)
  %163 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.12)
  %164 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEb(ptr noundef nonnull align 8 dereferenceable(8) %163, i1 noundef zeroext %.not168)
  %165 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %164, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %166 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.13)
  %167 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEb(ptr noundef nonnull align 8 dereferenceable(8) %166, i1 noundef zeroext %brmerge144.not)
  %168 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %167, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %169

169:                                              ; preds = %161, %158
  %170 = getelementptr inbounds i8, ptr %0, i64 88
  store double %.0106232, ptr %170, align 8, !tbaa !32
  %171 = getelementptr inbounds i8, ptr %0, i64 120
  store double %.0108231, ptr %171, align 8, !tbaa !33
  %172 = load double, ptr %26, align 8, !tbaa !24
  %173 = getelementptr inbounds i8, ptr %0, i64 96
  store double %172, ptr %173, align 8, !tbaa !34
  %174 = load double, ptr %27, align 8, !tbaa !24
  %175 = getelementptr inbounds i8, ptr %0, i64 128
  store double %174, ptr %175, align 8, !tbaa !35
  call void @_ZNSt8functionIFvdPdS0_EEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(32) %11, ptr noundef nonnull align 8 dereferenceable(32) %1)
  %176 = invoke noundef double @_ZN10linesearch15CubicLineSearch4ZoomESt8functionIFvdPdS2_EEdd(ptr noundef nonnull align 8 dereferenceable(139) %0, ptr noundef nonnull %11, double noundef %.0104233, double noundef %.0112230)
          to label %177 unwind label %178

177:                                              ; preds = %169
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #6
  br label %.thread157

178:                                              ; preds = %169
  %179 = landingpad { ptr, i32 }
          cleanup
  br label %222

180:                                              ; preds = %156
  %181 = load double, ptr %27, align 8, !tbaa !24
  %182 = fcmp ult double %181, 0.000000e+00
  br i1 %182, label %202, label %183

183:                                              ; preds = %180
  %184 = load double, ptr %26, align 8, !tbaa !24
  %185 = getelementptr inbounds i8, ptr %0, i64 88
  store double %184, ptr %185, align 8, !tbaa !32
  %186 = getelementptr inbounds i8, ptr %0, i64 120
  store double %181, ptr %186, align 8, !tbaa !33
  %187 = getelementptr inbounds i8, ptr %0, i64 96
  store double %.0106232, ptr %187, align 8, !tbaa !34
  %188 = getelementptr inbounds i8, ptr %0, i64 128
  store double %.0108231, ptr %188, align 8, !tbaa !35
  %189 = load i8, ptr %28, align 2, !tbaa !20, !range !21, !noundef !22
  %190 = trunc nuw i8 %189 to i1
  br i1 %190, label %191, label %197

191:                                              ; preds = %183
  %192 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.14)
  %193 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %192, double noundef %.0104233)
  %194 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %193, ptr noundef nonnull @.str.15)
  %195 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %194, double noundef %.0112230)
  %196 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %195, ptr noundef nonnull @.str.16)
  br label %197

197:                                              ; preds = %191, %183
  call void @_ZNSt8functionIFvdPdS0_EEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(32) %12, ptr noundef nonnull align 8 dereferenceable(32) %1)
  %198 = invoke noundef double @_ZN10linesearch15CubicLineSearch4ZoomESt8functionIFvdPdS2_EEdd(ptr noundef nonnull align 8 dereferenceable(139) %0, ptr noundef nonnull %12, double noundef %.0112230, double noundef %.0104233)
          to label %199 unwind label %200

199:                                              ; preds = %197
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #6
  br label %.thread157

200:                                              ; preds = %197
  %201 = landingpad { ptr, i32 }
          cleanup
  br label %222

202:                                              ; preds = %180
  %203 = load double, ptr %43, align 8, !tbaa !36
  %204 = fmul double %.0112230, %203
  %205 = load double, ptr %44, align 8, !tbaa !37
  %206 = fcmp ogt double %204, %205
  %brmerge.not = select i1 %206, i1 %.0116229, i1 false
  %.0116.mux = select i1 %206, i1 true, i1 %.0116229
  %.mux = select i1 %206, double %205, double %204
  br i1 %brmerge.not, label %207, label %210

207:                                              ; preds = %202
  %208 = zext i1 %51 to i8
  %209 = zext i1 %55 to i8
  store i32 7, ptr %18, align 4, !tbaa !17
  store i8 %208, ptr %16, align 8, !tbaa !15
  store i8 %209, ptr %17, align 1, !tbaa !16
  br label %.thread157

210:                                              ; preds = %202
  %211 = load i8, ptr %28, align 2, !tbaa !20, !range !21, !noundef !22
  %212 = trunc nuw i8 %211 to i1
  br i1 %212, label %213, label %217

213:                                              ; preds = %210
  %214 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.17)
  %215 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %214, double noundef %.mux)
  %216 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %215, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %.pre = load double, ptr %27, align 8, !tbaa !24
  br label %217

217:                                              ; preds = %213, %210
  %218 = phi double [ %.pre, %213 ], [ %181, %210 ]
  %219 = load double, ptr %26, align 8, !tbaa !24
  %220 = add nsw i32 %.3127, 1
  %221 = load i32, ptr %0, align 8, !tbaa !23
  %.not = icmp slt i32 %220, %221
  br i1 %.not, label %45, label %.thread157, !llvm.loop !38

222:                                              ; preds = %200, %178, %154
  %.sink = phi ptr [ %12, %200 ], [ %11, %178 ], [ %10, %154 ]
  %.pn = phi { ptr, i32 } [ %201, %200 ], [ %179, %178 ], [ %155, %154 ]
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %.sink) #6
  resume { ptr, i32 } %.pn

.thread157:                                       ; preds = %217, %37, %81, %153, %177, %199, %207, %142, %20
  %.8 = phi double [ 0.000000e+00, %20 ], [ %93, %142 ], [ %205, %207 ], [ %198, %199 ], [ %176, %177 ], [ %152, %153 ], [ %.0112230, %81 ], [ %2, %37 ], [ %.mux, %217 ]
  ret double %.8
}

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8), double noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNKSt8functionIFvdPdS0_EEclEdS0_S0_(ptr noundef nonnull align 8 dereferenceable(32), double noundef, ptr noundef, ptr noundef) local_unnamed_addr #1 align 2

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

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

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEb(ptr noundef nonnull align 8 dereferenceable(8), i1 noundef zeroext) local_unnamed_addr #1 align 2

declare void @CubicSpline_From2Points(ptr dead_on_unwind writable sret(%struct.CubicSpline) align 8, double noundef, double noundef, double noundef, double noundef, double noundef, double noundef, ptr noundef) local_unnamed_addr #4

declare double @CubicSpline_ArgMin(ptr noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZSt8isfinited(double noundef) local_unnamed_addr #5

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_ZN10linesearch15CubicLineSearch18SimpleBacktrackingESt8functionIFvdPdS2_EEd(ptr noundef nonnull align 8 dereferenceable(139), ptr noundef, double noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt8functionIFvdPdS0_EEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #1 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_ZN10linesearch15CubicLineSearch4ZoomESt8functionIFvdPdS2_EEdd(ptr noundef nonnull align 8 dereferenceable(139), ptr noundef, double noundef, double noundef) local_unnamed_addr #1 align 2

attributes #0 = { mustprogress 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 = { inlinehint 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 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { "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 #5 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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, !10, i64 72}
!6 = !{!"_ZTSN10linesearch15CubicLineSearchE", !7, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !11, i64 40, !11, i64 41, !12, i64 44, !10, i64 48, !10, i64 56, !7, i64 64, !10, i64 72, !10, i64 80, !10, i64 88, !10, i64 96, !10, i64 104, !10, i64 112, !10, i64 120, !10, i64 128, !11, i64 136, !11, i64 137, !11, i64 138}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"double", !8, i64 0}
!11 = !{!"bool", !8, i64 0}
!12 = !{!"_ZTSN10linesearch15CubicLineSearch11ReturnCodesE", !8, i64 0}
!13 = !{!6, !10, i64 104}
!14 = !{!6, !7, i64 64}
!15 = !{!6, !11, i64 136}
!16 = !{!6, !11, i64 137}
!17 = !{!6, !12, i64 44}
!18 = !{!6, !10, i64 48}
!19 = !{!6, !10, i64 56}
!20 = !{!6, !11, i64 138}
!21 = !{i8 0, i8 2}
!22 = !{}
!23 = !{!6, !7, i64 0}
!24 = !{!10, !10, i64 0}
!25 = !{!6, !11, i64 40}
!26 = !{!27, !27, i64 0}
!27 = !{!"_ZTS22CubicSplineReturnCodes", !8, i64 0}
!28 = !{!6, !10, i64 80}
!29 = !{!6, !10, i64 112}
!30 = !{!6, !11, i64 41}
!31 = !{!6, !10, i64 24}
!32 = !{!6, !10, i64 88}
!33 = !{!6, !10, i64 120}
!34 = !{!6, !10, i64 96}
!35 = !{!6, !10, i64 128}
!36 = !{!6, !10, i64 16}
!37 = !{!6, !10, i64 8}
!38 = distinct !{!38, !39}
!39 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: AggressiveInstCombinePass,BDCEPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass