; LLVM IR from bohanwang/libpgo :: src/core/nonlinearOptimization/lineSearch.ll (ZNK10LineSearch6goldenEPKdS1_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
@__PRETTY_FUNCTION__._ZNK10LineSearch6goldenEPKdS1_dd = external hidden unnamed_addr constant [80 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.9 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK10LineSearch6goldenEPKdS1_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) #0 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 i32, align 4
  %21 = alloca double, align 8
  %22 = alloca double, align 8
  %23 = alloca double, align 8
  %24 = alloca i32, align 4
  %25 = alloca double, align 8
  %26 = 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
  %27 = load ptr, ptr %7, align 8
  %28 = load ptr, ptr %8, align 8, !tbaa !5
  %29 = getelementptr inbounds %class.LineSearch, ptr %27, i32 0, i32 11
  store ptr %28, ptr %29, align 8, !tbaa !11
  %30 = load ptr, ptr %9, align 8, !tbaa !5
  %31 = getelementptr inbounds %class.LineSearch, ptr %27, i32 0, i32 12
  store ptr %30, ptr %31, align 8, !tbaa !20
  %32 = getelementptr inbounds %class.LineSearch, ptr %27, i32 0, i32 10
  store i32 0, ptr %32, align 8, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  store double 0.000000e+00, ptr %12, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
  %33 = load double, ptr %11, align 8, !tbaa !9
  store double %33, ptr %13, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  store double 0.000000e+00, ptr %14, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
  %34 = load double, ptr %10, align 8, !tbaa !9
  store double %34, ptr %15, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #7
  %35 = load double, ptr %13, align 8, !tbaa !9
  %36 = call noundef double @_ZNK10LineSearch3f1DEd(ptr noundef nonnull align 8 dereferenceable(136) %27, double noundef %35)
  store double %36, ptr %16, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  store double 0.000000e+00, ptr %17, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #7
  store i32 0, ptr %18, align 4, !tbaa !22
  br label %37

37:                                               ; preds = %55, %6
  %38 = load i32, ptr %18, align 4, !tbaa !22
  %39 = getelementptr inbounds %class.LineSearch, ptr %27, i32 0, i32 6
  %40 = load i32, ptr %39, align 8, !tbaa !23
  %41 = icmp slt i32 %38, %40
  br i1 %41, label %43, label %42

42:                                               ; preds = %37
  store i32 2, ptr %19, align 4
  br label %58

43:                                               ; preds = %37
  %44 = load double, ptr %16, align 8, !tbaa !9
  %45 = load double, ptr %15, align 8, !tbaa !9
  %46 = fcmp ole double %44, %45
  br i1 %46, label %47, label %48

47:                                               ; preds = %43
  store i32 2, ptr %19, align 4
  br label %58

48:                                               ; preds = %43
  %49 = getelementptr inbounds %class.LineSearch, ptr %27, i32 0, i32 7
  %50 = load double, ptr %49, align 8, !tbaa !24
  %51 = load double, ptr %13, align 8, !tbaa !9
  %52 = fmul double %51, %50
  store double %52, ptr %13, align 8, !tbaa !9
  %53 = load double, ptr %13, align 8, !tbaa !9
  %54 = call noundef double @_ZNK10LineSearch3f1DEd(ptr noundef nonnull align 8 dereferenceable(136) %27, double noundef %53)
  store double %54, ptr %16, align 8, !tbaa !9
  br label %55

55:                                               ; preds = %48
  %56 = load i32, ptr %18, align 4, !tbaa !22
  %57 = add nsw i32 %56, 1
  store i32 %57, ptr %18, align 4, !tbaa !22
  br label %37, !llvm.loop !25

58:                                               ; preds = %47, %42
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  br label %59

59:                                               ; preds = %58
  %60 = load double, ptr %16, align 8, !tbaa !9
  %61 = load double, ptr %15, align 8, !tbaa !9
  %62 = fcmp ogt double %60, %61
  br i1 %62, label %63, label %74

63:                                               ; preds = %59
  %64 = getelementptr inbounds %class.LineSearch, ptr %27, i32 0, i32 6
  %65 = load i32, ptr %64, align 8, !tbaa !23
  %66 = icmp sge i32 %65, 0
  br i1 %66, label %67, label %74

67:                                               ; preds = %63
  call void @_ZN10LineSearch6ResultC2Ev(ptr noundef nonnull align 8 dereferenceable(20) %0) #7
  %68 = getelementptr inbounds %"struct.LineSearch::Result", ptr %0, i32 0, i32 1
  store double 0.000000e+00, ptr %68, align 8, !tbaa !27
  %69 = load double, ptr %15, align 8, !tbaa !9
  %70 = getelementptr inbounds %"struct.LineSearch::Result", ptr %0, i32 0, i32 0
  store double %69, ptr %70, align 8, !tbaa !29
  %71 = getelementptr inbounds %class.LineSearch, ptr %27, i32 0, i32 10
  %72 = load i32, ptr %71, align 8, !tbaa !21
  %73 = getelementptr inbounds %"struct.LineSearch::Result", ptr %0, i32 0, i32 2
  store i32 %72, ptr %73, align 8, !tbaa !30
  store i32 1, ptr %19, align 4
  br label %287

74:                                               ; preds = %63, %59
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #7
  %75 = call noundef i32 @_ZNK10LineSearch17initializeTripletERdS0_S0_S0_S0_S0_(ptr noundef nonnull align 8 dereferenceable(136) %27, 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 %75, ptr %20, align 4, !tbaa !22
  %76 = load i32, ptr %20, align 4, !tbaa !22
  %77 = icmp ne i32 %76, 0
  br i1 %77, label %78, label %110

78:                                               ; preds = %74
  %79 = getelementptr inbounds %class.LineSearch, ptr %27, i32 0, i32 8
  %80 = load i32, ptr %79, align 8, !tbaa !31
  %81 = icmp ne i32 %80, 0
  br i1 %81, label %82, label %102

82:                                               ; preds = %78
  %83 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str)
  %84 = load double, ptr %12, align 8, !tbaa !9
  %85 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %83, double noundef %84)
  %86 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %85, ptr noundef @.str.1)
  %87 = load double, ptr %13, align 8, !tbaa !9
  %88 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %86, double noundef %87)
  %89 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %88, ptr noundef @.str.1)
  %90 = load double, ptr %14, align 8, !tbaa !9
  %91 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %89, double noundef %90)
  %92 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %91, ptr noundef @.str.2)
  %93 = load double, ptr %15, align 8, !tbaa !9
  %94 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %92, double noundef %93)
  %95 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %94, ptr noundef @.str.1)
  %96 = load double, ptr %16, 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 @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %97, ptr noundef @.str.1)
  %99 = load double, ptr %17, align 8, !tbaa !9
  %100 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %98, double noundef %99)
  %101 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %100, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %102

102:                                              ; preds = %82, %78
  call void @_ZN10LineSearch6ResultC2Ev(ptr noundef nonnull align 8 dereferenceable(20) %0) #7
  %103 = load double, ptr %14, align 8, !tbaa !9
  %104 = getelementptr inbounds %"struct.LineSearch::Result", ptr %0, i32 0, i32 1
  store double %103, ptr %104, align 8, !tbaa !27
  %105 = load double, ptr %17, align 8, !tbaa !9
  %106 = getelementptr inbounds %"struct.LineSearch::Result", ptr %0, i32 0, i32 0
  store double %105, ptr %106, align 8, !tbaa !29
  %107 = getelementptr inbounds %class.LineSearch, ptr %27, i32 0, i32 10
  %108 = load i32, ptr %107, align 8, !tbaa !21
  %109 = getelementptr inbounds %"struct.LineSearch::Result", ptr %0, i32 0, i32 2
  store i32 %108, ptr %109, align 8, !tbaa !30
  store i32 1, ptr %19, align 4
  br label %286

110:                                              ; preds = %74
  %111 = load double, ptr %16, align 8, !tbaa !9
  %112 = load double, ptr %15, align 8, !tbaa !9
  %113 = fcmp ole double %111, %112
  br i1 %113, label %114, label %118

114:                                              ; preds = %110
  %115 = load double, ptr %16, align 8, !tbaa !9
  %116 = load double, ptr %17, align 8, !tbaa !9
  %117 = fcmp ole double %115, %116
  br label %118

118:                                              ; preds = %114, %110
  %119 = phi i1 [ false, %110 ], [ %117, %114 ]
  br i1 %119, label %120, label %121

120:                                              ; preds = %118
  br label %123

121:                                              ; preds = %118
  call void @__assert_fail(ptr noundef @.str.3, ptr noundef @.str.4, i32 noundef 104, ptr noundef @__PRETTY_FUNCTION__._ZNK10LineSearch6goldenEPKdS1_dd) #8
  unreachable

122:                                              ; No predecessors!
  br label %123

123:                                              ; preds = %122, %120
  %124 = getelementptr inbounds %class.LineSearch, ptr %27, i32 0, i32 8
  %125 = load i32, ptr %124, align 8, !tbaa !31
  %126 = icmp ne i32 %125, 0
  br i1 %126, label %127, label %147

127:                                              ; preds = %123
  %128 = 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)
  %129 = load double, ptr %12, align 8, !tbaa !9
  %130 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %128, double noundef %129)
  %131 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %130, ptr noundef @.str.1)
  %132 = load double, ptr %13, align 8, !tbaa !9
  %133 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %131, double noundef %132)
  %134 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %133, ptr noundef @.str.1)
  %135 = load double, ptr %14, align 8, !tbaa !9
  %136 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %134, double noundef %135)
  %137 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %136, ptr noundef @.str.2)
  %138 = load double, ptr %15, align 8, !tbaa !9
  %139 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %137, double noundef %138)
  %140 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %139, ptr noundef @.str.1)
  %141 = load double, ptr %16, align 8, !tbaa !9
  %142 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %140, double noundef %141)
  %143 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %142, ptr noundef @.str.1)
  %144 = load double, ptr %17, align 8, !tbaa !9
  %145 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %143, double noundef %144)
  %146 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %145, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %147

147:                                              ; preds = %127, %123
  %148 = load double, ptr %15, align 8, !tbaa !9
  %149 = load double, ptr %16, align 8, !tbaa !9
  %150 = fcmp oeq double %148, %149
  br i1 %150, label %151, label %172

151:                                              ; preds = %147
  %152 = load double, ptr %16, align 8, !tbaa !9
  %153 = load double, ptr %17, align 8, !tbaa !9
  %154 = fcmp oeq double %152, %153
  br i1 %154, label %155, label %172

155:                                              ; preds = %151
  %156 = load double, ptr %17, align 8, !tbaa !9
  %157 = fcmp oeq double %156, 0x7FEFFFFFFFFFFFFF
  br i1 %157, label %158, label %172

158:                                              ; preds = %155
  %159 = getelementptr inbounds %class.LineSearch, ptr %27, i32 0, i32 8
  %160 = load i32, ptr %159, align 8, !tbaa !31
  %161 = icmp ne i32 %160, 0
  br i1 %161, label %162, label %165

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

165:                                              ; preds = %162, %158
  call void @_ZN10LineSearch6ResultC2Ev(ptr noundef nonnull align 8 dereferenceable(20) %0) #7
  %166 = getelementptr inbounds %"struct.LineSearch::Result", ptr %0, i32 0, i32 1
  store double 0.000000e+00, ptr %166, align 8, !tbaa !27
  %167 = load double, ptr %10, align 8, !tbaa !9
  %168 = getelementptr inbounds %"struct.LineSearch::Result", ptr %0, i32 0, i32 0
  store double %167, ptr %168, align 8, !tbaa !29
  %169 = getelementptr inbounds %class.LineSearch, ptr %27, 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 !30
  store i32 1, ptr %19, align 4
  br label %286

172:                                              ; preds = %155, %151, %147
  %173 = load double, ptr %12, align 8, !tbaa !9
  %174 = load double, ptr %13, align 8, !tbaa !9
  %175 = fsub double %173, %174
  %176 = call double @llvm.fabs.f64(double %175)
  %177 = load double, ptr %13, align 8, !tbaa !9
  %178 = load double, ptr %14, align 8, !tbaa !9
  %179 = fsub double %177, %178
  %180 = call double @llvm.fabs.f64(double %179)
  %181 = fcmp ogt double %176, %180
  br i1 %181, label %182, label %183

182:                                              ; preds = %172
  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) %12, ptr noundef nonnull align 8 dereferenceable(8) %14) #7
  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) %15, ptr noundef nonnull align 8 dereferenceable(8) %17) #7
  br label %183

183:                                              ; preds = %182, %172
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #7
  store double 0.000000e+00, ptr %21, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #7
  store double 0.000000e+00, ptr %22, align 8, !tbaa !9
  %184 = load double, ptr %13, align 8, !tbaa !9
  %185 = load double, ptr %14, align 8, !tbaa !9
  %186 = load double, ptr %13, align 8, !tbaa !9
  %187 = fsub double %185, %186
  %188 = call double @llvm.fmuladd.f64(double %187, double 0x3FD8722191A025FC, double %184)
  store double %188, ptr %21, align 8, !tbaa !9
  %189 = load double, ptr %21, align 8, !tbaa !9
  %190 = call noundef double @_ZNK10LineSearch3f1DEd(ptr noundef nonnull align 8 dereferenceable(136) %27, double noundef %189)
  store double %190, ptr %22, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #7
  store double 1.000000e-04, ptr %23, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #7
  store i32 0, ptr %24, align 4, !tbaa !22
  br label %191

191:                                              ; preds = %270, %183
  %192 = load i32, ptr %24, align 4, !tbaa !22
  %193 = getelementptr inbounds %class.LineSearch, ptr %27, i32 0, i32 1
  %194 = load i32, ptr %193, align 4, !tbaa !32
  %195 = icmp slt i32 %192, %194
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #7
  br i1 %195, label %196, label %213

196:                                              ; preds = %191
  %197 = load double, ptr %12, align 8, !tbaa !9
  %198 = load double, ptr %14, align 8, !tbaa !9
  %199 = fsub double %197, %198
  %200 = call double @llvm.fabs.f64(double %199)
  %201 = getelementptr inbounds %class.LineSearch, ptr %27, i32 0, i32 5
  %202 = load double, ptr %201, align 8, !tbaa !33
  %203 = fmul double %202, 2.000000e+00
  store double %203, ptr %25, align 8, !tbaa !9
  %204 = load double, ptr %13, align 8, !tbaa !9
  %205 = call double @llvm.fabs.f64(double %204)
  %206 = load double, ptr %21, align 8, !tbaa !9
  %207 = call double @llvm.fabs.f64(double %206)
  %208 = fadd double %205, %207
  %209 = fmul double 1.000000e-04, %208
  store double %209, ptr %26, align 8, !tbaa !9
  %210 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %25, ptr noundef nonnull align 8 dereferenceable(8) %26)
  %211 = load double, ptr %210, align 8, !tbaa !9
  %212 = fcmp ogt double %200, %211
  br label %213

213:                                              ; preds = %196, %191
  %214 = phi i1 [ false, %191 ], [ %212, %196 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #7
  br i1 %214, label %216, label %215

215:                                              ; preds = %213
  store i32 5, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #7
  br label %273

216:                                              ; preds = %213
  %217 = getelementptr inbounds %class.LineSearch, ptr %27, i32 0, i32 8
  %218 = load i32, ptr %217, align 8, !tbaa !31
  %219 = icmp ne i32 %218, 0
  br i1 %219, label %220, label %248

220:                                              ; preds = %216
  %221 = 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)
  %222 = load i32, ptr %24, align 4, !tbaa !22
  %223 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %221, i32 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.8)
  %225 = getelementptr inbounds %class.LineSearch, ptr %27, i32 0, i32 1
  %226 = load i32, ptr %225, align 4, !tbaa !32
  %227 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %224, i32 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 @.str.9)
  %229 = load double, ptr %12, align 8, !tbaa !9
  %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 @.str.1)
  %232 = load double, ptr %13, align 8, !tbaa !9
  %233 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %231, double noundef %232)
  %234 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %233, ptr noundef @.str.1)
  %235 = load double, ptr %14, align 8, !tbaa !9
  %236 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %234, double noundef %235)
  %237 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %236, ptr noundef @.str.10)
  %238 = load double, ptr %15, align 8, !tbaa !9
  %239 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %237, double noundef %238)
  %240 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %239, ptr noundef @.str.1)
  %241 = load double, ptr %16, align 8, !tbaa !9
  %242 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %240, double noundef %241)
  %243 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %242, ptr noundef @.str.1)
  %244 = load double, ptr %17, align 8, !tbaa !9
  %245 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %243, double noundef %244)
  %246 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %245, ptr noundef @.str.11)
  %247 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %246, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %248

248:                                              ; preds = %220, %216
  %249 = load double, ptr %16, align 8, !tbaa !9
  %250 = load double, ptr %22, align 8, !tbaa !9
  %251 = fcmp olt double %249, %250
  br i1 %251, label %252, label %257

252:                                              ; preds = %248
  %253 = load double, ptr %12, align 8, !tbaa !9
  store double %253, ptr %14, align 8, !tbaa !9
  %254 = load double, ptr %21, align 8, !tbaa !9
  store double %254, ptr %12, align 8, !tbaa !9
  %255 = load double, ptr %15, align 8, !tbaa !9
  store double %255, ptr %17, align 8, !tbaa !9
  %256 = load double, ptr %22, align 8, !tbaa !9
  store double %256, ptr %15, align 8, !tbaa !9
  br label %262

257:                                              ; preds = %248
  %258 = load double, ptr %13, align 8, !tbaa !9
  store double %258, ptr %12, align 8, !tbaa !9
  %259 = load double, ptr %21, align 8, !tbaa !9
  store double %259, ptr %13, align 8, !tbaa !9
  %260 = load double, ptr %16, align 8, !tbaa !9
  store double %260, ptr %15, align 8, !tbaa !9
  %261 = load double, ptr %22, align 8, !tbaa !9
  store double %261, ptr %16, align 8, !tbaa !9
  br label %262

262:                                              ; preds = %257, %252
  %263 = load double, ptr %13, align 8, !tbaa !9
  %264 = load double, ptr %14, align 8, !tbaa !9
  %265 = load double, ptr %13, align 8, !tbaa !9
  %266 = fsub double %264, %265
  %267 = call double @llvm.fmuladd.f64(double %266, double 0x3FD8722191A025FC, double %263)
  store double %267, ptr %21, align 8, !tbaa !9
  %268 = load double, ptr %21, align 8, !tbaa !9
  %269 = call noundef double @_ZNK10LineSearch3f1DEd(ptr noundef nonnull align 8 dereferenceable(136) %27, double noundef %268)
  store double %269, ptr %22, align 8, !tbaa !9
  br label %270

270:                                              ; preds = %262
  %271 = load i32, ptr %24, align 4, !tbaa !22
  %272 = add nsw i32 %271, 1
  store i32 %272, ptr %24, align 4, !tbaa !22
  br label %191, !llvm.loop !34

