; 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_frame" = type { %"struct.alglib_impl::ae_dyn_block" }
%"struct.alglib_impl::ae_dyn_block" = type { ptr, ptr, ptr, ptr }
%"struct.alglib_impl::ae_matrix" = type { i64, i64, i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.1 }
%union.anon.1 = type { ptr }

@.str.256 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.257 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.258 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.259 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.260 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.261 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.262 = external hidden unnamed_addr constant [56 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 nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN11alglib_impl19spdmatrixsolvemfastEPKNS_9ae_matrixElbPS0_lPNS_8ae_stateE(ptr noundef %0, i64 noundef %1, i1 noundef zeroext %2, ptr noundef %3, i64 noundef %4, ptr noundef %5) #3 {
  %7 = alloca i1, align 1
  %8 = alloca ptr, align 8
  %9 = alloca i64, align 8
  %10 = alloca i8, align 1
  %11 = alloca ptr, align 8
  %12 = alloca i64, align 8
  %13 = alloca ptr, align 8
  %14 = alloca %"struct.alglib_impl::ae_frame", align 8
  %15 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %16 = alloca i64, align 8
  %17 = alloca i64, align 8
  %18 = alloca i8, align 1
  %19 = alloca i32, align 4
  store ptr %0, ptr %8, align 8, !tbaa !5
  store i64 %1, ptr %9, align 8, !tbaa !9
  %20 = zext i1 %2 to i8
  store i8 %20, ptr %10, align 1, !tbaa !11
  store ptr %3, ptr %11, align 8, !tbaa !5
  store i64 %4, ptr %12, align 8, !tbaa !9
  store ptr %5, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %14) #4
  call void @llvm.lifetime.start.p0(i64 80, 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 1, ptr %18) #4
  %21 = load ptr, ptr %13, align 8, !tbaa !5
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %21, ptr noundef %14)
  call void @llvm.memset.p0.i64(ptr align 8 %15, i8 0, i64 80, i1 false)
  %22 = load ptr, ptr %8, align 8, !tbaa !5
  %23 = load ptr, ptr %13, align 8, !tbaa !5
  call void @_ZN11alglib_impl19ae_matrix_init_copyEPNS_9ae_matrixEPKS0_PNS_8ae_stateEb(ptr noundef %15, ptr noundef %22, ptr noundef %23, i1 noundef zeroext true)
  %24 = load i64, ptr %9, align 8, !tbaa !9
  %25 = icmp sgt i64 %24, 0
  %26 = load ptr, ptr %13, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %25, ptr noundef @.str.256, ptr noundef %26)
  %27 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %15, i32 0, i32 0
  %28 = load i64, ptr %27, align 8, !tbaa !13
  %29 = load i64, ptr %9, align 8, !tbaa !9
  %30 = icmp sge i64 %28, %29
  %31 = load ptr, ptr %13, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %30, ptr noundef @.str.257, ptr noundef %31)
  %32 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %15, i32 0, i32 1
  %33 = load i64, ptr %32, align 8, !tbaa !16
  %34 = load i64, ptr %9, align 8, !tbaa !9
  %35 = icmp sge i64 %33, %34
  %36 = load ptr, ptr %13, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %35, ptr noundef @.str.258, ptr noundef %36)
  %37 = load ptr, ptr %11, align 8, !tbaa !5
  %38 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %37, i32 0, i32 0
  %39 = load i64, ptr %38, align 8, !tbaa !13
  %40 = load i64, ptr %9, align 8, !tbaa !9
  %41 = icmp sge i64 %39, %40
  %42 = load ptr, ptr %13, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %41, ptr noundef @.str.259, ptr noundef %42)
  %43 = load ptr, ptr %11, align 8, !tbaa !5
  %44 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %43, i32 0, i32 1
  %45 = load i64, ptr %44, align 8, !tbaa !16
  %46 = load i64, ptr %12, align 8, !tbaa !9
  %47 = icmp sge i64 %45, %46
  %48 = load ptr, ptr %13, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %47, ptr noundef @.str.260, ptr noundef %48)
  %49 = load i64, ptr %9, align 8, !tbaa !9
  %50 = load i8, ptr %10, align 1, !tbaa !11, !range !17, !noundef !18
  %51 = trunc i8 %50 to i1
  %52 = load ptr, ptr %13, align 8, !tbaa !5
  %53 = call noundef zeroext i1 @_ZN11alglib_impl17isfinitertrmatrixEPKNS_9ae_matrixElbPNS_8ae_stateE(ptr noundef %15, i64 noundef %49, i1 noundef zeroext %51, ptr noundef %52)
  %54 = load ptr, ptr %13, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %53, ptr noundef @.str.261, ptr noundef %54)
  %55 = load ptr, ptr %11, align 8, !tbaa !5
  %56 = load i64, ptr %9, align 8, !tbaa !9
  %57 = load i64, ptr %12, align 8, !tbaa !9
  %58 = load ptr, ptr %13, align 8, !tbaa !5
  %59 = call noundef zeroext i1 @_ZN11alglib_impl20apservisfinitematrixEPKNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %55, i64 noundef %56, i64 noundef %57, ptr noundef %58)
  %60 = load ptr, ptr %13, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %59, ptr noundef @.str.262, ptr noundef %60)
  store i8 1, ptr %18, align 1, !tbaa !11
  %61 = load i64, ptr %9, align 8, !tbaa !9
  %62 = load i8, ptr %10, align 1, !tbaa !11, !range !17, !noundef !18
  %63 = trunc i8 %62 to i1
  %64 = load ptr, ptr %13, align 8, !tbaa !5
  %65 = call noundef zeroext i1 @_ZN11alglib_impl17spdmatrixcholeskyEPNS_9ae_matrixElbPNS_8ae_stateE(ptr noundef %15, i64 noundef %61, i1 noundef zeroext %63, ptr noundef %64)
  br i1 %65, label %98, label %66

