; LLVM IR from sp-nitech/SPTK :: src/math (gaussian_mixture_model_based_conversion)

; 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.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<std::vector<double>, std::allocator<std::vector<double>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<double>, std::allocator<std::vector<double>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<double>, std::allocator<std::vector<double>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<double>, std::allocator<std::vector<double>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator" = type { i8 }
%"class.std::allocator.2" = type { i8 }
%"class.std::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = type { %"struct.std::_Vector_base<sptk::SymmetricMatrix, std::allocator<sptk::SymmetricMatrix>>::_Vector_impl" }
%"struct.std::_Vector_base<sptk::SymmetricMatrix, std::allocator<sptk::SymmetricMatrix>>::_Vector_impl" = type { %"struct.std::_Vector_base<sptk::SymmetricMatrix, std::allocator<sptk::SymmetricMatrix>>::_Vector_impl_data" }
%"struct.std::_Vector_base<sptk::SymmetricMatrix, std::allocator<sptk::SymmetricMatrix>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.sptk::SymmetricMatrix" = type { ptr, i32, %"class.std::vector", %"class.std::vector.15" }
%"class.std::vector.15" = type { %"struct.std::_Vector_base.16" }
%"struct.std::_Vector_base.16" = type { %"struct.std::_Vector_base<double *, std::allocator<double *>>::_Vector_impl" }
%"struct.std::_Vector_base<double *, std::allocator<double *>>::_Vector_impl" = type { %"struct.std::_Vector_base<double *, std::allocator<double *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<double *, std::allocator<double *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.7" = type { i8 }
%"class.sptk::GaussianMixtureModeling::Buffer" = type <{ ptr, %"class.std::vector", %"class.std::vector", %"class.std::vector.5", i8, [7 x i8] }>
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.sptk::GaussianMixtureModelBasedConversion" = type { ptr, i32, i32, i32, i32, %"class.std::vector", i8, double, i32, %"class.sptk::NonrecursiveMaximumLikelihoodParameterGeneration", i8, %"class.std::vector.0", %"class.std::vector.5", %"class.std::vector.10", %"class.std::vector.0", %"class.std::vector.5" }
%"class.sptk::NonrecursiveMaximumLikelihoodParameterGeneration" = type { ptr, i32, %"class.std::vector.0", i8, double, i8, i32 }
%"class.std::vector.10" = type { %"struct.std::_Vector_base.11" }
%"struct.std::_Vector_base.11" = type { %"struct.std::_Vector_base<sptk::Matrix, std::allocator<sptk::Matrix>>::_Vector_impl" }
%"struct.std::_Vector_base<sptk::Matrix, std::allocator<sptk::Matrix>>::_Vector_impl" = type { %"struct.std::_Vector_base<sptk::Matrix, std::allocator<sptk::Matrix>>::_Vector_impl_data" }
%"struct.std::_Vector_base<sptk::Matrix, std::allocator<sptk::Matrix>>::_Vector_impl_data" = type { ptr, ptr, ptr }

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIS_IdSaIdEESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #0 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaIdEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIdSaIdEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaISt6vectorIdSaIdEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIS_IdSaIdEESaIS1_EEC2EmRKS1_RKS2_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorISt6vectorIdSaIdEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #0 align 2

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #0 align 2

declare void @_ZN4sptk15SymmetricMatrixC1Ei(ptr noundef nonnull align 8 dereferenceable(64), i32 noundef) unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaIN4sptk15SymmetricMatrixEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIN4sptk15SymmetricMatrixESaIS1_EEC2EmRKS1_RKS2_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 8 dereferenceable(64), ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIN4sptk15SymmetricMatrixEED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #0 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(64) ptr @_ZNKSt6vectorIN4sptk15SymmetricMatrixESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(64) ptr @_ZNSt6vectorIN4sptk15SymmetricMatrixESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #0 align 2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #0 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZNK4sptk35GaussianMixtureModelBasedConversion3RunERKSt6vectorIS1_IdSaIdEESaIS3_EEPS5_(ptr noundef nonnull align 8 dereferenceable(264) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef %2) #2 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca i1, align 1
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca %"class.std::vector.0", align 8
  %10 = alloca %"class.std::vector", align 8
  %11 = alloca %"class.std::allocator", align 1
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca %"class.std::allocator.2", align 1
  %15 = alloca %"class.std::vector.5", align 8
  %16 = alloca %"class.sptk::SymmetricMatrix", align 8
  %17 = alloca %"class.std::allocator.7", align 1
  %18 = alloca %"class.std::vector", align 8
  %19 = alloca %"class.std::allocator", align 1
  %20 = alloca %"class.sptk::GaussianMixtureModeling::Buffer", align 8
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %25 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %26 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %27 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %28 = alloca i32, align 4
  %29 = alloca double, align 8
  %30 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  %31 = load ptr, ptr %5, align 8
  %32 = getelementptr inbounds %"class.sptk::GaussianMixtureModelBasedConversion", ptr %31, i32 0, i32 10
  %33 = load i8, ptr %32, align 8, !tbaa !9, !range !31, !noundef !32
  %34 = trunc i8 %33 to i1
  br i1 %34, label %35, label %41

35:                                               ; preds = %3
  %36 = load ptr, ptr %6, align 8, !tbaa !5
  %37 = call noundef zeroext i1 @_ZNKSt6vectorIS_IdSaIdEESaIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %36) #7
  br i1 %37, label %41, label %38

38:                                               ; preds = %35
  %39 = load ptr, ptr %7, align 8, !tbaa !5
  %40 = icmp eq ptr null, %39
  br i1 %40, label %41, label %42

41:                                               ; preds = %38, %35, %3
  store i1 false, ptr %4, align 1
  br label %256

42:                                               ; preds = %38
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  %43 = load ptr, ptr %6, align 8, !tbaa !5
  %44 = call noundef i64 @_ZNKSt6vectorIS_IdSaIdEESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %43) #7
  %45 = trunc i64 %44 to i32
  store i32 %45, ptr %8, align 4, !tbaa !33
  call void @llvm.lifetime.start.p0(i64 24, ptr %9) #7
  %46 = load i32, ptr %8, align 4, !tbaa !33
  %47 = sext i32 %46 to i64
  call void @llvm.lifetime.start.p0(i64 24, ptr %10) #7
  %48 = getelementptr inbounds %"class.sptk::GaussianMixtureModelBasedConversion", ptr %31, i32 0, i32 4
  %49 = load i32, ptr %48, align 4, !tbaa !34
  %50 = sext i32 %49 to i64
  %51 = getelementptr inbounds %"class.sptk::GaussianMixtureModelBasedConversion", ptr %31, i32 0, i32 7
  call void @llvm.lifetime.start.p0(i64 1, ptr %11) #7
  call void @_ZNSaIdEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #7
  invoke void @_ZNSt6vectorIdSaIdEEC2EmRKdRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %50, ptr noundef nonnull align 8 dereferenceable(8) %51, ptr noundef nonnull align 1 dereferenceable(1) %11)
          to label %52 unwind label %70

52:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 1, ptr %14) #7
  call void @_ZNSaISt6vectorIdSaIdEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #7
  invoke void @_ZNSt6vectorIS_IdSaIdEESaIS1_EEC2EmRKS1_RKS2_(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %47, ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef nonnull align 1 dereferenceable(1) %14)
          to label %53 unwind label %74

53:                                               ; preds = %52
  call void @_ZNSt15__new_allocatorISt6vectorIdSaIdEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #7
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #7
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr %15) #7
  %54 = load i32, ptr %8, align 4, !tbaa !33
  %55 = sext i32 %54 to i64
  call void @llvm.lifetime.start.p0(i64 64, ptr %16) #7
  %56 = getelementptr inbounds %"class.sptk::GaussianMixtureModelBasedConversion", ptr %31, i32 0, i32 4
  %57 = load i32, ptr %56, align 4, !tbaa !34
  invoke void @_ZN4sptk15SymmetricMatrixC1Ei(ptr noundef nonnull align 8 dereferenceable(64) %16, i32 noundef %57)
          to label %58 unwind label %79

58:                                               ; preds = %53
  call void @llvm.lifetime.start.p0(i64 1, ptr %17) #7
  call void @_ZNSaIN4sptk15SymmetricMatrixEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #7
  invoke void @_ZNSt6vectorIN4sptk15SymmetricMatrixESaIS1_EEC2EmRKS1_RKS2_(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %55, ptr noundef nonnull align 8 dereferenceable(64) %16, ptr noundef nonnull align 1 dereferenceable(1) %17)
          to label %59 unwind label %83

59:                                               ; preds = %58
  call void @_ZNSt15__new_allocatorIN4sptk15SymmetricMatrixEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #7
  call void @_ZN4sptk15SymmetricMatrixD2Ev(ptr noundef nonnull align 8 dereferenceable(64) %16) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr %16) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr %18) #7
  %60 = getelementptr inbounds %"class.sptk::GaussianMixtureModelBasedConversion", ptr %31, i32 0, i32 8
  %61 = load i32, ptr %60, align 8, !tbaa !35
  %62 = sext i32 %61 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr %19) #7
  call void @_ZNSaIdEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #7
  invoke void @_ZNSt6vectorIdSaIdEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %62, ptr noundef nonnull align 1 dereferenceable(1) %19)
          to label %63 unwind label %88

63:                                               ; preds = %59
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #7
  call void @llvm.lifetime.start.p0(i64 88, ptr %20) #7
  invoke void @_ZN4sptk23GaussianMixtureModeling6BufferC2Ev(ptr noundef nonnull align 8 dereferenceable(81) %20)
          to label %64 unwind label %92

64:                                               ; preds = %63
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #7
  store i32 0, ptr %21, align 4, !tbaa !33
  br label %65

65:                                               ; preds = %225, %64
  %66 = load i32, ptr %21, align 4, !tbaa !33
  %67 = load i32, ptr %8, align 4, !tbaa !33
  %68 = icmp slt i32 %66, %67
  br i1 %68, label %96, label %69

69:                                               ; preds = %65
  store i32 2, ptr %22, align 4
  br label %233

70:                                               ; preds = %42
  %71 = landingpad { ptr, i32 }
          cleanup
  %72 = extractvalue { ptr, i32 } %71, 0
  store ptr %72, ptr %12, align 8
  %73 = extractvalue { ptr, i32 } %71, 1
  store i32 %73, ptr %13, align 4
  br label %78

74:                                               ; preds = %52
  %75 = landingpad { ptr, i32 }
          cleanup
  %76 = extractvalue { ptr, i32 } %75, 0
  store ptr %76, ptr %12, align 8
  %77 = extractvalue { ptr, i32 } %75, 1
  store i32 %77, ptr %13, align 4
  call void @_ZNSt15__new_allocatorISt6vectorIdSaIdEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #7
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #7
  br label %78

78:                                               ; preds = %74, %70
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #7
  br label %255

79:                                               ; preds = %53
  %80 = landingpad { ptr, i32 }
          cleanup
  %81 = extractvalue { ptr, i32 } %80, 0
  store ptr %81, ptr %12, align 8
  %82 = extractvalue { ptr, i32 } %80, 1
  store i32 %82, ptr %13, align 4
  br label %87

83:                                               ; preds = %58
  %84 = landingpad { ptr, i32 }
          cleanup
  %85 = extractvalue { ptr, i32 } %84, 0
  store ptr %85, ptr %12, align 8
  %86 = extractvalue { ptr, i32 } %84, 1
  store i32 %86, ptr %13, align 4
  call void @_ZNSt15__new_allocatorIN4sptk15SymmetricMatrixEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #7
  call void @_ZN4sptk15SymmetricMatrixD2Ev(ptr noundef nonnull align 8 dereferenceable(64) %16) #7
  br label %87

87:                                               ; preds = %83, %79
  call void @llvm.lifetime.end.p0(i64 64, ptr %16) #7
  br label %254

88:                                               ; preds = %59
  %89 = landingpad { ptr, i32 }
          cleanup
  %90 = extractvalue { ptr, i32 } %89, 0
  store ptr %90, ptr %12, align 8
  %91 = extractvalue { ptr, i32 } %89, 1
  store i32 %91, ptr %13, align 4
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #7
  br label %246

92:                                               ; preds = %63
  %93 = landingpad { ptr, i32 }
          cleanup
  %94 = extractvalue { ptr, i32 } %93, 0
  store ptr %94, ptr %12, align 8
  %95 = extractvalue { ptr, i32 } %93, 1
  store i32 %95, ptr %13, align 4
  br label %245

96:                                               ; preds = %65
  %97 = getelementptr inbounds %"class.sptk::GaussianMixtureModelBasedConversion", ptr %31, i32 0, i32 6
  %98 = load i8, ptr %97, align 8, !tbaa !36, !range !31, !noundef !32
  %99 = trunc i8 %98 to i1
  br i1 %99, label %100, label %111

100:                                              ; preds = %96
  %101 = getelementptr inbounds %"class.sptk::GaussianMixtureModelBasedConversion", ptr %31, i32 0, i32 7
  %102 = load double, ptr %101, align 8, !tbaa !37
  %103 = load ptr, ptr %6, align 8, !tbaa !5
  %104 = load i32, ptr %21, align 4, !tbaa !33
  %105 = sext i32 %104 to i64
  %106 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %103, i64 noundef %105) #7
  %107 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %106, i64 noundef 0) #7
  %108 = load double, ptr %107, align 8, !tbaa !38
  %109 = fcmp oeq double %102, %108
  br i1 %109, label %110, label %111

110:                                              ; preds = %100
  br label %225

111:                                              ; preds = %100, %96
  %112 = getelementptr inbounds %"class.sptk::GaussianMixtureModelBasedConversion", ptr %31, i32 0, i32 3
  %113 = load i32, ptr %112, align 8, !tbaa !39
  %114 = sub nsw i32 %113, 1
  %115 = getelementptr inbounds %"class.sptk::GaussianMixtureModelBasedConversion", ptr %31, i32 0, i32 8
  %116 = load i32, ptr %115, align 8, !tbaa !35
  %117 = load i32, ptr %21, align 4, !tbaa !33
  %118 = icmp eq i32 0, %117
  %119 = load ptr, ptr %6, align 8, !tbaa !5
  %120 = load i32, ptr %21, align 4, !tbaa !33
  %121 = sext i32 %120 to i64
  %122 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %119, i64 noundef %121) #7
  %123 = getelementptr inbounds %"class.sptk::GaussianMixtureModelBasedConversion", ptr %31, i32 0, i32 5
  %124 = getelementptr inbounds %"class.sptk::GaussianMixtureModelBasedConversion", ptr %31, i32 0, i32 11
  %125 = getelementptr inbounds %"class.sptk::GaussianMixtureModelBasedConversion", ptr %31, i32 0, i32 12
  %126 = invoke noundef zeroext i1 @_ZN4sptk23GaussianMixtureModeling23CalculateLogProbabilityEiibbRKSt6vectorIdSaIdEES5_RKS1_IS3_SaIS3_EERKS1_INS_15SymmetricMatrixESaISA_EEPS3_PdPNS0_6BufferE(i32 noundef %114, i32 noundef %116, i1 noundef zeroext false, i1 noundef zeroext %118, ptr noundef nonnull align 8 dereferenceable(24) %122, ptr noundef nonnull align 8 dereferenceable(24) %123, ptr noundef nonnull align 8 dereferenceable(24) %124, ptr noundef nonnull align 8 dereferenceable(24) %125, ptr noundef %18, ptr noundef null, ptr noundef %20)
          to label %127 unwind label %129

127:                                              ; preds = %111
  br i1 %126, label %133, label %128

128:                                              ; preds = %127
  store i1 false, ptr %4, align 1
  store i32 1, ptr %22, align 4
  br label %233

129:                                              ; preds = %111
  %130 = landingpad { ptr, i32 }
          cleanup
  %131 = extractvalue { ptr, i32 } %130, 0
  store ptr %131, ptr %12, align 8
  %132 = extractvalue { ptr, i32 } %130, 1
  store i32 %132, ptr %13, align 4
  br label %235

133:                                              ; preds = %127
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #7
  %134 = call ptr @_ZNSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %18) #7
  %135 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %25, i32 0, i32 0
  store ptr %134, ptr %135, align 8
  %136 = call ptr @_ZNSt6vectorIdSaIdEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %18) #7
  %137 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %26, i32 0, i32 0
  store ptr %136, ptr %137, align 8
  %138 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %25, i32 0, i32 0
  %139 = load ptr, ptr %138, align 8
  %140 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %26, i32 0, i32 0
  %141 = load ptr, ptr %140, align 8
  %142 = invoke ptr @_ZSt11max_elementIN9__gnu_cxx17__normal_iteratorIPdSt6vectorIdSaIdEEEEET_S7_S7_(ptr %139, ptr %141)
          to label %143 unwind label %155

143:                                              ; preds = %133
  %144 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %24, i32 0, i32 0
  store ptr %142, ptr %144, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #7
  %145 = call ptr @_ZNSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %18) #7
  %146 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %27, i32 0, i32 0
  store ptr %145, ptr %146, align 8
  %147 = call noundef i64 @_ZN9__gnu_cxxmiIPdSt6vectorIdSaIdEEEENS_17__normal_iteratorIT_T0_E15difference_typeERKS8_SB_(ptr noundef nonnull align 8 dereferenceable(8) %24, ptr noundef nonnull align 8 dereferenceable(8) %27) #7
  %148 = trunc i64 %147 to i32
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #7
  store i32 %148, ptr %23, align 4, !tbaa !33
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #7
  store i32 0, ptr %28, align 4, !tbaa !33
  br label %149

149:                                              ; preds = %212, %143
  %150 = load i32, ptr %28, align 4, !tbaa !33
  %151 = getelementptr inbounds %"class.sptk::GaussianMixtureModelBasedConversion", ptr %31, i32 0, i32 4
  %152 = load i32, ptr %151, align 4, !tbaa !34
  %153 = icmp slt i32 %150, %152
  br i1 %153, label %159, label %154

154:                                              ; preds = %149
  store i32 5, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #7
  br label %215

155:                                              ; preds = %133
  %156 = landingpad { ptr, i32 }
          cleanup
  %157 = extractvalue { ptr, i32 } %156, 0
  store ptr %157, ptr %12, align 8
  %158 = extractvalue { ptr, i32 } %156, 1
  store i32 %158, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #7
  br label %232

159:                                              ; preds = %149
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #7
  store double 0.000000e+00, ptr %29, align 8, !tbaa !38
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #7
  store i32 0, ptr %30, align 4, !tbaa !33
  br label %160

160:                                              ; preds = %188, %159
  %161 = load i32, ptr %30, align 4, !tbaa !33
  %162 = getelementptr inbounds %"class.sptk::GaussianMixtureModelBasedConversion", ptr %31, i32 0, i32 3
  %163 = load i32, ptr %162, align 8, !tbaa !39
  %164 = icmp slt i32 %161, %163
  br i1 %164, label %166, label %165

165:                                              ; preds = %160
  store i32 8, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #7
  br label %195

166:                                              ; preds = %160
  %167 = getelementptr inbounds %"class.sptk::GaussianMixtureModelBasedConversion", ptr %31, i32 0, i32 13
  %168 = load i32, ptr %23, align 4, !tbaa !33
  %169 = sext i32 %168 to i64
  %170 = call noundef nonnull align 8 dereferenceable(64) ptr @_ZNKSt6vectorIN4sptk6MatrixESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %167, i64 noundef %169) #7
  %171 = load i32, ptr %28, align 4, !tbaa !33
  %172 = invoke noundef ptr @_ZNK4sptk6MatrixixEi(ptr noundef nonnull align 8 dereferenceable(64) %170, i32 noundef %171)
          to label %173 unwind label %191

173:                                              ; preds = %166
  %174 = load i32, ptr %30, align 4, !tbaa !33
  %175 = sext i32 %174 to i64
  %176 = getelementptr inbounds double, ptr %172, i64 %175
  %177 = load double, ptr %176, align 8, !tbaa !38
  %178 = load ptr, ptr %6, align 8, !tbaa !5
  %179 = load i32, ptr %21, align 4, !tbaa !33
  %180 = sext i32 %179 to i64
  %181 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %178, i64 noundef %180) #7
  %182 = load i32, ptr %30, align 4, !tbaa !33
  %183 = sext i32 %182 to i64
  %184 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %181, i64 noundef %183) #7
  %185 = load double, ptr %184, align 8, !tbaa !38
  %186 = load double, ptr %29, align 8, !tbaa !38
  %187 = call double @llvm.fmuladd.f64(double %177, double %185, double %186)
  store double %187, ptr %29, align 8, !tbaa !38
  br label %188

188:                                              ; preds = %173
  %189 = load i32, ptr %30, align 4, !tbaa !33
  %190 = add nsw i32 %189, 1
  store i32 %190, ptr %30, align 4, !tbaa !33
  br label %160, !llvm.loop !40

191:                                              ; preds = %166
  %192 = landingpad { ptr, i32 }
          cleanup
  %193 = extractvalue { ptr, i32 } %192, 0
  store ptr %193, ptr %12, align 8
  %194 = extractvalue { ptr, i32 } %192, 1
  store i32 %194, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #7
  br label %232

195:                                              ; preds = %165
  %196 = getelementptr inbounds %"class.sptk::GaussianMixtureModelBasedConversion", ptr %31, i32 0, i32 14
  %197 = load i32, ptr %23, align 4, !tbaa !33
  %198 = sext i32 %197 to i64
  %199 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %196, i64 noundef %198) #7
  %200 = load i32, ptr %28, align 4, !tbaa !33
  %201 = sext i32 %200 to i64
  %202 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %199, i64 noundef %201) #7
  %203 = load double, ptr %202, align 8, !tbaa !38
  %204 = load double, ptr %29, align 8, !tbaa !38
  %205 = fadd double %203, %204
  %206 = load i32, ptr %21, align 4, !tbaa !33
  %207 = sext i32 %206 to i64
  %208 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %207) #7
  %209 = load i32, ptr %28, align 4, !tbaa !33
  %210 = sext i32 %209 to i64
  %211 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %208, i64 noundef %210) #7
  store double %205, ptr %211, align 8, !tbaa !38
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #7
  br label %212

212:                                              ; preds = %195
  %213 = load i32, ptr %28, align 4, !tbaa !33
  %214 = add nsw i32 %213, 1
  store i32 %214, ptr %28, align 4, !tbaa !33
  br label %149, !llvm.loop !42

215:                                              ; preds = %154
  %216 = getelementptr inbounds %"class.sptk::GaussianMixtureModelBasedConversion", ptr %31, i32 0, i32 15
  %217 = load i32, ptr %23, align 4, !tbaa !33
  %218 = sext i32 %217 to i64
  %219 = call noundef nonnull align 8 dereferenceable(64) ptr @_ZNKSt6vectorIN4sptk15SymmetricMatrixESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %216, i64 noundef %218) #7
  %220 = load i32, ptr %21, align 4, !tbaa !33
  %221 = sext i32 %220 to i64
  %222 = call noundef nonnull align 8 dereferenceable(64) ptr @_ZNSt6vectorIN4sptk15SymmetricMatrixESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %221) #7
  %223 = invoke noundef nonnull align 8 dereferenceable(64) ptr @_ZN4sptk15SymmetricMatrixaSERKS0_(ptr noundef nonnull align 8 dereferenceable(64) %222, ptr noundef nonnull align 8 dereferenceable(64) %219)
          to label %224 unwind label %228

224:                                              ; preds = %215
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #7
  br label %225

225:                                              ; preds = %224, %110
  %226 = load i32, ptr %21, align 4, !tbaa !33
  %227 = add nsw i32 %226, 1
  store i32 %227, ptr %21, align 4, !tbaa !33
  br label %65, !llvm.loop !43

228:                                              ; preds = %215
  %229 = landingpad { ptr, i32 }
          cleanup
  %230 = extractvalue { ptr, i32 } %229, 0
  store ptr %230, ptr %12, align 8
  %231 = extractvalue { ptr, i32 } %229, 1
  store i32 %231, ptr %13, align 4
  br label %232

232:                                              ; preds = %228, %191, %155
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #7
  br label %235

233:                                              ; preds = %128, %69
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #7
  %234 = load i32, ptr %22, align 4
  switch i32 %234, label %237 [
    i32 2, label %236
  ]

235:                                              ; preds = %232, %129
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #7
  call void @_ZN4sptk23GaussianMixtureModeling6BufferD2Ev(ptr noundef nonnull align 8 dereferenceable(81) %20) #7
  br label %245

236:                                              ; preds = %233
  store i32 0, ptr %22, align 4
  br label %237

237:                                              ; preds = %236, %233
  call void @_ZN4sptk23GaussianMixtureModeling6BufferD2Ev(ptr noundef nonnull align 8 dereferenceable(81) %20) #7
  call void @llvm.lifetime.end.p0(i64 88, ptr %20) #7
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %18) #7
  %238 = load i32, ptr %22, align 4
  switch i32 %238, label %252 [
    i32 0, label %239
  ]

239:                                              ; preds = %237
  %240 = getelementptr inbounds %"class.sptk::GaussianMixtureModelBasedConversion", ptr %31, i32 0, i32 9
  %241 = load ptr, ptr %7, align 8, !tbaa !5
  %242 = invoke noundef zeroext i1 @_ZNK4sptk48NonrecursiveMaximumLikelihoodParameterGeneration3RunERKSt6vectorIS1_IdSaIdEESaIS3_EERKS1_INS_15SymmetricMatrixESaIS8_EEPS5_(ptr noundef nonnull align 8 dereferenceable(64) %240, ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull align 8 dereferenceable(24) %15, ptr noundef %241)
          to label %243 unwind label %247

243:                                              ; preds = %239
  br i1 %242, label %251, label %244

244:                                              ; preds = %243
  store i1 false, ptr %4, align 1
  store i32 1, ptr %22, align 4
  br label %252

245:                                              ; preds = %235, %92
  call void @llvm.lifetime.end.p0(i64 88, ptr %20) #7
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #7
  br label %246

246:                                              ; preds = %245, %88
  call void @llvm.lifetime.end.p0(i64 24, ptr %18) #7
  br label %253

247:                                              ; preds = %239
  %248 = landingpad { ptr, i32 }
          cleanup
  %249 = extractvalue { ptr, i32 } %248, 0
  store ptr %249, ptr %12, align 8
  %250 = extractvalue { ptr, i32 } %248, 1
  store i32 %250, ptr %13, align 4
  br label %253

251:                                              ; preds = %243
  store i1 true, ptr %4, align 1
  store i32 1, ptr %22, align 4
  br label %252

252:                                              ; preds = %251, %244, %237
  call void @_ZNSt6vectorIN4sptk15SymmetricMatrixESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #7
  call void @_ZNSt6vectorIS_IdSaIdEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  br label %256

253:                                              ; preds = %247, %246
  call void @_ZNSt6vectorIN4sptk15SymmetricMatrixESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #7
  br label %254

254:                                              ; preds = %253, %87
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #7
  call void @_ZNSt6vectorIS_IdSaIdEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #7
  br label %255

255:                                              ; preds = %254, %78
  call void @llvm.lifetime.end.p0(i64 24, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  br label %258

256:                                              ; preds = %252, %41
  %257 = load i1, ptr %4, align 1
  ret i1 %257

258:                                              ; preds = %255
  %259 = load ptr, ptr %12, align 8
  %260 = load i32, ptr %13, align 4
  %261 = insertvalue { ptr, i32 } poison, ptr %259, 0
  %262 = insertvalue { ptr, i32 } %261, i32 %260, 1
  resume { ptr, i32 } %262
}

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIdSaIdEEC2EmRKdRKS0_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

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

declare noundef zeroext i1 @_ZN4sptk23GaussianMixtureModeling23CalculateLogProbabilityEiibbRKSt6vectorIdSaIdEES5_RKS1_IS3_SaIS3_EERKS1_INS_15SymmetricMatrixESaISA_EEPS3_PdPNS0_6BufferE(i32 noundef, i32 noundef, i1 noundef zeroext, i1 noundef zeroext, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef, ptr noundef, ptr noundef) #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN9__gnu_cxxmiIPdSt6vectorIdSaIdEEEENS_17__normal_iteratorIT_T0_E15difference_typeERKS8_SB_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #5

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local ptr @_ZSt11max_elementIN9__gnu_cxx17__normal_iteratorIPdSt6vectorIdSaIdEEEEET_S7_S7_(ptr, ptr) #6

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIdSaIdEE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(64) ptr @_ZNKSt6vectorIN4sptk6MatrixESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK4sptk6MatrixixEi(ptr noundef nonnull align 8 dereferenceable(64), i32 noundef) #0 align 2

declare noundef nonnull align 8 dereferenceable(64) ptr @_ZN4sptk15SymmetricMatrixaSERKS0_(ptr noundef nonnull align 8 dereferenceable(64), ptr noundef nonnull align 8 dereferenceable(64)) #3

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

declare noundef zeroext i1 @_ZNK4sptk48NonrecursiveMaximumLikelihoodParameterGeneration3RunERKSt6vectorIS1_IdSaIdEESaIS3_EERKS1_INS_15SymmetricMatrixESaIS8_EEPS5_(ptr noundef nonnull align 8 dereferenceable(64), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef) #3

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { inlinehint 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 #6 = { inlinehint 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 #7 = { 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, !16, i64 136}
!10 = !{!"_ZTSN4sptk35GaussianMixtureModelBasedConversionE", !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !12, i64 24, !16, i64 48, !17, i64 56, !11, i64 64, !18, i64 72, !16, i64 136, !19, i64 144, !23, i64 168, !27, i64 192, !19, i64 216, !23, i64 240}
!11 = !{!"int", !7, i64 0}
!12 = !{!"_ZTSSt6vectorIdSaIdEE", !13, i64 0}
!13 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !14, i64 0}
!14 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!16 = !{!"bool", !7, i64 0}
!17 = !{!"double", !7, i64 0}
!18 = !{!"_ZTSN4sptk48NonrecursiveMaximumLikelihoodParameterGenerationE", !11, i64 8, !19, i64 16, !16, i64 40, !17, i64 48, !16, i64 56, !11, i64 60}
!19 = !{!"_ZTSSt6vectorIS_IdSaIdEESaIS1_EE", !20, i64 0}
!20 = !{!"_ZTSSt12_Vector_baseISt6vectorIdSaIdEESaIS2_EE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseISt6vectorIdSaIdEESaIS2_EE12_Vector_implE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseISt6vectorIdSaIdEESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!23 = !{!"_ZTSSt6vectorIN4sptk15SymmetricMatrixESaIS1_EE", !24, i64 0}
!24 = !{!"_ZTSSt12_Vector_baseIN4sptk15SymmetricMatrixESaIS1_EE", !25, i64 0}
!25 = !{!"_ZTSNSt12_Vector_baseIN4sptk15SymmetricMatrixESaIS1_EE12_Vector_implE", !26, i64 0}
!26 = !{!"_ZTSNSt12_Vector_baseIN4sptk15SymmetricMatrixESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!27 = !{!"_ZTSSt6vectorIN4sptk6MatrixESaIS1_EE", !28, i64 0}
!28 = !{!"_ZTSSt12_Vector_baseIN4sptk6MatrixESaIS1_EE", !29, i64 0}
!29 = !{!"_ZTSNSt12_Vector_baseIN4sptk6MatrixESaIS1_EE12_Vector_implE", !30, i64 0}
!30 = !{!"_ZTSNSt12_Vector_baseIN4sptk6MatrixESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!31 = !{i8 0, i8 2}
!32 = !{}
!33 = !{!11, !11, i64 0}
!34 = !{!10, !11, i64 20}
!35 = !{!10, !11, i64 64}
!36 = !{!10, !16, i64 48}
!37 = !{!10, !17, i64 56}
!38 = !{!17, !17, i64 0}
!39 = !{!10, !11, i64 16}
!40 = distinct !{!40, !41}
!41 = !{!"llvm.loop.mustprogress"}
!42 = distinct !{!42, !41}
!43 = distinct !{!43, !41}


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

%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<std::vector<double>, std::allocator<std::vector<double>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<double>, std::allocator<std::vector<double>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<double>, std::allocator<std::vector<double>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<double>, std::allocator<std::vector<double>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator" = type { i8 }
%"class.std::allocator.2" = type { i8 }
%"class.std::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = type { %"struct.std::_Vector_base<sptk::SymmetricMatrix, std::allocator<sptk::SymmetricMatrix>>::_Vector_impl" }
%"struct.std::_Vector_base<sptk::SymmetricMatrix, std::allocator<sptk::SymmetricMatrix>>::_Vector_impl" = type { %"struct.std::_Vector_base<sptk::SymmetricMatrix, std::allocator<sptk::SymmetricMatrix>>::_Vector_impl_data" }
%"struct.std::_Vector_base<sptk::SymmetricMatrix, std::allocator<sptk::SymmetricMatrix>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.sptk::SymmetricMatrix" = type { ptr, i32, %"class.std::vector", %"class.std::vector.15" }
%"class.std::vector.15" = type { %"struct.std::_Vector_base.16" }
%"struct.std::_Vector_base.16" = type { %"struct.std::_Vector_base<double *, std::allocator<double *>>::_Vector_impl" }
%"struct.std::_Vector_base<double *, std::allocator<double *>>::_Vector_impl" = type { %"struct.std::_Vector_base<double *, std::allocator<double *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<double *, std::allocator<double *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.7" = type { i8 }
%"class.sptk::GaussianMixtureModeling::Buffer" = type <{ ptr, %"class.std::vector", %"class.std::vector", %"class.std::vector.5", i8, [7 x i8] }>
%"class.__gnu_cxx::__normal_iterator" = type { ptr }

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIS_IdSaIdEESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaIdEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIdSaIdEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaISt6vectorIdSaIdEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIS_IdSaIdEESaIS1_EEC2EmRKS1_RKS2_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorISt6vectorIdSaIdEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #0 align 2

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #0 align 2

declare void @_ZN4sptk15SymmetricMatrixC1Ei(ptr noundef nonnull align 8 dereferenceable(64), i32 noundef) unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaIN4sptk15SymmetricMatrixEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIN4sptk15SymmetricMatrixESaIS1_EEC2EmRKS1_RKS2_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 8 dereferenceable(64), ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIN4sptk15SymmetricMatrixEED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #0 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(64) ptr @_ZNKSt6vectorIN4sptk15SymmetricMatrixESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(64) ptr @_ZNSt6vectorIN4sptk15SymmetricMatrixESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #0 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZNK4sptk35GaussianMixtureModelBasedConversion3RunERKSt6vectorIS1_IdSaIdEESaIS3_EEPS5_(ptr noundef nonnull align 8 dereferenceable(264) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef %2) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.std::vector.0", align 8
  %5 = alloca %"class.std::vector", align 8
  %6 = alloca %"class.std::allocator", align 1
  %7 = alloca %"class.std::allocator.2", align 1
  %8 = alloca %"class.std::vector.5", align 8
  %9 = alloca %"class.sptk::SymmetricMatrix", align 8
  %10 = alloca %"class.std::allocator.7", align 1
  %11 = alloca %"class.std::vector", align 8
  %12 = alloca %"class.std::allocator", align 1
  %13 = alloca %"class.sptk::GaussianMixtureModeling::Buffer", align 8
  %14 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %15 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %16 = getelementptr inbounds i8, ptr %0, i64 136
  %17 = load i8, ptr %16, align 8, !tbaa !5, !range !30, !noundef !31
  %18 = trunc nuw i8 %17 to i1
  br i1 %18, label %19, label %130

19:                                               ; preds = %3
  %20 = tail call noundef zeroext i1 @_ZNKSt6vectorIS_IdSaIdEESaIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #7
  %21 = icmp eq ptr %2, null
  %or.cond = or i1 %21, %20
  br i1 %or.cond, label %130, label %22

22:                                               ; preds = %19
  %23 = tail call noundef i64 @_ZNKSt6vectorIS_IdSaIdEESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #7
  %24 = trunc i64 %23 to i32
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #7
  %sext = shl i64 %23, 32
  %25 = ashr exact i64 %sext, 32
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #7
  %26 = getelementptr inbounds i8, ptr %0, i64 20
  %27 = load i32, ptr %26, align 4, !tbaa !32
  %28 = sext i32 %27 to i64
  %29 = getelementptr inbounds i8, ptr %0, i64 56
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #7
  call void @_ZNSaIdEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #7
  invoke void @_ZNSt6vectorIdSaIdEEC2EmRKdRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %28, ptr noundef nonnull align 8 dereferenceable(8) %29, ptr noundef nonnull align 1 dereferenceable(1) %6)
          to label %30 unwind label %47

30:                                               ; preds = %22
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %7) #7
  call void @_ZNSaISt6vectorIdSaIdEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #7
  invoke void @_ZNSt6vectorIS_IdSaIdEESaIS1_EEC2EmRKS1_RKS2_(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %25, ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 1 dereferenceable(1) %7)
          to label %31 unwind label %49

31:                                               ; preds = %30
  call void @_ZNSt15__new_allocatorISt6vectorIdSaIdEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #7
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #7
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #7
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %9) #7
  %32 = load i32, ptr %26, align 4, !tbaa !32
  invoke void @_ZN4sptk15SymmetricMatrixC1Ei(ptr noundef nonnull align 8 dereferenceable(64) %9, i32 noundef %32)
          to label %33 unwind label %52

33:                                               ; preds = %31
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %10) #7
  call void @_ZNSaIN4sptk15SymmetricMatrixEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #7
  invoke void @_ZNSt6vectorIN4sptk15SymmetricMatrixESaIS1_EEC2EmRKS1_RKS2_(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %25, ptr noundef nonnull align 8 dereferenceable(64) %9, ptr noundef nonnull align 1 dereferenceable(1) %10)
          to label %34 unwind label %54

34:                                               ; preds = %33
  call void @_ZNSt15__new_allocatorIN4sptk15SymmetricMatrixEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #7
  call void @_ZN4sptk15SymmetricMatrixD2Ev(ptr noundef nonnull align 8 dereferenceable(64) %9) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %9) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %11) #7
  %35 = getelementptr inbounds i8, ptr %0, i64 64
  %36 = load i32, ptr %35, align 8, !tbaa !33
  %37 = sext i32 %36 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %12) #7
  call void @_ZNSaIdEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #7
  invoke void @_ZNSt6vectorIdSaIdEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %37, ptr noundef nonnull align 1 dereferenceable(1) %12)
          to label %38 unwind label %57

38:                                               ; preds = %34
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %12) #7
  call void @llvm.lifetime.start.p0(i64 88, ptr nonnull %13) #7
  call void @_ZN4sptk23GaussianMixtureModeling6BufferC2Ev(ptr noundef nonnull align 8 dereferenceable(81) %13)
  %.not74 = icmp sgt i32 %24, 0
  br i1 %.not74, label %.lr.ph77, label %._crit_edge78

.lr.ph77:                                         ; preds = %38
  %39 = getelementptr inbounds i8, ptr %0, i64 48
  %40 = getelementptr inbounds i8, ptr %0, i64 16
  %41 = getelementptr inbounds i8, ptr %0, i64 24
  %42 = getelementptr inbounds i8, ptr %0, i64 144
  %43 = getelementptr inbounds i8, ptr %0, i64 168
  %44 = getelementptr inbounds i8, ptr %0, i64 192
  %45 = getelementptr inbounds i8, ptr %0, i64 216
  %46 = getelementptr inbounds i8, ptr %0, i64 240
  %wide.trip.count = and i64 %23, 2147483647
  br label %59

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

49:                                               ; preds = %30
  %50 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorISt6vectorIdSaIdEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #7
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #7
  br label %51

51:                                               ; preds = %49, %47
  %.pn = phi { ptr, i32 } [ %50, %49 ], [ %48, %47 ]
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #7
  br label %129

52:                                               ; preds = %31
  %53 = landingpad { ptr, i32 }
          cleanup
  br label %56

54:                                               ; preds = %33
  %55 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIN4sptk15SymmetricMatrixEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #7
  call void @_ZN4sptk15SymmetricMatrixD2Ev(ptr noundef nonnull align 8 dereferenceable(64) %9) #7
  br label %56

56:                                               ; preds = %54, %52
  %.pn58 = phi { ptr, i32 } [ %55, %54 ], [ %53, %52 ]
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %9) #7
  br label %128

57:                                               ; preds = %34
  %58 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %12) #7
  br label %123

59:                                               ; preds = %.lr.ph77, %116
  %indvars.iv83 = phi i64 [ 0, %.lr.ph77 ], [ %indvars.iv.next84, %116 ]
  %60 = load i8, ptr %39, align 8, !tbaa !34, !range !30, !noundef !31
  %61 = trunc nuw i8 %60 to i1
  br i1 %61, label %62, label %68

62:                                               ; preds = %59
  %63 = load double, ptr %29, align 8, !tbaa !35
  %64 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %indvars.iv83) #7
  %65 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %64, i64 noundef 0) #7
  %66 = load double, ptr %65, align 8, !tbaa !36
  %67 = fcmp oeq double %63, %66
  br i1 %67, label %116, label %68

68:                                               ; preds = %62, %59
  %69 = load i32, ptr %40, align 8, !tbaa !37
  %70 = add nsw i32 %69, -1
  %71 = load i32, ptr %35, align 8, !tbaa !33
  %72 = icmp eq i64 %indvars.iv83, 0
  %73 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %indvars.iv83) #7
  %74 = invoke noundef zeroext i1 @_ZN4sptk23GaussianMixtureModeling23CalculateLogProbabilityEiibbRKSt6vectorIdSaIdEES5_RKS1_IS3_SaIS3_EERKS1_INS_15SymmetricMatrixESaISA_EEPS3_PdPNS0_6BufferE(i32 noundef %70, i32 noundef %71, i1 noundef zeroext false, i1 noundef zeroext %72, ptr noundef nonnull align 8 dereferenceable(24) %73, ptr noundef nonnull align 8 dereferenceable(24) %41, ptr noundef nonnull align 8 dereferenceable(24) %42, ptr noundef nonnull align 8 dereferenceable(24) %43, ptr noundef nonnull %11, ptr noundef null, ptr noundef nonnull %13)
          to label %75 unwind label %76

75:                                               ; preds = %68
  br i1 %74, label %78, label %119

76:                                               ; preds = %68
  %77 = landingpad { ptr, i32 }
          cleanup
  br label %120

78:                                               ; preds = %75
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #7
  %79 = call ptr @_ZNSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %11) #7
  %80 = call ptr @_ZNSt6vectorIdSaIdEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %11) #7
  %81 = invoke ptr @_ZSt11max_elementIN9__gnu_cxx17__normal_iteratorIPdSt6vectorIdSaIdEEEEET_S7_S7_(ptr %79, ptr %80)
          to label %82 unwind label %94

82:                                               ; preds = %78
  store ptr %81, ptr %14, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #7
  %83 = call ptr @_ZNSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %11) #7
  store ptr %83, ptr %15, align 8
  %84 = call noundef i64 @_ZN9__gnu_cxxmiIPdSt6vectorIdSaIdEEEENS_17__normal_iteratorIT_T0_E15difference_typeERKS8_SB_(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 8 dereferenceable(8) %15) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #7
  %85 = load i32, ptr %26, align 4, !tbaa !32
  %86 = icmp sgt i32 %85, 0
  %sext69 = shl i64 %84, 32
  %87 = ashr exact i64 %sext69, 32
  br i1 %86, label %.preheader, label %._crit_edge73

.preheader:                                       ; preds = %82, %._crit_edge
  %indvars.iv80 = phi i64 [ %indvars.iv.next81, %._crit_edge ], [ 0, %82 ]
  %88 = load i32, ptr %40, align 8, !tbaa !37
  %89 = icmp sgt i32 %88, 0
  br i1 %89, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %.preheader
  %90 = trunc nuw nsw i64 %indvars.iv80 to i32
  br label %.lr.ph

._crit_edge73:                                    ; preds = %._crit_edge, %82
  %91 = call noundef nonnull align 8 dereferenceable(64) ptr @_ZNKSt6vectorIN4sptk15SymmetricMatrixESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %46, i64 noundef %87) #7
  %92 = call noundef nonnull align 8 dereferenceable(64) ptr @_ZNSt6vectorIN4sptk15SymmetricMatrixESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %indvars.iv83) #7
  %93 = invoke noundef nonnull align 8 dereferenceable(64) ptr @_ZN4sptk15SymmetricMatrixaSERKS0_(ptr noundef nonnull align 8 dereferenceable(64) %92, ptr noundef nonnull align 8 dereferenceable(64) %91)
          to label %116 unwind label %117

94:                                               ; preds = %78
  %95 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #7
  br label %120

._crit_edge:                                      ; preds = %.lr.ph, %.preheader
  %.040.lcssa = phi double [ 0.000000e+00, %.preheader ], [ %112, %.lr.ph ]
  %96 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %45, i64 noundef %87) #7
  %97 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %96, i64 noundef %indvars.iv80) #7
  %98 = load double, ptr %97, align 8, !tbaa !36
  %99 = fadd double %.040.lcssa, %98
  %100 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %indvars.iv83) #7
  %101 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %100, i64 noundef %indvars.iv80) #7
  store double %99, ptr %101, align 8, !tbaa !36
  %indvars.iv.next81 = add nuw nsw i64 %indvars.iv80, 1
  %102 = load i32, ptr %26, align 4, !tbaa !32
  %103 = sext i32 %102 to i64
  %104 = icmp slt i64 %indvars.iv.next81, %103
  br i1 %104, label %.preheader, label %._crit_edge73, !llvm.loop !38

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %.lr.ph ]
  %.04070 = phi double [ 0.000000e+00, %.lr.ph.preheader ], [ %112, %.lr.ph ]
  %105 = call noundef nonnull align 8 dereferenceable(64) ptr @_ZNKSt6vectorIN4sptk6MatrixESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %44, i64 noundef %87) #7
  %106 = call noundef ptr @_ZNK4sptk6MatrixixEi(ptr noundef nonnull align 8 dereferenceable(64) %105, i32 noundef %90)
  %107 = getelementptr inbounds double, ptr %106, i64 %indvars.iv
  %108 = load double, ptr %107, align 8, !tbaa !36
  %109 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %indvars.iv83) #7
  %110 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %109, i64 noundef %indvars.iv) #7
  %111 = load double, ptr %110, align 8, !tbaa !36
  %112 = call double @llvm.fmuladd.f64(double %108, double %111, double %.04070)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %113 = load i32, ptr %40, align 8, !tbaa !37
  %114 = sext i32 %113 to i64
  %115 = icmp slt i64 %indvars.iv.next, %114
  br i1 %115, label %.lr.ph, label %._crit_edge, !llvm.loop !40

116:                                              ; preds = %._crit_edge73, %62
  %indvars.iv.next84 = add nuw nsw i64 %indvars.iv83, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next84, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge78, label %59, !llvm.loop !41

117:                                              ; preds = %._crit_edge73
  %118 = landingpad { ptr, i32 }
          cleanup
  br label %120

119:                                              ; preds = %75
  call void @_ZN4sptk23GaussianMixtureModeling6BufferD2Ev(ptr noundef nonnull align 8 dereferenceable(81) %13) #7
  call void @llvm.lifetime.end.p0(i64 88, ptr nonnull %13) #7
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #7
  br label %126

120:                                              ; preds = %94, %117, %76
  %.pn61.pn = phi { ptr, i32 } [ %77, %76 ], [ %118, %117 ], [ %95, %94 ]
  call void @_ZN4sptk23GaussianMixtureModeling6BufferD2Ev(ptr noundef nonnull align 8 dereferenceable(81) %13) #7
  call void @llvm.lifetime.end.p0(i64 88, ptr nonnull %13) #7
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #7
  br label %123

._crit_edge78:                                    ; preds = %116, %38
  call void @_ZN4sptk23GaussianMixtureModeling6BufferD2Ev(ptr noundef nonnull align 8 dereferenceable(81) %13) #7
  call void @llvm.lifetime.end.p0(i64 88, ptr nonnull %13) #7
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #7
  %121 = getelementptr inbounds i8, ptr %0, i64 72
  %122 = invoke noundef zeroext i1 @_ZNK4sptk48NonrecursiveMaximumLikelihoodParameterGeneration3RunERKSt6vectorIS1_IdSaIdEESaIS3_EERKS1_INS_15SymmetricMatrixESaIS8_EEPS5_(ptr noundef nonnull align 8 dereferenceable(64) %121, ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef %2)
          to label %126 unwind label %124

123:                                              ; preds = %120, %57
  %.pn61.pn.pn = phi { ptr, i32 } [ %.pn61.pn, %120 ], [ %58, %57 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #7
  br label %127

124:                                              ; preds = %._crit_edge78
  %125 = landingpad { ptr, i32 }
          cleanup
  br label %127

126:                                              ; preds = %._crit_edge78, %119
  %.1 = phi i1 [ false, %119 ], [ %122, %._crit_edge78 ]
  call void @_ZNSt6vectorIN4sptk15SymmetricMatrixESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #7
  call void @_ZNSt6vectorIS_IdSaIdEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #7
  br label %130

127:                                              ; preds = %124, %123
  %.pn61.pn.pn.pn = phi { ptr, i32 } [ %.pn61.pn.pn, %123 ], [ %125, %124 ]
  call void @_ZNSt6vectorIN4sptk15SymmetricMatrixESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #7
  br label %128

128:                                              ; preds = %127, %56
  %.pn61.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn61.pn.pn.pn, %127 ], [ %.pn58, %56 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #7
  call void @_ZNSt6vectorIS_IdSaIdEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #7
  br label %129

129:                                              ; preds = %128, %51
  %.pn61.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn61.pn.pn.pn.pn, %128 ], [ %.pn, %51 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #7
  resume { ptr, i32 } %.pn61.pn.pn.pn.pn.pn

130:                                              ; preds = %3, %19, %126
  %.2 = phi i1 [ %.1, %126 ], [ false, %19 ], [ false, %3 ]
  ret i1 %.2
}

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIdSaIdEEC2EmRKdRKS0_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

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

declare noundef zeroext i1 @_ZN4sptk23GaussianMixtureModeling23CalculateLogProbabilityEiibbRKSt6vectorIdSaIdEES5_RKS1_IS3_SaIS3_EERKS1_INS_15SymmetricMatrixESaISA_EEPS3_PdPNS0_6BufferE(i32 noundef, i32 noundef, i1 noundef zeroext, i1 noundef zeroext, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN9__gnu_cxxmiIPdSt6vectorIdSaIdEEEENS_17__normal_iteratorIT_T0_E15difference_typeERKS8_SB_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #5

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local ptr @_ZSt11max_elementIN9__gnu_cxx17__normal_iteratorIPdSt6vectorIdSaIdEEEEET_S7_S7_(ptr, ptr) local_unnamed_addr #6

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIdSaIdEE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(64) ptr @_ZNKSt6vectorIN4sptk6MatrixESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK4sptk6MatrixixEi(ptr noundef nonnull align 8 dereferenceable(64), i32 noundef) local_unnamed_addr #0 align 2

declare noundef nonnull align 8 dereferenceable(64) ptr @_ZN4sptk15SymmetricMatrixaSERKS0_(ptr noundef nonnull align 8 dereferenceable(64), ptr noundef nonnull align 8 dereferenceable(64)) local_unnamed_addr #3

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

declare noundef zeroext i1 @_ZNK4sptk48NonrecursiveMaximumLikelihoodParameterGeneration3RunERKSt6vectorIS1_IdSaIdEESaIS3_EERKS1_INS_15SymmetricMatrixESaIS8_EEPS5_(ptr noundef nonnull align 8 dereferenceable(64), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef) local_unnamed_addr #3

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { inlinehint 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 #6 = { inlinehint 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 #7 = { 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, !15, i64 136}
!6 = !{!"_ZTSN4sptk35GaussianMixtureModelBasedConversionE", !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !10, i64 24, !15, i64 48, !16, i64 56, !7, i64 64, !17, i64 72, !15, i64 136, !18, i64 144, !22, i64 168, !26, i64 192, !18, i64 216, !22, i64 240}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTSSt6vectorIdSaIdEE", !11, i64 0}
!11 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !12, i64 0}
!12 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !13, i64 0}
!13 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !14, i64 0, !14, i64 8, !14, i64 16}
!14 = !{!"any pointer", !8, i64 0}
!15 = !{!"bool", !8, i64 0}
!16 = !{!"double", !8, i64 0}
!17 = !{!"_ZTSN4sptk48NonrecursiveMaximumLikelihoodParameterGenerationE", !7, i64 8, !18, i64 16, !15, i64 40, !16, i64 48, !15, i64 56, !7, i64 60}
!18 = !{!"_ZTSSt6vectorIS_IdSaIdEESaIS1_EE", !19, i64 0}
!19 = !{!"_ZTSSt12_Vector_baseISt6vectorIdSaIdEESaIS2_EE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseISt6vectorIdSaIdEESaIS2_EE12_Vector_implE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseISt6vectorIdSaIdEESaIS2_EE17_Vector_impl_dataE", !14, i64 0, !14, i64 8, !14, i64 16}
!22 = !{!"_ZTSSt6vectorIN4sptk15SymmetricMatrixESaIS1_EE", !23, i64 0}
!23 = !{!"_ZTSSt12_Vector_baseIN4sptk15SymmetricMatrixESaIS1_EE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseIN4sptk15SymmetricMatrixESaIS1_EE12_Vector_implE", !25, i64 0}
!25 = !{!"_ZTSNSt12_Vector_baseIN4sptk15SymmetricMatrixESaIS1_EE17_Vector_impl_dataE", !14, i64 0, !14, i64 8, !14, i64 16}
!26 = !{!"_ZTSSt6vectorIN4sptk6MatrixESaIS1_EE", !27, i64 0}
!27 = !{!"_ZTSSt12_Vector_baseIN4sptk6MatrixESaIS1_EE", !28, i64 0}
!28 = !{!"_ZTSNSt12_Vector_baseIN4sptk6MatrixESaIS1_EE12_Vector_implE", !29, i64 0}
!29 = !{!"_ZTSNSt12_Vector_baseIN4sptk6MatrixESaIS1_EE17_Vector_impl_dataE", !14, i64 0, !14, i64 8, !14, i64 16}
!30 = !{i8 0, i8 2}
!31 = !{}
!32 = !{!6, !7, i64 20}
!33 = !{!6, !7, i64 64}
!34 = !{!6, !15, i64 48}
!35 = !{!6, !16, i64 56}
!36 = !{!16, !16, i64 0}
!37 = !{!6, !7, i64 16}
!38 = distinct !{!38, !39}
!39 = !{!"llvm.loop.mustprogress"}
!40 = distinct !{!40, !39}
!41 = distinct !{!41, !39}


; Effective O3 passes: BDCEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass