; LLVM IR from sp-nitech/SPTK :: src/compression/linde_buzo_gray_algorithm.ll (ZN4sptk22LindeBuzoGrayAlgorithmC2Eiiiiiddi)

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

%"class.sptk::LindeBuzoGrayAlgorithm" = type <{ ptr, i32, i32, i32, i32, i32, [4 x i8], double, double, i32, [4 x i8], %"class.sptk::DistanceCalculation", %"class.sptk::StatisticsAccumulation", %"class.sptk::VectorQuantization", i8, [7 x i8] }>
%"class.sptk::DistanceCalculation" = type <{ ptr, i32, i32, i8, [7 x i8] }>
%"class.sptk::StatisticsAccumulation" = type <{ ptr, i32, i32, i8, i8, i8, [5 x i8] }>
%"class.sptk::VectorQuantization" = type <{ ptr, i32, [4 x i8], %"class.sptk::DistanceCalculation", i8, [7 x i8] }>

@_ZTVN4sptk22LindeBuzoGrayAlgorithmE = external dso_local unnamed_addr constant { [4 x ptr] }, align 8

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4sptk22LindeBuzoGrayAlgorithmC2Eiiiiiddi(ptr noundef nonnull align 8 dereferenceable(153) %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, double noundef %6, double noundef %7, i32 noundef %8) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca double, align 8
  %17 = alloca double, align 8
  %18 = alloca i32, align 4
  %19 = alloca ptr, align 8
  %20 = alloca i32, align 4
  store ptr %0, ptr %10, align 8, !tbaa !5
  store i32 %1, ptr %11, align 4, !tbaa !9
  store i32 %2, ptr %12, align 4, !tbaa !9
  store i32 %3, ptr %13, align 4, !tbaa !9
  store i32 %4, ptr %14, align 4, !tbaa !9
  store i32 %5, ptr %15, align 4, !tbaa !9
  store double %6, ptr %16, align 8, !tbaa !11
  store double %7, ptr %17, align 8, !tbaa !11
  store i32 %8, ptr %18, align 4, !tbaa !9
  %21 = load ptr, ptr %10, align 8
  store ptr getelementptr inbounds inrange(-16, 16) ({ [4 x ptr] }, ptr @_ZTVN4sptk22LindeBuzoGrayAlgorithmE, i32 0, i32 0, i32 2), ptr %21, align 8, !tbaa !13
  %22 = getelementptr inbounds %"class.sptk::LindeBuzoGrayAlgorithm", ptr %21, i32 0, i32 1
  %23 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %23, ptr %22, align 8, !tbaa !15
  %24 = getelementptr inbounds %"class.sptk::LindeBuzoGrayAlgorithm", ptr %21, i32 0, i32 2
  %25 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %25, ptr %24, align 4, !tbaa !22
  %26 = getelementptr inbounds %"class.sptk::LindeBuzoGrayAlgorithm", ptr %21, i32 0, i32 3
  %27 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %27, ptr %26, align 8, !tbaa !23
  %28 = getelementptr inbounds %"class.sptk::LindeBuzoGrayAlgorithm", ptr %21, i32 0, i32 4
  %29 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %29, ptr %28, align 4, !tbaa !24
  %30 = getelementptr inbounds %"class.sptk::LindeBuzoGrayAlgorithm", ptr %21, i32 0, i32 5
  %31 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %31, ptr %30, align 8, !tbaa !25
  %32 = getelementptr inbounds %"class.sptk::LindeBuzoGrayAlgorithm", ptr %21, i32 0, i32 7
  %33 = load double, ptr %16, align 8, !tbaa !11
  store double %33, ptr %32, align 8, !tbaa !26
  %34 = getelementptr inbounds %"class.sptk::LindeBuzoGrayAlgorithm", ptr %21, i32 0, i32 8
  %35 = load double, ptr %17, align 8, !tbaa !11
  store double %35, ptr %34, align 8, !tbaa !27
  %36 = getelementptr inbounds %"class.sptk::LindeBuzoGrayAlgorithm", ptr %21, i32 0, i32 9
  %37 = load i32, ptr %18, align 4, !tbaa !9
  store i32 %37, ptr %36, align 8, !tbaa !28
  %38 = getelementptr inbounds %"class.sptk::LindeBuzoGrayAlgorithm", ptr %21, i32 0, i32 11
  %39 = getelementptr inbounds %"class.sptk::LindeBuzoGrayAlgorithm", ptr %21, i32 0, i32 1
  %40 = load i32, ptr %39, align 8, !tbaa !15
  call void @_ZN4sptk19DistanceCalculationC1EiNS0_15DistanceMetricsE(ptr noundef nonnull align 8 dereferenceable(17) %38, i32 noundef %40, i32 noundef 2)
  %41 = getelementptr inbounds %"class.sptk::LindeBuzoGrayAlgorithm", ptr %21, i32 0, i32 12
  %42 = getelementptr inbounds %"class.sptk::LindeBuzoGrayAlgorithm", ptr %21, i32 0, i32 1
  %43 = load i32, ptr %42, align 8, !tbaa !15
  invoke void @_ZN4sptk22StatisticsAccumulationC1Eiibb(ptr noundef nonnull align 8 dereferenceable(19) %41, i32 noundef %43, i32 noundef 1, i1 noundef zeroext false, i1 noundef zeroext false)
          to label %44 unwind label %93

44:                                               ; preds = %9
  %45 = getelementptr inbounds %"class.sptk::LindeBuzoGrayAlgorithm", ptr %21, i32 0, i32 13
  %46 = getelementptr inbounds %"class.sptk::LindeBuzoGrayAlgorithm", ptr %21, i32 0, i32 1
  %47 = load i32, ptr %46, align 8, !tbaa !15
  invoke void @_ZN4sptk18VectorQuantizationC1Ei(ptr noundef nonnull align 8 dereferenceable(41) %45, i32 noundef %47)
          to label %48 unwind label %97

48:                                               ; preds = %44
  %49 = getelementptr inbounds %"class.sptk::LindeBuzoGrayAlgorithm", ptr %21, i32 0, i32 14
  store i8 1, ptr %49, align 8, !tbaa !29
  %50 = getelementptr inbounds %"class.sptk::LindeBuzoGrayAlgorithm", ptr %21, i32 0, i32 1
  %51 = load i32, ptr %50, align 8, !tbaa !15
  %52 = icmp slt i32 %51, 0
  br i1 %52, label %91, label %53

53:                                               ; preds = %48
  %54 = getelementptr inbounds %"class.sptk::LindeBuzoGrayAlgorithm", ptr %21, i32 0, i32 2
  %55 = load i32, ptr %54, align 4, !tbaa !22
  %56 = icmp sle i32 %55, 0
  br i1 %56, label %91, label %57

57:                                               ; preds = %53
  %58 = getelementptr inbounds %"class.sptk::LindeBuzoGrayAlgorithm", ptr %21, i32 0, i32 3
  %59 = load i32, ptr %58, align 8, !tbaa !23
  %60 = getelementptr inbounds %"class.sptk::LindeBuzoGrayAlgorithm", ptr %21, i32 0, i32 2
  %61 = load i32, ptr %60, align 4, !tbaa !22
  %62 = icmp sle i32 %59, %61
  br i1 %62, label %91, label %63

63:                                               ; preds = %57
  %64 = getelementptr inbounds %"class.sptk::LindeBuzoGrayAlgorithm", ptr %21, i32 0, i32 4
  %65 = load i32, ptr %64, align 4, !tbaa !24
  %66 = icmp sle i32 %65, 0
  br i1 %66, label %91, label %67

67:                                               ; preds = %63
  %68 = getelementptr inbounds %"class.sptk::LindeBuzoGrayAlgorithm", ptr %21, i32 0, i32 5
  %69 = load i32, ptr %68, align 8, !tbaa !25
  %70 = icmp sle i32 %69, 0
  br i1 %70, label %91, label %71

71:                                               ; preds = %67
  %72 = getelementptr inbounds %"class.sptk::LindeBuzoGrayAlgorithm", ptr %21, i32 0, i32 7
  %73 = load double, ptr %72, align 8, !tbaa !26
  %74 = fcmp olt double %73, 0.000000e+00
  br i1 %74, label %91, label %75

75:                                               ; preds = %71
  %76 = getelementptr inbounds %"class.sptk::LindeBuzoGrayAlgorithm", ptr %21, i32 0, i32 8
  %77 = load double, ptr %76, align 8, !tbaa !27
  %78 = fcmp ole double %77, 0.000000e+00
  br i1 %78, label %91, label %79

79:                                               ; preds = %75
  %80 = getelementptr inbounds %"class.sptk::LindeBuzoGrayAlgorithm", ptr %21, i32 0, i32 11
  %81 = invoke noundef zeroext i1 @_ZNK4sptk19DistanceCalculation7IsValidEv(ptr noundef nonnull align 8 dereferenceable(17) %80)
          to label %82 unwind label %101

82:                                               ; preds = %79
  br i1 %81, label %83, label %91

83:                                               ; preds = %82
  %84 = getelementptr inbounds %"class.sptk::LindeBuzoGrayAlgorithm", ptr %21, i32 0, i32 12
  %85 = invoke noundef zeroext i1 @_ZNK4sptk22StatisticsAccumulation7IsValidEv(ptr noundef nonnull align 8 dereferenceable(19) %84)
          to label %86 unwind label %101

86:                                               ; preds = %83
  br i1 %85, label %87, label %91

87:                                               ; preds = %86
  %88 = getelementptr inbounds %"class.sptk::LindeBuzoGrayAlgorithm", ptr %21, i32 0, i32 13
  %89 = invoke noundef zeroext i1 @_ZNK4sptk18VectorQuantization7IsValidEv(ptr noundef nonnull align 8 dereferenceable(41) %88)
          to label %90 unwind label %101

90:                                               ; preds = %87
  br i1 %89, label %105, label %91

91:                                               ; preds = %90, %86, %82, %75, %71, %67, %63, %57, %53, %48
  %92 = getelementptr inbounds %"class.sptk::LindeBuzoGrayAlgorithm", ptr %21, i32 0, i32 14
  store i8 0, ptr %92, align 8, !tbaa !29
  br label %105

93:                                               ; preds = %9
  %94 = landingpad { ptr, i32 }
          cleanup
  %95 = extractvalue { ptr, i32 } %94, 0
  store ptr %95, ptr %19, align 8
  %96 = extractvalue { ptr, i32 } %94, 1
  store i32 %96, ptr %20, align 4
  br label %107

97:                                               ; preds = %44
  %98 = landingpad { ptr, i32 }
          cleanup
  %99 = extractvalue { ptr, i32 } %98, 0
  store ptr %99, ptr %19, align 8
  %100 = extractvalue { ptr, i32 } %98, 1
  store i32 %100, ptr %20, align 4
  br label %106

101:                                              ; preds = %87, %83, %79
  %102 = landingpad { ptr, i32 }
          cleanup
  %103 = extractvalue { ptr, i32 } %102, 0
  store ptr %103, ptr %19, align 8
  %104 = extractvalue { ptr, i32 } %102, 1
  store i32 %104, ptr %20, align 4
  call void @_ZN4sptk18VectorQuantizationD2Ev(ptr noundef nonnull align 8 dereferenceable(41) %45) #3
  br label %106

105:                                              ; preds = %91, %90
  ret void

106:                                              ; preds = %101, %97
  call void @_ZN4sptk22StatisticsAccumulationD2Ev(ptr noundef nonnull align 8 dereferenceable(19) %41) #3
  br label %107

