; LLVM IR from Dimandragon/non-parametric-dsp :: alglib-cpp/src (optimization)

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

%"struct.alglib_impl::xbfgshessian" = type { i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, i64, double, double, double, double, double, double, double, i64, double, double, %"struct.alglib_impl::ae_matrix", i64, double, double, double, i64, double, %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", i8, i64, %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", i8, %"struct.alglib_impl::ae_vector", i8, i64, %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i8, %"struct.alglib_impl::ae_vector", double, double, i64, %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector" }
%"struct.alglib_impl::ae_matrix" = type { i64, i64, i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.1 }
%"struct.alglib_impl::ae_dyn_block" = type { ptr, ptr, ptr, ptr }
%union.anon.1 = type { ptr }
%"struct.alglib_impl::ae_vector" = type { i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.0 }
%union.anon.0 = type { ptr }

@.str.263 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.264 = external hidden unnamed_addr constant [87 x i8], align 1
@.str.265 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.266 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.267 = external hidden unnamed_addr constant [117 x i8], align 1
@.str.268 = external hidden unnamed_addr constant [126 x i8], align 1
@.str.269 = external hidden unnamed_addr constant [123 x i8], align 1
@.str.270 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.271 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.272 = external hidden unnamed_addr constant [33 x i8], align 1

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

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

declare void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext, ptr noundef, ptr noundef) #1

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

declare noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef, ptr noundef) #1

declare noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef, double noundef, ptr noundef) #1

declare noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef, double noundef) #1

declare noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef, double noundef) #1

declare noundef zeroext i1 @_ZN11alglib_impl13ae_fp_less_eqEdd(double noundef, double noundef) #1

declare noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef, double noundef) #1

declare noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef, ptr noundef) #1

declare noundef double @_ZN11alglib_impl8rmaxabsvElPKNS_9ae_vectorEPNS_8ae_stateE(i64 noundef, ptr noundef, ptr noundef) #1

declare noundef double @_ZN11alglib_impl10ae_minrealEddPNS_8ae_stateE(double noundef, double noundef, ptr noundef) #1

declare void @_ZN11alglib_impl8ae_traceEPKcz(ptr noundef, ...) #1

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN11alglib_implL25optserv_resetlowrankmodelEPNS_12xbfgshessianEPNS_8ae_stateE(ptr noundef, ptr noundef) #3

declare void @_ZN11alglib_impl7rallocvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef, ptr noundef, ptr noundef) #1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl13hessianupdateEPNS_12xbfgshessianEPKNS_9ae_vectorES4_S4_S4_bPNS_8ae_stateE(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, i1 noundef zeroext %5, ptr noundef %6) #3 {
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i8, align 1
  %14 = alloca ptr, align 8
  %15 = alloca i64, align 8
  %16 = alloca i64, align 8
  %17 = alloca double, align 8
  %18 = alloca double, align 8
  %19 = alloca double, align 8
  %20 = alloca double, align 8
  %21 = alloca double, align 8
  %22 = alloca double, align 8
  %23 = alloca double, align 8
  %24 = alloca double, align 8
  %25 = alloca double, align 8
  %26 = alloca double, align 8
  %27 = alloca double, align 8
  %28 = alloca i32, align 4
  store ptr %0, ptr %8, align 8, !tbaa !5
  store ptr %1, ptr %9, align 8, !tbaa !5
  store ptr %2, ptr %10, align 8, !tbaa !5
  store ptr %3, ptr %11, align 8, !tbaa !5
  store ptr %4, ptr %12, align 8, !tbaa !5
  %29 = zext i1 %5 to i8
  store i8 %29, ptr %13, align 1, !tbaa !9
  store ptr %6, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #4
  %30 = load ptr, ptr %8, align 8, !tbaa !5
  %31 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %30, i32 0, i32 3
  %32 = load i64, ptr %31, align 8, !tbaa !11
  store i64 %32, ptr %16, align 8, !tbaa !18
  store double 0.000000e+00, ptr %18, align 8, !tbaa !19
  store double 0.000000e+00, ptr %19, align 8, !tbaa !19
  store double 0.000000e+00, ptr %20, align 8, !tbaa !19
  store double 0.000000e+00, ptr %25, align 8, !tbaa !19
  store double 0.000000e+00, ptr %26, align 8, !tbaa !19
  store i64 0, ptr %15, align 8, !tbaa !18
  br label %33

33:                                               ; preds = %109, %7
  %34 = load i64, ptr %15, align 8, !tbaa !18
  %35 = load i64, ptr %16, align 8, !tbaa !18
  %36 = sub nsw i64 %35, 1
  %37 = icmp sle i64 %34, %36
  br i1 %37, label %38, label %112

38:                                               ; preds = %33
  %39 = load ptr, ptr %11, align 8, !tbaa !5
  %40 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %39, i32 0, i32 4
  %41 = load ptr, ptr %40, align 8, !tbaa !20
  %42 = load i64, ptr %15, align 8, !tbaa !18
  %43 = getelementptr inbounds double, ptr %41, i64 %42
  %44 = load double, ptr %43, align 8, !tbaa !19
  %45 = load ptr, ptr %9, align 8, !tbaa !5
  %46 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %45, i32 0, i32 4
  %47 = load ptr, ptr %46, align 8, !tbaa !20
  %48 = load i64, ptr %15, align 8, !tbaa !18
  %49 = getelementptr inbounds double, ptr %47, i64 %48
  %50 = load double, ptr %49, align 8, !tbaa !19
  %51 = fsub double %44, %50
  store double %51, ptr %21, align 8, !tbaa !19
  %52 = load ptr, ptr %12, align 8, !tbaa !5
  %53 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %52, i32 0, i32 4
  %54 = load ptr, ptr %53, align 8, !tbaa !20
  %55 = load i64, ptr %15, align 8, !tbaa !18
  %56 = getelementptr inbounds double, ptr %54, i64 %55
  %57 = load double, ptr %56, align 8, !tbaa !19
  %58 = load ptr, ptr %10, align 8, !tbaa !5
  %59 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %58, i32 0, i32 4
  %60 = load ptr, ptr %59, align 8, !tbaa !20
  %61 = load i64, ptr %15, align 8, !tbaa !18
  %62 = getelementptr inbounds double, ptr %60, i64 %61
  %63 = load double, ptr %62, align 8, !tbaa !19
  %64 = fsub double %57, %63
  store double %64, ptr %22, align 8, !tbaa !19
  %65 = load double, ptr %21, align 8, !tbaa !19
  %66 = load ptr, ptr %8, align 8, !tbaa !5
  %67 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %66, i32 0, i32 46
  %68 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %67, i32 0, i32 4
  %69 = load ptr, ptr %68, align 8, !tbaa !20
  %70 = load i64, ptr %15, align 8, !tbaa !18
  %71 = getelementptr inbounds double, ptr %69, i64 %70
  store double %65, ptr %71, align 8, !tbaa !19
  %72 = load double, ptr %22, align 8, !tbaa !19
  %73 = load ptr, ptr %8, align 8, !tbaa !5
  %74 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %73, i32 0, i32 47
  %75 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %74, i32 0, i32 4
  %76 = load ptr, ptr %75, align 8, !tbaa !20
  %77 = load i64, ptr %15, align 8, !tbaa !18
  %78 = getelementptr inbounds double, ptr %76, i64 %77
  store double %72, ptr %78, align 8, !tbaa !19
  %79 = load double, ptr %18, align 8, !tbaa !19
  %80 = load double, ptr %21, align 8, !tbaa !19
  %81 = load double, ptr %22, align 8, !tbaa !19
  %82 = call double @llvm.fmuladd.f64(double %80, double %81, double %79)
  store double %82, ptr %18, align 8, !tbaa !19
  %83 = load double, ptr %19, align 8, !tbaa !19
  %84 = load double, ptr %21, align 8, !tbaa !19
  %85 = load double, ptr %21, align 8, !tbaa !19
  %86 = call double @llvm.fmuladd.f64(double %84, double %85, double %83)
  store double %86, ptr %19, align 8, !tbaa !19
  %87 = load double, ptr %20, align 8, !tbaa !19
  %88 = load double, ptr %22, align 8, !tbaa !19
  %89 = load double, ptr %22, align 8, !tbaa !19
  %90 = call double @llvm.fmuladd.f64(double %88, double %89, double %87)
  store double %90, ptr %20, align 8, !tbaa !19
  %91 = load double, ptr %25, align 8, !tbaa !19
  %92 = load double, ptr %21, align 8, !tbaa !19
  %93 = load ptr, ptr %10, align 8, !tbaa !5
  %94 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %93, i32 0, i32 4
  %95 = load ptr, ptr %94, align 8, !tbaa !20
  %96 = load i64, ptr %15, align 8, !tbaa !18
  %97 = getelementptr inbounds double, ptr %95, i64 %96
  %98 = load double, ptr %97, align 8, !tbaa !19
  %99 = call double @llvm.fmuladd.f64(double %92, double %98, double %91)
  store double %99, ptr %25, align 8, !tbaa !19
  %100 = load double, ptr %26, align 8, !tbaa !19
  %101 = load double, ptr %21, align 8, !tbaa !19
  %102 = load ptr, ptr %12, align 8, !tbaa !5
  %103 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %102, i32 0, i32 4
  %104 = load ptr, ptr %103, align 8, !tbaa !20
  %105 = load i64, ptr %15, align 8, !tbaa !18
  %106 = getelementptr inbounds double, ptr %104, i64 %105
  %107 = load double, ptr %106, align 8, !tbaa !19
  %108 = call double @llvm.fmuladd.f64(double %101, double %107, double %100)
  store double %108, ptr %26, align 8, !tbaa !19
  br label %109

109:                                              ; preds = %38
  %110 = load i64, ptr %15, align 8, !tbaa !18
  %111 = add nsw i64 %110, 1
  store i64 %111, ptr %15, align 8, !tbaa !18
  br label %33, !llvm.loop !21

112:                                              ; preds = %33
  %113 = load ptr, ptr %8, align 8, !tbaa !5
  %114 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %113, i32 0, i32 44
  store i64 0, ptr %114, align 8, !tbaa !23
  %115 = load ptr, ptr %8, align 8, !tbaa !5
  %116 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %115, i32 0, i32 0
  %117 = load i64, ptr %116, align 8, !tbaa !24
  %118 = icmp eq i64 %117, 0
  br i1 %118, label %124, label %119

119:                                              ; preds = %112
  %120 = load ptr, ptr %8, align 8, !tbaa !5
  %121 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %120, i32 0, i32 0
  %122 = load i64, ptr %121, align 8, !tbaa !24
  %123 = icmp eq i64 %122, 3
  br label %124

124:                                              ; preds = %119, %112
  %125 = phi i1 [ true, %112 ], [ %123, %119 ]
  %126 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %125, ptr noundef @.str.263, ptr noundef %126)
  %127 = load ptr, ptr %8, align 8, !tbaa !5
  %128 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %127, i32 0, i32 0
  %129 = load i64, ptr %128, align 8, !tbaa !24
  %130 = icmp eq i64 %129, 0
  br i1 %130, label %131, label %267

