; LLVM IR from venumb/ZSPACE :: cpp/depends/alglib/cpp/tests/test_c.ll (Z14testclusteringbPN11alglib_impl8ae_stateE)

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

@.str.1 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.564 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.565 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.566 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.567 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.568 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.569 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.570 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.571 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.572 = external hidden unnamed_addr constant [37 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

declare i32 @printf(ptr noundef, ...) #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 noundef zeroext i1 @_Z14testclusteringbPN11alglib_impl8ae_stateE(i1 noundef zeroext %0, ptr noundef %1) #2 {
  %3 = alloca i8, align 1
  %4 = alloca ptr, align 8
  %5 = alloca i8, align 1
  %6 = alloca i8, align 1
  %7 = alloca i8, align 1
  %8 = alloca i8, align 1
  %9 = alloca i8, align 1
  %10 = alloca i8, align 1
  %11 = alloca i8, align 1
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca i8, align 1
  %16 = zext i1 %0 to i8
  store i8 %16, ptr %3, align 1, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %5) #3
  call void @llvm.lifetime.start.p0(i64 1, ptr %6) #3
  call void @llvm.lifetime.start.p0(i64 1, ptr %7) #3
  call void @llvm.lifetime.start.p0(i64 1, ptr %8) #3
  call void @llvm.lifetime.start.p0(i64 1, ptr %9) #3
  call void @llvm.lifetime.start.p0(i64 1, ptr %10) #3
  call void @llvm.lifetime.start.p0(i64 1, 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
  call void @llvm.lifetime.start.p0(i64 1, ptr %15) #3
  %17 = load ptr, ptr %4, align 8, !tbaa !9
  %18 = call noundef zeroext i1 @_ZL32testclusteringunit_basicahctestsPN11alglib_impl8ae_stateE(ptr noundef %17)
  %19 = zext i1 %18 to i8
  store i8 %19, ptr %6, align 1, !tbaa !5
  %20 = load ptr, ptr %4, align 8, !tbaa !9
  %21 = call noundef zeroext i1 @_ZL35testclusteringunit_advancedahctestsPN11alglib_impl8ae_stateE(ptr noundef %20)
  %22 = zext i1 %21 to i8
  store i8 %22, ptr %7, align 1, !tbaa !5
  store i64 10, ptr %12, align 8, !tbaa !11
  store i8 0, ptr %8, align 1, !tbaa !5
  store i8 0, ptr %10, align 1, !tbaa !5
  store i8 0, ptr %9, align 1, !tbaa !5
  store i8 0, ptr %11, align 1, !tbaa !5
  %23 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL37testclusteringunit_kmeansspecialtestsPbPN11alglib_impl8ae_stateE(ptr noundef %10, ptr noundef %23)
  %24 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL41testclusteringunit_kmeansinfinitelooptestPbPN11alglib_impl8ae_stateE(ptr noundef %10, ptr noundef %24)
  %25 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL37testclusteringunit_kmeansrestartstestPbS_PN11alglib_impl8ae_stateE(ptr noundef %8, ptr noundef %11, ptr noundef %25)
  store i64 1, ptr %13, align 8, !tbaa !11
  br label %26

26:                                               ; preds = %42, %2
  %27 = load i64, ptr %13, align 8, !tbaa !11
  %28 = icmp sle i64 %27, 5
  br i1 %28, label %29, label %45

29:                                               ; preds = %26
  store i64 1, ptr %14, align 8, !tbaa !11
  br label %30

30:                                               ; preds = %38, %29
  %31 = load i64, ptr %14, align 8, !tbaa !11
  %32 = icmp sle i64 %31, 5
  br i1 %32, label %33, label %41

33:                                               ; preds = %30
  %34 = load i64, ptr %13, align 8, !tbaa !11
  %35 = load i64, ptr %14, align 8, !tbaa !11
  %36 = load i64, ptr %12, align 8, !tbaa !11
  %37 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL36testclusteringunit_kmeanssimpletest1lllPbS_S_PN11alglib_impl8ae_stateE(i64 noundef %34, i64 noundef %35, i64 noundef %36, ptr noundef %8, ptr noundef %10, ptr noundef %9, ptr noundef %37)
  br label %38

38:                                               ; preds = %33
  %39 = load i64, ptr %14, align 8, !tbaa !11
  %40 = add nsw i64 %39, 1
  store i64 %40, ptr %14, align 8, !tbaa !11
  br label %30, !llvm.loop !13

41:                                               ; preds = %30
  br label %42

42:                                               ; preds = %41
  %43 = load i64, ptr %13, align 8, !tbaa !11
  %44 = add nsw i64 %43, 1
  store i64 %44, ptr %13, align 8, !tbaa !11
  br label %26, !llvm.loop !15

45:                                               ; preds = %26
  store i8 0, ptr %5, align 1, !tbaa !5
  %46 = load i8, ptr %5, align 1, !tbaa !5, !range !16, !noundef !17
  %47 = trunc i8 %46 to i1
  br i1 %47, label %56, label %48

48:                                               ; preds = %45
  %49 = load i8, ptr %6, align 1, !tbaa !5, !range !16, !noundef !17
  %50 = trunc i8 %49 to i1
  br i1 %50, label %54, label %51

51:                                               ; preds = %48
  %52 = load i8, ptr %7, align 1, !tbaa !5, !range !16, !noundef !17
  %53 = trunc i8 %52 to i1
  br label %54

54:                                               ; preds = %51, %48
  %55 = phi i1 [ true, %48 ], [ %53, %51 ]
  br label %56

56:                                               ; preds = %54, %45
  %57 = phi i1 [ true, %45 ], [ %55, %54 ]
  %58 = zext i1 %57 to i8
  store i8 %58, ptr %5, align 1, !tbaa !5
  %59 = load i8, ptr %5, align 1, !tbaa !5, !range !16, !noundef !17
  %60 = trunc i8 %59 to i1
  br i1 %60, label %75, label %61

61:                                               ; preds = %56
  %62 = load i8, ptr %8, align 1, !tbaa !5, !range !16, !noundef !17
  %63 = trunc i8 %62 to i1
  br i1 %63, label %73, label %64

64:                                               ; preds = %61
  %65 = load i8, ptr %10, align 1, !tbaa !5, !range !16, !noundef !17
  %66 = trunc i8 %65 to i1
  br i1 %66, label %73, label %67

67:                                               ; preds = %64
  %68 = load i8, ptr %9, align 1, !tbaa !5, !range !16, !noundef !17
  %69 = trunc i8 %68 to i1
  br i1 %69, label %73, label %70

70:                                               ; preds = %67
  %71 = load i8, ptr %11, align 1, !tbaa !5, !range !16, !noundef !17
  %72 = trunc i8 %71 to i1
  br label %73

73:                                               ; preds = %70, %67, %64, %61
  %74 = phi i1 [ true, %67 ], [ true, %64 ], [ true, %61 ], [ %72, %70 ]
  br label %75

75:                                               ; preds = %73, %56
  %76 = phi i1 [ true, %56 ], [ %74, %73 ]
  %77 = zext i1 %76 to i8
  store i8 %77, ptr %5, align 1, !tbaa !5
  %78 = load i8, ptr %3, align 1, !tbaa !5, !range !16, !noundef !17
  %79 = trunc i8 %78 to i1
  br i1 %79, label %140, label %80

80:                                               ; preds = %75
  %81 = call i32 (ptr, ...) @printf(ptr noundef @.str.564)
  %82 = call i32 (ptr, ...) @printf(ptr noundef @.str.565)
  %83 = call i32 (ptr, ...) @printf(ptr noundef @.str.566)
  %84 = load i8, ptr %6, align 1, !tbaa !5, !range !16, !noundef !17
  %85 = trunc i8 %84 to i1
  br i1 %85, label %88, label %86

86:                                               ; preds = %80
  %87 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  br label %90

88:                                               ; preds = %80
  %89 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  br label %90

90:                                               ; preds = %88, %86
  %91 = call i32 (ptr, ...) @printf(ptr noundef @.str.567)
  %92 = load i8, ptr %7, align 1, !tbaa !5, !range !16, !noundef !17
  %93 = trunc i8 %92 to i1
  br i1 %93, label %96, label %94

94:                                               ; preds = %90
  %95 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  br label %98

96:                                               ; preds = %90
  %97 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  br label %98

98:                                               ; preds = %96, %94
  %99 = call i32 (ptr, ...) @printf(ptr noundef @.str.568)
  %100 = call i32 (ptr, ...) @printf(ptr noundef @.str.569)
  %101 = load i8, ptr %8, align 1, !tbaa !5, !range !16, !noundef !17
  %102 = trunc i8 %101 to i1
  br i1 %102, label %105, label %103

103:                                              ; preds = %98
  %104 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  br label %107

105:                                              ; preds = %98
  %106 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  br label %107

107:                                              ; preds = %105, %103
  %108 = call i32 (ptr, ...) @printf(ptr noundef @.str.570)
  %109 = load i8, ptr %9, align 1, !tbaa !5, !range !16, !noundef !17
  %110 = trunc i8 %109 to i1
  br i1 %110, label %113, label %111

111:                                              ; preds = %107
  %112 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  br label %115

113:                                              ; preds = %107
  %114 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  br label %115

115:                                              ; preds = %113, %111
  %116 = call i32 (ptr, ...) @printf(ptr noundef @.str.571)
  %117 = load i8, ptr %10, align 1, !tbaa !5, !range !16, !noundef !17
  %118 = trunc i8 %117 to i1
  br i1 %118, label %121, label %119

119:                                              ; preds = %115
  %120 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  br label %123

121:                                              ; preds = %115
  %122 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  br label %123

123:                                              ; preds = %121, %119
  %124 = call i32 (ptr, ...) @printf(ptr noundef @.str.572)
  %125 = load i8, ptr %11, align 1, !tbaa !5, !range !16, !noundef !17
  %126 = trunc i8 %125 to i1
  br i1 %126, label %129, label %127

127:                                              ; preds = %123
  %128 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  br label %131

129:                                              ; preds = %123
  %130 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  br label %131

131:                                              ; preds = %129, %127
  %132 = load i8, ptr %5, align 1, !tbaa !5, !range !16, !noundef !17
  %133 = trunc i8 %132 to i1
  br i1 %133, label %134, label %136

134:                                              ; preds = %131
  %135 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
  br label %138

136:                                              ; preds = %131
  %137 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  br label %138

138:                                              ; preds = %136, %134
  %139 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
  br label %140

140:                                              ; preds = %138, %75
  %141 = load i8, ptr %5, align 1, !tbaa !5, !range !16, !noundef !17
  %142 = trunc i8 %141 to i1
  %143 = xor i1 %142, true
  %144 = zext i1 %143 to i8
  store i8 %144, ptr %15, align 1, !tbaa !5
  %145 = load i8, ptr %15, align 1, !tbaa !5, !range !16, !noundef !17
  %146 = trunc i8 %145 to i1
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #3
  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 1, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr %6) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr %5) #3
  ret i1 %146
}

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZL32testclusteringunit_basicahctestsPN11alglib_impl8ae_stateE(ptr noundef) #2

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZL35testclusteringunit_advancedahctestsPN11alglib_impl8ae_stateE(ptr noundef) #2

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

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 = !{!"bool", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = !{i8 0, i8 2}
!17 = !{}


; 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.1 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.564 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.565 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.566 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.567 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.568 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.569 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.570 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.571 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.572 = external hidden unnamed_addr constant [37 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: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #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 noundef zeroext i1 @_Z14testclusteringbPN11alglib_impl8ae_stateE(i1 noundef zeroext %0, ptr noundef %1) local_unnamed_addr #2 {
.preheader:
  %2 = alloca i8, align 1
  %3 = alloca i8, align 1
  %4 = alloca i8, align 1
  %5 = alloca i8, align 1
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %2) #3
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %3) #3
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #3
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %5) #3
  %6 = tail call noundef zeroext i1 @_ZL32testclusteringunit_basicahctestsPN11alglib_impl8ae_stateE(ptr noundef %1)
  %7 = tail call noundef zeroext i1 @_ZL35testclusteringunit_advancedahctestsPN11alglib_impl8ae_stateE(ptr noundef %1)
  store i8 0, ptr %2, align 1, !tbaa !5
  store i8 0, ptr %4, align 1, !tbaa !5
  store i8 0, ptr %3, align 1, !tbaa !5
  store i8 0, ptr %5, align 1, !tbaa !5
  call void @_ZL37testclusteringunit_kmeansspecialtestsPbPN11alglib_impl8ae_stateE(ptr noundef nonnull %4, ptr noundef %1)
  call void @_ZL41testclusteringunit_kmeansinfinitelooptestPbPN11alglib_impl8ae_stateE(ptr noundef nonnull %4, ptr noundef %1)
  call void @_ZL37testclusteringunit_kmeansrestartstestPbS_PN11alglib_impl8ae_stateE(ptr noundef nonnull %2, ptr noundef nonnull %5, ptr noundef %1)
  call void @_ZL36testclusteringunit_kmeanssimpletest1lllPbS_S_PN11alglib_impl8ae_stateE(i64 noundef 1, i64 noundef 1, i64 noundef 10, ptr noundef nonnull %2, ptr noundef nonnull %4, ptr noundef nonnull %3, ptr noundef %1)
  call void @_ZL36testclusteringunit_kmeanssimpletest1lllPbS_S_PN11alglib_impl8ae_stateE(i64 noundef 1, i64 noundef 2, i64 noundef 10, ptr noundef nonnull %2, ptr noundef nonnull %4, ptr noundef nonnull %3, ptr noundef %1)
  call void @_ZL36testclusteringunit_kmeanssimpletest1lllPbS_S_PN11alglib_impl8ae_stateE(i64 noundef 1, i64 noundef 3, i64 noundef 10, ptr noundef nonnull %2, ptr noundef nonnull %4, ptr noundef nonnull %3, ptr noundef %1)
  call void @_ZL36testclusteringunit_kmeanssimpletest1lllPbS_S_PN11alglib_impl8ae_stateE(i64 noundef 1, i64 noundef 4, i64 noundef 10, ptr noundef nonnull %2, ptr noundef nonnull %4, ptr noundef nonnull %3, ptr noundef %1)
  call void @_ZL36testclusteringunit_kmeanssimpletest1lllPbS_S_PN11alglib_impl8ae_stateE(i64 noundef 1, i64 noundef 5, i64 noundef 10, ptr noundef nonnull %2, ptr noundef nonnull %4, ptr noundef nonnull %3, ptr noundef %1)
  call void @_ZL36testclusteringunit_kmeanssimpletest1lllPbS_S_PN11alglib_impl8ae_stateE(i64 noundef 2, i64 noundef 1, i64 noundef 10, ptr noundef nonnull %2, ptr noundef nonnull %4, ptr noundef nonnull %3, ptr noundef %1)
  call void @_ZL36testclusteringunit_kmeanssimpletest1lllPbS_S_PN11alglib_impl8ae_stateE(i64 noundef 2, i64 noundef 2, i64 noundef 10, ptr noundef nonnull %2, ptr noundef nonnull %4, ptr noundef nonnull %3, ptr noundef %1)
  call void @_ZL36testclusteringunit_kmeanssimpletest1lllPbS_S_PN11alglib_impl8ae_stateE(i64 noundef 2, i64 noundef 3, i64 noundef 10, ptr noundef nonnull %2, ptr noundef nonnull %4, ptr noundef nonnull %3, ptr noundef %1)
  call void @_ZL36testclusteringunit_kmeanssimpletest1lllPbS_S_PN11alglib_impl8ae_stateE(i64 noundef 2, i64 noundef 4, i64 noundef 10, ptr noundef nonnull %2, ptr noundef nonnull %4, ptr noundef nonnull %3, ptr noundef %1)
  call void @_ZL36testclusteringunit_kmeanssimpletest1lllPbS_S_PN11alglib_impl8ae_stateE(i64 noundef 2, i64 noundef 5, i64 noundef 10, ptr noundef nonnull %2, ptr noundef nonnull %4, ptr noundef nonnull %3, ptr noundef %1)
  call void @_ZL36testclusteringunit_kmeanssimpletest1lllPbS_S_PN11alglib_impl8ae_stateE(i64 noundef 3, i64 noundef 1, i64 noundef 10, ptr noundef nonnull %2, ptr noundef nonnull %4, ptr noundef nonnull %3, ptr noundef %1)
  call void @_ZL36testclusteringunit_kmeanssimpletest1lllPbS_S_PN11alglib_impl8ae_stateE(i64 noundef 3, i64 noundef 2, i64 noundef 10, ptr noundef nonnull %2, ptr noundef nonnull %4, ptr noundef nonnull %3, ptr noundef %1)
  call void @_ZL36testclusteringunit_kmeanssimpletest1lllPbS_S_PN11alglib_impl8ae_stateE(i64 noundef 3, i64 noundef 3, i64 noundef 10, ptr noundef nonnull %2, ptr noundef nonnull %4, ptr noundef nonnull %3, ptr noundef %1)
  call void @_ZL36testclusteringunit_kmeanssimpletest1lllPbS_S_PN11alglib_impl8ae_stateE(i64 noundef 3, i64 noundef 4, i64 noundef 10, ptr noundef nonnull %2, ptr noundef nonnull %4, ptr noundef nonnull %3, ptr noundef %1)
  call void @_ZL36testclusteringunit_kmeanssimpletest1lllPbS_S_PN11alglib_impl8ae_stateE(i64 noundef 3, i64 noundef 5, i64 noundef 10, ptr noundef nonnull %2, ptr noundef nonnull %4, ptr noundef nonnull %3, ptr noundef %1)
  call void @_ZL36testclusteringunit_kmeanssimpletest1lllPbS_S_PN11alglib_impl8ae_stateE(i64 noundef 4, i64 noundef 1, i64 noundef 10, ptr noundef nonnull %2, ptr noundef nonnull %4, ptr noundef nonnull %3, ptr noundef %1)
  call void @_ZL36testclusteringunit_kmeanssimpletest1lllPbS_S_PN11alglib_impl8ae_stateE(i64 noundef 4, i64 noundef 2, i64 noundef 10, ptr noundef nonnull %2, ptr noundef nonnull %4, ptr noundef nonnull %3, ptr noundef %1)
  call void @_ZL36testclusteringunit_kmeanssimpletest1lllPbS_S_PN11alglib_impl8ae_stateE(i64 noundef 4, i64 noundef 3, i64 noundef 10, ptr noundef nonnull %2, ptr noundef nonnull %4, ptr noundef nonnull %3, ptr noundef %1)
  call void @_ZL36testclusteringunit_kmeanssimpletest1lllPbS_S_PN11alglib_impl8ae_stateE(i64 noundef 4, i64 noundef 4, i64 noundef 10, ptr noundef nonnull %2, ptr noundef nonnull %4, ptr noundef nonnull %3, ptr noundef %1)
  call void @_ZL36testclusteringunit_kmeanssimpletest1lllPbS_S_PN11alglib_impl8ae_stateE(i64 noundef 4, i64 noundef 5, i64 noundef 10, ptr noundef nonnull %2, ptr noundef nonnull %4, ptr noundef nonnull %3, ptr noundef %1)
  call void @_ZL36testclusteringunit_kmeanssimpletest1lllPbS_S_PN11alglib_impl8ae_stateE(i64 noundef 5, i64 noundef 1, i64 noundef 10, ptr noundef nonnull %2, ptr noundef nonnull %4, ptr noundef nonnull %3, ptr noundef %1)
  call void @_ZL36testclusteringunit_kmeanssimpletest1lllPbS_S_PN11alglib_impl8ae_stateE(i64 noundef 5, i64 noundef 2, i64 noundef 10, ptr noundef nonnull %2, ptr noundef nonnull %4, ptr noundef nonnull %3, ptr noundef %1)
  call void @_ZL36testclusteringunit_kmeanssimpletest1lllPbS_S_PN11alglib_impl8ae_stateE(i64 noundef 5, i64 noundef 3, i64 noundef 10, ptr noundef nonnull %2, ptr noundef nonnull %4, ptr noundef nonnull %3, ptr noundef %1)
  call void @_ZL36testclusteringunit_kmeanssimpletest1lllPbS_S_PN11alglib_impl8ae_stateE(i64 noundef 5, i64 noundef 4, i64 noundef 10, ptr noundef nonnull %2, ptr noundef nonnull %4, ptr noundef nonnull %3, ptr noundef %1)
  call void @_ZL36testclusteringunit_kmeanssimpletest1lllPbS_S_PN11alglib_impl8ae_stateE(i64 noundef 5, i64 noundef 5, i64 noundef 10, ptr noundef nonnull %2, ptr noundef nonnull %4, ptr noundef nonnull %3, ptr noundef %1)
  %8 = or i1 %6, %7
  br i1 %8, label %21, label %9

9:                                                ; preds = %.preheader
  %10 = load i8, ptr %2, align 1, !tbaa !5, !range !9, !noundef !10
  %11 = trunc nuw i8 %10 to i1
  br i1 %11, label %21, label %12

12:                                               ; preds = %9
  %13 = load i8, ptr %4, align 1, !tbaa !5, !range !9, !noundef !10
  %14 = trunc nuw i8 %13 to i1
  br i1 %14, label %21, label %15

15:                                               ; preds = %12
  %16 = load i8, ptr %3, align 1, !tbaa !5, !range !9, !noundef !10
  %17 = trunc nuw i8 %16 to i1
  br i1 %17, label %21, label %18

18:                                               ; preds = %15
  %19 = load i8, ptr %5, align 1, !tbaa !5, !range !9, !noundef !10
  %20 = trunc nuw i8 %19 to i1
  br label %21

21:                                               ; preds = %9, %12, %15, %18, %.preheader
  %22 = phi i1 [ true, %.preheader ], [ true, %15 ], [ true, %12 ], [ true, %9 ], [ %20, %18 ]
  br i1 %0, label %49, label %23

23:                                               ; preds = %21
  %24 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.564)
  %25 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.565)
  %26 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.566)
  %.str.7..str.6 = select i1 %6, ptr @.str.7, ptr @.str.6
  %27 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.7..str.6)
  %28 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.567)
  %.str.7.sink25 = select i1 %7, ptr @.str.7, ptr @.str.6
  %29 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.7.sink25)
  %30 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.568)
  %31 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.569)
  %32 = load i8, ptr %2, align 1, !tbaa !5, !range !9, !noundef !10
  %33 = trunc nuw i8 %32 to i1
  %.str.7.sink26 = select i1 %33, ptr @.str.7, ptr @.str.6
  %34 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.7.sink26)
  %35 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.570)
  %36 = load i8, ptr %3, align 1, !tbaa !5, !range !9, !noundef !10
  %37 = trunc nuw i8 %36 to i1
  %.str.7.sink27 = select i1 %37, ptr @.str.7, ptr @.str.6
  %38 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.7.sink27)
  %39 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.571)
  %40 = load i8, ptr %4, align 1, !tbaa !5, !range !9, !noundef !10
  %41 = trunc nuw i8 %40 to i1
  %.str.7.sink28 = select i1 %41, ptr @.str.7, ptr @.str.6
  %42 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.7.sink28)
  %43 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.572)
  %44 = load i8, ptr %5, align 1, !tbaa !5, !range !9, !noundef !10
  %45 = trunc nuw i8 %44 to i1
  %.str.7.sink29 = select i1 %45, ptr @.str.7, ptr @.str.6
  %46 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.7.sink29)
  %.str.2.sink = select i1 %22, ptr @.str.1, ptr @.str.2
  %47 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.2.sink)
  %48 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3)
  br label %49

49:                                               ; preds = %23, %21
  %50 = xor i1 %22, true
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %3) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %2) #3
  ret i1 %50
}

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZL32testclusteringunit_basicahctestsPN11alglib_impl8ae_stateE(ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZL35testclusteringunit_advancedahctestsPN11alglib_impl8ae_stateE(ptr noundef) local_unnamed_addr #2

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

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL36testclusteringunit_kmeanssimpletest1lllPbS_S_PN11alglib_impl8ae_stateE(i64 noundef, i64 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 = { nofree nounwind "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 = !{!"bool", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{i8 0, i8 2}
!10 = !{}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LoopRotatePass,LoopSimplifyPass,SROAPass,SimplifyCFGPass,TailCallElimPass