; LLVM IR from bohanwang/libpgo :: src/core/nonlinearOptimization/lineSearch.ll (ZNK10LineSearch12BrentsMethodEPKdS1_dd)

; 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.LineSearch::Result" = type <{ double, double, i32, [4 x i8] }>
%class.LineSearch = type { i32, i32, %"class.std::function", double, double, double, i32, double, i32, %"class.std::vector", i32, ptr, ptr }
%"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.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [27 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [96 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [14 x i8], align 1
@__PRETTY_FUNCTION__._ZNK10LineSearch12BrentsMethodEPKdS1_dd = external hidden unnamed_addr constant [86 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [10 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: mustprogress uwtable
declare dso_local noundef double @_ZNK10LineSearch3f1DEd(ptr noundef nonnull align 8 dereferenceable(136), double noundef) #1 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN10LineSearch6ResultC2Ev(ptr noundef nonnull align 8 dereferenceable(20)) unnamed_addr #2 align 2

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

; 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) #3

; 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)) #3

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #4

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK10LineSearch12BrentsMethodEPKdS1_dd(ptr dead_on_unwind noalias writable sret(%"struct.LineSearch::Result") align 8 %0, ptr noundef nonnull align 8 dereferenceable(136) %1, ptr noundef %2, ptr noundef %3, double noundef %4, double noundef %5) #1 align 2 {
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, 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 i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca double, align 8
  %21 = alloca double, align 8
  %22 = alloca double, align 8
  %23 = alloca double, align 8
  %24 = alloca double, align 8
  %25 = alloca double, align 8
  %26 = alloca double, align 8
  %27 = alloca double, align 8
  %28 = alloca double, align 8
  %29 = alloca double, align 8
  %30 = alloca double, align 8
  %31 = alloca i32, align 4
  %32 = alloca double, align 8
  %33 = alloca double, align 8
  %34 = alloca double, align 8
  %35 = alloca double, align 8
  %36 = alloca double, align 8
  %37 = alloca double, align 8
  %38 = alloca double, align 8
  %39 = alloca double, align 8
  %40 = alloca double, align 8
  %41 = alloca double, align 8
  %42 = alloca double, align 8
  %43 = alloca double, align 8
  %44 = alloca double, align 8
  %45 = alloca double, align 8
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  store ptr %3, ptr %9, align 8, !tbaa !5
  store double %4, ptr %10, align 8, !tbaa !9
  store double %5, ptr %11, align 8, !tbaa !9
  %46 = load ptr, ptr %7, align 8
  %47 = load ptr, ptr %8, align 8, !tbaa !5
  %48 = getelementptr inbounds %class.LineSearch, ptr %46, i32 0, i32 11
  store ptr %47, ptr %48, align 8, !tbaa !11
  %49 = load ptr, ptr %9, align 8, !tbaa !5
  %50 = getelementptr inbounds %class.LineSearch, ptr %46, i32 0, i32 12
  store ptr %49, ptr %50, align 8, !tbaa !20
  %51 = getelementptr inbounds %class.LineSearch, ptr %46, i32 0, i32 10
  store i32 0, ptr %51, align 8, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #8
  store double 0.000000e+00, ptr %12, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #8
  %52 = load double, ptr %11, align 8, !tbaa !9
  %53 = fmul double 5.000000e-01, %52
  store double %53, ptr %13, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #8
  store double 0.000000e+00, ptr %14, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #8
  %54 = load double, ptr %10, align 8, !tbaa !9
  store double %54, ptr %15, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #8
  %55 = load double, ptr %13, align 8, !tbaa !9
  %56 = call noundef double @_ZNK10LineSearch3f1DEd(ptr noundef nonnull align 8 dereferenceable(136) %46, double noundef %55)
  store double %56, ptr %16, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #8
  store double 0.000000e+00, ptr %17, align 8, !tbaa !9
  %57 = load double, ptr %10, align 8, !tbaa !9
  %58 = call noundef zeroext i1 @_ZSt8isfinited(double noundef %57)
  %59 = zext i1 %58 to i32
  %60 = icmp eq i32 %59, 0
  br i1 %60, label %61, label %66

61:                                               ; preds = %6
  %62 = 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)
  %63 = load double, ptr %10, align 8, !tbaa !9
  %64 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %62, double noundef %63)
  %65 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %64, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %66

66:                                               ; preds = %61, %6
  %67 = load double, ptr %10, align 8, !tbaa !9
  %68 = call noundef zeroext i1 @_ZSt8isfinited(double noundef %67)
  br i1 %68, label %69, label %70

69:                                               ; preds = %66
  br label %72

70:                                               ; preds = %66
  call void @__assert_fail(ptr noundef @.str.13, ptr noundef @.str.4, i32 noundef 206, ptr noundef @__PRETTY_FUNCTION__._ZNK10LineSearch12BrentsMethodEPKdS1_dd) #9
  unreachable

71:                                               ; No predecessors!
  br label %72

72:                                               ; preds = %71, %69
  %73 = load double, ptr %16, align 8, !tbaa !9
  %74 = call noundef zeroext i1 @_ZSt8isfinited(double noundef %73)
  %75 = zext i1 %74 to i32
  %76 = icmp eq i32 %75, 0
  br i1 %76, label %77, label %82

77:                                               ; preds = %72
  %78 = 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)
  %79 = load double, ptr %16, align 8, !tbaa !9
  %80 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %78, double noundef %79)
  %81 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %80, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %82

82:                                               ; preds = %77, %72
  %83 = load double, ptr %16, align 8, !tbaa !9
  %84 = call noundef zeroext i1 @_ZSt8isfinited(double noundef %83)
  br i1 %84, label %85, label %86

85:                                               ; preds = %82
  br label %88

86:                                               ; preds = %82
  call void @__assert_fail(ptr noundef @.str.15, ptr noundef @.str.4, i32 noundef 209, ptr noundef @__PRETTY_FUNCTION__._ZNK10LineSearch12BrentsMethodEPKdS1_dd) #9
  unreachable

87:                                               ; No predecessors!
  br label %88

88:                                               ; preds = %87, %85
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #8
  %89 = call noundef i32 @_ZNK10LineSearch17initializeTripletERdS0_S0_S0_S0_S0_(ptr noundef nonnull align 8 dereferenceable(136) %46, ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(8) %17)
  store i32 %89, ptr %18, align 4, !tbaa !22
  %90 = load double, ptr %15, align 8, !tbaa !9
  %91 = call noundef zeroext i1 @_ZSt8isfinited(double noundef %90)
  %92 = zext i1 %91 to i32
  %93 = icmp eq i32 %92, 0
  br i1 %93, label %94, label %99

94:                                               ; preds = %88
  %95 = 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)
  %96 = load double, ptr %15, align 8, !tbaa !9
  %97 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %95, double noundef %96)
  %98 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %97, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %99

99:                                               ; preds = %94, %88
  %100 = load double, ptr %15, align 8, !tbaa !9
  %101 = call noundef zeroext i1 @_ZSt8isfinited(double noundef %100)
  br i1 %101, label %102, label %103

102:                                              ; preds = %99
  br label %105

103:                                              ; preds = %99
  call void @__assert_fail(ptr noundef @.str.16, ptr noundef @.str.4, i32 noundef 216, ptr noundef @__PRETTY_FUNCTION__._ZNK10LineSearch12BrentsMethodEPKdS1_dd) #9
  unreachable

104:                                              ; No predecessors!
  br label %105

105:                                              ; preds = %104, %102
  %106 = load double, ptr %16, align 8, !tbaa !9
  %107 = call noundef zeroext i1 @_ZSt8isfinited(double noundef %106)
  %108 = zext i1 %107 to i32
  %109 = icmp eq i32 %108, 0
  br i1 %109, label %110, label %115

110:                                              ; preds = %105
  %111 = 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)
  %112 = load double, ptr %16, align 8, !tbaa !9
  %113 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %111, double noundef %112)
  %114 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %113, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %115

115:                                              ; preds = %110, %105
  %116 = load double, ptr %16, align 8, !tbaa !9
  %117 = call noundef zeroext i1 @_ZSt8isfinited(double noundef %116)
  br i1 %117, label %118, label %119

118:                                              ; preds = %115
  br label %121

119:                                              ; preds = %115
  call void @__assert_fail(ptr noundef @.str.15, ptr noundef @.str.4, i32 noundef 219, ptr noundef @__PRETTY_FUNCTION__._ZNK10LineSearch12BrentsMethodEPKdS1_dd) #9
  unreachable

120:                                              ; No predecessors!
  br label %121

121:                                              ; preds = %120, %118
  %122 = load double, ptr %17, align 8, !tbaa !9
  %123 = call noundef zeroext i1 @_ZSt8isfinited(double noundef %122)
  %124 = zext i1 %123 to i32
  %125 = icmp eq i32 %124, 0
  br i1 %125, label %126, label %131

126:                                              ; preds = %121
  %127 = 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)
  %128 = load double, ptr %17, align 8, !tbaa !9
  %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 @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %129, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %131

131:                                              ; preds = %126, %121
  %132 = load double, ptr %17, align 8, !tbaa !9
  %133 = call noundef zeroext i1 @_ZSt8isfinited(double noundef %132)
  br i1 %133, label %134, label %135

134:                                              ; preds = %131
  br label %137

135:                                              ; preds = %131
  call void @__assert_fail(ptr noundef @.str.17, ptr noundef @.str.4, i32 noundef 222, ptr noundef @__PRETTY_FUNCTION__._ZNK10LineSearch12BrentsMethodEPKdS1_dd) #9
  unreachable

136:                                              ; No predecessors!
  br label %137

137:                                              ; preds = %136, %134
  %138 = load i32, ptr %18, align 4, !tbaa !22
  %139 = icmp ne i32 %138, 0
  br i1 %139, label %140, label %172

140:                                              ; preds = %137
  %141 = getelementptr inbounds %class.LineSearch, ptr %46, i32 0, i32 8
  %142 = load i32, ptr %141, align 8, !tbaa !23
  %143 = icmp ne i32 %142, 0
  br i1 %143, label %144, label %164

144:                                              ; preds = %140
  %145 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str)
  %146 = load double, ptr %12, align 8, !tbaa !9
  %147 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %145, double noundef %146)
  %148 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %147, ptr noundef @.str.1)
  %149 = load double, ptr %13, align 8, !tbaa !9
  %150 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %148, double noundef %149)
  %151 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %150, ptr noundef @.str.1)
  %152 = load double, ptr %14, align 8, !tbaa !9
  %153 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %151, double noundef %152)
  %154 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %153, ptr noundef @.str.2)
  %155 = load double, ptr %15, align 8, !tbaa !9
  %156 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %154, double noundef %155)
  %157 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %156, ptr noundef @.str.1)
  %158 = load double, ptr %16, align 8, !tbaa !9
  %159 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %157, double noundef %158)
  %160 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %159, ptr noundef @.str.1)
  %161 = load double, ptr %17, align 8, !tbaa !9
  %162 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %160, double noundef %161)
  %163 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %162, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %164

164:                                              ; preds = %144, %140
  call void @_ZN10LineSearch6ResultC2Ev(ptr noundef nonnull align 8 dereferenceable(20) %0) #8
  %165 = load double, ptr %14, align 8, !tbaa !9
  %166 = getelementptr inbounds %"struct.LineSearch::Result", ptr %0, i32 0, i32 1
  store double %165, ptr %166, align 8, !tbaa !24
  %167 = load double, ptr %17, align 8, !tbaa !9
  %168 = getelementptr inbounds %"struct.LineSearch::Result", ptr %0, i32 0, i32 0
  store double %167, ptr %168, align 8, !tbaa !26
  %169 = getelementptr inbounds %class.LineSearch, ptr %46, i32 0, i32 10
  %170 = load i32, ptr %169, align 8, !tbaa !21
  %171 = getelementptr inbounds %"struct.LineSearch::Result", ptr %0, i32 0, i32 2
  store i32 %170, ptr %171, align 8, !tbaa !27
  store i32 1, ptr %19, align 4
  br label %687

172:                                              ; preds = %137
  %173 = load double, ptr %16, align 8, !tbaa !9
  %174 = load double, ptr %15, align 8, !tbaa !9
  %175 = fcmp ole double %173, %174
  br i1 %175, label %176, label %180

176:                                              ; preds = %172
  %177 = load double, ptr %16, align 8, !tbaa !9
  %178 = load double, ptr %17, align 8, !tbaa !9
  %179 = fcmp ole double %177, %178
  br i1 %179, label %191, label %180

180:                                              ; preds = %176, %172
  %181 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.18)
  %182 = load double, ptr %15, align 8, !tbaa !9
  %183 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %181, double noundef %182)
  %184 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %183, ptr noundef @.str.1)
  %185 = load double, ptr %16, align 8, !tbaa !9
  %186 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %184, double noundef %185)
  %187 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %186, ptr noundef @.str.1)
  %188 = load double, ptr %17, align 8, !tbaa !9
  %189 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %187, double noundef %188)
  %190 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %189, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %191

191:                                              ; preds = %180, %176
  %192 = load double, ptr %16, align 8, !tbaa !9
  %193 = load double, ptr %15, align 8, !tbaa !9
  %194 = fcmp ole double %192, %193
  br i1 %194, label %195, label %199

195:                                              ; preds = %191
  %196 = load double, ptr %16, align 8, !tbaa !9
  %197 = load double, ptr %17, align 8, !tbaa !9
  %198 = fcmp ole double %196, %197
  br label %199

199:                                              ; preds = %195, %191
  %200 = phi i1 [ false, %191 ], [ %198, %195 ]
  br i1 %200, label %201, label %202

201:                                              ; preds = %199
  br label %204

202:                                              ; preds = %199
  call void @__assert_fail(ptr noundef @.str.3, ptr noundef @.str.4, i32 noundef 241, ptr noundef @__PRETTY_FUNCTION__._ZNK10LineSearch12BrentsMethodEPKdS1_dd) #9
  unreachable

203:                                              ; No predecessors!
  br label %204

204:                                              ; preds = %203, %201
  %205 = getelementptr inbounds %class.LineSearch, ptr %46, i32 0, i32 8
  %206 = load i32, ptr %205, align 8, !tbaa !23
  %207 = icmp ne i32 %206, 0
  br i1 %207, label %208, label %228

208:                                              ; preds = %204
  %209 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.5)
  %210 = load double, ptr %12, align 8, !tbaa !9
  %211 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %209, double noundef %210)
  %212 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %211, ptr noundef @.str.1)
  %213 = load double, ptr %13, align 8, !tbaa !9
  %214 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %212, double noundef %213)
  %215 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %214, ptr noundef @.str.1)
  %216 = load double, ptr %14, align 8, !tbaa !9
  %217 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %215, double noundef %216)
  %218 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %217, ptr noundef @.str.2)
  %219 = load double, ptr %15, align 8, !tbaa !9
  %220 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %218, double noundef %219)
  %221 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %220, ptr noundef @.str.1)
  %222 = load double, ptr %16, align 8, !tbaa !9
  %223 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %221, double noundef %222)
  %224 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %223, ptr noundef @.str.1)
  %225 = load double, ptr %17, align 8, !tbaa !9
  %226 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %224, double noundef %225)
  %227 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %226, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %228

228:                                              ; preds = %208, %204
  %229 = load double, ptr %15, align 8, !tbaa !9
  %230 = load double, ptr %16, align 8, !tbaa !9
  %231 = fcmp oeq double %229, %230
  br i1 %231, label %232, label %253

232:                                              ; preds = %228
  %233 = load double, ptr %16, align 8, !tbaa !9
  %234 = load double, ptr %17, align 8, !tbaa !9
  %235 = fcmp oeq double %233, %234
  br i1 %235, label %236, label %253

236:                                              ; preds = %232
  %237 = load double, ptr %17, align 8, !tbaa !9
  %238 = fcmp oeq double %237, 0x7FEFFFFFFFFFFFFF
  br i1 %238, label %239, label %253

239:                                              ; preds = %236
  %240 = getelementptr inbounds %class.LineSearch, ptr %46, i32 0, i32 8
  %241 = load i32, ptr %240, align 8, !tbaa !23
  %242 = icmp ne i32 %241, 0
  br i1 %242, label %243, label %246

243:                                              ; preds = %239
  %244 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.6)
  %245 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %244, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %246

246:                                              ; preds = %243, %239
  call void @_ZN10LineSearch6ResultC2Ev(ptr noundef nonnull align 8 dereferenceable(20) %0) #8
  %247 = getelementptr inbounds %"struct.LineSearch::Result", ptr %0, i32 0, i32 1
  store double 0.000000e+00, ptr %247, align 8, !tbaa !24
  %248 = load double, ptr %10, align 8, !tbaa !9
  %249 = getelementptr inbounds %"struct.LineSearch::Result", ptr %0, i32 0, i32 0
  store double %248, ptr %249, align 8, !tbaa !26
  %250 = getelementptr inbounds %class.LineSearch, ptr %46, i32 0, i32 10
  %251 = load i32, ptr %250, align 8, !tbaa !21
  %252 = getelementptr inbounds %"struct.LineSearch::Result", ptr %0, i32 0, i32 2
  store i32 %251, ptr %252, align 8, !tbaa !27
  store i32 1, ptr %19, align 4
  br label %687

253:                                              ; preds = %236, %232, %228
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #8
  %254 = load double, ptr %12, align 8, !tbaa !9
  store double %254, ptr %20, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #8
  %255 = load double, ptr %14, align 8, !tbaa !9
  store double %255, ptr %21, align 8, !tbaa !9
  %256 = load double, ptr %12, align 8, !tbaa !9
  %257 = load double, ptr %14, align 8, !tbaa !9
  %258 = fcmp ogt double %256, %257
  br i1 %258, label %259, label %260

259:                                              ; preds = %253
  call void @_ZSt4swapIdENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 8 dereferenceable(8) %20, ptr noundef nonnull align 8 dereferenceable(8) %21) #8
  br label %260

260:                                              ; preds = %259, %253
  %261 = getelementptr inbounds %class.LineSearch, ptr %46, i32 0, i32 8
  %262 = load i32, ptr %261, align 8, !tbaa !23
  %263 = icmp ne i32 %262, 0
  br i1 %263, label %264, label %275

264:                                              ; preds = %260
  %265 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.19)
  %266 = getelementptr inbounds %class.LineSearch, ptr %46, i32 0, i32 3
  %267 = load double, ptr %266, align 8, !tbaa !28
  %268 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %265, double noundef %267)
  %269 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %268, ptr noundef @.str.20)
  %270 = getelementptr inbounds %class.LineSearch, ptr %46, i32 0, i32 4
  %271 = load double, ptr %270, align 8, !tbaa !29
  %272 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %269, double noundef %271)
  %273 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %272, ptr noundef @.str.21)
  %274 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %273, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %275

275:                                              ; preds = %264, %260
  %276 = getelementptr inbounds %class.LineSearch, ptr %46, i32 0, i32 3
  %277 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %20, ptr noundef nonnull align 8 dereferenceable(8) %276)
  %278 = load double, ptr %277, align 8, !tbaa !9
  store double %278, ptr %20, align 8, !tbaa !9
  %279 = getelementptr inbounds %class.LineSearch, ptr %46, i32 0, i32 4
  %280 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %21, ptr noundef nonnull align 8 dereferenceable(8) %279)
  %281 = load double, ptr %280, align 8, !tbaa !9
  store double %281, ptr %21, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #8
  %282 = load double, ptr %13, align 8, !tbaa !9
  %283 = load double, ptr %20, align 8, !tbaa !9
  %284 = load double, ptr %21, align 8, !tbaa !9
  %285 = call noundef double @_ZL5clampddd(double noundef %282, double noundef %283, double noundef %284)
  store double %285, ptr %22, align 8, !tbaa !9
  %286 = load double, ptr %22, align 8, !tbaa !9
  %287 = load double, ptr %13, align 8, !tbaa !9
  %288 = fcmp une double %286, %287
  br i1 %288, label %289, label %305

289:                                              ; preds = %275
  %290 = getelementptr inbounds %class.LineSearch, ptr %46, i32 0, i32 8
  %291 = load i32, ptr %290, align 8, !tbaa !23
  %292 = icmp ne i32 %291, 0
  br i1 %292, label %293, label %301

293:                                              ; preds = %289
  %294 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.22)
  %295 = load double, ptr %13, align 8, !tbaa !9
  %296 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %294, double noundef %295)
  %297 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %296, ptr noundef @.str.23)
  %298 = load double, ptr %22, align 8, !tbaa !9
  %299 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %297, double noundef %298)
  %300 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %299, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %301

301:                                              ; preds = %293, %289
  %302 = load double, ptr %22, align 8, !tbaa !9
  store double %302, ptr %13, align 8, !tbaa !9
  %303 = load double, ptr %13, align 8, !tbaa !9
  %304 = call noundef double @_ZNK10LineSearch3f1DEd(ptr noundef nonnull align 8 dereferenceable(136) %46, double noundef %303)
  store double %304, ptr %16, align 8, !tbaa !9
  br label %305

