; LLVM IR from venumb/ZSPACE :: cpp/depends/alglib/cpp/src (dataanalysis)

; 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_matrix" = type { i64, i64, i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.0 }
%"struct.alglib_impl::ae_dyn_block" = type { ptr, ptr, ptr, ptr }
%union.anon.0 = type { ptr }
%"struct.alglib_impl::clusterizerstate" = type { i64, i64, i64, %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", i64, i64, i64, i64, i8, i64, %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::apbuffers", %"struct.alglib_impl::kmeansbuffers" }
%"struct.alglib_impl::apbuffers" = type { %"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_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_vector" = type { i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.1 }
%union.anon.1 = type { ptr }
%"struct.alglib_impl::kmeansbuffers" = type { %"struct.alglib_impl::ae_matrix", %"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::apbuffers", %"struct.alglib_impl::ae_shared_pool" }
%"struct.alglib_impl::ae_shared_pool" = type { %"struct.alglib_impl::ae_lock", ptr, ptr, ptr, ptr, i64, ptr, ptr, ptr, %"struct.alglib_impl::ae_dyn_block" }
%"struct.alglib_impl::ae_lock" = type { ptr, %"struct.alglib_impl::ae_dyn_block", i8 }

@.str.402 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.403 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.404 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.405 = external hidden unnamed_addr constant [71 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 void @_ZN11alglib_impl23clusterizersetdistancesEPNS_16clusterizerstateEPNS_9ae_matrixElbPNS_8ae_stateE(ptr noundef %0, ptr noundef %1, i64 noundef %2, i1 noundef zeroext %3, ptr noundef %4) #2 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i64, align 8
  %9 = alloca i8, align 1
  %10 = alloca ptr, align 8
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store i64 %2, ptr %8, align 8, !tbaa !9
  %15 = zext i1 %3 to i8
  store i8 %15, ptr %9, align 1, !tbaa !11
  store ptr %4, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #3
  %16 = load i64, ptr %8, align 8, !tbaa !9
  %17 = icmp sge i64 %16, 0
  %18 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %17, ptr noundef @.str.402, ptr noundef %18)
  %19 = load ptr, ptr %7, align 8, !tbaa !5
  %20 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %19, i32 0, i32 0
  %21 = load i64, ptr %20, align 8, !tbaa !13
  %22 = load i64, ptr %8, align 8, !tbaa !9
  %23 = icmp sge i64 %21, %22
  %24 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %23, ptr noundef @.str.403, ptr noundef %24)
  %25 = load ptr, ptr %7, align 8, !tbaa !5
  %26 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %25, i32 0, i32 1
  %27 = load i64, ptr %26, align 8, !tbaa !16
  %28 = load i64, ptr %8, align 8, !tbaa !9
  %29 = icmp sge i64 %27, %28
  %30 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %29, ptr noundef @.str.404, ptr noundef %30)
  %31 = load i64, ptr %8, align 8, !tbaa !9
  %32 = load ptr, ptr %6, align 8, !tbaa !5
  %33 = getelementptr inbounds %"struct.alglib_impl::clusterizerstate", ptr %32, i32 0, i32 0
  store i64 %31, ptr %33, align 8, !tbaa !17
  %34 = load ptr, ptr %6, align 8, !tbaa !5
  %35 = getelementptr inbounds %"struct.alglib_impl::clusterizerstate", ptr %34, i32 0, i32 1
  store i64 0, ptr %35, align 8, !tbaa !24
  %36 = load ptr, ptr %6, align 8, !tbaa !5
  %37 = getelementptr inbounds %"struct.alglib_impl::clusterizerstate", ptr %36, i32 0, i32 2
  store i64 -1, ptr %37, align 8, !tbaa !25
  %38 = load ptr, ptr %6, align 8, !tbaa !5
  %39 = getelementptr inbounds %"struct.alglib_impl::clusterizerstate", ptr %38, i32 0, i32 4
  %40 = load i64, ptr %8, align 8, !tbaa !9
  %41 = load i64, ptr %8, align 8, !tbaa !9
  %42 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl23rmatrixsetlengthatleastEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %39, i64 noundef %40, i64 noundef %41, ptr noundef %42)
  store i64 0, ptr %11, align 8, !tbaa !9
  br label %43

43:                                               ; preds = %140, %5
  %44 = load i64, ptr %11, align 8, !tbaa !9
  %45 = load i64, ptr %8, align 8, !tbaa !9
  %46 = sub nsw i64 %45, 1
  %47 = icmp sle i64 %44, %46
  br i1 %47, label %48, label %143

48:                                               ; preds = %43
  %49 = load i8, ptr %9, align 1, !tbaa !11, !range !26, !noundef !27
  %50 = trunc i8 %49 to i1
  br i1 %50, label %51, label %56

51:                                               ; preds = %48
  %52 = load i64, ptr %11, align 8, !tbaa !9
  %53 = add nsw i64 %52, 1
  store i64 %53, ptr %13, align 8, !tbaa !9
  %54 = load i64, ptr %8, align 8, !tbaa !9
  %55 = sub nsw i64 %54, 1
  store i64 %55, ptr %14, align 8, !tbaa !9
  br label %59

56:                                               ; preds = %48
  store i64 0, ptr %13, align 8, !tbaa !9
  %57 = load i64, ptr %11, align 8, !tbaa !9
  %58 = sub nsw i64 %57, 1
  store i64 %58, ptr %14, align 8, !tbaa !9
  br label %59

59:                                               ; preds = %56, %51
  %60 = load i64, ptr %13, align 8, !tbaa !9
  store i64 %60, ptr %12, align 8, !tbaa !9
  br label %61

61:                                               ; preds = %127, %59
  %62 = load i64, ptr %12, align 8, !tbaa !9
  %63 = load i64, ptr %14, align 8, !tbaa !9
  %64 = icmp sle i64 %62, %63
  br i1 %64, label %65, label %130

65:                                               ; preds = %61
  %66 = load ptr, ptr %7, 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 !28
  %69 = load i64, ptr %11, 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 %12, align 8, !tbaa !9
  %73 = getelementptr inbounds double, ptr %71, i64 %72
  %74 = load double, ptr %73, align 8, !tbaa !29
  %75 = load ptr, ptr %10, align 8, !tbaa !5
  %76 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %74, ptr noundef %75)
  br i1 %76, label %77, label %88

77:                                               ; preds = %65
  %78 = load ptr, ptr %7, align 8, !tbaa !5
  %79 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %78, i32 0, i32 6
  %80 = load ptr, ptr %79, align 8, !tbaa !28
  %81 = load i64, ptr %11, align 8, !tbaa !9
  %82 = getelementptr inbounds ptr, ptr %80, i64 %81
  %83 = load ptr, ptr %82, align 8, !tbaa !5
  %84 = load i64, ptr %12, align 8, !tbaa !9
  %85 = getelementptr inbounds double, ptr %83, i64 %84
  %86 = load double, ptr %85, align 8, !tbaa !29
  %87 = call noundef zeroext i1 @_ZN11alglib_impl16ae_fp_greater_eqEdd(double noundef %86, double noundef 0.000000e+00)
  br label %88