273:                                              ; preds = %215
  %274 = load double, ptr %16, align 8, !tbaa !9
  %275 = load double, ptr %22, align 8, !tbaa !9
  %276 = fcmp olt double %274, %275
  br i1 %276, label %277, label %278

277:                                              ; preds = %273
  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) %21, ptr noundef nonnull align 8 dereferenceable(8) %13) #7
  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) %22, ptr noundef nonnull align 8 dereferenceable(8) %16) #7
  br label %278

278:                                              ; preds = %277, %273
  call void @_ZN10LineSearch6ResultC2Ev(ptr noundef nonnull align 8 dereferenceable(20) %0) #7
  %279 = load double, ptr %21, align 8, !tbaa !9
  %280 = getelementptr inbounds %"struct.LineSearch::Result", ptr %0, i32 0, i32 1
  store double %279, ptr %280, align 8, !tbaa !27
  %281 = load double, ptr %22, align 8, !tbaa !9
  %282 = getelementptr inbounds %"struct.LineSearch::Result", ptr %0, i32 0, i32 0
  store double %281, ptr %282, align 8, !tbaa !29
  %283 = getelementptr inbounds %class.LineSearch, ptr %27, i32 0, i32 10
  %284 = load i32, ptr %283, align 8, !tbaa !21
  %285 = getelementptr inbounds %"struct.LineSearch::Result", ptr %0, i32 0, i32 2
  store i32 %284, ptr %285, align 8, !tbaa !30
  store i32 1, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #7
  br label %286

286:                                              ; preds = %278, %165, %102
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  br label %287

287:                                              ; preds = %286, %67
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  ret void
}

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_ZNK10LineSearch3f1DEd(ptr noundef nonnull align 8 dereferenceable(136), double noundef) #0 align 2

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

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

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { nounwind }
attributes #8 = { 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 64}
!24 = !{!12, !10, i64 72}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}
!27 = !{!28, !10, i64 8}
!28 = !{!"_ZTSN10LineSearch6ResultE", !10, i64 0, !10, i64 8, !13, i64 16}
!29 = !{!28, !10, i64 0}
!30 = !{!28, !13, i64 16}
!31 = !{!12, !13, i64 80}
!32 = !{!12, !13, i64 4}
!33 = !{!12, !10, i64 56}
!34 = distinct !{!34, !26}


; 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
@__PRETTY_FUNCTION__._ZNK10LineSearch6goldenEPKdS1_dd = external hidden unnamed_addr constant [80 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.9 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK10LineSearch6goldenEPKdS1_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 #0 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 = alloca double, align 8
  %16 = alloca double, align 8
  %17 = getelementptr inbounds i8, ptr %1, i64 120
  store ptr %2, ptr %17, align 8, !tbaa !5
  %18 = getelementptr inbounds i8, ptr %1, i64 128
  store ptr %3, ptr %18, align 8, !tbaa !18
  %19 = getelementptr inbounds i8, ptr %1, i64 112
  store i32 0, ptr %19, 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
  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
  %20 = tail call noundef double @_ZNK10LineSearch3f1DEd(ptr noundef nonnull align 8 dereferenceable(136) %1, double noundef %5)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #8
  store double 0.000000e+00, ptr %12, align 8, !tbaa !20
  %21 = getelementptr inbounds i8, ptr %1, i64 64
  %22 = load i32, ptr %21, align 8
  %23 = icmp sgt i32 %22, 0
  br i1 %23, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %6
  %24 = getelementptr inbounds i8, ptr %1, i64 72
  %25 = fcmp ugt double %20, %4
  br i1 %25, label %.lr.ph46, label %._crit_edge

.lr.ph46:                                         ; preds = %.lr.ph, %.lr.ph46
  %26 = phi double [ %28, %.lr.ph46 ], [ %5, %.lr.ph ]
  %.0122345 = phi i32 [ %30, %.lr.ph46 ], [ 0, %.lr.ph ]
  %27 = load double, ptr %24, align 8, !tbaa !21
  %28 = fmul double %27, %26
  %29 = tail call noundef double @_ZNK10LineSearch3f1DEd(ptr noundef nonnull align 8 dereferenceable(136) %1, double noundef %28)
  %30 = add nuw nsw i32 %.0122345, 1
  %31 = load i32, ptr %21, align 8
  %32 = icmp slt i32 %30, %31
  %33 = fcmp ugt double %29, %4
  %or.cond53 = and i1 %32, %33
  br i1 %or.cond53, label %.lr.ph46, label %._crit_edge, !llvm.loop !22

._crit_edge:                                      ; preds = %.lr.ph46, %.lr.ph, %6
  %.lcssa22 = phi double [ %5, %6 ], [ %5, %.lr.ph ], [ %28, %.lr.ph46 ]
  %.lcssa20 = phi double [ %20, %6 ], [ %20, %.lr.ph ], [ %29, %.lr.ph46 ]
  %.lcssa = phi i32 [ %22, %6 ], [ %22, %.lr.ph ], [ %31, %.lr.ph46 ]
  store double %.lcssa20, ptr %11, align 8, !tbaa !20
  store double %.lcssa22, ptr %8, align 8, !tbaa !20
  %34 = fcmp ogt double %.lcssa20, %4
  %35 = icmp sgt i32 %.lcssa, -1
  %or.cond19 = and i1 %35, %34
  br i1 %or.cond19, label %36, label %40

36:                                               ; preds = %._crit_edge
  tail call void @_ZN10LineSearch6ResultC2Ev(ptr noundef nonnull align 8 dereferenceable(20) %0) #8
  %37 = getelementptr inbounds i8, ptr %0, i64 8
  store double 0.000000e+00, ptr %37, align 8, !tbaa !24
  store double %4, ptr %0, align 8, !tbaa !26
  %38 = load i32, ptr %19, align 8, !tbaa !19
  %39 = getelementptr inbounds i8, ptr %0, i64 16
  store i32 %38, ptr %39, align 8, !tbaa !27
  br label %216

40:                                               ; preds = %._crit_edge
  %41 = 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)
  %.not = icmp eq i32 %41, 0
  br i1 %.not, label %71, label %42

42:                                               ; preds = %40
  %43 = getelementptr inbounds i8, ptr %1, i64 80
  %44 = load i32, ptr %43, align 8, !tbaa !28
  %.not17 = icmp eq i32 %44, 0
  br i1 %.not17, label %65, label %45

45:                                               ; preds = %42
  %46 = 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)
  %47 = load double, ptr %7, align 8, !tbaa !20
  %48 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %46, double noundef %47)
  %49 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %48, ptr noundef nonnull @.str.1)
  %50 = load double, ptr %8, align 8, !tbaa !20
  %51 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %49, double noundef %50)
  %52 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %51, ptr noundef nonnull @.str.1)
  %53 = load double, ptr %9, align 8, !tbaa !20
  %54 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %52, double noundef %53)
  %55 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %54, ptr noundef nonnull @.str.2)
  %56 = load double, ptr %10, align 8, !tbaa !20
  %57 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %55, double noundef %56)
  %58 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %57, ptr noundef nonnull @.str.1)
  %59 = load double, ptr %11, align 8, !tbaa !20
  %60 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %58, double noundef %59)
  %61 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %60, ptr noundef nonnull @.str.1)
  %62 = load double, ptr %12, align 8, !tbaa !20
  %63 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %61, double noundef %62)
  %64 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %63, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %65

65:                                               ; preds = %45, %42
  call void @_ZN10LineSearch6ResultC2Ev(ptr noundef nonnull align 8 dereferenceable(20) %0) #8
  %66 = load double, ptr %9, align 8, !tbaa !20
  %67 = getelementptr inbounds i8, ptr %0, i64 8
  store double %66, ptr %67, align 8, !tbaa !24
  %68 = load double, ptr %12, align 8, !tbaa !20
  store double %68, ptr %0, align 8, !tbaa !26
  %69 = load i32, ptr %19, align 8, !tbaa !19
  %70 = getelementptr inbounds i8, ptr %0, i64 16
  store i32 %69, ptr %70, align 8, !tbaa !27
  br label %216

71:                                               ; preds = %40
  %72 = load double, ptr %11, align 8
  %73 = load double, ptr %10, align 8, !tbaa !20
  %74 = fcmp ole double %72, %73
  %75 = load double, ptr %12, align 8
  %76 = fcmp ole double %72, %75
  %77 = select i1 %74, i1 %76, i1 false
  br i1 %77, label %79, label %78

78:                                               ; preds = %71
  call void @__assert_fail(ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.4, i32 noundef 104, ptr noundef nonnull @__PRETTY_FUNCTION__._ZNK10LineSearch6goldenEPKdS1_dd) #9
  unreachable

79:                                               ; preds = %71
  %80 = getelementptr inbounds i8, ptr %1, i64 80
  %81 = load i32, ptr %80, align 8, !tbaa !28
  %.not14 = icmp eq i32 %81, 0
  br i1 %.not14, label %102, label %82

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

102:                                              ; preds = %82, %79
  %103 = phi double [ %.pre34, %82 ], [ %72, %79 ]
  %104 = phi double [ %.pre, %82 ], [ %73, %79 ]
  %105 = fcmp oeq double %104, %103
  br i1 %105, label %106, label %119

106:                                              ; preds = %102
  %107 = load double, ptr %12, align 8
  %108 = fcmp oeq double %103, %107
  %109 = fcmp oeq double %107, 0x7FEFFFFFFFFFFFFF
  %or.cond = and i1 %108, %109
  br i1 %or.cond, label %110, label %119

110:                                              ; preds = %106
  %111 = load i32, ptr %80, align 8, !tbaa !28
  %.not16 = icmp eq i32 %111, 0
  br i1 %.not16, label %115, label %112

112:                                              ; preds = %110
  %113 = 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)
  %114 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %113, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %115

115:                                              ; preds = %112, %110
  call void @_ZN10LineSearch6ResultC2Ev(ptr noundef nonnull align 8 dereferenceable(20) %0) #8
  %116 = getelementptr inbounds i8, ptr %0, i64 8
  store double 0.000000e+00, ptr %116, align 8, !tbaa !24
  store double %4, ptr %0, align 8, !tbaa !26
  %117 = load i32, ptr %19, align 8, !tbaa !19
  %118 = getelementptr inbounds i8, ptr %0, i64 16
  store i32 %117, ptr %118, align 8, !tbaa !27
  br label %216

119:                                              ; preds = %106, %102
  %120 = load double, ptr %7, align 8, !tbaa !20
  %121 = load double, ptr %8, align 8, !tbaa !20
  %122 = load double, ptr %9, align 8, !tbaa !20
  %123 = insertelement <2 x double> poison, double %121, i64 0
  %124 = shufflevector <2 x double> %123, <2 x double> poison, <2 x i32> zeroinitializer
  %125 = insertelement <2 x double> poison, double %120, i64 0
  %126 = insertelement <2 x double> %125, double %122, i64 1
  %127 = fsub <2 x double> %124, %126
  %128 = call <2 x double> @llvm.fabs.v2f64(<2 x double> %127)
  %129 = extractelement <2 x double> %128, i64 0
  %130 = extractelement <2 x double> %128, i64 1
  %131 = fcmp ogt double %129, %130
  br i1 %131, label %132, label %133

132:                                              ; preds = %119
  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) %7, ptr noundef nonnull align 8 dereferenceable(8) %9) #8
  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) %10, ptr noundef nonnull align 8 dereferenceable(8) %12) #8
  %.pre35 = load double, ptr %8, align 8, !tbaa !20
  %.pre36 = load double, ptr %9, align 8, !tbaa !20
  br label %133

133:                                              ; preds = %132, %119
  %134 = phi double [ %.pre36, %132 ], [ %122, %119 ]
  %135 = phi double [ %.pre35, %132 ], [ %121, %119 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #8
  %136 = fsub double %134, %135
  %137 = call double @llvm.fmuladd.f64(double %136, double 0x3FD8722191A025FC, double %135)
  store double %137, ptr %13, align 8, !tbaa !20
  %138 = call noundef double @_ZNK10LineSearch3f1DEd(ptr noundef nonnull align 8 dereferenceable(136) %1, double noundef %137)
  store double %138, ptr %14, align 8, !tbaa !20
  %139 = getelementptr inbounds i8, ptr %1, i64 4
  %140 = load i32, ptr %139, align 4, !tbaa !29
  %141 = icmp sgt i32 %140, 0
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #8
  br i1 %141, label %.lr.ph32, label %.critedge

.lr.ph32:                                         ; preds = %133
  %142 = getelementptr inbounds i8, ptr %1, i64 56
  br label %143

143:                                              ; preds = %.lr.ph32, %200
  %144 = phi double [ %138, %.lr.ph32 ], [ %205, %200 ]
  %145 = phi double [ %137, %.lr.ph32 ], [ %204, %200 ]
  %.030 = phi i32 [ 0, %.lr.ph32 ], [ %206, %200 ]
  %146 = load double, ptr %7, align 8, !tbaa !20
  %147 = load double, ptr %9, align 8, !tbaa !20
  %148 = fsub double %146, %147
  %149 = call double @llvm.fabs.f64(double %148)
  %150 = load double, ptr %142, align 8, !tbaa !30
  %151 = fmul double %150, 2.000000e+00
  store double %151, ptr %15, align 8, !tbaa !20
  %152 = load double, ptr %8, align 8, !tbaa !20
  %153 = call double @llvm.fabs.f64(double %152)
  %154 = call double @llvm.fabs.f64(double %145)
  %155 = fadd double %153, %154
  %156 = fmul double %155, 1.000000e-04
  store double %156, ptr %16, align 8, !tbaa !20
  %157 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 8 dereferenceable(8) %16)
  %158 = load double, ptr %157, align 8, !tbaa !20
  %159 = fcmp ogt double %149, %158
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #8
  br i1 %159, label %164, label %.loopexit

.critedge:                                        ; preds = %200, %133
  %160 = phi double [ %138, %133 ], [ %205, %200 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #8
  br label %.loopexit

.loopexit:                                        ; preds = %143, %.critedge
  %161 = phi double [ %160, %.critedge ], [ %144, %143 ]
  %162 = load double, ptr %11, align 8, !tbaa !20
  %163 = fcmp olt double %162, %161
  br i1 %163, label %209, label %210

164:                                              ; preds = %143
  %165 = load i32, ptr %80, align 8, !tbaa !28
  %.not15 = icmp eq i32 %165, 0
  br i1 %.not15, label %192, label %166

166:                                              ; preds = %164
  %167 = 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)
  %168 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %167, i32 noundef %.030)
  %169 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %168, ptr noundef nonnull @.str.8)
  %170 = load i32, ptr %139, align 4, !tbaa !29
  %171 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %169, i32 noundef %170)
  %172 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %171, ptr noundef nonnull @.str.9)
  %173 = load double, ptr %7, align 8, !tbaa !20
  %174 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %172, double noundef %173)
  %175 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %174, ptr noundef nonnull @.str.1)
  %176 = load double, ptr %8, align 8, !tbaa !20
  %177 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %175, double noundef %176)
  %178 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %177, ptr noundef nonnull @.str.1)
  %179 = load double, ptr %9, align 8, !tbaa !20
  %180 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %178, 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.10)
  %182 = load double, ptr %10, align 8, !tbaa !20
  %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 nonnull @.str.1)
  %185 = load double, ptr %11, align 8, !tbaa !20
  %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 nonnull @.str.1)
  %188 = load double, ptr %12, align 8, !tbaa !20
  %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 @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %189, ptr noundef nonnull @.str.11)
  %191 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %190, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %192

192:                                              ; preds = %166, %164
  %193 = load double, ptr %11, align 8, !tbaa !20
  %194 = fcmp olt double %193, %144
  br i1 %194, label %195, label %198

195:                                              ; preds = %192
  %196 = load double, ptr %7, align 8, !tbaa !20
  store double %196, ptr %9, align 8, !tbaa !20
  %197 = load double, ptr %10, align 8, !tbaa !20
  store double %197, ptr %12, align 8, !tbaa !20
  %.pre37 = load double, ptr %8, align 8, !tbaa !20
  br label %200

198:                                              ; preds = %192
  %199 = load double, ptr %8, align 8, !tbaa !20
  store double %145, ptr %8, align 8, !tbaa !20
  store double %144, ptr %11, align 8, !tbaa !20
  %.pre38 = load double, ptr %9, align 8, !tbaa !20
  br label %200

200:                                              ; preds = %198, %195
  %201 = phi double [ %196, %195 ], [ %.pre38, %198 ]
  %202 = phi double [ %.pre37, %195 ], [ %145, %198 ]
  %.sink33 = phi double [ %145, %195 ], [ %199, %198 ]
  %.sink = phi double [ %144, %195 ], [ %193, %198 ]
  store double %.sink33, ptr %7, align 8
  store double %.sink, ptr %10, align 8
  %203 = fsub double %201, %202
  %204 = call double @llvm.fmuladd.f64(double %203, double 0x3FD8722191A025FC, double %202)
  store double %204, ptr %13, align 8, !tbaa !20
  %205 = call noundef double @_ZNK10LineSearch3f1DEd(ptr noundef nonnull align 8 dereferenceable(136) %1, double noundef %204)
  store double %205, ptr %14, align 8, !tbaa !20
  %206 = add nuw nsw i32 %.030, 1
  %207 = load i32, ptr %139, align 4, !tbaa !29
  %208 = icmp slt i32 %206, %207
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #8
  br i1 %208, label %143, label %.critedge, !llvm.loop !31

209:                                              ; preds = %.loopexit
  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) %8) #8
  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) %14, ptr noundef nonnull align 8 dereferenceable(8) %11) #8
  br label %210

210:                                              ; preds = %209, %.loopexit
  call void @_ZN10LineSearch6ResultC2Ev(ptr noundef nonnull align 8 dereferenceable(20) %0) #8
  %211 = load double, ptr %13, align 8, !tbaa !20
  %212 = getelementptr inbounds i8, ptr %0, i64 8
  store double %211, ptr %212, align 8, !tbaa !24
  %213 = load double, ptr %14, align 8, !tbaa !20
  store double %213, ptr %0, align 8, !tbaa !26
  %214 = load i32, ptr %19, align 8, !tbaa !19
  %215 = getelementptr inbounds i8, ptr %0, i64 16
  store i32 %214, ptr %215, align 8, !tbaa !27
  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 %216

216:                                              ; preds = %65, %115, %210, %36
  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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_ZNK10LineSearch3f1DEd(ptr noundef nonnull align 8 dereferenceable(136), double noundef) local_unnamed_addr #0 align 2

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

; 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 #0 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 #0 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 #0 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: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <2 x double> @llvm.fabs.v2f64(<2 x double>) #7

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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, !13, i64 72}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}
!24 = !{!25, !13, i64 8}
!25 = !{!"_ZTSN10LineSearch6ResultE", !13, i64 0, !13, i64 8, !7, i64 16}
!26 = !{!25, !13, i64 0}
!27 = !{!25, !7, i64 16}
!28 = !{!6, !7, i64 80}
!29 = !{!6, !7, i64 4}
!30 = !{!6, !13, i64 56}
!31 = distinct !{!31, !23}


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