305:                                              ; preds = %301, %275
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #8
  %306 = load double, ptr %13, align 8, !tbaa !9
  store double %306, ptr %23, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #8
  %307 = load double, ptr %13, align 8, !tbaa !9
  store double %307, ptr %24, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #8
  %308 = load double, ptr %13, align 8, !tbaa !9
  store double %308, ptr %25, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #8
  %309 = load double, ptr %16, align 8, !tbaa !9
  store double %309, ptr %26, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #8
  %310 = load double, ptr %16, align 8, !tbaa !9
  store double %310, ptr %27, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #8
  %311 = load double, ptr %16, align 8, !tbaa !9
  store double %311, ptr %28, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #8
  store double 0.000000e+00, ptr %29, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #8
  store double 0.000000e+00, ptr %30, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #8
  store i32 0, ptr %31, align 4, !tbaa !22
  br label %312

312:                                              ; preds = %675, %305
  %313 = load i32, ptr %31, align 4, !tbaa !22
  %314 = getelementptr inbounds %class.LineSearch, ptr %46, i32 0, i32 1
  %315 = load i32, ptr %314, align 4, !tbaa !30
  %316 = icmp slt i32 %313, %315
  br i1 %316, label %318, label %317

317:                                              ; preds = %312
  store i32 2, ptr %19, align 4
  br label %678

318:                                              ; preds = %312
  %319 = getelementptr inbounds %class.LineSearch, ptr %46, i32 0, i32 8
  %320 = load i32, ptr %319, align 8, !tbaa !23
  %321 = icmp ne i32 %320, 0
  br i1 %321, label %322, label %343

322:                                              ; preds = %318
  %323 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.7)
  %324 = load i32, ptr %31, align 4, !tbaa !22
  %325 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %323, i32 noundef %324)
  %326 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %325, ptr noundef @.str.8)
  %327 = getelementptr inbounds %class.LineSearch, ptr %46, i32 0, i32 1
  %328 = load i32, ptr %327, align 4, !tbaa !30
  %329 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %326, i32 noundef %328)
  %330 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %329, ptr noundef @.str.24)
  %331 = load double, ptr %20, align 8, !tbaa !9
  %332 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %330, double noundef %331)
  %333 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %332, ptr noundef @.str.1)
  %334 = load double, ptr %21, align 8, !tbaa !9
  %335 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %333, double noundef %334)
  %336 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %335, ptr noundef @.str.25)
  %337 = load double, ptr %23, align 8, !tbaa !9
  %338 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %336, double noundef %337)
  %339 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %338, ptr noundef @.str.26)
  %340 = load double, ptr %26, align 8, !tbaa !9
  %341 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %339, double noundef %340)
  %342 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %341, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %343

343:                                              ; preds = %322, %318
  %344 = getelementptr inbounds %class.LineSearch, ptr %46, i32 0, i32 5
  %345 = load double, ptr %344, align 8, !tbaa !31
  %346 = fmul double %345, 2.000000e+00
  %347 = load double, ptr %21, align 8, !tbaa !9
  %348 = load double, ptr %20, align 8, !tbaa !9
  %349 = fsub double %347, %348
  %350 = fcmp ogt double %346, %349
  br i1 %350, label %351, label %363

351:                                              ; preds = %343
  %352 = getelementptr inbounds %class.LineSearch, ptr %46, i32 0, i32 8
  %353 = load i32, ptr %352, align 8, !tbaa !23
  %354 = icmp ne i32 %353, 0
  br i1 %354, label %355, label %362

355:                                              ; preds = %351
  %356 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.27)
  %357 = getelementptr inbounds %class.LineSearch, ptr %46, i32 0, i32 5
  %358 = load double, ptr %357, align 8, !tbaa !31
  %359 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %356, double noundef %358)
  %360 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %359, ptr noundef @.str.28)
  %361 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %360, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %362

362:                                              ; preds = %355, %351
  store i32 2, ptr %19, align 4
  br label %678

363:                                              ; preds = %343
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #8
  %364 = load double, ptr %20, align 8, !tbaa !9
  %365 = load double, ptr %21, align 8, !tbaa !9
  %366 = fadd double %364, %365
  %367 = fmul double 5.000000e-01, %366
  store double %367, ptr %32, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #8
  store double 2.000000e-04, ptr %33, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #8
  store double 1.000000e-10, ptr %34, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #8
  %368 = load double, ptr %33, align 8, !tbaa !9
  %369 = load double, ptr %23, align 8, !tbaa !9
  %370 = call double @llvm.fabs.f64(double %369)
  %371 = load double, ptr %34, align 8, !tbaa !9
  %372 = call double @llvm.fmuladd.f64(double %368, double %370, double %371)
  store double %372, ptr %35, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #8
  %373 = load double, ptr %35, align 8, !tbaa !9
  %374 = fmul double 2.000000e+00, %373
  store double %374, ptr %36, align 8, !tbaa !9
  %375 = load double, ptr %23, align 8, !tbaa !9
  %376 = load double, ptr %32, align 8, !tbaa !9
  %377 = fsub double %375, %376
  %378 = call double @llvm.fabs.f64(double %377)
  %379 = load double, ptr %21, align 8, !tbaa !9
  %380 = load double, ptr %20, align 8, !tbaa !9
  %381 = fsub double %379, %380
  %382 = call double @llvm.fmuladd.f64(double 5.000000e-01, double %381, double %378)
  %383 = load double, ptr %36, align 8, !tbaa !9
  %384 = fcmp ole double %382, %383
  br i1 %384, label %385, label %396

385:                                              ; preds = %363
  %386 = getelementptr inbounds %class.LineSearch, ptr %46, i32 0, i32 8
  %387 = load i32, ptr %386, align 8, !tbaa !23
  %388 = icmp ne i32 %387, 0
  br i1 %388, label %389, label %395

389:                                              ; preds = %385
  %390 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.29)
  %391 = load double, ptr %33, align 8, !tbaa !9
  %392 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %390, double noundef %391)
  %393 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %392, ptr noundef @.str.28)
  %394 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %393, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %395

395:                                              ; preds = %389, %385
  store i32 2, ptr %19, align 4
  br label %672

396:                                              ; preds = %363
  %397 = load double, ptr %30, align 8, !tbaa !9
  %398 = call double @llvm.fabs.f64(double %397)
  %399 = load double, ptr %35, align 8, !tbaa !9
  %400 = fcmp ogt double %398, %399
  br i1 %400, label %401, label %513

401:                                              ; preds = %396
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #8
  %402 = load double, ptr %23, align 8, !tbaa !9
  %403 = load double, ptr %25, align 8, !tbaa !9
  %404 = fsub double %402, %403
  %405 = load double, ptr %26, align 8, !tbaa !9
  %406 = load double, ptr %27, align 8, !tbaa !9
  %407 = fsub double %405, %406
  %408 = fmul double %404, %407
  store double %408, ptr %37, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #8
  %409 = load double, ptr %23, align 8, !tbaa !9
  %410 = load double, ptr %24, align 8, !tbaa !9
  %411 = fsub double %409, %410
  %412 = load double, ptr %26, align 8, !tbaa !9
  %413 = load double, ptr %28, align 8, !tbaa !9
  %414 = fsub double %412, %413
  %415 = fmul double %411, %414
  store double %415, ptr %38, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #8
  %416 = load double, ptr %23, align 8, !tbaa !9
  %417 = load double, ptr %25, align 8, !tbaa !9
  %418 = fsub double %416, %417
  %419 = load double, ptr %37, align 8, !tbaa !9
  %420 = load double, ptr %23, align 8, !tbaa !9
  %421 = load double, ptr %24, align 8, !tbaa !9
  %422 = fsub double %420, %421
  %423 = load double, ptr %38, align 8, !tbaa !9
  %424 = fmul double %422, %423
  %425 = fneg double %424
  %426 = call double @llvm.fmuladd.f64(double %418, double %419, double %425)
  store double %426, ptr %39, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %40) #8
  %427 = load double, ptr %37, align 8, !tbaa !9
  %428 = load double, ptr %38, align 8, !tbaa !9
  %429 = fsub double %427, %428
  %430 = fmul double -2.000000e+00, %429
  store double %430, ptr %40, align 8, !tbaa !9
  %431 = load double, ptr %40, align 8, !tbaa !9
  %432 = fcmp olt double %431, 0.000000e+00
  br i1 %432, label %433, label %438

433:                                              ; preds = %401
  %434 = load double, ptr %39, align 8, !tbaa !9
  %435 = fmul double %434, -1.000000e+00
  store double %435, ptr %39, align 8, !tbaa !9
  %436 = load double, ptr %40, align 8, !tbaa !9
  %437 = fmul double %436, -1.000000e+00
  store double %437, ptr %40, align 8, !tbaa !9
  br label %438

438:                                              ; preds = %433, %401
  call void @llvm.lifetime.start.p0(i64 8, ptr %41) #8
  %439 = load double, ptr %30, align 8, !tbaa !9
  store double %439, ptr %41, align 8, !tbaa !9
  %440 = load double, ptr %29, align 8, !tbaa !9
  store double %440, ptr %30, align 8, !tbaa !9
  %441 = load double, ptr %39, align 8, !tbaa !9
  %442 = call double @llvm.fabs.f64(double %441)
  %443 = load double, ptr %40, align 8, !tbaa !9
  %444 = fmul double 5.000000e-01, %443
  %445 = load double, ptr %41, align 8, !tbaa !9
  %446 = fmul double %444, %445
  %447 = call double @llvm.fabs.f64(double %446)
  %448 = fcmp oge double %442, %447
  br i1 %448, label %465, label %449

449:                                              ; preds = %438
  %450 = load double, ptr %39, align 8, !tbaa !9
  %451 = load double, ptr %40, align 8, !tbaa !9
  %452 = load double, ptr %20, align 8, !tbaa !9
  %453 = load double, ptr %23, align 8, !tbaa !9
  %454 = fsub double %452, %453
  %455 = fmul double %451, %454
  %456 = fcmp ole double %450, %455
  br i1 %456, label %465, label %457

457:                                              ; preds = %449
  %458 = load double, ptr %39, align 8, !tbaa !9
  %459 = load double, ptr %40, align 8, !tbaa !9
  %460 = load double, ptr %21, align 8, !tbaa !9
  %461 = load double, ptr %23, align 8, !tbaa !9
  %462 = fsub double %460, %461
  %463 = fmul double %459, %462
  %464 = fcmp oge double %458, %463
  br i1 %464, label %465, label %481

