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

; 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::ae_complex" = type { double, double }
%"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.348 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.349 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.350 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.351 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.352 = external hidden unnamed_addr constant [65 x i8], align 1
@.str.353 = external hidden unnamed_addr constant [63 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: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN11alglib_impl26hpdmatrixcholeskysolvefastEPKNS_9ae_matrixElbPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef %0, i64 noundef %1, i1 noundef zeroext %2, ptr noundef %3, ptr noundef %4) #2 {
  %6 = alloca i1, align 1
  %7 = alloca ptr, align 8
  %8 = alloca i64, align 8
  %9 = alloca i8, align 1
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca i8, align 1
  %15 = alloca %"struct.alglib_impl::ae_complex", align 8
  %16 = alloca i32, align 4
  store ptr %0, ptr %7, align 8, !tbaa !5
  store i64 %1, ptr %8, align 8, !tbaa !9
  %17 = zext i1 %2 to i8
  store i8 %17, ptr %9, align 1, !tbaa !11
  store ptr %3, ptr %10, align 8, !tbaa !5
  store ptr %4, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr %14) #4
  %18 = load i64, ptr %8, align 8, !tbaa !9
  %19 = icmp sgt i64 %18, 0
  %20 = load ptr, ptr %11, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %19, ptr noundef @.str.348, ptr noundef %20)
  %21 = load ptr, ptr %7, align 8, !tbaa !5
  %22 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %21, i32 0, i32 0
  %23 = load i64, ptr %22, align 8, !tbaa !13
  %24 = load i64, ptr %8, align 8, !tbaa !9
  %25 = icmp sge i64 %23, %24
  %26 = load ptr, ptr %11, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %25, ptr noundef @.str.349, ptr noundef %26)
  %27 = load ptr, ptr %7, align 8, !tbaa !5
  %28 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %27, i32 0, i32 1
  %29 = load i64, ptr %28, align 8, !tbaa !16
  %30 = load i64, ptr %8, align 8, !tbaa !9
  %31 = icmp sge i64 %29, %30
  %32 = load ptr, ptr %11, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %31, ptr noundef @.str.350, ptr noundef %32)
  %33 = load ptr, ptr %10, align 8, !tbaa !5
  %34 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %33, i32 0, i32 0
  %35 = load i64, ptr %34, align 8, !tbaa !17
  %36 = load i64, ptr %8, align 8, !tbaa !9
  %37 = icmp sge i64 %35, %36
  %38 = load ptr, ptr %11, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %37, ptr noundef @.str.351, ptr noundef %38)
  %39 = load ptr, ptr %7, align 8, !tbaa !5
  %40 = load i64, ptr %8, align 8, !tbaa !9
  %41 = load i8, ptr %9, align 1, !tbaa !11, !range !19, !noundef !20
  %42 = trunc i8 %41 to i1
  %43 = load ptr, ptr %11, align 8, !tbaa !5
  %44 = call noundef zeroext i1 @_ZN11alglib_impl17isfinitectrmatrixEPKNS_9ae_matrixElbPNS_8ae_stateE(ptr noundef %39, i64 noundef %40, i1 noundef zeroext %42, ptr noundef %43)
  %45 = load ptr, ptr %11, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %44, ptr noundef @.str.352, ptr noundef %45)
  %46 = load ptr, ptr %10, align 8, !tbaa !5
  %47 = load i64, ptr %8, align 8, !tbaa !9
  %48 = load ptr, ptr %11, align 8, !tbaa !5
  %49 = call noundef zeroext i1 @_ZN11alglib_impl15isfinitecvectorEPKNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %46, i64 noundef %47, ptr noundef %48)
  %50 = load ptr, ptr %11, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %49, ptr noundef @.str.353, ptr noundef %50)
  store i8 1, ptr %14, align 1, !tbaa !11
  store i64 0, ptr %13, align 8, !tbaa !9
  br label %51

51:                                               ; preds = %104, %5
  %52 = load i64, ptr %13, align 8, !tbaa !9
  %53 = load i64, ptr %8, align 8, !tbaa !9
  %54 = sub nsw i64 %53, 1
  %55 = icmp sle i64 %52, %54
  br i1 %55, label %56, label %107

