; 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::GaussianMixtureModeling" = type { ptr, i32, i32, i32, double, i32, %"class.std::vector", double, double, i32, i32, double, %"class.std::vector.0", %"class.std::vector.5", %"class.std::vector.10", i8, i8, %"class.sptk::SymmetricMatrix", %"class.std::vector.0" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = 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.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 }
%"class.sptk::SymmetricMatrix" = type { ptr, i32, %"class.std::vector.0", %"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::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 }

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

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

; Function Attrs: mustprogress 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) #2

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZNK4sptk23GaussianMixtureModeling11FloorWeightEPSt6vectorIdSaIdEE(ptr noundef nonnull align 8 dereferenceable(264) %0, ptr noundef %1) #1 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca double, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca double, align 8
  %9 = alloca double, align 8
  %10 = alloca double, align 8
  %11 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %12 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #3
  store double 0.000000e+00, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #3
  %13 = load ptr, ptr %4, align 8, !tbaa !5
  %14 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef 0) #3
  store ptr %14, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #3
  store i32 0, ptr %7, align 4, !tbaa !11
  br label %15

15:                                               ; preds = %45, %2
  %16 = load i32, ptr %7, align 4, !tbaa !11
  %17 = getelementptr inbounds %"class.sptk::GaussianMixtureModeling", ptr %12, i32 0, i32 2
  %18 = load i32, ptr %17, align 4, !tbaa !13
  %19 = icmp slt i32 %16, %18
  br i1 %19, label %21, label %20

20:                                               ; preds = %15
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #3
  br label %48

21:                                               ; preds = %15
  %22 = load ptr, ptr %6, align 8, !tbaa !5
  %23 = load i32, ptr %7, align 4, !tbaa !11
  %24 = sext i32 %23 to i64
  %25 = getelementptr inbounds double, ptr %22, i64 %24
  %26 = load double, ptr %25, align 8, !tbaa !9
  %27 = getelementptr inbounds %"class.sptk::GaussianMixtureModeling", ptr %12, i32 0, i32 7
  %28 = load double, ptr %27, align 8, !tbaa !39
  %29 = fcmp olt double %26, %28
  br i1 %29, label %30, label %37

30:                                               ; preds = %21
  %31 = getelementptr inbounds %"class.sptk::GaussianMixtureModeling", ptr %12, i32 0, i32 7
  %32 = load double, ptr %31, align 8, !tbaa !39
  %33 = load ptr, ptr %6, align 8, !tbaa !5
  %34 = load i32, ptr %7, align 4, !tbaa !11
  %35 = sext i32 %34 to i64
  %36 = getelementptr inbounds double, ptr %33, i64 %35
  store double %32, ptr %36, align 8, !tbaa !9
  br label %37

37:                                               ; preds = %30, %21
  %38 = load ptr, ptr %6, align 8, !tbaa !5
  %39 = load i32, ptr %7, align 4, !tbaa !11
  %40 = sext i32 %39 to i64
  %41 = getelementptr inbounds double, ptr %38, i64 %40
  %42 = load double, ptr %41, align 8, !tbaa !9
  %43 = load double, ptr %5, align 8, !tbaa !9
  %44 = fadd double %43, %42
  store double %44, ptr %5, align 8, !tbaa !9
  br label %45

45:                                               ; preds = %37
  %46 = load i32, ptr %7, align 4, !tbaa !11
  %47 = add nsw i32 %46, 1
  store i32 %47, ptr %7, align 4, !tbaa !11
  br label %15, !llvm.loop !40

48:                                               ; preds = %20
  %49 = load double, ptr %5, align 8, !tbaa !9
  %50 = fcmp une double 1.000000e+00, %49
  br i1 %50, label %51, label %92