465:                                              ; preds = %457, %449, %438
  %466 = load double, ptr %23, align 8, !tbaa !9
  %467 = load double, ptr %32, align 8, !tbaa !9
  %468 = fcmp oge double %466, %467
  br i1 %468, label %469, label %473

469:                                              ; preds = %465
  %470 = load double, ptr %20, align 8, !tbaa !9
  %471 = load double, ptr %23, align 8, !tbaa !9
  %472 = fsub double %470, %471
  br label %477

473:                                              ; preds = %465
  %474 = load double, ptr %21, align 8, !tbaa !9
  %475 = load double, ptr %23, align 8, !tbaa !9
  %476 = fsub double %474, %475
  br label %477

477:                                              ; preds = %473, %469
  %478 = phi double [ %472, %469 ], [ %476, %473 ]
  store double %478, ptr %30, align 8, !tbaa !9
  %479 = load double, ptr %30, align 8, !tbaa !9
  %480 = fmul double 0x3FD8722191A025FC, %479
  store double %480, ptr %29, align 8, !tbaa !9
  br label %512

481:                                              ; preds = %457
  call void @llvm.lifetime.start.p0(i64 8, ptr %42) #8
  store double 0x3BC79CA10C924223, ptr %42, align 8, !tbaa !9
  %482 = load double, ptr %39, align 8, !tbaa !9
  %483 = load double, ptr %40, align 8, !tbaa !9
  %484 = call noundef double @_ZL13clampFromZerodd(double noundef %483, double noundef 0x3BC79CA10C924223)
  %485 = fdiv double %482, %484
  store double %485, ptr %29, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %43) #8
  %486 = load double, ptr %23, align 8, !tbaa !9
  %487 = load double, ptr %29, align 8, !tbaa !9
  %488 = fadd double %486, %487
  store double %488, ptr %43, align 8, !tbaa !9
  %489 = load double, ptr %43, align 8, !tbaa !9
  %490 = load double, ptr %20, align 8, !tbaa !9
  %491 = fsub double %489, %490
  %492 = load double, ptr %36, align 8, !tbaa !9
  %493 = fcmp olt double %491, %492
  br i1 %493, label %500, label %494

494:                                              ; preds = %481
  %495 = load double, ptr %21, align 8, !tbaa !9
  %496 = load double, ptr %43, align 8, !tbaa !9
  %497 = fsub double %495, %496
  %498 = load double, ptr %36, align 8, !tbaa !9
  %499 = fcmp olt double %497, %498
  br i1 %499, label %500, label %511

500:                                              ; preds = %494, %481
  %501 = load double, ptr %32, align 8, !tbaa !9
  %502 = load double, ptr %23, align 8, !tbaa !9
  %503 = fsub double %501, %502
  %504 = fcmp oge double %503, 0.000000e+00
  br i1 %504, label %505, label %507

505:                                              ; preds = %500
  %506 = load double, ptr %35, align 8, !tbaa !9
  store double %506, ptr %29, align 8, !tbaa !9
  br label %510

507:                                              ; preds = %500
  %508 = load double, ptr %35, align 8, !tbaa !9
  %509 = fneg double %508
  store double %509, ptr %29, align 8, !tbaa !9
  br label %510

510:                                              ; preds = %507, %505
  br label %511

511:                                              ; preds = %510, %494
  call void @llvm.lifetime.end.p0(i64 8, ptr %43) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #8
  br label %512

512:                                              ; preds = %511, %477
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #8
  br label %529

513:                                              ; preds = %396
  %514 = load double, ptr %23, align 8, !tbaa !9
  %515 = load double, ptr %32, align 8, !tbaa !9
  %516 = fcmp oge double %514, %515
  br i1 %516, label %517, label %521

517:                                              ; preds = %513
  %518 = load double, ptr %20, align 8, !tbaa !9
  %519 = load double, ptr %23, align 8, !tbaa !9
  %520 = fsub double %518, %519
  br label %525

521:                                              ; preds = %513
  %522 = load double, ptr %21, align 8, !tbaa !9
  %523 = load double, ptr %23, align 8, !tbaa !9
  %524 = fsub double %522, %523
  br label %525

525:                                              ; preds = %521, %517
  %526 = phi double [ %520, %517 ], [ %524, %521 ]
  store double %526, ptr %30, align 8, !tbaa !9
  %527 = load double, ptr %30, align 8, !tbaa !9
  %528 = fmul double 0x3FD8722191A025FC, %527
  store double %528, ptr %29, align 8, !tbaa !9
  br label %529

529:                                              ; preds = %525, %512
  call void @llvm.lifetime.start.p0(i64 8, ptr %44) #8
  %530 = load double, ptr %23, align 8, !tbaa !9
  %531 = load double, ptr %29, align 8, !tbaa !9
  %532 = load double, ptr %35, align 8, !tbaa !9
  %533 = call noundef double @_ZL13clampFromZerodd(double noundef %531, double noundef %532)
  %534 = fadd double %530, %533
  store double %534, ptr %44, align 8, !tbaa !9
  %535 = load double, ptr %44, align 8, !tbaa !9
  %536 = getelementptr inbounds %class.LineSearch, ptr %46, i32 0, i32 3
  %537 = load double, ptr %536, align 8, !tbaa !28
  %538 = getelementptr inbounds %class.LineSearch, ptr %46, i32 0, i32 4
  %539 = load double, ptr %538, align 8, !tbaa !29
  %540 = call noundef double @_ZL5clampddd(double noundef %535, double noundef %537, double noundef %539)
  store double %540, ptr %44, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %45) #8
  %541 = load double, ptr %44, align 8, !tbaa !9
  %542 = call noundef double @_ZNK10LineSearch3f1DEd(ptr noundef nonnull align 8 dereferenceable(136) %46, double noundef %541)
  store double %542, ptr %45, align 8, !tbaa !9
  %543 = getelementptr inbounds %class.LineSearch, ptr %46, i32 0, i32 8
  %544 = load i32, ptr %543, align 8, !tbaa !23
  %545 = icmp ne i32 %544, 0
  br i1 %545, label %546, label %554

546:                                              ; preds = %529
  %547 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.30)
  %548 = load double, ptr %44, align 8, !tbaa !9
  %549 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %547, double noundef %548)
  %550 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %549, ptr noundef @.str.31)
  %551 = load double, ptr %45, align 8, !tbaa !9
  %552 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %550, double noundef %551)
  %553 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %552, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %554

554:                                              ; preds = %546, %529
  %555 = load double, ptr %45, align 8, !tbaa !9
  %556 = load double, ptr %26, align 8, !tbaa !9
  %557 = fcmp ole double %555, %556
  br i1 %557, label %558, label %603

558:                                              ; preds = %554
  %559 = load double, ptr %44, align 8, !tbaa !9
  %560 = load double, ptr %23, align 8, !tbaa !9
  %561 = fcmp oge double %559, %560
  br i1 %561, label %562, label %564

562:                                              ; preds = %558
  %563 = load double, ptr %23, align 8, !tbaa !9
  store double %563, ptr %20, align 8, !tbaa !9
  br label %566

564:                                              ; preds = %558
  %565 = load double, ptr %23, align 8, !tbaa !9
  store double %565, ptr %21, align 8, !tbaa !9
  br label %566

566:                                              ; preds = %564, %562
  %567 = load double, ptr %20, align 8, !tbaa !9
  %568 = load double, ptr %21, align 8, !tbaa !9
  %569 = fcmp ogt double %567, %568
  br i1 %569, label %570, label %589

570:                                              ; preds = %566
  %571 = getelementptr inbounds %class.LineSearch, ptr %46, i32 0, i32 8
  %572 = load i32, ptr %571, align 8, !tbaa !23
  %573 = icmp ne i32 %572, 0
  br i1 %573, label %574, label %588

574:                                              ; preds = %570
  %575 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.32)
  %576 = load double, ptr %20, align 8, !tbaa !9
  %577 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %575, double noundef %576)
  %578 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %577, ptr noundef @.str.1)
  %579 = load double, ptr %21, align 8, !tbaa !9
  %580 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %578, double noundef %579)
  %581 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %580, ptr noundef @.str.1)
  %582 = load double, ptr %23, align 8, !tbaa !9
  %583 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %581, double noundef %582)
  %584 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %583, ptr noundef @.str.1)
  %585 = load double, ptr %44, align 8, !tbaa !9
  %586 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %584, double noundef %585)
  %587 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %586, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %588

588:                                              ; preds = %574, %570
  br label %589

589:                                              ; preds = %588, %566
  %590 = load double, ptr %20, align 8, !tbaa !9
  %591 = load double, ptr %21, align 8, !tbaa !9
  %592 = fcmp ole double %590, %591
  br i1 %592, label %593, label %594

593:                                              ; preds = %589
  br label %596

594:                                              ; preds = %589
  call void @__assert_fail(ptr noundef @.str.33, ptr noundef @.str.4, i32 noundef 375, ptr noundef @__PRETTY_FUNCTION__._ZNK10LineSearch12BrentsMethodEPKdS1_dd) #9
  unreachable

595:                                              ; No predecessors!
  br label %596

596:                                              ; preds = %595, %593
  %597 = load double, ptr %24, align 8, !tbaa !9
  store double %597, ptr %25, align 8, !tbaa !9
  %598 = load double, ptr %23, align 8, !tbaa !9
  store double %598, ptr %24, align 8, !tbaa !9
  %599 = load double, ptr %44, align 8, !tbaa !9
  store double %599, ptr %23, align 8, !tbaa !9
  %600 = load double, ptr %27, align 8, !tbaa !9
  store double %600, ptr %28, align 8, !tbaa !9
  %601 = load double, ptr %26, align 8, !tbaa !9
  store double %601, ptr %27, align 8, !tbaa !9
  %602 = load double, ptr %45, align 8, !tbaa !9
  store double %602, ptr %26, align 8, !tbaa !9
  br label %671

603:                                              ; preds = %554
  %604 = load double, ptr %44, align 8, !tbaa !9
  %605 = load double, ptr %23, align 8, !tbaa !9
  %606 = fcmp olt double %604, %605
  br i1 %606, label %607, label %609

607:                                              ; preds = %603
  %608 = load double, ptr %44, align 8, !tbaa !9
  store double %608, ptr %20, align 8, !tbaa !9
  br label %611

609:                                              ; preds = %603
  %610 = load double, ptr %44, align 8, !tbaa !9
  store double %610, ptr %21, align 8, !tbaa !9
  br label %611

611:                                              ; preds = %609, %607
  %612 = load double, ptr %20, align 8, !tbaa !9
  %613 = load double, ptr %21, align 8, !tbaa !9
  %614 = fcmp ogt double %612, %613
  br i1 %614, label %615, label %634

