; LLVM IR from andi611/Hidden-Markov-Model-Digital-Signal-Processing :: src/train_hmm.ll (ZN3HMM12apply_updateEPSt6vectorIdSaIdEES3_PS0_IS2_SaIS2_EES6_S3_d)

; 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.HMM = type { i8, %"class.std::__cxx11::basic_string", i32, i32, %"class.std::vector", %"class.std::vector.3", %"class.std::vector.3" }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.3" = type { %"struct.std::_Vector_base.4" }
%"struct.std::_Vector_base.4" = 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 }

; 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 uwtable
define dso_local void @_ZN3HMM12apply_updateEPSt6vectorIdSaIdEES3_PS0_IS2_SaIS2_EES6_S3_d(ptr noundef nonnull align 8 dereferenceable(120) %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, double noundef %6) #1 align 2 {
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca double, align 8
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  store ptr %0, ptr %8, align 8, !tbaa !5
  store ptr %1, ptr %9, align 8, !tbaa !5
  store ptr %2, ptr %10, align 8, !tbaa !5
  store ptr %3, ptr %11, align 8, !tbaa !5
  store ptr %4, ptr %12, align 8, !tbaa !5
  store ptr %5, ptr %13, align 8, !tbaa !5
  store double %6, ptr %14, align 8, !tbaa !9
  %21 = load ptr, ptr %8, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #2
  store i32 0, ptr %15, align 4, !tbaa !11
  br label %22

22:                                               ; preds = %40, %7
  %23 = load i32, ptr %15, align 4, !tbaa !11
  %24 = getelementptr inbounds %class.HMM, ptr %21, i32 0, i32 2
  %25 = load i32, ptr %24, align 8, !tbaa !13
  %26 = icmp slt i32 %23, %25
  br i1 %26, label %28, label %27

27:                                               ; preds = %22
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #2
  br label %43

28:                                               ; preds = %22
  %29 = load ptr, ptr %9, align 8, !tbaa !5
  %30 = load i32, ptr %15, align 4, !tbaa !11
  %31 = sext i32 %30 to i64
  %32 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %29, i64 noundef %31)
  %33 = load double, ptr %32, align 8, !tbaa !9
  %34 = load double, ptr %14, align 8, !tbaa !9
  %35 = fdiv double %33, %34
  %36 = getelementptr inbounds %class.HMM, ptr %21, i32 0, i32 4
  %37 = load i32, ptr %15, align 4, !tbaa !11
  %38 = sext i32 %37 to i64
  %39 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %36, i64 noundef %38)
  store double %35, ptr %39, align 8, !tbaa !9
  br label %40

40:                                               ; preds = %28
  %41 = load i32, ptr %15, align 4, !tbaa !11
  %42 = add nsw i32 %41, 1
  store i32 %42, ptr %15, align 4, !tbaa !11
  br label %22, !llvm.loop !27

43:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #2
  store i32 0, ptr %16, align 4, !tbaa !11
  br label %44

44:                                               ; preds = %83, %43
  %45 = load i32, ptr %16, align 4, !tbaa !11
  %46 = getelementptr inbounds %class.HMM, ptr %21, i32 0, i32 2
  %47 = load i32, ptr %46, align 8, !tbaa !13
  %48 = icmp slt i32 %45, %47
  br i1 %48, label %50, label %49

49:                                               ; preds = %44
  store i32 5, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #2
  br label %86

50:                                               ; preds = %44
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #2
  store i32 0, ptr %18, align 4, !tbaa !11
  br label %51

51:                                               ; preds = %79, %50
  %52 = load i32, ptr %18, align 4, !tbaa !11
  %53 = getelementptr inbounds %class.HMM, ptr %21, i32 0, i32 2
  %54 = load i32, ptr %53, align 8, !tbaa !13
  %55 = icmp slt i32 %52, %54
  br i1 %55, label %57, label %56

56:                                               ; preds = %51
  store i32 8, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #2
  br label %82

57:                                               ; preds = %51
  %58 = load ptr, ptr %11, align 8, !tbaa !5
  %59 = load i32, ptr %16, align 4, !tbaa !11
  %60 = sext i32 %59 to i64
  %61 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IdSaIdEESaIS1_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %58, i64 noundef %60)
  %62 = load i32, ptr %18, align 4, !tbaa !11
  %63 = sext i32 %62 to i64
  %64 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %61, i64 noundef %63)
  %65 = load double, ptr %64, align 8, !tbaa !9
  %66 = load ptr, ptr %10, align 8, !tbaa !5
  %67 = load i32, ptr %16, align 4, !tbaa !11
  %68 = sext i32 %67 to i64
  %69 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %66, i64 noundef %68)
  %70 = load double, ptr %69, align 8, !tbaa !9
  %71 = fdiv double %65, %70
  %72 = getelementptr inbounds %class.HMM, ptr %21, i32 0, i32 5
  %73 = load i32, ptr %16, align 4, !tbaa !11
  %74 = sext i32 %73 to i64
  %75 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IdSaIdEESaIS1_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %72, i64 noundef %74)
  %76 = load i32, ptr %18, align 4, !tbaa !11
  %77 = sext i32 %76 to i64
  %78 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %75, i64 noundef %77)
  store double %71, ptr %78, align 8, !tbaa !9
  br label %79

79:                                               ; preds = %57
  %80 = load i32, ptr %18, align 4, !tbaa !11
  %81 = add nsw i32 %80, 1
  store i32 %81, ptr %18, align 4, !tbaa !11
  br label %51, !llvm.loop !29

82:                                               ; preds = %56
  br label %83

83:                                               ; preds = %82
  %84 = load i32, ptr %16, align 4, !tbaa !11
  %85 = add nsw i32 %84, 1
  store i32 %85, ptr %16, align 4, !tbaa !11
  br label %44, !llvm.loop !30

86:                                               ; preds = %49
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #2
  store i32 0, ptr %19, align 4, !tbaa !11
  br label %87

87:                                               ; preds = %126, %86
  %88 = load i32, ptr %19, align 4, !tbaa !11
  %89 = getelementptr inbounds %class.HMM, ptr %21, i32 0, i32 2
  %90 = load i32, ptr %89, align 8, !tbaa !13
  %91 = icmp slt i32 %88, %90
  br i1 %91, label %93, label %92

92:                                               ; preds = %87
  store i32 11, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #2
  br label %129

93:                                               ; preds = %87
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #2
  store i32 0, ptr %20, align 4, !tbaa !11
  br label %94

94:                                               ; preds = %122, %93
  %95 = load i32, ptr %20, align 4, !tbaa !11
  %96 = getelementptr inbounds %class.HMM, ptr %21, i32 0, i32 3
  %97 = load i32, ptr %96, align 4, !tbaa !31
  %98 = icmp slt i32 %95, %97
  br i1 %98, label %100, label %99

99:                                               ; preds = %94
  store i32 14, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #2
  br label %125

100:                                              ; preds = %94
  %101 = load ptr, ptr %12, align 8, !tbaa !5
  %102 = load i32, ptr %19, align 4, !tbaa !11
  %103 = sext i32 %102 to i64
  %104 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IdSaIdEESaIS1_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %101, i64 noundef %103)
  %105 = load i32, ptr %20, align 4, !tbaa !11
  %106 = sext i32 %105 to i64
  %107 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %104, i64 noundef %106)
  %108 = load double, ptr %107, align 8, !tbaa !9
  %109 = load ptr, ptr %13, align 8, !tbaa !5
  %110 = load i32, ptr %19, align 4, !tbaa !11
  %111 = sext i32 %110 to i64
  %112 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %109, i64 noundef %111)
  %113 = load double, ptr %112, align 8, !tbaa !9
  %114 = fdiv double %108, %113
  %115 = getelementptr inbounds %class.HMM, ptr %21, i32 0, i32 6
  %116 = load i32, ptr %19, align 4, !tbaa !11
  %117 = sext i32 %116 to i64
  %118 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IdSaIdEESaIS1_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %115, i64 noundef %117)
  %119 = load i32, ptr %20, align 4, !tbaa !11
  %120 = sext i32 %119 to i64
  %121 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %118, i64 noundef %120)
  store double %114, ptr %121, align 8, !tbaa !9
  br label %122

122:                                              ; preds = %100
  %123 = load i32, ptr %20, align 4, !tbaa !11
  %124 = add nsw i32 %123, 1
  store i32 %124, ptr %20, align 4, !tbaa !11
  br label %94, !llvm.loop !32

125:                                              ; preds = %99
  br label %126

126:                                              ; preds = %125
  %127 = load i32, ptr %19, align 4, !tbaa !11
  %128 = add nsw i32 %127, 1
  store i32 %128, ptr %19, align 4, !tbaa !11
  br label %87, !llvm.loop !33