66:                                               ; preds = %6
  store i64 0, ptr %16, align 8, !tbaa !9
  br label %67

67:                                               ; preds = %91, %66
  %68 = load i64, ptr %16, align 8, !tbaa !9
  %69 = load i64, ptr %9, align 8, !tbaa !9
  %70 = sub nsw i64 %69, 1
  %71 = icmp sle i64 %68, %70
  br i1 %71, label %72, label %94

72:                                               ; preds = %67
  store i64 0, ptr %17, align 8, !tbaa !9
  br label %73

73:                                               ; preds = %87, %72
  %74 = load i64, ptr %17, align 8, !tbaa !9
  %75 = load i64, ptr %12, align 8, !tbaa !9
  %76 = sub nsw i64 %75, 1
  %77 = icmp sle i64 %74, %76
  br i1 %77, label %78, label %90

78:                                               ; preds = %73
  %79 = load ptr, ptr %11, align 8, !tbaa !5
  %80 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %79, i32 0, i32 6
  %81 = load ptr, ptr %80, align 8, !tbaa !19
  %82 = load i64, ptr %16, align 8, !tbaa !9
  %83 = getelementptr inbounds ptr, ptr %81, i64 %82
  %84 = load ptr, ptr %83, align 8, !tbaa !5
  %85 = load i64, ptr %17, align 8, !tbaa !9
  %86 = getelementptr inbounds double, ptr %84, i64 %85
  store double 0.000000e+00, ptr %86, align 8, !tbaa !20
  br label %87

87:                                               ; preds = %78
  %88 = load i64, ptr %17, align 8, !tbaa !9
  %89 = add nsw i64 %88, 1
  store i64 %89, ptr %17, align 8, !tbaa !9
  br label %73, !llvm.loop !22

90:                                               ; preds = %73
  br label %91

91:                                               ; preds = %90
  %92 = load i64, ptr %16, align 8, !tbaa !9
  %93 = add nsw i64 %92, 1
  store i64 %93, ptr %16, align 8, !tbaa !9
  br label %67, !llvm.loop !24

94:                                               ; preds = %67
  store i8 0, ptr %18, align 1, !tbaa !11
  %95 = load ptr, ptr %13, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %95)
  %96 = load i8, ptr %18, align 1, !tbaa !11, !range !17, !noundef !18
  %97 = trunc i8 %96 to i1
  store i1 %97, ptr %7, align 1
  store i32 1, ptr %19, align 4
  br label %123

98:                                               ; preds = %6
  %99 = load i8, ptr %10, align 1, !tbaa !11, !range !17, !noundef !18
  %100 = trunc i8 %99 to i1
  br i1 %100, label %101, label %110

101:                                              ; preds = %98
  %102 = load i64, ptr %9, align 8, !tbaa !9
  %103 = load i64, ptr %12, align 8, !tbaa !9
  %104 = load ptr, ptr %11, align 8, !tbaa !5
  %105 = load ptr, ptr %13, align 8, !tbaa !5
  call void @_ZN11alglib_impl15rmatrixlefttrsmEllPKNS_9ae_matrixEllbblPS0_llPNS_8ae_stateE(i64 noundef %102, i64 noundef %103, ptr noundef %15, i64 noundef 0, i64 noundef 0, i1 noundef zeroext true, i1 noundef zeroext false, i64 noundef 1, ptr noundef %104, i64 noundef 0, i64 noundef 0, ptr noundef %105)
  %106 = load i64, ptr %9, align 8, !tbaa !9
  %107 = load i64, ptr %12, align 8, !tbaa !9
  %108 = load ptr, ptr %11, align 8, !tbaa !5
  %109 = load ptr, ptr %13, align 8, !tbaa !5
  call void @_ZN11alglib_impl15rmatrixlefttrsmEllPKNS_9ae_matrixEllbblPS0_llPNS_8ae_stateE(i64 noundef %106, i64 noundef %107, ptr noundef %15, i64 noundef 0, i64 noundef 0, i1 noundef zeroext true, i1 noundef zeroext false, i64 noundef 0, ptr noundef %108, i64 noundef 0, i64 noundef 0, ptr noundef %109)
  br label %119

110:                                              ; preds = %98
  %111 = load i64, ptr %9, align 8, !tbaa !9
  %112 = load i64, ptr %12, align 8, !tbaa !9
  %113 = load ptr, ptr %11, align 8, !tbaa !5
  %114 = load ptr, ptr %13, align 8, !tbaa !5
  call void @_ZN11alglib_impl15rmatrixlefttrsmEllPKNS_9ae_matrixEllbblPS0_llPNS_8ae_stateE(i64 noundef %111, i64 noundef %112, ptr noundef %15, i64 noundef 0, i64 noundef 0, i1 noundef zeroext false, i1 noundef zeroext false, i64 noundef 0, ptr noundef %113, i64 noundef 0, i64 noundef 0, ptr noundef %114)
  %115 = load i64, ptr %9, align 8, !tbaa !9
  %116 = load i64, ptr %12, align 8, !tbaa !9
  %117 = load ptr, ptr %11, align 8, !tbaa !5
  %118 = load ptr, ptr %13, align 8, !tbaa !5
  call void @_ZN11alglib_impl15rmatrixlefttrsmEllPKNS_9ae_matrixEllbblPS0_llPNS_8ae_stateE(i64 noundef %115, i64 noundef %116, ptr noundef %15, i64 noundef 0, i64 noundef 0, i1 noundef zeroext false, i1 noundef zeroext false, i64 noundef 1, ptr noundef %117, i64 noundef 0, i64 noundef 0, ptr noundef %118)
  br label %119

119:                                              ; preds = %110, %101
  %120 = load ptr, ptr %13, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %120)
  %121 = load i8, ptr %18, align 1, !tbaa !11, !range !17, !noundef !18
  %122 = trunc i8 %121 to i1
  store i1 %122, ptr %7, align 1
  store i32 1, ptr %19, align 4
  br label %123

123:                                              ; preds = %119, %94
  call void @llvm.lifetime.end.p0(i64 1, 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 80, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %14) #4
  %124 = load i1, ptr %7, align 1
  ret i1 %124
}

declare void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef, ptr noundef) #2

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) #2

declare noundef zeroext i1 @_ZN11alglib_impl20apservisfinitematrixEPKNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef, i64 noundef, i64 noundef, ptr noundef) #2

declare void @_ZN11alglib_impl19ae_matrix_init_copyEPNS_9ae_matrixEPKS0_PNS_8ae_stateEb(ptr noundef, ptr noundef, ptr noundef, i1 noundef zeroext) #2

