; 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.304 = external hidden unnamed_addr constant [42 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 void @_ZN11alglib_impl7rallocvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef, ptr noundef, ptr noundef) #1

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

declare noundef double @_ZN11alglib_impl6rdotv2ElPKNS_9ae_vectorEPNS_8ae_stateE(i64 noundef, ptr 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 noundef double @_ZN11alglib_impl5rdotvElPKNS_9ae_vectorES2_PNS_8ae_stateE(i64 noundef, ptr noundef, ptr noundef, ptr noundef) #1

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl10hessianxmvEPNS_12xbfgshessianEPKNS_9ae_vectorEPS2_PdPNS_8ae_stateE(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) #3 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca i32, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  store ptr %3, ptr %9, align 8, !tbaa !5
  store ptr %4, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  %14 = load ptr, ptr %9, align 8, !tbaa !5
  store double 0.000000e+00, ptr %14, align 8, !tbaa !9
  %15 = load ptr, ptr %6, align 8, !tbaa !5
  %16 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %15, i32 0, i32 0
  %17 = load i64, ptr %16, align 8, !tbaa !11
  %18 = icmp eq i64 %17, 0
  br i1 %18, label %29, label %19

19:                                               ; preds = %5
  %20 = load ptr, ptr %6, align 8, !tbaa !5
  %21 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %20, i32 0, i32 0
  %22 = load i64, ptr %21, align 8, !tbaa !11
  %23 = icmp eq i64 %22, 3
  br i1 %23, label %29, label %24

24:                                               ; preds = %19
  %25 = load ptr, ptr %6, align 8, !tbaa !5
  %26 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %25, i32 0, i32 0
  %27 = load i64, ptr %26, align 8, !tbaa !11
  %28 = icmp eq i64 %27, 4
  br label %29

29:                                               ; preds = %24, %19, %5
  %30 = phi i1 [ true, %19 ], [ true, %5 ], [ %28, %24 ]
  %31 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %30, ptr noundef @.str.304, ptr noundef %31)
  %32 = load ptr, ptr %6, align 8, !tbaa !5
  %33 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %32, i32 0, i32 3
  %34 = load i64, ptr %33, align 8, !tbaa !18
  store i64 %34, ptr %11, align 8, !tbaa !19
  %35 = load i64, ptr %11, align 8, !tbaa !19
  %36 = load ptr, ptr %8, align 8, !tbaa !5
  %37 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl7rallocvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %35, ptr noundef %36, ptr noundef %37)
  %38 = load ptr, ptr %9, align 8, !tbaa !5
  store double 0.000000e+00, ptr %38, align 8, !tbaa !9
  %39 = load ptr, ptr %6, align 8, !tbaa !5
  %40 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %39, i32 0, i32 0
  %41 = load i64, ptr %40, align 8, !tbaa !11
  %42 = icmp eq i64 %41, 0
  br i1 %42, label %43, label %57

43:                                               ; preds = %29
  %44 = load i64, ptr %11, align 8, !tbaa !19
  %45 = load i64, ptr %11, align 8, !tbaa !19
  %46 = load ptr, ptr %6, align 8, !tbaa !5
  %47 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %46, i32 0, i32 15
  %48 = load ptr, ptr %7, align 8, !tbaa !5
  %49 = load ptr, ptr %8, align 8, !tbaa !5
  %50 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl5rgemvElldPKNS_9ae_matrixElPKNS_9ae_vectorEdPS3_PNS_8ae_stateE(i64 noundef %44, i64 noundef %45, double noundef 1.000000e+00, ptr noundef %47, i64 noundef 0, ptr noundef %48, double noundef 0.000000e+00, ptr noundef %49, ptr noundef %50)
  %51 = load i64, ptr %11, align 8, !tbaa !19
  %52 = load ptr, ptr %7, align 8, !tbaa !5
  %53 = load ptr, ptr %8, align 8, !tbaa !5
  %54 = load ptr, ptr %10, align 8, !tbaa !5
  %55 = call noundef double @_ZN11alglib_impl5rdotvElPKNS_9ae_vectorES2_PNS_8ae_stateE(i64 noundef %51, ptr noundef %52, ptr noundef %53, ptr noundef %54)
  %56 = load ptr, ptr %9, align 8, !tbaa !5
  store double %55, ptr %56, align 8, !tbaa !9
  store i32 1, ptr %13, align 4
  br label %270

57:                                               ; preds = %29
  %58 = load ptr, ptr %6, align 8, !tbaa !5
  %59 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %58, i32 0, i32 0
  %60 = load i64, ptr %59, align 8, !tbaa !11
  %61 = icmp eq i64 %60, 3
  br i1 %61, label %62, label %155

62:                                               ; preds = %57
  %63 = load ptr, ptr %6, align 8, !tbaa !5
  %64 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_implL29optserv_recomputelowrankmodelEPNS_12xbfgshessianEPNS_8ae_stateE(ptr noundef %63, ptr noundef %64)
  %65 = load i64, ptr %11, align 8, !tbaa !19
  %66 = load ptr, ptr %6, align 8, !tbaa !5
  %67 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %66, i32 0, i32 21
  %68 = load double, ptr %67, align 8, !tbaa !20
  %69 = load ptr, ptr %7, align 8, !tbaa !5
  %70 = load ptr, ptr %8, align 8, !tbaa !5
  %71 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl9rcopymulvEldPKNS_9ae_vectorEPS0_PNS_8ae_stateE(i64 noundef %65, double noundef %68, ptr noundef %69, ptr noundef %70, ptr noundef %71)
  %72 = load ptr, ptr %6, align 8, !tbaa !5
  %73 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %72, i32 0, i32 21
  %74 = load double, ptr %73, align 8, !tbaa !20
  %75 = load i64, ptr %11, align 8, !tbaa !19
  %76 = load ptr, ptr %7, align 8, !tbaa !5
  %77 = load ptr, ptr %10, align 8, !tbaa !5
  %78 = call noundef double @_ZN11alglib_impl6rdotv2ElPKNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %75, ptr noundef %76, ptr noundef %77)
  %79 = fmul double %74, %78
  %80 = load ptr, ptr %9, align 8, !tbaa !5
  store double %79, ptr %80, align 8, !tbaa !9
  %81 = load ptr, ptr %6, align 8, !tbaa !5
  %82 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %81, i32 0, i32 27
  %83 = load i64, ptr %82, align 8, !tbaa !21
  %84 = icmp sgt i64 %83, 0
  br i1 %84, label %85, label %154

85:                                               ; preds = %62
  %86 = load ptr, ptr %6, align 8, !tbaa !5
  %87 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %86, i32 0, i32 27
  %88 = load i64, ptr %87, align 8, !tbaa !21
  %89 = load ptr, ptr %6, align 8, !tbaa !5
  %90 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %89, i32 0, i32 50
  %91 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl7rallocvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %88, ptr noundef %90, ptr noundef %91)
  %92 = load ptr, ptr %6, align 8, !tbaa !5
  %93 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %92, i32 0, i32 27
  %94 = load i64, ptr %93, align 8, !tbaa !21
  %95 = load i64, ptr %11, align 8, !tbaa !19
  %96 = load ptr, ptr %6, align 8, !tbaa !5
  %97 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %96, i32 0, i32 28
  %98 = load ptr, ptr %7, align 8, !tbaa !5
  %99 = load ptr, ptr %6, align 8, !tbaa !5
  %100 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %99, i32 0, i32 50
  %101 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl5rgemvElldPKNS_9ae_matrixElPKNS_9ae_vectorEdPS3_PNS_8ae_stateE(i64 noundef %94, i64 noundef %95, double noundef 1.000000e+00, ptr noundef %97, i64 noundef 0, ptr noundef %98, double noundef 0.000000e+00, ptr noundef %100, ptr noundef %101)
  %102 = load i64, ptr %11, align 8, !tbaa !19
  %103 = load ptr, ptr %6, align 8, !tbaa !5
  %104 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %103, i32 0, i32 27
  %105 = load i64, ptr %104, align 8, !tbaa !21
  %106 = load ptr, ptr %6, align 8, !tbaa !5
  %107 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %106, i32 0, i32 28
  %108 = load ptr, ptr %6, align 8, !tbaa !5
  %109 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %108, i32 0, i32 50
  %110 = load ptr, ptr %8, align 8, !tbaa !5
  %111 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl5rgemvElldPKNS_9ae_matrixElPKNS_9ae_vectorEdPS3_PNS_8ae_stateE(i64 noundef %102, i64 noundef %105, double noundef 1.000000e+00, ptr noundef %107, i64 noundef 1, ptr noundef %109, double noundef 1.000000e+00, ptr noundef %110, ptr noundef %111)
  %112 = load ptr, ptr %9, align 8, !tbaa !5
  %113 = load double, ptr %112, align 8, !tbaa !9
  %114 = load ptr, ptr %6, align 8, !tbaa !5
  %115 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %114, i32 0, i32 27
  %116 = load i64, ptr %115, align 8, !tbaa !21
  %117 = load ptr, ptr %6, align 8, !tbaa !5
  %118 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %117, i32 0, i32 50
  %119 = load ptr, ptr %10, align 8, !tbaa !5
  %120 = call noundef double @_ZN11alglib_impl6rdotv2ElPKNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %116, ptr noundef %118, ptr noundef %119)
  %121 = fadd double %113, %120
  %122 = load ptr, ptr %9, align 8, !tbaa !5
  store double %121, ptr %122, align 8, !tbaa !9
  %123 = load ptr, ptr %6, align 8, !tbaa !5
  %124 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %123, i32 0, i32 27
  %125 = load i64, ptr %124, align 8, !tbaa !21
  %126 = load i64, ptr %11, align 8, !tbaa !19
  %127 = load ptr, ptr %6, align 8, !tbaa !5
  %128 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %127, i32 0, i32 29
  %129 = load ptr, ptr %7, align 8, !tbaa !5
  %130 = load ptr, ptr %6, align 8, !tbaa !5
  %131 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %130, i32 0, i32 50
  %132 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl5rgemvElldPKNS_9ae_matrixElPKNS_9ae_vectorEdPS3_PNS_8ae_stateE(i64 noundef %125, i64 noundef %126, double noundef 1.000000e+00, ptr noundef %128, i64 noundef 0, ptr noundef %129, double noundef 0.000000e+00, ptr noundef %131, ptr noundef %132)
  %133 = load i64, ptr %11, align 8, !tbaa !19
  %134 = load ptr, ptr %6, align 8, !tbaa !5
  %135 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %134, i32 0, i32 27
  %136 = load i64, ptr %135, align 8, !tbaa !21
  %137 = load ptr, ptr %6, align 8, !tbaa !5
  %138 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %137, i32 0, i32 29
  %139 = load ptr, ptr %6, align 8, !tbaa !5
  %140 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %139, i32 0, i32 50
  %141 = load ptr, ptr %8, align 8, !tbaa !5
  %142 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl5rgemvElldPKNS_9ae_matrixElPKNS_9ae_vectorEdPS3_PNS_8ae_stateE(i64 noundef %133, i64 noundef %136, double noundef -1.000000e+00, ptr noundef %138, i64 noundef 1, ptr noundef %140, double noundef 1.000000e+00, ptr noundef %141, ptr noundef %142)
  %143 = load ptr, ptr %9, align 8, !tbaa !5
  %144 = load double, ptr %143, align 8, !tbaa !9
  %145 = load ptr, ptr %6, align 8, !tbaa !5
  %146 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %145, i32 0, i32 27
  %147 = load i64, ptr %146, align 8, !tbaa !21
  %148 = load ptr, ptr %6, align 8, !tbaa !5
  %149 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %148, i32 0, i32 50
  %150 = load ptr, ptr %10, align 8, !tbaa !5
  %151 = call noundef double @_ZN11alglib_impl6rdotv2ElPKNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %147, ptr noundef %149, ptr noundef %150)
  %152 = fsub double %144, %151
  %153 = load ptr, ptr %9, align 8, !tbaa !5
  store double %152, ptr %153, align 8, !tbaa !9
  br label %154

154:                                              ; preds = %85, %62
  store i32 1, ptr %13, align 4
  br label %270

155:                                              ; preds = %57
  %156 = load ptr, ptr %6, align 8, !tbaa !5
  %157 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %156, i32 0, i32 0
  %158 = load i64, ptr %157, align 8, !tbaa !11
  %159 = icmp eq i64 %158, 4
  br i1 %159, label %160, label %269

160:                                              ; preds = %155
  %161 = load ptr, ptr %6, align 8, !tbaa !5
  %162 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_implL29optserv_recomputelowrankmodelEPNS_12xbfgshessianEPNS_8ae_stateE(ptr noundef %161, ptr noundef %162)
  %163 = load i64, ptr %11, align 8, !tbaa !19
  %164 = load ptr, ptr %7, align 8, !tbaa !5
  %165 = load ptr, ptr %8, align 8, !tbaa !5
  %166 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl6rcopyvElPKNS_9ae_vectorEPS0_PNS_8ae_stateE(i64 noundef %163, ptr noundef %164, ptr noundef %165, ptr noundef %166)
  %167 = load i64, ptr %11, align 8, !tbaa !19
  %168 = load ptr, ptr %6, align 8, !tbaa !5
  %169 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %168, i32 0, i32 35
  %170 = load ptr, ptr %8, align 8, !tbaa !5
  %171 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl10rmergemulvElPKNS_9ae_vectorEPS0_PNS_8ae_stateE(i64 noundef %167, ptr noundef %169, ptr noundef %170, ptr noundef %171)
  %172 = load i64, ptr %11, align 8, !tbaa !19
  %173 = load ptr, ptr %7, align 8, !tbaa !5
  %174 = load ptr, ptr %8, align 8, !tbaa !5
  %175 = load ptr, ptr %10, align 8, !tbaa !5
  %176 = call noundef double @_ZN11alglib_impl5rdotvElPKNS_9ae_vectorES2_PNS_8ae_stateE(i64 noundef %172, ptr noundef %173, ptr noundef %174, ptr noundef %175)
  %177 = load ptr, ptr %9, align 8, !tbaa !5
  store double %176, ptr %177, align 8, !tbaa !9
  %178 = load ptr, ptr %6, align 8, !tbaa !5
  %179 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %178, i32 0, i32 33
  %180 = load i64, ptr %179, align 8, !tbaa !22
  %181 = icmp sgt i64 %180, 0
  br i1 %181, label %182, label %268

182:                                              ; preds = %160
  %183 = load ptr, ptr %6, align 8, !tbaa !5
  %184 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %183, i32 0, i32 33
  %185 = load i64, ptr %184, align 8, !tbaa !22
  %186 = load ptr, ptr %6, align 8, !tbaa !5
  %187 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %186, i32 0, i32 50
  %188 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl7rallocvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %185, ptr noundef %187, ptr noundef %188)
  %189 = load ptr, ptr %6, align 8, !tbaa !5
  %190 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %189, i32 0, i32 33
  %191 = load i64, ptr %190, align 8, !tbaa !22
  %192 = load i64, ptr %11, align 8, !tbaa !19
  %193 = load ptr, ptr %6, align 8, !tbaa !5
  %194 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %193, i32 0, i32 34
  %195 = load ptr, ptr %7, align 8, !tbaa !5
  %196 = load ptr, ptr %6, align 8, !tbaa !5
  %197 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %196, i32 0, i32 50
  %198 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl5rgemvElldPKNS_9ae_matrixElPKNS_9ae_vectorEdPS3_PNS_8ae_stateE(i64 noundef %191, i64 noundef %192, double noundef 1.000000e+00, ptr noundef %194, i64 noundef 0, ptr noundef %195, double noundef 0.000000e+00, ptr noundef %197, ptr noundef %198)
  store i64 0, ptr %12, align 8, !tbaa !19
  br label %199

199:                                              ; preds = %254, %182
  %200 = load i64, ptr %12, align 8, !tbaa !19
  %201 = load ptr, ptr %6, align 8, !tbaa !5
  %202 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %201, i32 0, i32 33
  %203 = load i64, ptr %202, align 8, !tbaa !22
  %204 = sub nsw i64 %203, 1
  %205 = icmp sle i64 %200, %204
  br i1 %205, label %206, label %257

206:                                              ; preds = %199
  %207 = load ptr, ptr %9, align 8, !tbaa !5
  %208 = load double, ptr %207, align 8, !tbaa !9
  %209 = load ptr, ptr %6, align 8, !tbaa !5
  %210 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %209, i32 0, i32 36
  %211 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %210, i32 0, i32 4
  %212 = load ptr, ptr %211, align 8, !tbaa !23
  %213 = load i64, ptr %12, align 8, !tbaa !19
  %214 = getelementptr inbounds double, ptr %212, i64 %213
  %215 = load double, ptr %214, align 8, !tbaa !9
  %216 = load ptr, ptr %6, align 8, !tbaa !5
  %217 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %216, i32 0, i32 50
  %218 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %217, i32 0, i32 4
  %219 = load ptr, ptr %218, align 8, !tbaa !23
  %220 = load i64, ptr %12, align 8, !tbaa !19
  %221 = getelementptr inbounds double, ptr %219, i64 %220
  %222 = load double, ptr %221, align 8, !tbaa !9
  %223 = load ptr, ptr %6, align 8, !tbaa !5
  %224 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %223, i32 0, i32 50
  %225 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %224, i32 0, i32 4
  %226 = load ptr, ptr %225, align 8, !tbaa !23
  %227 = load i64, ptr %12, align 8, !tbaa !19
  %228 = getelementptr inbounds double, ptr %226, i64 %227
  %229 = load double, ptr %228, align 8, !tbaa !9
  %230 = fmul double %222, %229
  %231 = call double @llvm.fmuladd.f64(double %215, double %230, double %208)
  %232 = load ptr, ptr %9, align 8, !tbaa !5
  store double %231, ptr %232, align 8, !tbaa !9
  %233 = load ptr, ptr %6, align 8, !tbaa !5
  %234 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %233, i32 0, i32 36
  %235 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %234, i32 0, i32 4
  %236 = load ptr, ptr %235, align 8, !tbaa !23
  %237 = load i64, ptr %12, align 8, !tbaa !19
  %238 = getelementptr inbounds double, ptr %236, i64 %237
  %239 = load double, ptr %238, align 8, !tbaa !9
  %240 = load ptr, ptr %6, align 8, !tbaa !5
  %241 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %240, i32 0, i32 50
  %242 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %241, i32 0, i32 4
  %243 = load ptr, ptr %242, align 8, !tbaa !23
  %244 = load i64, ptr %12, align 8, !tbaa !19
  %245 = getelementptr inbounds double, ptr %243, i64 %244
  %246 = load double, ptr %245, align 8, !tbaa !9
  %247 = fmul double %239, %246
  %248 = load ptr, ptr %6, align 8, !tbaa !5
  %249 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %248, i32 0, i32 50
  %250 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %249, i32 0, i32 4
  %251 = load ptr, ptr %250, align 8, !tbaa !23
  %252 = load i64, ptr %12, align 8, !tbaa !19
  %253 = getelementptr inbounds double, ptr %251, i64 %252
  store double %247, ptr %253, align 8, !tbaa !9
  br label %254

254:                                              ; preds = %206
  %255 = load i64, ptr %12, align 8, !tbaa !19
  %256 = add nsw i64 %255, 1
  store i64 %256, ptr %12, align 8, !tbaa !19
  br label %199, !llvm.loop !24

257:                                              ; preds = %199
  %258 = load i64, ptr %11, align 8, !tbaa !19
  %259 = load ptr, ptr %6, align 8, !tbaa !5
  %260 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %259, i32 0, i32 33
  %261 = load i64, ptr %260, align 8, !tbaa !22
  %262 = load ptr, ptr %6, align 8, !tbaa !5
  %263 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %262, i32 0, i32 34
  %264 = load ptr, ptr %6, align 8, !tbaa !5
  %265 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %264, i32 0, i32 50
  %266 = load ptr, ptr %8, align 8, !tbaa !5
  %267 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl5rgemvElldPKNS_9ae_matrixElPKNS_9ae_vectorEdPS3_PNS_8ae_stateE(i64 noundef %258, i64 noundef %261, double noundef 1.000000e+00, ptr noundef %263, i64 noundef 1, ptr noundef %265, double noundef 1.000000e+00, ptr noundef %266, ptr noundef %267)
  br label %268

268:                                              ; preds = %257, %160
  store i32 1, ptr %13, align 4
  br label %270

269:                                              ; preds = %155
  store i32 0, ptr %13, align 4
  br label %270

270:                                              ; preds = %269, %268, %154, %43
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  %271 = load i32, ptr %13, align 4
  switch i32 %271, label %273 [
    i32 0, label %272
    i32 1, label %272
  ]

272:                                              ; preds = %270, %270
  ret void

273:                                              ; preds = %270
  unreachable
}

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 = !{!"double", !7, i64 0}
!11 = !{!12, !13, i64 0}
!12 = !{!"_ZTSN11alglib_impl12xbfgshessianE", !13, i64 0, !14, i64 8, !14, i64 72, !13, i64 136, !13, i64 144, !10, i64 152, !10, i64 160, !10, i64 168, !10, i64 176, !10, i64 184, !10, i64 192, !10, i64 200, !13, i64 208, !10, i64 216, !10, i64 224, !17, i64 232, !13, i64 312, !10, i64 320, !10, i64 328, !10, i64 336, !13, i64 344, !10, i64 352, !17, i64 360, !17, i64 440, !17, i64 520, !17, i64 600, !15, i64 680, !13, i64 688, !17, i64 696, !17, i64 776, !15, i64 856, !14, i64 864, !15, i64 928, !13, i64 936, !17, i64 944, !14, i64 1024, !14, i64 1088, !17, i64 1152, !14, i64 1232, !14, i64 1296, !15, i64 1360, !14, i64 1368, !10, i64 1432, !10, 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, !15, i64 16, !16, i64 24, !7, i64 56}
!15 = !{!"bool", !7, i64 0}
!16 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!17 = !{!"_ZTSN11alglib_impl9ae_matrixE", !13, i64 0, !13, i64 8, !13, i64 16, !13, i64 24, !15, i64 32, !16, i64 40, !7, i64 72}
!18 = !{!12, !13, i64 136}
!19 = !{!13, !13, i64 0}
!20 = !{!12, !10, i64 352}
!21 = !{!12, !13, i64 688}
!22 = !{!12, !13, i64 936}
!23 = !{!7, !7, i64 0}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

@.str.304 = external hidden unnamed_addr constant [42 x i8], align 1

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

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

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

declare void @_ZN11alglib_impl6rcopyvElPKNS_9ae_vectorEPS0_PNS_8ae_stateE(i64 noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

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

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

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

declare void @_ZN11alglib_impl9rcopymulvEldPKNS_9ae_vectorEPS0_PNS_8ae_stateE(i64 noundef, double noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

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

declare void @_ZN11alglib_impl10rmergemulvElPKNS_9ae_vectorEPS0_PNS_8ae_stateE(i64 noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl10hessianxmvEPNS_12xbfgshessianEPKNS_9ae_vectorEPS2_PdPNS_8ae_stateE(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr nocapture noundef %3, ptr noundef %4) local_unnamed_addr #2 {
switch.edge:
  store double 0.000000e+00, ptr %3, align 8, !tbaa !5
  %5 = load i64, ptr %0, align 8, !tbaa !9
  %6 = icmp ult i64 %5, 5
  %switch.cast = trunc i64 %5 to i5
  %switch.downshift = lshr i5 -7, %switch.cast
  %switch.masked = trunc i5 %switch.downshift to i1
  %7 = select i1 %6, i1 %switch.masked, i1 false
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %7, ptr noundef nonnull @.str.304, ptr noundef %4)
  %8 = getelementptr inbounds i8, ptr %0, i64 136
  %9 = load i64, ptr %8, align 8, !tbaa !17
  tail call void @_ZN11alglib_impl7rallocvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %9, ptr noundef %2, ptr noundef %4)
  store double 0.000000e+00, ptr %3, align 8, !tbaa !5
  %10 = load i64, ptr %0, align 8, !tbaa !9
  switch i64 %10, label %70 [
    i64 0, label %11
    i64 3, label %14
    i64 4, label %39
  ]

11:                                               ; preds = %switch.edge
  %12 = getelementptr inbounds i8, ptr %0, i64 232
  tail call void @_ZN11alglib_impl5rgemvElldPKNS_9ae_matrixElPKNS_9ae_vectorEdPS3_PNS_8ae_stateE(i64 noundef %9, i64 noundef %9, double noundef 1.000000e+00, ptr noundef nonnull %12, i64 noundef 0, ptr noundef %1, double noundef 0.000000e+00, ptr noundef %2, ptr noundef %4)
  %13 = tail call noundef double @_ZN11alglib_impl5rdotvElPKNS_9ae_vectorES2_PNS_8ae_stateE(i64 noundef %9, ptr noundef %1, ptr noundef %2, ptr noundef %4)
  store double %13, ptr %3, align 8, !tbaa !5
  br label %70

14:                                               ; preds = %switch.edge
  tail call void @_ZN11alglib_implL29optserv_recomputelowrankmodelEPNS_12xbfgshessianEPNS_8ae_stateE(ptr noundef nonnull %0, ptr noundef %4)
  %15 = getelementptr inbounds i8, ptr %0, i64 352
  %16 = load double, ptr %15, align 8, !tbaa !18
  tail call void @_ZN11alglib_impl9rcopymulvEldPKNS_9ae_vectorEPS0_PNS_8ae_stateE(i64 noundef %9, double noundef %16, ptr noundef %1, ptr noundef %2, ptr noundef %4)
  %17 = load double, ptr %15, align 8, !tbaa !18
  %18 = tail call noundef double @_ZN11alglib_impl6rdotv2ElPKNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %9, ptr noundef %1, ptr noundef %4)
  %19 = fmul double %17, %18
  store double %19, ptr %3, align 8, !tbaa !5
  %20 = getelementptr inbounds i8, ptr %0, i64 688
  %21 = load i64, ptr %20, align 8, !tbaa !19
  %22 = icmp sgt i64 %21, 0
  br i1 %22, label %23, label %70

23:                                               ; preds = %14
  %24 = getelementptr inbounds i8, ptr %0, i64 1792
  tail call void @_ZN11alglib_impl7rallocvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %21, ptr noundef nonnull %24, ptr noundef %4)
  %25 = load i64, ptr %20, align 8, !tbaa !19
  %26 = getelementptr inbounds i8, ptr %0, i64 696
  tail call void @_ZN11alglib_impl5rgemvElldPKNS_9ae_matrixElPKNS_9ae_vectorEdPS3_PNS_8ae_stateE(i64 noundef %25, i64 noundef %9, double noundef 1.000000e+00, ptr noundef nonnull %26, i64 noundef 0, ptr noundef %1, double noundef 0.000000e+00, ptr noundef nonnull %24, ptr noundef %4)
  %27 = load i64, ptr %20, align 8, !tbaa !19
  tail call void @_ZN11alglib_impl5rgemvElldPKNS_9ae_matrixElPKNS_9ae_vectorEdPS3_PNS_8ae_stateE(i64 noundef %9, i64 noundef %27, double noundef 1.000000e+00, ptr noundef nonnull %26, i64 noundef 1, ptr noundef nonnull %24, double noundef 1.000000e+00, ptr noundef %2, ptr noundef %4)
  %28 = load double, ptr %3, align 8, !tbaa !5
  %29 = load i64, ptr %20, align 8, !tbaa !19
  %30 = tail call noundef double @_ZN11alglib_impl6rdotv2ElPKNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %29, ptr noundef nonnull %24, ptr noundef %4)
  %31 = fadd double %28, %30
  store double %31, ptr %3, align 8, !tbaa !5
  %32 = load i64, ptr %20, align 8, !tbaa !19
  %33 = getelementptr inbounds i8, ptr %0, i64 776
  tail call void @_ZN11alglib_impl5rgemvElldPKNS_9ae_matrixElPKNS_9ae_vectorEdPS3_PNS_8ae_stateE(i64 noundef %32, i64 noundef %9, double noundef 1.000000e+00, ptr noundef nonnull %33, i64 noundef 0, ptr noundef %1, double noundef 0.000000e+00, ptr noundef nonnull %24, ptr noundef %4)
  %34 = load i64, ptr %20, align 8, !tbaa !19
  tail call void @_ZN11alglib_impl5rgemvElldPKNS_9ae_matrixElPKNS_9ae_vectorEdPS3_PNS_8ae_stateE(i64 noundef %9, i64 noundef %34, double noundef -1.000000e+00, ptr noundef nonnull %33, i64 noundef 1, ptr noundef nonnull %24, double noundef 1.000000e+00, ptr noundef %2, ptr noundef %4)
  %35 = load double, ptr %3, align 8, !tbaa !5
  %36 = load i64, ptr %20, align 8, !tbaa !19
  %37 = tail call noundef double @_ZN11alglib_impl6rdotv2ElPKNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %36, ptr noundef nonnull %24, ptr noundef %4)
  %38 = fsub double %35, %37
  store double %38, ptr %3, align 8, !tbaa !5
  br label %70

39:                                               ; preds = %switch.edge
  tail call void @_ZN11alglib_implL29optserv_recomputelowrankmodelEPNS_12xbfgshessianEPNS_8ae_stateE(ptr noundef nonnull %0, ptr noundef %4)
  tail call void @_ZN11alglib_impl6rcopyvElPKNS_9ae_vectorEPS0_PNS_8ae_stateE(i64 noundef %9, ptr noundef %1, ptr noundef %2, ptr noundef %4)
  %40 = getelementptr inbounds i8, ptr %0, i64 1024
  tail call void @_ZN11alglib_impl10rmergemulvElPKNS_9ae_vectorEPS0_PNS_8ae_stateE(i64 noundef %9, ptr noundef nonnull %40, ptr noundef %2, ptr noundef %4)
  %41 = tail call noundef double @_ZN11alglib_impl5rdotvElPKNS_9ae_vectorES2_PNS_8ae_stateE(i64 noundef %9, ptr noundef %1, ptr noundef %2, ptr noundef %4)
  store double %41, ptr %3, align 8, !tbaa !5
  %42 = getelementptr inbounds i8, ptr %0, i64 936
  %43 = load i64, ptr %42, align 8, !tbaa !20
  %44 = icmp sgt i64 %43, 0
  br i1 %44, label %45, label %70

45:                                               ; preds = %39
  %46 = getelementptr inbounds i8, ptr %0, i64 1792
  tail call void @_ZN11alglib_impl7rallocvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %43, ptr noundef nonnull %46, ptr noundef %4)
  %47 = load i64, ptr %42, align 8, !tbaa !20
  %48 = getelementptr inbounds i8, ptr %0, i64 944
  tail call void @_ZN11alglib_impl5rgemvElldPKNS_9ae_matrixElPKNS_9ae_vectorEdPS3_PNS_8ae_stateE(i64 noundef %47, i64 noundef %9, double noundef 1.000000e+00, ptr noundef nonnull %48, i64 noundef 0, ptr noundef %1, double noundef 0.000000e+00, ptr noundef nonnull %46, ptr noundef %4)
  %49 = load i64, ptr %42, align 8, !tbaa !20
  %.not.not125 = icmp sgt i64 %49, 0
  br i1 %.not.not125, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %45
  %50 = getelementptr inbounds i8, ptr %0, i64 1144
  %51 = getelementptr inbounds i8, ptr %0, i64 1848
  br label %52

52:                                               ; preds = %.lr.ph, %52
  %.0126 = phi i64 [ 0, %.lr.ph ], [ %69, %52 ]
  %53 = load double, ptr %3, align 8, !tbaa !5
  %54 = load ptr, ptr %50, align 8, !tbaa !21
  %55 = getelementptr inbounds double, ptr %54, i64 %.0126
  %56 = load double, ptr %55, align 8, !tbaa !5
  %57 = load ptr, ptr %51, align 8, !tbaa !21
  %58 = getelementptr inbounds double, ptr %57, i64 %.0126
  %59 = load double, ptr %58, align 8, !tbaa !5
  %60 = fmul double %59, %59
  %61 = tail call double @llvm.fmuladd.f64(double %56, double %60, double %53)
  store double %61, ptr %3, align 8, !tbaa !5
  %62 = load ptr, ptr %50, align 8, !tbaa !21
  %63 = getelementptr inbounds double, ptr %62, i64 %.0126
  %64 = load double, ptr %63, align 8, !tbaa !5
  %65 = load ptr, ptr %51, align 8, !tbaa !21
  %66 = getelementptr inbounds double, ptr %65, i64 %.0126
  %67 = load double, ptr %66, align 8, !tbaa !5
  %68 = fmul double %64, %67
  store double %68, ptr %66, align 8, !tbaa !5
  %69 = add nuw nsw i64 %.0126, 1
  %exitcond.not = icmp eq i64 %69, %49
  br i1 %exitcond.not, label %._crit_edge, label %52, !llvm.loop !22

._crit_edge:                                      ; preds = %52, %45
  tail call void @_ZN11alglib_impl5rgemvElldPKNS_9ae_matrixElPKNS_9ae_vectorEdPS3_PNS_8ae_stateE(i64 noundef %9, i64 noundef %49, double noundef 1.000000e+00, ptr noundef nonnull %48, i64 noundef 1, ptr noundef nonnull %46, double noundef 1.000000e+00, ptr noundef %2, ptr noundef %4)
  br label %70

70:                                               ; preds = %switch.edge, %39, %._crit_edge, %14, %23, %11
  ret void
}

attributes #0 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { 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" }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"_ZTSN11alglib_impl12xbfgshessianE", !11, i64 0, !12, i64 8, !12, i64 72, !11, i64 136, !11, i64 144, !6, i64 152, !6, i64 160, !6, i64 168, !6, i64 176, !6, i64 184, !6, i64 192, !6, i64 200, !11, i64 208, !6, i64 216, !6, i64 224, !16, i64 232, !11, i64 312, !6, i64 320, !6, i64 328, !6, i64 336, !11, i64 344, !6, i64 352, !16, i64 360, !16, i64 440, !16, i64 520, !16, i64 600, !13, i64 680, !11, i64 688, !16, i64 696, !16, i64 776, !13, i64 856, !12, i64 864, !13, i64 928, !11, i64 936, !16, i64 944, !12, i64 1024, !12, i64 1088, !16, i64 1152, !12, i64 1232, !12, i64 1296, !13, i64 1360, !12, i64 1368, !6, i64 1432, !6, i64 1440, !11, i64 1448, !16, i64 1456, !12, i64 1536, !12, i64 1600, !12, i64 1664, !12, i64 1728, !12, i64 1792, !12, i64 1856, !16, i64 1920, !16, i64 2000, !16, i64 2080, !16, i64 2160, !16, i64 2240, !16, i64 2320, !16, i64 2400, !16, i64 2480, !12, i64 2560, !12, i64 2624, !16, i64 2688, !12, i64 2768, !16, i64 2832, !16, i64 2912, !16, i64 2992, !16, i64 3072, !16, i64 3152, !12, i64 3232, !12, i64 3296}
!11 = !{!"long", !7, i64 0}
!12 = !{!"_ZTSN11alglib_impl9ae_vectorE", !11, i64 0, !11, i64 8, !13, i64 16, !14, i64 24, !7, i64 56}
!13 = !{!"bool", !7, i64 0}
!14 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !15, i64 0, !15, i64 8, !15, i64 16, !15, i64 24}
!15 = !{!"any pointer", !7, i64 0}
!16 = !{!"_ZTSN11alglib_impl9ae_matrixE", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !13, i64 32, !14, i64 40, !7, i64 72}
!17 = !{!10, !11, i64 136}
!18 = !{!10, !6, i64 352}
!19 = !{!10, !11, i64 688}
!20 = !{!10, !11, i64 936}
!21 = !{!7, !7, i64 0}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}


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