131:                                              ; preds = %124
  %132 = load ptr, ptr %8, align 8, !tbaa !5
  %133 = load ptr, ptr %8, align 8, !tbaa !5
  %134 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %133, i32 0, i32 15
  %135 = load ptr, ptr %8, align 8, !tbaa !5
  %136 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %135, i32 0, i32 46
  %137 = load ptr, ptr %8, align 8, !tbaa !5
  %138 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %137, i32 0, i32 47
  %139 = load ptr, ptr %8, align 8, !tbaa !5
  %140 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %139, i32 0, i32 44
  %141 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_implL29optserv_hessianupdatelowlevelEPNS_12xbfgshessianEPNS_9ae_matrixEPKNS_9ae_vectorES6_PlPNS_8ae_stateE(ptr noundef %132, ptr noundef %134, ptr noundef %136, ptr noundef %138, ptr noundef %140, ptr noundef %141)
  %142 = load ptr, ptr %8, align 8, !tbaa !5
  %143 = load ptr, ptr %8, align 8, !tbaa !5
  %144 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %143, i32 0, i32 45
  %145 = load ptr, ptr %8, align 8, !tbaa !5
  %146 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %145, i32 0, i32 46
  %147 = load ptr, ptr %8, align 8, !tbaa !5
  %148 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %147, i32 0, i32 47
  %149 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_implL29optserv_hessianupdatelowlevelEPNS_12xbfgshessianEPNS_9ae_matrixEPKNS_9ae_vectorES6_PlPNS_8ae_stateE(ptr noundef %142, ptr noundef %144, ptr noundef %146, ptr noundef %148, ptr noundef %15, ptr noundef %149)
  %150 = load double, ptr %18, align 8, !tbaa !19
  %151 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %150, double noundef 0.000000e+00)
  br i1 %151, label %152, label %167

152:                                              ; preds = %131
  %153 = load ptr, ptr %8, align 8, !tbaa !5
  %154 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %153, i32 0, i32 19
  %155 = load double, ptr %154, align 8, !tbaa !25
  %156 = load double, ptr %18, align 8, !tbaa !19
  %157 = fadd double %155, %156
  %158 = load ptr, ptr %8, align 8, !tbaa !5
  %159 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %158, i32 0, i32 19
  store double %157, ptr %159, align 8, !tbaa !25
  %160 = load ptr, ptr %8, align 8, !tbaa !5
  %161 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %160, i32 0, i32 17
  %162 = load double, ptr %161, align 8, !tbaa !26
  %163 = load double, ptr %20, align 8, !tbaa !19
  %164 = fadd double %162, %163
  %165 = load ptr, ptr %8, align 8, !tbaa !5
  %166 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %165, i32 0, i32 17
  store double %164, ptr %166, align 8, !tbaa !26
  br label %167

167:                                              ; preds = %152, %131
  %168 = load ptr, ptr %8, align 8, !tbaa !5
  %169 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %168, i32 0, i32 18
  %170 = load double, ptr %169, align 8, !tbaa !27
  %171 = load double, ptr %19, align 8, !tbaa !19
  %172 = fadd double %170, %171
  %173 = load ptr, ptr %8, align 8, !tbaa !5
  %174 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %173, i32 0, i32 18
  store double %172, ptr %174, align 8, !tbaa !27
  %175 = load ptr, ptr %8, align 8, !tbaa !5
  %176 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %175, i32 0, i32 16
  %177 = load i64, ptr %176, align 8, !tbaa !28
  %178 = add nsw i64 %177, 1
  %179 = load ptr, ptr %8, align 8, !tbaa !5
  %180 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %179, i32 0, i32 16
  store i64 %178, ptr %180, align 8, !tbaa !28
  %181 = load ptr, ptr %8, align 8, !tbaa !5
  %182 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %181, i32 0, i32 4
  %183 = load i64, ptr %182, align 8, !tbaa !29
  %184 = icmp sgt i64 %183, 0
  br i1 %184, label %185, label %266

185:                                              ; preds = %167
  %186 = load ptr, ptr %8, align 8, !tbaa !5
  %187 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %186, i32 0, i32 16
  %188 = load i64, ptr %187, align 8, !tbaa !28
  %189 = load ptr, ptr %8, align 8, !tbaa !5
  %190 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %189, i32 0, i32 4
  %191 = load i64, ptr %190, align 8, !tbaa !29
  %192 = icmp sge i64 %188, %191
  br i1 %192, label %193, label %266

193:                                              ; preds = %185
  %194 = load i64, ptr %16, align 8, !tbaa !18
  %195 = load i64, ptr %16, align 8, !tbaa !18
  %196 = load ptr, ptr %8, align 8, !tbaa !5
  %197 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %196, i32 0, i32 45
  %198 = load ptr, ptr %8, align 8, !tbaa !5
  %199 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %198, i32 0, i32 15
  %200 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl11rmatrixcopyEllPKNS_9ae_matrixEllPS0_llPNS_8ae_stateE(i64 noundef %194, i64 noundef %195, ptr noundef %197, i64 noundef 0, i64 noundef 0, ptr noundef %199, i64 noundef 0, i64 noundef 0, ptr noundef %200)
  %201 = load ptr, ptr %8, align 8, !tbaa !5
  %202 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %201, i32 0, i32 17
  %203 = load double, ptr %202, align 8, !tbaa !26
  %204 = load ptr, ptr %8, align 8, !tbaa !5
  %205 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %204, i32 0, i32 19
  %206 = load double, ptr %205, align 8, !tbaa !25
  %207 = load ptr, ptr %8, align 8, !tbaa !5
  %208 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %207, i32 0, i32 7
  %209 = load double, ptr %208, align 8, !tbaa !30
  %210 = load ptr, ptr %8, align 8, !tbaa !5
  %211 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %210, i32 0, i32 17
  %212 = load double, ptr %211, align 8, !tbaa !26
  %213 = call double @llvm.fmuladd.f64(double %209, double %212, double %206)
  %214 = load ptr, ptr %8, align 8, !tbaa !5
  %215 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %214, i32 0, i32 8
  %216 = load double, ptr %215, align 8, !tbaa !31
  %217 = load ptr, ptr %8, align 8, !tbaa !5
  %218 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %217, i32 0, i32 18
  %219 = load double, ptr %218, align 8, !tbaa !27
  %220 = call double @llvm.fmuladd.f64(double %216, double %219, double %213)
  %221 = fdiv double %203, %220
  store double %221, ptr %17, align 8, !tbaa !19
  %222 = load i64, ptr %16, align 8, !tbaa !18
  %223 = load i64, ptr %16, align 8, !tbaa !18
  %224 = load ptr, ptr %8, align 8, !tbaa !5
  %225 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %224, i32 0, i32 45
  %226 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl5rsetmElldPNS_9ae_matrixEPNS_8ae_stateE(i64 noundef %222, i64 noundef %223, double noundef 0.000000e+00, ptr noundef %225, ptr noundef %226)
  store i64 0, ptr %15, align 8, !tbaa !18
  br label %227

227:                                              ; preds = %243, %193
  %228 = load i64, ptr %15, align 8, !tbaa !18
  %229 = load i64, ptr %16, align 8, !tbaa !18
  %230 = sub nsw i64 %229, 1
  %231 = icmp sle i64 %228, %230
  br i1 %231, label %232, label %246

232:                                              ; preds = %227
  %233 = load double, ptr %17, align 8, !tbaa !19
  %234 = load ptr, ptr %8, align 8, !tbaa !5
  %235 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %234, i32 0, i32 45
  %236 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %235, i32 0, i32 6
  %237 = load ptr, ptr %236, align 8, !tbaa !20
  %238 = load i64, ptr %15, align 8, !tbaa !18
  %239 = getelementptr inbounds ptr, ptr %237, i64 %238
  %240 = load ptr, ptr %239, align 8, !tbaa !5
  %241 = load i64, ptr %15, align 8, !tbaa !18
  %242 = getelementptr inbounds double, ptr %240, i64 %241
  store double %233, ptr %242, align 8, !tbaa !19
  br label %243

243:                                              ; preds = %232
  %244 = load i64, ptr %15, align 8, !tbaa !18
  %245 = add nsw i64 %244, 1
  store i64 %245, ptr %15, align 8, !tbaa !18
  br label %227, !llvm.loop !32

246:                                              ; preds = %227
  %247 = load ptr, ptr %14, align 8, !tbaa !5
  %248 = call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef 5.000000e-16, ptr noundef %247)
  %249 = load ptr, ptr %8, align 8, !tbaa !5
  %250 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %249, i32 0, i32 19
  store double %248, ptr %250, align 8, !tbaa !25
  %251 = load ptr, ptr %8, align 8, !tbaa !5
  %252 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %251, i32 0, i32 19
  %253 = load double, ptr %252, align 8, !tbaa !25
  %254 = load ptr, ptr %8, align 8, !tbaa !5
  %255 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %254, i32 0, i32 6
  %256 = load double, ptr %255, align 8, !tbaa !33
  %257 = fmul double %253, %256
  %258 = load ptr, ptr %8, align 8, !tbaa !5
  %259 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %258, i32 0, i32 17
  store double %257, ptr %259, align 8, !tbaa !26
  %260 = load ptr, ptr %8, align 8, !tbaa !5
  %261 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %260, i32 0, i32 18
  store double 0.000000e+00, ptr %261, align 8, !tbaa !27
  %262 = load ptr, ptr %8, align 8, !tbaa !5
  %263 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %262, i32 0, i32 16
  store i64 0, ptr %263, align 8, !tbaa !28
  %264 = load ptr, ptr %8, align 8, !tbaa !5
  %265 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %264, i32 0, i32 44
  store i64 3, ptr %265, align 8, !tbaa !23
  br label %266

266:                                              ; preds = %246, %185, %167
  store i32 1, ptr %28, align 4
  br label %644

267:                                              ; preds = %124
  %268 = load ptr, ptr %8, align 8, !tbaa !5
  %269 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %268, i32 0, i32 0
  %270 = load i64, ptr %269, align 8, !tbaa !24
  %271 = icmp eq i64 %270, 3
  br i1 %271, label %272, label %643

272:                                              ; preds = %267
  %273 = load i8, ptr %13, align 1, !tbaa !9, !range !34, !noundef !35
  %274 = trunc i8 %273 to i1
  br i1 %274, label %275, label %281

275:                                              ; preds = %272
  %276 = load double, ptr %25, align 8, !tbaa !19
  %277 = load double, ptr %26, align 8, !tbaa !19
  %278 = load double, ptr %20, align 8, !tbaa !19
  %279 = load double, ptr %18, align 8, !tbaa !19
  %280 = fdiv double %278, %279
  call void (ptr, ...) @_ZN11alglib_impl8ae_traceEPKcz(ptr noundef @.str.264, double noundef %276, double noundef %277, double noundef %280)
  br label %281

281:                                              ; preds = %275, %272
  %282 = load ptr, ptr %8, align 8, !tbaa !5
  %283 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %282, i32 0, i32 12
  %284 = load i64, ptr %283, align 8, !tbaa !36
  %285 = icmp eq i64 %284, 0
  br i1 %285, label %286, label %291

286:                                              ; preds = %281
  %287 = load i8, ptr %13, align 1, !tbaa !9, !range !34, !noundef !35
  %288 = trunc i8 %287 to i1
  br i1 %288, label %289, label %290

289:                                              ; preds = %286
  call void (ptr, ...) @_ZN11alglib_impl8ae_traceEPKcz(ptr noundef @.str.265)
  br label %290

290:                                              ; preds = %289, %286
  store i32 1, ptr %28, align 4
  br label %644

291:                                              ; preds = %281
  %292 = load i64, ptr %16, align 8, !tbaa !18
  %293 = load ptr, ptr %8, align 8, !tbaa !5
  %294 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %293, i32 0, i32 46
  %295 = load ptr, ptr %14, align 8, !tbaa !5
  %296 = call noundef double @_ZN11alglib_impl8rmaxabsvElPKNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %292, ptr noundef %294, ptr noundef %295)
  %297 = load ptr, ptr %8, align 8, !tbaa !5
  %298 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %297, i32 0, i32 5
  %299 = load double, ptr %298, align 8, !tbaa !37
  %300 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_less_eqEdd(double noundef %296, double noundef %299)
  br i1 %300, label %301, label %306

301:                                              ; preds = %291
  %302 = load i8, ptr %13, align 1, !tbaa !9, !range !34, !noundef !35
  %303 = trunc i8 %302 to i1
  br i1 %303, label %304, label %305

304:                                              ; preds = %301
  call void (ptr, ...) @_ZN11alglib_impl8ae_traceEPKcz(ptr noundef @.str.266)
  br label %305

305:                                              ; preds = %304, %301
  store i32 1, ptr %28, align 4
  br label %644

306:                                              ; preds = %291
  %307 = load i64, ptr %16, align 8, !tbaa !18
  %308 = load ptr, ptr %8, align 8, !tbaa !5
  %309 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %308, i32 0, i32 47
  %310 = load ptr, ptr %14, align 8, !tbaa !5
  %311 = call noundef double @_ZN11alglib_impl6rdotv2ElPKNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %307, ptr noundef %309, ptr noundef %310)
  %312 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %311, double noundef 0.000000e+00)
  br i1 %312, label %313, label %333

313:                                              ; preds = %306
  %314 = load ptr, ptr %8, align 8, !tbaa !5
  %315 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_implL18optserv_popfrontxyEPNS_12xbfgshessianEPNS_8ae_stateE(ptr noundef %314, ptr noundef %315)
  %316 = load ptr, ptr %8, align 8, !tbaa !5
  %317 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %316, i32 0, i32 21
  %318 = load double, ptr %317, align 8, !tbaa !38
  %319 = fmul double 1.000000e-01, %318
  %320 = load ptr, ptr %14, align 8, !tbaa !5
  %321 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %319, double noundef 1.000000e-04, ptr noundef %320)
  %322 = load ptr, ptr %8, align 8, !tbaa !5
  %323 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %322, i32 0, i32 21
  store double %321, ptr %323, align 8, !tbaa !38
  %324 = load ptr, ptr %8, align 8, !tbaa !5
  %325 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_implL25optserv_resetlowrankmodelEPNS_12xbfgshessianEPNS_8ae_stateE(ptr noundef %324, ptr noundef %325)
  %326 = load i8, ptr %13, align 1, !tbaa !9, !range !34, !noundef !35
  %327 = trunc i8 %326 to i1
  br i1 %327, label %328, label %332

328:                                              ; preds = %313
  %329 = load ptr, ptr %8, align 8, !tbaa !5
  %330 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %329, i32 0, i32 21
  %331 = load double, ptr %330, align 8, !tbaa !38
  call void (ptr, ...) @_ZN11alglib_impl8ae_traceEPKcz(ptr noundef @.str.267, double noundef %331)
  br label %332

332:                                              ; preds = %328, %313
  store i32 1, ptr %28, align 4
  br label %644

333:                                              ; preds = %306
  %334 = load ptr, ptr %8, align 8, !tbaa !5
  %335 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %334, i32 0, i32 10
  %336 = load double, ptr %335, align 8, !tbaa !39
  %337 = load double, ptr %19, align 8, !tbaa !19
  %338 = load ptr, ptr %14, align 8, !tbaa !5
  %339 = call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef %337, ptr noundef %338)
  %340 = load ptr, ptr %14, align 8, !tbaa !5
  %341 = call noundef double @_ZN11alglib_impl10ae_minrealEddPNS_8ae_stateE(double noundef %339, double noundef 1.000000e+00, ptr noundef %340)
  %342 = fneg double %336
  %343 = call double @llvm.fmuladd.f64(double %342, double %341, double 1.000000e+00)
  store double %343, ptr %27, align 8, !tbaa !19
  %344 = load double, ptr %25, align 8, !tbaa !19
  %345 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %344, double noundef 0.000000e+00)
  br i1 %345, label %346, label %352

346:                                              ; preds = %333
  %347 = load double, ptr %26, align 8, !tbaa !19
  %348 = load double, ptr %27, align 8, !tbaa !19
  %349 = load double, ptr %25, align 8, !tbaa !19
  %350 = fmul double %348, %349
  %351 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %347, double noundef %350)
  br i1 %351, label %381, label %352

352:                                              ; preds = %346, %333
  %353 = load double, ptr %26, align 8, !tbaa !19
  %354 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %353, double noundef 0.000000e+00)
  br i1 %354, label %355, label %361

355:                                              ; preds = %352
  %356 = load double, ptr %25, align 8, !tbaa !19
  %357 = load double, ptr %27, align 8, !tbaa !19
  %358 = load double, ptr %26, align 8, !tbaa !19
  %359 = fmul double %357, %358
  %360 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %356, double noundef %359)
  br i1 %360, label %381, label %361

361:                                              ; preds = %355, %352
  %362 = load ptr, ptr %8, align 8, !tbaa !5
  %363 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_implL18optserv_popfrontxyEPNS_12xbfgshessianEPNS_8ae_stateE(ptr noundef %362, ptr noundef %363)
  %364 = load ptr, ptr %8, align 8, !tbaa !5
  %365 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %364, i32 0, i32 21
  %366 = load double, ptr %365, align 8, !tbaa !38
  %367 = fmul double 1.000000e-01, %366
  %368 = load ptr, ptr %14, align 8, !tbaa !5
  %369 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %367, double noundef 1.000000e-04, ptr noundef %368)
  %370 = load ptr, ptr %8, align 8, !tbaa !5
  %371 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %370, i32 0, i32 21
  store double %369, ptr %371, align 8, !tbaa !38
  %372 = load ptr, ptr %8, align 8, !tbaa !5
  %373 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_implL25optserv_resetlowrankmodelEPNS_12xbfgshessianEPNS_8ae_stateE(ptr noundef %372, ptr noundef %373)
  %374 = load i8, ptr %13, align 1, !tbaa !9, !range !34, !noundef !35
  %375 = trunc i8 %374 to i1
  br i1 %375, label %376, label %380

376:                                              ; preds = %361
  %377 = load ptr, ptr %8, align 8, !tbaa !5
  %378 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %377, i32 0, i32 21
  %379 = load double, ptr %378, align 8, !tbaa !38
  call void (ptr, ...) @_ZN11alglib_impl8ae_traceEPKcz(ptr noundef @.str.268, double noundef %379)
  br label %380

380:                                              ; preds = %376, %361
  store i32 1, ptr %28, align 4
  br label %644

381:                                              ; preds = %355, %346
  %382 = load double, ptr %18, align 8, !tbaa !19
  %383 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %382, double noundef 0.000000e+00)
  br i1 %383, label %384, label %415

384:                                              ; preds = %381
  %385 = load double, ptr %20, align 8, !tbaa !19
  %386 = load double, ptr %18, align 8, !tbaa !19
  %387 = fdiv double %385, %386
  %388 = load ptr, ptr %8, align 8, !tbaa !5
  %389 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %388, i32 0, i32 11
  %390 = load double, ptr %389, align 8, !tbaa !40
  %391 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %387, double noundef %390)
  br i1 %391, label %392, label %415

392:                                              ; preds = %384
  %393 = load ptr, ptr %8, align 8, !tbaa !5
  %394 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_implL18optserv_popfrontxyEPNS_12xbfgshessianEPNS_8ae_stateE(ptr noundef %393, ptr noundef %394)
  %395 = load ptr, ptr %8, align 8, !tbaa !5
  %396 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %395, i32 0, i32 21
  %397 = load double, ptr %396, align 8, !tbaa !38
  %398 = fmul double 1.000000e-01, %397
  %399 = load ptr, ptr %14, align 8, !tbaa !5
  %400 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %398, double noundef 1.000000e-04, ptr noundef %399)
  %401 = load ptr, ptr %8, align 8, !tbaa !5
  %402 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %401, i32 0, i32 21
  store double %400, ptr %402, align 8, !tbaa !38
  %403 = load ptr, ptr %8, align 8, !tbaa !5
  %404 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_implL25optserv_resetlowrankmodelEPNS_12xbfgshessianEPNS_8ae_stateE(ptr noundef %403, ptr noundef %404)
  %405 = load i8, ptr %13, align 1, !tbaa !9, !range !34, !noundef !35
  %406 = trunc i8 %405 to i1
  br i1 %406, label %407, label %414

407:                                              ; preds = %392
  %408 = load double, ptr %20, align 8, !tbaa !19
  %409 = load double, ptr %18, align 8, !tbaa !19
  %410 = fdiv double %408, %409
  %411 = load ptr, ptr %8, align 8, !tbaa !5
  %412 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %411, i32 0, i32 21
  %413 = load double, ptr %412, align 8, !tbaa !38
  call void (ptr, ...) @_ZN11alglib_impl8ae_traceEPKcz(ptr noundef @.str.269, double noundef %410, double noundef %413)
  br label %414

414:                                              ; preds = %407, %392
  store i32 1, ptr %28, align 4
  br label %644

415:                                              ; preds = %384, %381
  %416 = load ptr, ptr %8, align 8, !tbaa !5
  %417 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %416, i32 0, i32 19
  %418 = load double, ptr %417, align 8, !tbaa !25
  %419 = load double, ptr %18, align 8, !tbaa !19
  %420 = fadd double %418, %419
  %421 = load ptr, ptr %8, align 8, !tbaa !5
  %422 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %421, i32 0, i32 19
  store double %420, ptr %422, align 8, !tbaa !25
  %423 = load ptr, ptr %8, align 8, !tbaa !5
  %424 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %423, i32 0, i32 17
  %425 = load double, ptr %424, align 8, !tbaa !26
  %426 = load double, ptr %20, align 8, !tbaa !19
  %427 = fadd double %425, %426
  %428 = load ptr, ptr %8, align 8, !tbaa !5
  %429 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %428, i32 0, i32 17
  store double %427, ptr %429, align 8, !tbaa !26
  %430 = load ptr, ptr %8, align 8, !tbaa !5
  %431 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %430, i32 0, i32 18
  %432 = load double, ptr %431, align 8, !tbaa !27
  %433 = load double, ptr %19, align 8, !tbaa !19
  %434 = fadd double %432, %433
  %435 = load ptr, ptr %8, align 8, !tbaa !5
  %436 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %435, i32 0, i32 18
  store double %434, ptr %436, align 8, !tbaa !27
  %437 = load i64, ptr %16, align 8, !tbaa !18
  %438 = load ptr, ptr %8, align 8, !tbaa !5
  %439 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %438, i32 0, i32 7
  %440 = load double, ptr %439, align 8, !tbaa !30
  %441 = load ptr, ptr %8, align 8, !tbaa !5
  %442 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %441, i32 0, i32 46
  %443 = load ptr, ptr %8, align 8, !tbaa !5
  %444 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %443, i32 0, i32 47
  %445 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl5raddvEldPKNS_9ae_vectorEPS0_PNS_8ae_stateE(i64 noundef %437, double noundef %440, ptr noundef %442, ptr noundef %444, ptr noundef %445)
  %446 = load i64, ptr %16, align 8, !tbaa !18
  %447 = load ptr, ptr %8, align 8, !tbaa !5
  %448 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %447, i32 0, i32 7
  %449 = load double, ptr %448, align 8, !tbaa !30
  %450 = load ptr, ptr %8, align 8, !tbaa !5
  %451 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %450, i32 0, i32 47
  %452 = load ptr, ptr %8, align 8, !tbaa !5
  %453 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %452, i32 0, i32 46
  %454 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl5raddvEldPKNS_9ae_vectorEPS0_PNS_8ae_stateE(i64 noundef %446, double noundef %449, ptr noundef %451, ptr noundef %453, ptr noundef %454)
  %455 = load ptr, ptr %8, align 8, !tbaa !5
  %456 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %455, i32 0, i32 20
  %457 = load i64, ptr %456, align 8, !tbaa !41
  %458 = load ptr, ptr %8, align 8, !tbaa !5
  %459 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %458, i32 0, i32 12
  %460 = load i64, ptr %459, align 8, !tbaa !36
  %461 = icmp sle i64 %457, %460
  %462 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %461, ptr noundef @.str.270, ptr noundef %462)
  %463 = load ptr, ptr %8, align 8, !tbaa !5
  %464 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %463, i32 0, i32 20
  %465 = load i64, ptr %464, align 8, !tbaa !41
  %466 = load ptr, ptr %8, align 8, !tbaa !5
  %467 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %466, i32 0, i32 12
  %468 = load i64, ptr %467, align 8, !tbaa !36
  %469 = icmp eq i64 %465, %468
  br i1 %469, label %470, label %473