declare void @_ZN11alglib_impl15rmatrixlefttrsmEllPKNS_9ae_matrixEllbblPS0_llPNS_8ae_stateE(i64 noundef, i64 noundef, ptr noundef, i64 noundef, i64 noundef, i1 noundef zeroext, i1 noundef zeroext, i64 noundef, ptr noundef, i64 noundef, i64 noundef, ptr noundef) #2

declare noundef zeroext i1 @_ZN11alglib_impl17isfinitertrmatrixEPKNS_9ae_matrixElbPNS_8ae_stateE(ptr noundef, i64 noundef, i1 noundef zeroext, ptr noundef) #2

declare noundef zeroext i1 @_ZN11alglib_impl17spdmatrixcholeskyEPNS_9ae_matrixElbPNS_8ae_stateE(ptr noundef, i64 noundef, i1 noundef zeroext, ptr noundef) #2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 = !{!"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 = !{i8 0, i8 2}
!18 = !{}
!19 = !{!7, !7, i64 0}
!20 = !{!21, !21, i64 0}
!21 = !{!"double", !7, i64 0}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}
!24 = distinct !{!24, !23}


; 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_frame" = type { %"struct.alglib_impl::ae_dyn_block" }
%"struct.alglib_impl::ae_dyn_block" = type { ptr, ptr, ptr, ptr }
%"struct.alglib_impl::ae_matrix" = type { i64, i64, i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.1 }
%union.anon.1 = type { ptr }

@.str.256 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.257 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.258 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.259 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.260 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.261 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.262 = external hidden unnamed_addr constant [56 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 nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN11alglib_impl19spdmatrixsolvemfastEPKNS_9ae_matrixElbPS0_lPNS_8ae_stateE(ptr noundef %0, i64 noundef %1, i1 noundef zeroext %2, ptr noundef %3, i64 noundef %4, ptr noundef %5) local_unnamed_addr #3 {
  %7 = alloca %"struct.alglib_impl::ae_frame", align 8
  %8 = alloca %"struct.alglib_impl::ae_matrix", align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %7) #4
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %8) #4
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %5, ptr noundef nonnull %7)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(80) %8, i8 0, i64 80, i1 false)
  call void @_ZN11alglib_impl19ae_matrix_init_copyEPNS_9ae_matrixEPKS0_PNS_8ae_stateEb(ptr noundef nonnull %8, ptr noundef %0, ptr noundef %5, i1 noundef zeroext true)
  %9 = icmp sgt i64 %1, 0
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %9, ptr noundef nonnull @.str.256, ptr noundef %5)
  %10 = load i64, ptr %8, align 8, !tbaa !5
  %11 = icmp sge i64 %10, %1
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %11, ptr noundef nonnull @.str.257, ptr noundef %5)
  %12 = getelementptr inbounds i8, ptr %8, i64 8
  %13 = load i64, ptr %12, align 8, !tbaa !13
  %14 = icmp sge i64 %13, %1
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %14, ptr noundef nonnull @.str.258, ptr noundef %5)
  %15 = load i64, ptr %3, align 8, !tbaa !5
  %16 = icmp sge i64 %15, %1
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %16, ptr noundef nonnull @.str.259, ptr noundef %5)
  %17 = getelementptr inbounds i8, ptr %3, i64 8
  %18 = load i64, ptr %17, align 8, !tbaa !13
  %19 = icmp sge i64 %18, %4
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %19, ptr noundef nonnull @.str.260, ptr noundef %5)
  %20 = call noundef zeroext i1 @_ZN11alglib_impl17isfinitertrmatrixEPKNS_9ae_matrixElbPNS_8ae_stateE(ptr noundef nonnull %8, i64 noundef %1, i1 noundef zeroext %2, ptr noundef %5)
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %20, ptr noundef nonnull @.str.261, ptr noundef %5)
  %21 = call noundef zeroext i1 @_ZN11alglib_impl20apservisfinitematrixEPKNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %3, i64 noundef %1, i64 noundef %4, ptr noundef %5)
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %21, ptr noundef nonnull @.str.262, ptr noundef %5)
  %22 = call noundef zeroext i1 @_ZN11alglib_impl17spdmatrixcholeskyEPNS_9ae_matrixElbPNS_8ae_stateE(ptr noundef nonnull %8, i64 noundef %1, i1 noundef zeroext %2, ptr noundef %5)
  br i1 %22, label %51, label %.preheader60

.preheader60:                                     ; preds = %6
  br i1 %9, label %.preheader.lr.ph, label %._crit_edge65

.preheader.lr.ph:                                 ; preds = %.preheader60
  %.not.not5961 = icmp sgt i64 %4, 0
  %23 = getelementptr inbounds i8, ptr %3, i64 72
  br i1 %.not.not5961, label %.preheader.us.preheader, label %._crit_edge65

.preheader.us.preheader:                          ; preds = %.preheader.lr.ph
  %xtraiter = and i64 %4, 3
  %24 = icmp ult i64 %4, 4
  %unroll_iter = and i64 %4, 9223372036854775804
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br label %.preheader.us

.preheader.us:                                    ; preds = %.preheader.us.preheader, %._crit_edge.us
  %.05764.us = phi i64 [ %50, %._crit_edge.us ], [ 0, %.preheader.us.preheader ]
  br i1 %24, label %._crit_edge.us.unr-lcssa, label %.preheader.us.new

.preheader.us.new:                                ; preds = %.preheader.us, %.preheader.us.new
  %.062.us = phi i64 [ %44, %.preheader.us.new ], [ 0, %.preheader.us ]
  %niter = phi i64 [ %niter.next.3, %.preheader.us.new ], [ 0, %.preheader.us ]
  %25 = load ptr, ptr %23, align 8, !tbaa !14
  %26 = getelementptr inbounds ptr, ptr %25, i64 %.05764.us
  %27 = load ptr, ptr %26, align 8, !tbaa !15
  %28 = getelementptr inbounds double, ptr %27, i64 %.062.us
  store double 0.000000e+00, ptr %28, align 8, !tbaa !16
  %29 = or disjoint i64 %.062.us, 1
  %30 = load ptr, ptr %23, align 8, !tbaa !14
  %31 = getelementptr inbounds ptr, ptr %30, i64 %.05764.us
  %32 = load ptr, ptr %31, align 8, !tbaa !15
  %33 = getelementptr inbounds double, ptr %32, i64 %29
  store double 0.000000e+00, ptr %33, align 8, !tbaa !16
  %34 = or disjoint i64 %.062.us, 2
  %35 = load ptr, ptr %23, align 8, !tbaa !14
  %36 = getelementptr inbounds ptr, ptr %35, i64 %.05764.us
  %37 = load ptr, ptr %36, align 8, !tbaa !15
  %38 = getelementptr inbounds double, ptr %37, i64 %34
  store double 0.000000e+00, ptr %38, align 8, !tbaa !16
  %39 = or disjoint i64 %.062.us, 3
  %40 = load ptr, ptr %23, align 8, !tbaa !14
  %41 = getelementptr inbounds ptr, ptr %40, i64 %.05764.us
  %42 = load ptr, ptr %41, align 8, !tbaa !15
  %43 = getelementptr inbounds double, ptr %42, i64 %39
  store double 0.000000e+00, ptr %43, align 8, !tbaa !16
  %44 = add nuw nsw i64 %.062.us, 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_edge.us.unr-lcssa, label %.preheader.us.new, !llvm.loop !18

._crit_edge.us.unr-lcssa:                         ; preds = %.preheader.us.new, %.preheader.us
  %.062.us.unr = phi i64 [ 0, %.preheader.us ], [ %44, %.preheader.us.new ]
  br i1 %lcmp.mod.not, label %._crit_edge.us, label %.epil.preheader

.epil.preheader:                                  ; preds = %._crit_edge.us.unr-lcssa, %.epil.preheader
  %.062.us.epil = phi i64 [ %49, %.epil.preheader ], [ %.062.us.unr, %._crit_edge.us.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %._crit_edge.us.unr-lcssa ]
  %45 = load ptr, ptr %23, align 8, !tbaa !14
  %46 = getelementptr inbounds ptr, ptr %45, i64 %.05764.us
  %47 = load ptr, ptr %46, align 8, !tbaa !15
  %48 = getelementptr inbounds double, ptr %47, i64 %.062.us.epil
  store double 0.000000e+00, ptr %48, align 8, !tbaa !16
  %49 = add nuw nsw i64 %.062.us.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_edge.us, label %.epil.preheader, !llvm.loop !20