107:                                              ; preds = %106, %93
  call void @_ZN4sptk19DistanceCalculationD2Ev(ptr noundef nonnull align 8 dereferenceable(17) %38) #3
  br label %108

108:                                              ; preds = %107
  %109 = load ptr, ptr %19, align 8
  %110 = load i32, ptr %20, align 4
  %111 = insertvalue { ptr, i32 } poison, ptr %109, 0
  %112 = insertvalue { ptr, i32 } %111, i32 %110, 1
  resume { ptr, i32 } %112
}

declare void @_ZN4sptk19DistanceCalculationC1EiNS0_15DistanceMetricsE(ptr noundef nonnull align 8 dereferenceable(17), i32 noundef, i32 noundef) unnamed_addr #1

declare void @_ZN4sptk22StatisticsAccumulationC1Eiibb(ptr noundef nonnull align 8 dereferenceable(19), i32 noundef, i32 noundef, i1 noundef zeroext, i1 noundef zeroext) unnamed_addr #1

declare i32 @__gxx_personality_v0(...)

declare void @_ZN4sptk18VectorQuantizationC1Ei(ptr noundef nonnull align 8 dereferenceable(41), i32 noundef) unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK4sptk19DistanceCalculation7IsValidEv(ptr noundef nonnull align 8 dereferenceable(17)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK4sptk22StatisticsAccumulation7IsValidEv(ptr noundef nonnull align 8 dereferenceable(19)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK4sptk18VectorQuantization7IsValidEv(ptr noundef nonnull align 8 dereferenceable(41)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4sptk18VectorQuantizationD2Ev(ptr noundef nonnull align 8 dereferenceable(41)) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4sptk22StatisticsAccumulationD2Ev(ptr noundef nonnull align 8 dereferenceable(19)) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4sptk19DistanceCalculationD2Ev(ptr noundef nonnull align 8 dereferenceable(17)) unnamed_addr #2 align 2

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" }
attributes #2 = { mustprogress nounwind 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 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"vtable pointer", !8, i64 0}
!15 = !{!16, !10, i64 8}
!16 = !{!"_ZTSN4sptk22LindeBuzoGrayAlgorithmE", !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !12, i64 32, !12, i64 40, !10, i64 48, !17, i64 56, !20, i64 80, !21, i64 104, !19, i64 152}
!17 = !{!"_ZTSN4sptk19DistanceCalculationE", !10, i64 8, !18, i64 12, !19, i64 16}
!18 = !{!"_ZTSN4sptk19DistanceCalculation15DistanceMetricsE", !7, i64 0}
!19 = !{!"bool", !7, i64 0}
!20 = !{!"_ZTSN4sptk22StatisticsAccumulationE", !10, i64 8, !10, i64 12, !19, i64 16, !19, i64 17, !19, i64 18}
!21 = !{!"_ZTSN4sptk18VectorQuantizationE", !10, i64 8, !17, i64 16, !19, i64 40}
!22 = !{!16, !10, i64 12}
!23 = !{!16, !10, i64 16}
!24 = !{!16, !10, i64 20}
!25 = !{!16, !10, i64 24}
!26 = !{!16, !12, i64 32}
!27 = !{!16, !12, i64 40}
!28 = !{!16, !10, i64 48}
!29 = !{!16, !19, i64 152}


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

@_ZTVN4sptk22LindeBuzoGrayAlgorithmE = external dso_local unnamed_addr constant { [4 x ptr] }, align 8

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4sptk22LindeBuzoGrayAlgorithmC2Eiiiiiddi(ptr noundef nonnull align 8 dereferenceable(153) %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, double noundef %6, double noundef %7, i32 noundef %8) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  store ptr getelementptr inbounds inrange(-16, 16) (i8, ptr @_ZTVN4sptk22LindeBuzoGrayAlgorithmE, i64 16), ptr %0, align 8, !tbaa !5
  %10 = getelementptr inbounds i8, ptr %0, i64 8
  store i32 %1, ptr %10, align 8, !tbaa !8
  %11 = getelementptr inbounds i8, ptr %0, i64 12
  store i32 %2, ptr %11, align 4, !tbaa !18
  %12 = getelementptr inbounds i8, ptr %0, i64 16
  store i32 %3, ptr %12, align 8, !tbaa !19
  %13 = getelementptr inbounds i8, ptr %0, i64 20
  store i32 %4, ptr %13, align 4, !tbaa !20
  %14 = getelementptr inbounds i8, ptr %0, i64 24
  store i32 %5, ptr %14, align 8, !tbaa !21
  %15 = getelementptr inbounds i8, ptr %0, i64 32
  store double %6, ptr %15, align 8, !tbaa !22
  %16 = getelementptr inbounds i8, ptr %0, i64 40
  store double %7, ptr %16, align 8, !tbaa !23
  %17 = getelementptr inbounds i8, ptr %0, i64 48
  store i32 %8, ptr %17, align 8, !tbaa !24
  %18 = getelementptr inbounds i8, ptr %0, i64 56
  tail call void @_ZN4sptk19DistanceCalculationC1EiNS0_15DistanceMetricsE(ptr noundef nonnull align 8 dereferenceable(17) %18, i32 noundef %1, i32 noundef 2)
  %19 = getelementptr inbounds i8, ptr %0, i64 80
  %20 = load i32, ptr %10, align 8, !tbaa !8
  invoke void @_ZN4sptk22StatisticsAccumulationC1Eiibb(ptr noundef nonnull align 8 dereferenceable(19) %19, i32 noundef %20, i32 noundef 1, i1 noundef zeroext false, i1 noundef zeroext false)
          to label %21 unwind label %46

21:                                               ; preds = %9
  %22 = getelementptr inbounds i8, ptr %0, i64 104
  %23 = load i32, ptr %10, align 8, !tbaa !8
  invoke void @_ZN4sptk18VectorQuantizationC1Ei(ptr noundef nonnull align 8 dereferenceable(41) %22, i32 noundef %23)
          to label %24 unwind label %48

24:                                               ; preds = %21
  %25 = getelementptr inbounds i8, ptr %0, i64 152
  store i8 1, ptr %25, align 8, !tbaa !25
  %26 = load i32, ptr %10, align 8, !tbaa !8
  %27 = icmp slt i32 %26, 0
  br i1 %27, label %45, label %28

28:                                               ; preds = %24
  %29 = load <4 x i32>, ptr %11, align 4
  %30 = shufflevector <4 x i32> <i32 0, i32 poison, i32 0, i32 0>, <4 x i32> %29, <4 x i32> <i32 0, i32 4, i32 2, i32 3>
  %31 = icmp sgt <4 x i32> %29, %30
  %32 = load double, ptr %15, align 8
  %33 = fcmp uge double %32, 0.000000e+00
  %34 = load double, ptr %16, align 8
  %.fr32 = freeze double %34
  %35 = fcmp ugt double %.fr32, 0.000000e+00
  %36 = freeze <4 x i1> %31
  %37 = bitcast <4 x i1> %36 to i4
  %38 = icmp eq i4 %37, -1
  %op.rdx = and i1 %38, %35
  %op.rdx31 = select i1 %op.rdx, i1 %33, i1 false
  br i1 %op.rdx31, label %39, label %45

39:                                               ; preds = %28
  %40 = tail call noundef zeroext i1 @_ZNK4sptk19DistanceCalculation7IsValidEv(ptr noundef nonnull align 8 dereferenceable(17) %18)
  br i1 %40, label %41, label %45

41:                                               ; preds = %39
  %42 = tail call noundef zeroext i1 @_ZNK4sptk22StatisticsAccumulation7IsValidEv(ptr noundef nonnull align 8 dereferenceable(19) %19)
  br i1 %42, label %43, label %45

43:                                               ; preds = %41
  %44 = tail call noundef zeroext i1 @_ZNK4sptk18VectorQuantization7IsValidEv(ptr noundef nonnull align 8 dereferenceable(41) %22)
  br i1 %44, label %50, label %45

45:                                               ; preds = %43, %41, %39, %28, %24
  store i8 0, ptr %25, align 8, !tbaa !25
  br label %50

46:                                               ; preds = %9
  %47 = landingpad { ptr, i32 }
          cleanup
  br label %51

48:                                               ; preds = %21
  %49 = landingpad { ptr, i32 }
          cleanup
  tail call void @_ZN4sptk22StatisticsAccumulationD2Ev(ptr noundef nonnull align 8 dereferenceable(19) %19) #3
  br label %51

50:                                               ; preds = %45, %43
  ret void

51:                                               ; preds = %48, %46
  %.pn = phi { ptr, i32 } [ %49, %48 ], [ %47, %46 ]
  tail call void @_ZN4sptk19DistanceCalculationD2Ev(ptr noundef nonnull align 8 dereferenceable(17) %18) #3
  resume { ptr, i32 } %.pn
}

declare void @_ZN4sptk19DistanceCalculationC1EiNS0_15DistanceMetricsE(ptr noundef nonnull align 8 dereferenceable(17), i32 noundef, i32 noundef) unnamed_addr #1

declare void @_ZN4sptk22StatisticsAccumulationC1Eiibb(ptr noundef nonnull align 8 dereferenceable(19), i32 noundef, i32 noundef, i1 noundef zeroext, i1 noundef zeroext) unnamed_addr #1

declare i32 @__gxx_personality_v0(...)

declare void @_ZN4sptk18VectorQuantizationC1Ei(ptr noundef nonnull align 8 dereferenceable(41), i32 noundef) unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK4sptk19DistanceCalculation7IsValidEv(ptr noundef nonnull align 8 dereferenceable(17)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK4sptk22StatisticsAccumulation7IsValidEv(ptr noundef nonnull align 8 dereferenceable(19)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK4sptk18VectorQuantization7IsValidEv(ptr noundef nonnull align 8 dereferenceable(41)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4sptk22StatisticsAccumulationD2Ev(ptr noundef nonnull align 8 dereferenceable(19)) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4sptk19DistanceCalculationD2Ev(ptr noundef nonnull align 8 dereferenceable(17)) unnamed_addr #2 align 2

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" }
attributes #2 = { mustprogress nounwind 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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !10, i64 8}
!9 = !{!"_ZTSN4sptk22LindeBuzoGrayAlgorithmE", !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !12, i64 32, !12, i64 40, !10, i64 48, !13, i64 56, !16, i64 80, !17, i64 104, !15, i64 152}
!10 = !{!"int", !11, i64 0}
!11 = !{!"omnipotent char", !7, i64 0}
!12 = !{!"double", !11, i64 0}
!13 = !{!"_ZTSN4sptk19DistanceCalculationE", !10, i64 8, !14, i64 12, !15, i64 16}
!14 = !{!"_ZTSN4sptk19DistanceCalculation15DistanceMetricsE", !11, i64 0}
!15 = !{!"bool", !11, i64 0}
!16 = !{!"_ZTSN4sptk22StatisticsAccumulationE", !10, i64 8, !10, i64 12, !15, i64 16, !15, i64 17, !15, i64 18}
!17 = !{!"_ZTSN4sptk18VectorQuantizationE", !10, i64 8, !13, i64 16, !15, i64 40}
!18 = !{!9, !10, i64 12}
!19 = !{!9, !10, i64 16}
!20 = !{!9, !10, i64 20}
!21 = !{!9, !10, i64 24}
!22 = !{!9, !12, i64 32}
!23 = !{!9, !12, i64 40}
!24 = !{!9, !10, i64 48}
!25 = !{!9, !15, i64 152}


; Effective O3 passes: EarlyCSEPass,GlobalDCEPass,GlobalOptPass,InstCombinePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass