; LLVM IR from rgolubtsov/nonlinear-optimization-algorithms-multilang :: nlp-unconstrained-cli/hooke-jeeves/cc/src (hooke)

; 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 }
%"class.NLPUCCLIHooke::Rosenbrock" = type { i8 }
%"struct.std::_Setw" = type { i32 }
%"struct.std::_Setprecision" = type { i32 }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [2 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [5 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_ZN13NLPUCCLIHooke5Hooke10bestNearbyEPdS1_djPKv(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef, ptr noundef, double noundef, i32 noundef, ptr noundef) #0 align 2

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

declare void @_ZN13NLPUCCLIHooke10RosenbrockC1Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2

declare noundef double @_ZN13NLPUCCLIHooke10Rosenbrock1fEPKdjPKv(ptr noundef, i32 noundef, ptr noundef) #2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nounwind
declare void @_ZN13NLPUCCLIHooke10RosenbrockD1Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN13NLPUCCLIHooke5Hooke5hookeEjPKdPdddj(ptr noundef nonnull align 1 dereferenceable(1) %0, i32 noundef %1, ptr noundef %2, ptr noundef %3, double noundef %4, double noundef %5, i32 noundef %6) #0 align 2 personality ptr @__gxx_personality_v0 {
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca double, align 8
  %13 = alloca double, align 8
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca [250 x double], align 16
  %21 = alloca [250 x double], align 16
  %22 = alloca [250 x double], align 16
  %23 = alloca double, align 8
  %24 = alloca double, align 8
  %25 = alloca double, align 8
  %26 = alloca double, align 8
  %27 = alloca ptr, align 8
  %28 = alloca ptr, align 8
  %29 = alloca i32, align 4
  %30 = alloca %"class.NLPUCCLIHooke::Rosenbrock", align 1
  %31 = alloca %"struct.std::_Setw", align 4
  %32 = alloca %"struct.std::_Setprecision", align 4
  %33 = alloca %"struct.std::_Setw", align 4
  store ptr %0, ptr %8, align 8, !tbaa !5
  store i32 %1, ptr %9, align 4, !tbaa !9
  store ptr %2, ptr %10, align 8, !tbaa !5
  store ptr %3, ptr %11, align 8, !tbaa !5
  store double %4, ptr %12, align 8, !tbaa !11
  store double %5, ptr %13, align 8, !tbaa !11
  store i32 %6, ptr %14, align 4, !tbaa !9
  %34 = load ptr, ptr %8, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #9
  call void @llvm.lifetime.start.p0(i64 2000, ptr %20) #9
  call void @llvm.lifetime.start.p0(i64 2000, ptr %21) #9
  call void @llvm.lifetime.start.p0(i64 2000, ptr %22) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #9
  store i32 0, ptr %15, align 4, !tbaa !9
  br label %35

35:                                               ; preds = %73, %7
  %36 = load i32, ptr %15, align 4, !tbaa !9
  %37 = load i32, ptr %9, align 4, !tbaa !9
  %38 = icmp ult i32 %36, %37
  br i1 %38, label %39, label %76

39:                                               ; preds = %35
  %40 = load ptr, ptr %10, align 8, !tbaa !5
  %41 = load i32, ptr %15, align 4, !tbaa !9
  %42 = zext i32 %41 to i64
  %43 = getelementptr inbounds double, ptr %40, i64 %42
  %44 = load double, ptr %43, align 8, !tbaa !11
  %45 = load i32, ptr %15, align 4, !tbaa !9
  %46 = zext i32 %45 to i64
  %47 = getelementptr inbounds [250 x double], ptr %21, i64 0, i64 %46
  store double %44, ptr %47, align 8, !tbaa !11
  %48 = load i32, ptr %15, align 4, !tbaa !9
  %49 = zext i32 %48 to i64
  %50 = getelementptr inbounds [250 x double], ptr %20, i64 0, i64 %49
  store double %44, ptr %50, align 8, !tbaa !11
  %51 = load ptr, ptr %10, align 8, !tbaa !5
  %52 = load i32, ptr %15, align 4, !tbaa !9
  %53 = zext i32 %52 to i64
  %54 = getelementptr inbounds double, ptr %51, i64 %53
  %55 = load double, ptr %54, align 8, !tbaa !11
  %56 = load double, ptr %12, align 8, !tbaa !11
  %57 = fmul double %55, %56
  %58 = call double @llvm.fabs.f64(double %57)
  %59 = load i32, ptr %15, align 4, !tbaa !9
  %60 = zext i32 %59 to i64
  %61 = getelementptr inbounds [250 x double], ptr %22, i64 0, i64 %60
  store double %58, ptr %61, align 8, !tbaa !11
  %62 = load i32, ptr %15, align 4, !tbaa !9
  %63 = zext i32 %62 to i64
  %64 = getelementptr inbounds [250 x double], ptr %22, i64 0, i64 %63
  %65 = load double, ptr %64, align 8, !tbaa !11
  %66 = fcmp oeq double %65, 0.000000e+00
  br i1 %66, label %67, label %72

67:                                               ; preds = %39
  %68 = load double, ptr %12, align 8, !tbaa !11
  %69 = load i32, ptr %15, align 4, !tbaa !9
  %70 = zext i32 %69 to i64
  %71 = getelementptr inbounds [250 x double], ptr %22, i64 0, i64 %70
  store double %68, ptr %71, align 8, !tbaa !11
  br label %72

72:                                               ; preds = %67, %39
  br label %73

73:                                               ; preds = %72
  %74 = load i32, ptr %15, align 4, !tbaa !9
  %75 = add i32 %74, 1
  store i32 %75, ptr %15, align 4, !tbaa !9
  br label %35, !llvm.loop !13

76:                                               ; preds = %35
  store i32 0, ptr %16, align 4, !tbaa !9
  %77 = load double, ptr %12, align 8, !tbaa !11
  store double %77, ptr %23, align 8, !tbaa !11
  store i32 0, ptr %17, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #9
  %78 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 4) #10
  invoke void @_ZN13NLPUCCLIHooke8FunEvalsC1Ev(ptr noundef nonnull align 4 dereferenceable(4) %78)
          to label %79 unwind label %163

79:                                               ; preds = %76
  store ptr %78, ptr %27, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %30) #9
  call void @_ZN13NLPUCCLIHooke10RosenbrockC1Ev(ptr noundef nonnull align 1 dereferenceable(1) %30)
  %80 = getelementptr inbounds [250 x double], ptr %20, i64 0, i64 0
  %81 = load i32, ptr %9, align 4, !tbaa !9
  %82 = load ptr, ptr %27, align 8, !tbaa !5
  %83 = invoke noundef double @_ZN13NLPUCCLIHooke10Rosenbrock1fEPKdjPKv(ptr noundef %80, i32 noundef %81, ptr noundef %82)
          to label %84 unwind label %167

84:                                               ; preds = %79
  store double %83, ptr %24, align 8, !tbaa !11
  %85 = load double, ptr %24, align 8, !tbaa !11
  store double %85, ptr %25, align 8, !tbaa !11
  br label %86

