; LLVM IR from gulrak/filesystem :: test/filesystem_test.ll (ZN5Catch15ConsoleReporter12sectionEndedERKNS_12SectionStatsE)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon.0 }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon.0 = type { i64, [8 x i8] }
%"struct.Catch::Colour" = type { i8 }
%"struct.Catch::ConsoleReporter" = type <{ %"struct.Catch::StreamingReporterBase.base.361", [6 x i8], %"class.std::unique_ptr.362", i8, [7 x i8] }>
%"struct.Catch::StreamingReporterBase.base.361" = type <{ %"struct.Catch::IStreamingReporter", %"class.std::shared_ptr", ptr, %"struct.Catch::LazyStat", %"struct.Catch::LazyStat.337", %"struct.Catch::LazyStat.340", %"class.std::vector.343", %"struct.Catch::ReporterPreferences" }>
%"struct.Catch::IStreamingReporter" = type { ptr }
%"class.std::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"struct.Catch::LazyStat" = type <{ %"class.Catch::Option.336", i8, [7 x i8] }>
%"class.Catch::Option.336" = type { ptr, [32 x i8] }
%"struct.Catch::LazyStat.337" = type <{ %"class.Catch::Option.338", i8, [7 x i8] }>
%"class.Catch::Option.338" = type { ptr, [48 x i8] }
%"struct.Catch::LazyStat.340" = type <{ %"class.Catch::Option.341", i8, [7 x i8] }>
%"class.Catch::Option.341" = type { ptr, [168 x i8] }
%"class.std::vector.343" = type { %"struct.std::_Vector_base.344" }
%"struct.std::_Vector_base.344" = type { %"struct.std::_Vector_base<Catch::SectionInfo, std::allocator<Catch::SectionInfo>>::_Vector_impl" }
%"struct.std::_Vector_base<Catch::SectionInfo, std::allocator<Catch::SectionInfo>>::_Vector_impl" = type { %"struct.std::_Vector_base<Catch::SectionInfo, std::allocator<Catch::SectionInfo>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Catch::SectionInfo, std::allocator<Catch::SectionInfo>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.Catch::ReporterPreferences" = type { i8, i8 }
%"class.std::unique_ptr.362" = type { %"struct.std::__uniq_ptr_data.363" }
%"struct.std::__uniq_ptr_data.363" = type { %"class.std::__uniq_ptr_impl.364" }
%"class.std::__uniq_ptr_impl.364" = type { %"class.std::tuple.365" }
%"class.std::tuple.365" = type { %"struct.std::_Tuple_impl.366" }
%"struct.std::_Tuple_impl.366" = type { %"struct.std::_Head_base.369" }
%"struct.std::_Head_base.369" = type { ptr }
%"struct.Catch::SectionStats" = type <{ ptr, %"struct.Catch::SectionInfo", %"struct.Catch::Counts", double, i8, [7 x i8] }>
%"struct.Catch::SectionInfo" = type { %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"struct.Catch::SourceLineInfo" }
%"struct.Catch::SourceLineInfo" = type { ptr, i64 }
%"struct.Catch::Counts" = type { i64, i64, i64 }
%"struct.Catch::StreamingReporterBase.360" = type <{ %"struct.Catch::IStreamingReporter", %"class.std::shared_ptr", ptr, %"struct.Catch::LazyStat", %"struct.Catch::LazyStat.337", %"struct.Catch::LazyStat.340", %"class.std::vector.343", %"struct.Catch::ReporterPreferences", [6 x i8] }>

@.str.249 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.254 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.255 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.256 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.257 = external hidden unnamed_addr constant [3 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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(32)) #2

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5Catch20getFormattedDurationB5cxx11Ed(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, double noundef) #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN5Catch18shouldShowDurationERKNS_7IConfigEd(ptr noundef nonnull align 8 dereferenceable(8), double noundef) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5Catch15ConsoleReporter9lazyPrintEv(ptr noundef nonnull align 8 dereferenceable(369)) #3 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5Catch12TablePrinter5closeEv(ptr noundef nonnull align 8 dereferenceable(413)) #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5Catch15ConsoleReporter12sectionEndedERKNS_12SectionStatsE(ptr noundef nonnull align 8 dereferenceable(369) %0, ptr noundef nonnull align 8 dereferenceable(121) %1) unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca %"struct.Catch::Colour", align 1
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca double, align 8
  %9 = alloca %"class.std::__cxx11::basic_string", align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %10 = load ptr, ptr %3, align 8
  %11 = getelementptr inbounds %"struct.Catch::ConsoleReporter", ptr %10, i32 0, i32 2
  %12 = call noundef ptr @_ZNKSt10unique_ptrIN5Catch12TablePrinterESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #4
  call void @_ZN5Catch12TablePrinter5closeEv(ptr noundef nonnull align 8 dereferenceable(413) %12)
  %13 = load ptr, ptr %4, align 8, !tbaa !5
  %14 = getelementptr inbounds %"struct.Catch::SectionStats", ptr %13, i32 0, i32 4
  %15 = load i8, ptr %14, align 8, !tbaa !9, !range !19, !noundef !20
  %16 = trunc i8 %15 to i1
  br i1 %16, label %17, label %49

17:                                               ; preds = %2
  call void @_ZN5Catch15ConsoleReporter9lazyPrintEv(ptr noundef nonnull align 8 dereferenceable(369) %10)
  call void @llvm.lifetime.start.p0(i64 1, ptr %5) #4
  call void @_ZN5Catch6ColourC1ENS0_4CodeE(ptr noundef nonnull align 1 dereferenceable(1) %5, i32 noundef 18)
  %18 = getelementptr inbounds %"struct.Catch::StreamingReporterBase.360", ptr %10, i32 0, i32 6
  %19 = call noundef i64 @_ZNKSt6vectorIN5Catch11SectionInfoESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %18) #4
  %20 = icmp ugt i64 %19, 1
  br i1 %20, label %21, label %30

21:                                               ; preds = %17
  %22 = getelementptr inbounds %"struct.Catch::StreamingReporterBase.360", ptr %10, i32 0, i32 2
  %23 = load ptr, ptr %22, align 8, !tbaa !21
  %24 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %23, ptr noundef @.str.254)
          to label %25 unwind label %26

25:                                               ; preds = %21
  br label %35

26:                                               ; preds = %46, %44, %39, %35, %30, %21
  %27 = landingpad { ptr, i32 }
          cleanup
  %28 = extractvalue { ptr, i32 } %27, 0
  store ptr %28, ptr %6, align 8
  %29 = extractvalue { ptr, i32 } %27, 1
  store i32 %29, ptr %7, align 4
  call void @_ZN5Catch6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %5) #4
  br label %84

30:                                               ; preds = %17
  %31 = getelementptr inbounds %"struct.Catch::StreamingReporterBase.360", ptr %10, i32 0, i32 2
  %32 = load ptr, ptr %31, align 8, !tbaa !21
  %33 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %32, ptr noundef @.str.255)
          to label %34 unwind label %26

34:                                               ; preds = %30
  br label %35

35:                                               ; preds = %34, %25
  %36 = getelementptr inbounds %"struct.Catch::StreamingReporterBase.360", ptr %10, i32 0, i32 2
  %37 = load ptr, ptr %36, align 8, !tbaa !21
  %38 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %37, ptr noundef @.str.256)
          to label %39 unwind label %26

39:                                               ; preds = %35
  %40 = load ptr, ptr %4, align 8, !tbaa !5
  %41 = getelementptr inbounds %"struct.Catch::SectionStats", ptr %40, i32 0, i32 1
  %42 = getelementptr inbounds %"struct.Catch::SectionInfo", ptr %41, i32 0, i32 0
  %43 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) %38, ptr noundef nonnull align 8 dereferenceable(32) %42)
          to label %44 unwind label %26

44:                                               ; preds = %39
  %45 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %43, ptr noundef @.str.257)
          to label %46 unwind label %26

46:                                               ; preds = %44
  %47 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %45, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %48 unwind label %26

48:                                               ; preds = %46
  call void @_ZN5Catch6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %5) #4
  br label %49

49:                                               ; preds = %48, %2
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  %50 = load ptr, ptr %4, align 8, !tbaa !5
  %51 = getelementptr inbounds %"struct.Catch::SectionStats", ptr %50, i32 0, i32 3
  %52 = load double, ptr %51, align 8, !tbaa !38
  store double %52, ptr %8, align 8, !tbaa !39
  %53 = getelementptr inbounds %"struct.Catch::StreamingReporterBase.360", ptr %10, i32 0, i32 1
  %54 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt19__shared_ptr_accessIKN5Catch7IConfigELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEdeEv(ptr noundef nonnull align 1 dereferenceable(1) %53) #4
  %55 = load double, ptr %8, align 8, !tbaa !39
  %56 = call noundef zeroext i1 @_ZN5Catch18shouldShowDurationERKNS_7IConfigEd(ptr noundef nonnull align 8 dereferenceable(8) %54, double noundef %55)
  br i1 %56, label %57, label %76

57:                                               ; preds = %49
  %58 = getelementptr inbounds %"struct.Catch::StreamingReporterBase.360", ptr %10, i32 0, i32 2
  %59 = load ptr, ptr %58, align 8, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 32, ptr %9) #4
  %60 = load double, ptr %8, align 8, !tbaa !39
  call void @_ZN5Catch20getFormattedDurationB5cxx11Ed(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %9, double noundef %60)
  %61 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) %59, ptr noundef nonnull align 8 dereferenceable(32) %9)
          to label %62 unwind label %72

62:                                               ; preds = %57
  %63 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %61, ptr noundef @.str.249)
          to label %64 unwind label %72

64:                                               ; preds = %62
  %65 = load ptr, ptr %4, align 8, !tbaa !5
  %66 = getelementptr inbounds %"struct.Catch::SectionStats", ptr %65, i32 0, i32 1
  %67 = getelementptr inbounds %"struct.Catch::SectionInfo", ptr %66, i32 0, i32 0
  %68 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) %63, ptr noundef nonnull align 8 dereferenceable(32) %67)
          to label %69 unwind label %72

69:                                               ; preds = %64
  %70 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %68, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %71 unwind label %72

71:                                               ; preds = %69
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %9) #4
  br label %76

72:                                               ; preds = %69, %64, %62, %57
  %73 = landingpad { ptr, i32 }
          cleanup
  %74 = extractvalue { ptr, i32 } %73, 0
  store ptr %74, ptr %6, align 8
  %75 = extractvalue { ptr, i32 } %73, 1
  store i32 %75, ptr %7, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  br label %84

76:                                               ; preds = %71, %49
  %77 = getelementptr inbounds %"struct.Catch::ConsoleReporter", ptr %10, i32 0, i32 3
  %78 = load i8, ptr %77, align 8, !tbaa !40, !range !19, !noundef !20
  %79 = trunc i8 %78 to i1
  br i1 %79, label %80, label %82

80:                                               ; preds = %76
  %81 = getelementptr inbounds %"struct.Catch::ConsoleReporter", ptr %10, i32 0, i32 3
  store i8 0, ptr %81, align 8, !tbaa !40
  br label %82

82:                                               ; preds = %80, %76
  %83 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN5Catch21StreamingReporterBaseINS_15ConsoleReporterEE12sectionEndedERKNS_12SectionStatsE(ptr noundef nonnull align 8 dereferenceable(354) %10, ptr noundef nonnull align 8 dereferenceable(121) %83)
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  ret void

84:                                               ; preds = %72, %26
  %85 = load ptr, ptr %6, align 8
  %86 = load i32, ptr %7, align 4
  %87 = insertvalue { ptr, i32 } poison, ptr %85, 0
  %88 = insertvalue { ptr, i32 } %87, i32 %86, 1
  resume { ptr, i32 } %88
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN5Catch21StreamingReporterBaseINS_15ConsoleReporterEE12sectionEndedERKNS_12SectionStatsE(ptr noundef nonnull align 8 dereferenceable(354), ptr noundef nonnull align 8 dereferenceable(121)) unnamed_addr #1 align 2

declare void @_ZN5Catch6ColourC1ENS0_4CodeE(ptr, i32)

declare void @_ZN5Catch6ColourD1Ev(ptr)

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 = { 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 #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 = { 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, !18, i64 120}
!10 = !{!"_ZTSN5Catch12SectionStatsE", !11, i64 8, !16, i64 88, !17, i64 112, !18, i64 120}
!11 = !{!"_ZTSN5Catch11SectionInfoE", !12, i64 0, !12, i64 32, !15, i64 64}
!12 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !13, i64 0, !14, i64 8, !7, i64 16}
!13 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = !{!"_ZTSN5Catch14SourceLineInfoE", !6, i64 0, !14, i64 8}
!16 = !{!"_ZTSN5Catch6CountsE", !14, i64 0, !14, i64 8, !14, i64 16}
!17 = !{!"double", !7, i64 0}
!18 = !{!"bool", !7, i64 0}
!19 = !{i8 0, i8 2}
!20 = !{}
!21 = !{!22, !6, i64 24}
!22 = !{!"_ZTSN5Catch21StreamingReporterBaseINS_15ConsoleReporterEEE", !23, i64 0, !24, i64 8, !6, i64 24, !27, i64 32, !29, i64 80, !31, i64 144, !33, i64 328, !37, i64 352}
!23 = !{!"_ZTSN5Catch18IStreamingReporterE"}
!24 = !{!"_ZTSSt10shared_ptrIKN5Catch7IConfigEE", !25, i64 0}
!25 = !{!"_ZTSSt12__shared_ptrIKN5Catch7IConfigELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !26, i64 8}
!26 = !{!"_ZTSSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0}
!27 = !{!"_ZTSN5Catch8LazyStatINS_11TestRunInfoEEE", !28, i64 0, !18, i64 40}
!28 = !{!"_ZTSN5Catch6OptionINS_11TestRunInfoEEE", !6, i64 0, !7, i64 8}
!29 = !{!"_ZTSN5Catch8LazyStatINS_9GroupInfoEEE", !30, i64 0, !18, i64 56}
!30 = !{!"_ZTSN5Catch6OptionINS_9GroupInfoEEE", !6, i64 0, !7, i64 8}
!31 = !{!"_ZTSN5Catch8LazyStatINS_12TestCaseInfoEEE", !32, i64 0, !18, i64 176}
!32 = !{!"_ZTSN5Catch6OptionINS_12TestCaseInfoEEE", !6, i64 0, !7, i64 8}
!33 = !{!"_ZTSSt6vectorIN5Catch11SectionInfoESaIS1_EE", !34, i64 0}
!34 = !{!"_ZTSSt12_Vector_baseIN5Catch11SectionInfoESaIS1_EE", !35, i64 0}
!35 = !{!"_ZTSNSt12_Vector_baseIN5Catch11SectionInfoESaIS1_EE12_Vector_implE", !36, i64 0}
!36 = !{!"_ZTSNSt12_Vector_baseIN5Catch11SectionInfoESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!37 = !{!"_ZTSN5Catch19ReporterPreferencesE", !18, i64 0, !18, i64 1}
!38 = !{!10, !17, i64 112}
!39 = !{!17, !17, i64 0}
!40 = !{!41, !18, i64 368}
!41 = !{!"_ZTSN5Catch15ConsoleReporterE", !22, i64 0, !42, i64 360, !18, i64 368}
!42 = !{!"_ZTSSt10unique_ptrIN5Catch12TablePrinterESt14default_deleteIS1_EE", !43, i64 0}
!43 = !{!"_ZTSSt15__uniq_ptr_dataIN5Catch12TablePrinterESt14default_deleteIS1_ELb1ELb1EE", !44, i64 0}
!44 = !{!"_ZTSSt15__uniq_ptr_implIN5Catch12TablePrinterESt14default_deleteIS1_EE", !45, i64 0}
!45 = !{!"_ZTSSt5tupleIJPN5Catch12TablePrinterESt14default_deleteIS1_EEE", !46, i64 0}
!46 = !{!"_ZTSSt11_Tuple_implILm0EJPN5Catch12TablePrinterESt14default_deleteIS1_EEE", !47, i64 0}
!47 = !{!"_ZTSSt10_Head_baseILm0EPN5Catch12TablePrinterELb0EE", !6, i64 0}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon.0 }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon.0 = type { i64, [8 x i8] }
%"struct.Catch::Colour" = type { i8 }

@.str.249 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.254 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.255 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.256 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.257 = external hidden unnamed_addr constant [3 x i8], align 1

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

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5Catch20getFormattedDurationB5cxx11Ed(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, double noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN5Catch18shouldShowDurationERKNS_7IConfigEd(ptr noundef nonnull align 8 dereferenceable(8), double noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5Catch15ConsoleReporter9lazyPrintEv(ptr noundef nonnull align 8 dereferenceable(369)) local_unnamed_addr #3 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5Catch12TablePrinter5closeEv(ptr noundef nonnull align 8 dereferenceable(413)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5Catch15ConsoleReporter12sectionEndedERKNS_12SectionStatsE(ptr noundef nonnull align 8 dereferenceable(369) %0, ptr noundef nonnull align 8 dereferenceable(121) %1) unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"struct.Catch::Colour", align 1
  %4 = alloca %"class.std::__cxx11::basic_string", align 8
  %5 = getelementptr inbounds i8, ptr %0, i64 360
  %6 = tail call noundef ptr @_ZNKSt10unique_ptrIN5Catch12TablePrinterESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #4
  tail call void @_ZN5Catch12TablePrinter5closeEv(ptr noundef nonnull align 8 dereferenceable(413) %6)
  %7 = getelementptr inbounds i8, ptr %1, i64 120
  %8 = load i8, ptr %7, align 8, !tbaa !5, !range !18, !noundef !19
  %9 = trunc nuw i8 %8 to i1
  br i1 %9, label %.invoke, label %31

.invoke:                                          ; preds = %2
  tail call void @_ZN5Catch15ConsoleReporter9lazyPrintEv(ptr noundef nonnull align 8 dereferenceable(369) %0)
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %3) #4
  call void @_ZN5Catch6ColourC1ENS0_4CodeE(ptr noundef nonnull align 1 dereferenceable(1) %3, i32 noundef 18)
  %10 = getelementptr inbounds i8, ptr %0, i64 328
  %11 = call noundef i64 @_ZNKSt6vectorIN5Catch11SectionInfoESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %10) #4
  %12 = icmp ugt i64 %11, 1
  %13 = getelementptr inbounds i8, ptr %0, i64 24
  %14 = load ptr, ptr %13, align 8, !tbaa !20
  %15 = select i1 %12, ptr @.str.254, ptr @.str.255
  %16 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull %15)
          to label %19 unwind label %17

17:                                               ; preds = %.invoke, %28, %26, %23, %19
  %18 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN5Catch6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(1) %3) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %3) #4
  br label %57

19:                                               ; preds = %.invoke
  %20 = getelementptr inbounds i8, ptr %0, i64 24
  %21 = load ptr, ptr %20, align 8, !tbaa !20
  %22 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %21, ptr noundef nonnull @.str.256)
          to label %23 unwind label %17

23:                                               ; preds = %19
  %24 = getelementptr inbounds i8, ptr %1, i64 8
  %25 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) %22, ptr noundef nonnull align 8 dereferenceable(32) %24)
          to label %26 unwind label %17

26:                                               ; preds = %23
  %27 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %25, ptr noundef nonnull @.str.257)
          to label %28 unwind label %17

28:                                               ; preds = %26
  %29 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %27, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %30 unwind label %17

30:                                               ; preds = %28
  call void @_ZN5Catch6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(1) %3) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %3) #4
  br label %31

31:                                               ; preds = %30, %2
  %32 = getelementptr inbounds i8, ptr %1, i64 112
  %33 = load double, ptr %32, align 8, !tbaa !37
  %34 = getelementptr inbounds i8, ptr %0, i64 8
  %35 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt19__shared_ptr_accessIKN5Catch7IConfigELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEdeEv(ptr noundef nonnull align 1 dereferenceable(1) %34) #4
  %36 = call noundef zeroext i1 @_ZN5Catch18shouldShowDurationERKNS_7IConfigEd(ptr noundef nonnull align 8 dereferenceable(8) %35, double noundef %33)
  br i1 %36, label %37, label %51

37:                                               ; preds = %31
  %38 = getelementptr inbounds i8, ptr %0, i64 24
  %39 = load ptr, ptr %38, align 8, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #4
  call void @_ZN5Catch20getFormattedDurationB5cxx11Ed(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %4, double noundef %33)
  %40 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) %39, ptr noundef nonnull align 8 dereferenceable(32) %4)
          to label %41 unwind label %49

41:                                               ; preds = %37
  %42 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %40, ptr noundef nonnull @.str.249)
          to label %43 unwind label %49

43:                                               ; preds = %41
  %44 = getelementptr inbounds i8, ptr %1, i64 8
  %45 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) %42, ptr noundef nonnull align 8 dereferenceable(32) %44)
          to label %46 unwind label %49

46:                                               ; preds = %43
  %47 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %45, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %48 unwind label %49

48:                                               ; preds = %46
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #4
  br label %51

49:                                               ; preds = %46, %43, %41, %37
  %50 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #4
  br label %57

51:                                               ; preds = %48, %31
  %52 = getelementptr inbounds i8, ptr %0, i64 368
  %53 = load i8, ptr %52, align 8, !tbaa !38, !range !18, !noundef !19
  %54 = trunc nuw i8 %53 to i1
  br i1 %54, label %55, label %56

55:                                               ; preds = %51
  store i8 0, ptr %52, align 8, !tbaa !38
  br label %56

56:                                               ; preds = %55, %51
  call void @_ZN5Catch21StreamingReporterBaseINS_15ConsoleReporterEE12sectionEndedERKNS_12SectionStatsE(ptr noundef nonnull align 8 dereferenceable(354) %0, ptr noundef nonnull align 8 dereferenceable(121) %1)
  ret void

57:                                               ; preds = %49, %17
  %.pn = phi { ptr, i32 } [ %50, %49 ], [ %18, %17 ]
  resume { ptr, i32 } %.pn
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN5Catch21StreamingReporterBaseINS_15ConsoleReporterEE12sectionEndedERKNS_12SectionStatsE(ptr noundef nonnull align 8 dereferenceable(354), ptr noundef nonnull align 8 dereferenceable(121)) unnamed_addr #1 align 2

declare void @_ZN5Catch6ColourC1ENS0_4CodeE(ptr, i32) local_unnamed_addr

declare void @_ZN5Catch6ColourD1Ev(ptr) local_unnamed_addr

attributes #0 = { mustprogress 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 = { 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 #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 = { 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, !17, i64 120}
!6 = !{!"_ZTSN5Catch12SectionStatsE", !7, i64 8, !15, i64 88, !16, i64 112, !17, i64 120}
!7 = !{!"_ZTSN5Catch11SectionInfoE", !8, i64 0, !8, i64 32, !14, i64 64}
!8 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !9, i64 0, !13, i64 8, !11, i64 16}
!9 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !10, i64 0}
!10 = !{!"any pointer", !11, i64 0}
!11 = !{!"omnipotent char", !12, i64 0}
!12 = !{!"Simple C++ TBAA"}
!13 = !{!"long", !11, i64 0}
!14 = !{!"_ZTSN5Catch14SourceLineInfoE", !10, i64 0, !13, i64 8}
!15 = !{!"_ZTSN5Catch6CountsE", !13, i64 0, !13, i64 8, !13, i64 16}
!16 = !{!"double", !11, i64 0}
!17 = !{!"bool", !11, i64 0}
!18 = !{i8 0, i8 2}
!19 = !{}
!20 = !{!21, !10, i64 24}
!21 = !{!"_ZTSN5Catch21StreamingReporterBaseINS_15ConsoleReporterEEE", !22, i64 0, !23, i64 8, !10, i64 24, !26, i64 32, !28, i64 80, !30, i64 144, !32, i64 328, !36, i64 352}
!22 = !{!"_ZTSN5Catch18IStreamingReporterE"}
!23 = !{!"_ZTSSt10shared_ptrIKN5Catch7IConfigEE", !24, i64 0}
!24 = !{!"_ZTSSt12__shared_ptrIKN5Catch7IConfigELN9__gnu_cxx12_Lock_policyE2EE", !10, i64 0, !25, i64 8}
!25 = !{!"_ZTSSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EE", !10, i64 0}
!26 = !{!"_ZTSN5Catch8LazyStatINS_11TestRunInfoEEE", !27, i64 0, !17, i64 40}
!27 = !{!"_ZTSN5Catch6OptionINS_11TestRunInfoEEE", !10, i64 0, !11, i64 8}
!28 = !{!"_ZTSN5Catch8LazyStatINS_9GroupInfoEEE", !29, i64 0, !17, i64 56}
!29 = !{!"_ZTSN5Catch6OptionINS_9GroupInfoEEE", !10, i64 0, !11, i64 8}
!30 = !{!"_ZTSN5Catch8LazyStatINS_12TestCaseInfoEEE", !31, i64 0, !17, i64 176}
!31 = !{!"_ZTSN5Catch6OptionINS_12TestCaseInfoEEE", !10, i64 0, !11, i64 8}
!32 = !{!"_ZTSSt6vectorIN5Catch11SectionInfoESaIS1_EE", !33, i64 0}
!33 = !{!"_ZTSSt12_Vector_baseIN5Catch11SectionInfoESaIS1_EE", !34, i64 0}
!34 = !{!"_ZTSNSt12_Vector_baseIN5Catch11SectionInfoESaIS1_EE12_Vector_implE", !35, i64 0}
!35 = !{!"_ZTSNSt12_Vector_baseIN5Catch11SectionInfoESaIS1_EE17_Vector_impl_dataE", !10, i64 0, !10, i64 8, !10, i64 16}
!36 = !{!"_ZTSN5Catch19ReporterPreferencesE", !17, i64 0, !17, i64 1}
!37 = !{!6, !16, i64 112}
!38 = !{!39, !17, i64 368}
!39 = !{!"_ZTSN5Catch15ConsoleReporterE", !21, i64 0, !40, i64 360, !17, i64 368}
!40 = !{!"_ZTSSt10unique_ptrIN5Catch12TablePrinterESt14default_deleteIS1_EE", !41, i64 0}
!41 = !{!"_ZTSSt15__uniq_ptr_dataIN5Catch12TablePrinterESt14default_deleteIS1_ELb1ELb1EE", !42, i64 0}
!42 = !{!"_ZTSSt15__uniq_ptr_implIN5Catch12TablePrinterESt14default_deleteIS1_EE", !43, i64 0}
!43 = !{!"_ZTSSt5tupleIJPN5Catch12TablePrinterESt14default_deleteIS1_EEE", !44, i64 0}
!44 = !{!"_ZTSSt11_Tuple_implILm0EJPN5Catch12TablePrinterESt14default_deleteIS1_EEE", !45, i64 0}
!45 = !{!"_ZTSSt10_Head_baseILm0EPN5Catch12TablePrinterELb0EE", !10, i64 0}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,SROAPass,SimplifyCFGPass,TailCallElimPass