51:                                               ; preds = %48
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #3
  %52 = getelementptr inbounds %"class.sptk::GaussianMixtureModeling", ptr %12, i32 0, i32 7
  %53 = load double, ptr %52, align 8, !tbaa !39
  %54 = getelementptr inbounds %"class.sptk::GaussianMixtureModeling", ptr %12, i32 0, i32 2
  %55 = load i32, ptr %54, align 4, !tbaa !13
  %56 = sitofp i32 %55 to double
  %57 = fmul double %53, %56
  store double %57, ptr %8, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #3
  %58 = load double, ptr %8, align 8, !tbaa !9
  %59 = fsub double 1.000000e+00, %58
  %60 = load double, ptr %5, align 8, !tbaa !9
  %61 = load double, ptr %8, align 8, !tbaa !9
  %62 = fsub double %60, %61
  %63 = fdiv double %59, %62
  store double %63, ptr %9, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #3
  %64 = getelementptr inbounds %"class.sptk::GaussianMixtureModeling", ptr %12, i32 0, i32 7
  %65 = load double, ptr %64, align 8, !tbaa !39
  %66 = load double, ptr %9, align 8, !tbaa !9
  %67 = fsub double 1.000000e+00, %66
  %68 = fmul double %65, %67
  store double %68, ptr %10, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #3
  store i32 0, ptr %11, align 4, !tbaa !11
  br label %69

69:                                               ; preds = %88, %51
  %70 = load i32, ptr %11, align 4, !tbaa !11
  %71 = getelementptr inbounds %"class.sptk::GaussianMixtureModeling", ptr %12, i32 0, i32 2
  %72 = load i32, ptr %71, align 4, !tbaa !13
  %73 = icmp slt i32 %70, %72
  br i1 %73, label %75, label %74

74:                                               ; preds = %69
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #3
  br label %91

75:                                               ; preds = %69
  %76 = load double, ptr %9, align 8, !tbaa !9
  %77 = load ptr, ptr %6, align 8, !tbaa !5
  %78 = load i32, ptr %11, align 4, !tbaa !11
  %79 = sext i32 %78 to i64
  %80 = getelementptr inbounds double, ptr %77, i64 %79
  %81 = load double, ptr %80, align 8, !tbaa !9
  %82 = load double, ptr %10, align 8, !tbaa !9
  %83 = call double @llvm.fmuladd.f64(double %76, double %81, double %82)
  %84 = load ptr, ptr %6, align 8, !tbaa !5
  %85 = load i32, ptr %11, align 4, !tbaa !11
  %86 = sext i32 %85 to i64
  %87 = getelementptr inbounds double, ptr %84, i64 %86
  store double %83, ptr %87, align 8, !tbaa !9
  br label %88

88:                                               ; preds = %75
  %89 = load i32, ptr %11, align 4, !tbaa !11
  %90 = add nsw i32 %89, 1
  store i32 %90, ptr %11, align 4, !tbaa !11
  br label %69, !llvm.loop !42

91:                                               ; preds = %74
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #3
  br label %92

