; 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.302 = external hidden unnamed_addr constant [41 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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl9hessianmvEPNS_12xbfgshessianEPKNS_9ae_vectorEPS2_PNS_8ae_stateE(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #2 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i64, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  store ptr %3, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #3
  %10 = load ptr, ptr %5, align 8, !tbaa !5
  %11 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %10, i32 0, i32 0
  %12 = load i64, ptr %11, align 8, !tbaa !9
  %13 = icmp eq i64 %12, 0
  br i1 %13, label %24, label %14

14:                                               ; preds = %4
  %15 = load ptr, ptr %5, 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 !9
  %18 = icmp eq i64 %17, 3
  br i1 %18, label %24, label %19

19:                                               ; preds = %14
  %20 = load ptr, ptr %5, 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 !9
  %23 = icmp eq i64 %22, 4
  br label %24

24:                                               ; preds = %19, %14, %4
  %25 = phi i1 [ true, %14 ], [ true, %4 ], [ %23, %19 ]
  %26 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %25, ptr noundef @.str.302, ptr noundef %26)
  %27 = load ptr, ptr %5, align 8, !tbaa !5
  %28 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %27, i32 0, i32 3
  %29 = load i64, ptr %28, align 8, !tbaa !17
  store i64 %29, ptr %9, align 8, !tbaa !18
  %30 = load i64, ptr %9, align 8, !tbaa !18
  %31 = load ptr, ptr %7, align 8, !tbaa !5
  %32 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl7rallocvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %30, ptr noundef %31, ptr noundef %32)
  %33 = load ptr, ptr %5, align 8, !tbaa !5
  %34 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %33, i32 0, i32 0
  %35 = load i64, ptr %34, align 8, !tbaa !9
  %36 = icmp eq i64 %35, 0
  br i1 %36, label %37, label %45

37:                                               ; preds = %24
  %38 = load i64, ptr %9, align 8, !tbaa !18
  %39 = load i64, ptr %9, align 8, !tbaa !18
  %40 = load ptr, ptr %5, align 8, !tbaa !5
  %41 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %40, i32 0, i32 15
  %42 = load ptr, ptr %6, align 8, !tbaa !5
  %43 = load ptr, ptr %7, align 8, !tbaa !5
  %44 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl5rgemvElldPKNS_9ae_matrixElPKNS_9ae_vectorEdPS3_PNS_8ae_stateE(i64 noundef %38, i64 noundef %39, double noundef 1.000000e+00, ptr noundef %41, i64 noundef 0, ptr noundef %42, double noundef 0.000000e+00, ptr noundef %43, ptr noundef %44)
  br label %45

45:                                               ; preds = %37, %24
  %46 = load ptr, ptr %5, align 8, !tbaa !5
  %47 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %46, i32 0, i32 0
  %48 = load i64, ptr %47, align 8, !tbaa !9
  %49 = icmp eq i64 %48, 3
  br i1 %49, label %50, label %112

50:                                               ; preds = %45
  %51 = load ptr, ptr %5, align 8, !tbaa !5
  %52 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_implL29optserv_recomputelowrankmodelEPNS_12xbfgshessianEPNS_8ae_stateE(ptr noundef %51, ptr noundef %52)
  %53 = load i64, ptr %9, align 8, !tbaa !18
  %54 = load ptr, ptr %5, align 8, !tbaa !5
  %55 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %54, i32 0, i32 21
  %56 = load double, ptr %55, align 8, !tbaa !19
  %57 = load ptr, ptr %6, align 8, !tbaa !5
  %58 = load ptr, ptr %7, align 8, !tbaa !5
  %59 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl9rcopymulvEldPKNS_9ae_vectorEPS0_PNS_8ae_stateE(i64 noundef %53, double noundef %56, ptr noundef %57, ptr noundef %58, ptr noundef %59)
  %60 = load ptr, ptr %5, align 8, !tbaa !5
  %61 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %60, i32 0, i32 27
  %62 = load i64, ptr %61, align 8, !tbaa !20
  %63 = icmp sgt i64 %62, 0
  br i1 %63, label %64, label %111

64:                                               ; preds = %50
  %65 = load ptr, ptr %5, align 8, !tbaa !5
  %66 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %65, i32 0, i32 27
  %67 = load i64, ptr %66, align 8, !tbaa !20
  %68 = load ptr, ptr %5, align 8, !tbaa !5
  %69 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %68, i32 0, i32 50
  %70 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl7rallocvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %67, ptr noundef %69, ptr noundef %70)
  %71 = load ptr, ptr %5, align 8, !tbaa !5
  %72 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %71, i32 0, i32 27
  %73 = load i64, ptr %72, align 8, !tbaa !20
  %74 = load i64, ptr %9, align 8, !tbaa !18
  %75 = load ptr, ptr %5, align 8, !tbaa !5
  %76 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %75, i32 0, i32 28
  %77 = load ptr, ptr %6, align 8, !tbaa !5
  %78 = load ptr, ptr %5, align 8, !tbaa !5
  %79 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %78, i32 0, i32 50
  %80 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl5rgemvElldPKNS_9ae_matrixElPKNS_9ae_vectorEdPS3_PNS_8ae_stateE(i64 noundef %73, i64 noundef %74, double noundef 1.000000e+00, ptr noundef %76, i64 noundef 0, ptr noundef %77, double noundef 0.000000e+00, ptr noundef %79, ptr noundef %80)
  %81 = load i64, ptr %9, align 8, !tbaa !18
  %82 = load ptr, ptr %5, align 8, !tbaa !5
  %83 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %82, i32 0, i32 27
  %84 = load i64, ptr %83, align 8, !tbaa !20
  %85 = load ptr, ptr %5, align 8, !tbaa !5
  %86 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %85, i32 0, i32 28
  %87 = load ptr, ptr %5, align 8, !tbaa !5
  %88 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %87, i32 0, i32 50
  %89 = load ptr, ptr %7, align 8, !tbaa !5
  %90 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl5rgemvElldPKNS_9ae_matrixElPKNS_9ae_vectorEdPS3_PNS_8ae_stateE(i64 noundef %81, i64 noundef %84, double noundef 1.000000e+00, ptr noundef %86, i64 noundef 1, ptr noundef %88, double noundef 1.000000e+00, ptr noundef %89, ptr noundef %90)
  %91 = load ptr, ptr %5, align 8, !tbaa !5
  %92 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %91, i32 0, i32 27
  %93 = load i64, ptr %92, align 8, !tbaa !20
  %94 = load i64, ptr %9, align 8, !tbaa !18
  %95 = load ptr, ptr %5, align 8, !tbaa !5
  %96 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %95, i32 0, i32 29
  %97 = load ptr, ptr %6, align 8, !tbaa !5
  %98 = load ptr, ptr %5, align 8, !tbaa !5
  %99 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %98, i32 0, i32 50
  %100 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl5rgemvElldPKNS_9ae_matrixElPKNS_9ae_vectorEdPS3_PNS_8ae_stateE(i64 noundef %93, i64 noundef %94, double noundef 1.000000e+00, ptr noundef %96, i64 noundef 0, ptr noundef %97, double noundef 0.000000e+00, ptr noundef %99, ptr noundef %100)
  %101 = load i64, ptr %9, align 8, !tbaa !18
  %102 = load ptr, ptr %5, align 8, !tbaa !5
  %103 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %102, i32 0, i32 27
  %104 = load i64, ptr %103, align 8, !tbaa !20
  %105 = load ptr, ptr %5, align 8, !tbaa !5
  %106 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %105, i32 0, i32 29
  %107 = load ptr, ptr %5, align 8, !tbaa !5
  %108 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %107, i32 0, i32 50
  %109 = load ptr, ptr %7, align 8, !tbaa !5
  %110 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl5rgemvElldPKNS_9ae_matrixElPKNS_9ae_vectorEdPS3_PNS_8ae_stateE(i64 noundef %101, i64 noundef %104, double noundef -1.000000e+00, ptr noundef %106, i64 noundef 1, ptr noundef %108, double noundef 1.000000e+00, ptr noundef %109, ptr noundef %110)
  br label %111

111:                                              ; preds = %64, %50
  br label %112

112:                                              ; preds = %111, %45
  %113 = load ptr, ptr %5, align 8, !tbaa !5
  %114 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %113, i32 0, i32 0
  %115 = load i64, ptr %114, align 8, !tbaa !9
  %116 = icmp eq i64 %115, 4
  br i1 %116, label %117, label %169

