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

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

@.str.7 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [18 x i8], align 1

; 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
define dso_local void @_ZNK3HMM8dump_HMMEP8_IO_FILEb(ptr noundef nonnull align 8 dereferenceable(120) %0, ptr noundef %1, i1 noundef zeroext %2) #1 align 2 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i8, align 1
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  %9 = zext i1 %2 to i8
  store i8 %9, ptr %6, align 1, !tbaa !9
  %10 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #3
  %11 = load i8, ptr %6, align 1, !tbaa !9, !range !11, !noundef !12
  %12 = trunc i8 %11 to i1
  br i1 %12, label %13, label %20

13:                                               ; preds = %3
  %14 = load ptr, ptr %5, align 8, !tbaa !5
  %15 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %14, ptr noundef @.str.7) #3
  %16 = load ptr, ptr %5, align 8, !tbaa !5
  %17 = getelementptr inbounds %class.HMM, ptr %10, i32 0, i32 1
  %18 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %17) #3
  %19 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %16, ptr noundef @.str.8, ptr noundef %18) #3
  br label %20

20:                                               ; preds = %13, %3
  %21 = load ptr, ptr %5, align 8, !tbaa !5
  %22 = getelementptr inbounds %class.HMM, ptr %10, i32 0, i32 2
  %23 = load i32, ptr %22, align 8, !tbaa !13
  %24 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %21, ptr noundef @.str.9, i32 noundef %23) #3
  store i32 0, ptr %7, align 4, !tbaa !27
  br label %25

25:                                               ; preds = %39, %20
  %26 = load i32, ptr %7, align 4, !tbaa !27
  %27 = getelementptr inbounds %class.HMM, ptr %10, i32 0, i32 2
  %28 = load i32, ptr %27, align 8, !tbaa !13
  %29 = sub nsw i32 %28, 1
  %30 = icmp slt i32 %26, %29
  br i1 %30, label %31, label %42

31:                                               ; preds = %25
  %32 = load ptr, ptr %5, align 8, !tbaa !5
  %33 = getelementptr inbounds %class.HMM, ptr %10, i32 0, i32 4
  %34 = load i32, ptr %7, align 4, !tbaa !27
  %35 = sext i32 %34 to i64
  %36 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %33, i64 noundef %35) #3
  %37 = load double, ptr %36, align 8, !tbaa !28
  %38 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %32, ptr noundef @.str.10, double noundef %37) #3
  br label %39

39:                                               ; preds = %31
  %40 = load i32, ptr %7, align 4, !tbaa !27
  %41 = add nsw i32 %40, 1
  store i32 %41, ptr %7, align 4, !tbaa !27
  br label %25, !llvm.loop !30

42:                                               ; preds = %25
  %43 = load ptr, ptr %5, align 8, !tbaa !5
  %44 = getelementptr inbounds %class.HMM, ptr %10, i32 0, i32 4
  %45 = getelementptr inbounds %class.HMM, ptr %10, i32 0, i32 2
  %46 = load i32, ptr %45, align 8, !tbaa !13
  %47 = sub nsw i32 %46, 1
  %48 = sext i32 %47 to i64
  %49 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %44, i64 noundef %48) #3
  %50 = load double, ptr %49, align 8, !tbaa !28
  %51 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %43, ptr noundef @.str.11, double noundef %50) #3
  %52 = load ptr, ptr %5, align 8, !tbaa !5
  %53 = getelementptr inbounds %class.HMM, ptr %10, i32 0, i32 2
  %54 = load i32, ptr %53, align 8, !tbaa !13
  %55 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %52, ptr noundef @.str.12, i32 noundef %54) #3
  store i32 0, ptr %7, align 4, !tbaa !27
  br label %56

56:                                               ; preds = %95, %42
  %57 = load i32, ptr %7, align 4, !tbaa !27
  %58 = getelementptr inbounds %class.HMM, ptr %10, i32 0, i32 2
  %59 = load i32, ptr %58, align 8, !tbaa !13
  %60 = icmp slt i32 %57, %59
  br i1 %60, label %61, label %98

61:                                               ; preds = %56
  store i32 0, ptr %8, align 4, !tbaa !27
  br label %62

62:                                               ; preds = %79, %61
  %63 = load i32, ptr %8, align 4, !tbaa !27
  %64 = getelementptr inbounds %class.HMM, ptr %10, i32 0, i32 2
  %65 = load i32, ptr %64, align 8, !tbaa !13
  %66 = sub nsw i32 %65, 1
  %67 = icmp slt i32 %63, %66
  br i1 %67, label %68, label %82

68:                                               ; preds = %62
  %69 = load ptr, ptr %5, align 8, !tbaa !5
  %70 = getelementptr inbounds %class.HMM, ptr %10, i32 0, i32 5
  %71 = load i32, ptr %7, align 4, !tbaa !27
  %72 = sext i32 %71 to i64
  %73 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %70, i64 noundef %72) #3
  %74 = load i32, ptr %8, align 4, !tbaa !27
  %75 = sext i32 %74 to i64
  %76 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %73, i64 noundef %75) #3
  %77 = load double, ptr %76, align 8, !tbaa !28
  %78 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %69, ptr noundef @.str.10, double noundef %77) #3
  br label %79

79:                                               ; preds = %68
  %80 = load i32, ptr %8, align 4, !tbaa !27
  %81 = add nsw i32 %80, 1
  store i32 %81, ptr %8, align 4, !tbaa !27
  br label %62, !llvm.loop !32

82:                                               ; preds = %62
  %83 = load ptr, ptr %5, align 8, !tbaa !5
  %84 = getelementptr inbounds %class.HMM, ptr %10, i32 0, i32 5
  %85 = load i32, ptr %7, align 4, !tbaa !27
  %86 = sext i32 %85 to i64
  %87 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %84, i64 noundef %86) #3
  %88 = getelementptr inbounds %class.HMM, ptr %10, i32 0, i32 2
  %89 = load i32, ptr %88, align 8, !tbaa !13
  %90 = sub nsw i32 %89, 1
  %91 = sext i32 %90 to i64
  %92 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %87, i64 noundef %91) #3
  %93 = load double, ptr %92, align 8, !tbaa !28
  %94 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %83, ptr noundef @.str.11, double noundef %93) #3
  br label %95

95:                                               ; preds = %82
  %96 = load i32, ptr %7, align 4, !tbaa !27
  %97 = add nsw i32 %96, 1
  store i32 %97, ptr %7, align 4, !tbaa !27
  br label %56, !llvm.loop !33

98:                                               ; preds = %56
  %99 = load ptr, ptr %5, align 8, !tbaa !5
  %100 = getelementptr inbounds %class.HMM, ptr %10, i32 0, i32 3
  %101 = load i32, ptr %100, align 4, !tbaa !34
  %102 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %99, ptr noundef @.str.13, i32 noundef %101) #3
  store i32 0, ptr %7, align 4, !tbaa !27
  br label %103

103:                                              ; preds = %142, %98
  %104 = load i32, ptr %7, align 4, !tbaa !27
  %105 = getelementptr inbounds %class.HMM, ptr %10, i32 0, i32 3
  %106 = load i32, ptr %105, align 4, !tbaa !34
  %107 = icmp slt i32 %104, %106
  br i1 %107, label %108, label %145

108:                                              ; preds = %103
  store i32 0, ptr %8, align 4, !tbaa !27
  br label %109

109:                                              ; preds = %126, %108
  %110 = load i32, ptr %8, align 4, !tbaa !27
  %111 = getelementptr inbounds %class.HMM, ptr %10, i32 0, i32 2
  %112 = load i32, ptr %111, align 8, !tbaa !13
  %113 = sub nsw i32 %112, 1
  %114 = icmp slt i32 %110, %113
  br i1 %114, label %115, label %129

115:                                              ; preds = %109
  %116 = load ptr, ptr %5, align 8, !tbaa !5
  %117 = getelementptr inbounds %class.HMM, ptr %10, i32 0, i32 6
  %118 = load i32, ptr %7, align 4, !tbaa !27
  %119 = sext i32 %118 to i64
  %120 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %117, i64 noundef %119) #3
  %121 = load i32, ptr %8, align 4, !tbaa !27
  %122 = sext i32 %121 to i64
  %123 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %120, i64 noundef %122) #3
  %124 = load double, ptr %123, align 8, !tbaa !28
  %125 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %116, ptr noundef @.str.10, double noundef %124) #3
  br label %126

126:                                              ; preds = %115
  %127 = load i32, ptr %8, align 4, !tbaa !27
  %128 = add nsw i32 %127, 1
  store i32 %128, ptr %8, align 4, !tbaa !27
  br label %109, !llvm.loop !35

129:                                              ; preds = %109
  %130 = load ptr, ptr %5, align 8, !tbaa !5
  %131 = getelementptr inbounds %class.HMM, ptr %10, i32 0, i32 6
  %132 = load i32, ptr %7, align 4, !tbaa !27
  %133 = sext i32 %132 to i64
  %134 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %131, i64 noundef %133) #3
  %135 = getelementptr inbounds %class.HMM, ptr %10, i32 0, i32 2
  %136 = load i32, ptr %135, align 8, !tbaa !13
  %137 = sub nsw i32 %136, 1
  %138 = sext i32 %137 to i64
  %139 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %134, i64 noundef %138) #3
  %140 = load double, ptr %139, align 8, !tbaa !28
  %141 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %130, ptr noundef @.str.11, double noundef %140) #3
  br label %142

142:                                              ; preds = %129
  %143 = load i32, ptr %7, align 4, !tbaa !27
  %144 = add nsw i32 %143, 1
  store i32 %144, ptr %7, align 4, !tbaa !27
  br label %103, !llvm.loop !36

145:                                              ; preds = %103
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #3
  ret void
}

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #2

; Function Attrs: mustprogress nounwind uwtable
declare noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32)) #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(24) ptr @_ZNKSt6vectorIS_IdSaIdEESaIS1_EEixEm(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 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 = { 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 #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 = !{!"bool", !7, i64 0}
!11 = !{i8 0, i8 2}
!12 = !{}
!13 = !{!14, !18, i64 40}
!14 = !{!"_ZTS3HMM", !10, i64 0, !15, i64 8, !18, i64 40, !18, i64 44, !19, i64 48, !23, i64 72, !23, i64 96}
!15 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !16, i64 0, !17, i64 8, !7, i64 16}
!16 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!17 = !{!"long", !7, i64 0}
!18 = !{!"int", !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 = !{!18, !18, i64 0}
!28 = !{!29, !29, i64 0}
!29 = !{!"double", !7, i64 0}
!30 = distinct !{!30, !31}
!31 = !{!"llvm.loop.mustprogress"}
!32 = distinct !{!32, !31}
!33 = distinct !{!33, !31}
!34 = !{!14, !18, i64 44}
!35 = distinct !{!35, !31}
!36 = distinct !{!36, !31}


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

@.str.7 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [18 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZNK3HMM8dump_HMMEP8_IO_FILEb(ptr noundef nonnull align 8 dereferenceable(120) %0, ptr nocapture noundef %1, i1 noundef zeroext %2) local_unnamed_addr #0 align 2 {
  br i1 %2, label %4, label %9

4:                                                ; preds = %3
  %5 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %1, ptr noundef nonnull @.str.7) #2
  %6 = getelementptr inbounds i8, ptr %0, i64 8
  %7 = tail call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %6) #2
  %8 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %1, ptr noundef nonnull @.str.8, ptr noundef %7) #2
  br label %9

9:                                                ; preds = %4, %3
  %10 = getelementptr inbounds i8, ptr %0, i64 40
  %11 = load i32, ptr %10, align 8, !tbaa !5
  %12 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %1, ptr noundef nonnull @.str.9, i32 noundef %11) #2
  %13 = load i32, ptr %10, align 8, !tbaa !5
  %14 = icmp sgt i32 %13, 1
  br i1 %14, label %.lr.ph, label %.._crit_edge_crit_edge

.._crit_edge_crit_edge:                           ; preds = %9
  %15 = add nsw i32 %13, -1
  %.pre = sext i32 %15 to i64
  br label %._crit_edge

.lr.ph:                                           ; preds = %9
  %16 = getelementptr inbounds i8, ptr %0, i64 48
  br label %17

17:                                               ; preds = %.lr.ph, %17
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %17 ]
  %18 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %16, i64 noundef %indvars.iv) #2
  %19 = load double, ptr %18, align 8, !tbaa !23
  %20 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %1, ptr noundef nonnull @.str.10, double noundef %19) #2
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %21 = load i32, ptr %10, align 8, !tbaa !5
  %22 = add nsw i32 %21, -1
  %23 = sext i32 %22 to i64
  %24 = icmp slt i64 %indvars.iv.next, %23
  br i1 %24, label %17, label %._crit_edge, !llvm.loop !25

._crit_edge:                                      ; preds = %17, %.._crit_edge_crit_edge
  %.pre-phi = phi i64 [ %.pre, %.._crit_edge_crit_edge ], [ %23, %17 ]
  %25 = getelementptr inbounds i8, ptr %0, i64 48
  %26 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %25, i64 noundef %.pre-phi) #2
  %27 = load double, ptr %26, align 8, !tbaa !23
  %28 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %1, ptr noundef nonnull @.str.11, double noundef %27) #2
  %29 = load i32, ptr %10, align 8, !tbaa !5
  %30 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %1, ptr noundef nonnull @.str.12, i32 noundef %29) #2
  %31 = load i32, ptr %10, align 8, !tbaa !5
  %32 = icmp sgt i32 %31, 0
  br i1 %32, label %.preheader32.lr.ph, label %._crit_edge38

.preheader32.lr.ph:                               ; preds = %._crit_edge
  %33 = getelementptr inbounds i8, ptr %0, i64 72
  br label %.preheader32

.preheader32:                                     ; preds = %.preheader32.lr.ph, %._crit_edge36
  %34 = phi i32 [ %31, %.preheader32.lr.ph ], [ %51, %._crit_edge36 ]
  %indvars.iv49 = phi i64 [ 0, %.preheader32.lr.ph ], [ %indvars.iv.next50, %._crit_edge36 ]
  %35 = icmp sgt i32 %34, 1
  br i1 %35, label %.lr.ph35, label %._crit_edge36

.lr.ph35:                                         ; preds = %.preheader32, %.lr.ph35
  %indvars.iv46 = phi i64 [ %indvars.iv.next47, %.lr.ph35 ], [ 0, %.preheader32 ]
  %36 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %33, i64 noundef %indvars.iv49) #2
  %37 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %36, i64 noundef %indvars.iv46) #2
  %38 = load double, ptr %37, align 8, !tbaa !23
  %39 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %1, ptr noundef nonnull @.str.10, double noundef %38) #2
  %indvars.iv.next47 = add nuw nsw i64 %indvars.iv46, 1
  %40 = load i32, ptr %10, align 8, !tbaa !5
  %41 = add nsw i32 %40, -1
  %42 = sext i32 %41 to i64
  %43 = icmp slt i64 %indvars.iv.next47, %42
  br i1 %43, label %.lr.ph35, label %._crit_edge36, !llvm.loop !27

._crit_edge36:                                    ; preds = %.lr.ph35, %.preheader32
  %44 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %33, i64 noundef %indvars.iv49) #2
  %45 = load i32, ptr %10, align 8, !tbaa !5
  %46 = add nsw i32 %45, -1
  %47 = sext i32 %46 to i64
  %48 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %44, i64 noundef %47) #2
  %49 = load double, ptr %48, align 8, !tbaa !23
  %50 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %1, ptr noundef nonnull @.str.11, double noundef %49) #2
  %indvars.iv.next50 = add nuw nsw i64 %indvars.iv49, 1
  %51 = load i32, ptr %10, align 8, !tbaa !5
  %52 = sext i32 %51 to i64
  %53 = icmp slt i64 %indvars.iv.next50, %52
  br i1 %53, label %.preheader32, label %._crit_edge38, !llvm.loop !28

._crit_edge38:                                    ; preds = %._crit_edge36, %._crit_edge
  %54 = getelementptr inbounds i8, ptr %0, i64 44
  %55 = load i32, ptr %54, align 4, !tbaa !29
  %56 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %1, ptr noundef nonnull @.str.13, i32 noundef %55) #2
  %57 = load i32, ptr %54, align 4, !tbaa !29
  %58 = icmp sgt i32 %57, 0
  br i1 %58, label %.preheader.lr.ph, label %._crit_edge43

.preheader.lr.ph:                                 ; preds = %._crit_edge38
  %59 = getelementptr inbounds i8, ptr %0, i64 96
  br label %.preheader

.preheader:                                       ; preds = %.preheader.lr.ph, %._crit_edge41
  %indvars.iv55 = phi i64 [ 0, %.preheader.lr.ph ], [ %indvars.iv.next56, %._crit_edge41 ]
  %60 = load i32, ptr %10, align 8, !tbaa !5
  %61 = icmp sgt i32 %60, 1
  br i1 %61, label %.lr.ph40, label %._crit_edge41

.lr.ph40:                                         ; preds = %.preheader, %.lr.ph40
  %indvars.iv52 = phi i64 [ %indvars.iv.next53, %.lr.ph40 ], [ 0, %.preheader ]
  %62 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %59, i64 noundef %indvars.iv55) #2
  %63 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %62, i64 noundef %indvars.iv52) #2
  %64 = load double, ptr %63, align 8, !tbaa !23
  %65 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %1, ptr noundef nonnull @.str.10, double noundef %64) #2
  %indvars.iv.next53 = add nuw nsw i64 %indvars.iv52, 1
  %66 = load i32, ptr %10, align 8, !tbaa !5
  %67 = add nsw i32 %66, -1
  %68 = sext i32 %67 to i64
  %69 = icmp slt i64 %indvars.iv.next53, %68
  br i1 %69, label %.lr.ph40, label %._crit_edge41, !llvm.loop !30

._crit_edge41:                                    ; preds = %.lr.ph40, %.preheader
  %70 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %59, i64 noundef %indvars.iv55) #2
  %71 = load i32, ptr %10, align 8, !tbaa !5
  %72 = add nsw i32 %71, -1
  %73 = sext i32 %72 to i64
  %74 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %70, i64 noundef %73) #2
  %75 = load double, ptr %74, align 8, !tbaa !23
  %76 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %1, ptr noundef nonnull @.str.11, double noundef %75) #2
  %indvars.iv.next56 = add nuw nsw i64 %indvars.iv55, 1
  %77 = load i32, ptr %54, align 4, !tbaa !29
  %78 = sext i32 %77 to i64
  %79 = icmp slt i64 %indvars.iv.next56, %78
  br i1 %79, label %.preheader, label %._crit_edge43, !llvm.loop !31

._crit_edge43:                                    ; preds = %._crit_edge41, %._crit_edge38
  ret void
}

; Function Attrs: nofree nounwind
declare noundef i32 @fprintf(ptr nocapture noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #0 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 #0 align 2

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

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 = { nofree 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 #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, !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 = distinct !{!27, !26}
!28 = distinct !{!28, !26}
!29 = !{!6, !14, i64 44}
!30 = distinct !{!30, !26}
!31 = distinct !{!31, !26}


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