88:                                               ; preds = %77, %65
  %89 = phi i1 [ false, %65 ], [ %87, %77 ]
  %90 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %89, ptr noundef @.str.405, ptr noundef %90)
  %91 = load ptr, ptr %7, align 8, !tbaa !5
  %92 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %91, i32 0, i32 6
  %93 = load ptr, ptr %92, align 8, !tbaa !28
  %94 = load i64, ptr %11, align 8, !tbaa !9
  %95 = getelementptr inbounds ptr, ptr %93, i64 %94
  %96 = load ptr, ptr %95, align 8, !tbaa !5
  %97 = load i64, ptr %12, align 8, !tbaa !9
  %98 = getelementptr inbounds double, ptr %96, i64 %97
  %99 = load double, ptr %98, align 8, !tbaa !29
  %100 = load ptr, ptr %6, align 8, !tbaa !5
  %101 = getelementptr inbounds %"struct.alglib_impl::clusterizerstate", ptr %100, i32 0, i32 4
  %102 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %101, i32 0, i32 6
  %103 = load ptr, ptr %102, align 8, !tbaa !28
  %104 = load i64, ptr %11, align 8, !tbaa !9
  %105 = getelementptr inbounds ptr, ptr %103, i64 %104
  %106 = load ptr, ptr %105, align 8, !tbaa !5
  %107 = load i64, ptr %12, align 8, !tbaa !9
  %108 = getelementptr inbounds double, ptr %106, i64 %107
  store double %99, ptr %108, align 8, !tbaa !29
  %109 = load ptr, ptr %7, align 8, !tbaa !5
  %110 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %109, i32 0, i32 6
  %111 = load ptr, ptr %110, align 8, !tbaa !28
  %112 = load i64, ptr %11, align 8, !tbaa !9
  %113 = getelementptr inbounds ptr, ptr %111, i64 %112
  %114 = load ptr, ptr %113, align 8, !tbaa !5
  %115 = load i64, ptr %12, align 8, !tbaa !9
  %116 = getelementptr inbounds double, ptr %114, i64 %115
  %117 = load double, ptr %116, align 8, !tbaa !29
  %118 = load ptr, ptr %6, align 8, !tbaa !5
  %119 = getelementptr inbounds %"struct.alglib_impl::clusterizerstate", ptr %118, i32 0, i32 4
  %120 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %119, i32 0, i32 6
  %121 = load ptr, ptr %120, align 8, !tbaa !28
  %122 = load i64, ptr %12, align 8, !tbaa !9
  %123 = getelementptr inbounds ptr, ptr %121, i64 %122
  %124 = load ptr, ptr %123, align 8, !tbaa !5
  %125 = load i64, ptr %11, align 8, !tbaa !9
  %126 = getelementptr inbounds double, ptr %124, i64 %125
  store double %117, ptr %126, align 8, !tbaa !29
  br label %127

127:                                              ; preds = %88
  %128 = load i64, ptr %12, align 8, !tbaa !9
  %129 = add nsw i64 %128, 1
  store i64 %129, ptr %12, align 8, !tbaa !9
  br label %61, !llvm.loop !31

130:                                              ; preds = %61
  %131 = load ptr, ptr %6, align 8, !tbaa !5
  %132 = getelementptr inbounds %"struct.alglib_impl::clusterizerstate", ptr %131, i32 0, i32 4
  %133 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %132, i32 0, i32 6
  %134 = load ptr, ptr %133, align 8, !tbaa !28
  %135 = load i64, ptr %11, align 8, !tbaa !9
  %136 = getelementptr inbounds ptr, ptr %134, i64 %135
  %137 = load ptr, ptr %136, align 8, !tbaa !5
  %138 = load i64, ptr %11, align 8, !tbaa !9
  %139 = getelementptr inbounds double, ptr %137, i64 %138
  store double 0.000000e+00, ptr %139, align 8, !tbaa !29
  br label %140

140:                                              ; preds = %130
  %141 = load i64, ptr %11, align 8, !tbaa !9
  %142 = add nsw i64 %141, 1
  store i64 %142, ptr %11, align 8, !tbaa !9
  br label %43, !llvm.loop !33

143:                                              ; preds = %43
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #3
  ret void
}

declare noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef, ptr noundef) #1

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

declare void @_ZN11alglib_impl23rmatrixsetlengthatleastEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef, i64 noundef, i64 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, !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_impl16clusterizerstateE", !10, i64 0, !10, i64 8, !10, i64 16, !14, i64 24, !14, i64 104, !10, i64 184, !10, i64 192, !10, i64 200, !10, i64 208, !12, i64 216, !10, i64 224, !14, i64 232, !19, i64 312, !21, i64 1048}
!19 = !{!"_ZTSN11alglib_impl9apbuffersE", !20, i64 0, !20, i64 64, !20, i64 128, !20, i64 192, !20, i64 256, !20, i64 320, !20, i64 384, !20, i64 448, !20, i64 512, !14, i64 576, !14, i64 656}
!20 = !{!"_ZTSN11alglib_impl9ae_vectorE", !10, i64 0, !10, i64 8, !12, i64 16, !15, i64 24, !7, i64 56}
!21 = !{!"_ZTSN11alglib_impl13kmeansbuffersE", !14, i64 0, !14, i64 80, !20, i64 160, !20, i64 224, !20, i64 288, !20, i64 352, !19, i64 416, !22, i64 1152}
!22 = !{!"_ZTSN11alglib_impl14ae_shared_poolE", !23, i64 0, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !10, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !15, i64 112}
!23 = !{!"_ZTSN11alglib_impl7ae_lockE", !6, i64 0, !15, i64 8, !12, i64 40}
!24 = !{!18, !10, i64 8}
!25 = !{!18, !10, i64 16}
!26 = !{i8 0, i8 2}
!27 = !{}
!28 = !{!7, !7, i64 0}
!29 = !{!30, !30, i64 0}
!30 = !{!"double", !7, i64 0}
!31 = distinct !{!31, !32}
!32 = !{!"llvm.loop.mustprogress"}
!33 = distinct !{!33, !32}


; 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.402 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.403 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.404 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.405 = external hidden unnamed_addr constant [71 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 void @_ZN11alglib_impl23clusterizersetdistancesEPNS_16clusterizerstateEPNS_9ae_matrixElbPNS_8ae_stateE(ptr noundef %0, ptr nocapture noundef readonly %1, i64 noundef %2, i1 noundef zeroext %3, ptr noundef %4) local_unnamed_addr #1 {
  %6 = icmp sgt i64 %2, -1
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %6, ptr noundef nonnull @.str.402, ptr noundef %4)
  %7 = load i64, ptr %1, align 8, !tbaa !5
  %8 = icmp sge i64 %7, %2
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %8, ptr noundef nonnull @.str.403, ptr noundef %4)
  %9 = getelementptr inbounds i8, ptr %1, i64 8
  %10 = load i64, ptr %9, align 8, !tbaa !13
  %11 = icmp sge i64 %10, %2
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %11, ptr noundef nonnull @.str.404, ptr noundef %4)
  store i64 %2, ptr %0, align 8, !tbaa !14
  %12 = getelementptr inbounds i8, ptr %0, i64 8
  store i64 0, ptr %12, align 8, !tbaa !21
  %13 = getelementptr inbounds i8, ptr %0, i64 16
  store i64 -1, ptr %13, align 8, !tbaa !22
  %14 = getelementptr inbounds i8, ptr %0, i64 104
  tail call void @_ZN11alglib_impl23rmatrixsetlengthatleastEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %14, i64 noundef %2, i64 noundef %2, ptr noundef %4)
  %.not.not56 = icmp sgt i64 %2, 0
  br i1 %.not.not56, label %.lr.ph59, label %._crit_edge60

.lr.ph59:                                         ; preds = %5
  %15 = getelementptr inbounds i8, ptr %1, i64 72
  %16 = getelementptr inbounds i8, ptr %0, i64 176
  br i1 %3, label %.lr.ph59.split.us, label %.lr.ph59.split

.lr.ph59.split.us:                                ; preds = %.lr.ph59, %._crit_edge.us
  %.05157.us = phi i64 [ %17, %._crit_edge.us ], [ 0, %.lr.ph59 ]
  %17 = add nuw nsw i64 %.05157.us, 1
  %.not.not5354.us = icmp slt i64 %17, %2
  br i1 %.not.not5354.us, label %.lr.ph.us, label %._crit_edge.us

._crit_edge.us:                                   ; preds = %35, %.lr.ph59.split.us
  %18 = load ptr, ptr %16, align 8, !tbaa !23
  %19 = getelementptr inbounds ptr, ptr %18, i64 %.05157.us
  %20 = load ptr, ptr %19, align 8, !tbaa !24
  %21 = getelementptr inbounds double, ptr %20, i64 %.05157.us
  store double 0.000000e+00, ptr %21, align 8, !tbaa !25
  %exitcond63.not = icmp eq i64 %17, %2
  br i1 %exitcond63.not, label %._crit_edge60, label %.lr.ph59.split.us, !llvm.loop !27

.lr.ph.us:                                        ; preds = %.lr.ph59.split.us, %35
  %.05055.us = phi i64 [ %55, %35 ], [ %17, %.lr.ph59.split.us ]
  %22 = load ptr, ptr %15, align 8, !tbaa !23
  %23 = getelementptr inbounds ptr, ptr %22, i64 %.05157.us
  %24 = load ptr, ptr %23, align 8, !tbaa !24
  %25 = getelementptr inbounds double, ptr %24, i64 %.05055.us
  %26 = load double, ptr %25, align 8, !tbaa !25
  %27 = tail call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %26, ptr noundef %4)
  br i1 %27, label %28, label %35

28:                                               ; preds = %.lr.ph.us
  %29 = load ptr, ptr %15, align 8, !tbaa !23
  %30 = getelementptr inbounds ptr, ptr %29, i64 %.05157.us
  %31 = load ptr, ptr %30, align 8, !tbaa !24
  %32 = getelementptr inbounds double, ptr %31, i64 %.05055.us
  %33 = load double, ptr %32, align 8, !tbaa !25
  %34 = tail call noundef zeroext i1 @_ZN11alglib_impl16ae_fp_greater_eqEdd(double noundef %33, double noundef 0.000000e+00)
  br label %35

35:                                               ; preds = %28, %.lr.ph.us
  %36 = phi i1 [ false, %.lr.ph.us ], [ %34, %28 ]
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %36, ptr noundef nonnull @.str.405, ptr noundef %4)
  %37 = load ptr, ptr %15, align 8, !tbaa !23
  %38 = getelementptr inbounds ptr, ptr %37, i64 %.05157.us
  %39 = load ptr, ptr %38, align 8, !tbaa !24
  %40 = getelementptr inbounds double, ptr %39, i64 %.05055.us
  %41 = load double, ptr %40, align 8, !tbaa !25
  %42 = load ptr, ptr %16, align 8, !tbaa !23
  %43 = getelementptr inbounds ptr, ptr %42, i64 %.05157.us
  %44 = load ptr, ptr %43, align 8, !tbaa !24
  %45 = getelementptr inbounds double, ptr %44, i64 %.05055.us
  store double %41, ptr %45, align 8, !tbaa !25
  %46 = load ptr, ptr %15, align 8, !tbaa !23
  %47 = getelementptr inbounds ptr, ptr %46, i64 %.05157.us
  %48 = load ptr, ptr %47, align 8, !tbaa !24
  %49 = getelementptr inbounds double, ptr %48, i64 %.05055.us
  %50 = load double, ptr %49, align 8, !tbaa !25
  %51 = load ptr, ptr %16, align 8, !tbaa !23
  %52 = getelementptr inbounds ptr, ptr %51, i64 %.05055.us
  %53 = load ptr, ptr %52, align 8, !tbaa !24
  %54 = getelementptr inbounds double, ptr %53, i64 %.05157.us
  store double %50, ptr %54, align 8, !tbaa !25
  %55 = add nuw nsw i64 %.05055.us, 1
  %.not.not53.us = icmp slt i64 %55, %2
  br i1 %.not.not53.us, label %.lr.ph.us, label %._crit_edge.us, !llvm.loop !29

.lr.ph59.split:                                   ; preds = %.lr.ph59, %._crit_edge
  %.05157 = phi i64 [ %56, %._crit_edge ], [ 0, %.lr.ph59 ]
  %56 = add nuw nsw i64 %.05157, 1
  %.not.not5354.not = icmp eq i64 %.05157, 0
  br i1 %.not.not5354.not, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph59.split, %70
  %.05055 = phi i64 [ %90, %70 ], [ 0, %.lr.ph59.split ]
  %57 = load ptr, ptr %15, align 8, !tbaa !23
  %58 = getelementptr inbounds ptr, ptr %57, i64 %.05157
  %59 = load ptr, ptr %58, align 8, !tbaa !24
  %60 = getelementptr inbounds double, ptr %59, i64 %.05055
  %61 = load double, ptr %60, align 8, !tbaa !25
  %62 = tail call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %61, ptr noundef %4)
  br i1 %62, label %63, label %70

63:                                               ; preds = %.lr.ph
  %64 = load ptr, ptr %15, align 8, !tbaa !23
  %65 = getelementptr inbounds ptr, ptr %64, i64 %.05157
  %66 = load ptr, ptr %65, align 8, !tbaa !24
  %67 = getelementptr inbounds double, ptr %66, i64 %.05055
  %68 = load double, ptr %67, align 8, !tbaa !25
  %69 = tail call noundef zeroext i1 @_ZN11alglib_impl16ae_fp_greater_eqEdd(double noundef %68, double noundef 0.000000e+00)
  br label %70

70:                                               ; preds = %63, %.lr.ph
  %71 = phi i1 [ false, %.lr.ph ], [ %69, %63 ]
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %71, ptr noundef nonnull @.str.405, ptr noundef %4)
  %72 = load ptr, ptr %15, align 8, !tbaa !23
  %73 = getelementptr inbounds ptr, ptr %72, i64 %.05157
  %74 = load ptr, ptr %73, align 8, !tbaa !24
  %75 = getelementptr inbounds double, ptr %74, i64 %.05055
  %76 = load double, ptr %75, align 8, !tbaa !25
  %77 = load ptr, ptr %16, align 8, !tbaa !23
  %78 = getelementptr inbounds ptr, ptr %77, i64 %.05157
  %79 = load ptr, ptr %78, align 8, !tbaa !24
  %80 = getelementptr inbounds double, ptr %79, i64 %.05055
  store double %76, ptr %80, align 8, !tbaa !25
  %81 = load ptr, ptr %15, align 8, !tbaa !23
  %82 = getelementptr inbounds ptr, ptr %81, i64 %.05157
  %83 = load ptr, ptr %82, align 8, !tbaa !24
  %84 = getelementptr inbounds double, ptr %83, i64 %.05055
  %85 = load double, ptr %84, align 8, !tbaa !25
  %86 = load ptr, ptr %16, align 8, !tbaa !23
  %87 = getelementptr inbounds ptr, ptr %86, i64 %.05055
  %88 = load ptr, ptr %87, align 8, !tbaa !24
  %89 = getelementptr inbounds double, ptr %88, i64 %.05157
  store double %85, ptr %89, align 8, !tbaa !25
  %90 = add nuw nsw i64 %.05055, 1
  %exitcond.not = icmp eq i64 %90, %.05157
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !29

._crit_edge:                                      ; preds = %70, %.lr.ph59.split
  %91 = load ptr, ptr %16, align 8, !tbaa !23
  %92 = getelementptr inbounds ptr, ptr %91, i64 %.05157
  %93 = load ptr, ptr %92, align 8, !tbaa !24
  %94 = getelementptr inbounds double, ptr %93, i64 %.05157
  store double 0.000000e+00, ptr %94, align 8, !tbaa !25
  %exitcond62.not = icmp eq i64 %56, %2
  br i1 %exitcond62.not, label %._crit_edge60, label %.lr.ph59.split, !llvm.loop !27

._crit_edge60:                                    ; preds = %._crit_edge, %._crit_edge.us, %5
  ret void
}

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

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

declare void @_ZN11alglib_impl23rmatrixsetlengthatleastEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef, i64 noundef, i64 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_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_impl16clusterizerstateE", !7, i64 0, !7, i64 8, !7, i64 16, !6, i64 24, !6, i64 104, !7, i64 184, !7, i64 192, !7, i64 200, !7, i64 208, !10, i64 216, !7, i64 224, !6, i64 232, !16, i64 312, !18, i64 1048}
!16 = !{!"_ZTSN11alglib_impl9apbuffersE", !17, i64 0, !17, i64 64, !17, i64 128, !17, i64 192, !17, i64 256, !17, i64 320, !17, i64 384, !17, i64 448, !17, i64 512, !6, i64 576, !6, i64 656}
!17 = !{!"_ZTSN11alglib_impl9ae_vectorE", !7, i64 0, !7, i64 8, !10, i64 16, !11, i64 24, !8, i64 56}
!18 = !{!"_ZTSN11alglib_impl13kmeansbuffersE", !6, i64 0, !6, i64 80, !17, i64 160, !17, i64 224, !17, i64 288, !17, i64 352, !16, i64 416, !19, i64 1152}
!19 = !{!"_ZTSN11alglib_impl14ae_shared_poolE", !20, i64 0, !12, i64 48, !12, i64 56, !12, i64 64, !12, i64 72, !7, i64 80, !12, i64 88, !12, i64 96, !12, i64 104, !11, i64 112}
!20 = !{!"_ZTSN11alglib_impl7ae_lockE", !12, i64 0, !11, i64 8, !10, i64 40}
!21 = !{!15, !7, i64 8}
!22 = !{!15, !7, i64 16}
!23 = !{!8, !8, i64 0}
!24 = !{!12, !12, i64 0}
!25 = !{!26, !26, i64 0}
!26 = !{!"double", !8, i64 0}
!27 = distinct !{!27, !28}
!28 = !{!"llvm.loop.mustprogress"}
!29 = distinct !{!29, !28}


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