470:                                              ; preds = %415
  %471 = load ptr, ptr %8, align 8, !tbaa !5
  %472 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_implL18optserv_popfrontxyEPNS_12xbfgshessianEPNS_8ae_stateE(ptr noundef %471, ptr noundef %472)
  br label %473

473:                                              ; preds = %470, %415
  %474 = load ptr, ptr %8, align 8, !tbaa !5
  %475 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %474, i32 0, i32 20
  %476 = load i64, ptr %475, align 8, !tbaa !41
  %477 = load ptr, ptr %8, align 8, !tbaa !5
  %478 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %477, i32 0, i32 12
  %479 = load i64, ptr %478, align 8, !tbaa !36
  %480 = icmp slt i64 %476, %479
  %481 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %480, ptr noundef @.str.271, ptr noundef %481)
  %482 = load ptr, ptr %8, align 8, !tbaa !5
  %483 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %482, i32 0, i32 20
  %484 = load i64, ptr %483, align 8, !tbaa !41
  %485 = add nsw i64 %484, 1
  %486 = load ptr, ptr %8, align 8, !tbaa !5
  %487 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %486, i32 0, i32 20
  store i64 %485, ptr %487, align 8, !tbaa !41
  %488 = load i64, ptr %16, align 8, !tbaa !18
  %489 = load ptr, ptr %8, align 8, !tbaa !5
  %490 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %489, i32 0, i32 46
  %491 = load ptr, ptr %8, align 8, !tbaa !5
  %492 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %491, i32 0, i32 22
  %493 = load ptr, ptr %8, align 8, !tbaa !5
  %494 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %493, i32 0, i32 20
  %495 = load i64, ptr %494, align 8, !tbaa !41
  %496 = sub nsw i64 %495, 1
  %497 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl7rcopyvrElPKNS_9ae_vectorEPNS_9ae_matrixElPNS_8ae_stateE(i64 noundef %488, ptr noundef %490, ptr noundef %492, i64 noundef %496, ptr noundef %497)
  %498 = load i64, ptr %16, align 8, !tbaa !18
  %499 = load ptr, ptr %8, align 8, !tbaa !5
  %500 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %499, i32 0, i32 47
  %501 = load ptr, ptr %8, align 8, !tbaa !5
  %502 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %501, i32 0, i32 23
  %503 = load ptr, ptr %8, align 8, !tbaa !5
  %504 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %503, i32 0, i32 20
  %505 = load i64, ptr %504, align 8, !tbaa !41
  %506 = sub nsw i64 %505, 1
  %507 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl7rcopyvrElPKNS_9ae_vectorEPNS_9ae_matrixElPNS_8ae_stateE(i64 noundef %498, ptr noundef %500, ptr noundef %502, i64 noundef %506, ptr noundef %507)
  %508 = load ptr, ptr %8, align 8, !tbaa !5
  %509 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %508, i32 0, i32 20
  %510 = load i64, ptr %509, align 8, !tbaa !41
  %511 = load ptr, ptr %8, align 8, !tbaa !5
  %512 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %511, i32 0, i32 50
  %513 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl7rallocvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %510, ptr noundef %512, ptr noundef %513)
  %514 = load ptr, ptr %8, align 8, !tbaa !5
  %515 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %514, i32 0, i32 20
  %516 = load i64, ptr %515, align 8, !tbaa !41
  %517 = load i64, ptr %16, align 8, !tbaa !18
  %518 = load ptr, ptr %8, align 8, !tbaa !5
  %519 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %518, i32 0, i32 22
  %520 = load ptr, ptr %8, align 8, !tbaa !5
  %521 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %520, i32 0, i32 46
  %522 = load ptr, ptr %8, align 8, !tbaa !5
  %523 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %522, i32 0, i32 50
  %524 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl5rgemvElldPKNS_9ae_matrixElPKNS_9ae_vectorEdPS3_PNS_8ae_stateE(i64 noundef %516, i64 noundef %517, double noundef 1.000000e+00, ptr noundef %519, i64 noundef 0, ptr noundef %521, double noundef 0.000000e+00, ptr noundef %523, ptr noundef %524)
  %525 = load ptr, ptr %8, align 8, !tbaa !5
  %526 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %525, i32 0, i32 20
  %527 = load i64, ptr %526, align 8, !tbaa !41
  %528 = load ptr, ptr %8, align 8, !tbaa !5
  %529 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %528, i32 0, i32 50
  %530 = load ptr, ptr %8, align 8, !tbaa !5
  %531 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %530, i32 0, i32 24
  %532 = load ptr, ptr %8, align 8, !tbaa !5
  %533 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %532, i32 0, i32 20
  %534 = load i64, ptr %533, align 8, !tbaa !41
  %535 = sub nsw i64 %534, 1
  %536 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl7rcopyvrElPKNS_9ae_vectorEPNS_9ae_matrixElPNS_8ae_stateE(i64 noundef %527, ptr noundef %529, ptr noundef %531, i64 noundef %535, ptr noundef %536)
  %537 = load ptr, ptr %8, align 8, !tbaa !5
  %538 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %537, i32 0, i32 20
  %539 = load i64, ptr %538, align 8, !tbaa !41
  %540 = load ptr, ptr %8, align 8, !tbaa !5
  %541 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %540, i32 0, i32 50
  %542 = load ptr, ptr %8, align 8, !tbaa !5
  %543 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %542, i32 0, i32 24
  %544 = load ptr, ptr %8, align 8, !tbaa !5
  %545 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %544, i32 0, i32 20
  %546 = load i64, ptr %545, align 8, !tbaa !41
  %547 = sub nsw i64 %546, 1
  %548 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl7rcopyvcElPKNS_9ae_vectorEPNS_9ae_matrixElPNS_8ae_stateE(i64 noundef %539, ptr noundef %541, ptr noundef %543, i64 noundef %547, ptr noundef %548)
  %549 = load ptr, ptr %8, align 8, !tbaa !5
  %550 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %549, i32 0, i32 20
  %551 = load i64, ptr %550, align 8, !tbaa !41
  %552 = load i64, ptr %16, align 8, !tbaa !18
  %553 = load ptr, ptr %8, align 8, !tbaa !5
  %554 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %553, i32 0, i32 23
  %555 = load ptr, ptr %8, align 8, !tbaa !5
  %556 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %555, i32 0, i32 46
  %557 = load ptr, ptr %8, align 8, !tbaa !5
  %558 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %557, i32 0, i32 50
  %559 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl5rgemvElldPKNS_9ae_matrixElPKNS_9ae_vectorEdPS3_PNS_8ae_stateE(i64 noundef %551, i64 noundef %552, double noundef 1.000000e+00, ptr noundef %554, i64 noundef 0, ptr noundef %556, double noundef 0.000000e+00, ptr noundef %558, ptr noundef %559)
  %560 = load ptr, ptr %8, align 8, !tbaa !5
  %561 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %560, i32 0, i32 20
  %562 = load i64, ptr %561, align 8, !tbaa !41
  %563 = load ptr, ptr %8, align 8, !tbaa !5
  %564 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %563, i32 0, i32 50
  %565 = load ptr, ptr %8, align 8, !tbaa !5
  %566 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %565, i32 0, i32 25
  %567 = load ptr, ptr %8, align 8, !tbaa !5
  %568 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %567, i32 0, i32 20
  %569 = load i64, ptr %568, align 8, !tbaa !41
  %570 = sub nsw i64 %569, 1
  %571 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl7rcopyvrElPKNS_9ae_vectorEPNS_9ae_matrixElPNS_8ae_stateE(i64 noundef %562, ptr noundef %564, ptr noundef %566, i64 noundef %570, ptr noundef %571)
  %572 = load ptr, ptr %8, align 8, !tbaa !5
  %573 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %572, i32 0, i32 20
  %574 = load i64, ptr %573, align 8, !tbaa !41
  %575 = load i64, ptr %16, align 8, !tbaa !18
  %576 = load ptr, ptr %8, align 8, !tbaa !5
  %577 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %576, i32 0, i32 22
  %578 = load ptr, ptr %8, align 8, !tbaa !5
  %579 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %578, i32 0, i32 47
  %580 = load ptr, ptr %8, align 8, !tbaa !5
  %581 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %580, i32 0, i32 50
  %582 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl5rgemvElldPKNS_9ae_matrixElPKNS_9ae_vectorEdPS3_PNS_8ae_stateE(i64 noundef %574, i64 noundef %575, double noundef 1.000000e+00, ptr noundef %577, i64 noundef 0, ptr noundef %579, double noundef 0.000000e+00, ptr noundef %581, ptr noundef %582)
  %583 = load ptr, ptr %8, align 8, !tbaa !5
  %584 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %583, i32 0, i32 20
  %585 = load i64, ptr %584, align 8, !tbaa !41
  %586 = load ptr, ptr %8, align 8, !tbaa !5
  %587 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %586, i32 0, i32 50
  %588 = load ptr, ptr %8, align 8, !tbaa !5
  %589 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %588, i32 0, i32 25
  %590 = load ptr, ptr %8, align 8, !tbaa !5
  %591 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %590, i32 0, i32 20
  %592 = load i64, ptr %591, align 8, !tbaa !41
  %593 = sub nsw i64 %592, 1
  %594 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl7rcopyvcElPKNS_9ae_vectorEPNS_9ae_matrixElPNS_8ae_stateE(i64 noundef %585, ptr noundef %587, ptr noundef %589, i64 noundef %593, ptr noundef %594)
  %595 = load i64, ptr %16, align 8, !tbaa !18
  %596 = load ptr, ptr %8, align 8, !tbaa !5
  %597 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %596, i32 0, i32 47
  %598 = load ptr, ptr %14, align 8, !tbaa !5
  %599 = call noundef double @_ZN11alglib_impl6rdotv2ElPKNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %595, ptr noundef %597, ptr noundef %598)
  store double %599, ptr %23, align 8, !tbaa !19
  %600 = load i64, ptr %16, align 8, !tbaa !18
  %601 = load ptr, ptr %8, align 8, !tbaa !5
  %602 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %601, i32 0, i32 46
  %603 = load ptr, ptr %8, align 8, !tbaa !5
  %604 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %603, i32 0, i32 47
  %605 = load ptr, ptr %14, align 8, !tbaa !5
  %606 = call noundef double @_ZN11alglib_impl5rdotvElPKNS_9ae_vectorES2_PNS_8ae_stateE(i64 noundef %600, ptr noundef %602, ptr noundef %604, ptr noundef %605)
  store double %606, ptr %24, align 8, !tbaa !19
  %607 = load double, ptr %23, align 8, !tbaa !19
  %608 = load double, ptr %24, align 8, !tbaa !19
  %609 = fdiv double %607, %608
  %610 = load ptr, ptr %8, align 8, !tbaa !5
  %611 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %610, i32 0, i32 21
  %612 = load double, ptr %611, align 8, !tbaa !38
  %613 = fmul double 1.000000e-01, %612
  %614 = load ptr, ptr %8, align 8, !tbaa !5
  %615 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %614, i32 0, i32 21
  %616 = load double, ptr %615, align 8, !tbaa !38
  %617 = fmul double 1.000000e+01, %616
  %618 = load ptr, ptr %14, align 8, !tbaa !5
  %619 = call noundef double @_ZN11alglib_impl8boundvalEdddPNS_8ae_stateE(double noundef %609, double noundef %613, double noundef %617, ptr noundef %618)
  %620 = load ptr, ptr %8, align 8, !tbaa !5
  %621 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %620, i32 0, i32 21
  store double %619, ptr %621, align 8, !tbaa !38
  %622 = load ptr, ptr %8, align 8, !tbaa !5
  %623 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %622, i32 0, i32 21
  %624 = load double, ptr %623, align 8, !tbaa !38
  %625 = load ptr, ptr %8, align 8, !tbaa !5
  %626 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %625, i32 0, i32 7
  %627 = load double, ptr %626, align 8, !tbaa !30
  %628 = fadd double %627, 5.000000e-16
  %629 = fdiv double 1.000000e+00, %628
  %630 = load ptr, ptr %14, align 8, !tbaa !5
  %631 = call noundef double @_ZN11alglib_impl10ae_minrealEddPNS_8ae_stateE(double noundef %624, double noundef %629, ptr noundef %630)
  %632 = load ptr, ptr %8, align 8, !tbaa !5
  %633 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %632, i32 0, i32 21
  store double %631, ptr %633, align 8, !tbaa !38
  %634 = load i8, ptr %13, align 1, !tbaa !9, !range !34, !noundef !35
  %635 = trunc i8 %634 to i1
  br i1 %635, label %636, label %640

636:                                              ; preds = %473
  %637 = load ptr, ptr %8, align 8, !tbaa !5
  %638 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %637, i32 0, i32 21
  %639 = load double, ptr %638, align 8, !tbaa !38
  call void (ptr, ...) @_ZN11alglib_impl8ae_traceEPKcz(ptr noundef @.str.272, double noundef %639)
  br label %640

640:                                              ; preds = %636, %473
  %641 = load ptr, ptr %8, align 8, !tbaa !5
  %642 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_implL25optserv_resetlowrankmodelEPNS_12xbfgshessianEPNS_8ae_stateE(ptr noundef %641, ptr noundef %642)
  br label %643

643:                                              ; preds = %640, %267
  store i32 0, ptr %28, align 4
  br label %644

644:                                              ; preds = %643, %414, %380, %332, %305, %290, %266
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  %645 = load i32, ptr %28, align 4
  switch i32 %645, label %647 [
    i32 0, label %646
    i32 1, label %646
  ]

646:                                              ; preds = %644, %644
  ret void

647:                                              ; preds = %644
  unreachable
}

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN11alglib_implL29optserv_hessianupdatelowlevelEPNS_12xbfgshessianEPNS_9ae_matrixEPKNS_9ae_vectorES6_PlPNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #3

declare void @_ZN11alglib_impl11rmatrixcopyEllPKNS_9ae_matrixEllPS0_llPNS_8ae_stateE(i64 noundef, i64 noundef, ptr noundef, i64 noundef, i64 noundef, ptr noundef, i64 noundef, i64 noundef, ptr noundef) #1

declare void @_ZN11alglib_impl5rsetmElldPNS_9ae_matrixEPNS_8ae_stateE(i64 noundef, i64 noundef, double noundef, ptr noundef, ptr noundef) #1

declare noundef double @_ZN11alglib_impl6rdotv2ElPKNS_9ae_vectorEPNS_8ae_stateE(i64 noundef, ptr noundef, ptr noundef) #1

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN11alglib_implL18optserv_popfrontxyEPNS_12xbfgshessianEPNS_8ae_stateE(ptr noundef, ptr noundef) #3

declare void @_ZN11alglib_impl5raddvEldPKNS_9ae_vectorEPS0_PNS_8ae_stateE(i64 noundef, double noundef, ptr noundef, ptr noundef, ptr noundef) #1

declare void @_ZN11alglib_impl7rcopyvrElPKNS_9ae_vectorEPNS_9ae_matrixElPNS_8ae_stateE(i64 noundef, ptr noundef, ptr noundef, i64 noundef, ptr noundef) #1

declare void @_ZN11alglib_impl5rgemvElldPKNS_9ae_matrixElPKNS_9ae_vectorEdPS3_PNS_8ae_stateE(i64 noundef, i64 noundef, double noundef, ptr noundef, i64 noundef, ptr noundef, double noundef, ptr noundef, ptr noundef) #1

declare void @_ZN11alglib_impl7rcopyvcElPKNS_9ae_vectorEPNS_9ae_matrixElPNS_8ae_stateE(i64 noundef, ptr noundef, ptr noundef, i64 noundef, ptr noundef) #1

declare noundef double @_ZN11alglib_impl5rdotvElPKNS_9ae_vectorES2_PNS_8ae_stateE(i64 noundef, ptr noundef, ptr noundef, ptr noundef) #1

declare noundef double @_ZN11alglib_impl8boundvalEdddPNS_8ae_stateE(double noundef, double noundef, double noundef, ptr noundef) #1

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { 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 = { 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 = !{!"bool", !7, i64 0}
!11 = !{!12, !13, i64 136}
!12 = !{!"_ZTSN11alglib_impl12xbfgshessianE", !13, i64 0, !14, i64 8, !14, i64 72, !13, i64 136, !13, i64 144, !16, i64 152, !16, i64 160, !16, i64 168, !16, i64 176, !16, i64 184, !16, i64 192, !16, i64 200, !13, i64 208, !16, i64 216, !16, i64 224, !17, i64 232, !13, i64 312, !16, i64 320, !16, i64 328, !16, i64 336, !13, i64 344, !16, i64 352, !17, i64 360, !17, i64 440, !17, i64 520, !17, i64 600, !10, i64 680, !13, i64 688, !17, i64 696, !17, i64 776, !10, i64 856, !14, i64 864, !10, i64 928, !13, i64 936, !17, i64 944, !14, i64 1024, !14, i64 1088, !17, i64 1152, !14, i64 1232, !14, i64 1296, !10, i64 1360, !14, i64 1368, !16, i64 1432, !16, i64 1440, !13, i64 1448, !17, i64 1456, !14, i64 1536, !14, i64 1600, !14, i64 1664, !14, i64 1728, !14, i64 1792, !14, i64 1856, !17, i64 1920, !17, i64 2000, !17, i64 2080, !17, i64 2160, !17, i64 2240, !17, i64 2320, !17, i64 2400, !17, i64 2480, !14, i64 2560, !14, i64 2624, !17, i64 2688, !14, i64 2768, !17, i64 2832, !17, i64 2912, !17, i64 2992, !17, i64 3072, !17, i64 3152, !14, i64 3232, !14, i64 3296}
!13 = !{!"long", !7, i64 0}
!14 = !{!"_ZTSN11alglib_impl9ae_vectorE", !13, i64 0, !13, i64 8, !10, i64 16, !15, i64 24, !7, i64 56}
!15 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!16 = !{!"double", !7, i64 0}
!17 = !{!"_ZTSN11alglib_impl9ae_matrixE", !13, i64 0, !13, i64 8, !13, i64 16, !13, i64 24, !10, i64 32, !15, i64 40, !7, i64 72}
!18 = !{!13, !13, i64 0}
!19 = !{!16, !16, i64 0}
!20 = !{!7, !7, i64 0}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = !{!12, !13, i64 1448}
!24 = !{!12, !13, i64 0}
!25 = !{!12, !16, i64 336}
!26 = !{!12, !16, i64 320}
!27 = !{!12, !16, i64 328}
!28 = !{!12, !13, i64 312}
!29 = !{!12, !13, i64 144}
!30 = !{!12, !16, i64 168}
!31 = !{!12, !16, i64 176}
!32 = distinct !{!32, !22}
!33 = !{!12, !16, i64 160}
!34 = !{i8 0, i8 2}
!35 = !{}
!36 = !{!12, !13, i64 208}
!37 = !{!12, !16, i64 152}
!38 = !{!12, !16, i64 352}
!39 = !{!12, !16, i64 192}
!40 = !{!12, !16, i64 200}
!41 = !{!12, !13, i64 344}


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

@.str.263 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.264 = external hidden unnamed_addr constant [87 x i8], align 1
@.str.265 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.266 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.267 = external hidden unnamed_addr constant [117 x i8], align 1
@.str.268 = external hidden unnamed_addr constant [126 x i8], align 1
@.str.269 = external hidden unnamed_addr constant [123 x i8], align 1
@.str.270 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.271 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.272 = external hidden unnamed_addr constant [33 x i8], align 1

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

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

declare void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext, ptr noundef, ptr noundef) local_unnamed_addr #1

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

declare noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef, ptr noundef) local_unnamed_addr #1

declare noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef, double noundef, ptr noundef) local_unnamed_addr #1

declare noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef, double noundef) local_unnamed_addr #1

declare noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef, double noundef) local_unnamed_addr #1

declare noundef zeroext i1 @_ZN11alglib_impl13ae_fp_less_eqEdd(double noundef, double noundef) local_unnamed_addr #1

declare noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef, double noundef) local_unnamed_addr #1

declare noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef, ptr noundef) local_unnamed_addr #1

declare noundef double @_ZN11alglib_impl8rmaxabsvElPKNS_9ae_vectorEPNS_8ae_stateE(i64 noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

declare noundef double @_ZN11alglib_impl10ae_minrealEddPNS_8ae_stateE(double noundef, double noundef, ptr noundef) local_unnamed_addr #1

declare void @_ZN11alglib_impl8ae_traceEPKcz(ptr noundef, ...) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN11alglib_implL25optserv_resetlowrankmodelEPNS_12xbfgshessianEPNS_8ae_stateE(ptr noundef, ptr noundef) local_unnamed_addr #3

declare void @_ZN11alglib_impl7rallocvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl13hessianupdateEPNS_12xbfgshessianEPKNS_9ae_vectorES4_S4_S4_bPNS_8ae_stateE(ptr noundef %0, ptr nocapture noundef readonly %1, ptr nocapture noundef readonly %2, ptr nocapture noundef readonly %3, ptr nocapture noundef readonly %4, i1 noundef zeroext %5, ptr noundef %6) local_unnamed_addr #3 {
  %8 = alloca i64, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #5
  %9 = getelementptr inbounds i8, ptr %0, i64 136
  %10 = load i64, ptr %9, align 8, !tbaa !5
  %.not.not258 = icmp sgt i64 %10, 0
  br i1 %.not.not258, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %7
  %11 = getelementptr inbounds i8, ptr %3, i64 56
  %12 = getelementptr inbounds i8, ptr %1, i64 56
  %13 = getelementptr inbounds i8, ptr %4, i64 56
  %14 = getelementptr inbounds i8, ptr %2, i64 56
  %15 = getelementptr inbounds i8, ptr %0, i64 1592
  %16 = getelementptr inbounds i8, ptr %0, i64 1656
  %.pre = load ptr, ptr %13, align 8, !tbaa !16
  %.pre283 = load ptr, ptr %14, align 8, !tbaa !16
  br label %17

17:                                               ; preds = %.lr.ph, %17
  %18 = phi ptr [ %.pre283, %.lr.ph ], [ %45, %17 ]
  %19 = phi ptr [ %.pre, %.lr.ph ], [ %48, %17 ]
  %.0264 = phi double [ 0.000000e+00, %.lr.ph ], [ %43, %17 ]
  %storemerge259 = phi i64 [ 0, %.lr.ph ], [ %55, %17 ]
  %20 = phi <2 x double> [ zeroinitializer, %.lr.ph ], [ %44, %17 ]
  %21 = phi <2 x double> [ zeroinitializer, %.lr.ph ], [ %54, %17 ]
  %22 = load ptr, ptr %11, align 8, !tbaa !16
  %23 = getelementptr inbounds double, ptr %22, i64 %storemerge259
  %24 = load double, ptr %23, align 8, !tbaa !17
  %25 = load ptr, ptr %12, align 8, !tbaa !16
  %26 = getelementptr inbounds double, ptr %25, i64 %storemerge259
  %27 = load double, ptr %26, align 8, !tbaa !17
  %28 = getelementptr inbounds double, ptr %19, i64 %storemerge259
  %29 = load double, ptr %28, align 8, !tbaa !17
  %30 = getelementptr inbounds double, ptr %18, i64 %storemerge259
  %31 = load double, ptr %30, align 8, !tbaa !17
  %32 = insertelement <2 x double> poison, double %29, i64 0
  %33 = insertelement <2 x double> %32, double %24, i64 1
  %34 = insertelement <2 x double> poison, double %31, i64 0
  %35 = insertelement <2 x double> %34, double %27, i64 1
  %36 = fsub <2 x double> %33, %35
  %37 = load ptr, ptr %15, align 8, !tbaa !16
  %38 = getelementptr inbounds double, ptr %37, i64 %storemerge259
  %39 = extractelement <2 x double> %36, i64 1
  store double %39, ptr %38, align 8, !tbaa !17
  %40 = load ptr, ptr %16, align 8, !tbaa !16
  %41 = getelementptr inbounds double, ptr %40, i64 %storemerge259
  %42 = extractelement <2 x double> %36, i64 0
  store double %42, ptr %41, align 8, !tbaa !17
  %43 = tail call double @llvm.fmuladd.f64(double %39, double %42, double %.0264)
  %44 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %36, <2 x double> %36, <2 x double> %20)
  %45 = load ptr, ptr %14, align 8, !tbaa !16
  %46 = getelementptr inbounds double, ptr %45, i64 %storemerge259
  %47 = load double, ptr %46, align 8, !tbaa !17
  %48 = load ptr, ptr %13, align 8, !tbaa !16
  %49 = getelementptr inbounds double, ptr %48, i64 %storemerge259
  %50 = load double, ptr %49, align 8, !tbaa !17
  %51 = shufflevector <2 x double> %36, <2 x double> poison, <2 x i32> <i32 1, i32 1>
  %52 = insertelement <2 x double> poison, double %47, i64 0
  %53 = insertelement <2 x double> %52, double %50, i64 1
  %54 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %51, <2 x double> %53, <2 x double> %21)
  %55 = add nuw nsw i64 %storemerge259, 1
  %exitcond.not = icmp eq i64 %55, %10
  br i1 %exitcond.not, label %._crit_edge, label %17, !llvm.loop !18

._crit_edge:                                      ; preds = %17, %7
  %storemerge.lcssa = phi i64 [ 0, %7 ], [ %10, %17 ]
  %.0.lcssa = phi double [ 0.000000e+00, %7 ], [ %43, %17 ]
  %56 = phi <2 x double> [ zeroinitializer, %7 ], [ %44, %17 ]
  %57 = phi <2 x double> [ zeroinitializer, %7 ], [ %54, %17 ]
  store i64 %storemerge.lcssa, ptr %8, align 8, !tbaa !20
  %58 = getelementptr inbounds i8, ptr %0, i64 1448
  store i64 0, ptr %58, align 8, !tbaa !21
  %59 = load i64, ptr %0, align 8, !tbaa !22
  %60 = icmp eq i64 %59, 0
  %61 = icmp eq i64 %59, 3
  %spec.select = or i1 %60, %61
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %spec.select, ptr noundef nonnull @.str.263, ptr noundef %6)
  %62 = load i64, ptr %0, align 8, !tbaa !22
  switch i64 %62, label %.thread257 [
    i64 0, label %63
    i64 3, label %133
  ]

63:                                               ; preds = %._crit_edge
  %64 = getelementptr inbounds i8, ptr %0, i64 232
  %65 = getelementptr inbounds i8, ptr %0, i64 1536
  %66 = getelementptr inbounds i8, ptr %0, i64 1600
  tail call void @_ZN11alglib_implL29optserv_hessianupdatelowlevelEPNS_12xbfgshessianEPNS_9ae_matrixEPKNS_9ae_vectorES6_PlPNS_8ae_stateE(ptr noundef nonnull %0, ptr noundef nonnull %64, ptr noundef nonnull %65, ptr noundef nonnull %66, ptr noundef nonnull %58, ptr noundef %6)
  %67 = getelementptr inbounds i8, ptr %0, i64 1456
  call void @_ZN11alglib_implL29optserv_hessianupdatelowlevelEPNS_12xbfgshessianEPNS_9ae_matrixEPKNS_9ae_vectorES6_PlPNS_8ae_stateE(ptr noundef nonnull %0, ptr noundef nonnull %67, ptr noundef nonnull %65, ptr noundef nonnull %66, ptr noundef nonnull %8, ptr noundef %6)
  %68 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %.0.lcssa, double noundef 0.000000e+00)
  br i1 %68, label %69, label %77

69:                                               ; preds = %63
  %70 = getelementptr inbounds i8, ptr %0, i64 336
  %71 = load double, ptr %70, align 8, !tbaa !23
  %72 = fadd double %.0.lcssa, %71
  store double %72, ptr %70, align 8, !tbaa !23
  %73 = getelementptr inbounds i8, ptr %0, i64 320
  %74 = load double, ptr %73, align 8, !tbaa !24
  %75 = extractelement <2 x double> %56, i64 0
  %76 = fadd double %75, %74
  store double %76, ptr %73, align 8, !tbaa !24
  br label %77

77:                                               ; preds = %69, %63
  %78 = getelementptr inbounds i8, ptr %0, i64 328
  %79 = load double, ptr %78, align 8, !tbaa !25
  %80 = extractelement <2 x double> %56, i64 1
  %81 = fadd double %80, %79
  store double %81, ptr %78, align 8, !tbaa !25
  %82 = getelementptr inbounds i8, ptr %0, i64 312
  %83 = load i64, ptr %82, align 8, !tbaa !26
  %84 = add nsw i64 %83, 1
  store i64 %84, ptr %82, align 8, !tbaa !26
  %85 = getelementptr inbounds i8, ptr %0, i64 144
  %86 = load i64, ptr %85, align 8, !tbaa !27
  %87 = icmp slt i64 %86, 1
  %.not = icmp slt i64 %84, %86
  %or.cond = select i1 %87, i1 true, i1 %.not
  br i1 %or.cond, label %.thread257, label %88

88:                                               ; preds = %77
  call void @_ZN11alglib_impl11rmatrixcopyEllPKNS_9ae_matrixEllPS0_llPNS_8ae_stateE(i64 noundef %10, i64 noundef %10, ptr noundef nonnull %67, i64 noundef 0, i64 noundef 0, ptr noundef nonnull %64, i64 noundef 0, i64 noundef 0, ptr noundef %6)
  %89 = getelementptr inbounds i8, ptr %0, i64 320
  %90 = load double, ptr %89, align 8, !tbaa !24
  %91 = getelementptr inbounds i8, ptr %0, i64 336
  %92 = load double, ptr %91, align 8, !tbaa !23
  %93 = getelementptr inbounds i8, ptr %0, i64 168
  %94 = load double, ptr %93, align 8, !tbaa !28
  %95 = call double @llvm.fmuladd.f64(double %94, double %90, double %92)
  %96 = getelementptr inbounds i8, ptr %0, i64 176
  %97 = load double, ptr %96, align 8, !tbaa !29
  %98 = load double, ptr %78, align 8, !tbaa !25
  %99 = call double @llvm.fmuladd.f64(double %97, double %98, double %95)
  %100 = fdiv double %90, %99
  call void @_ZN11alglib_impl5rsetmElldPNS_9ae_matrixEPNS_8ae_stateE(i64 noundef %10, i64 noundef %10, double noundef 0.000000e+00, ptr noundef nonnull %67, ptr noundef %6)
  br i1 %.not.not258, label %.lr.ph273, label %._crit_edge274

.lr.ph273:                                        ; preds = %88
  %101 = getelementptr inbounds i8, ptr %0, i64 1528
  %xtraiter = and i64 %10, 3
  %102 = icmp ult i64 %10, 4
  br i1 %102, label %._crit_edge274.loopexit.unr-lcssa, label %.lr.ph273.new

.lr.ph273.new:                                    ; preds = %.lr.ph273
  %unroll_iter = and i64 %10, 9223372036854775804
  br label %103

103:                                              ; preds = %103, %.lr.ph273.new
  %storemerge255271 = phi i64 [ 0, %.lr.ph273.new ], [ %123, %103 ]
  %niter = phi i64 [ 0, %.lr.ph273.new ], [ %niter.next.3, %103 ]
  %104 = load ptr, ptr %101, align 8, !tbaa !16
  %105 = getelementptr inbounds ptr, ptr %104, i64 %storemerge255271
  %106 = load ptr, ptr %105, align 8, !tbaa !30
  %107 = getelementptr inbounds double, ptr %106, i64 %storemerge255271
  store double %100, ptr %107, align 8, !tbaa !17
  %108 = or disjoint i64 %storemerge255271, 1
  %109 = load ptr, ptr %101, align 8, !tbaa !16
  %110 = getelementptr inbounds ptr, ptr %109, i64 %108
  %111 = load ptr, ptr %110, align 8, !tbaa !30
  %112 = getelementptr inbounds double, ptr %111, i64 %108
  store double %100, ptr %112, align 8, !tbaa !17
  %113 = or disjoint i64 %storemerge255271, 2
  %114 = load ptr, ptr %101, align 8, !tbaa !16
  %115 = getelementptr inbounds ptr, ptr %114, i64 %113
  %116 = load ptr, ptr %115, align 8, !tbaa !30
  %117 = getelementptr inbounds double, ptr %116, i64 %113
  store double %100, ptr %117, align 8, !tbaa !17
  %118 = or disjoint i64 %storemerge255271, 3
  %119 = load ptr, ptr %101, align 8, !tbaa !16
  %120 = getelementptr inbounds ptr, ptr %119, i64 %118
  %121 = load ptr, ptr %120, align 8, !tbaa !30
  %122 = getelementptr inbounds double, ptr %121, i64 %118
  store double %100, ptr %122, align 8, !tbaa !17
  %123 = add nuw nsw i64 %storemerge255271, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %._crit_edge274.loopexit.unr-lcssa, label %103, !llvm.loop !31