56:                                               ; preds = %51
  %57 = load ptr, ptr %7, align 8, !tbaa !5
  %58 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %57, i32 0, i32 6
  %59 = load ptr, ptr %58, align 8, !tbaa !21
  %60 = load i64, ptr %13, align 8, !tbaa !9
  %61 = getelementptr inbounds ptr, ptr %59, i64 %60
  %62 = load ptr, ptr %61, align 8, !tbaa !5
  %63 = load i64, ptr %13, align 8, !tbaa !9
  %64 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %62, i64 %63
  %65 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %64, i32 0, i32 0
  %66 = load double, ptr %65, align 8, !tbaa !22
  %67 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %66, double noundef 0.000000e+00)
  br i1 %67, label %68, label %103

68:                                               ; preds = %56
  %69 = load ptr, ptr %7, align 8, !tbaa !5
  %70 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %69, i32 0, i32 6
  %71 = load ptr, ptr %70, align 8, !tbaa !21
  %72 = load i64, ptr %13, align 8, !tbaa !9
  %73 = getelementptr inbounds ptr, ptr %71, i64 %72
  %74 = load ptr, ptr %73, align 8, !tbaa !5
  %75 = load i64, ptr %13, align 8, !tbaa !9
  %76 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %74, i64 %75
  %77 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %76, i32 0, i32 1
  %78 = load double, ptr %77, align 8, !tbaa !25
  %79 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %78, double noundef 0.000000e+00)
  br i1 %79, label %80, label %103

80:                                               ; preds = %68
  store i64 0, ptr %12, align 8, !tbaa !9
  br label %81

81:                                               ; preds = %97, %80
  %82 = load i64, ptr %12, align 8, !tbaa !9
  %83 = load i64, ptr %8, align 8, !tbaa !9
  %84 = sub nsw i64 %83, 1
  %85 = icmp sle i64 %82, %84
  br i1 %85, label %86, label %100

86:                                               ; preds = %81
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #4
  %87 = call { double, double } @_ZN11alglib_impl17ae_complex_from_dEd(double noundef 0.000000e+00)
  %88 = getelementptr inbounds { double, double }, ptr %15, i32 0, i32 0
  %89 = extractvalue { double, double } %87, 0
  store double %89, ptr %88, align 8
  %90 = getelementptr inbounds { double, double }, ptr %15, i32 0, i32 1
  %91 = extractvalue { double, double } %87, 1
  store double %91, ptr %90, align 8
  %92 = load ptr, ptr %10, align 8, !tbaa !5
  %93 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %92, i32 0, i32 4
  %94 = load ptr, ptr %93, align 8, !tbaa !21
  %95 = load i64, ptr %12, align 8, !tbaa !9
  %96 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %94, i64 %95
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %96, ptr align 8 %15, i64 16, i1 false), !tbaa.struct !26
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #4
  br label %97

97:                                               ; preds = %86
  %98 = load i64, ptr %12, align 8, !tbaa !9
  %99 = add nsw i64 %98, 1
  store i64 %99, ptr %12, align 8, !tbaa !9
  br label %81, !llvm.loop !28

100:                                              ; preds = %81
  store i8 0, ptr %14, align 1, !tbaa !11
  %101 = load i8, ptr %14, align 1, !tbaa !11, !range !19, !noundef !20
  %102 = trunc i8 %101 to i1
  store i1 %102, ptr %6, align 1
  store i32 1, ptr %16, align 4
  br label %116

103:                                              ; preds = %68, %56
  br label %104

104:                                              ; preds = %103
  %105 = load i64, ptr %13, align 8, !tbaa !9
  %106 = add nsw i64 %105, 1
  store i64 %106, ptr %13, align 8, !tbaa !9
  br label %51, !llvm.loop !30

107:                                              ; preds = %51
  %108 = load ptr, ptr %7, align 8, !tbaa !5
  %109 = load i64, ptr %8, align 8, !tbaa !9
  %110 = load i8, ptr %9, align 1, !tbaa !11, !range !19, !noundef !20
  %111 = trunc i8 %110 to i1
  %112 = load ptr, ptr %10, align 8, !tbaa !5
  %113 = load ptr, ptr %11, align 8, !tbaa !5
  call void @_ZN11alglib_implL40directdensesolvers_hpdbasiccholeskysolveEPKNS_9ae_matrixElbPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef %108, i64 noundef %109, i1 noundef zeroext %111, ptr noundef %112, ptr noundef %113)
  %114 = load i8, ptr %14, align 1, !tbaa !11, !range !19, !noundef !20
  %115 = trunc i8 %114 to i1
  store i1 %115, ptr %6, align 1
  store i32 1, ptr %16, align 4
  br label %116