129:                                              ; preds = %92
  ret void
}

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 40}
!14 = !{!"_ZTS3HMM", !15, i64 0, !16, i64 8, !12, i64 40, !12, i64 44, !19, i64 48, !23, i64 72, !23, i64 96}
!15 = !{!"bool", !7, i64 0}
!16 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !17, i64 0, !18, i64 8, !7, i64 16}
!17 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!18 = !{!"long", !7, i64 0}
!19 = !{!"_ZTSSt6vectorIdSaIdEE", !20, i64 0}
!20 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!23 = !{!"_ZTSSt6vectorIS_IdSaIdEESaIS1_EE", !24, i64 0}
!24 = !{!"_ZTSSt12_Vector_baseISt6vectorIdSaIdEESaIS2_EE", !25, i64 0}
!25 = !{!"_ZTSNSt12_Vector_baseISt6vectorIdSaIdEESaIS2_EE12_Vector_implE", !26, i64 0}
!26 = !{!"_ZTSNSt12_Vector_baseISt6vectorIdSaIdEESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!27 = distinct !{!27, !28}
!28 = !{!"llvm.loop.mustprogress"}
!29 = distinct !{!29, !28}
!30 = distinct !{!30, !28}
!31 = !{!14, !12, i64 44}
!32 = distinct !{!32, !28}
!33 = distinct !{!33, !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"

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3HMM12apply_updateEPSt6vectorIdSaIdEES3_PS0_IS2_SaIS2_EES6_S3_d(ptr noundef nonnull align 8 dereferenceable(120) %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, double noundef %6) local_unnamed_addr #0 align 2 {
  %8 = getelementptr inbounds i8, ptr %0, i64 40
  %9 = load i32, ptr %8, align 8, !tbaa !5
  %10 = icmp sgt i32 %9, 0
  br i1 %10, label %.lr.ph, label %._crit_edge43

.lr.ph:                                           ; preds = %7
  %11 = getelementptr inbounds i8, ptr %0, i64 48
  br label %14

.preheader34:                                     ; preds = %14
  %12 = icmp sgt i32 %19, 0
  br i1 %12, label %.preheader33.preheader, label %._crit_edge43

.preheader33.preheader:                           ; preds = %.preheader34
  %13 = getelementptr inbounds i8, ptr %0, i64 72
  br label %.preheader33

14:                                               ; preds = %.lr.ph, %14
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %14 ]
  %15 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %indvars.iv)
  %16 = load double, ptr %15, align 8, !tbaa !23
  %17 = fdiv double %16, %6
  %18 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %indvars.iv)
  store double %17, ptr %18, align 8, !tbaa !23
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %19 = load i32, ptr %8, align 8, !tbaa !5
  %20 = sext i32 %19 to i64
  %21 = icmp slt i64 %indvars.iv.next, %20
  br i1 %21, label %14, label %.preheader34, !llvm.loop !25

.preheader33:                                     ; preds = %.preheader33.preheader, %._crit_edge
  %22 = phi i32 [ %19, %.preheader33.preheader ], [ %29, %._crit_edge ]
  %indvars.iv50 = phi i64 [ 0, %.preheader33.preheader ], [ %indvars.iv.next51, %._crit_edge ]
  %23 = icmp sgt i32 %22, 0
  br i1 %23, label %.lr.ph37, label %.preheader33.._crit_edge_crit_edge

.preheader33.._crit_edge_crit_edge:               ; preds = %.preheader33
  %.pre59 = sext i32 %22 to i64
  br label %._crit_edge

.preheader32:                                     ; preds = %._crit_edge
  %24 = icmp sgt i32 %29, 0
  br i1 %24, label %.preheader.lr.ph, label %._crit_edge43

.preheader.lr.ph:                                 ; preds = %.preheader32
  %25 = getelementptr inbounds i8, ptr %0, i64 44
  %26 = getelementptr inbounds i8, ptr %0, i64 96
  %27 = load i32, ptr %25, align 4, !tbaa !27
  %28 = icmp sgt i32 %27, 0
  br i1 %28, label %.preheader, label %._crit_edge43

._crit_edge:                                      ; preds = %.lr.ph37, %.preheader33.._crit_edge_crit_edge
  %.pre-phi = phi i64 [ %.pre59, %.preheader33.._crit_edge_crit_edge ], [ %40, %.lr.ph37 ]
  %29 = phi i32 [ %22, %.preheader33.._crit_edge_crit_edge ], [ %39, %.lr.ph37 ]
  %indvars.iv.next51 = add nuw nsw i64 %indvars.iv50, 1
  %30 = icmp slt i64 %indvars.iv.next51, %.pre-phi
  br i1 %30, label %.preheader33, label %.preheader32, !llvm.loop !28

.lr.ph37:                                         ; preds = %.preheader33, %.lr.ph37
  %indvars.iv47 = phi i64 [ %indvars.iv.next48, %.lr.ph37 ], [ 0, %.preheader33 ]
  %31 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IdSaIdEESaIS1_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv50)
  %32 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %31, i64 noundef %indvars.iv47)
  %33 = load double, ptr %32, align 8, !tbaa !23
  %34 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv50)
  %35 = load double, ptr %34, align 8, !tbaa !23
  %36 = fdiv double %33, %35
  %37 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IdSaIdEESaIS1_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %indvars.iv50)
  %38 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %37, i64 noundef %indvars.iv47)
  store double %36, ptr %38, align 8, !tbaa !23
  %indvars.iv.next48 = add nuw nsw i64 %indvars.iv47, 1
  %39 = load i32, ptr %8, align 8, !tbaa !5
  %40 = sext i32 %39 to i64
  %41 = icmp slt i64 %indvars.iv.next48, %40
  br i1 %41, label %.lr.ph37, label %._crit_edge, !llvm.loop !30

.preheader:                                       ; preds = %.preheader.lr.ph, %._crit_edge41
  %42 = phi i32 [ %45, %._crit_edge41 ], [ %29, %.preheader.lr.ph ]
  %43 = phi i32 [ %46, %._crit_edge41 ], [ %27, %.preheader.lr.ph ]
  %indvars.iv56 = phi i64 [ %indvars.iv.next57, %._crit_edge41 ], [ 0, %.preheader.lr.ph ]
  %44 = icmp sgt i32 %43, 0
  br i1 %44, label %.lr.ph40, label %._crit_edge41

._crit_edge43:                                    ; preds = %._crit_edge41, %7, %.preheader34, %.preheader.lr.ph, %.preheader32
  ret void

._crit_edge41.loopexit:                           ; preds = %.lr.ph40
  %.pre = load i32, ptr %8, align 8, !tbaa !5
  br label %._crit_edge41

._crit_edge41:                                    ; preds = %._crit_edge41.loopexit, %.preheader
  %45 = phi i32 [ %.pre, %._crit_edge41.loopexit ], [ %42, %.preheader ]
  %46 = phi i32 [ %57, %._crit_edge41.loopexit ], [ %43, %.preheader ]
  %indvars.iv.next57 = add nuw nsw i64 %indvars.iv56, 1
  %47 = sext i32 %45 to i64
  %48 = icmp slt i64 %indvars.iv.next57, %47
  br i1 %48, label %.preheader, label %._crit_edge43, !llvm.loop !31

.lr.ph40:                                         ; preds = %.preheader, %.lr.ph40
  %indvars.iv53 = phi i64 [ %indvars.iv.next54, %.lr.ph40 ], [ 0, %.preheader ]
  %49 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IdSaIdEESaIS1_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %indvars.iv56)
  %50 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %49, i64 noundef %indvars.iv53)
  %51 = load double, ptr %50, align 8, !tbaa !23
  %52 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %indvars.iv56)
  %53 = load double, ptr %52, align 8, !tbaa !23
  %54 = fdiv double %51, %53
  %55 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IdSaIdEESaIS1_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %26, i64 noundef %indvars.iv56)
  %56 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %55, i64 noundef %indvars.iv53)
  store double %54, ptr %56, align 8, !tbaa !23
  %indvars.iv.next54 = add nuw nsw i64 %indvars.iv53, 1
  %57 = load i32, ptr %25, align 4, !tbaa !27
  %58 = sext i32 %57 to i64
  %59 = icmp slt i64 %indvars.iv.next54, %58
  br i1 %59, label %.lr.ph40, label %._crit_edge41.loopexit, !llvm.loop !32
}

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

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

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }

!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, !14, i64 40}
!6 = !{!"_ZTS3HMM", !7, i64 0, !10, i64 8, !14, i64 40, !14, i64 44, !15, i64 48, !19, i64 72, !19, i64 96}
!7 = !{!"bool", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !11, i64 0, !13, i64 8, !8, i64 16}
!11 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !12, i64 0}
!12 = !{!"any pointer", !8, i64 0}
!13 = !{!"long", !8, i64 0}
!14 = !{!"int", !8, i64 0}
!15 = !{!"_ZTSSt6vectorIdSaIdEE", !16, i64 0}
!16 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !12, i64 0, !12, i64 8, !12, i64 16}
!19 = !{!"_ZTSSt6vectorIS_IdSaIdEESaIS1_EE", !20, i64 0}
!20 = !{!"_ZTSSt12_Vector_baseISt6vectorIdSaIdEESaIS2_EE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseISt6vectorIdSaIdEESaIS2_EE12_Vector_implE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseISt6vectorIdSaIdEESaIS2_EE17_Vector_impl_dataE", !12, i64 0, !12, i64 8, !12, i64 16}
!23 = !{!24, !24, i64 0}
!24 = !{!"double", !8, i64 0}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}
!27 = !{!6, !14, i64 44}
!28 = distinct !{!28, !26, !29}
!29 = !{!"llvm.loop.unswitch.partial.disable"}
!30 = distinct !{!30, !26}
!31 = distinct !{!31, !26, !29}
!32 = distinct !{!32, !26}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,SCCPPass,SROAPass,SimpleLoopUnswitchPass,SimplifyCFGPass,TailCallElimPass