117:                                              ; preds = %112
  %118 = load ptr, ptr %5, align 8, !tbaa !5
  %119 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_implL29optserv_recomputelowrankmodelEPNS_12xbfgshessianEPNS_8ae_stateE(ptr noundef %118, ptr noundef %119)
  %120 = load i64, ptr %9, align 8, !tbaa !18
  %121 = load ptr, ptr %6, align 8, !tbaa !5
  %122 = load ptr, ptr %7, align 8, !tbaa !5
  %123 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl6rcopyvElPKNS_9ae_vectorEPS0_PNS_8ae_stateE(i64 noundef %120, ptr noundef %121, ptr noundef %122, ptr noundef %123)
  %124 = load i64, ptr %9, align 8, !tbaa !18
  %125 = load ptr, ptr %5, align 8, !tbaa !5
  %126 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %125, i32 0, i32 35
  %127 = load ptr, ptr %7, align 8, !tbaa !5
  %128 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl10rmergemulvElPKNS_9ae_vectorEPS0_PNS_8ae_stateE(i64 noundef %124, ptr noundef %126, ptr noundef %127, ptr noundef %128)
  %129 = load ptr, ptr %5, align 8, !tbaa !5
  %130 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %129, i32 0, i32 33
  %131 = load i64, ptr %130, align 8, !tbaa !21
  %132 = icmp sgt i64 %131, 0
  br i1 %132, label %133, label %168

133:                                              ; preds = %117
  %134 = load ptr, ptr %5, align 8, !tbaa !5
  %135 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %134, i32 0, i32 33
  %136 = load i64, ptr %135, align 8, !tbaa !21
  %137 = load ptr, ptr %5, align 8, !tbaa !5
  %138 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %137, i32 0, i32 50
  %139 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl7rallocvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %136, ptr noundef %138, ptr noundef %139)
  %140 = load ptr, ptr %5, align 8, !tbaa !5
  %141 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %140, i32 0, i32 33
  %142 = load i64, ptr %141, align 8, !tbaa !21
  %143 = load i64, ptr %9, align 8, !tbaa !18
  %144 = load ptr, ptr %5, align 8, !tbaa !5
  %145 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %144, i32 0, i32 34
  %146 = load ptr, ptr %6, align 8, !tbaa !5
  %147 = load ptr, ptr %5, align 8, !tbaa !5
  %148 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %147, i32 0, i32 50
  %149 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl5rgemvElldPKNS_9ae_matrixElPKNS_9ae_vectorEdPS3_PNS_8ae_stateE(i64 noundef %142, i64 noundef %143, double noundef 1.000000e+00, ptr noundef %145, i64 noundef 0, ptr noundef %146, double noundef 0.000000e+00, ptr noundef %148, ptr noundef %149)
  %150 = load ptr, ptr %5, align 8, !tbaa !5
  %151 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %150, i32 0, i32 33
  %152 = load i64, ptr %151, align 8, !tbaa !21
  %153 = load ptr, ptr %5, align 8, !tbaa !5
  %154 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %153, i32 0, i32 36
  %155 = load ptr, ptr %5, align 8, !tbaa !5
  %156 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %155, i32 0, i32 50
  %157 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl10rmergemulvElPKNS_9ae_vectorEPS0_PNS_8ae_stateE(i64 noundef %152, ptr noundef %154, ptr noundef %156, ptr noundef %157)
  %158 = load i64, ptr %9, align 8, !tbaa !18
  %159 = load ptr, ptr %5, align 8, !tbaa !5
  %160 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %159, i32 0, i32 33
  %161 = load i64, ptr %160, align 8, !tbaa !21
  %162 = load ptr, ptr %5, align 8, !tbaa !5
  %163 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %162, i32 0, i32 34
  %164 = load ptr, ptr %5, align 8, !tbaa !5
  %165 = getelementptr inbounds %"struct.alglib_impl::xbfgshessian", ptr %164, i32 0, i32 50
  %166 = load ptr, ptr %7, align 8, !tbaa !5
  %167 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl5rgemvElldPKNS_9ae_matrixElPKNS_9ae_vectorEdPS3_PNS_8ae_stateE(i64 noundef %158, i64 noundef %161, double noundef 1.000000e+00, ptr noundef %163, i64 noundef 1, ptr noundef %165, double noundef 1.000000e+00, ptr noundef %166, ptr noundef %167)
  br label %168

168:                                              ; preds = %133, %117
  br label %169

169:                                              ; preds = %168, %112
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  ret void
}

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

declare void @_ZN11alglib_impl10rmergemulvElPKNS_9ae_vectorEPS0_PNS_8ae_stateE(i64 noundef, ptr noundef, ptr 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 = { 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 #3 = { 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, !11, i64 0}
!10 = !{!"_ZTSN11alglib_impl12xbfgshessianE", !11, i64 0, !12, i64 8, !12, i64 72, !11, i64 136, !11, i64 144, !15, i64 152, !15, i64 160, !15, i64 168, !15, i64 176, !15, i64 184, !15, i64 192, !15, i64 200, !11, i64 208, !15, i64 216, !15, i64 224, !16, i64 232, !11, i64 312, !15, i64 320, !15, i64 328, !15, i64 336, !11, i64 344, !15, 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, !15, i64 1432, !15, 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", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!15 = !{!"double", !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 = !{!11, !11, i64 0}
!19 = !{!10, !15, i64 352}
!20 = !{!10, !11, i64 688}
!21 = !{!10, !11, i64 936}


; 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.302 = external hidden unnamed_addr constant [41 x i8], align 1

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl9hessianmvEPNS_12xbfgshessianEPKNS_9ae_vectorEPS2_PNS_8ae_stateE(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) local_unnamed_addr #1 {
switch.edge:
  %4 = load i64, ptr %0, align 8, !tbaa !5
  %5 = icmp ult i64 %4, 5
  %switch.cast = trunc i64 %4 to i5
  %switch.downshift = lshr i5 -7, %switch.cast
  %switch.masked = trunc i5 %switch.downshift to i1
  %6 = select i1 %5, i1 %switch.masked, i1 false
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %6, ptr noundef nonnull @.str.302, ptr noundef %3)
  %7 = getelementptr inbounds i8, ptr %0, i64 136
  %8 = load i64, ptr %7, align 8, !tbaa !16
  tail call void @_ZN11alglib_impl7rallocvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %8, ptr noundef %2, ptr noundef %3)
  %9 = load i64, ptr %0, align 8, !tbaa !5
  %10 = icmp eq i64 %9, 0
  br i1 %10, label %11, label %13

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 %8, i64 noundef %8, 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 %3)
  %.pr = load i64, ptr %0, align 8, !tbaa !5
  br label %13

13:                                               ; preds = %11, %switch.edge
  %14 = phi i64 [ %.pr, %11 ], [ %9, %switch.edge ]
  %15 = icmp eq i64 %14, 3
  br i1 %15, label %16, label %30

16:                                               ; preds = %13
  tail call void @_ZN11alglib_implL29optserv_recomputelowrankmodelEPNS_12xbfgshessianEPNS_8ae_stateE(ptr noundef nonnull %0, ptr noundef %3)
  %17 = getelementptr inbounds i8, ptr %0, i64 352
  %18 = load double, ptr %17, align 8, !tbaa !17
  tail call void @_ZN11alglib_impl9rcopymulvEldPKNS_9ae_vectorEPS0_PNS_8ae_stateE(i64 noundef %8, double noundef %18, ptr noundef %1, ptr noundef %2, ptr noundef %3)
  %19 = getelementptr inbounds i8, ptr %0, i64 688
  %20 = load i64, ptr %19, align 8, !tbaa !18
  %21 = icmp sgt i64 %20, 0
  br i1 %21, label %22, label %30

22:                                               ; preds = %16
  %23 = getelementptr inbounds i8, ptr %0, i64 1792
  tail call void @_ZN11alglib_impl7rallocvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %20, ptr noundef nonnull %23, ptr noundef %3)
  %24 = load i64, ptr %19, align 8, !tbaa !18
  %25 = getelementptr inbounds i8, ptr %0, i64 696
  tail call void @_ZN11alglib_impl5rgemvElldPKNS_9ae_matrixElPKNS_9ae_vectorEdPS3_PNS_8ae_stateE(i64 noundef %24, i64 noundef %8, double noundef 1.000000e+00, ptr noundef nonnull %25, i64 noundef 0, ptr noundef %1, double noundef 0.000000e+00, ptr noundef nonnull %23, ptr noundef %3)
  %26 = load i64, ptr %19, align 8, !tbaa !18
  tail call void @_ZN11alglib_impl5rgemvElldPKNS_9ae_matrixElPKNS_9ae_vectorEdPS3_PNS_8ae_stateE(i64 noundef %8, i64 noundef %26, double noundef 1.000000e+00, ptr noundef nonnull %25, i64 noundef 1, ptr noundef nonnull %23, double noundef 1.000000e+00, ptr noundef %2, ptr noundef %3)
  %27 = load i64, ptr %19, align 8, !tbaa !18
  %28 = getelementptr inbounds i8, ptr %0, i64 776
  tail call void @_ZN11alglib_impl5rgemvElldPKNS_9ae_matrixElPKNS_9ae_vectorEdPS3_PNS_8ae_stateE(i64 noundef %27, i64 noundef %8, double noundef 1.000000e+00, ptr noundef nonnull %28, i64 noundef 0, ptr noundef %1, double noundef 0.000000e+00, ptr noundef nonnull %23, ptr noundef %3)
  %29 = load i64, ptr %19, align 8, !tbaa !18
  tail call void @_ZN11alglib_impl5rgemvElldPKNS_9ae_matrixElPKNS_9ae_vectorEdPS3_PNS_8ae_stateE(i64 noundef %8, i64 noundef %29, double noundef -1.000000e+00, ptr noundef nonnull %28, i64 noundef 1, ptr noundef nonnull %23, double noundef 1.000000e+00, ptr noundef %2, ptr noundef %3)
  br label %30

30:                                               ; preds = %16, %22, %13
  %31 = load i64, ptr %0, align 8, !tbaa !5
  %32 = icmp eq i64 %31, 4
  br i1 %32, label %33, label %45

33:                                               ; preds = %30
  tail call void @_ZN11alglib_implL29optserv_recomputelowrankmodelEPNS_12xbfgshessianEPNS_8ae_stateE(ptr noundef nonnull %0, ptr noundef %3)
  tail call void @_ZN11alglib_impl6rcopyvElPKNS_9ae_vectorEPS0_PNS_8ae_stateE(i64 noundef %8, ptr noundef %1, ptr noundef %2, ptr noundef %3)
  %34 = getelementptr inbounds i8, ptr %0, i64 1024
  tail call void @_ZN11alglib_impl10rmergemulvElPKNS_9ae_vectorEPS0_PNS_8ae_stateE(i64 noundef %8, ptr noundef nonnull %34, ptr noundef %2, ptr noundef %3)
  %35 = getelementptr inbounds i8, ptr %0, i64 936
  %36 = load i64, ptr %35, align 8, !tbaa !19
  %37 = icmp sgt i64 %36, 0
  br i1 %37, label %38, label %45

38:                                               ; preds = %33
  %39 = getelementptr inbounds i8, ptr %0, i64 1792
  tail call void @_ZN11alglib_impl7rallocvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %36, ptr noundef nonnull %39, ptr noundef %3)
  %40 = load i64, ptr %35, align 8, !tbaa !19
  %41 = getelementptr inbounds i8, ptr %0, i64 944
  tail call void @_ZN11alglib_impl5rgemvElldPKNS_9ae_matrixElPKNS_9ae_vectorEdPS3_PNS_8ae_stateE(i64 noundef %40, i64 noundef %8, double noundef 1.000000e+00, ptr noundef nonnull %41, i64 noundef 0, ptr noundef %1, double noundef 0.000000e+00, ptr noundef nonnull %39, ptr noundef %3)
  %42 = load i64, ptr %35, align 8, !tbaa !19
  %43 = getelementptr inbounds i8, ptr %0, i64 1088
  tail call void @_ZN11alglib_impl10rmergemulvElPKNS_9ae_vectorEPS0_PNS_8ae_stateE(i64 noundef %42, ptr noundef nonnull %43, ptr noundef nonnull %39, ptr noundef %3)
  %44 = load i64, ptr %35, align 8, !tbaa !19
  tail call void @_ZN11alglib_impl5rgemvElldPKNS_9ae_matrixElPKNS_9ae_vectorEdPS3_PNS_8ae_stateE(i64 noundef %8, i64 noundef %44, double noundef 1.000000e+00, ptr noundef nonnull %41, i64 noundef 1, ptr noundef nonnull %39, double noundef 1.000000e+00, ptr noundef %2, ptr noundef %3)
  br label %45

45:                                               ; preds = %33, %38, %30
  ret void
}

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

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

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 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, !7, i64 0}
!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 = !{!6, !7, i64 136}
!17 = !{!6, !14, i64 352}
!18 = !{!6, !7, i64 688}
!19 = !{!6, !7, i64 936}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,SROAPass,SimplifyCFGPass,TailCallElimPass