116:                                              ; preds = %107, %100
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  %117 = load i1, ptr %6, align 1
  ret i1 %117
}

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

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

declare { double, double } @_ZN11alglib_impl17ae_complex_from_dEd(double noundef) #1

declare noundef zeroext i1 @_ZN11alglib_impl15isfinitecvectorEPKNS_9ae_vectorElPNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef) #1

declare noundef zeroext i1 @_ZN11alglib_impl17isfinitectrmatrixEPKNS_9ae_matrixElbPNS_8ae_stateE(ptr noundef, i64 noundef, i1 noundef zeroext, ptr noundef) #1

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN11alglib_implL40directdensesolvers_hpdbasiccholeskysolveEPKNS_9ae_matrixElbPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef, i64 noundef, i1 noundef zeroext, ptr noundef, ptr noundef) #2

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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{!14, !10, i64 0}
!14 = !{!"_ZTSN11alglib_impl9ae_matrixE", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !12, i64 32, !15, i64 40, !7, i64 72}
!15 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!16 = !{!14, !10, i64 8}
!17 = !{!18, !10, i64 0}
!18 = !{!"_ZTSN11alglib_impl9ae_vectorE", !10, i64 0, !10, i64 8, !12, i64 16, !15, i64 24, !7, i64 56}
!19 = !{i8 0, i8 2}
!20 = !{}
!21 = !{!7, !7, i64 0}
!22 = !{!23, !24, i64 0}
!23 = !{!"_ZTSN11alglib_impl10ae_complexE", !24, i64 0, !24, i64 8}
!24 = !{!"double", !7, i64 0}
!25 = !{!23, !24, i64 8}
!26 = !{i64 0, i64 8, !27, i64 8, i64 8, !27}
!27 = !{!24, !24, i64 0}
!28 = distinct !{!28, !29}
!29 = !{!"llvm.loop.mustprogress"}
!30 = distinct !{!30, !29}


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

%"struct.alglib_impl::ae_complex" = type { double, double }

@.str.348 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.349 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.350 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.351 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.352 = external hidden unnamed_addr constant [65 x i8], align 1
@.str.353 = external hidden unnamed_addr constant [63 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 uwtable
define dso_local noundef zeroext i1 @_ZN11alglib_impl26hpdmatrixcholeskysolvefastEPKNS_9ae_matrixElbPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef %0, i64 noundef %1, i1 noundef zeroext %2, ptr noundef %3, ptr noundef %4) local_unnamed_addr #1 {
  %6 = icmp sgt i64 %1, 0
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %6, ptr noundef nonnull @.str.348, ptr noundef %4)
  %7 = load i64, ptr %0, align 8, !tbaa !5
  %8 = icmp sge i64 %7, %1
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %8, ptr noundef nonnull @.str.349, ptr noundef %4)
  %9 = getelementptr inbounds i8, ptr %0, i64 8
  %10 = load i64, ptr %9, align 8, !tbaa !13
  %11 = icmp sge i64 %10, %1
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %11, ptr noundef nonnull @.str.350, ptr noundef %4)
  %12 = load i64, ptr %3, align 8, !tbaa !14
  %13 = icmp sge i64 %12, %1
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %13, ptr noundef nonnull @.str.351, ptr noundef %4)
  %14 = tail call noundef zeroext i1 @_ZN11alglib_impl17isfinitectrmatrixEPKNS_9ae_matrixElbPNS_8ae_stateE(ptr noundef nonnull %0, i64 noundef %1, i1 noundef zeroext %2, ptr noundef %4)
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %14, ptr noundef nonnull @.str.352, ptr noundef %4)
  %15 = tail call noundef zeroext i1 @_ZN11alglib_impl15isfinitecvectorEPKNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %3, i64 noundef %1, ptr noundef %4)
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %15, ptr noundef nonnull @.str.353, ptr noundef %4)
  %.not.not47 = icmp slt i64 %1, 1
  br i1 %.not.not47, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %5
  %16 = getelementptr inbounds i8, ptr %0, i64 72
  br label %17

17:                                               ; preds = %.lr.ph, %39
  %.not.not49 = phi i1 [ false, %.lr.ph ], [ %.not.not, %39 ]
  %.04248 = phi i64 [ 0, %.lr.ph ], [ %40, %39 ]
  %18 = load ptr, ptr %16, align 8, !tbaa !16
  %19 = getelementptr inbounds ptr, ptr %18, i64 %.04248
  %20 = load ptr, ptr %19, align 8, !tbaa !17
  %21 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %20, i64 %.04248
  %22 = load double, ptr %21, align 8, !tbaa !18
  %23 = tail call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %22, double noundef 0.000000e+00)
  br i1 %23, label %24, label %39

