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

; 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::SymmetricMatrix::Row" = type <{ ptr, ptr, i32, [4 x i8] }>
%"class.sptk::SymmetricMatrix" = type { ptr, i32, %"class.std::vector.0", %"class.std::vector.15" }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = 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::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.__gnu_cxx::__normal_iterator.21" = type { ptr }
%class.anon.23 = type { i8 }
%"class.sptk::GaussianMixtureModeling::Buffer" = type <{ ptr, %"class.std::vector.0", %"class.std::vector.0", %"class.std::vector.10", i8, [7 x i8] }>
%"class.std::vector.10" = type { %"struct.std::_Vector_base.11" }
%"struct.std::_Vector_base.11" = 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 }

declare i32 @__gxx_personality_v0(...)

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4sptk15SymmetricMatrixixEi(ptr dead_on_unwind noalias writable sret(%"class.sptk::SymmetricMatrix::Row") align 8, ptr noundef nonnull align 8 dereferenceable(64), i32 noundef) #3 align 2

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZN4sptk15SymmetricMatrix3RowixEi(ptr noundef nonnull align 8 dereferenceable(20), i32 noundef) #0

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

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZN12_GLOBAL__N_18CheckGmmEiiRKSt6vectorIdSaIdEERKS0_IS2_SaIS2_EERKS0_IN4sptk15SymmetricMatrixESaISA_EE(i32 noundef, i32 noundef, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #3

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4sptk15SymmetricMatrixD2Ev(ptr noundef nonnull align 8 dereferenceable(64)) unnamed_addr #1 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) #1 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN4sptk23GaussianMixtureModeling23CalculateLogProbabilityEiibbRKSt6vectorIdSaIdEES5_RKS1_IS3_SaIS3_EERKS1_INS_15SymmetricMatrixESaISA_EEPS3_PdPNS0_6BufferE(i32 noundef %0, i32 noundef %1, i1 noundef zeroext %2, i1 noundef zeroext %3, ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef %8, ptr noundef %9, ptr noundef %10) #3 align 2 personality ptr @__gxx_personality_v0 {
  %12 = alloca i1, align 1
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i8, align 1
  %16 = alloca i8, align 1
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %23 = alloca ptr, align 8
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca double, align 8
  %28 = alloca double, align 8
  %29 = alloca i32, align 4
  %30 = alloca %"class.sptk::SymmetricMatrix::Row", align 8
  %31 = alloca ptr, align 8
  %32 = alloca i32, align 4
  %33 = alloca %"class.sptk::SymmetricMatrix", align 8
  %34 = alloca %"class.std::vector.0", align 8
  %35 = alloca %"class.__gnu_cxx::__normal_iterator.21", align 8
  %36 = alloca %"class.__gnu_cxx::__normal_iterator.21", align 8
  %37 = alloca %class.anon.23, align 1
  %38 = alloca i32, align 4
  %39 = alloca ptr, align 8
  %40 = alloca double, align 8
  %41 = alloca i32, align 4
  %42 = alloca double, align 8
  %43 = alloca ptr, align 8
  %44 = alloca i32, align 4
  %45 = alloca double, align 8
  %46 = alloca %"class.sptk::SymmetricMatrix::Row", align 8
  %47 = alloca ptr, align 8
  %48 = alloca i32, align 4
  %49 = alloca i32, align 4
  %50 = alloca double, align 8
  %51 = alloca i32, align 4
  %52 = alloca %"class.sptk::SymmetricMatrix::Row", align 8
  %53 = alloca double, align 8
  store i32 %0, ptr %13, align 4, !tbaa !5
  store i32 %1, ptr %14, align 4, !tbaa !5
  %54 = zext i1 %2 to i8
  store i8 %54, ptr %15, align 1, !tbaa !9
  %55 = zext i1 %3 to i8
  store i8 %55, ptr %16, align 1, !tbaa !9
  store ptr %4, ptr %17, align 8, !tbaa !11
  store ptr %5, ptr %18, align 8, !tbaa !11
  store ptr %6, ptr %19, align 8, !tbaa !11
  store ptr %7, ptr %20, align 8, !tbaa !11
  store ptr %8, ptr %21, align 8, !tbaa !11
  store ptr %9, ptr %22, align 8, !tbaa !11
  store ptr %10, ptr %23, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #7
  %56 = load i32, ptr %13, align 4, !tbaa !5
  %57 = add nsw i32 %56, 1
  store i32 %57, ptr %24, align 4, !tbaa !5
  %58 = load i32, ptr %14, align 4, !tbaa !5
  %59 = icmp slt i32 %58, 0
  br i1 %59, label %69, label %60

60:                                               ; preds = %11
  %61 = load ptr, ptr %17, align 8, !tbaa !11
  %62 = call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %61) #7
  %63 = load i32, ptr %24, align 4, !tbaa !5
  %64 = sext i32 %63 to i64
  %65 = icmp ne i64 %62, %64
  br i1 %65, label %69, label %66

66:                                               ; preds = %60
  %67 = load ptr, ptr %23, align 8, !tbaa !11
  %68 = icmp eq ptr null, %67
  br i1 %68, label %69, label %70

69:                                               ; preds = %66, %60, %11
  store i1 false, ptr %12, align 1
  store i32 1, ptr %25, align 4
  br label %429

70:                                               ; preds = %66
  %71 = load i8, ptr %16, align 1, !tbaa !9, !range !13, !noundef !14
  %72 = trunc i8 %71 to i1
  br i1 %72, label %73, label %81

73:                                               ; preds = %70
  %74 = load i32, ptr %14, align 4, !tbaa !5
  %75 = load i32, ptr %24, align 4, !tbaa !5
  %76 = load ptr, ptr %18, align 8, !tbaa !11
  %77 = load ptr, ptr %19, align 8, !tbaa !11
  %78 = load ptr, ptr %20, align 8, !tbaa !11
  %79 = call noundef zeroext i1 @_ZN12_GLOBAL__N_18CheckGmmEiiRKSt6vectorIdSaIdEERKS0_IS2_SaIS2_EERKS0_IN4sptk15SymmetricMatrixESaISA_EE(i32 noundef %74, i32 noundef %75, ptr noundef nonnull align 8 dereferenceable(24) %76, ptr noundef nonnull align 8 dereferenceable(24) %77, ptr noundef nonnull align 8 dereferenceable(24) %78)
  br i1 %79, label %81, label %80

80:                                               ; preds = %73
  store i1 false, ptr %12, align 1
  store i32 1, ptr %25, align 4
  br label %429

81:                                               ; preds = %73, %70
  %82 = load ptr, ptr %21, align 8, !tbaa !11
  %83 = icmp ne ptr %82, null
  br i1 %83, label %84, label %94

84:                                               ; preds = %81
  %85 = load ptr, ptr %21, align 8, !tbaa !11
  %86 = call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %85) #7
  %87 = load i32, ptr %14, align 4, !tbaa !5
  %88 = sext i32 %87 to i64
  %89 = icmp ne i64 %86, %88
  br i1 %89, label %90, label %94

90:                                               ; preds = %84
  %91 = load ptr, ptr %21, align 8, !tbaa !11
  %92 = load i32, ptr %14, align 4, !tbaa !5
  %93 = sext i32 %92 to i64
  call void @_ZNSt6vectorIdSaIdEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %91, i64 noundef %93)
  br label %94

94:                                               ; preds = %90, %84, %81
  %95 = load ptr, ptr %23, align 8, !tbaa !11
  %96 = getelementptr inbounds %"class.sptk::GaussianMixtureModeling::Buffer", ptr %95, i32 0, i32 1
  %97 = call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %96) #7
  %98 = load i32, ptr %24, align 4, !tbaa !5
  %99 = sext i32 %98 to i64
  %100 = icmp ne i64 %97, %99
  br i1 %100, label %101, label %106

101:                                              ; preds = %94
  %102 = load ptr, ptr %23, align 8, !tbaa !11
  %103 = getelementptr inbounds %"class.sptk::GaussianMixtureModeling::Buffer", ptr %102, i32 0, i32 1
  %104 = load i32, ptr %24, align 4, !tbaa !5
  %105 = sext i32 %104 to i64
  call void @_ZNSt6vectorIdSaIdEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %103, i64 noundef %105)
  br label %106

106:                                              ; preds = %101, %94
  %107 = load ptr, ptr %23, align 8, !tbaa !11
  %108 = getelementptr inbounds %"class.sptk::GaussianMixtureModeling::Buffer", ptr %107, i32 0, i32 2
  %109 = call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %108) #7
  %110 = load i32, ptr %14, align 4, !tbaa !5
  %111 = sext i32 %110 to i64
  %112 = icmp ne i64 %109, %111
  br i1 %112, label %113, label %118

113:                                              ; preds = %106
  %114 = load ptr, ptr %23, align 8, !tbaa !11
  %115 = getelementptr inbounds %"class.sptk::GaussianMixtureModeling::Buffer", ptr %114, i32 0, i32 2
  %116 = load i32, ptr %14, align 4, !tbaa !5
  %117 = sext i32 %116 to i64
  call void @_ZNSt6vectorIdSaIdEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %115, i64 noundef %117)
  br label %118

118:                                              ; preds = %113, %106
  %119 = load ptr, ptr %23, align 8, !tbaa !11
  %120 = getelementptr inbounds %"class.sptk::GaussianMixtureModeling::Buffer", ptr %119, i32 0, i32 3
  %121 = call noundef i64 @_ZNKSt6vectorIN4sptk15SymmetricMatrixESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %120) #7
  %122 = load i32, ptr %14, align 4, !tbaa !5
  %123 = sext i32 %122 to i64
  %124 = icmp ne i64 %121, %123
  br i1 %124, label %125, label %130

