; 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::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::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::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 }
%"struct.alglib_impl::ahcreport" = type { i64, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector" }

; 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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl17clusterizerrunahcEPNS_16clusterizerstateEPNS_9ahcreportEPNS_8ae_stateE(ptr noundef %0, ptr noundef %1, ptr noundef %2) #1 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #3
  %10 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN11alglib_impl16_ahcreport_clearEPv(ptr noundef %10)
  %11 = load ptr, ptr %4, align 8, !tbaa !5
  %12 = getelementptr inbounds %"struct.alglib_impl::clusterizerstate", ptr %11, i32 0, i32 0
  %13 = load i64, ptr %12, align 8, !tbaa !9
  store i64 %13, ptr %7, align 8, !tbaa !20
  %14 = load ptr, ptr %4, align 8, !tbaa !5
  %15 = getelementptr inbounds %"struct.alglib_impl::clusterizerstate", ptr %14, i32 0, i32 1
  %16 = load i64, ptr %15, align 8, !tbaa !21
  store i64 %16, ptr %8, align 8, !tbaa !20
  %17 = load i64, ptr %7, align 8, !tbaa !20
  %18 = load ptr, ptr %5, align 8, !tbaa !5
  %19 = getelementptr inbounds %"struct.alglib_impl::ahcreport", ptr %18, i32 0, i32 1
  store i64 %17, ptr %19, align 8, !tbaa !22
  %20 = load i64, ptr %7, align 8, !tbaa !20
  %21 = icmp eq i64 %20, 0
  br i1 %21, label %22, label %40

22:                                               ; preds = %3
  %23 = load ptr, ptr %5, align 8, !tbaa !5
  %24 = getelementptr inbounds %"struct.alglib_impl::ahcreport", ptr %23, i32 0, i32 2
  %25 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %24, i64 noundef 0, ptr noundef %25)
  %26 = load ptr, ptr %5, align 8, !tbaa !5
  %27 = getelementptr inbounds %"struct.alglib_impl::ahcreport", ptr %26, i32 0, i32 3
  %28 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %27, i64 noundef 0, i64 noundef 0, ptr noundef %28)
  %29 = load ptr, ptr %5, align 8, !tbaa !5
  %30 = getelementptr inbounds %"struct.alglib_impl::ahcreport", ptr %29, i32 0, i32 4
  %31 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %30, i64 noundef 0, i64 noundef 0, ptr noundef %31)
  %32 = load ptr, ptr %5, align 8, !tbaa !5
  %33 = getelementptr inbounds %"struct.alglib_impl::ahcreport", ptr %32, i32 0, i32 5
  %34 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %33, i64 noundef 0, i64 noundef 0, ptr noundef %34)
  %35 = load ptr, ptr %5, align 8, !tbaa !5
  %36 = getelementptr inbounds %"struct.alglib_impl::ahcreport", ptr %35, i32 0, i32 6
  %37 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %36, i64 noundef 0, ptr noundef %37)
  %38 = load ptr, ptr %5, align 8, !tbaa !5
  %39 = getelementptr inbounds %"struct.alglib_impl::ahcreport", ptr %38, i32 0, i32 0
  store i64 1, ptr %39, align 8, !tbaa !24
  store i32 1, ptr %9, align 4
  br label %108

40:                                               ; preds = %3
  %41 = load i64, ptr %7, align 8, !tbaa !20
  %42 = icmp eq i64 %41, 1
  br i1 %42, label %43, label %66

43:                                               ; preds = %40
  %44 = load ptr, ptr %5, align 8, !tbaa !5
  %45 = getelementptr inbounds %"struct.alglib_impl::ahcreport", ptr %44, i32 0, i32 2
  %46 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %45, i64 noundef 1, ptr noundef %46)
  %47 = load ptr, ptr %5, align 8, !tbaa !5
  %48 = getelementptr inbounds %"struct.alglib_impl::ahcreport", ptr %47, i32 0, i32 3
  %49 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %48, i64 noundef 0, i64 noundef 0, ptr noundef %49)
  %50 = load ptr, ptr %5, align 8, !tbaa !5
  %51 = getelementptr inbounds %"struct.alglib_impl::ahcreport", ptr %50, i32 0, i32 4
  %52 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %51, i64 noundef 0, i64 noundef 0, ptr noundef %52)
  %53 = load ptr, ptr %5, align 8, !tbaa !5
  %54 = getelementptr inbounds %"struct.alglib_impl::ahcreport", ptr %53, i32 0, i32 5
  %55 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %54, i64 noundef 0, i64 noundef 0, ptr noundef %55)
  %56 = load ptr, ptr %5, align 8, !tbaa !5
  %57 = getelementptr inbounds %"struct.alglib_impl::ahcreport", ptr %56, i32 0, i32 6
  %58 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %57, i64 noundef 0, ptr noundef %58)
  %59 = load ptr, ptr %5, align 8, !tbaa !5
  %60 = getelementptr inbounds %"struct.alglib_impl::ahcreport", ptr %59, i32 0, i32 2
  %61 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %60, i32 0, i32 4
  %62 = load ptr, ptr %61, align 8, !tbaa !25
  %63 = getelementptr inbounds i64, ptr %62, i64 0
  store i64 0, ptr %63, align 8, !tbaa !20
  %64 = load ptr, ptr %5, align 8, !tbaa !5
  %65 = getelementptr inbounds %"struct.alglib_impl::ahcreport", ptr %64, i32 0, i32 0
  store i64 1, ptr %65, align 8, !tbaa !24
  store i32 1, ptr %9, align 4
  br label %108

66:                                               ; preds = %40
  %67 = load ptr, ptr %4, align 8, !tbaa !5
  %68 = getelementptr inbounds %"struct.alglib_impl::clusterizerstate", ptr %67, i32 0, i32 2
  %69 = load i64, ptr %68, align 8, !tbaa !26
  %70 = icmp eq i64 %69, -1
  br i1 %70, label %71, label %77

71:                                               ; preds = %66
  %72 = load ptr, ptr %4, align 8, !tbaa !5
  %73 = load ptr, ptr %4, align 8, !tbaa !5
  %74 = getelementptr inbounds %"struct.alglib_impl::clusterizerstate", ptr %73, i32 0, i32 4
  %75 = load ptr, ptr %5, align 8, !tbaa !5
  %76 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_implL36clustering_clusterizerrunahcinternalEPNS_16clusterizerstateEPNS_9ae_matrixEPNS_9ahcreportEPNS_8ae_stateE(ptr noundef %72, ptr noundef %74, ptr noundef %75, ptr noundef %76)
  store i32 1, ptr %9, align 4
  br label %108

77:                                               ; preds = %66
  %78 = load ptr, ptr %4, align 8, !tbaa !5
  %79 = getelementptr inbounds %"struct.alglib_impl::clusterizerstate", ptr %78, i32 0, i32 5
  %80 = load i64, ptr %79, align 8, !tbaa !27
  %81 = icmp eq i64 %80, 4
  br i1 %81, label %82, label %90

82:                                               ; preds = %77
  %83 = load ptr, ptr %4, align 8, !tbaa !5
  %84 = getelementptr inbounds %"struct.alglib_impl::clusterizerstate", ptr %83, i32 0, i32 2
  %85 = load i64, ptr %84, align 8, !tbaa !26
  %86 = icmp ne i64 %85, 2
  br i1 %86, label %87, label %90

87:                                               ; preds = %82
  %88 = load ptr, ptr %5, align 8, !tbaa !5
  %89 = getelementptr inbounds %"struct.alglib_impl::ahcreport", ptr %88, i32 0, i32 0
  store i64 -5, ptr %89, align 8, !tbaa !24
  store i32 1, ptr %9, align 4
  br label %108

90:                                               ; preds = %82, %77
  %91 = load ptr, ptr %4, align 8, !tbaa !5
  %92 = getelementptr inbounds %"struct.alglib_impl::clusterizerstate", ptr %91, i32 0, i32 12
  %93 = load ptr, ptr %4, align 8, !tbaa !5
  %94 = getelementptr inbounds %"struct.alglib_impl::clusterizerstate", ptr %93, i32 0, i32 3
  %95 = load i64, ptr %7, align 8, !tbaa !20
  %96 = load i64, ptr %8, align 8, !tbaa !20
  %97 = load ptr, ptr %4, align 8, !tbaa !5
  %98 = getelementptr inbounds %"struct.alglib_impl::clusterizerstate", ptr %97, i32 0, i32 2
  %99 = load i64, ptr %98, align 8, !tbaa !26
  %100 = load ptr, ptr %4, align 8, !tbaa !5
  %101 = getelementptr inbounds %"struct.alglib_impl::clusterizerstate", ptr %100, i32 0, i32 11
  %102 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl26clusterizergetdistancesbufEPNS_9apbuffersEPNS_9ae_matrixElllS3_PNS_8ae_stateE(ptr noundef %92, ptr noundef %94, i64 noundef %95, i64 noundef %96, i64 noundef %99, ptr noundef %101, ptr noundef %102)
  %103 = load ptr, ptr %4, align 8, !tbaa !5
  %104 = load ptr, ptr %4, align 8, !tbaa !5
  %105 = getelementptr inbounds %"struct.alglib_impl::clusterizerstate", ptr %104, i32 0, i32 11
  %106 = load ptr, ptr %5, align 8, !tbaa !5
  %107 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_implL36clustering_clusterizerrunahcinternalEPNS_16clusterizerstateEPNS_9ae_matrixEPNS_9ahcreportEPNS_8ae_stateE(ptr noundef %103, ptr noundef %105, ptr noundef %106, ptr noundef %107)
  store i32 1, ptr %9, align 4
  br label %108

108:                                              ; preds = %90, %87, %71, %43, %22
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #3
  ret void
}

declare void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef) #2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl16_ahcreport_clearEPv(ptr noundef) #1

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN11alglib_implL36clustering_clusterizerrunahcinternalEPNS_16clusterizerstateEPNS_9ae_matrixEPNS_9ahcreportEPNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl26clusterizergetdistancesbufEPNS_9apbuffersEPNS_9ae_matrixElllS3_PNS_8ae_stateE(ptr noundef, ptr noundef, i64 noundef, i64 noundef, i64 noundef, ptr noundef, ptr noundef) #1

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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" }
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 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"_ZTSN11alglib_impl16clusterizerstateE", !11, i64 0, !11, i64 8, !11, i64 16, !12, i64 24, !12, i64 104, !11, i64 184, !11, i64 192, !11, i64 200, !11, i64 208, !13, i64 216, !11, i64 224, !12, i64 232, !15, i64 312, !17, i64 1048}
!11 = !{!"long", !7, i64 0}
!12 = !{!"_ZTSN11alglib_impl9ae_matrixE", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !13, i64 32, !14, i64 40, !7, i64 72}
!13 = !{!"bool", !7, i64 0}
!14 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!15 = !{!"_ZTSN11alglib_impl9apbuffersE", !16, i64 0, !16, i64 64, !16, i64 128, !16, i64 192, !16, i64 256, !16, i64 320, !16, i64 384, !16, i64 448, !16, i64 512, !12, i64 576, !12, i64 656}
!16 = !{!"_ZTSN11alglib_impl9ae_vectorE", !11, i64 0, !11, i64 8, !13, i64 16, !14, i64 24, !7, i64 56}
!17 = !{!"_ZTSN11alglib_impl13kmeansbuffersE", !12, i64 0, !12, i64 80, !16, i64 160, !16, i64 224, !16, i64 288, !16, i64 352, !15, i64 416, !18, i64 1152}
!18 = !{!"_ZTSN11alglib_impl14ae_shared_poolE", !19, i64 0, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !11, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !14, i64 112}
!19 = !{!"_ZTSN11alglib_impl7ae_lockE", !6, i64 0, !14, i64 8, !13, i64 40}
!20 = !{!11, !11, i64 0}
!21 = !{!10, !11, i64 8}
!22 = !{!23, !11, i64 8}
!23 = !{!"_ZTSN11alglib_impl9ahcreportE", !11, i64 0, !11, i64 8, !16, i64 16, !12, i64 80, !12, i64 160, !12, i64 240, !16, i64 320}
!24 = !{!23, !11, i64 0}
!25 = !{!7, !7, i64 0}
!26 = !{!10, !11, i64 16}
!27 = !{!10, !11, i64 184}


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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl17clusterizerrunahcEPNS_16clusterizerstateEPNS_9ahcreportEPNS_8ae_stateE(ptr noundef %0, ptr noundef %1, ptr noundef %2) local_unnamed_addr #0 {
  tail call void @_ZN11alglib_impl16_ahcreport_clearEPv(ptr noundef %1)
  %4 = load i64, ptr %0, align 8, !tbaa !5
  %5 = getelementptr inbounds i8, ptr %0, i64 8
  %6 = load i64, ptr %5, align 8, !tbaa !19
  %7 = getelementptr inbounds i8, ptr %1, i64 8
  store i64 %4, ptr %7, align 8, !tbaa !20
  switch i64 %4, label %22 [
    i64 0, label %8
    i64 1, label %14
  ]