86:                                               ; preds = %337, %84
  %87 = load i32, ptr %17, align 4, !tbaa !9
  %88 = load i32, ptr %14, align 4, !tbaa !9
  %89 = icmp ult i32 %87, %88
  br i1 %89, label %90, label %94

90:                                               ; preds = %86
  %91 = load double, ptr %23, align 8, !tbaa !11
  %92 = load double, ptr %13, align 8, !tbaa !11
  %93 = fcmp ogt double %91, %92
  br label %94

94:                                               ; preds = %90, %86
  %95 = phi i1 [ false, %86 ], [ %93, %90 ]
  br i1 %95, label %96, label %338

96:                                               ; preds = %94
  %97 = load i32, ptr %17, align 4, !tbaa !9
  %98 = add i32 %97, 1
  store i32 %98, ptr %17, align 4, !tbaa !9
  %99 = load i32, ptr %16, align 4, !tbaa !9
  %100 = add i32 %99, 1
  store i32 %100, ptr %16, align 4, !tbaa !9
  %101 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str)
          to label %102 unwind label %167

102:                                              ; preds = %96
  %103 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %101, ptr noundef @.str.1)
          to label %104 unwind label %167

104:                                              ; preds = %102
  %105 = invoke i32 @_ZSt4setwi(i32 noundef 5)
          to label %106 unwind label %167

106:                                              ; preds = %104
  %107 = getelementptr inbounds %"struct.std::_Setw", ptr %31, i32 0, i32 0
  store i32 %105, ptr %107, align 4
  %108 = getelementptr inbounds %"struct.std::_Setw", ptr %31, i32 0, i32 0
  %109 = load i32, ptr %108, align 4
  %110 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_St5_Setw(ptr noundef nonnull align 8 dereferenceable(8) %103, i32 %109)
          to label %111 unwind label %167

111:                                              ; preds = %106
  %112 = load ptr, ptr %27, align 8, !tbaa !5
  %113 = invoke noundef i32 @_ZN13NLPUCCLIHooke8FunEvals11getFunEvalsEv(ptr noundef nonnull align 4 dereferenceable(4) %112)
          to label %114 unwind label %167

114:                                              ; preds = %111
  %115 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEj(ptr noundef nonnull align 8 dereferenceable(8) %110, i32 noundef %113)
          to label %116 unwind label %167

116:                                              ; preds = %114
  %117 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %115, ptr noundef @.str.2)
          to label %118 unwind label %167

118:                                              ; preds = %116
  %119 = invoke i32 @_ZSt12setprecisioni(i32 noundef 4)
          to label %120 unwind label %167

120:                                              ; preds = %118
  %121 = getelementptr inbounds %"struct.std::_Setprecision", ptr %32, i32 0, i32 0
  store i32 %119, ptr %121, align 4
  %122 = getelementptr inbounds %"struct.std::_Setprecision", ptr %32, i32 0, i32 0
  %123 = load i32, ptr %122, align 4
  %124 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_St13_Setprecision(ptr noundef nonnull align 8 dereferenceable(8) %117, i32 %123)
          to label %125 unwind label %167

125:                                              ; preds = %120
  %126 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8) %124, ptr noundef @_ZSt10scientificRSt8ios_base)
          to label %127 unwind label %167

127:                                              ; preds = %125
  %128 = load double, ptr %24, align 8, !tbaa !11
  %129 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %126, double noundef %128)
          to label %130 unwind label %167

130:                                              ; preds = %127
  %131 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %129, ptr noundef @.str.3)
          to label %132 unwind label %167

132:                                              ; preds = %130
  store i32 0, ptr %18, align 4, !tbaa !9
  br label %133

133:                                              ; preds = %160, %132
  %134 = load i32, ptr %18, align 4, !tbaa !9
  %135 = load i32, ptr %9, align 4, !tbaa !9
  %136 = icmp ult i32 %134, %135
  br i1 %136, label %137, label %171

137:                                              ; preds = %133
  %138 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.4)
          to label %139 unwind label %167

139:                                              ; preds = %137
  %140 = invoke i32 @_ZSt4setwi(i32 noundef 2)
          to label %141 unwind label %167

141:                                              ; preds = %139
  %142 = getelementptr inbounds %"struct.std::_Setw", ptr %33, i32 0, i32 0
  store i32 %140, ptr %142, align 4
  %143 = getelementptr inbounds %"struct.std::_Setw", ptr %33, i32 0, i32 0
  %144 = load i32, ptr %143, align 4
  %145 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_St5_Setw(ptr noundef nonnull align 8 dereferenceable(8) %138, i32 %144)
          to label %146 unwind label %167

146:                                              ; preds = %141
  %147 = load i32, ptr %18, align 4, !tbaa !9
  %148 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEj(ptr noundef nonnull align 8 dereferenceable(8) %145, i32 noundef %147)
          to label %149 unwind label %167

149:                                              ; preds = %146
  %150 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %148, ptr noundef @.str.5)
          to label %151 unwind label %167

151:                                              ; preds = %149
  %152 = load i32, ptr %18, align 4, !tbaa !9
  %153 = zext i32 %152 to i64
  %154 = getelementptr inbounds [250 x double], ptr %21, i64 0, i64 %153
  %155 = load double, ptr %154, align 8, !tbaa !11
  %156 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %150, double noundef %155)
          to label %157 unwind label %167

157:                                              ; preds = %151
  %158 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %156, ptr noundef @.str)
          to label %159 unwind label %167

159:                                              ; preds = %157
  br label %160

160:                                              ; preds = %159
  %161 = load i32, ptr %18, align 4, !tbaa !9
  %162 = add i32 %161, 1
  store i32 %162, ptr %18, align 4, !tbaa !9
  br label %133, !llvm.loop !15

163:                                              ; preds = %76
  %164 = landingpad { ptr, i32 }
          cleanup
  %165 = extractvalue { ptr, i32 } %164, 0
  store ptr %165, ptr %28, align 8
  %166 = extractvalue { ptr, i32 } %164, 1
  store i32 %166, ptr %29, align 4
  call void @_ZdlPvm(ptr noundef %78, i64 noundef 4) #11
  br label %361

167:                                              ; preds = %267, %187, %157, %151, %149, %146, %141, %139, %137, %130, %127, %125, %120, %118, %116, %114, %111, %106, %104, %102, %96, %79
  %168 = landingpad { ptr, i32 }
          cleanup
  %169 = extractvalue { ptr, i32 } %168, 0
  store ptr %169, ptr %28, align 8
  %170 = extractvalue { ptr, i32 } %168, 1
  store i32 %170, ptr %29, align 4
  call void @_ZN13NLPUCCLIHooke10RosenbrockD1Ev(ptr noundef nonnull align 1 dereferenceable(1) %30) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %30) #9
  br label %361

171:                                              ; preds = %133
  store i32 0, ptr %15, align 4, !tbaa !9
  br label %172

172:                                              ; preds = %184, %171
  %173 = load i32, ptr %15, align 4, !tbaa !9
  %174 = load i32, ptr %9, align 4, !tbaa !9
  %175 = icmp ult i32 %173, %174
  br i1 %175, label %176, label %187

176:                                              ; preds = %172
  %177 = load i32, ptr %15, align 4, !tbaa !9
  %178 = zext i32 %177 to i64
  %179 = getelementptr inbounds [250 x double], ptr %21, i64 0, i64 %178
  %180 = load double, ptr %179, align 8, !tbaa !11
  %181 = load i32, ptr %15, align 4, !tbaa !9
  %182 = zext i32 %181 to i64
  %183 = getelementptr inbounds [250 x double], ptr %20, i64 0, i64 %182
  store double %180, ptr %183, align 8, !tbaa !11
  br label %184

184:                                              ; preds = %176
  %185 = load i32, ptr %15, align 4, !tbaa !9
  %186 = add i32 %185, 1
  store i32 %186, ptr %15, align 4, !tbaa !9
  br label %172, !llvm.loop !16

187:                                              ; preds = %172
  %188 = getelementptr inbounds [250 x double], ptr %22, i64 0, i64 0
  %189 = getelementptr inbounds [250 x double], ptr %20, i64 0, i64 0
  %190 = load double, ptr %24, align 8, !tbaa !11
  %191 = load i32, ptr %9, align 4, !tbaa !9
  %192 = load ptr, ptr %27, align 8, !tbaa !5
  %193 = invoke noundef double @_ZN13NLPUCCLIHooke5Hooke10bestNearbyEPdS1_djPKv(ptr noundef nonnull align 1 dereferenceable(1) %34, ptr noundef %188, ptr noundef %189, double noundef %190, i32 noundef %191, ptr noundef %192)
          to label %194 unwind label %167

194:                                              ; preds = %187
  store double %193, ptr %25, align 8, !tbaa !11
  store i32 1, ptr %19, align 4, !tbaa !9
  br label %195

195:                                              ; preds = %309, %194
  %196 = load double, ptr %25, align 8, !tbaa !11
  %197 = load double, ptr %24, align 8, !tbaa !11
  %198 = fcmp olt double %196, %197
  br i1 %198, label %199, label %202

199:                                              ; preds = %195
  %200 = load i32, ptr %19, align 4, !tbaa !9
  %201 = icmp eq i32 %200, 1
  br label %202

202:                                              ; preds = %199, %195
  %203 = phi i1 [ false, %195 ], [ %201, %199 ]
  br i1 %203, label %204, label %310

204:                                              ; preds = %202
  store i32 0, ptr %16, align 4, !tbaa !9
  store i32 0, ptr %15, align 4, !tbaa !9
  br label %205

205:                                              ; preds = %264, %204
  %206 = load i32, ptr %15, align 4, !tbaa !9
  %207 = load i32, ptr %9, align 4, !tbaa !9
  %208 = icmp ult i32 %206, %207
  br i1 %208, label %209, label %267

209:                                              ; preds = %205
  %210 = load i32, ptr %15, align 4, !tbaa !9
  %211 = zext i32 %210 to i64
  %212 = getelementptr inbounds [250 x double], ptr %20, i64 0, i64 %211
  %213 = load double, ptr %212, align 8, !tbaa !11
  %214 = load i32, ptr %15, align 4, !tbaa !9
  %215 = zext i32 %214 to i64
  %216 = getelementptr inbounds [250 x double], ptr %21, i64 0, i64 %215
  %217 = load double, ptr %216, align 8, !tbaa !11
  %218 = fcmp ole double %213, %217
  br i1 %218, label %219, label %229

219:                                              ; preds = %209
  %220 = load i32, ptr %15, align 4, !tbaa !9
  %221 = zext i32 %220 to i64
  %222 = getelementptr inbounds [250 x double], ptr %22, i64 0, i64 %221
  %223 = load double, ptr %222, align 8, !tbaa !11
  %224 = call double @llvm.fabs.f64(double %223)
  %225 = fsub double 0.000000e+00, %224
  %226 = load i32, ptr %15, align 4, !tbaa !9
  %227 = zext i32 %226 to i64
  %228 = getelementptr inbounds [250 x double], ptr %22, i64 0, i64 %227
  store double %225, ptr %228, align 8, !tbaa !11
  br label %238

229:                                              ; preds = %209
  %230 = load i32, ptr %15, align 4, !tbaa !9
  %231 = zext i32 %230 to i64
  %232 = getelementptr inbounds [250 x double], ptr %22, i64 0, i64 %231
  %233 = load double, ptr %232, align 8, !tbaa !11
  %234 = call double @llvm.fabs.f64(double %233)
  %235 = load i32, ptr %15, align 4, !tbaa !9
  %236 = zext i32 %235 to i64
  %237 = getelementptr inbounds [250 x double], ptr %22, i64 0, i64 %236
  store double %234, ptr %237, align 8, !tbaa !11
  br label %238

238:                                              ; preds = %229, %219
  %239 = load i32, ptr %15, align 4, !tbaa !9
  %240 = zext i32 %239 to i64
  %241 = getelementptr inbounds [250 x double], ptr %21, i64 0, i64 %240
  %242 = load double, ptr %241, align 8, !tbaa !11
  store double %242, ptr %26, align 8, !tbaa !11
  %243 = load i32, ptr %15, align 4, !tbaa !9
  %244 = zext i32 %243 to i64
  %245 = getelementptr inbounds [250 x double], ptr %20, i64 0, i64 %244
  %246 = load double, ptr %245, align 8, !tbaa !11
  %247 = load i32, ptr %15, align 4, !tbaa !9
  %248 = zext i32 %247 to i64
  %249 = getelementptr inbounds [250 x double], ptr %21, i64 0, i64 %248
  store double %246, ptr %249, align 8, !tbaa !11
  %250 = load i32, ptr %15, align 4, !tbaa !9
  %251 = zext i32 %250 to i64
  %252 = getelementptr inbounds [250 x double], ptr %20, i64 0, i64 %251
  %253 = load double, ptr %252, align 8, !tbaa !11
  %254 = load i32, ptr %15, align 4, !tbaa !9
  %255 = zext i32 %254 to i64
  %256 = getelementptr inbounds [250 x double], ptr %20, i64 0, i64 %255
  %257 = load double, ptr %256, align 8, !tbaa !11
  %258 = fadd double %253, %257
  %259 = load double, ptr %26, align 8, !tbaa !11
  %260 = fsub double %258, %259
  %261 = load i32, ptr %15, align 4, !tbaa !9
  %262 = zext i32 %261 to i64
  %263 = getelementptr inbounds [250 x double], ptr %20, i64 0, i64 %262
  store double %260, ptr %263, align 8, !tbaa !11
  br label %264

264:                                              ; preds = %238
  %265 = load i32, ptr %15, align 4, !tbaa !9
  %266 = add i32 %265, 1
  store i32 %266, ptr %15, align 4, !tbaa !9
  br label %205, !llvm.loop !17

267:                                              ; preds = %205
  %268 = load double, ptr %25, align 8, !tbaa !11
  store double %268, ptr %24, align 8, !tbaa !11
  %269 = getelementptr inbounds [250 x double], ptr %22, i64 0, i64 0
  %270 = getelementptr inbounds [250 x double], ptr %20, i64 0, i64 0
  %271 = load double, ptr %24, align 8, !tbaa !11
  %272 = load i32, ptr %9, align 4, !tbaa !9
  %273 = load ptr, ptr %27, align 8, !tbaa !5
  %274 = invoke noundef double @_ZN13NLPUCCLIHooke5Hooke10bestNearbyEPdS1_djPKv(ptr noundef nonnull align 1 dereferenceable(1) %34, ptr noundef %269, ptr noundef %270, double noundef %271, i32 noundef %272, ptr noundef %273)
          to label %275 unwind label %167