125:                                              ; preds = %118
  %126 = load ptr, ptr %23, align 8, !tbaa !11
  %127 = getelementptr inbounds %"class.sptk::GaussianMixtureModeling::Buffer", ptr %126, i32 0, i32 3
  %128 = load i32, ptr %14, align 4, !tbaa !5
  %129 = sext i32 %128 to i64
  call void @_ZNSt6vectorIN4sptk15SymmetricMatrixESaIS1_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %127, i64 noundef %129)
  br label %130

130:                                              ; preds = %125, %118
  %131 = load ptr, ptr %23, align 8, !tbaa !11
  %132 = getelementptr inbounds %"class.sptk::GaussianMixtureModeling::Buffer", ptr %131, i32 0, i32 4
  %133 = load i8, ptr %132, align 8, !tbaa !15, !range !13, !noundef !14
  %134 = trunc i8 %133 to i1
  br i1 %134, label %256, label %135

135:                                              ; preds = %130
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #7
  store i32 0, ptr %26, align 4, !tbaa !5
  br label %136

136:                                              ; preds = %219, %135
  %137 = load i32, ptr %26, align 4, !tbaa !5
  %138 = load i32, ptr %14, align 4, !tbaa !5
  %139 = icmp slt i32 %137, %138
  br i1 %139, label %141, label %140

140:                                              ; preds = %136
  store i32 2, ptr %25, align 4
  br label %223

141:                                              ; preds = %136
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #7
  %142 = load i32, ptr %24, align 4, !tbaa !5
  %143 = sitofp i32 %142 to double
  %144 = call double @log(double noundef 0x401921FB54442D18) #7
  %145 = fmul double %143, %144
  store double %145, ptr %27, align 8, !tbaa !25
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #7
  store double 0.000000e+00, ptr %28, align 8, !tbaa !25
  %146 = load i8, ptr %15, align 1, !tbaa !9, !range !13, !noundef !14
  %147 = trunc i8 %146 to i1
  br i1 %147, label %148, label %178

148:                                              ; preds = %141
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #7
  store i32 0, ptr %29, align 4, !tbaa !5
  br label %149

149:                                              ; preds = %167, %148
  %150 = load i32, ptr %29, align 4, !tbaa !5
  %151 = load i32, ptr %13, align 4, !tbaa !5
  %152 = icmp sle i32 %150, %151
  br i1 %152, label %154, label %153

153:                                              ; preds = %149
  store i32 5, ptr %25, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #7
  br label %174

154:                                              ; preds = %149
  call void @llvm.lifetime.start.p0(i64 24, ptr %30) #7
  %155 = load ptr, ptr %20, align 8, !tbaa !11
  %156 = load i32, ptr %26, align 4, !tbaa !5
  %157 = sext i32 %156 to i64
  %158 = call noundef nonnull align 8 dereferenceable(64) ptr @_ZNKSt6vectorIN4sptk15SymmetricMatrixESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %155, i64 noundef %157) #7
  %159 = load i32, ptr %29, align 4, !tbaa !5
  call void @_ZNK4sptk15SymmetricMatrixixEi(ptr dead_on_unwind writable sret(%"class.sptk::SymmetricMatrix::Row") align 8 %30, ptr noundef nonnull align 8 dereferenceable(64) %158, i32 noundef %159)
  %160 = load i32, ptr %29, align 4, !tbaa !5
  %161 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK4sptk15SymmetricMatrix3RowixEi(ptr noundef nonnull align 8 dereferenceable(20) %30, i32 noundef %160)
          to label %162 unwind label %170

162:                                              ; preds = %154
  %163 = load double, ptr %161, align 8, !tbaa !25
  %164 = call double @log(double noundef %163) #7
  %165 = load double, ptr %28, align 8, !tbaa !25
  %166 = fadd double %165, %164
  store double %166, ptr %28, align 8, !tbaa !25
  call void @_ZN4sptk15SymmetricMatrix3RowD2Ev(ptr noundef nonnull align 8 dereferenceable(20) %30) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %30) #7
  br label %167

167:                                              ; preds = %162
  %168 = load i32, ptr %29, align 4, !tbaa !5
  %169 = add nsw i32 %168, 1
  store i32 %169, ptr %29, align 4, !tbaa !5
  br label %149, !llvm.loop !27

170:                                              ; preds = %154
  %171 = landingpad { ptr, i32 }
          cleanup
  %172 = extractvalue { ptr, i32 } %171, 0
  store ptr %172, ptr %31, align 8
  %173 = extractvalue { ptr, i32 } %171, 1
  store i32 %173, ptr %32, align 4
  call void @_ZN4sptk15SymmetricMatrix3RowD2Ev(ptr noundef nonnull align 8 dereferenceable(20) %30) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %30) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #7
  br label %222

174:                                              ; preds = %153
  %175 = load double, ptr %28, align 8, !tbaa !25
  %176 = load double, ptr %27, align 8, !tbaa !25
  %177 = fadd double %176, %175
  store double %177, ptr %27, align 8, !tbaa !25
  br label %209

178:                                              ; preds = %141
  call void @llvm.lifetime.start.p0(i64 64, ptr %33) #7
  call void @_ZN4sptk15SymmetricMatrixC1Ei(ptr noundef nonnull align 8 dereferenceable(64) %33, i32 noundef 0)
  call void @llvm.lifetime.start.p0(i64 24, ptr %34) #7
  call void @_ZNSt6vectorIdSaIdEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %34) #7
  %179 = load ptr, ptr %20, align 8, !tbaa !11
  %180 = load i32, ptr %26, align 4, !tbaa !5
  %181 = sext i32 %180 to i64
  %182 = call noundef nonnull align 8 dereferenceable(64) ptr @_ZNKSt6vectorIN4sptk15SymmetricMatrixESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %179, i64 noundef %181) #7
  %183 = invoke noundef zeroext i1 @_ZNK4sptk15SymmetricMatrix21CholeskyDecompositionEPS0_PSt6vectorIdSaIdEE(ptr noundef nonnull align 8 dereferenceable(64) %182, ptr noundef %33, ptr noundef %34)
          to label %184 unwind label %186

184:                                              ; preds = %178
  br i1 %183, label %190, label %185

185:                                              ; preds = %184
  store i1 false, ptr %12, align 1
  store i32 1, ptr %25, align 4
  br label %206

186:                                              ; preds = %190, %178
  %187 = landingpad { ptr, i32 }
          cleanup
  %188 = extractvalue { ptr, i32 } %187, 0
  store ptr %188, ptr %31, align 8
  %189 = extractvalue { ptr, i32 } %187, 1
  store i32 %189, ptr %32, align 4
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %34) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %34) #7
  call void @_ZN4sptk15SymmetricMatrixD2Ev(ptr noundef nonnull align 8 dereferenceable(64) %33) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr %33) #7
  br label %222

190:                                              ; preds = %184
  %191 = call ptr @_ZNSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %34) #7
  %192 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.21", ptr %35, i32 0, i32 0
  store ptr %191, ptr %192, align 8
  %193 = call ptr @_ZNSt6vectorIdSaIdEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %34) #7
  %194 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.21", ptr %36, i32 0, i32 0
  store ptr %193, ptr %194, align 8
  %195 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.21", ptr %35, i32 0, i32 0
  %196 = load ptr, ptr %195, align 8
  %197 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.21", ptr %36, i32 0, i32 0
  %198 = load ptr, ptr %197, align 8
  %199 = invoke noundef double @"_ZSt10accumulateIN9__gnu_cxx17__normal_iteratorIPdSt6vectorIdSaIdEEEEdZN4sptk23GaussianMixtureModeling23CalculateLogProbabilityEiibbRKS5_SA_RKS3_IS5_SaIS5_EERKS3_INS7_15SymmetricMatrixESaISF_EEPS5_S2_PNS8_6BufferEE3$_0ET0_T_SP_SO_T1_"(ptr %196, ptr %198, double noundef 0.000000e+00)
          to label %200 unwind label %186

200:                                              ; preds = %190
  %201 = load double, ptr %28, align 8, !tbaa !25
  %202 = fadd double %201, %199
  store double %202, ptr %28, align 8, !tbaa !25
  %203 = load double, ptr %28, align 8, !tbaa !25
  %204 = load double, ptr %27, align 8, !tbaa !25
  %205 = fadd double %204, %203
  store double %205, ptr %27, align 8, !tbaa !25
  store i32 0, ptr %25, align 4
  br label %206

206:                                              ; preds = %200, %185
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %34) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %34) #7
  call void @_ZN4sptk15SymmetricMatrixD2Ev(ptr noundef nonnull align 8 dereferenceable(64) %33) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr %33) #7
  %207 = load i32, ptr %25, align 4
  switch i32 %207, label %216 [
    i32 0, label %208
  ]

208:                                              ; preds = %206
  br label %209

209:                                              ; preds = %208, %174
  %210 = load double, ptr %27, align 8, !tbaa !25
  %211 = load ptr, ptr %23, align 8, !tbaa !11
  %212 = getelementptr inbounds %"class.sptk::GaussianMixtureModeling::Buffer", ptr %211, i32 0, i32 2
  %213 = load i32, ptr %26, align 4, !tbaa !5
  %214 = sext i32 %213 to i64
  %215 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %212, i64 noundef %214) #7
  store double %210, ptr %215, align 8, !tbaa !25
  store i32 0, ptr %25, align 4
  br label %216