._crit_edge274.loopexit.unr-lcssa:                ; preds = %103, %.lr.ph273
  %storemerge255271.unr = phi i64 [ 0, %.lr.ph273 ], [ %123, %103 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge274, label %.epil.preheader

.epil.preheader:                                  ; preds = %._crit_edge274.loopexit.unr-lcssa, %.epil.preheader
  %storemerge255271.epil = phi i64 [ %128, %.epil.preheader ], [ %storemerge255271.unr, %._crit_edge274.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %._crit_edge274.loopexit.unr-lcssa ]
  %124 = load ptr, ptr %101, align 8, !tbaa !16
  %125 = getelementptr inbounds ptr, ptr %124, i64 %storemerge255271.epil
  %126 = load ptr, ptr %125, align 8, !tbaa !30
  %127 = getelementptr inbounds double, ptr %126, i64 %storemerge255271.epil
  store double %100, ptr %127, align 8, !tbaa !17
  %128 = add nuw nsw i64 %storemerge255271.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %._crit_edge274, label %.epil.preheader, !llvm.loop !32

._crit_edge274:                                   ; preds = %._crit_edge274.loopexit.unr-lcssa, %.epil.preheader, %88
  %storemerge255.lcssa = phi i64 [ 0, %88 ], [ %10, %.epil.preheader ], [ %10, %._crit_edge274.loopexit.unr-lcssa ]
  store i64 %storemerge255.lcssa, ptr %8, align 8, !tbaa !20
  %129 = call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef 5.000000e-16, ptr noundef %6)
  store double %129, ptr %91, align 8, !tbaa !23
  %130 = getelementptr inbounds i8, ptr %0, i64 160
  %131 = load double, ptr %130, align 8, !tbaa !34
  %132 = fmul double %129, %131
  store double %132, ptr %89, align 8, !tbaa !24
  store double 0.000000e+00, ptr %78, align 8, !tbaa !25
  store i64 0, ptr %82, align 8, !tbaa !26
  store i64 3, ptr %58, align 8, !tbaa !21
  br label %.thread257

133:                                              ; preds = %._crit_edge
  br i1 %5, label %134, label %.thread

134:                                              ; preds = %133
  %135 = extractelement <2 x double> %56, i64 0
  %136 = fdiv double %135, %.0.lcssa
  %137 = extractelement <2 x double> %57, i64 0
  %138 = extractelement <2 x double> %57, i64 1
  tail call void (ptr, ...) @_ZN11alglib_impl8ae_traceEPKcz(ptr noundef nonnull @.str.264, double noundef %137, double noundef %138, double noundef %136)
  %139 = getelementptr inbounds i8, ptr %0, i64 208
  %140 = load i64, ptr %139, align 8, !tbaa !35
  %141 = icmp eq i64 %140, 0
  br i1 %141, label %145, label %146

.thread:                                          ; preds = %133
  %142 = getelementptr inbounds i8, ptr %0, i64 208
  %143 = load i64, ptr %142, align 8, !tbaa !35
  %144 = icmp eq i64 %143, 0
  br i1 %144, label %.thread257, label %146

145:                                              ; preds = %134
  tail call void (ptr, ...) @_ZN11alglib_impl8ae_traceEPKcz(ptr noundef nonnull @.str.265)
  br label %.thread257

146:                                              ; preds = %.thread, %134
  %147 = phi ptr [ %142, %.thread ], [ %139, %134 ]
  %148 = getelementptr inbounds i8, ptr %0, i64 1536
  %149 = tail call noundef double @_ZN11alglib_impl8rmaxabsvElPKNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %10, ptr noundef nonnull %148, ptr noundef %6)
  %150 = getelementptr inbounds i8, ptr %0, i64 152
  %151 = load double, ptr %150, align 8, !tbaa !36
  %152 = tail call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_less_eqEdd(double noundef %149, double noundef %151)
  br i1 %152, label %153, label %155

153:                                              ; preds = %146
  br i1 %5, label %154, label %.thread257

154:                                              ; preds = %153
  tail call void (ptr, ...) @_ZN11alglib_impl8ae_traceEPKcz(ptr noundef nonnull @.str.266)
  br label %.thread257

155:                                              ; preds = %146
  %156 = getelementptr inbounds i8, ptr %0, i64 1600
  %157 = tail call noundef double @_ZN11alglib_impl6rdotv2ElPKNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %10, ptr noundef nonnull %156, ptr noundef %6)
  %158 = tail call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %157, double noundef 0.000000e+00)
  br i1 %158, label %159, label %166

159:                                              ; preds = %155
  tail call void @_ZN11alglib_implL18optserv_popfrontxyEPNS_12xbfgshessianEPNS_8ae_stateE(ptr noundef nonnull %0, ptr noundef %6)
  %160 = getelementptr inbounds i8, ptr %0, i64 352
  %161 = load double, ptr %160, align 8, !tbaa !37
  %162 = fmul double %161, 1.000000e-01
  %163 = tail call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %162, double noundef 1.000000e-04, ptr noundef %6)
  store double %163, ptr %160, align 8, !tbaa !37
  tail call void @_ZN11alglib_implL25optserv_resetlowrankmodelEPNS_12xbfgshessianEPNS_8ae_stateE(ptr noundef nonnull %0, ptr noundef %6)
  br i1 %5, label %164, label %.thread257

164:                                              ; preds = %159
  %165 = load double, ptr %160, align 8, !tbaa !37
  tail call void (ptr, ...) @_ZN11alglib_impl8ae_traceEPKcz(ptr noundef nonnull @.str.267, double noundef %165)
  br label %.thread257

166:                                              ; preds = %155
  %167 = getelementptr inbounds i8, ptr %0, i64 192
  %168 = load double, ptr %167, align 8, !tbaa !38
  %169 = extractelement <2 x double> %56, i64 1
  %170 = tail call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef %169, ptr noundef %6)
  %171 = tail call noundef double @_ZN11alglib_impl10ae_minrealEddPNS_8ae_stateE(double noundef %170, double noundef 1.000000e+00, ptr noundef %6)
  %172 = fneg double %168
  %173 = tail call double @llvm.fmuladd.f64(double %172, double %171, double 1.000000e+00)
  %174 = extractelement <2 x double> %57, i64 0
  %175 = tail call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %174, double noundef 0.000000e+00)
  br i1 %175, label %176, label %180

176:                                              ; preds = %166
  %177 = fmul double %174, %173
  %178 = extractelement <2 x double> %57, i64 1
  %179 = tail call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %178, double noundef %177)
  br i1 %179, label %193, label %180

180:                                              ; preds = %176, %166
  %181 = extractelement <2 x double> %57, i64 1
  %182 = tail call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %181, double noundef 0.000000e+00)
  br i1 %182, label %183, label %186

183:                                              ; preds = %180
  %184 = fmul double %181, %173
  %185 = tail call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %174, double noundef %184)
  br i1 %185, label %193, label %186

186:                                              ; preds = %183, %180
  tail call void @_ZN11alglib_implL18optserv_popfrontxyEPNS_12xbfgshessianEPNS_8ae_stateE(ptr noundef nonnull %0, ptr noundef %6)
  %187 = getelementptr inbounds i8, ptr %0, i64 352
  %188 = load double, ptr %187, align 8, !tbaa !37
  %189 = fmul double %188, 1.000000e-01
  %190 = tail call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %189, double noundef 1.000000e-04, ptr noundef %6)
  store double %190, ptr %187, align 8, !tbaa !37
  tail call void @_ZN11alglib_implL25optserv_resetlowrankmodelEPNS_12xbfgshessianEPNS_8ae_stateE(ptr noundef nonnull %0, ptr noundef %6)
  br i1 %5, label %191, label %.thread257

191:                                              ; preds = %186
  %192 = load double, ptr %187, align 8, !tbaa !37
  tail call void (ptr, ...) @_ZN11alglib_impl8ae_traceEPKcz(ptr noundef nonnull @.str.268, double noundef %192)
  br label %.thread257

193:                                              ; preds = %183, %176
  %194 = tail call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %.0.lcssa, double noundef 0.000000e+00)
  br i1 %194, label %195, label %208

195:                                              ; preds = %193
  %196 = extractelement <2 x double> %56, i64 0
  %197 = fdiv double %196, %.0.lcssa
  %198 = getelementptr inbounds i8, ptr %0, i64 200
  %199 = load double, ptr %198, align 8, !tbaa !39
  %200 = tail call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %197, double noundef %199)
  br i1 %200, label %201, label %208

201:                                              ; preds = %195
  tail call void @_ZN11alglib_implL18optserv_popfrontxyEPNS_12xbfgshessianEPNS_8ae_stateE(ptr noundef nonnull %0, ptr noundef %6)
  %202 = getelementptr inbounds i8, ptr %0, i64 352
  %203 = load double, ptr %202, align 8, !tbaa !37
  %204 = fmul double %203, 1.000000e-01
  %205 = tail call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %204, double noundef 1.000000e-04, ptr noundef %6)
  store double %205, ptr %202, align 8, !tbaa !37
  tail call void @_ZN11alglib_implL25optserv_resetlowrankmodelEPNS_12xbfgshessianEPNS_8ae_stateE(ptr noundef nonnull %0, ptr noundef %6)
  br i1 %5, label %206, label %.thread257

206:                                              ; preds = %201
  %207 = load double, ptr %202, align 8, !tbaa !37
  tail call void (ptr, ...) @_ZN11alglib_impl8ae_traceEPKcz(ptr noundef nonnull @.str.269, double noundef %197, double noundef %207)
  br label %.thread257

208:                                              ; preds = %195, %193
  %209 = getelementptr inbounds i8, ptr %0, i64 336
  %210 = load double, ptr %209, align 8, !tbaa !23
  %211 = fadd double %.0.lcssa, %210
  store double %211, ptr %209, align 8, !tbaa !23
  %212 = getelementptr inbounds i8, ptr %0, i64 320
  %213 = load <2 x double>, ptr %212, align 8, !tbaa !17
  %214 = fadd <2 x double> %56, %213
  store <2 x double> %214, ptr %212, align 8, !tbaa !17
  %215 = getelementptr inbounds i8, ptr %0, i64 168
  %216 = load double, ptr %215, align 8, !tbaa !28
  tail call void @_ZN11alglib_impl5raddvEldPKNS_9ae_vectorEPS0_PNS_8ae_stateE(i64 noundef %10, double noundef %216, ptr noundef nonnull %148, ptr noundef nonnull %156, ptr noundef %6)
  %217 = load double, ptr %215, align 8, !tbaa !28
  tail call void @_ZN11alglib_impl5raddvEldPKNS_9ae_vectorEPS0_PNS_8ae_stateE(i64 noundef %10, double noundef %217, ptr noundef nonnull %156, ptr noundef nonnull %148, ptr noundef %6)
  %218 = getelementptr inbounds i8, ptr %0, i64 344
  %219 = load i64, ptr %218, align 8, !tbaa !40
  %220 = load i64, ptr %147, align 8, !tbaa !35
  %221 = icmp sle i64 %219, %220
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %221, ptr noundef nonnull @.str.270, ptr noundef %6)
  %222 = load i64, ptr %218, align 8, !tbaa !40
  %223 = load i64, ptr %147, align 8, !tbaa !35
  %224 = icmp eq i64 %222, %223
  br i1 %224, label %225, label %226

225:                                              ; preds = %208
  tail call void @_ZN11alglib_implL18optserv_popfrontxyEPNS_12xbfgshessianEPNS_8ae_stateE(ptr noundef nonnull %0, ptr noundef %6)
  %.pre284 = load i64, ptr %218, align 8, !tbaa !40
  %.pre285 = load i64, ptr %147, align 8, !tbaa !35
  br label %226