615:                                              ; preds = %611
  %616 = getelementptr inbounds %class.LineSearch, ptr %46, i32 0, i32 8
  %617 = load i32, ptr %616, align 8, !tbaa !23
  %618 = icmp ne i32 %617, 0
  br i1 %618, label %619, label %633

619:                                              ; preds = %615
  %620 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.34)
  %621 = load double, ptr %20, align 8, !tbaa !9
  %622 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %620, double noundef %621)
  %623 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %622, ptr noundef @.str.1)
  %624 = load double, ptr %21, align 8, !tbaa !9
  %625 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %623, double noundef %624)
  %626 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %625, ptr noundef @.str.1)
  %627 = load double, ptr %23, align 8, !tbaa !9
  %628 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %626, double noundef %627)
  %629 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %628, ptr noundef @.str.1)
  %630 = load double, ptr %44, align 8, !tbaa !9
  %631 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %629, double noundef %630)
  %632 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %631, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %633

633:                                              ; preds = %619, %615
  br label %634

634:                                              ; preds = %633, %611
  %635 = load double, ptr %20, align 8, !tbaa !9
  %636 = load double, ptr %21, align 8, !tbaa !9
  %637 = fcmp ole double %635, %636
  br i1 %637, label %638, label %639

638:                                              ; preds = %634
  br label %641

639:                                              ; preds = %634
  call void @__assert_fail(ptr noundef @.str.33, ptr noundef @.str.4, i32 noundef 395, ptr noundef @__PRETTY_FUNCTION__._ZNK10LineSearch12BrentsMethodEPKdS1_dd) #9
  unreachable

640:                                              ; No predecessors!
  br label %641

641:                                              ; preds = %640, %638
  %642 = load double, ptr %45, align 8, !tbaa !9
  %643 = load double, ptr %27, align 8, !tbaa !9
  %644 = fcmp ole double %642, %643
  br i1 %644, label %649, label %645

645:                                              ; preds = %641
  %646 = load double, ptr %24, align 8, !tbaa !9
  %647 = load double, ptr %23, align 8, !tbaa !9
  %648 = fcmp oeq double %646, %647
  br i1 %648, label %649, label %654

649:                                              ; preds = %645, %641
  %650 = load double, ptr %24, align 8, !tbaa !9
  store double %650, ptr %25, align 8, !tbaa !9
  %651 = load double, ptr %44, align 8, !tbaa !9
  store double %651, ptr %24, align 8, !tbaa !9
  %652 = load double, ptr %27, align 8, !tbaa !9
  store double %652, ptr %28, align 8, !tbaa !9
  %653 = load double, ptr %45, align 8, !tbaa !9
  store double %653, ptr %27, align 8, !tbaa !9
  br label %670

654:                                              ; preds = %645
  %655 = load double, ptr %45, align 8, !tbaa !9
  %656 = load double, ptr %28, align 8, !tbaa !9
  %657 = fcmp ole double %655, %656
  br i1 %657, label %666, label %658

658:                                              ; preds = %654
  %659 = load double, ptr %25, align 8, !tbaa !9
  %660 = load double, ptr %23, align 8, !tbaa !9
  %661 = fcmp oeq double %659, %660
  br i1 %661, label %666, label %662

662:                                              ; preds = %658
  %663 = load double, ptr %25, align 8, !tbaa !9
  %664 = load double, ptr %24, align 8, !tbaa !9
  %665 = fcmp oeq double %663, %664
  br i1 %665, label %666, label %669

666:                                              ; preds = %662, %658, %654
  %667 = load double, ptr %44, align 8, !tbaa !9
  store double %667, ptr %25, align 8, !tbaa !9
  %668 = load double, ptr %45, align 8, !tbaa !9
  store double %668, ptr %28, align 8, !tbaa !9
  br label %669

669:                                              ; preds = %666, %662
  br label %670

670:                                              ; preds = %669, %649
  br label %671

671:                                              ; preds = %670, %596
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #8
  store i32 0, ptr %19, align 4
  br label %672

672:                                              ; preds = %671, %395
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #8
  %673 = load i32, ptr %19, align 4
  switch i32 %673, label %678 [
    i32 0, label %674
  ]

674:                                              ; preds = %672
  br label %675

675:                                              ; preds = %674
  %676 = load i32, ptr %31, align 4, !tbaa !22
  %677 = add nsw i32 %676, 1
  store i32 %677, ptr %31, align 4, !tbaa !22
  br label %312, !llvm.loop !32

678:                                              ; preds = %672, %362, %317
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #8
  br label %679

679:                                              ; preds = %678
  call void @_ZN10LineSearch6ResultC2Ev(ptr noundef nonnull align 8 dereferenceable(20) %0) #8
  %680 = load double, ptr %23, align 8, !tbaa !9
  %681 = getelementptr inbounds %"struct.LineSearch::Result", ptr %0, i32 0, i32 1
  store double %680, ptr %681, align 8, !tbaa !24
  %682 = load double, ptr %26, align 8, !tbaa !9
  %683 = getelementptr inbounds %"struct.LineSearch::Result", ptr %0, i32 0, i32 0
  store double %682, ptr %683, align 8, !tbaa !26
  %684 = getelementptr inbounds %class.LineSearch, ptr %46, i32 0, i32 10
  %685 = load i32, ptr %684, align 8, !tbaa !21
  %686 = getelementptr inbounds %"struct.LineSearch::Result", ptr %0, i32 0, i32 2
  store i32 %685, ptr %686, align 8, !tbaa !27
  store i32 1, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #8
  br label %687

687:                                              ; preds = %679, %246, %164
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  ret void
}

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef double @_ZL5clampddd(double noundef, double noundef, double noundef) #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef double @_ZL13clampFromZerodd(double noundef, double noundef) #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 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 #3 = { 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 #4 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { "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 #7 = { 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 #8 = { nounwind }
attributes #9 = { noreturn 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 120}
!12 = !{!"_ZTS10LineSearch", !13, i64 0, !13, i64 4, !14, i64 8, !10, i64 40, !10, i64 48, !10, i64 56, !13, i64 64, !10, i64 72, !13, i64 80, !16, i64 88, !13, i64 112, !6, i64 120, !6, i64 128}
!13 = !{!"int", !7, i64 0}
!14 = !{!"_ZTSSt8functionIFiPKdPdS2_EE", !15, i64 0, !6, i64 24}
!15 = !{!"_ZTSSt14_Function_base", !7, i64 0, !6, i64 16}
!16 = !{!"_ZTSSt6vectorIdSaIdEE", !17, i64 0}
!17 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!20 = !{!12, !6, i64 128}
!21 = !{!12, !13, i64 112}
!22 = !{!13, !13, i64 0}
!23 = !{!12, !13, i64 80}
!24 = !{!25, !10, i64 8}
!25 = !{!"_ZTSN10LineSearch6ResultE", !10, i64 0, !10, i64 8, !13, i64 16}
!26 = !{!25, !10, i64 0}
!27 = !{!25, !13, i64 16}
!28 = !{!12, !10, i64 40}
!29 = !{!12, !10, i64 48}
!30 = !{!12, !13, i64 4}
!31 = !{!12, !10, i64 56}
!32 = distinct !{!32, !33}
!33 = !{!"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.LineSearch::Result" = type <{ double, double, i32, [4 x i8] }>

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [27 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [96 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [14 x i8], align 1
@__PRETTY_FUNCTION__._ZNK10LineSearch12BrentsMethodEPKdS1_dd = external hidden unnamed_addr constant [86 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [10 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 uwtable
declare dso_local noundef double @_ZNK10LineSearch3f1DEd(ptr noundef nonnull align 8 dereferenceable(136), double noundef) local_unnamed_addr #1 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN10LineSearch6ResultC2Ev(ptr noundef nonnull align 8 dereferenceable(20)) unnamed_addr #2 align 2

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

; 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 #3

; 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)) #3

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #4

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK10LineSearch12BrentsMethodEPKdS1_dd(ptr dead_on_unwind noalias writable sret(%"struct.LineSearch::Result") align 8 %0, ptr noundef nonnull align 8 dereferenceable(136) %1, ptr noundef %2, ptr noundef %3, double noundef %4, double noundef %5) local_unnamed_addr #1 align 2 {
  %7 = alloca double, align 8
  %8 = alloca double, 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 = getelementptr inbounds i8, ptr %1, i64 120
  store ptr %2, ptr %15, align 8, !tbaa !5
  %16 = getelementptr inbounds i8, ptr %1, i64 128
  store ptr %3, ptr %16, align 8, !tbaa !18
  %17 = getelementptr inbounds i8, ptr %1, i64 112
  store i32 0, ptr %17, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #8
  store double 0.000000e+00, ptr %7, align 8, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #8
  %18 = fmul double %5, 5.000000e-01
  store double %18, ptr %8, align 8, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #8
  store double 0.000000e+00, ptr %9, align 8, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #8
  store double %4, ptr %10, align 8, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #8
  %19 = tail call noundef double @_ZNK10LineSearch3f1DEd(ptr noundef nonnull align 8 dereferenceable(136) %1, double noundef %18)
  store double %19, ptr %11, align 8, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #8
  store double 0.000000e+00, ptr %12, align 8, !tbaa !20
  %20 = tail call noundef zeroext i1 @_ZSt8isfinited(double noundef %4)
  br i1 %20, label %25, label %21

21:                                               ; preds = %6
  %22 = 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.12)
  %23 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %22, double noundef %4)
  %24 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %23, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %25

25:                                               ; preds = %21, %6
  %26 = tail call noundef zeroext i1 @_ZSt8isfinited(double noundef %4)
  br i1 %26, label %28, label %27

27:                                               ; preds = %25
  tail call void @__assert_fail(ptr noundef nonnull @.str.13, ptr noundef nonnull @.str.4, i32 noundef 206, ptr noundef nonnull @__PRETTY_FUNCTION__._ZNK10LineSearch12BrentsMethodEPKdS1_dd) #9
  unreachable

28:                                               ; preds = %25
  %29 = tail call noundef zeroext i1 @_ZSt8isfinited(double noundef %19)
  br i1 %29, label %34, label %30

30:                                               ; preds = %28
  %31 = 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.14)
  %32 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %31, double noundef %19)
  %33 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %32, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %34

34:                                               ; preds = %30, %28
  %35 = tail call noundef zeroext i1 @_ZSt8isfinited(double noundef %19)
  br i1 %35, label %37, label %36

36:                                               ; preds = %34
  tail call void @__assert_fail(ptr noundef nonnull @.str.15, ptr noundef nonnull @.str.4, i32 noundef 209, ptr noundef nonnull @__PRETTY_FUNCTION__._ZNK10LineSearch12BrentsMethodEPKdS1_dd) #9
  unreachable

37:                                               ; preds = %34
  %38 = call noundef i32 @_ZNK10LineSearch17initializeTripletERdS0_S0_S0_S0_S0_(ptr noundef nonnull align 8 dereferenceable(136) %1, ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %12)
  %39 = load double, ptr %10, align 8, !tbaa !20
  %40 = call noundef zeroext i1 @_ZSt8isfinited(double noundef %39)
  br i1 %40, label %46, label %41

41:                                               ; preds = %37
  %42 = 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)
  %43 = load double, ptr %10, align 8, !tbaa !20
  %44 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %42, double noundef %43)
  %45 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %44, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %46

46:                                               ; preds = %41, %37
  %47 = load double, ptr %10, align 8, !tbaa !20
  %48 = call noundef zeroext i1 @_ZSt8isfinited(double noundef %47)
  br i1 %48, label %50, label %49

49:                                               ; preds = %46
  call void @__assert_fail(ptr noundef nonnull @.str.16, ptr noundef nonnull @.str.4, i32 noundef 216, ptr noundef nonnull @__PRETTY_FUNCTION__._ZNK10LineSearch12BrentsMethodEPKdS1_dd) #9
  unreachable

50:                                               ; preds = %46
  %51 = load double, ptr %11, align 8, !tbaa !20
  %52 = call noundef zeroext i1 @_ZSt8isfinited(double noundef %51)
  br i1 %52, label %58, label %53

53:                                               ; preds = %50
  %54 = 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)
  %55 = load double, ptr %11, align 8, !tbaa !20
  %56 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %54, double noundef %55)
  %57 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %56, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %58

58:                                               ; preds = %53, %50
  %59 = load double, ptr %11, align 8, !tbaa !20
  %60 = call noundef zeroext i1 @_ZSt8isfinited(double noundef %59)
  br i1 %60, label %62, label %61

61:                                               ; preds = %58
  call void @__assert_fail(ptr noundef nonnull @.str.15, ptr noundef nonnull @.str.4, i32 noundef 219, ptr noundef nonnull @__PRETTY_FUNCTION__._ZNK10LineSearch12BrentsMethodEPKdS1_dd) #9
  unreachable

62:                                               ; preds = %58
  %63 = load double, ptr %12, align 8, !tbaa !20
  %64 = call noundef zeroext i1 @_ZSt8isfinited(double noundef %63)
  br i1 %64, label %70, label %65

65:                                               ; preds = %62
  %66 = 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)
  %67 = load double, ptr %12, align 8, !tbaa !20
  %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 @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %68, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %70

70:                                               ; preds = %65, %62
  %71 = load double, ptr %12, align 8, !tbaa !20
  %72 = call noundef zeroext i1 @_ZSt8isfinited(double noundef %71)
  br i1 %72, label %74, label %73

73:                                               ; preds = %70
  call void @__assert_fail(ptr noundef nonnull @.str.17, ptr noundef nonnull @.str.4, i32 noundef 222, ptr noundef nonnull @__PRETTY_FUNCTION__._ZNK10LineSearch12BrentsMethodEPKdS1_dd) #9
  unreachable

74:                                               ; preds = %70
  %.not = icmp eq i32 %38, 0
  br i1 %.not, label %104, label %75

75:                                               ; preds = %74
  %76 = getelementptr inbounds i8, ptr %1, i64 80
  %77 = load i32, ptr %76, align 8, !tbaa !21
  %.not177 = icmp eq i32 %77, 0
  br i1 %.not177, label %98, label %78

78:                                               ; preds = %75
  %79 = 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)
  %80 = load double, ptr %7, align 8, !tbaa !20
  %81 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %79, double noundef %80)
  %82 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %81, ptr noundef nonnull @.str.1)
  %83 = load double, ptr %8, align 8, !tbaa !20
  %84 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %82, double noundef %83)
  %85 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %84, ptr noundef nonnull @.str.1)
  %86 = load double, ptr %9, align 8, !tbaa !20
  %87 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %85, double noundef %86)
  %88 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %87, ptr noundef nonnull @.str.2)
  %89 = load double, ptr %10, align 8, !tbaa !20
  %90 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %88, double noundef %89)
  %91 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %90, ptr noundef nonnull @.str.1)
  %92 = load double, ptr %11, align 8, !tbaa !20
  %93 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %91, double noundef %92)
  %94 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %93, ptr noundef nonnull @.str.1)
  %95 = load double, ptr %12, align 8, !tbaa !20
  %96 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %94, double noundef %95)
  %97 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %96, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %98

98:                                               ; preds = %78, %75
  call void @_ZN10LineSearch6ResultC2Ev(ptr noundef nonnull align 8 dereferenceable(20) %0) #8
  %99 = load double, ptr %9, align 8, !tbaa !20
  %100 = getelementptr inbounds i8, ptr %0, i64 8
  store double %99, ptr %100, align 8, !tbaa !22
  %101 = load double, ptr %12, align 8, !tbaa !20
  store double %101, ptr %0, align 8, !tbaa !24
  %102 = load i32, ptr %17, align 8, !tbaa !19
  %103 = getelementptr inbounds i8, ptr %0, i64 16
  store i32 %102, ptr %103, align 8, !tbaa !25
  br label %404

104:                                              ; preds = %74
  %105 = load double, ptr %11, align 8
  %106 = load double, ptr %10, align 8, !tbaa !20
  %107 = fcmp ugt double %105, %106
  %108 = load double, ptr %12, align 8
  %109 = fcmp ugt double %105, %108
  %or.cond179 = select i1 %107, i1 true, i1 %109
  br i1 %or.cond179, label %110, label %121

110:                                              ; preds = %104
  %111 = 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.18)
  %112 = load double, ptr %10, align 8, !tbaa !20
  %113 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %111, double noundef %112)
  %114 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %113, ptr noundef nonnull @.str.1)
  %115 = load double, ptr %11, align 8, !tbaa !20
  %116 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %114, double noundef %115)
  %117 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %116, ptr noundef nonnull @.str.1)
  %118 = load double, ptr %12, align 8, !tbaa !20
  %119 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %117, double noundef %118)
  %120 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %119, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %.pre = load double, ptr %11, align 8
  %.pre234 = load double, ptr %10, align 8, !tbaa !20
  %.pre235 = load double, ptr %12, align 8
  br label %121

121:                                              ; preds = %104, %110
  %122 = phi double [ %108, %104 ], [ %.pre235, %110 ]
  %123 = phi double [ %106, %104 ], [ %.pre234, %110 ]
  %124 = phi double [ %105, %104 ], [ %.pre, %110 ]
  %125 = fcmp ole double %124, %123
  %126 = fcmp ole double %124, %122
  %127 = select i1 %125, i1 %126, i1 false
  br i1 %127, label %129, label %128

128:                                              ; preds = %121
  call void @__assert_fail(ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.4, i32 noundef 241, ptr noundef nonnull @__PRETTY_FUNCTION__._ZNK10LineSearch12BrentsMethodEPKdS1_dd) #9
  unreachable

129:                                              ; preds = %121
  %130 = getelementptr inbounds i8, ptr %1, i64 80
  %131 = load i32, ptr %130, align 8, !tbaa !21
  %.not166 = icmp eq i32 %131, 0
  br i1 %.not166, label %152, label %132

132:                                              ; preds = %129
  %133 = 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.5)
  %134 = load double, ptr %7, align 8, !tbaa !20
  %135 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %133, double noundef %134)
  %136 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %135, ptr noundef nonnull @.str.1)
  %137 = load double, ptr %8, align 8, !tbaa !20
  %138 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %136, double noundef %137)
  %139 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %138, ptr noundef nonnull @.str.1)
  %140 = load double, ptr %9, align 8, !tbaa !20
  %141 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %139, double noundef %140)
  %142 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %141, ptr noundef nonnull @.str.2)
  %143 = load double, ptr %10, align 8, !tbaa !20
  %144 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %142, double noundef %143)
  %145 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %144, ptr noundef nonnull @.str.1)
  %146 = load double, ptr %11, align 8, !tbaa !20
  %147 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %145, double noundef %146)
  %148 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %147, ptr noundef nonnull @.str.1)
  %149 = load double, ptr %12, align 8, !tbaa !20
  %150 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %148, double noundef %149)
  %151 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %150, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %.pre236 = load double, ptr %10, align 8, !tbaa !20
  %.pre237 = load double, ptr %11, align 8, !tbaa !20
  br label %152

152:                                              ; preds = %132, %129
  %153 = phi double [ %.pre237, %132 ], [ %124, %129 ]
  %154 = phi double [ %.pre236, %132 ], [ %123, %129 ]
  %155 = fcmp oeq double %154, %153
  br i1 %155, label %156, label %169

156:                                              ; preds = %152
  %157 = load double, ptr %12, align 8
  %158 = fcmp oeq double %153, %157
  %159 = fcmp oeq double %157, 0x7FEFFFFFFFFFFFFF
  %or.cond = and i1 %158, %159
  br i1 %or.cond, label %160, label %169

160:                                              ; preds = %156
  %161 = load i32, ptr %130, align 8, !tbaa !21
  %.not176 = icmp eq i32 %161, 0
  br i1 %.not176, label %165, label %162

162:                                              ; preds = %160
  %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.6)
  %164 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %163, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %165

165:                                              ; preds = %162, %160
  call void @_ZN10LineSearch6ResultC2Ev(ptr noundef nonnull align 8 dereferenceable(20) %0) #8
  %166 = getelementptr inbounds i8, ptr %0, i64 8
  store double 0.000000e+00, ptr %166, align 8, !tbaa !22
  store double %4, ptr %0, align 8, !tbaa !24
  %167 = load i32, ptr %17, align 8, !tbaa !19
  %168 = getelementptr inbounds i8, ptr %0, i64 16
  store i32 %167, ptr %168, align 8, !tbaa !25
  br label %404

169:                                              ; preds = %156, %152
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #8
  %170 = load double, ptr %7, align 8, !tbaa !20
  store double %170, ptr %13, align 8, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #8
  %171 = load double, ptr %9, align 8, !tbaa !20
  store double %171, ptr %14, align 8, !tbaa !20
  %172 = fcmp ogt double %170, %171
  br i1 %172, label %173, label %174

173:                                              ; preds = %169
  call void @_ZSt4swapIdENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %14) #8
  br label %174