216:                                              ; preds = %209, %206
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #7
  %217 = load i32, ptr %25, align 4
  switch i32 %217, label %223 [
    i32 0, label %218
  ]

218:                                              ; preds = %216
  br label %219

219:                                              ; preds = %218
  %220 = load i32, ptr %26, align 4, !tbaa !5
  %221 = add nsw i32 %220, 1
  store i32 %221, ptr %26, align 4, !tbaa !5
  br label %136, !llvm.loop !29

222:                                              ; preds = %186, %170
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #7
  br label %431

223:                                              ; preds = %216, %140
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #7
  %224 = load i32, ptr %25, align 4
  switch i32 %224, label %429 [
    i32 2, label %225
  ]

225:                                              ; preds = %223
  %226 = load i8, ptr %15, align 1, !tbaa !9, !range !13, !noundef !14
  %227 = trunc i8 %226 to i1
  br i1 %227, label %253, label %228

228:                                              ; preds = %225
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #7
  store i32 0, ptr %38, align 4, !tbaa !5
  br label %229

229:                                              ; preds = %247, %228
  %230 = load i32, ptr %38, align 4, !tbaa !5
  %231 = load i32, ptr %14, align 4, !tbaa !5
  %232 = icmp slt i32 %230, %231
  br i1 %232, label %234, label %233

233:                                              ; preds = %229
  store i32 8, ptr %25, align 4
  br label %250

234:                                              ; preds = %229
  %235 = load ptr, ptr %20, align 8, !tbaa !11
  %236 = load i32, ptr %38, align 4, !tbaa !5
  %237 = sext i32 %236 to i64
  %238 = call noundef nonnull align 8 dereferenceable(64) ptr @_ZNKSt6vectorIN4sptk15SymmetricMatrixESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %235, i64 noundef %237) #7
  %239 = load ptr, ptr %23, align 8, !tbaa !11
  %240 = getelementptr inbounds %"class.sptk::GaussianMixtureModeling::Buffer", ptr %239, i32 0, i32 3
  %241 = load i32, ptr %38, align 4, !tbaa !5
  %242 = sext i32 %241 to i64
  %243 = call noundef nonnull align 8 dereferenceable(64) ptr @_ZNSt6vectorIN4sptk15SymmetricMatrixESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %240, i64 noundef %242) #7
  %244 = call noundef zeroext i1 @_ZNK4sptk15SymmetricMatrix6InvertEPS0_(ptr noundef nonnull align 8 dereferenceable(64) %238, ptr noundef %243)
  br i1 %244, label %246, label %245

245:                                              ; preds = %234
  store i1 false, ptr %12, align 1
  store i32 1, ptr %25, align 4
  br label %250

246:                                              ; preds = %234
  br label %247

247:                                              ; preds = %246
  %248 = load i32, ptr %38, align 4, !tbaa !5
  %249 = add nsw i32 %248, 1
  store i32 %249, ptr %38, align 4, !tbaa !5
  br label %229, !llvm.loop !30

250:                                              ; preds = %245, %233
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #7
  %251 = load i32, ptr %25, align 4
  switch i32 %251, label %429 [
    i32 8, label %252
  ]

252:                                              ; preds = %250
  br label %253

253:                                              ; preds = %252, %225
  %254 = load ptr, ptr %23, align 8, !tbaa !11
  %255 = getelementptr inbounds %"class.sptk::GaussianMixtureModeling::Buffer", ptr %254, i32 0, i32 4
  store i8 1, ptr %255, align 8, !tbaa !15
  br label %256

256:                                              ; preds = %253, %130
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #7
  %257 = load ptr, ptr %17, align 8, !tbaa !11
  %258 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %257, i64 noundef 0) #7
  store ptr %258, ptr %39, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %40) #7
  store double -1.000000e+10, ptr %40, align 8, !tbaa !25
  call void @llvm.lifetime.start.p0(i64 4, ptr %41) #7
  store i32 0, ptr %41, align 4, !tbaa !5
  br label %259

259:                                              ; preds = %418, %256
  %260 = load i32, ptr %41, align 4, !tbaa !5
  %261 = load i32, ptr %14, align 4, !tbaa !5
  %262 = icmp slt i32 %260, %261
  br i1 %262, label %264, label %263

263:                                              ; preds = %259
  store i32 11, ptr %25, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #7
  br label %422

264:                                              ; preds = %259
  call void @llvm.lifetime.start.p0(i64 8, ptr %42) #7
  %265 = load ptr, ptr %23, align 8, !tbaa !11
  %266 = getelementptr inbounds %"class.sptk::GaussianMixtureModeling::Buffer", ptr %265, i32 0, i32 2
  %267 = load i32, ptr %41, align 4, !tbaa !5
  %268 = sext i32 %267 to i64
  %269 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %266, i64 noundef %268) #7
  %270 = load double, ptr %269, align 8, !tbaa !25
  store double %270, ptr %42, align 8, !tbaa !25
  call void @llvm.lifetime.start.p0(i64 8, ptr %43) #7
  %271 = load ptr, ptr %19, align 8, !tbaa !11
  %272 = load i32, ptr %41, align 4, !tbaa !5
  %273 = sext i32 %272 to i64
  %274 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %271, i64 noundef %273) #7
  %275 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %274, i64 noundef 0) #7
  store ptr %275, ptr %43, align 8, !tbaa !11
  %276 = load i8, ptr %15, align 1, !tbaa !9, !range !13, !noundef !14
  %277 = trunc i8 %276 to i1
  br i1 %277, label %278, label %319

278:                                              ; preds = %264
  call void @llvm.lifetime.start.p0(i64 4, ptr %44) #7
  store i32 0, ptr %44, align 4, !tbaa !5
  br label %279

279:                                              ; preds = %311, %278
  %280 = load i32, ptr %44, align 4, !tbaa !5
  %281 = load i32, ptr %13, align 4, !tbaa !5
  %282 = icmp sle i32 %280, %281
  br i1 %282, label %284, label %283

283:                                              ; preds = %279
  store i32 14, ptr %25, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %44) #7
  br label %318

284:                                              ; preds = %279
  call void @llvm.lifetime.start.p0(i64 8, ptr %45) #7
  %285 = load ptr, ptr %39, align 8, !tbaa !11
  %286 = load i32, ptr %44, align 4, !tbaa !5
  %287 = sext i32 %286 to i64
  %288 = getelementptr inbounds double, ptr %285, i64 %287
  %289 = load double, ptr %288, align 8, !tbaa !25
  %290 = load ptr, ptr %43, align 8, !tbaa !11
  %291 = load i32, ptr %44, align 4, !tbaa !5
  %292 = sext i32 %291 to i64
  %293 = getelementptr inbounds double, ptr %290, i64 %292
  %294 = load double, ptr %293, align 8, !tbaa !25
  %295 = fsub double %289, %294
  store double %295, ptr %45, align 8, !tbaa !25
  %296 = load double, ptr %45, align 8, !tbaa !25
  %297 = load double, ptr %45, align 8, !tbaa !25
  %298 = fmul double %296, %297
  call void @llvm.lifetime.start.p0(i64 24, ptr %46) #7
  %299 = load ptr, ptr %20, align 8, !tbaa !11
  %300 = load i32, ptr %41, align 4, !tbaa !5
  %301 = sext i32 %300 to i64
  %302 = call noundef nonnull align 8 dereferenceable(64) ptr @_ZNKSt6vectorIN4sptk15SymmetricMatrixESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %299, i64 noundef %301) #7
  %303 = load i32, ptr %44, align 4, !tbaa !5
  call void @_ZNK4sptk15SymmetricMatrixixEi(ptr dead_on_unwind writable sret(%"class.sptk::SymmetricMatrix::Row") align 8 %46, ptr noundef nonnull align 8 dereferenceable(64) %302, i32 noundef %303)
  %304 = load i32, ptr %44, align 4, !tbaa !5
  %305 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK4sptk15SymmetricMatrix3RowixEi(ptr noundef nonnull align 8 dereferenceable(20) %46, i32 noundef %304)
          to label %306 unwind label %314

306:                                              ; preds = %284
  %307 = load double, ptr %305, align 8, !tbaa !25
  %308 = fdiv double %298, %307
  %309 = load double, ptr %42, align 8, !tbaa !25
  %310 = fadd double %309, %308
  store double %310, ptr %42, align 8, !tbaa !25
  call void @_ZN4sptk15SymmetricMatrix3RowD2Ev(ptr noundef nonnull align 8 dereferenceable(20) %46) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %46) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #7
  br label %311

311:                                              ; preds = %306
  %312 = load i32, ptr %44, align 4, !tbaa !5
  %313 = add nsw i32 %312, 1
  store i32 %313, ptr %44, align 4, !tbaa !5
  br label %279, !llvm.loop !31

314:                                              ; preds = %284
  %315 = landingpad { ptr, i32 }
          cleanup
  %316 = extractvalue { ptr, i32 } %315, 0
  store ptr %316, ptr %31, align 8
  %317 = extractvalue { ptr, i32 } %315, 1
  store i32 %317, ptr %32, align 4
  call void @_ZN4sptk15SymmetricMatrix3RowD2Ev(ptr noundef nonnull align 8 dereferenceable(20) %46) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %46) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %44) #7
  br label %421

318:                                              ; preds = %283
  br label %397

319:                                              ; preds = %264
  call void @llvm.lifetime.start.p0(i64 8, ptr %47) #7
  %320 = load ptr, ptr %23, align 8, !tbaa !11
  %321 = getelementptr inbounds %"class.sptk::GaussianMixtureModeling::Buffer", ptr %320, i32 0, i32 1
  %322 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %321, i64 noundef 0) #7
  store ptr %322, ptr %47, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %48) #7
  store i32 0, ptr %48, align 4, !tbaa !5
  br label %323

323:                                              ; preds = %344, %319
  %324 = load i32, ptr %48, align 4, !tbaa !5
  %325 = load i32, ptr %13, align 4, !tbaa !5
  %326 = icmp sle i32 %324, %325
  br i1 %326, label %328, label %327

327:                                              ; preds = %323
  store i32 17, ptr %25, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %48) #7
  br label %347

328:                                              ; preds = %323
  %329 = load ptr, ptr %39, align 8, !tbaa !11
  %330 = load i32, ptr %48, align 4, !tbaa !5
  %331 = sext i32 %330 to i64
  %332 = getelementptr inbounds double, ptr %329, i64 %331
  %333 = load double, ptr %332, align 8, !tbaa !25
  %334 = load ptr, ptr %43, align 8, !tbaa !11
  %335 = load i32, ptr %48, align 4, !tbaa !5
  %336 = sext i32 %335 to i64
  %337 = getelementptr inbounds double, ptr %334, i64 %336
  %338 = load double, ptr %337, align 8, !tbaa !25
  %339 = fsub double %333, %338
  %340 = load ptr, ptr %47, align 8, !tbaa !11
  %341 = load i32, ptr %48, align 4, !tbaa !5
  %342 = sext i32 %341 to i64
  %343 = getelementptr inbounds double, ptr %340, i64 %342
  store double %339, ptr %343, align 8, !tbaa !25
  br label %344

344:                                              ; preds = %328
  %345 = load i32, ptr %48, align 4, !tbaa !5
  %346 = add nsw i32 %345, 1
  store i32 %346, ptr %48, align 4, !tbaa !5
  br label %323, !llvm.loop !32

347:                                              ; preds = %327
  call void @llvm.lifetime.start.p0(i64 4, ptr %49) #7
  store i32 0, ptr %49, align 4, !tbaa !5
  br label %348

348:                                              ; preds = %393, %347
  %349 = load i32, ptr %49, align 4, !tbaa !5
  %350 = load i32, ptr %13, align 4, !tbaa !5
  %351 = icmp sle i32 %349, %350
  br i1 %351, label %353, label %352

352:                                              ; preds = %348
  store i32 20, ptr %25, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %49) #7
  br label %396

353:                                              ; preds = %348
  call void @llvm.lifetime.start.p0(i64 8, ptr %50) #7
  store double 0.000000e+00, ptr %50, align 8, !tbaa !25
  call void @llvm.lifetime.start.p0(i64 4, ptr %51) #7
  store i32 0, ptr %51, align 4, !tbaa !5
  br label %354

354:                                              ; preds = %377, %353
  %355 = load i32, ptr %51, align 4, !tbaa !5
  %356 = load i32, ptr %13, align 4, !tbaa !5
  %357 = icmp sle i32 %355, %356
  br i1 %357, label %359, label %358

358:                                              ; preds = %354
  store i32 23, ptr %25, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %51) #7
  br label %384

359:                                              ; preds = %354
  %360 = load ptr, ptr %47, align 8, !tbaa !11
  %361 = load i32, ptr %51, align 4, !tbaa !5
  %362 = sext i32 %361 to i64
  %363 = getelementptr inbounds double, ptr %360, i64 %362
  %364 = load double, ptr %363, align 8, !tbaa !25
  call void @llvm.lifetime.start.p0(i64 24, ptr %52) #7
  %365 = load ptr, ptr %23, align 8, !tbaa !11
  %366 = getelementptr inbounds %"class.sptk::GaussianMixtureModeling::Buffer", ptr %365, i32 0, i32 3
  %367 = load i32, ptr %41, align 4, !tbaa !5
  %368 = sext i32 %367 to i64
  %369 = call noundef nonnull align 8 dereferenceable(64) ptr @_ZNSt6vectorIN4sptk15SymmetricMatrixESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %366, i64 noundef %368) #7
  %370 = load i32, ptr %49, align 4, !tbaa !5
  call void @_ZN4sptk15SymmetricMatrixixEi(ptr dead_on_unwind writable sret(%"class.sptk::SymmetricMatrix::Row") align 8 %52, ptr noundef nonnull align 8 dereferenceable(64) %369, i32 noundef %370)
  %371 = load i32, ptr %51, align 4, !tbaa !5
  %372 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN4sptk15SymmetricMatrix3RowixEi(ptr noundef nonnull align 8 dereferenceable(20) %52, i32 noundef %371)
          to label %373 unwind label %380

373:                                              ; preds = %359
  %374 = load double, ptr %372, align 8, !tbaa !25
  %375 = load double, ptr %50, align 8, !tbaa !25
  %376 = call double @llvm.fmuladd.f64(double %364, double %374, double %375)
  store double %376, ptr %50, align 8, !tbaa !25
  call void @_ZN4sptk15SymmetricMatrix3RowD2Ev(ptr noundef nonnull align 8 dereferenceable(20) %52) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %52) #7
  br label %377

377:                                              ; preds = %373
  %378 = load i32, ptr %51, align 4, !tbaa !5
  %379 = add nsw i32 %378, 1
  store i32 %379, ptr %51, align 4, !tbaa !5
  br label %354, !llvm.loop !33

380:                                              ; preds = %359
  %381 = landingpad { ptr, i32 }
          cleanup
  %382 = extractvalue { ptr, i32 } %381, 0
  store ptr %382, ptr %31, align 8
  %383 = extractvalue { ptr, i32 } %381, 1
  store i32 %383, ptr %32, align 4
  call void @_ZN4sptk15SymmetricMatrix3RowD2Ev(ptr noundef nonnull align 8 dereferenceable(20) %52) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %52) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %51) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %50) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %49) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %47) #7
  br label %421

384:                                              ; preds = %358
  %385 = load double, ptr %50, align 8, !tbaa !25
  %386 = load ptr, ptr %47, align 8, !tbaa !11
  %387 = load i32, ptr %49, align 4, !tbaa !5
  %388 = sext i32 %387 to i64
  %389 = getelementptr inbounds double, ptr %386, i64 %388
  %390 = load double, ptr %389, align 8, !tbaa !25
  %391 = load double, ptr %42, align 8, !tbaa !25
  %392 = call double @llvm.fmuladd.f64(double %385, double %390, double %391)
  store double %392, ptr %42, align 8, !tbaa !25
  call void @llvm.lifetime.end.p0(i64 8, ptr %50) #7
  br label %393

393:                                              ; preds = %384
  %394 = load i32, ptr %49, align 4, !tbaa !5
  %395 = add nsw i32 %394, 1
  store i32 %395, ptr %49, align 4, !tbaa !5
  br label %348, !llvm.loop !34

396:                                              ; preds = %352
  call void @llvm.lifetime.end.p0(i64 8, ptr %47) #7
  br label %397

397:                                              ; preds = %396, %318
  call void @llvm.lifetime.start.p0(i64 8, ptr %53) #7
  %398 = load ptr, ptr %18, align 8, !tbaa !11
  %399 = load i32, ptr %41, align 4, !tbaa !5
  %400 = sext i32 %399 to i64
  %401 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %398, i64 noundef %400) #7
  %402 = load double, ptr %401, align 8, !tbaa !25
  %403 = call double @log(double noundef %402) #7
  %404 = load double, ptr %42, align 8, !tbaa !25
  %405 = call double @llvm.fmuladd.f64(double -5.000000e-01, double %404, double %403)
  store double %405, ptr %53, align 8, !tbaa !25
  %406 = load ptr, ptr %21, align 8, !tbaa !11
  %407 = icmp ne ptr %406, null
  br i1 %407, label %408, label %414

408:                                              ; preds = %397
  %409 = load double, ptr %53, align 8, !tbaa !25
  %410 = load ptr, ptr %21, align 8, !tbaa !11
  %411 = load i32, ptr %41, align 4, !tbaa !5
  %412 = sext i32 %411 to i64
  %413 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %410, i64 noundef %412) #7
  store double %409, ptr %413, align 8, !tbaa !25
  br label %414

414:                                              ; preds = %408, %397
  %415 = load double, ptr %40, align 8, !tbaa !25
  %416 = load double, ptr %53, align 8, !tbaa !25
  %417 = call noundef double @_ZN4sptk13AddInLogSpaceEdd(double noundef %415, double noundef %416)
  store double %417, ptr %40, align 8, !tbaa !25
  call void @llvm.lifetime.end.p0(i64 8, ptr %53) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %43) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #7
  br label %418

418:                                              ; preds = %414
  %419 = load i32, ptr %41, align 4, !tbaa !5
  %420 = add nsw i32 %419, 1
  store i32 %420, ptr %41, align 4, !tbaa !5
  br label %259, !llvm.loop !35

421:                                              ; preds = %380, %314
  call void @llvm.lifetime.end.p0(i64 8, ptr %43) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #7
  br label %431

422:                                              ; preds = %263
  %423 = load ptr, ptr %22, align 8, !tbaa !11
  %424 = icmp ne ptr %423, null
  br i1 %424, label %425, label %428

425:                                              ; preds = %422
  %426 = load double, ptr %40, align 8, !tbaa !25
  %427 = load ptr, ptr %22, align 8, !tbaa !11
  store double %426, ptr %427, align 8, !tbaa !25
  br label %428