226:                                              ; preds = %225, %208
  %227 = phi i64 [ %.pre285, %225 ], [ %223, %208 ]
  %228 = phi i64 [ %.pre284, %225 ], [ %222, %208 ]
  %229 = icmp slt i64 %228, %227
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %229, ptr noundef nonnull @.str.271, ptr noundef %6)
  %230 = load i64, ptr %218, align 8, !tbaa !40
  %231 = add nsw i64 %230, 1
  store i64 %231, ptr %218, align 8, !tbaa !40
  %232 = getelementptr inbounds i8, ptr %0, i64 360
  tail call void @_ZN11alglib_impl7rcopyvrElPKNS_9ae_vectorEPNS_9ae_matrixElPNS_8ae_stateE(i64 noundef %10, ptr noundef nonnull %148, ptr noundef nonnull %232, i64 noundef %230, ptr noundef %6)
  %233 = getelementptr inbounds i8, ptr %0, i64 440
  %234 = load i64, ptr %218, align 8, !tbaa !40
  %235 = add nsw i64 %234, -1
  tail call void @_ZN11alglib_impl7rcopyvrElPKNS_9ae_vectorEPNS_9ae_matrixElPNS_8ae_stateE(i64 noundef %10, ptr noundef nonnull %156, ptr noundef nonnull %233, i64 noundef %235, ptr noundef %6)
  %236 = load i64, ptr %218, align 8, !tbaa !40
  %237 = getelementptr inbounds i8, ptr %0, i64 1792
  tail call void @_ZN11alglib_impl7rallocvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %236, ptr noundef nonnull %237, ptr noundef %6)
  %238 = load i64, ptr %218, align 8, !tbaa !40
  tail call void @_ZN11alglib_impl5rgemvElldPKNS_9ae_matrixElPKNS_9ae_vectorEdPS3_PNS_8ae_stateE(i64 noundef %238, i64 noundef %10, double noundef 1.000000e+00, ptr noundef nonnull %232, i64 noundef 0, ptr noundef nonnull %148, double noundef 0.000000e+00, ptr noundef nonnull %237, ptr noundef %6)
  %239 = load i64, ptr %218, align 8, !tbaa !40
  %240 = getelementptr inbounds i8, ptr %0, i64 520
  %241 = add nsw i64 %239, -1
  tail call void @_ZN11alglib_impl7rcopyvrElPKNS_9ae_vectorEPNS_9ae_matrixElPNS_8ae_stateE(i64 noundef %239, ptr noundef nonnull %237, ptr noundef nonnull %240, i64 noundef %241, ptr noundef %6)
  %242 = load i64, ptr %218, align 8, !tbaa !40
  %243 = add nsw i64 %242, -1
  tail call void @_ZN11alglib_impl7rcopyvcElPKNS_9ae_vectorEPNS_9ae_matrixElPNS_8ae_stateE(i64 noundef %242, ptr noundef nonnull %237, ptr noundef nonnull %240, i64 noundef %243, ptr noundef %6)
  %244 = load i64, ptr %218, align 8, !tbaa !40
  tail call void @_ZN11alglib_impl5rgemvElldPKNS_9ae_matrixElPKNS_9ae_vectorEdPS3_PNS_8ae_stateE(i64 noundef %244, i64 noundef %10, double noundef 1.000000e+00, ptr noundef nonnull %233, i64 noundef 0, ptr noundef nonnull %148, double noundef 0.000000e+00, ptr noundef nonnull %237, ptr noundef %6)
  %245 = load i64, ptr %218, align 8, !tbaa !40
  %246 = getelementptr inbounds i8, ptr %0, i64 600
  %247 = add nsw i64 %245, -1
  tail call void @_ZN11alglib_impl7rcopyvrElPKNS_9ae_vectorEPNS_9ae_matrixElPNS_8ae_stateE(i64 noundef %245, ptr noundef nonnull %237, ptr noundef nonnull %246, i64 noundef %247, ptr noundef %6)
  %248 = load i64, ptr %218, align 8, !tbaa !40
  tail call void @_ZN11alglib_impl5rgemvElldPKNS_9ae_matrixElPKNS_9ae_vectorEdPS3_PNS_8ae_stateE(i64 noundef %248, i64 noundef %10, double noundef 1.000000e+00, ptr noundef nonnull %232, i64 noundef 0, ptr noundef nonnull %156, double noundef 0.000000e+00, ptr noundef nonnull %237, ptr noundef %6)
  %249 = load i64, ptr %218, align 8, !tbaa !40
  %250 = add nsw i64 %249, -1
  tail call void @_ZN11alglib_impl7rcopyvcElPKNS_9ae_vectorEPNS_9ae_matrixElPNS_8ae_stateE(i64 noundef %249, ptr noundef nonnull %237, ptr noundef nonnull %246, i64 noundef %250, ptr noundef %6)
  %251 = tail call noundef double @_ZN11alglib_impl6rdotv2ElPKNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %10, ptr noundef nonnull %156, ptr noundef %6)
  %252 = tail call noundef double @_ZN11alglib_impl5rdotvElPKNS_9ae_vectorES2_PNS_8ae_stateE(i64 noundef %10, ptr noundef nonnull %148, ptr noundef nonnull %156, ptr noundef %6)
  %253 = fdiv double %251, %252
  %254 = getelementptr inbounds i8, ptr %0, i64 352
  %255 = load double, ptr %254, align 8, !tbaa !37
  %256 = fmul double %255, 1.000000e-01
  %257 = fmul double %255, 1.000000e+01
  %258 = tail call noundef double @_ZN11alglib_impl8boundvalEdddPNS_8ae_stateE(double noundef %253, double noundef %256, double noundef %257, ptr noundef %6)
  store double %258, ptr %254, align 8, !tbaa !37
  %259 = load double, ptr %215, align 8, !tbaa !28
  %260 = fadd double %259, 5.000000e-16
  %261 = fdiv double 1.000000e+00, %260
  %262 = tail call noundef double @_ZN11alglib_impl10ae_minrealEddPNS_8ae_stateE(double noundef %258, double noundef %261, ptr noundef %6)
  store double %262, ptr %254, align 8, !tbaa !37
  br i1 %5, label %263, label %264

263:                                              ; preds = %226
  tail call void (ptr, ...) @_ZN11alglib_impl8ae_traceEPKcz(ptr noundef nonnull @.str.272, double noundef %262)
  br label %264

264:                                              ; preds = %263, %226
  tail call void @_ZN11alglib_implL25optserv_resetlowrankmodelEPNS_12xbfgshessianEPNS_8ae_stateE(ptr noundef nonnull %0, ptr noundef %6)
  br label %.thread257

.thread257:                                       ; preds = %.thread, %264, %._crit_edge, %201, %206, %186, %191, %159, %164, %153, %154, %145, %77, %._crit_edge274
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #5
  ret void
}

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN11alglib_implL29optserv_hessianupdatelowlevelEPNS_12xbfgshessianEPNS_9ae_matrixEPKNS_9ae_vectorES6_PlPNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

declare void @_ZN11alglib_impl11rmatrixcopyEllPKNS_9ae_matrixEllPS0_llPNS_8ae_stateE(i64 noundef, i64 noundef, ptr noundef, i64 noundef, i64 noundef, ptr noundef, i64 noundef, i64 noundef, ptr noundef) local_unnamed_addr #1

declare void @_ZN11alglib_impl5rsetmElldPNS_9ae_matrixEPNS_8ae_stateE(i64 noundef, i64 noundef, double noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

declare noundef double @_ZN11alglib_impl6rdotv2ElPKNS_9ae_vectorEPNS_8ae_stateE(i64 noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN11alglib_implL18optserv_popfrontxyEPNS_12xbfgshessianEPNS_8ae_stateE(ptr noundef, ptr noundef) local_unnamed_addr #3

declare void @_ZN11alglib_impl5raddvEldPKNS_9ae_vectorEPS0_PNS_8ae_stateE(i64 noundef, double noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

declare void @_ZN11alglib_impl7rcopyvrElPKNS_9ae_vectorEPNS_9ae_matrixElPNS_8ae_stateE(i64 noundef, ptr noundef, ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #1

declare void @_ZN11alglib_impl5rgemvElldPKNS_9ae_matrixElPKNS_9ae_vectorEdPS3_PNS_8ae_stateE(i64 noundef, i64 noundef, double noundef, ptr noundef, i64 noundef, ptr noundef, double noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

declare void @_ZN11alglib_impl7rcopyvcElPKNS_9ae_vectorEPNS_9ae_matrixElPNS_8ae_stateE(i64 noundef, ptr noundef, ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #1

declare noundef double @_ZN11alglib_impl5rdotvElPKNS_9ae_vectorES2_PNS_8ae_stateE(i64 noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

declare noundef double @_ZN11alglib_impl8boundvalEdddPNS_8ae_stateE(double noundef, double noundef, double noundef, ptr noundef) local_unnamed_addr #1

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { 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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { 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, !7, i64 136}
!6 = !{!"_ZTSN11alglib_impl12xbfgshessianE", !7, i64 0, !10, i64 8, !10, i64 72, !7, i64 136, !7, i64 144, !14, i64 152, !14, i64 160, !14, i64 168, !14, i64 176, !14, i64 184, !14, i64 192, !14, i64 200, !7, i64 208, !14, i64 216, !14, i64 224, !15, i64 232, !7, i64 312, !14, i64 320, !14, i64 328, !14, i64 336, !7, i64 344, !14, i64 352, !15, i64 360, !15, i64 440, !15, i64 520, !15, i64 600, !11, i64 680, !7, i64 688, !15, i64 696, !15, i64 776, !11, i64 856, !10, i64 864, !11, i64 928, !7, i64 936, !15, i64 944, !10, i64 1024, !10, i64 1088, !15, i64 1152, !10, i64 1232, !10, i64 1296, !11, i64 1360, !10, i64 1368, !14, i64 1432, !14, i64 1440, !7, i64 1448, !15, i64 1456, !10, i64 1536, !10, i64 1600, !10, i64 1664, !10, i64 1728, !10, i64 1792, !10, i64 1856, !15, i64 1920, !15, i64 2000, !15, i64 2080, !15, i64 2160, !15, i64 2240, !15, i64 2320, !15, i64 2400, !15, i64 2480, !10, i64 2560, !10, i64 2624, !15, i64 2688, !10, i64 2768, !15, i64 2832, !15, i64 2912, !15, i64 2992, !15, i64 3072, !15, i64 3152, !10, i64 3232, !10, i64 3296}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTSN11alglib_impl9ae_vectorE", !7, i64 0, !7, i64 8, !11, i64 16, !12, i64 24, !8, i64 56}
!11 = !{!"bool", !8, i64 0}
!12 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !13, i64 0, !13, i64 8, !13, i64 16, !13, i64 24}
!13 = !{!"any pointer", !8, i64 0}
!14 = !{!"double", !8, i64 0}
!15 = !{!"_ZTSN11alglib_impl9ae_matrixE", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !11, i64 32, !12, i64 40, !8, i64 72}
!16 = !{!8, !8, i64 0}
!17 = !{!14, !14, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = !{!7, !7, i64 0}
!21 = !{!6, !7, i64 1448}
!22 = !{!6, !7, i64 0}
!23 = !{!6, !14, i64 336}
!24 = !{!6, !14, i64 320}
!25 = !{!6, !14, i64 328}
!26 = !{!6, !7, i64 312}
!27 = !{!6, !7, i64 144}
!28 = !{!6, !14, i64 168}
!29 = !{!6, !14, i64 176}
!30 = !{!13, !13, i64 0}
!31 = distinct !{!31, !19}
!32 = distinct !{!32, !33}
!33 = !{!"llvm.loop.unroll.disable"}
!34 = !{!6, !14, i64 160}
!35 = !{!6, !7, i64 208}
!36 = !{!6, !14, i64 152}
!37 = !{!6, !14, i64 352}
!38 = !{!6, !14, i64 192}
!39 = !{!6, !14, i64 200}
!40 = !{!6, !7, i64 344}


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