24:                                               ; preds = %17
  %25 = load ptr, ptr %16, align 8, !tbaa !16
  %26 = getelementptr inbounds ptr, ptr %25, i64 %.04248
  %27 = load ptr, ptr %26, align 8, !tbaa !17
  %28 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %27, i64 %.04248, i32 1
  %29 = load double, ptr %28, align 8, !tbaa !21
  %30 = tail call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %29, double noundef 0.000000e+00)
  br i1 %30, label %.lr.ph52, label %39

.lr.ph52:                                         ; preds = %24
  %31 = getelementptr inbounds i8, ptr %3, i64 56
  br label %32

32:                                               ; preds = %.lr.ph52, %32
  %.04151 = phi i64 [ 0, %.lr.ph52 ], [ %38, %32 ]
  %33 = tail call { double, double } @_ZN11alglib_impl17ae_complex_from_dEd(double noundef 0.000000e+00)
  %34 = extractvalue { double, double } %33, 0
  %35 = extractvalue { double, double } %33, 1
  %36 = load ptr, ptr %31, align 8, !tbaa !16
  %37 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %36, i64 %.04151
  store double %34, ptr %37, align 8, !tbaa !22
  %.sroa.4.0..sroa_idx = getelementptr inbounds i8, ptr %37, i64 8
  store double %35, ptr %.sroa.4.0..sroa_idx, align 8, !tbaa !22
  %38 = add nuw nsw i64 %.04151, 1
  %exitcond55.not = icmp eq i64 %38, %1
  br i1 %exitcond55.not, label %.loopexit, label %32, !llvm.loop !23

39:                                               ; preds = %17, %24
  %40 = add nuw nsw i64 %.04248, 1
  %.not.not = icmp sge i64 %40, %1
  %exitcond = icmp eq i64 %40, %1
  br i1 %exitcond, label %._crit_edge, label %17, !llvm.loop !25

._crit_edge:                                      ; preds = %39, %5
  %.not.not.lcssa = phi i1 [ true, %5 ], [ %.not.not, %39 ]
  tail call void @_ZN11alglib_implL40directdensesolvers_hpdbasiccholeskysolveEPKNS_9ae_matrixElbPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef nonnull %0, i64 noundef %1, i1 noundef zeroext %2, ptr noundef nonnull %3, ptr noundef %4)
  br label %.loopexit

.loopexit:                                        ; preds = %32, %._crit_edge
  %.not.not46 = phi i1 [ %.not.not.lcssa, %._crit_edge ], [ %.not.not49, %32 ]
  ret i1 %.not.not46
}

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

declare { double, double } @_ZN11alglib_impl17ae_complex_from_dEd(double noundef) local_unnamed_addr #0

declare noundef zeroext i1 @_ZN11alglib_impl15isfinitecvectorEPKNS_9ae_vectorElPNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #0

declare noundef zeroext i1 @_ZN11alglib_impl17isfinitectrmatrixEPKNS_9ae_matrixElbPNS_8ae_stateE(ptr noundef, i64 noundef, i1 noundef zeroext, ptr noundef) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN11alglib_implL40directdensesolvers_hpdbasiccholeskysolveEPKNS_9ae_matrixElbPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef, i64 noundef, i1 noundef zeroext, ptr noundef, ptr noundef) local_unnamed_addr #1

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_impl9ae_matrixE", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !10, i64 32, !11, i64 40, !8, i64 72}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"bool", !8, i64 0}
!11 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !12, i64 0, !12, i64 8, !12, i64 16, !12, i64 24}
!12 = !{!"any pointer", !8, i64 0}
!13 = !{!6, !7, i64 8}
!14 = !{!15, !7, i64 0}
!15 = !{!"_ZTSN11alglib_impl9ae_vectorE", !7, i64 0, !7, i64 8, !10, i64 16, !11, i64 24, !8, i64 56}
!16 = !{!8, !8, i64 0}
!17 = !{!12, !12, i64 0}
!18 = !{!19, !20, i64 0}
!19 = !{!"_ZTSN11alglib_impl10ae_complexE", !20, i64 0, !20, i64 8}
!20 = !{!"double", !8, i64 0}
!21 = !{!19, !20, i64 8}
!22 = !{!20, !20, i64 0}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}
!25 = distinct !{!25, !24}


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