92:                                               ; preds = %91, %48
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #3
  ret void
}

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !12, i64 12}
!14 = !{!"_ZTSN4sptk23GaussianMixtureModelingE", !12, i64 8, !12, i64 12, !12, i64 16, !10, i64 24, !15, i64 32, !16, i64 40, !10, i64 64, !10, i64 72, !20, i64 80, !12, i64 84, !10, i64 88, !21, i64 96, !25, i64 120, !29, i64 144, !33, i64 168, !33, i64 169, !34, i64 176, !21, i64 240}
!15 = !{!"_ZTSN4sptk23GaussianMixtureModeling14CovarianceTypeE", !7, i64 0}
!16 = !{!"_ZTSSt6vectorIiSaIiEE", !17, i64 0}
!17 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!20 = !{!"_ZTSN4sptk23GaussianMixtureModeling18InitializationTypeE", !7, i64 0}
!21 = !{!"_ZTSSt6vectorIdSaIdEE", !22, i64 0}
!22 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!25 = !{!"_ZTSSt6vectorIS_IdSaIdEESaIS1_EE", !26, i64 0}
!26 = !{!"_ZTSSt12_Vector_baseISt6vectorIdSaIdEESaIS2_EE", !27, i64 0}
!27 = !{!"_ZTSNSt12_Vector_baseISt6vectorIdSaIdEESaIS2_EE12_Vector_implE", !28, i64 0}
!28 = !{!"_ZTSNSt12_Vector_baseISt6vectorIdSaIdEESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!29 = !{!"_ZTSSt6vectorIN4sptk15SymmetricMatrixESaIS1_EE", !30, i64 0}
!30 = !{!"_ZTSSt12_Vector_baseIN4sptk15SymmetricMatrixESaIS1_EE", !31, i64 0}
!31 = !{!"_ZTSNSt12_Vector_baseIN4sptk15SymmetricMatrixESaIS1_EE12_Vector_implE", !32, i64 0}
!32 = !{!"_ZTSNSt12_Vector_baseIN4sptk15SymmetricMatrixESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!33 = !{!"bool", !7, i64 0}
!34 = !{!"_ZTSN4sptk15SymmetricMatrixE", !12, i64 8, !21, i64 16, !35, i64 40}
!35 = !{!"_ZTSSt6vectorIPdSaIS0_EE", !36, i64 0}
!36 = !{!"_ZTSSt12_Vector_baseIPdSaIS0_EE", !37, i64 0}
!37 = !{!"_ZTSNSt12_Vector_baseIPdSaIS0_EE12_Vector_implE", !38, i64 0}
!38 = !{!"_ZTSNSt12_Vector_baseIPdSaIS0_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!39 = !{!14, !10, i64 64}
!40 = distinct !{!40, !41}
!41 = !{!"llvm.loop.mustprogress"}
!42 = distinct !{!42, !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"

; 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 nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #1

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZNK4sptk23GaussianMixtureModeling11FloorWeightEPSt6vectorIdSaIdEE(ptr nocapture noundef nonnull readonly align 8 dereferenceable(264) %0, ptr noundef nonnull %1) local_unnamed_addr #0 align 2 {
  %3 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef 0) #3
  %4 = getelementptr inbounds i8, ptr %0, i64 12
  %5 = load i32, ptr %4, align 4, !tbaa !5
  %6 = icmp sgt i32 %5, 0
  br i1 %6, label %.lr.ph, label %._crit_edge.thread

.lr.ph:                                           ; preds = %2
  %7 = getelementptr inbounds i8, ptr %0, i64 64
  %wide.trip.count = zext nneg i32 %5 to i64
  %xtraiter = and i64 %wide.trip.count, 1
  %8 = icmp eq i32 %5, 1
  br i1 %8, label %._crit_edge.unr-lcssa, label %.lr.ph.new

.lr.ph.new:                                       ; preds = %.lr.ph
  %unroll_iter = and i64 %wide.trip.count, 2147483646
  br label %17

._crit_edge.unr-lcssa:                            ; preds = %31, %.lr.ph
  %.lcssa.ph = phi double [ poison, %.lr.ph ], [ %33, %31 ]
  %indvars.iv.unr = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next.1, %31 ]
  %.02328.unr = phi double [ 0.000000e+00, %.lr.ph ], [ %33, %31 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge, label %.epil.preheader

.epil.preheader:                                  ; preds = %._crit_edge.unr-lcssa
  %9 = getelementptr inbounds double, ptr %3, i64 %indvars.iv.unr
  %10 = load double, ptr %9, align 8, !tbaa !36
  %11 = load double, ptr %7, align 8, !tbaa !37
  %12 = fcmp olt double %10, %11
  br i1 %12, label %13, label %._crit_edge.epilog-lcssa

13:                                               ; preds = %.epil.preheader
  store double %11, ptr %9, align 8, !tbaa !36
  br label %._crit_edge.epilog-lcssa

._crit_edge.epilog-lcssa:                         ; preds = %13, %.epil.preheader
  %14 = phi double [ %11, %13 ], [ %10, %.epil.preheader ]
  %15 = fadd double %.02328.unr, %14
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.unr-lcssa, %._crit_edge.epilog-lcssa
  %.lcssa = phi double [ %.lcssa.ph, %._crit_edge.unr-lcssa ], [ %15, %._crit_edge.epilog-lcssa ]
  %16 = fcmp une double %.lcssa, 1.000000e+00
  br i1 %16, label %._crit_edge.thread, label %.loopexit

17:                                               ; preds = %31, %.lr.ph.new
  %indvars.iv = phi i64 [ 0, %.lr.ph.new ], [ %indvars.iv.next.1, %31 ]
  %.02328 = phi double [ 0.000000e+00, %.lr.ph.new ], [ %33, %31 ]
  %niter = phi i64 [ 0, %.lr.ph.new ], [ %niter.next.1, %31 ]
  %18 = getelementptr inbounds double, ptr %3, i64 %indvars.iv
  %19 = load double, ptr %18, align 8, !tbaa !36
  %20 = load double, ptr %7, align 8, !tbaa !37
  %21 = fcmp olt double %19, %20
  br i1 %21, label %22, label %23

22:                                               ; preds = %17
  store double %20, ptr %18, align 8, !tbaa !36
  br label %23

23:                                               ; preds = %22, %17
  %24 = phi double [ %20, %22 ], [ %19, %17 ]
  %25 = fadd double %.02328, %24
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %26 = getelementptr inbounds double, ptr %3, i64 %indvars.iv.next
  %27 = load double, ptr %26, align 8, !tbaa !36
  %28 = load double, ptr %7, align 8, !tbaa !37
  %29 = fcmp olt double %27, %28
  br i1 %29, label %30, label %31

30:                                               ; preds = %23
  store double %28, ptr %26, align 8, !tbaa !36
  br label %31

31:                                               ; preds = %30, %23
  %32 = phi double [ %28, %30 ], [ %27, %23 ]
  %33 = fadd double %25, %32
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %._crit_edge.unr-lcssa, label %17, !llvm.loop !38

._crit_edge.thread:                               ; preds = %2, %._crit_edge
  %.023.lcssa40 = phi double [ %.lcssa, %._crit_edge ], [ 0.000000e+00, %2 ]
  %34 = getelementptr inbounds i8, ptr %0, i64 64
  %35 = load double, ptr %34, align 8, !tbaa !37
  %36 = sitofp i32 %5 to double
  %37 = fmul double %35, %36
  %38 = fsub double 1.000000e+00, %37
  %39 = fsub double %.023.lcssa40, %37
  %40 = fdiv double %38, %39
  %41 = fsub double 1.000000e+00, %40
  %42 = fmul double %35, %41
  br i1 %6, label %.lr.ph32.preheader, label %.loopexit

.lr.ph32.preheader:                               ; preds = %._crit_edge.thread
  %wide.trip.count37 = zext nneg i32 %5 to i64
  %min.iters.check = icmp ult i32 %5, 4
  br i1 %min.iters.check, label %.lr.ph32.preheader44, label %vector.ph

vector.ph:                                        ; preds = %.lr.ph32.preheader
  %n.vec = and i64 %wide.trip.count37, 2147483644
  %broadcast.splatinsert = insertelement <2 x double> poison, double %40, i64 0
  %broadcast.splat = shufflevector <2 x double> %broadcast.splatinsert, <2 x double> poison, <2 x i32> zeroinitializer
  %broadcast.splatinsert42 = insertelement <2 x double> poison, double %42, i64 0
  %broadcast.splat43 = shufflevector <2 x double> %broadcast.splatinsert42, <2 x double> poison, <2 x i32> zeroinitializer
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %43 = getelementptr inbounds double, ptr %3, i64 %index
  %44 = getelementptr inbounds i8, ptr %43, i64 16
  %wide.load = load <2 x double>, ptr %43, align 8, !tbaa !36
  %wide.load41 = load <2 x double>, ptr %44, align 8, !tbaa !36
  %45 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %broadcast.splat, <2 x double> %wide.load, <2 x double> %broadcast.splat43)
  %46 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %broadcast.splat, <2 x double> %wide.load41, <2 x double> %broadcast.splat43)
  store <2 x double> %45, ptr %43, align 8, !tbaa !36
  store <2 x double> %46, ptr %44, align 8, !tbaa !36
  %index.next = add nuw i64 %index, 4
  %47 = icmp eq i64 %index.next, %n.vec
  br i1 %47, label %middle.block, label %vector.body, !llvm.loop !40

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count37
  br i1 %cmp.n, label %.loopexit, label %.lr.ph32.preheader44

.lr.ph32.preheader44:                             ; preds = %middle.block, %.lr.ph32.preheader
  %indvars.iv34.ph = phi i64 [ 0, %.lr.ph32.preheader ], [ %n.vec, %middle.block ]
  br label %.lr.ph32

.lr.ph32:                                         ; preds = %.lr.ph32.preheader44, %.lr.ph32
  %indvars.iv34 = phi i64 [ %indvars.iv.next35, %.lr.ph32 ], [ %indvars.iv34.ph, %.lr.ph32.preheader44 ]
  %48 = getelementptr inbounds double, ptr %3, i64 %indvars.iv34
  %49 = load double, ptr %48, align 8, !tbaa !36
  %50 = tail call double @llvm.fmuladd.f64(double %40, double %49, double %42)
  store double %50, ptr %48, align 8, !tbaa !36
  %indvars.iv.next35 = add nuw nsw i64 %indvars.iv34, 1
  %exitcond38.not = icmp eq i64 %indvars.iv.next35, %wide.trip.count37
  br i1 %exitcond38.not, label %.loopexit, label %.lr.ph32, !llvm.loop !43

.loopexit:                                        ; preds = %.lr.ph32, %middle.block, %._crit_edge.thread, %._crit_edge
  ret void
}

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <2 x double> @llvm.fmuladd.v2f64(<2 x double>, <2 x double>, <2 x double>) #2

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 speculatable willreturn memory(none) }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 12}
!6 = !{!"_ZTSN4sptk23GaussianMixtureModelingE", !7, i64 8, !7, i64 12, !7, i64 16, !10, i64 24, !11, i64 32, !12, i64 40, !10, i64 64, !10, i64 72, !17, i64 80, !7, i64 84, !10, i64 88, !18, i64 96, !22, i64 120, !26, i64 144, !30, i64 168, !30, i64 169, !31, i64 176, !18, i64 240}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"double", !8, i64 0}
!11 = !{!"_ZTSN4sptk23GaussianMixtureModeling14CovarianceTypeE", !8, i64 0}
!12 = !{!"_ZTSSt6vectorIiSaIiEE", !13, i64 0}
!13 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !14, i64 0}
!14 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !16, i64 0, !16, i64 8, !16, i64 16}
!16 = !{!"any pointer", !8, i64 0}
!17 = !{!"_ZTSN4sptk23GaussianMixtureModeling18InitializationTypeE", !8, i64 0}
!18 = !{!"_ZTSSt6vectorIdSaIdEE", !19, i64 0}
!19 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !16, i64 0, !16, i64 8, !16, i64 16}
!22 = !{!"_ZTSSt6vectorIS_IdSaIdEESaIS1_EE", !23, i64 0}
!23 = !{!"_ZTSSt12_Vector_baseISt6vectorIdSaIdEESaIS2_EE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseISt6vectorIdSaIdEESaIS2_EE12_Vector_implE", !25, i64 0}
!25 = !{!"_ZTSNSt12_Vector_baseISt6vectorIdSaIdEESaIS2_EE17_Vector_impl_dataE", !16, i64 0, !16, i64 8, !16, i64 16}
!26 = !{!"_ZTSSt6vectorIN4sptk15SymmetricMatrixESaIS1_EE", !27, i64 0}
!27 = !{!"_ZTSSt12_Vector_baseIN4sptk15SymmetricMatrixESaIS1_EE", !28, i64 0}
!28 = !{!"_ZTSNSt12_Vector_baseIN4sptk15SymmetricMatrixESaIS1_EE12_Vector_implE", !29, i64 0}
!29 = !{!"_ZTSNSt12_Vector_baseIN4sptk15SymmetricMatrixESaIS1_EE17_Vector_impl_dataE", !16, i64 0, !16, i64 8, !16, i64 16}
!30 = !{!"bool", !8, i64 0}
!31 = !{!"_ZTSN4sptk15SymmetricMatrixE", !7, i64 8, !18, i64 16, !32, i64 40}
!32 = !{!"_ZTSSt6vectorIPdSaIS0_EE", !33, i64 0}
!33 = !{!"_ZTSSt12_Vector_baseIPdSaIS0_EE", !34, i64 0}
!34 = !{!"_ZTSNSt12_Vector_baseIPdSaIS0_EE12_Vector_implE", !35, i64 0}
!35 = !{!"_ZTSNSt12_Vector_baseIPdSaIS0_EE17_Vector_impl_dataE", !16, i64 0, !16, i64 8, !16, i64 16}
!36 = !{!10, !10, i64 0}
!37 = !{!6, !10, i64 64}
!38 = distinct !{!38, !39}
!39 = !{!"llvm.loop.mustprogress"}
!40 = distinct !{!40, !39, !41, !42}
!41 = !{!"llvm.loop.isvectorized", i32 1}
!42 = !{!"llvm.loop.unroll.runtime.disable"}
!43 = distinct !{!43, !39, !42, !41}


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