174:                                              ; preds = %173, %169
  %175 = load i32, ptr %130, align 8, !tbaa !21
  %.not167 = icmp eq i32 %175, 0
  br i1 %.not167, label %187, label %176

176:                                              ; preds = %174
  %177 = 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.19)
  %178 = getelementptr inbounds i8, ptr %1, i64 40
  %179 = load double, ptr %178, align 8, !tbaa !26
  %180 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %177, double noundef %179)
  %181 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %180, ptr noundef nonnull @.str.20)
  %182 = getelementptr inbounds i8, ptr %1, i64 48
  %183 = load double, ptr %182, align 8, !tbaa !27
  %184 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %181, double noundef %183)
  %185 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %184, ptr noundef nonnull @.str.21)
  %186 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %185, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %187

187:                                              ; preds = %176, %174
  %188 = getelementptr inbounds i8, ptr %1, i64 40
  %189 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %188)
  %190 = load double, ptr %189, align 8, !tbaa !20
  store double %190, ptr %13, align 8, !tbaa !20
  %191 = getelementptr inbounds i8, ptr %1, i64 48
  %192 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 8 dereferenceable(8) %191)
  %193 = load double, ptr %192, align 8, !tbaa !20
  store double %193, ptr %14, align 8, !tbaa !20
  %194 = load double, ptr %8, align 8, !tbaa !20
  %195 = load double, ptr %13, align 8, !tbaa !20
  %196 = call noundef double @_ZL5clampddd(double noundef %194, double noundef %195, double noundef %193)
  %197 = load double, ptr %8, align 8, !tbaa !20
  %198 = fcmp une double %196, %197
  br i1 %198, label %199, label %._crit_edge

._crit_edge:                                      ; preds = %187
  %.pre239 = load double, ptr %11, align 8, !tbaa !20
  br label %210

199:                                              ; preds = %187
  %200 = load i32, ptr %130, align 8, !tbaa !21
  %.not168 = icmp eq i32 %200, 0
  br i1 %.not168, label %208, label %201

201:                                              ; preds = %199
  %202 = 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.22)
  %203 = load double, ptr %8, align 8, !tbaa !20
  %204 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %202, double noundef %203)
  %205 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %204, ptr noundef nonnull @.str.23)
  %206 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %205, double noundef %196)
  %207 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %206, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %208

208:                                              ; preds = %201, %199
  store double %196, ptr %8, align 8, !tbaa !20
  %209 = call noundef double @_ZNK10LineSearch3f1DEd(ptr noundef nonnull align 8 dereferenceable(136) %1, double noundef %196)
  store double %209, ptr %11, align 8, !tbaa !20
  %.pre238 = load double, ptr %8, align 8, !tbaa !20
  br label %210

210:                                              ; preds = %._crit_edge, %208
  %211 = phi double [ %209, %208 ], [ %.pre239, %._crit_edge ]
  %212 = phi double [ %.pre238, %208 ], [ %197, %._crit_edge ]
  %213 = getelementptr inbounds i8, ptr %1, i64 4
  %214 = load i32, ptr %213, align 4, !tbaa !28
  %215 = icmp sgt i32 %214, 0
  br i1 %215, label %.lr.ph, label %.loopexit

.lr.ph:                                           ; preds = %210
  %216 = getelementptr inbounds i8, ptr %1, i64 56
  br label %217

217:                                              ; preds = %.lr.ph, %395
  %.0126224 = phi double [ %212, %.lr.ph ], [ %.2.ph, %395 ]
  %.0127223 = phi double [ %212, %.lr.ph ], [ %.2129.ph, %395 ]
  %.0130222 = phi double [ %212, %.lr.ph ], [ %.2132.ph, %395 ]
  %.0135221 = phi double [ %211, %.lr.ph ], [ %.2137.ph, %395 ]
  %.0139220 = phi double [ %211, %.lr.ph ], [ %.2141.ph, %395 ]
  %.0142219 = phi double [ %211, %.lr.ph ], [ %.2144.ph, %395 ]
  %.0145218 = phi double [ 0.000000e+00, %.lr.ph ], [ %.3148, %395 ]
  %.0149217 = phi double [ 0.000000e+00, %.lr.ph ], [ %.2151, %395 ]
  %.0153216 = phi i32 [ 0, %.lr.ph ], [ %396, %395 ]
  %218 = load i32, ptr %130, align 8, !tbaa !21
  %.not169 = icmp eq i32 %218, 0
  br i1 %.not169, label %236, label %219

219:                                              ; preds = %217
  %220 = 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.7)
  %221 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %220, i32 noundef %.0153216)
  %222 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %221, ptr noundef nonnull @.str.8)
  %223 = load i32, ptr %213, align 4, !tbaa !28
  %224 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %222, i32 noundef %223)
  %225 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %224, ptr noundef nonnull @.str.24)
  %226 = load double, ptr %13, align 8, !tbaa !20
  %227 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %225, double noundef %226)
  %228 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %227, ptr noundef nonnull @.str.1)
  %229 = load double, ptr %14, align 8, !tbaa !20
  %230 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %228, double 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 nonnull @.str.25)
  %232 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %231, double noundef %.0126224)
  %233 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %232, ptr noundef nonnull @.str.26)
  %234 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %233, double noundef %.0135221)
  %235 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %234, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %236

236:                                              ; preds = %219, %217
  %237 = load double, ptr %216, align 8, !tbaa !29
  %238 = fmul double %237, 2.000000e+00
  %239 = load double, ptr %14, align 8
  %240 = load double, ptr %13, align 8
  %241 = fsub double %239, %240
  %242 = fcmp ogt double %238, %241
  br i1 %242, label %243, label %249

243:                                              ; preds = %236
  %244 = load i32, ptr %130, align 8, !tbaa !21
  %.not175 = icmp eq i32 %244, 0
  br i1 %.not175, label %.loopexit, label %245

245:                                              ; preds = %243
  %246 = 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.27)
  %247 = load double, ptr %216, align 8, !tbaa !29
  %248 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %246, double noundef %247)
  br label %.loopexit.sink.split

249:                                              ; preds = %236
  %250 = fadd double %239, %240
  %251 = fmul double %250, 5.000000e-01
  %252 = call double @llvm.fabs.f64(double %.0126224)
  %253 = call double @llvm.fmuladd.f64(double %252, double 2.000000e-04, double 1.000000e-10)
  %254 = fmul double %253, 2.000000e+00
  %255 = fsub double %.0126224, %251
  %256 = call double @llvm.fabs.f64(double %255)
  %257 = call double @llvm.fmuladd.f64(double %241, double 5.000000e-01, double %256)
  %258 = fcmp ugt double %257, %254
  br i1 %258, label %264, label %259

259:                                              ; preds = %249
  %260 = load i32, ptr %130, align 8, !tbaa !21
  %.not174 = icmp eq i32 %260, 0
  br i1 %.not174, label %.loopexit, label %261

261:                                              ; preds = %259
  %262 = 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.29)
  %263 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %262, double noundef 2.000000e-04)
  br label %.loopexit.sink.split

264:                                              ; preds = %249
  %265 = call double @llvm.fabs.f64(double %.0149217)
  %266 = fcmp ogt double %265, %253
  br i1 %266, label %267, label %315

267:                                              ; preds = %264
  %268 = fsub double %.0126224, %.0130222
  %269 = fsub double %.0135221, %.0139220
  %270 = fmul double %269, %268
  %271 = fsub double %.0126224, %.0127223
  %272 = fsub double %.0135221, %.0142219
  %273 = fmul double %272, %271
  %274 = fneg double %271
  %275 = fmul double %273, %274
  %276 = call double @llvm.fmuladd.f64(double %268, double %270, double %275)
  %277 = fsub double %270, %273
  %278 = fmul double %277, -2.000000e+00
  %279 = fcmp olt double %278, 0.000000e+00
  %280 = fneg double %276
  %281 = fneg double %278
  %.0134 = select i1 %279, double %280, double %276
  %.0133 = select i1 %279, double %281, double %278
  %282 = call double @llvm.fabs.f64(double %276)
  %283 = fmul double %.0133, 5.000000e-01
  %284 = fmul double %.0149217, %283
  %285 = call double @llvm.fabs.f64(double %284)
  %286 = fcmp ult double %282, %285
  br i1 %286, label %287, label %295

287:                                              ; preds = %267
  %288 = fsub double %240, %.0126224
  %289 = fmul double %.0133, %288
  %290 = fcmp ugt double %.0134, %289
  br i1 %290, label %291, label %295

291:                                              ; preds = %287
  %292 = fsub double %239, %.0126224
  %293 = fmul double %.0133, %292
  %294 = fcmp ult double %.0134, %293
  br i1 %294, label %299, label %295

295:                                              ; preds = %291, %287, %267
  %296 = fcmp ult double %.0126224, %251
  %.pn170 = select i1 %296, double %239, double %240
  %297 = fsub double %.pn170, %.0126224
  %298 = fmul double %297, 0x3FD8722191A025FC
  br label %319

299:                                              ; preds = %291
  %300 = call noundef double @_ZL13clampFromZerodd(double noundef %.0133, double noundef 0x3BC79CA10C924223)
  %301 = fdiv double %.0134, %300
  %302 = fadd double %.0126224, %301
  %303 = load double, ptr %13, align 8, !tbaa !20
  %304 = fsub double %302, %303
  %305 = fcmp olt double %304, %254
  br i1 %305, label %310, label %306

306:                                              ; preds = %299
  %307 = load double, ptr %14, align 8, !tbaa !20
  %308 = fsub double %307, %302
  %309 = fcmp olt double %308, %254
  br i1 %309, label %310, label %319

310:                                              ; preds = %306, %299
  %311 = fsub double %251, %.0126224
  %312 = fcmp ult double %311, 0.000000e+00
  br i1 %312, label %313, label %319

313:                                              ; preds = %310
  %314 = fneg double %253
  br label %319

315:                                              ; preds = %264
  %316 = fcmp ult double %.0126224, %251
  %.180 = select i1 %316, double %239, double %240
  %317 = fsub double %.180, %.0126224
  %318 = fmul double %317, 0x3FD8722191A025FC
  br label %319

319:                                              ; preds = %295, %310, %313, %306, %315
  %.2151 = phi double [ %317, %315 ], [ %297, %295 ], [ %.0145218, %310 ], [ %.0145218, %313 ], [ %.0145218, %306 ]
  %.3148 = phi double [ %318, %315 ], [ %298, %295 ], [ %253, %310 ], [ %314, %313 ], [ %301, %306 ]
  %320 = call noundef double @_ZL13clampFromZerodd(double noundef %.3148, double noundef %253)
  %321 = fadd double %.0126224, %320
  %322 = load double, ptr %188, align 8, !tbaa !26
  %323 = load double, ptr %191, align 8, !tbaa !27
  %324 = call noundef double @_ZL5clampddd(double noundef %321, double noundef %322, double noundef %323)
  %325 = call noundef double @_ZNK10LineSearch3f1DEd(ptr noundef nonnull align 8 dereferenceable(136) %1, double noundef %324)
  %326 = load i32, ptr %130, align 8, !tbaa !21
  %.not171 = icmp eq i32 %326, 0
  br i1 %.not171, label %333, label %327

327:                                              ; preds = %319
  %328 = 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.30)
  %329 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %328, double noundef %324)
  %330 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %329, ptr noundef nonnull @.str.31)
  %331 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %330, double noundef %325)
  %332 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %331, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %333

333:                                              ; preds = %327, %319
  %334 = fcmp ugt double %325, %.0135221
  br i1 %334, label %361, label %335

335:                                              ; preds = %333
  %336 = fcmp ult double %324, %.0126224
  br i1 %336, label %338, label %337

337:                                              ; preds = %335
  store double %.0126224, ptr %13, align 8, !tbaa !20
  %.pre241 = load double, ptr %14, align 8, !tbaa !20
  br label %339

338:                                              ; preds = %335
  store double %.0126224, ptr %14, align 8, !tbaa !20
  %.pre240 = load double, ptr %13, align 8, !tbaa !20
  br label %339

339:                                              ; preds = %338, %337
  %340 = phi double [ %.0126224, %338 ], [ %.pre241, %337 ]
  %341 = phi double [ %.pre240, %338 ], [ %.0126224, %337 ]
  %342 = fcmp ule double %341, %340
  %343 = load i32, ptr %130, align 8
  %.not173 = icmp eq i32 %343, 0
  %or.cond181 = select i1 %342, i1 true, i1 %.not173
  br i1 %or.cond181, label %356, label %344

344:                                              ; preds = %339
  %345 = 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.32)
  %346 = load double, ptr %13, align 8, !tbaa !20
  %347 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %345, double noundef %346)
  %348 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %347, ptr noundef nonnull @.str.1)
  %349 = load double, ptr %14, align 8, !tbaa !20
  %350 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %348, double noundef %349)
  %351 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %350, ptr noundef nonnull @.str.1)
  %352 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %351, double noundef %.0126224)
  %353 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %352, ptr noundef nonnull @.str.1)
  %354 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %353, double noundef %324)
  %355 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %354, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %.pre242 = load double, ptr %13, align 8, !tbaa !20
  %.pre243 = load double, ptr %14, align 8, !tbaa !20
  br label %356

356:                                              ; preds = %344, %339
  %357 = phi double [ %.pre243, %344 ], [ %340, %339 ]
  %358 = phi double [ %.pre242, %344 ], [ %341, %339 ]
  %359 = fcmp ugt double %358, %357
  br i1 %359, label %360, label %395

360:                                              ; preds = %356
  call void @__assert_fail(ptr noundef nonnull @.str.33, ptr noundef nonnull @.str.4, i32 noundef 375, ptr noundef nonnull @__PRETTY_FUNCTION__._ZNK10LineSearch12BrentsMethodEPKdS1_dd) #9
  unreachable

361:                                              ; preds = %333
  %362 = fcmp olt double %324, %.0126224
  br i1 %362, label %363, label %364

363:                                              ; preds = %361
  store double %324, ptr %13, align 8, !tbaa !20
  %.pre245 = load double, ptr %14, align 8, !tbaa !20
  br label %365

364:                                              ; preds = %361
  store double %324, ptr %14, align 8, !tbaa !20
  %.pre244 = load double, ptr %13, align 8, !tbaa !20
  br label %365

365:                                              ; preds = %364, %363
  %366 = phi double [ %324, %364 ], [ %.pre245, %363 ]
  %367 = phi double [ %.pre244, %364 ], [ %324, %363 ]
  %368 = fcmp ule double %367, %366
  %369 = load i32, ptr %130, align 8
  %.not172 = icmp eq i32 %369, 0
  %or.cond182 = select i1 %368, i1 true, i1 %.not172
  br i1 %or.cond182, label %382, label %370

370:                                              ; preds = %365
  %371 = 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.34)
  %372 = load double, ptr %13, align 8, !tbaa !20
  %373 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %371, double noundef %372)
  %374 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %373, ptr noundef nonnull @.str.1)
  %375 = load double, ptr %14, align 8, !tbaa !20
  %376 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %374, double noundef %375)
  %377 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %376, ptr noundef nonnull @.str.1)
  %378 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %377, double noundef %.0126224)
  %379 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %378, ptr noundef nonnull @.str.1)
  %380 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %379, double noundef %324)
  %381 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %380, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %.pre246 = load double, ptr %13, align 8, !tbaa !20
  %.pre247 = load double, ptr %14, align 8, !tbaa !20
  br label %382

382:                                              ; preds = %370, %365
  %383 = phi double [ %.pre247, %370 ], [ %366, %365 ]
  %384 = phi double [ %.pre246, %370 ], [ %367, %365 ]
  %385 = fcmp ugt double %384, %383
  br i1 %385, label %386, label %387

386:                                              ; preds = %382
  call void @__assert_fail(ptr noundef nonnull @.str.33, ptr noundef nonnull @.str.4, i32 noundef 395, ptr noundef nonnull @__PRETTY_FUNCTION__._ZNK10LineSearch12BrentsMethodEPKdS1_dd) #9
  unreachable

387:                                              ; preds = %382
  %388 = fcmp ole double %325, %.0139220
  %389 = fcmp oeq double %.0127223, %.0126224
  %or.cond183 = select i1 %388, i1 true, i1 %389
  br i1 %or.cond183, label %395, label %390

390:                                              ; preds = %387
  %391 = fcmp ole double %325, %.0142219
  %392 = fcmp oeq double %.0130222, %.0126224
  %or.cond184 = select i1 %391, i1 true, i1 %392
  %393 = fcmp oeq double %.0130222, %.0127223
  %or.cond185 = select i1 %or.cond184, i1 true, i1 %393
  br i1 %or.cond185, label %394, label %395

394:                                              ; preds = %390
  br label %395

395:                                              ; preds = %394, %356, %387, %390
  %.2144.ph = phi double [ %.0142219, %390 ], [ %.0139220, %387 ], [ %.0139220, %356 ], [ %325, %394 ]
  %.2141.ph = phi double [ %.0139220, %390 ], [ %325, %387 ], [ %.0135221, %356 ], [ %.0139220, %394 ]
  %.2137.ph = phi double [ %.0135221, %390 ], [ %.0135221, %387 ], [ %325, %356 ], [ %.0135221, %394 ]
  %.2132.ph = phi double [ %.0130222, %390 ], [ %.0127223, %387 ], [ %.0127223, %356 ], [ %324, %394 ]
  %.2129.ph = phi double [ %.0127223, %390 ], [ %324, %387 ], [ %.0126224, %356 ], [ %.0127223, %394 ]
  %.2.ph = phi double [ %.0126224, %390 ], [ %.0126224, %387 ], [ %324, %356 ], [ %.0126224, %394 ]
  %396 = add nuw nsw i32 %.0153216, 1
  %397 = load i32, ptr %213, align 4, !tbaa !28
  %398 = icmp slt i32 %396, %397
  br i1 %398, label %217, label %.loopexit, !llvm.loop !30

.loopexit.sink.split:                             ; preds = %245, %261
  %.sink256 = phi ptr [ %263, %261 ], [ %248, %245 ]
  %399 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %.sink256, ptr noundef nonnull @.str.28)
  %400 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %399, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %.loopexit

.loopexit:                                        ; preds = %395, %.loopexit.sink.split, %210, %259, %243
  %.0135212 = phi double [ %.0135221, %259 ], [ %.0135221, %243 ], [ %211, %210 ], [ %.0135221, %.loopexit.sink.split ], [ %.2137.ph, %395 ]
  %.0126207 = phi double [ %.0126224, %259 ], [ %.0126224, %243 ], [ %212, %210 ], [ %.0126224, %.loopexit.sink.split ], [ %.2.ph, %395 ]
  call void @_ZN10LineSearch6ResultC2Ev(ptr noundef nonnull align 8 dereferenceable(20) %0) #8
  %401 = getelementptr inbounds i8, ptr %0, i64 8
  store double %.0126207, ptr %401, align 8, !tbaa !22
  store double %.0135212, ptr %0, align 8, !tbaa !24
  %402 = load i32, ptr %17, align 8, !tbaa !19
  %403 = getelementptr inbounds i8, ptr %0, i64 16
  store i32 %402, ptr %403, align 8, !tbaa !25
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #8
  br label %404

404:                                              ; preds = %.loopexit, %165, %98
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #8
  ret void
}

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef double @_ZL5clampddd(double noundef, double noundef, double noundef) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef double @_ZL13clampFromZerodd(double noundef, double noundef) local_unnamed_addr #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 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 #3 = { 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 #4 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { "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 #7 = { 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 #8 = { nounwind }
attributes #9 = { noreturn 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, !12, i64 120}
!6 = !{!"_ZTS10LineSearch", !7, i64 0, !7, i64 4, !10, i64 8, !13, i64 40, !13, i64 48, !13, i64 56, !7, i64 64, !13, i64 72, !7, i64 80, !14, i64 88, !7, i64 112, !12, i64 120, !12, i64 128}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTSSt8functionIFiPKdPdS2_EE", !11, i64 0, !12, i64 24}
!11 = !{!"_ZTSSt14_Function_base", !8, i64 0, !12, i64 16}
!12 = !{!"any pointer", !8, i64 0}
!13 = !{!"double", !8, i64 0}
!14 = !{!"_ZTSSt6vectorIdSaIdEE", !15, i64 0}
!15 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !12, i64 0, !12, i64 8, !12, i64 16}
!18 = !{!6, !12, i64 128}
!19 = !{!6, !7, i64 112}
!20 = !{!13, !13, i64 0}
!21 = !{!6, !7, i64 80}
!22 = !{!23, !13, i64 8}
!23 = !{!"_ZTSN10LineSearch6ResultE", !13, i64 0, !13, i64 8, !7, i64 16}
!24 = !{!23, !13, i64 0}
!25 = !{!23, !7, i64 16}
!26 = !{!6, !13, i64 40}
!27 = !{!6, !13, i64 48}
!28 = !{!6, !7, i64 4}
!29 = !{!6, !13, i64 56}
!30 = distinct !{!30, !31}
!31 = !{!"llvm.loop.mustprogress"}


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