428:                                              ; preds = %425, %422
  store i1 true, ptr %12, align 1
  store i32 1, ptr %25, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #7
  br label %429

429:                                              ; preds = %428, %250, %223, %80, %69
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #7
  %430 = load i1, ptr %12, align 1
  ret i1 %430

431:                                              ; preds = %421, %222
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #7
  br label %432

432:                                              ; preds = %431
  %433 = load ptr, ptr %31, align 8
  %434 = load i32, ptr %32, align 4
  %435 = insertvalue { ptr, i32 } poison, ptr %433, 0
  %436 = insertvalue { ptr, i32 } %435, i32 %434, 1
  resume { ptr, i32 } %436
}

; 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) #1 align 2

; 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) #1 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) #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK4sptk15SymmetricMatrixixEi(ptr dead_on_unwind noalias writable sret(%"class.sptk::SymmetricMatrix::Row") align 8, ptr noundef nonnull align 8 dereferenceable(64), i32 noundef) #3 align 2

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNK4sptk15SymmetricMatrix3RowixEi(ptr noundef nonnull align 8 dereferenceable(20), i32 noundef) #0

; 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) #1 align 2

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

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

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

; Function Attrs: nounwind
declare double @log(double noundef) #5

declare noundef zeroext i1 @_ZNK4sptk15SymmetricMatrix21CholeskyDecompositionEPS0_PSt6vectorIdSaIdEE(ptr noundef nonnull align 8 dereferenceable(64), ptr noundef, ptr noundef) #0

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef double @"_ZSt10accumulateIN9__gnu_cxx17__normal_iteratorIPdSt6vectorIdSaIdEEEEdZN4sptk23GaussianMixtureModeling23CalculateLogProbabilityEiibbRKS5_SA_RKS3_IS5_SaIS5_EERKS3_INS7_15SymmetricMatrixESaISF_EEPS5_S2_PNS8_6BufferEE3$_0ET0_T_SP_SO_T1_"(ptr, ptr, double noundef) #6

declare noundef zeroext i1 @_ZNK4sptk15SymmetricMatrix6InvertEPS0_(ptr noundef nonnull align 8 dereferenceable(64), ptr noundef) #0

declare noundef double @_ZN4sptk13AddInLogSpaceEdd(double noundef, double noundef) #0

attributes #0 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress 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 #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"bool", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{i8 0, i8 2}
!14 = !{}
!15 = !{!16, !10, i64 80}
!16 = !{!"_ZTSN4sptk23GaussianMixtureModeling6BufferE", !17, i64 8, !17, i64 32, !21, i64 56, !10, i64 80}
!17 = !{!"_ZTSSt6vectorIdSaIdEE", !18, i64 0}
!18 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !12, i64 0, !12, i64 8, !12, i64 16}
!21 = !{!"_ZTSSt6vectorIN4sptk15SymmetricMatrixESaIS1_EE", !22, i64 0}
!22 = !{!"_ZTSSt12_Vector_baseIN4sptk15SymmetricMatrixESaIS1_EE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseIN4sptk15SymmetricMatrixESaIS1_EE12_Vector_implE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseIN4sptk15SymmetricMatrixESaIS1_EE17_Vector_impl_dataE", !12, i64 0, !12, i64 8, !12, i64 16}
!25 = !{!26, !26, i64 0}
!26 = !{!"double", !7, i64 0}
!27 = distinct !{!27, !28}
!28 = !{!"llvm.loop.mustprogress"}
!29 = distinct !{!29, !28}
!30 = distinct !{!30, !28}
!31 = distinct !{!31, !28}
!32 = distinct !{!32, !28}
!33 = distinct !{!33, !28}
!34 = distinct !{!34, !28}
!35 = distinct !{!35, !28}


; 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.sptk::SymmetricMatrix::Row" = type <{ ptr, ptr, i32, [4 x i8] }>
%"class.sptk::SymmetricMatrix" = type { ptr, i32, %"class.std::vector.0", %"class.std::vector.15" }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = 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::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 }

declare i32 @__gxx_personality_v0(...)

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4sptk15SymmetricMatrixixEi(ptr dead_on_unwind noalias writable sret(%"class.sptk::SymmetricMatrix::Row") align 8, ptr noundef nonnull align 8 dereferenceable(64), i32 noundef) local_unnamed_addr #3 align 2

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZN4sptk15SymmetricMatrix3RowixEi(ptr noundef nonnull align 8 dereferenceable(20), i32 noundef) local_unnamed_addr #0

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

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZN12_GLOBAL__N_18CheckGmmEiiRKSt6vectorIdSaIdEERKS0_IS2_SaIS2_EERKS0_IN4sptk15SymmetricMatrixESaISA_EE(i32 noundef, i32 noundef, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIdSaIdEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #3 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4sptk15SymmetricMatrixD2Ev(ptr noundef nonnull align 8 dereferenceable(64)) unnamed_addr #1 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 #1 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN4sptk23GaussianMixtureModeling23CalculateLogProbabilityEiibbRKSt6vectorIdSaIdEES5_RKS1_IS3_SaIS3_EERKS1_INS_15SymmetricMatrixESaISA_EEPS3_PdPNS0_6BufferE(i32 noundef %0, i32 noundef %1, i1 noundef zeroext %2, i1 noundef zeroext %3, ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef %8, ptr noundef writeonly %9, ptr noundef %10) local_unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %12 = alloca %"class.sptk::SymmetricMatrix::Row", align 8
  %13 = alloca %"class.sptk::SymmetricMatrix", align 8
  %14 = alloca %"class.std::vector.0", align 8
  %15 = alloca %"class.sptk::SymmetricMatrix::Row", align 8
  %16 = alloca %"class.sptk::SymmetricMatrix::Row", align 8
  %17 = add i32 %0, 1
  %18 = icmp slt i32 %1, 0
  br i1 %18, label %.loopexit194, label %19

19:                                               ; preds = %11
  %20 = tail call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #8
  %21 = sext i32 %17 to i64
  %22 = icmp ne i64 %20, %21
  %23 = icmp eq ptr %10, null
  %or.cond = or i1 %23, %22
  br i1 %or.cond, label %.loopexit194, label %24

24:                                               ; preds = %19
  br i1 %3, label %25, label %27

25:                                               ; preds = %24
  %26 = tail call noundef zeroext i1 @_ZN12_GLOBAL__N_18CheckGmmEiiRKSt6vectorIdSaIdEERKS0_IS2_SaIS2_EERKS0_IN4sptk15SymmetricMatrixESaISA_EE(i32 noundef %1, i32 noundef %17, ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 8 dereferenceable(24) %7)
  br i1 %26, label %27, label %.loopexit194

27:                                               ; preds = %25, %24
  %.not = icmp eq ptr %8, null
  br i1 %.not, label %32, label %28

28:                                               ; preds = %27
  %29 = tail call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #8
  %30 = zext nneg i32 %1 to i64
  %.not170 = icmp eq i64 %29, %30
  br i1 %.not170, label %32, label %31

31:                                               ; preds = %28
  tail call void @_ZNSt6vectorIdSaIdEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %30)
  br label %32

32:                                               ; preds = %31, %28, %27
  %33 = getelementptr inbounds i8, ptr %10, i64 8
  %34 = tail call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %33) #8
  %.not171 = icmp eq i64 %34, %20
  br i1 %.not171, label %36, label %35

35:                                               ; preds = %32
  tail call void @_ZNSt6vectorIdSaIdEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %33, i64 noundef %20)
  br label %36

36:                                               ; preds = %35, %32
  %37 = getelementptr inbounds i8, ptr %10, i64 32
  %38 = tail call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %37) #8
  %39 = zext nneg i32 %1 to i64
  %.not172 = icmp eq i64 %38, %39
  br i1 %.not172, label %41, label %40

40:                                               ; preds = %36
  tail call void @_ZNSt6vectorIdSaIdEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %37, i64 noundef %39)
  br label %41

41:                                               ; preds = %40, %36
  %42 = getelementptr inbounds i8, ptr %10, i64 56
  %43 = tail call noundef i64 @_ZNKSt6vectorIN4sptk15SymmetricMatrixESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %42) #8
  %.not173 = icmp eq i64 %43, %39
  br i1 %.not173, label %45, label %44

44:                                               ; preds = %41
  tail call void @_ZNSt6vectorIN4sptk15SymmetricMatrixESaIS1_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %42, i64 noundef %39)
  br label %45

45:                                               ; preds = %44, %41
  %46 = getelementptr inbounds i8, ptr %10, i64 80
  %47 = load i8, ptr %46, align 8, !tbaa !5, !range !19, !noundef !20
  %48 = trunc nuw i8 %47 to i1
  br i1 %48, label %82, label %.preheader196

.preheader196:                                    ; preds = %45
  %.not175207.not = icmp eq i32 %1, 0
  br i1 %.not175207.not, label %.critedge189, label %.lr.ph210

.lr.ph210:                                        ; preds = %.preheader196
  %49 = sitofp i32 %17 to double
  %50 = fmul double %49, 0x3FFD67F1C864BEB4
  br i1 %2, label %.lr.ph210.split.us, label %.lr.ph210.split.preheader

.lr.ph210.split.preheader:                        ; preds = %.lr.ph210
  %wide.trip.count = zext nneg i32 %1 to i64
  br label %.lr.ph210.split

.lr.ph210.split.us:                               ; preds = %.lr.ph210
  %.not174204 = icmp slt i32 %0, 0
  br i1 %.not174204, label %.lr.ph210.split.us.split.us, label %.preheader195.us.preheader