8:                                                ; preds = %3
  %9 = getelementptr inbounds i8, ptr %1, i64 16
  tail call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %9, i64 noundef 0, ptr noundef %2)
  %10 = getelementptr inbounds i8, ptr %1, i64 80
  tail call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %10, i64 noundef 0, i64 noundef 0, ptr noundef %2)
  %11 = getelementptr inbounds i8, ptr %1, i64 160
  tail call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %11, i64 noundef 0, i64 noundef 0, ptr noundef %2)
  %12 = getelementptr inbounds i8, ptr %1, i64 240
  tail call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %12, i64 noundef 0, i64 noundef 0, ptr noundef %2)
  %13 = getelementptr inbounds i8, ptr %1, i64 320
  tail call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %13, i64 noundef 0, ptr noundef %2)
  store i64 1, ptr %1, align 8, !tbaa !22
  br label %37

14:                                               ; preds = %3
  %15 = getelementptr inbounds i8, ptr %1, i64 16
  tail call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %15, i64 noundef 1, ptr noundef %2)
  %16 = getelementptr inbounds i8, ptr %1, i64 80
  tail call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %16, i64 noundef 0, i64 noundef 0, ptr noundef %2)
  %17 = getelementptr inbounds i8, ptr %1, i64 160
  tail call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %17, i64 noundef 0, i64 noundef 0, ptr noundef %2)
  %18 = getelementptr inbounds i8, ptr %1, i64 240
  tail call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %18, i64 noundef 0, i64 noundef 0, ptr noundef %2)
  %19 = getelementptr inbounds i8, ptr %1, i64 320
  tail call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %19, i64 noundef 0, ptr noundef %2)
  %20 = getelementptr inbounds i8, ptr %1, i64 72
  %21 = load ptr, ptr %20, align 8, !tbaa !23
  store i64 0, ptr %21, align 8, !tbaa !24
  store i64 1, ptr %1, align 8, !tbaa !22
  br label %37

22:                                               ; preds = %3
  %23 = getelementptr inbounds i8, ptr %0, i64 16
  %24 = load i64, ptr %23, align 8, !tbaa !25
  %25 = icmp eq i64 %24, -1
  br i1 %25, label %26, label %28

26:                                               ; preds = %22
  %27 = getelementptr inbounds i8, ptr %0, i64 104
  tail call void @_ZN11alglib_implL36clustering_clusterizerrunahcinternalEPNS_16clusterizerstateEPNS_9ae_matrixEPNS_9ahcreportEPNS_8ae_stateE(ptr noundef nonnull %0, ptr noundef nonnull %27, ptr noundef nonnull %1, ptr noundef %2)
  br label %37

28:                                               ; preds = %22
  %29 = getelementptr inbounds i8, ptr %0, i64 184
  %30 = load i64, ptr %29, align 8, !tbaa !26
  %31 = icmp ne i64 %30, 4
  %.not = icmp eq i64 %24, 2
  %or.cond = or i1 %.not, %31
  br i1 %or.cond, label %33, label %32

32:                                               ; preds = %28
  store i64 -5, ptr %1, align 8, !tbaa !22
  br label %37

33:                                               ; preds = %28
  %34 = getelementptr inbounds i8, ptr %0, i64 312
  %35 = getelementptr inbounds i8, ptr %0, i64 24
  %36 = getelementptr inbounds i8, ptr %0, i64 232
  tail call void @_ZN11alglib_impl26clusterizergetdistancesbufEPNS_9apbuffersEPNS_9ae_matrixElllS3_PNS_8ae_stateE(ptr noundef nonnull %34, ptr noundef nonnull %35, i64 noundef %4, i64 noundef %6, i64 noundef %24, ptr noundef nonnull %36, ptr noundef %2)
  tail call void @_ZN11alglib_implL36clustering_clusterizerrunahcinternalEPNS_16clusterizerstateEPNS_9ae_matrixEPNS_9ahcreportEPNS_8ae_stateE(ptr noundef nonnull %0, ptr noundef nonnull %36, ptr noundef nonnull %1, ptr noundef %2)
  br label %37

37:                                               ; preds = %33, %32, %26, %14, %8
  ret void
}

declare void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #1

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN11alglib_implL36clustering_clusterizerrunahcinternalEPNS_16clusterizerstateEPNS_9ae_matrixEPNS_9ahcreportEPNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl26clusterizergetdistancesbufEPNS_9apbuffersEPNS_9ae_matrixElllS3_PNS_8ae_stateE(ptr noundef, ptr noundef, i64 noundef, i64 noundef, i64 noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

attributes #0 = { 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 #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" }

!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_impl16clusterizerstateE", !7, i64 0, !7, i64 8, !7, i64 16, !10, i64 24, !10, i64 104, !7, i64 184, !7, i64 192, !7, i64 200, !7, i64 208, !11, i64 216, !7, i64 224, !10, i64 232, !14, i64 312, !16, i64 1048}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTSN11alglib_impl9ae_matrixE", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !11, i64 32, !12, i64 40, !8, i64 72}
!11 = !{!"bool", !8, i64 0}
!12 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !13, i64 0, !13, i64 8, !13, i64 16, !13, i64 24}
!13 = !{!"any pointer", !8, i64 0}
!14 = !{!"_ZTSN11alglib_impl9apbuffersE", !15, i64 0, !15, i64 64, !15, i64 128, !15, i64 192, !15, i64 256, !15, i64 320, !15, i64 384, !15, i64 448, !15, i64 512, !10, i64 576, !10, i64 656}
!15 = !{!"_ZTSN11alglib_impl9ae_vectorE", !7, i64 0, !7, i64 8, !11, i64 16, !12, i64 24, !8, i64 56}
!16 = !{!"_ZTSN11alglib_impl13kmeansbuffersE", !10, i64 0, !10, i64 80, !15, i64 160, !15, i64 224, !15, i64 288, !15, i64 352, !14, i64 416, !17, i64 1152}
!17 = !{!"_ZTSN11alglib_impl14ae_shared_poolE", !18, i64 0, !13, i64 48, !13, i64 56, !13, i64 64, !13, i64 72, !7, i64 80, !13, i64 88, !13, i64 96, !13, i64 104, !12, i64 112}
!18 = !{!"_ZTSN11alglib_impl7ae_lockE", !13, i64 0, !12, i64 8, !11, i64 40}
!19 = !{!6, !7, i64 8}
!20 = !{!21, !7, i64 8}
!21 = !{!"_ZTSN11alglib_impl9ahcreportE", !7, i64 0, !7, i64 8, !15, i64 16, !10, i64 80, !10, i64 160, !10, i64 240, !15, i64 320}
!22 = !{!21, !7, i64 0}
!23 = !{!8, !8, i64 0}
!24 = !{!7, !7, i64 0}
!25 = !{!6, !7, i64 16}
!26 = !{!6, !7, i64 184}


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