; LLVM IR from venumb/ZSPACE :: cpp/depends/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.0 }
%union.anon.0 = type { ptr }
%"struct.alglib_impl::densesolverreport" = type { double, double }

; 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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl15spdmatrixsolvemEPNS_9ae_matrixElbS1_lPlPNS_17densesolverreportES1_PNS_8ae_stateE(ptr noundef %0, i64 noundef %1, i1 noundef zeroext %2, ptr noundef %3, i64 noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef %8) #2 {
  %10 = alloca ptr, align 8
  %11 = alloca i64, align 8
  %12 = alloca i8, align 1
  %13 = alloca ptr, align 8
  %14 = alloca i64, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca %"struct.alglib_impl::ae_frame", align 8
  %20 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %21 = alloca i64, align 8
  %22 = alloca i64, align 8
  %23 = alloca i64, align 8
  %24 = alloca i64, align 8
  %25 = alloca i32, align 4
  store ptr %0, ptr %10, align 8, !tbaa !5
  store i64 %1, ptr %11, align 8, !tbaa !9
  %26 = zext i1 %2 to i8
  store i8 %26, ptr %12, align 1, !tbaa !11
  store ptr %3, ptr %13, align 8, !tbaa !5
  store i64 %4, ptr %14, align 8, !tbaa !9
  store ptr %5, ptr %15, align 8, !tbaa !5
  store ptr %6, ptr %16, align 8, !tbaa !5
  store ptr %7, ptr %17, align 8, !tbaa !5
  store ptr %8, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %19) #4
  call void @llvm.lifetime.start.p0(i64 80, ptr %20) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #4
  %27 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %27, ptr noundef %19)
  call void @llvm.memset.p0.i64(ptr align 8 %20, i8 0, i64 80, i1 false)
  %28 = load ptr, ptr %15, align 8, !tbaa !5
  store i64 0, ptr %28, align 8, !tbaa !9
  %29 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl24_densesolverreport_clearEPv(ptr noundef %29)
  %30 = load ptr, ptr %17, align 8, !tbaa !5
  call void @_ZN11alglib_impl15ae_matrix_clearEPNS_9ae_matrixE(ptr noundef %30)
  %31 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef %20, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %31, i1 noundef zeroext true)
  %32 = load i64, ptr %11, align 8, !tbaa !9
  %33 = icmp sle i64 %32, 0
  br i1 %33, label %37, label %34

34:                                               ; preds = %9
  %35 = load i64, ptr %14, align 8, !tbaa !9
  %36 = icmp sle i64 %35, 0
  br i1 %36, label %37, label %40

37:                                               ; preds = %34, %9
  %38 = load ptr, ptr %15, align 8, !tbaa !5
  store i64 -1, ptr %38, align 8, !tbaa !9
  %39 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %39)
  store i32 1, ptr %25, align 4
  br label %138

40:                                               ; preds = %34
  %41 = load i64, ptr %11, align 8, !tbaa !9
  %42 = load i64, ptr %11, align 8, !tbaa !9
  %43 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %20, i64 noundef %41, i64 noundef %42, ptr noundef %43)
  store i64 0, ptr %21, align 8, !tbaa !9
  br label %44

44:                                               ; preds = %77, %40
  %45 = load i64, ptr %21, align 8, !tbaa !9
  %46 = load i64, ptr %11, align 8, !tbaa !9
  %47 = sub nsw i64 %46, 1
  %48 = icmp sle i64 %45, %47
  br i1 %48, label %49, label %80

49:                                               ; preds = %44
  %50 = load i8, ptr %12, align 1, !tbaa !11, !range !13, !noundef !14
  %51 = trunc i8 %50 to i1
  br i1 %51, label %52, label %56

52:                                               ; preds = %49
  %53 = load i64, ptr %21, align 8, !tbaa !9
  store i64 %53, ptr %23, align 8, !tbaa !9
  %54 = load i64, ptr %11, align 8, !tbaa !9
  %55 = sub nsw i64 %54, 1
  store i64 %55, ptr %24, align 8, !tbaa !9
  br label %58

56:                                               ; preds = %49
  store i64 0, ptr %23, align 8, !tbaa !9
  %57 = load i64, ptr %21, align 8, !tbaa !9
  store i64 %57, ptr %24, align 8, !tbaa !9
  br label %58

58:                                               ; preds = %56, %52
  %59 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %20, i32 0, i32 6
  %60 = load ptr, ptr %59, align 8, !tbaa !15
  %61 = load i64, ptr %21, align 8, !tbaa !9
  %62 = getelementptr inbounds ptr, ptr %60, i64 %61
  %63 = load ptr, ptr %62, align 8, !tbaa !5
  %64 = load i64, ptr %23, align 8, !tbaa !9
  %65 = getelementptr inbounds double, ptr %63, i64 %64
  %66 = load ptr, ptr %10, align 8, !tbaa !5
  %67 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %66, i32 0, i32 6
  %68 = load ptr, ptr %67, align 8, !tbaa !15
  %69 = load i64, ptr %21, align 8, !tbaa !9
  %70 = getelementptr inbounds ptr, ptr %68, i64 %69
  %71 = load ptr, ptr %70, align 8, !tbaa !5
  %72 = load i64, ptr %23, align 8, !tbaa !9
  %73 = getelementptr inbounds double, ptr %71, i64 %72
  %74 = load i64, ptr %23, align 8, !tbaa !9
  %75 = load i64, ptr %24, align 8, !tbaa !9
  %76 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef %74, i64 noundef %75)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %65, i64 noundef 1, ptr noundef %73, i64 noundef 1, i64 noundef %76)
  br label %77

77:                                               ; preds = %58
  %78 = load i64, ptr %21, align 8, !tbaa !9
  %79 = add nsw i64 %78, 1
  store i64 %79, ptr %21, align 8, !tbaa !9
  br label %44, !llvm.loop !16

80:                                               ; preds = %44
  %81 = load i64, ptr %11, align 8, !tbaa !9
  %82 = load i8, ptr %12, align 1, !tbaa !11, !range !13, !noundef !14
  %83 = trunc i8 %82 to i1
  %84 = load ptr, ptr %18, align 8, !tbaa !5
  %85 = call noundef zeroext i1 @_ZN11alglib_impl17spdmatrixcholeskyEPNS_9ae_matrixElbPNS_8ae_stateE(ptr noundef %20, i64 noundef %81, i1 noundef zeroext %83, ptr noundef %84)
  br i1 %85, label %125, label %86

86:                                               ; preds = %80
  %87 = load ptr, ptr %17, align 8, !tbaa !5
  %88 = load i64, ptr %11, align 8, !tbaa !9
  %89 = load i64, ptr %14, align 8, !tbaa !9
  %90 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %87, i64 noundef %88, i64 noundef %89, ptr noundef %90)
  store i64 0, ptr %21, align 8, !tbaa !9
  br label %91

91:                                               ; preds = %115, %86
  %92 = load i64, ptr %21, align 8, !tbaa !9
  %93 = load i64, ptr %11, align 8, !tbaa !9
  %94 = sub nsw i64 %93, 1
  %95 = icmp sle i64 %92, %94
  br i1 %95, label %96, label %118

96:                                               ; preds = %91
  store i64 0, ptr %22, align 8, !tbaa !9
  br label %97

97:                                               ; preds = %111, %96
  %98 = load i64, ptr %22, align 8, !tbaa !9
  %99 = load i64, ptr %14, align 8, !tbaa !9
  %100 = sub nsw i64 %99, 1
  %101 = icmp sle i64 %98, %100
  br i1 %101, label %102, label %114

102:                                              ; preds = %97
  %103 = load ptr, ptr %17, align 8, !tbaa !5
  %104 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %103, i32 0, i32 6
  %105 = load ptr, ptr %104, align 8, !tbaa !15
  %106 = load i64, ptr %21, align 8, !tbaa !9
  %107 = getelementptr inbounds ptr, ptr %105, i64 %106
  %108 = load ptr, ptr %107, align 8, !tbaa !5
  %109 = load i64, ptr %22, align 8, !tbaa !9
  %110 = getelementptr inbounds double, ptr %108, i64 %109
  store double 0.000000e+00, ptr %110, align 8, !tbaa !18
  br label %111

111:                                              ; preds = %102
  %112 = load i64, ptr %22, align 8, !tbaa !9
  %113 = add nsw i64 %112, 1
  store i64 %113, ptr %22, align 8, !tbaa !9
  br label %97, !llvm.loop !20

114:                                              ; preds = %97
  br label %115

115:                                              ; preds = %114
  %116 = load i64, ptr %21, align 8, !tbaa !9
  %117 = add nsw i64 %116, 1
  store i64 %117, ptr %21, align 8, !tbaa !9
  br label %91, !llvm.loop !21

118:                                              ; preds = %91
  %119 = load ptr, ptr %16, align 8, !tbaa !5
  %120 = getelementptr inbounds %"struct.alglib_impl::densesolverreport", ptr %119, i32 0, i32 0
  store double 0.000000e+00, ptr %120, align 8, !tbaa !22
  %121 = load ptr, ptr %16, align 8, !tbaa !5
  %122 = getelementptr inbounds %"struct.alglib_impl::densesolverreport", ptr %121, i32 0, i32 1
  store double 0.000000e+00, ptr %122, align 8, !tbaa !24
  %123 = load ptr, ptr %15, align 8, !tbaa !5
  store i64 -3, ptr %123, align 8, !tbaa !9
  %124 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %124)
  store i32 1, ptr %25, align 4
  br label %138

125:                                              ; preds = %80
  %126 = load ptr, ptr %15, align 8, !tbaa !5
  store i64 1, ptr %126, align 8, !tbaa !9
  %127 = load i64, ptr %11, align 8, !tbaa !9
  %128 = load i8, ptr %12, align 1, !tbaa !11, !range !13, !noundef !14
  %129 = trunc i8 %128 to i1
  %130 = load ptr, ptr %10, align 8, !tbaa !5
  %131 = load ptr, ptr %13, align 8, !tbaa !5
  %132 = load i64, ptr %14, align 8, !tbaa !9
  %133 = load ptr, ptr %15, align 8, !tbaa !5
  %134 = load ptr, ptr %16, align 8, !tbaa !5
  %135 = load ptr, ptr %17, align 8, !tbaa !5
  %136 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_implL49directdensesolvers_spdmatrixcholeskysolveinternalEPNS_9ae_matrixElbS1_bS1_lPlPNS_17densesolverreportES1_PNS_8ae_stateE(ptr noundef %20, i64 noundef %127, i1 noundef zeroext %129, ptr noundef %130, i1 noundef zeroext true, ptr noundef %131, i64 noundef %132, ptr noundef %133, ptr noundef %134, ptr noundef %135, ptr noundef %136)
  %137 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %137)
  store i32 0, ptr %25, align 4
  br label %138

138:                                              ; preds = %125, %118, %37
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 80, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %19) #4
  %139 = load i32, ptr %25, align 4
  switch i32 %139, label %141 [
    i32 0, label %140
    i32 1, label %140
  ]

140:                                              ; preds = %138, %138
  ret void

141:                                              ; preds = %138
  unreachable
}

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl24_densesolverreport_clearEPv(ptr noundef) #2

declare void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef, i64 noundef, i64 noundef, i64 noundef, ptr noundef, i1 noundef zeroext) #3

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) #3

declare void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef, i64 noundef, i64 noundef, ptr noundef) #3

declare void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef, i64 noundef, ptr noundef, i64 noundef, i64 noundef) #3

declare noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef, i64 noundef) #3

declare void @_ZN11alglib_impl15ae_matrix_clearEPNS_9ae_matrixE(ptr noundef) #3

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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 = { "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 = !{i8 0, i8 2}
!14 = !{}
!15 = !{!7, !7, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = !{!19, !19, i64 0}
!19 = !{!"double", !7, i64 0}
!20 = distinct !{!20, !17}
!21 = distinct !{!21, !17}
!22 = !{!23, !19, i64 0}
!23 = !{!"_ZTSN11alglib_impl17densesolverreportE", !19, i64 0, !19, i64 8}
!24 = !{!23, !19, i64 8}


; 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.0 }
%union.anon.0 = type { ptr }

; 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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl15spdmatrixsolvemEPNS_9ae_matrixElbS1_lPlPNS_17densesolverreportES1_PNS_8ae_stateE(ptr noundef %0, i64 noundef %1, i1 noundef zeroext %2, ptr noundef %3, i64 noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef %8) local_unnamed_addr #2 {
  %10 = alloca %"struct.alglib_impl::ae_frame", align 8
  %11 = alloca %"struct.alglib_impl::ae_matrix", align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %10) #4
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %11) #4
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %8, ptr noundef nonnull %10)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(80) %11, i8 0, i64 80, i1 false)
  store i64 0, ptr %5, align 8, !tbaa !5
  call void @_ZN11alglib_impl24_densesolverreport_clearEPv(ptr noundef %6)
  call void @_ZN11alglib_impl15ae_matrix_clearEPNS_9ae_matrixE(ptr noundef %7)
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef nonnull %11, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %8, i1 noundef zeroext true)
  %12 = icmp slt i64 %1, 1
  %13 = icmp slt i64 %4, 1
  %or.cond = or i1 %12, %13
  br i1 %or.cond, label %14, label %15

14:                                               ; preds = %9
  store i64 -1, ptr %5, align 8, !tbaa !5
  br label %68

15:                                               ; preds = %9
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %11, i64 noundef %1, i64 noundef %1, ptr noundef %8)
  %16 = add nsw i64 %1, -1
  %17 = getelementptr inbounds i8, ptr %11, i64 72
  %18 = getelementptr inbounds i8, ptr %0, i64 72
  br i1 %2, label %.split.us, label %.split

.split.us:                                        ; preds = %15, %.split.us
  %.05966.us = phi i64 [ %28, %.split.us ], [ 0, %15 ]
  %19 = load ptr, ptr %17, align 8, !tbaa !9
  %20 = getelementptr inbounds ptr, ptr %19, i64 %.05966.us
  %21 = load ptr, ptr %20, align 8, !tbaa !10
  %22 = getelementptr inbounds double, ptr %21, i64 %.05966.us
  %23 = load ptr, ptr %18, align 8, !tbaa !9
  %24 = getelementptr inbounds ptr, ptr %23, i64 %.05966.us
  %25 = load ptr, ptr %24, align 8, !tbaa !10
  %26 = getelementptr inbounds double, ptr %25, i64 %.05966.us
  %27 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef %.05966.us, i64 noundef %16)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %22, i64 noundef 1, ptr noundef %26, i64 noundef 1, i64 noundef %27)
  %28 = add nuw nsw i64 %.05966.us, 1
  %exitcond76.not = icmp eq i64 %28, %1
  br i1 %exitcond76.not, label %.split68.us, label %.split.us, !llvm.loop !12

.split:                                           ; preds = %15, %.split
  %.05966 = phi i64 [ %36, %.split ], [ 0, %15 ]
  %29 = load ptr, ptr %17, align 8, !tbaa !9
  %30 = getelementptr inbounds ptr, ptr %29, i64 %.05966
  %31 = load ptr, ptr %30, align 8, !tbaa !10
  %32 = load ptr, ptr %18, align 8, !tbaa !9
  %33 = getelementptr inbounds ptr, ptr %32, i64 %.05966
  %34 = load ptr, ptr %33, align 8, !tbaa !10
  %35 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %.05966)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %31, i64 noundef 1, ptr noundef %34, i64 noundef 1, i64 noundef %35)
  %36 = add nuw nsw i64 %.05966, 1
  %exitcond.not = icmp eq i64 %36, %1
  br i1 %exitcond.not, label %.split68.us, label %.split, !llvm.loop !12

.split68.us:                                      ; preds = %.split, %.split.us
  %37 = call noundef zeroext i1 @_ZN11alglib_impl17spdmatrixcholeskyEPNS_9ae_matrixElbPNS_8ae_stateE(ptr noundef nonnull %11, i64 noundef %1, i1 noundef zeroext %2, ptr noundef %8)
  br i1 %37, label %67, label %38

38:                                               ; preds = %.split68.us
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %7, i64 noundef %1, i64 noundef %4, ptr noundef %8)
  %.not.not6471 = icmp sgt i64 %1, 0
  br i1 %.not.not6471, label %.preheader.lr.ph, label %._crit_edge73

.preheader.lr.ph:                                 ; preds = %38
  %.not.not6569 = icmp sgt i64 %4, 0
  %39 = getelementptr inbounds i8, ptr %7, i64 72
  br i1 %.not.not6569, label %.preheader.us.preheader, label %._crit_edge73

.preheader.us.preheader:                          ; preds = %.preheader.lr.ph
  %xtraiter = and i64 %4, 3
  %40 = 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
  %.172.us = phi i64 [ %66, %._crit_edge.us ], [ 0, %.preheader.us.preheader ]
  br i1 %40, label %._crit_edge.us.unr-lcssa, label %.preheader.us.new

.preheader.us.new:                                ; preds = %.preheader.us, %.preheader.us.new
  %.05870.us = phi i64 [ %60, %.preheader.us.new ], [ 0, %.preheader.us ]
  %niter = phi i64 [ %niter.next.3, %.preheader.us.new ], [ 0, %.preheader.us ]
  %41 = load ptr, ptr %39, align 8, !tbaa !9
  %42 = getelementptr inbounds ptr, ptr %41, i64 %.172.us
  %43 = load ptr, ptr %42, align 8, !tbaa !10
  %44 = getelementptr inbounds double, ptr %43, i64 %.05870.us
  store double 0.000000e+00, ptr %44, align 8, !tbaa !14
  %45 = or disjoint i64 %.05870.us, 1
  %46 = load ptr, ptr %39, align 8, !tbaa !9
  %47 = getelementptr inbounds ptr, ptr %46, i64 %.172.us
  %48 = load ptr, ptr %47, align 8, !tbaa !10
  %49 = getelementptr inbounds double, ptr %48, i64 %45
  store double 0.000000e+00, ptr %49, align 8, !tbaa !14
  %50 = or disjoint i64 %.05870.us, 2
  %51 = load ptr, ptr %39, align 8, !tbaa !9
  %52 = getelementptr inbounds ptr, ptr %51, i64 %.172.us
  %53 = load ptr, ptr %52, align 8, !tbaa !10
  %54 = getelementptr inbounds double, ptr %53, i64 %50
  store double 0.000000e+00, ptr %54, align 8, !tbaa !14
  %55 = or disjoint i64 %.05870.us, 3
  %56 = load ptr, ptr %39, align 8, !tbaa !9
  %57 = getelementptr inbounds ptr, ptr %56, i64 %.172.us
  %58 = load ptr, ptr %57, align 8, !tbaa !10
  %59 = getelementptr inbounds double, ptr %58, i64 %55
  store double 0.000000e+00, ptr %59, align 8, !tbaa !14
  %60 = add nuw nsw i64 %.05870.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 !16

._crit_edge.us.unr-lcssa:                         ; preds = %.preheader.us.new, %.preheader.us
  %.05870.us.unr = phi i64 [ 0, %.preheader.us ], [ %60, %.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
  %.05870.us.epil = phi i64 [ %65, %.epil.preheader ], [ %.05870.us.unr, %._crit_edge.us.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %._crit_edge.us.unr-lcssa ]
  %61 = load ptr, ptr %39, align 8, !tbaa !9
  %62 = getelementptr inbounds ptr, ptr %61, i64 %.172.us
  %63 = load ptr, ptr %62, align 8, !tbaa !10
  %64 = getelementptr inbounds double, ptr %63, i64 %.05870.us.epil
  store double 0.000000e+00, ptr %64, align 8, !tbaa !14
  %65 = add nuw nsw i64 %.05870.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 !17

._crit_edge.us:                                   ; preds = %.epil.preheader, %._crit_edge.us.unr-lcssa
  %66 = add nuw nsw i64 %.172.us, 1
  %exitcond78.not = icmp eq i64 %66, %1
  br i1 %exitcond78.not, label %._crit_edge73, label %.preheader.us, !llvm.loop !19

._crit_edge73:                                    ; preds = %._crit_edge.us, %.preheader.lr.ph, %38
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %6, i8 0, i64 16, i1 false)
  store i64 -3, ptr %5, align 8, !tbaa !5
  br label %68

67:                                               ; preds = %.split68.us
  store i64 1, ptr %5, align 8, !tbaa !5
  call void @_ZN11alglib_implL49directdensesolvers_spdmatrixcholeskysolveinternalEPNS_9ae_matrixElbS1_bS1_lPlPNS_17densesolverreportES1_PNS_8ae_stateE(ptr noundef nonnull %11, i64 noundef %1, i1 noundef zeroext %2, ptr noundef nonnull %0, i1 noundef zeroext true, ptr noundef %3, i64 noundef %4, ptr noundef nonnull %5, ptr noundef %6, ptr noundef %7, ptr noundef %8)
  br label %68

68:                                               ; preds = %67, %._crit_edge73, %14
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %8)
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %11) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #4
  ret void
}

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl24_densesolverreport_clearEPv(ptr noundef) local_unnamed_addr #2

declare void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef, i64 noundef, i64 noundef, i64 noundef, ptr noundef, i1 noundef zeroext) local_unnamed_addr #3

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) local_unnamed_addr #3

declare void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef, i64 noundef, i64 noundef, ptr noundef) local_unnamed_addr #3

declare void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef, i64 noundef, ptr noundef, i64 noundef, i64 noundef) local_unnamed_addr #3

declare noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef, i64 noundef) local_unnamed_addr #3

declare void @_ZN11alglib_impl15ae_matrix_clearEPNS_9ae_matrixE(ptr noundef) local_unnamed_addr #3

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN11alglib_implL49directdensesolvers_spdmatrixcholeskysolveinternalEPNS_9ae_matrixElbS1_bS1_lPlPNS_17densesolverreportES1_PNS_8ae_stateE(ptr noundef, i64 noundef, i1 noundef zeroext, ptr noundef, i1 noundef zeroext, ptr noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef, 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 = { 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 = { "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 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"any pointer", !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = !{!15, !15, i64 0}
!15 = !{!"double", !7, i64 0}
!16 = distinct !{!16, !13}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.unroll.disable"}
!19 = distinct !{!19, !13}


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