.preheader195.us.preheader:                       ; preds = %.lr.ph210.split.us
  %wide.trip.count252 = zext nneg i32 %1 to i64
  br label %.preheader195.us

.lr.ph210.split.us.split.us:                      ; preds = %.lr.ph210.split.us
  %51 = fadd double %50, 0.000000e+00
  %wide.trip.count258 = zext nneg i32 %1 to i64
  br label %.preheader195.us.us

.preheader195.us.us:                              ; preds = %.preheader195.us.us, %.lr.ph210.split.us.split.us
  %indvars.iv254 = phi i64 [ %indvars.iv.next255, %.preheader195.us.us ], [ 0, %.lr.ph210.split.us.split.us ]
  %52 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %37, i64 noundef %indvars.iv254) #8
  store double %51, ptr %52, align 8, !tbaa !21
  %indvars.iv.next255 = add nuw nsw i64 %indvars.iv254, 1
  %exitcond259.not = icmp eq i64 %indvars.iv.next255, %wide.trip.count258
  br i1 %exitcond259.not, label %.critedge187, label %.preheader195.us.us, !llvm.loop !23

.preheader195.us:                                 ; preds = %.preheader195.us.preheader, %._crit_edge.us
  %indvars.iv248 = phi i64 [ 0, %.preheader195.us.preheader ], [ %indvars.iv.next249, %._crit_edge.us ]
  br label %53

53:                                               ; preds = %.preheader195.us, %56
  %.0151206.us = phi double [ 0.000000e+00, %.preheader195.us ], [ %59, %56 ]
  %.0153205.us = phi i32 [ 0, %.preheader195.us ], [ %60, %56 ]
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %12) #8
  %54 = call noundef nonnull align 8 dereferenceable(64) ptr @_ZNKSt6vectorIN4sptk15SymmetricMatrixESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %indvars.iv248) #8
  call void @_ZNK4sptk15SymmetricMatrixixEi(ptr dead_on_unwind nonnull writable sret(%"class.sptk::SymmetricMatrix::Row") align 8 %12, ptr noundef nonnull align 8 dereferenceable(64) %54, i32 noundef %.0153205.us)
  %55 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK4sptk15SymmetricMatrix3RowixEi(ptr noundef nonnull align 8 dereferenceable(20) %12, i32 noundef %.0153205.us)
          to label %56 unwind label %.split.us

56:                                               ; preds = %53
  %57 = load double, ptr %55, align 8, !tbaa !21
  %58 = call double @log(double noundef %57) #8
  %59 = fadd double %.0151206.us, %58
  call void @_ZN4sptk15SymmetricMatrix3RowD2Ev(ptr noundef nonnull align 8 dereferenceable(20) %12) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %12) #8
  %60 = add nuw i32 %.0153205.us, 1
  %exitcond247.not = icmp eq i32 %.0153205.us, %0
  br i1 %exitcond247.not, label %._crit_edge.us, label %53, !llvm.loop !25

._crit_edge.us:                                   ; preds = %56
  %61 = fadd double %50, %59
  %62 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %37, i64 noundef %indvars.iv248) #8
  store double %61, ptr %62, align 8, !tbaa !21
  %indvars.iv.next249 = add nuw nsw i64 %indvars.iv248, 1
  %exitcond253.not = icmp eq i64 %indvars.iv.next249, %wide.trip.count252
  br i1 %exitcond253.not, label %.critedge187, label %.preheader195.us, !llvm.loop !23

.split.us:                                        ; preds = %53
  %63 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4sptk15SymmetricMatrix3RowD2Ev(ptr noundef nonnull align 8 dereferenceable(20) %12) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %12) #8
  br label %176

.lr.ph210.split:                                  ; preds = %.lr.ph210.split.preheader, %.critedge
  %indvars.iv = phi i64 [ 0, %.lr.ph210.split.preheader ], [ %indvars.iv.next, %.critedge ]
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %13) #8
  call void @_ZN4sptk15SymmetricMatrixC1Ei(ptr noundef nonnull align 8 dereferenceable(64) %13, i32 noundef 0)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %14) #8
  call void @_ZNSt6vectorIdSaIdEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #8
  %64 = call noundef nonnull align 8 dereferenceable(64) ptr @_ZNKSt6vectorIN4sptk15SymmetricMatrixESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %indvars.iv) #8
  %65 = invoke noundef zeroext i1 @_ZNK4sptk15SymmetricMatrix21CholeskyDecompositionEPS0_PSt6vectorIdSaIdEE(ptr noundef nonnull align 8 dereferenceable(64) %64, ptr noundef nonnull %13, ptr noundef nonnull %14)
          to label %66 unwind label %67

66:                                               ; preds = %.lr.ph210.split
  br i1 %65, label %69, label %76

67:                                               ; preds = %69, %.lr.ph210.split
  %68 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %14) #8
  call void @_ZN4sptk15SymmetricMatrixD2Ev(ptr noundef nonnull align 8 dereferenceable(64) %13) #8
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %13) #8
  br label %176

69:                                               ; preds = %66
  %70 = call ptr @_ZNSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %14) #8
  %71 = call ptr @_ZNSt6vectorIdSaIdEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %14) #8
  %72 = invoke noundef double @"_ZSt10accumulateIN9__gnu_cxx17__normal_iteratorIPdSt6vectorIdSaIdEEEEdZN4sptk23GaussianMixtureModeling23CalculateLogProbabilityEiibbRKS5_SA_RKS3_IS5_SaIS5_EERKS3_INS7_15SymmetricMatrixESaISF_EEPS5_S2_PNS8_6BufferEE3$_0ET0_T_SP_SO_T1_"(ptr %70, ptr %71, double noundef 0.000000e+00)
          to label %73 unwind label %67

73:                                               ; preds = %69
  %74 = fadd double %72, 0.000000e+00
  %75 = fadd double %50, %74
  br label %76

76:                                               ; preds = %66, %73
  %.0144 = phi double [ %75, %73 ], [ %50, %66 ]
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %14) #8
  call void @_ZN4sptk15SymmetricMatrixD2Ev(ptr noundef nonnull align 8 dereferenceable(64) %13) #8
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %13) #8
  br i1 %65, label %.critedge, label %.loopexit194

.critedge:                                        ; preds = %76
  %77 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %37, i64 noundef %indvars.iv) #8
  store double %.0144, ptr %77, align 8, !tbaa !21
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %.critedge187, label %.lr.ph210.split, !llvm.loop !23

.critedge187:                                     ; preds = %.critedge, %._crit_edge.us, %.preheader195.us.us
  %or.cond236.not = or i1 %.not175207.not, %2
  br i1 %or.cond236.not, label %.critedge189, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %.critedge187
  %smax263 = call i32 @llvm.smax.i32(i32 %1, i32 1)
  %wide.trip.count264 = zext nneg i32 %smax263 to i64
  br label %.lr.ph

78:                                               ; preds = %.lr.ph
  %indvars.iv.next261 = add nuw nsw i64 %indvars.iv260, 1
  %exitcond265.not = icmp eq i64 %indvars.iv.next261, %wide.trip.count264
  br i1 %exitcond265.not, label %.critedge189, label %.lr.ph, !llvm.loop !26

.lr.ph:                                           ; preds = %.lr.ph.preheader, %78
  %indvars.iv260 = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next261, %78 ]
  %79 = call noundef nonnull align 8 dereferenceable(64) ptr @_ZNKSt6vectorIN4sptk15SymmetricMatrixESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %indvars.iv260) #8
  %80 = call noundef nonnull align 8 dereferenceable(64) ptr @_ZNSt6vectorIN4sptk15SymmetricMatrixESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %42, i64 noundef %indvars.iv260) #8
  %81 = call noundef zeroext i1 @_ZNK4sptk15SymmetricMatrix6InvertEPS0_(ptr noundef nonnull align 8 dereferenceable(64) %79, ptr noundef nonnull %80)
  br i1 %81, label %78, label %.loopexit194

.critedge189:                                     ; preds = %78, %.preheader196, %.critedge187
  store i8 1, ptr %46, align 8, !tbaa !5
  br label %82

82:                                               ; preds = %.critedge189, %45
  %83 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef 0) #8
  %.not237 = icmp eq i32 %1, 0
  br i1 %.not237, label %._crit_edge233, label %.lr.ph232

.lr.ph232:                                        ; preds = %82
  %84 = ptrtoint ptr %83 to i64
  %.not179213 = icmp slt i32 %0, 0
  %smax289 = call i32 @llvm.smax.i32(i32 %1, i32 1)
  %wide.trip.count290 = zext nneg i32 %smax289 to i64
  %wide.trip.count269 = zext i32 %17 to i64
  %wide.trip.count279 = zext i32 %17 to i64
  %wide.trip.count284 = zext i32 %17 to i64
  %min.iters.check = icmp ult i32 %17, 4
  %n.vec = and i64 %wide.trip.count269, 4294967292
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count269
  %xtraiter = and i64 %wide.trip.count269, 3
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br label %85

._crit_edge233:                                   ; preds = %173, %82
  %.0150.lcssa = phi double [ -1.000000e+10, %82 ], [ %174, %173 ]
  %.not178 = icmp eq ptr %9, null
  br i1 %.not178, label %.loopexit194, label %175

85:                                               ; preds = %.lr.ph232, %173
  %indvars.iv286 = phi i64 [ 0, %.lr.ph232 ], [ %indvars.iv.next287, %173 ]
  %.0150229 = phi double [ -1.000000e+10, %.lr.ph232 ], [ %174, %173 ]
  %86 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %37, i64 noundef %indvars.iv286) #8
  %87 = load double, ptr %86, align 8, !tbaa !21
  %88 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %indvars.iv286) #8
  %89 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %88, i64 noundef 0) #8
  %90 = ptrtoint ptr %89 to i64
  br i1 %2, label %.preheader190, label %106

.preheader190:                                    ; preds = %85
  br i1 %.not179213, label %.loopexit, label %.lr.ph227

.lr.ph227:                                        ; preds = %.preheader190, %98
  %indvars.iv281 = phi i64 [ %indvars.iv.next282, %98 ], [ 0, %.preheader190 ]
  %.0146225 = phi double [ %103, %98 ], [ %87, %.preheader190 ]
  %91 = getelementptr inbounds double, ptr %83, i64 %indvars.iv281
  %92 = load double, ptr %91, align 8, !tbaa !21
  %93 = getelementptr inbounds double, ptr %89, i64 %indvars.iv281
  %94 = load double, ptr %93, align 8, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %15) #8
  %95 = call noundef nonnull align 8 dereferenceable(64) ptr @_ZNKSt6vectorIN4sptk15SymmetricMatrixESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %indvars.iv286) #8
  %96 = trunc nuw nsw i64 %indvars.iv281 to i32
  call void @_ZNK4sptk15SymmetricMatrixixEi(ptr dead_on_unwind nonnull writable sret(%"class.sptk::SymmetricMatrix::Row") align 8 %15, ptr noundef nonnull align 8 dereferenceable(64) %95, i32 noundef %96)
  %97 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK4sptk15SymmetricMatrix3RowixEi(ptr noundef nonnull align 8 dereferenceable(20) %15, i32 noundef %96)
          to label %98 unwind label %104

98:                                               ; preds = %.lr.ph227
  %99 = fsub double %92, %94
  %100 = fmul double %99, %99
  %101 = load double, ptr %97, align 8, !tbaa !21
  %102 = fdiv double %100, %101
  %103 = fadd double %.0146225, %102
  call void @_ZN4sptk15SymmetricMatrix3RowD2Ev(ptr noundef nonnull align 8 dereferenceable(20) %15) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %15) #8
  %indvars.iv.next282 = add nuw nsw i64 %indvars.iv281, 1
  %exitcond285.not = icmp eq i64 %indvars.iv.next282, %wide.trip.count284
  br i1 %exitcond285.not, label %.loopexit, label %.lr.ph227, !llvm.loop !27

104:                                              ; preds = %.lr.ph227
  %105 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4sptk15SymmetricMatrix3RowD2Ev(ptr noundef nonnull align 8 dereferenceable(20) %15) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %15) #8
  br label %176

106:                                              ; preds = %85
  %107 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %33, i64 noundef 0) #8
  %108 = ptrtoint ptr %107 to i64
  br i1 %.not179213, label %.loopexit, label %.lr.ph215.preheader

.lr.ph215.preheader:                              ; preds = %106
  br i1 %min.iters.check, label %.lr.ph215.preheader314, label %vector.memcheck

.lr.ph215.preheader314:                           ; preds = %middle.block, %vector.memcheck, %.lr.ph215.preheader
  %indvars.iv266.ph = phi i64 [ 0, %vector.memcheck ], [ 0, %.lr.ph215.preheader ], [ %n.vec, %middle.block ]
  br i1 %lcmp.mod.not, label %.lr.ph215.prol.loopexit, label %.lr.ph215.prol

.lr.ph215.prol:                                   ; preds = %.lr.ph215.preheader314, %.lr.ph215.prol
  %indvars.iv266.prol = phi i64 [ %indvars.iv.next267.prol, %.lr.ph215.prol ], [ %indvars.iv266.ph, %.lr.ph215.preheader314 ]
  %prol.iter = phi i64 [ %prol.iter.next, %.lr.ph215.prol ], [ 0, %.lr.ph215.preheader314 ]
  %109 = getelementptr inbounds double, ptr %83, i64 %indvars.iv266.prol
  %110 = load double, ptr %109, align 8, !tbaa !21
  %111 = getelementptr inbounds double, ptr %89, i64 %indvars.iv266.prol
  %112 = load double, ptr %111, align 8, !tbaa !21
  %113 = fsub double %110, %112
  %114 = getelementptr inbounds double, ptr %107, i64 %indvars.iv266.prol
  store double %113, ptr %114, align 8, !tbaa !21
  %indvars.iv.next267.prol = add nuw nsw i64 %indvars.iv266.prol, 1
  %prol.iter.next = add i64 %prol.iter, 1
  %prol.iter.cmp.not = icmp eq i64 %prol.iter.next, %xtraiter
  br i1 %prol.iter.cmp.not, label %.lr.ph215.prol.loopexit, label %.lr.ph215.prol, !llvm.loop !28

.lr.ph215.prol.loopexit:                          ; preds = %.lr.ph215.prol, %.lr.ph215.preheader314
  %indvars.iv266.unr = phi i64 [ %indvars.iv266.ph, %.lr.ph215.preheader314 ], [ %indvars.iv.next267.prol, %.lr.ph215.prol ]
  %115 = sub nsw i64 %indvars.iv266.ph, %wide.trip.count269
  %116 = icmp ugt i64 %115, -4
  br i1 %116, label %.preheader191, label %.lr.ph215

vector.memcheck:                                  ; preds = %.lr.ph215.preheader
  %117 = sub i64 %108, %84
  %diff.check = icmp ult i64 %117, 32
  %118 = sub i64 %108, %90
  %diff.check309 = icmp ult i64 %118, 32
  %conflict.rdx = or i1 %diff.check, %diff.check309
  br i1 %conflict.rdx, label %.lr.ph215.preheader314, label %vector.body

vector.body:                                      ; preds = %vector.memcheck, %vector.body
  %index = phi i64 [ %index.next, %vector.body ], [ 0, %vector.memcheck ]
  %119 = getelementptr inbounds double, ptr %83, i64 %index
  %120 = getelementptr inbounds i8, ptr %119, i64 16
  %wide.load = load <2 x double>, ptr %119, align 8, !tbaa !21
  %wide.load310 = load <2 x double>, ptr %120, align 8, !tbaa !21
  %121 = getelementptr inbounds double, ptr %89, i64 %index
  %122 = getelementptr inbounds i8, ptr %121, i64 16
  %wide.load311 = load <2 x double>, ptr %121, align 8, !tbaa !21
  %wide.load312 = load <2 x double>, ptr %122, align 8, !tbaa !21
  %123 = fsub <2 x double> %wide.load, %wide.load311
  %124 = fsub <2 x double> %wide.load310, %wide.load312
  %125 = getelementptr inbounds double, ptr %107, i64 %index
  %126 = getelementptr inbounds i8, ptr %125, i64 16
  store <2 x double> %123, ptr %125, align 8, !tbaa !21
  store <2 x double> %124, ptr %126, align 8, !tbaa !21
  %index.next = add nuw i64 %index, 4
  %127 = icmp eq i64 %index.next, %n.vec
  br i1 %127, label %middle.block, label %vector.body, !llvm.loop !30

middle.block:                                     ; preds = %vector.body
  br i1 %cmp.n, label %.preheader191, label %.lr.ph215.preheader314

.preheader191:                                    ; preds = %.lr.ph215.prol.loopexit, %.lr.ph215, %middle.block
  br i1 %.not179213, label %.loopexit, label %.preheader

.lr.ph215:                                        ; preds = %.lr.ph215.prol.loopexit, %.lr.ph215
  %indvars.iv266 = phi i64 [ %indvars.iv.next267.3, %.lr.ph215 ], [ %indvars.iv266.unr, %.lr.ph215.prol.loopexit ]
  %128 = getelementptr inbounds double, ptr %83, i64 %indvars.iv266
  %129 = load double, ptr %128, align 8, !tbaa !21
  %130 = getelementptr inbounds double, ptr %89, i64 %indvars.iv266
  %131 = load double, ptr %130, align 8, !tbaa !21
  %132 = fsub double %129, %131
  %133 = getelementptr inbounds double, ptr %107, i64 %indvars.iv266
  store double %132, ptr %133, align 8, !tbaa !21
  %indvars.iv.next267 = add nuw nsw i64 %indvars.iv266, 1
  %134 = getelementptr inbounds double, ptr %83, i64 %indvars.iv.next267
  %135 = load double, ptr %134, align 8, !tbaa !21
  %136 = getelementptr inbounds double, ptr %89, i64 %indvars.iv.next267
  %137 = load double, ptr %136, align 8, !tbaa !21
  %138 = fsub double %135, %137
  %139 = getelementptr inbounds double, ptr %107, i64 %indvars.iv.next267
  store double %138, ptr %139, align 8, !tbaa !21
  %indvars.iv.next267.1 = add nuw nsw i64 %indvars.iv266, 2
  %140 = getelementptr inbounds double, ptr %83, i64 %indvars.iv.next267.1
  %141 = load double, ptr %140, align 8, !tbaa !21
  %142 = getelementptr inbounds double, ptr %89, i64 %indvars.iv.next267.1
  %143 = load double, ptr %142, align 8, !tbaa !21
  %144 = fsub double %141, %143
  %145 = getelementptr inbounds double, ptr %107, i64 %indvars.iv.next267.1
  store double %144, ptr %145, align 8, !tbaa !21
  %indvars.iv.next267.2 = add nuw nsw i64 %indvars.iv266, 3
  %146 = getelementptr inbounds double, ptr %83, i64 %indvars.iv.next267.2
  %147 = load double, ptr %146, align 8, !tbaa !21
  %148 = getelementptr inbounds double, ptr %89, i64 %indvars.iv.next267.2
  %149 = load double, ptr %148, align 8, !tbaa !21
  %150 = fsub double %147, %149
  %151 = getelementptr inbounds double, ptr %107, i64 %indvars.iv.next267.2
  store double %150, ptr %151, align 8, !tbaa !21
  %indvars.iv.next267.3 = add nuw nsw i64 %indvars.iv266, 4
  %exitcond270.not.3 = icmp eq i64 %indvars.iv.next267.3, %wide.trip.count269
  br i1 %exitcond270.not.3, label %.preheader191, label %.lr.ph215, !llvm.loop !33