275:                                              ; preds = %267
  store double %274, ptr %25, align 8, !tbaa !11
  %276 = load double, ptr %25, align 8, !tbaa !11
  %277 = load double, ptr %24, align 8, !tbaa !11
  %278 = fcmp oge double %276, %277
  br i1 %278, label %279, label %280

279:                                              ; preds = %275
  br label %310

280:                                              ; preds = %275
  store i32 0, ptr %19, align 4, !tbaa !9
  store i32 0, ptr %15, align 4, !tbaa !9
  br label %281

281:                                              ; preds = %306, %280
  %282 = load i32, ptr %15, align 4, !tbaa !9
  %283 = load i32, ptr %9, align 4, !tbaa !9
  %284 = icmp ult i32 %282, %283
  br i1 %284, label %285, label %309

285:                                              ; preds = %281
  store i32 1, ptr %19, align 4, !tbaa !9
  %286 = load i32, ptr %15, align 4, !tbaa !9
  %287 = zext i32 %286 to i64
  %288 = getelementptr inbounds [250 x double], ptr %20, i64 0, i64 %287
  %289 = load double, ptr %288, align 8, !tbaa !11
  %290 = load i32, ptr %15, align 4, !tbaa !9
  %291 = zext i32 %290 to i64
  %292 = getelementptr inbounds [250 x double], ptr %21, i64 0, i64 %291
  %293 = load double, ptr %292, align 8, !tbaa !11
  %294 = fsub double %289, %293
  %295 = call double @llvm.fabs.f64(double %294)
  %296 = load i32, ptr %15, align 4, !tbaa !9
  %297 = zext i32 %296 to i64
  %298 = getelementptr inbounds [250 x double], ptr %22, i64 0, i64 %297
  %299 = load double, ptr %298, align 8, !tbaa !11
  %300 = call double @llvm.fabs.f64(double %299)
  %301 = fmul double 5.000000e-01, %300
  %302 = fcmp ogt double %295, %301
  br i1 %302, label %303, label %304

303:                                              ; preds = %285
  br label %309

304:                                              ; preds = %285
  store i32 0, ptr %19, align 4, !tbaa !9
  br label %305

305:                                              ; preds = %304
  br label %306

306:                                              ; preds = %305
  %307 = load i32, ptr %15, align 4, !tbaa !9
  %308 = add i32 %307, 1
  store i32 %308, ptr %15, align 4, !tbaa !9
  br label %281, !llvm.loop !18

309:                                              ; preds = %303, %281
  br label %195, !llvm.loop !19

310:                                              ; preds = %279, %202
  %311 = load double, ptr %23, align 8, !tbaa !11
  %312 = load double, ptr %13, align 8, !tbaa !11
  %313 = fcmp oge double %311, %312
  br i1 %313, label %314, label %337

314:                                              ; preds = %310
  %315 = load double, ptr %25, align 8, !tbaa !11
  %316 = load double, ptr %24, align 8, !tbaa !11
  %317 = fcmp oge double %315, %316
  br i1 %317, label %318, label %337

318:                                              ; preds = %314
  %319 = load double, ptr %23, align 8, !tbaa !11
  %320 = load double, ptr %12, align 8, !tbaa !11
  %321 = fmul double %319, %320
  store double %321, ptr %23, align 8, !tbaa !11
  store i32 0, ptr %15, align 4, !tbaa !9
  br label %322

322:                                              ; preds = %333, %318
  %323 = load i32, ptr %15, align 4, !tbaa !9
  %324 = load i32, ptr %9, align 4, !tbaa !9
  %325 = icmp ult i32 %323, %324
  br i1 %325, label %326, label %336

326:                                              ; preds = %322
  %327 = load double, ptr %12, align 8, !tbaa !11
  %328 = load i32, ptr %15, align 4, !tbaa !9
  %329 = zext i32 %328 to i64
  %330 = getelementptr inbounds [250 x double], ptr %22, i64 0, i64 %329
  %331 = load double, ptr %330, align 8, !tbaa !11
  %332 = fmul double %331, %327
  store double %332, ptr %330, align 8, !tbaa !11
  br label %333

333:                                              ; preds = %326
  %334 = load i32, ptr %15, align 4, !tbaa !9
  %335 = add i32 %334, 1
  store i32 %335, ptr %15, align 4, !tbaa !9
  br label %322, !llvm.loop !20

336:                                              ; preds = %322
  br label %337

337:                                              ; preds = %336, %314, %310
  br label %86, !llvm.loop !21

338:                                              ; preds = %94
  store i32 0, ptr %15, align 4, !tbaa !9
  br label %339

339:                                              ; preds = %352, %338
  %340 = load i32, ptr %15, align 4, !tbaa !9
  %341 = load i32, ptr %9, align 4, !tbaa !9
  %342 = icmp ult i32 %340, %341
  br i1 %342, label %343, label %355

343:                                              ; preds = %339
  %344 = load i32, ptr %15, align 4, !tbaa !9
  %345 = zext i32 %344 to i64
  %346 = getelementptr inbounds [250 x double], ptr %21, i64 0, i64 %345
  %347 = load double, ptr %346, align 8, !tbaa !11
  %348 = load ptr, ptr %11, align 8, !tbaa !5
  %349 = load i32, ptr %15, align 4, !tbaa !9
  %350 = zext i32 %349 to i64
  %351 = getelementptr inbounds double, ptr %348, i64 %350
  store double %347, ptr %351, align 8, !tbaa !11
  br label %352

352:                                              ; preds = %343
  %353 = load i32, ptr %15, align 4, !tbaa !9
  %354 = add i32 %353, 1
  store i32 %354, ptr %15, align 4, !tbaa !9
  br label %339, !llvm.loop !22

355:                                              ; preds = %339
  %356 = load ptr, ptr %27, align 8, !tbaa !5
  %357 = icmp eq ptr %356, null
  br i1 %357, label %359, label %358

358:                                              ; preds = %355
  call void @_ZN13NLPUCCLIHooke8FunEvalsD1Ev(ptr noundef nonnull align 4 dereferenceable(4) %356) #9
  call void @_ZdlPvm(ptr noundef %356, i64 noundef 4) #11
  br label %359

359:                                              ; preds = %358, %355
  %360 = load i32, ptr %17, align 4, !tbaa !9
  call void @_ZN13NLPUCCLIHooke10RosenbrockD1Ev(ptr noundef nonnull align 1 dereferenceable(1) %30) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %30) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #9
  call void @llvm.lifetime.end.p0(i64 2000, ptr %22) #9
  call void @llvm.lifetime.end.p0(i64 2000, ptr %21) #9
  call void @llvm.lifetime.end.p0(i64 2000, ptr %20) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #9
  ret i32 %360

361:                                              ; preds = %167, %163
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #9
  call void @llvm.lifetime.end.p0(i64 2000, ptr %22) #9
  call void @llvm.lifetime.end.p0(i64 2000, ptr %21) #9
  call void @llvm.lifetime.end.p0(i64 2000, ptr %20) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #9
  br label %362

362:                                              ; preds = %361
  %363 = load ptr, ptr %28, align 8
  %364 = load i32, ptr %29, align 4
  %365 = insertvalue { ptr, i32 } poison, ptr %363, 0
  %366 = insertvalue { ptr, i32 } %365, i32 %364, 1
  resume { ptr, i32 } %366
}

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

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) #5

declare void @_ZN13NLPUCCLIHooke8FunEvalsC1Ev(ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #2

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) #6

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_St13_Setprecision(ptr noundef nonnull align 8 dereferenceable(8), i32) #7

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_St5_Setw(ptr noundef nonnull align 8 dereferenceable(8), i32) #7

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local i32 @_ZSt4setwi(i32 noundef) #8

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEj(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #0 align 2

declare noundef i32 @_ZN13NLPUCCLIHooke8FunEvals11getFunEvalsEv(ptr noundef nonnull align 4 dereferenceable(4)) #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local i32 @_ZSt12setprecisioni(i32 noundef) #8

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(216) ptr @_ZSt10scientificRSt8ios_base(ptr noundef nonnull align 8 dereferenceable(216)) #7

; 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: nounwind
declare void @_ZN13NLPUCCLIHooke8FunEvalsD1Ev(ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #3

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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind "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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { nobuiltin allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nobuiltin 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 #7 = { 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 #8 = { 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 #9 = { nounwind }
attributes #10 = { builtin allocsize(0) }
attributes #11 = { builtin 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 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}
!17 = distinct !{!17, !14}
!18 = distinct !{!18, !14}
!19 = distinct !{!19, !14}
!20 = distinct !{!20, !14}
!21 = distinct !{!21, !14}
!22 = distinct !{!22, !14}


; 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 }
%"class.NLPUCCLIHooke::Rosenbrock" = type { i8 }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [2 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [5 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_ZN13NLPUCCLIHooke5Hooke10bestNearbyEPdS1_djPKv(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef, ptr noundef, double noundef, i32 noundef, ptr noundef) local_unnamed_addr #0 align 2

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

declare void @_ZN13NLPUCCLIHooke10RosenbrockC1Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2

declare noundef double @_ZN13NLPUCCLIHooke10Rosenbrock1fEPKdjPKv(ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nounwind
declare void @_ZN13NLPUCCLIHooke10RosenbrockD1Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN13NLPUCCLIHooke5Hooke5hookeEjPKdPdddj(ptr noundef nonnull align 1 dereferenceable(1) %0, i32 noundef %1, ptr nocapture noundef readonly %2, ptr nocapture noundef writeonly %3, double noundef %4, double noundef %5, i32 noundef %6) local_unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %8 = alloca [250 x double], align 16
  %9 = alloca [250 x double], align 16
  %10 = alloca [250 x double], align 16
  %11 = alloca %"class.NLPUCCLIHooke::Rosenbrock", align 1
  call void @llvm.lifetime.start.p0(i64 2000, ptr nonnull %8) #11
  call void @llvm.lifetime.start.p0(i64 2000, ptr nonnull %9) #11
  call void @llvm.lifetime.start.p0(i64 2000, ptr nonnull %10) #11
  %.not = icmp eq i32 %1, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %7
  %12 = zext i32 %1 to i64
  %13 = shl nuw nsw i64 %12, 3
  call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 16 %9, ptr align 8 %2, i64 %13, i1 false), !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 16 %8, ptr align 8 %2, i64 %13, i1 false), !tbaa !5
  %min.iters.check = icmp ult i32 %1, 4
  br i1 %min.iters.check, label %.lr.ph.preheader270, label %vector.ph

vector.ph:                                        ; preds = %.lr.ph.preheader
  %n.vec = and i64 %12, 4294967292
  %broadcast.splatinsert = insertelement <2 x double> poison, double %4, i64 0
  %broadcast.splat = shufflevector <2 x double> %broadcast.splatinsert, <2 x double> poison, <2 x i32> zeroinitializer
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %14 = getelementptr inbounds double, ptr %2, i64 %index
  %15 = getelementptr inbounds i8, ptr %14, i64 16
  %wide.load = load <2 x double>, ptr %14, align 8, !tbaa !5
  %wide.load228 = load <2 x double>, ptr %15, align 8, !tbaa !5
  %16 = fmul <2 x double> %wide.load, %broadcast.splat
  %17 = fmul <2 x double> %wide.load228, %broadcast.splat
  %18 = tail call <2 x double> @llvm.fabs.v2f64(<2 x double> %16)
  %19 = tail call <2 x double> @llvm.fabs.v2f64(<2 x double> %17)
  %20 = getelementptr inbounds [250 x double], ptr %10, i64 0, i64 %index
  %21 = fcmp oeq <2 x double> %16, zeroinitializer
  %22 = fcmp oeq <2 x double> %17, zeroinitializer
  %23 = select <2 x i1> %21, <2 x double> %broadcast.splat, <2 x double> %18
  %24 = select <2 x i1> %22, <2 x double> %broadcast.splat, <2 x double> %19
  %25 = getelementptr inbounds i8, ptr %20, i64 16
  store <2 x double> %23, ptr %20, align 16, !tbaa !5
  store <2 x double> %24, ptr %25, align 16, !tbaa !5
  %index.next = add nuw i64 %index, 4
  %26 = icmp eq i64 %index.next, %n.vec
  br i1 %26, label %middle.block, label %vector.body, !llvm.loop !9

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %12
  br i1 %cmp.n, label %._crit_edge, label %.lr.ph.preheader270

.lr.ph.preheader270:                              ; preds = %middle.block, %.lr.ph.preheader
  %indvars.iv.ph = phi i64 [ 0, %.lr.ph.preheader ], [ %n.vec, %middle.block ]
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader270, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ %indvars.iv.ph, %.lr.ph.preheader270 ]
  %27 = getelementptr inbounds double, ptr %2, i64 %indvars.iv
  %28 = load double, ptr %27, align 8, !tbaa !5
  %29 = fmul double %28, %4
  %30 = tail call double @llvm.fabs.f64(double %29)
  %31 = getelementptr inbounds [250 x double], ptr %10, i64 0, i64 %indvars.iv
  %32 = fcmp oeq double %29, 0.000000e+00
  %storemerge = select i1 %32, double %4, double %30
  store double %storemerge, ptr %31, align 8, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %12
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !13

._crit_edge:                                      ; preds = %.lr.ph, %middle.block, %7
  %33 = tail call noalias noundef nonnull dereferenceable(4) ptr @_Znwm(i64 noundef 4) #12
  invoke void @_ZN13NLPUCCLIHooke8FunEvalsC1Ev(ptr noundef nonnull align 4 dereferenceable(4) %33)
          to label %34 unwind label %82

34:                                               ; preds = %._crit_edge
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %11) #11
  call void @_ZN13NLPUCCLIHooke10RosenbrockC1Ev(ptr noundef nonnull align 1 dereferenceable(1) %11)
  %35 = invoke noundef double @_ZN13NLPUCCLIHooke10Rosenbrock1fEPKdjPKv(ptr noundef nonnull %8, i32 noundef %1, ptr noundef nonnull %33)
          to label %.preheader124 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp

.preheader124:                                    ; preds = %34
  %36 = icmp ne i32 %6, 0
  %37 = fcmp ogt double %4, %5
  %38 = and i1 %36, %37
  br i1 %38, label %.lr.ph159, label %.preheader

.lr.ph159:                                        ; preds = %.preheader124
  %39 = zext i32 %1 to i64
  %40 = shl nuw nsw i64 %39, 3
  %min.iters.check246 = icmp eq i32 %1, 1
  %n.vec249 = and i64 %39, 4294967294
  %cmp.n257 = icmp eq i64 %n.vec249, %39
  %min.iters.check231 = icmp ult i32 %1, 4
  %n.vec234 = and i64 %39, 4294967292
  %broadcast.splatinsert240 = insertelement <2 x double> poison, double %4, i64 0
  %broadcast.splat241 = shufflevector <2 x double> %broadcast.splatinsert240, <2 x double> poison, <2 x i32> zeroinitializer
  %cmp.n243 = icmp eq i64 %n.vec234, %39
  br label %43

.preheader:                                       ; preds = %.loopexit, %.preheader124
  %.096.lcssa = phi i32 [ 0, %.preheader124 ], [ %44, %.loopexit ]
  br i1 %.not, label %._crit_edge163, label %.lr.ph162.preheader

.lr.ph162.preheader:                              ; preds = %.preheader
  %41 = zext i32 %1 to i64
  %42 = shl nuw nsw i64 %41, 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %3, ptr nonnull align 16 %9, i64 %42, i1 false), !tbaa !5
  br label %._crit_edge163

43:                                               ; preds = %.lr.ph159, %.loopexit
  %.096157 = phi i32 [ 0, %.lr.ph159 ], [ %44, %.loopexit ]
  %.0105156 = phi double [ %35, %.lr.ph159 ], [ %.2107206, %.loopexit ]
  %.0108155 = phi double [ %4, %.lr.ph159 ], [ %.1109, %.loopexit ]
  %44 = add nuw i32 %.096157, 1
  %45 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str)
          to label %46 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit

46:                                               ; preds = %43
  %47 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %45, ptr noundef nonnull @.str.1)
          to label %48 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit

48:                                               ; preds = %46
  %49 = call i32 @_ZSt4setwi(i32 noundef 5)
  %50 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_St5_Setw(ptr noundef nonnull align 8 dereferenceable(8) %47, i32 %49)
          to label %51 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit

51:                                               ; preds = %48
  %52 = invoke noundef i32 @_ZN13NLPUCCLIHooke8FunEvals11getFunEvalsEv(ptr noundef nonnull align 4 dereferenceable(4) %33)
          to label %53 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit

53:                                               ; preds = %51
  %54 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEj(ptr noundef nonnull align 8 dereferenceable(8) %50, i32 noundef %52)
          to label %55 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit

55:                                               ; preds = %53
  %56 = invoke 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)
          to label %57 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit

57:                                               ; preds = %55
  %58 = call i32 @_ZSt12setprecisioni(i32 noundef 4)
  %59 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_St13_Setprecision(ptr noundef nonnull align 8 dereferenceable(8) %56, i32 %58)
          to label %60 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit

60:                                               ; preds = %57
  %61 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8) %59, ptr noundef nonnull @_ZSt10scientificRSt8ios_base)
          to label %62 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit

62:                                               ; preds = %60
  %63 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %61, double noundef %.0105156)
          to label %64 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit

64:                                               ; preds = %62
  %65 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %63, ptr noundef nonnull @.str.3)
          to label %.preheader120 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit

.preheader120:                                    ; preds = %64
  br i1 %.not, label %._crit_edge135, label %.lr.ph132

.preheader119:                                    ; preds = %81
  br i1 %.not, label %._crit_edge135, label %.lr.ph134.preheader

.lr.ph134.preheader:                              ; preds = %.preheader119
  call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 16 %8, ptr nonnull align 16 %9, i64 %40, i1 false), !tbaa !5
  br label %._crit_edge135

.lr.ph132:                                        ; preds = %.preheader120, %81
  %indvars.iv176 = phi i64 [ %indvars.iv.next177, %81 ], [ 0, %.preheader120 ]
  %66 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.4)
          to label %67 unwind label %.loopexit.split-lp.loopexit

67:                                               ; preds = %.lr.ph132
  %68 = call i32 @_ZSt4setwi(i32 noundef 2)
  %69 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_St5_Setw(ptr noundef nonnull align 8 dereferenceable(8) %66, i32 %68)
          to label %70 unwind label %.loopexit.split-lp.loopexit

70:                                               ; preds = %67
  %71 = trunc nuw i64 %indvars.iv176 to i32
  %72 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEj(ptr noundef nonnull align 8 dereferenceable(8) %69, i32 noundef %71)
          to label %73 unwind label %.loopexit.split-lp.loopexit

73:                                               ; preds = %70
  %74 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %72, ptr noundef nonnull @.str.5)
          to label %75 unwind label %.loopexit.split-lp.loopexit

75:                                               ; preds = %73
  %76 = getelementptr inbounds [250 x double], ptr %9, i64 0, i64 %indvars.iv176
  %77 = load double, ptr %76, align 8, !tbaa !5
  %78 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %74, double noundef %77)
          to label %79 unwind label %.loopexit.split-lp.loopexit

79:                                               ; preds = %75
  %80 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %78, ptr noundef nonnull @.str)
          to label %81 unwind label %.loopexit.split-lp.loopexit

81:                                               ; preds = %79
  %indvars.iv.next177 = add nuw nsw i64 %indvars.iv176, 1
  %exitcond180.not = icmp eq i64 %indvars.iv.next177, %39
  br i1 %exitcond180.not, label %.preheader119, label %.lr.ph132, !llvm.loop !14

82:                                               ; preds = %._crit_edge
  %83 = landingpad { ptr, i32 }
          cleanup
  tail call void @_ZdlPvm(ptr noundef nonnull %33, i64 noundef 4) #13
  br label %141

.loopexit118:                                     ; preds = %._crit_edge138
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.loopexit.split-lp.loopexit:                      ; preds = %79, %75, %73, %70, %67, %.lr.ph132
  %lpad.loopexit121 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.loopexit.split-lp.loopexit.split-lp.loopexit:    ; preds = %43, %46, %48, %51, %53, %55, %57, %60, %62, %64, %._crit_edge135
  %lpad.loopexit125 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp: ; preds = %34
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.loopexit.split-lp:                               ; preds = %.loopexit.split-lp.loopexit, %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp, %.loopexit.split-lp.loopexit.split-lp.loopexit, %.loopexit118
  %lpad.phi = phi { ptr, i32 } [ %lpad.loopexit, %.loopexit118 ], [ %lpad.loopexit121, %.loopexit.split-lp.loopexit ], [ %lpad.loopexit125, %.loopexit.split-lp.loopexit.split-lp.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp ]
  call void @_ZN13NLPUCCLIHooke10RosenbrockD1Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %11) #11
  br label %141

._crit_edge135:                                   ; preds = %.preheader120, %.lr.ph134.preheader, %.preheader119
  %84 = invoke noundef double @_ZN13NLPUCCLIHooke5Hooke10bestNearbyEPdS1_djPKv(ptr noundef nonnull align 1 dereferenceable(1) %0, ptr noundef nonnull %10, ptr noundef nonnull %8, double noundef %.0105156, i32 noundef %1, ptr noundef nonnull %33)
          to label %.preheader117 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit

.preheader117:                                    ; preds = %._crit_edge135
  %85 = fcmp olt double %84, %.0105156
  br i1 %85, label %.preheader116, label %._crit_edge145

.preheader116:                                    ; preds = %.preheader117, %._crit_edge141
  %.0103144 = phi double [ %107, %._crit_edge141 ], [ %84, %.preheader117 ]
  br i1 %.not, label %._crit_edge138, label %.lr.ph137.preheader

.lr.ph137.preheader:                              ; preds = %.preheader116
  br i1 %min.iters.check246, label %.lr.ph137.preheader258, label %vector.body251

vector.body251:                                   ; preds = %.lr.ph137.preheader, %vector.body251
  %index252 = phi i64 [ %index.next256, %vector.body251 ], [ 0, %.lr.ph137.preheader ]
  %86 = getelementptr inbounds [250 x double], ptr %8, i64 0, i64 %index252
  %wide.load253 = load <2 x double>, ptr %86, align 16, !tbaa !5
  %87 = getelementptr inbounds [250 x double], ptr %9, i64 0, i64 %index252
  %wide.load254 = load <2 x double>, ptr %87, align 16, !tbaa !5
  %88 = fcmp ugt <2 x double> %wide.load253, %wide.load254
  %89 = getelementptr inbounds [250 x double], ptr %10, i64 0, i64 %index252
  %wide.load255 = load <2 x double>, ptr %89, align 16, !tbaa !5
  %90 = call <2 x double> @llvm.fabs.v2f64(<2 x double> %wide.load255)
  %91 = fsub <2 x double> zeroinitializer, %90
  %92 = select <2 x i1> %88, <2 x double> %90, <2 x double> %91
  store <2 x double> %92, ptr %89, align 16, !tbaa !5
  store <2 x double> %wide.load253, ptr %87, align 16, !tbaa !5
  %93 = fadd <2 x double> %wide.load253, %wide.load253
  %94 = fsub <2 x double> %93, %wide.load254
  store <2 x double> %94, ptr %86, align 16, !tbaa !5
  %index.next256 = add nuw i64 %index252, 2
  %95 = icmp eq i64 %index.next256, %n.vec249
  br i1 %95, label %middle.block244, label %vector.body251, !llvm.loop !15

middle.block244:                                  ; preds = %vector.body251
  br i1 %cmp.n257, label %._crit_edge138, label %.lr.ph137.preheader258

.lr.ph137.preheader258:                           ; preds = %middle.block244, %.lr.ph137.preheader
  %indvars.iv184.ph = phi i64 [ 0, %.lr.ph137.preheader ], [ %n.vec249, %middle.block244 ]
  br label %.lr.ph137

.lr.ph137:                                        ; preds = %.lr.ph137.preheader258, %.lr.ph137
  %indvars.iv184 = phi i64 [ %indvars.iv.next185, %.lr.ph137 ], [ %indvars.iv184.ph, %.lr.ph137.preheader258 ]
  %96 = getelementptr inbounds [250 x double], ptr %8, i64 0, i64 %indvars.iv184
  %97 = load double, ptr %96, align 8, !tbaa !5
  %98 = getelementptr inbounds [250 x double], ptr %9, i64 0, i64 %indvars.iv184
  %99 = load double, ptr %98, align 8, !tbaa !5
  %100 = fcmp ugt double %97, %99
  %101 = getelementptr inbounds [250 x double], ptr %10, i64 0, i64 %indvars.iv184
  %102 = load double, ptr %101, align 8, !tbaa !5
  %103 = call double @llvm.fabs.f64(double %102)
  %104 = fsub double 0.000000e+00, %103
  %.sink = select i1 %100, double %103, double %104
  store double %.sink, ptr %101, align 8, !tbaa !5
  store double %97, ptr %98, align 8, !tbaa !5
  %105 = fadd double %97, %97
  %106 = fsub double %105, %99
  store double %106, ptr %96, align 8, !tbaa !5
  %indvars.iv.next185 = add nuw nsw i64 %indvars.iv184, 1
  %exitcond188.not = icmp eq i64 %indvars.iv.next185, %39
  br i1 %exitcond188.not, label %._crit_edge138, label %.lr.ph137, !llvm.loop !16

._crit_edge138:                                   ; preds = %.lr.ph137, %middle.block244, %.preheader116
  %107 = invoke noundef double @_ZN13NLPUCCLIHooke5Hooke10bestNearbyEPdS1_djPKv(ptr noundef nonnull align 1 dereferenceable(1) %0, ptr noundef nonnull %10, ptr noundef nonnull %8, double noundef %.0103144, i32 noundef %1, ptr noundef nonnull %33)
          to label %108 unwind label %.loopexit118

108:                                              ; preds = %._crit_edge138
  %109 = fcmp ult double %107, %.0103144
  br i1 %109, label %.preheader115, label %._crit_edge145

.preheader115:                                    ; preds = %108
  br i1 %.not, label %._crit_edge145.thread, label %.lr.ph140

110:                                              ; preds = %.lr.ph140
  %indvars.iv.next190 = add nuw nsw i64 %indvars.iv189, 1
  %exitcond193.not = icmp eq i64 %indvars.iv.next190, %39
  br i1 %exitcond193.not, label %._crit_edge145, label %.lr.ph140, !llvm.loop !17

.lr.ph140:                                        ; preds = %.preheader115, %110
  %indvars.iv189 = phi i64 [ %indvars.iv.next190, %110 ], [ 0, %.preheader115 ]
  %111 = getelementptr inbounds [250 x double], ptr %8, i64 0, i64 %indvars.iv189
  %112 = load double, ptr %111, align 8, !tbaa !5
  %113 = getelementptr inbounds [250 x double], ptr %9, i64 0, i64 %indvars.iv189
  %114 = load double, ptr %113, align 8, !tbaa !5
  %115 = fsub double %112, %114
  %116 = call double @llvm.fabs.f64(double %115)
  %117 = getelementptr inbounds [250 x double], ptr %10, i64 0, i64 %indvars.iv189
  %118 = load double, ptr %117, align 8, !tbaa !5
  %119 = call double @llvm.fabs.f64(double %118)
  %120 = fmul double %119, 5.000000e-01
  %121 = fcmp ogt double %116, %120
  br i1 %121, label %._crit_edge141, label %110

._crit_edge141:                                   ; preds = %.lr.ph140
  %122 = fcmp olt double %107, %.0103144
  br i1 %122, label %.preheader116, label %._crit_edge145, !llvm.loop !18

._crit_edge145:                                   ; preds = %._crit_edge141, %108, %110, %.preheader117
  %.2107 = phi double [ %.0105156, %.preheader117 ], [ %.0103144, %110 ], [ %.0103144, %108 ], [ %.0103144, %._crit_edge141 ]
  %.1104 = phi double [ %84, %.preheader117 ], [ %107, %110 ], [ %107, %108 ], [ %107, %._crit_edge141 ]
  %123 = fcmp ult double %.0108155, %5
  %124 = fcmp ult double %.1104, %.2107
  %or.cond = or i1 %123, %124
  br i1 %or.cond, label %.loopexit, label %128

._crit_edge145.thread:                            ; preds = %.preheader115
  %125 = fcmp ult double %.0108155, %5
  %126 = fcmp ult double %107, %.0103144
  %or.cond204 = or i1 %125, %126
  br i1 %or.cond204, label %.loopexit, label %.thread

.thread:                                          ; preds = %._crit_edge145.thread
  %127 = fmul double %.0108155, %4
  br label %.loopexit

128:                                              ; preds = %._crit_edge145
  %129 = fmul double %.0108155, %4
  br i1 %.not, label %.loopexit, label %.lr.ph154.preheader

.lr.ph154.preheader:                              ; preds = %128
  br i1 %min.iters.check231, label %.lr.ph154.preheader259, label %vector.body236

vector.body236:                                   ; preds = %.lr.ph154.preheader, %vector.body236
  %index237 = phi i64 [ %index.next242, %vector.body236 ], [ 0, %.lr.ph154.preheader ]
  %130 = getelementptr inbounds [250 x double], ptr %10, i64 0, i64 %index237
  %131 = getelementptr inbounds i8, ptr %130, i64 16
  %wide.load238 = load <2 x double>, ptr %130, align 16, !tbaa !5
  %wide.load239 = load <2 x double>, ptr %131, align 16, !tbaa !5
  %132 = fmul <2 x double> %wide.load238, %broadcast.splat241
  %133 = fmul <2 x double> %wide.load239, %broadcast.splat241
  store <2 x double> %132, ptr %130, align 16, !tbaa !5
  store <2 x double> %133, ptr %131, align 16, !tbaa !5
  %index.next242 = add nuw i64 %index237, 4
  %134 = icmp eq i64 %index.next242, %n.vec234
  br i1 %134, label %middle.block229, label %vector.body236, !llvm.loop !19

middle.block229:                                  ; preds = %vector.body236
  br i1 %cmp.n243, label %.loopexit, label %.lr.ph154.preheader259

.lr.ph154.preheader259:                           ; preds = %middle.block229, %.lr.ph154.preheader
  %indvars.iv194.ph = phi i64 [ 0, %.lr.ph154.preheader ], [ %n.vec234, %middle.block229 ]
  br label %.lr.ph154

.lr.ph154:                                        ; preds = %.lr.ph154.preheader259, %.lr.ph154
  %indvars.iv194 = phi i64 [ %indvars.iv.next195, %.lr.ph154 ], [ %indvars.iv194.ph, %.lr.ph154.preheader259 ]
  %135 = getelementptr inbounds [250 x double], ptr %10, i64 0, i64 %indvars.iv194
  %136 = load double, ptr %135, align 8, !tbaa !5
  %137 = fmul double %136, %4
  store double %137, ptr %135, align 8, !tbaa !5
  %indvars.iv.next195 = add nuw nsw i64 %indvars.iv194, 1
  %exitcond198.not = icmp eq i64 %indvars.iv.next195, %39
  br i1 %exitcond198.not, label %.loopexit, label %.lr.ph154, !llvm.loop !20

.loopexit:                                        ; preds = %.lr.ph154, %middle.block229, %.thread, %._crit_edge145.thread, %128, %._crit_edge145
  %.2107206 = phi double [ %.2107, %._crit_edge145 ], [ %.2107, %128 ], [ %.0103144, %._crit_edge145.thread ], [ %.0103144, %.thread ], [ %.2107, %middle.block229 ], [ %.2107, %.lr.ph154 ]
  %.1109 = phi double [ %.0108155, %._crit_edge145 ], [ %129, %128 ], [ %.0108155, %._crit_edge145.thread ], [ %127, %.thread ], [ %129, %middle.block229 ], [ %129, %.lr.ph154 ]
  %138 = icmp ult i32 %44, %6
  %139 = fcmp ogt double %.1109, %5
  %140 = select i1 %138, i1 %139, i1 false
  br i1 %140, label %43, label %.preheader, !llvm.loop !21

._crit_edge163:                                   ; preds = %.lr.ph162.preheader, %.preheader
  call void @_ZN13NLPUCCLIHooke8FunEvalsD1Ev(ptr noundef nonnull align 4 dereferenceable(4) %33) #11
  call void @_ZdlPvm(ptr noundef nonnull %33, i64 noundef 4) #13
  call void @_ZN13NLPUCCLIHooke10RosenbrockD1Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %11) #11
  call void @llvm.lifetime.end.p0(i64 2000, ptr nonnull %10) #11
  call void @llvm.lifetime.end.p0(i64 2000, ptr nonnull %9) #11
  call void @llvm.lifetime.end.p0(i64 2000, ptr nonnull %8) #11
  ret i32 %.096.lcssa

141:                                              ; preds = %.loopexit.split-lp, %82
  %.pn = phi { ptr, i32 } [ %lpad.phi, %.loopexit.split-lp ], [ %83, %82 ]
  call void @llvm.lifetime.end.p0(i64 2000, ptr nonnull %10) #11
  call void @llvm.lifetime.end.p0(i64 2000, ptr nonnull %9) #11
  call void @llvm.lifetime.end.p0(i64 2000, ptr nonnull %8) #11
  resume { ptr, i32 } %.pn
}

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

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) local_unnamed_addr #5

declare void @_ZN13NLPUCCLIHooke8FunEvalsC1Ev(ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #2

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) local_unnamed_addr #6

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local i32 @_ZSt4setwi(i32 noundef) local_unnamed_addr #8

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

declare noundef i32 @_ZN13NLPUCCLIHooke8FunEvals11getFunEvalsEv(ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local i32 @_ZSt12setprecisioni(i32 noundef) local_unnamed_addr #8

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(216) ptr @_ZSt10scientificRSt8ios_base(ptr noundef nonnull align 8 dereferenceable(216)) #7

; 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: nounwind
declare void @_ZN13NLPUCCLIHooke8FunEvalsD1Ev(ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #3

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #9

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <2 x double> @llvm.fabs.v2f64(<2 x double>) #10

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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind "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 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { nobuiltin allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nobuiltin 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 #7 = { 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 #8 = { 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 #9 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #10 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #11 = { nounwind }
attributes #12 = { builtin allocsize(0) }
attributes #13 = { builtin 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 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10, !11, !12}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!"llvm.loop.isvectorized", i32 1}
!12 = !{!"llvm.loop.unroll.runtime.disable"}
!13 = distinct !{!13, !10, !12, !11}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !10, !11, !12}
!16 = distinct !{!16, !10, !12, !11}
!17 = distinct !{!17, !10}
!18 = distinct !{!18, !10}
!19 = distinct !{!19, !10, !11, !12}
!20 = distinct !{!20, !10, !12, !11}
!21 = distinct !{!21, !10}


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