._crit_edge.us:                                   ; preds = %.epil.preheader, %._crit_edge.us.unr-lcssa
  %50 = add nuw nsw i64 %.05764.us, 1
  %exitcond67.not = icmp eq i64 %50, %1
  br i1 %exitcond67.not, label %._crit_edge65, label %.preheader.us, !llvm.loop !22

51:                                               ; preds = %6
  br i1 %2, label %52, label %53

52:                                               ; preds = %51
  call void @_ZN11alglib_impl15rmatrixlefttrsmEllPKNS_9ae_matrixEllbblPS0_llPNS_8ae_stateE(i64 noundef %1, i64 noundef %4, ptr noundef nonnull %8, i64 noundef 0, i64 noundef 0, i1 noundef zeroext true, i1 noundef zeroext false, i64 noundef 1, ptr noundef nonnull %3, i64 noundef 0, i64 noundef 0, ptr noundef %5)
  call void @_ZN11alglib_impl15rmatrixlefttrsmEllPKNS_9ae_matrixEllbblPS0_llPNS_8ae_stateE(i64 noundef %1, i64 noundef %4, ptr noundef nonnull %8, i64 noundef 0, i64 noundef 0, i1 noundef zeroext true, i1 noundef zeroext false, i64 noundef 0, ptr noundef nonnull %3, i64 noundef 0, i64 noundef 0, ptr noundef %5)
  br label %._crit_edge65

53:                                               ; preds = %51
  call void @_ZN11alglib_impl15rmatrixlefttrsmEllPKNS_9ae_matrixEllbblPS0_llPNS_8ae_stateE(i64 noundef %1, i64 noundef %4, ptr noundef nonnull %8, i64 noundef 0, i64 noundef 0, i1 noundef zeroext false, i1 noundef zeroext false, i64 noundef 0, ptr noundef nonnull %3, i64 noundef 0, i64 noundef 0, ptr noundef %5)
  call void @_ZN11alglib_impl15rmatrixlefttrsmEllPKNS_9ae_matrixEllbblPS0_llPNS_8ae_stateE(i64 noundef %1, i64 noundef %4, ptr noundef nonnull %8, i64 noundef 0, i64 noundef 0, i1 noundef zeroext false, i1 noundef zeroext false, i64 noundef 1, ptr noundef nonnull %3, i64 noundef 0, i64 noundef 0, ptr noundef %5)
  br label %._crit_edge65

._crit_edge65:                                    ; preds = %._crit_edge.us, %52, %53, %.preheader60, %.preheader.lr.ph
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %5)
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %8) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #4
  ret i1 %22
}

declare void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef, ptr noundef) local_unnamed_addr #2

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) local_unnamed_addr #2

declare noundef zeroext i1 @_ZN11alglib_impl20apservisfinitematrixEPKNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef, i64 noundef, i64 noundef, ptr noundef) local_unnamed_addr #2

declare void @_ZN11alglib_impl19ae_matrix_init_copyEPNS_9ae_matrixEPKS0_PNS_8ae_stateEb(ptr noundef, ptr noundef, ptr noundef, i1 noundef zeroext) local_unnamed_addr #2

declare void @_ZN11alglib_impl15rmatrixlefttrsmEllPKNS_9ae_matrixEllbblPS0_llPNS_8ae_stateE(i64 noundef, i64 noundef, ptr noundef, i64 noundef, i64 noundef, i1 noundef zeroext, i1 noundef zeroext, i64 noundef, ptr noundef, i64 noundef, i64 noundef, ptr noundef) local_unnamed_addr #2

declare noundef zeroext i1 @_ZN11alglib_impl17isfinitertrmatrixEPKNS_9ae_matrixElbPNS_8ae_stateE(ptr noundef, i64 noundef, i1 noundef zeroext, ptr noundef) local_unnamed_addr #2

declare noundef zeroext i1 @_ZN11alglib_impl17spdmatrixcholeskyEPNS_9ae_matrixElbPNS_8ae_stateE(ptr noundef, i64 noundef, i1 noundef zeroext, ptr noundef) local_unnamed_addr #2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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, !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 = !{!8, !8, i64 0}
!15 = !{!12, !12, i64 0}
!16 = !{!17, !17, i64 0}
!17 = !{!"double", !8, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.unroll.disable"}
!22 = distinct !{!22, !19}


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