.preheader:                                       ; preds = %.preheader191, %._crit_edge
  %indvars.iv276 = phi i64 [ %indvars.iv.next277, %._crit_edge ], [ 0, %.preheader191 ]
  %.1147221 = phi double [ %155, %._crit_edge ], [ %87, %.preheader191 ]
  %152 = trunc nuw nsw i64 %indvars.iv276 to i32
  br label %156

._crit_edge:                                      ; preds = %162
  %153 = getelementptr inbounds double, ptr %107, i64 %indvars.iv276
  %154 = load double, ptr %153, align 8, !tbaa !21
  %155 = call double @llvm.fmuladd.f64(double %164, double %154, double %.1147221)
  %indvars.iv.next277 = add nuw nsw i64 %indvars.iv276, 1
  %exitcond280.not = icmp eq i64 %indvars.iv.next277, %wide.trip.count279
  br i1 %exitcond280.not, label %.loopexit, label %.preheader, !llvm.loop !34

156:                                              ; preds = %.preheader, %162
  %indvars.iv271 = phi i64 [ 0, %.preheader ], [ %indvars.iv.next272, %162 ]
  %.0135217 = phi double [ 0.000000e+00, %.preheader ], [ %164, %162 ]
  %157 = getelementptr inbounds double, ptr %107, i64 %indvars.iv271
  %158 = load double, ptr %157, align 8, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %16) #8
  %159 = call noundef nonnull align 8 dereferenceable(64) ptr @_ZNSt6vectorIN4sptk15SymmetricMatrixESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %42, i64 noundef %indvars.iv286) #8
  call void @_ZN4sptk15SymmetricMatrixixEi(ptr dead_on_unwind nonnull writable sret(%"class.sptk::SymmetricMatrix::Row") align 8 %16, ptr noundef nonnull align 8 dereferenceable(64) %159, i32 noundef %152)
  %160 = trunc nuw nsw i64 %indvars.iv271 to i32
  %161 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN4sptk15SymmetricMatrix3RowixEi(ptr noundef nonnull align 8 dereferenceable(20) %16, i32 noundef %160)
          to label %162 unwind label %165

162:                                              ; preds = %156
  %163 = load double, ptr %161, align 8, !tbaa !21
  %164 = call double @llvm.fmuladd.f64(double %158, double %163, double %.0135217)
  call void @_ZN4sptk15SymmetricMatrix3RowD2Ev(ptr noundef nonnull align 8 dereferenceable(20) %16) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %16) #8
  %indvars.iv.next272 = add nuw nsw i64 %indvars.iv271, 1
  %exitcond275.not = icmp eq i64 %indvars.iv.next272, %wide.trip.count279
  br i1 %exitcond275.not, label %._crit_edge, label %156, !llvm.loop !35

165:                                              ; preds = %156
  %166 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4sptk15SymmetricMatrix3RowD2Ev(ptr noundef nonnull align 8 dereferenceable(20) %16) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %16) #8
  br label %176

.loopexit:                                        ; preds = %._crit_edge, %98, %106, %.preheader191, %.preheader190
  %.2148 = phi double [ %87, %.preheader190 ], [ %87, %.preheader191 ], [ %87, %106 ], [ %103, %98 ], [ %155, %._crit_edge ]
  %167 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %indvars.iv286) #8
  %168 = load double, ptr %167, align 8, !tbaa !21
  %169 = call double @log(double noundef %168) #8
  %170 = call double @llvm.fmuladd.f64(double %.2148, double -5.000000e-01, double %169)
  br i1 %.not, label %173, label %171

171:                                              ; preds = %.loopexit
  %172 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %indvars.iv286) #8
  store double %170, ptr %172, align 8, !tbaa !21
  br label %173

173:                                              ; preds = %171, %.loopexit
  %174 = call noundef double @_ZN4sptk13AddInLogSpaceEdd(double noundef %.0150229, double noundef %170)
  %indvars.iv.next287 = add nuw nsw i64 %indvars.iv286, 1
  %exitcond291.not = icmp eq i64 %indvars.iv.next287, %wide.trip.count290
  br i1 %exitcond291.not, label %._crit_edge233, label %85, !llvm.loop !36

175:                                              ; preds = %._crit_edge233
  store double %.0150.lcssa, ptr %9, align 8, !tbaa !21
  br label %.loopexit194

.loopexit194:                                     ; preds = %76, %.lr.ph, %._crit_edge233, %175, %25, %11, %19
  %.6 = phi i1 [ false, %19 ], [ false, %11 ], [ false, %25 ], [ true, %175 ], [ true, %._crit_edge233 ], [ false, %.lr.ph ], [ false, %76 ]
  ret i1 %.6

176:                                              ; preds = %104, %165, %.split.us, %67
  %.pn183.pn = phi { ptr, i32 } [ %63, %.split.us ], [ %68, %67 ], [ %105, %104 ], [ %166, %165 ]
  resume { ptr, i32 } %.pn183.pn
}

; 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 #1 align 2

; 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 #1 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 #1 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 uwtable
declare dso_local void @_ZNK4sptk15SymmetricMatrixixEi(ptr dead_on_unwind noalias writable sret(%"class.sptk::SymmetricMatrix::Row") align 8, ptr noundef nonnull align 8 dereferenceable(64), i32 noundef) local_unnamed_addr #3 align 2

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNK4sptk15SymmetricMatrix3RowixEi(ptr noundef nonnull align 8 dereferenceable(20), i32 noundef) local_unnamed_addr #0

; 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 #1 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIN4sptk15SymmetricMatrixESaIS1_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @log(double noundef) local_unnamed_addr #5

declare noundef zeroext i1 @_ZNK4sptk15SymmetricMatrix21CholeskyDecompositionEPS0_PSt6vectorIdSaIdEE(ptr noundef nonnull align 8 dereferenceable(64), ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef double @"_ZSt10accumulateIN9__gnu_cxx17__normal_iteratorIPdSt6vectorIdSaIdEEEEdZN4sptk23GaussianMixtureModeling23CalculateLogProbabilityEiibbRKS5_SA_RKS3_IS5_SaIS5_EERKS3_INS7_15SymmetricMatrixESaISF_EEPS5_S2_PNS8_6BufferEE3$_0ET0_T_SP_SO_T1_"(ptr, ptr, double noundef) local_unnamed_addr #6

declare noundef zeroext i1 @_ZNK4sptk15SymmetricMatrix6InvertEPS0_(ptr noundef nonnull align 8 dereferenceable(64), ptr noundef) local_unnamed_addr #0

declare noundef double @_ZN4sptk13AddInLogSpaceEdd(double noundef, double noundef) local_unnamed_addr #0

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smax.i32(i32, i32) #7

attributes #0 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress 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 #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #4 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { mustprogress nofree nounwind willreturn memory(write) "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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #8 = { 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, !18, i64 80}
!6 = !{!"_ZTSN4sptk23GaussianMixtureModeling6BufferE", !7, i64 8, !7, i64 32, !14, i64 56, !18, i64 80}
!7 = !{!"_ZTSSt6vectorIdSaIdEE", !8, i64 0}
!8 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !9, i64 0}
!9 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !10, i64 0}
!10 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !11, i64 0, !11, i64 8, !11, i64 16}
!11 = !{!"any pointer", !12, i64 0}
!12 = !{!"omnipotent char", !13, i64 0}
!13 = !{!"Simple C++ TBAA"}
!14 = !{!"_ZTSSt6vectorIN4sptk15SymmetricMatrixESaIS1_EE", !15, i64 0}
!15 = !{!"_ZTSSt12_Vector_baseIN4sptk15SymmetricMatrixESaIS1_EE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseIN4sptk15SymmetricMatrixESaIS1_EE12_Vector_implE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIN4sptk15SymmetricMatrixESaIS1_EE17_Vector_impl_dataE", !11, i64 0, !11, i64 8, !11, i64 16}
!18 = !{!"bool", !12, i64 0}
!19 = !{i8 0, i8 2}
!20 = !{}
!21 = !{!22, !22, i64 0}
!22 = !{!"double", !12, i64 0}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}
!25 = distinct !{!25, !24}
!26 = distinct !{!26, !24}
!27 = distinct !{!27, !24}
!28 = distinct !{!28, !29}
!29 = !{!"llvm.loop.unroll.disable"}
!30 = distinct !{!30, !24, !31, !32}
!31 = !{!"llvm.loop.isvectorized", i32 1}
!32 = !{!"llvm.loop.unroll.runtime.disable"}
!33 = distinct !{!33, !24, !31}
!34 = distinct !{!34, !24}
!35 = distinct !{!35, !24}
!36 = distinct !{!36, !24}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,PostOrderFunctionAttrsPass,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass