; LLVM IR from Razakhel/RaZ :: extern/catch/catch2/reporters (catch_reporter_sonarqube)

; 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.Catch::XmlWriter::ScopedElement" = type <{ ptr, i32, [4 x i8] }>
%"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.Catch::ReusableStringStream" = type { i64, ptr }
%"class.Catch::StringRef" = type { ptr, i64 }
%"class.__gnu_cxx::__normal_iterator.56" = type { ptr }
%"struct.Catch::SourceLineInfo" = type { ptr, i64 }
%"struct.Catch::AssertionStats" = type { %"class.Catch::AssertionResult", %"class.std::vector.51", %"struct.Catch::Totals" }
%"class.Catch::AssertionResult" = type { %"struct.Catch::AssertionInfo", %"struct.Catch::AssertionResultData" }
%"struct.Catch::AssertionInfo" = type <{ %"class.Catch::StringRef", %"struct.Catch::SourceLineInfo", %"class.Catch::StringRef", i32, [4 x i8] }>
%"struct.Catch::AssertionResultData" = type <{ %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"class.Catch::LazyExpression", i32, [4 x i8] }>
%"class.Catch::LazyExpression" = type <{ ptr, i8, [7 x i8] }>
%"class.std::vector.51" = type { %"struct.std::_Vector_base.52" }
%"struct.std::_Vector_base.52" = type { %"struct.std::_Vector_base<Catch::MessageInfo, std::allocator<Catch::MessageInfo>>::_Vector_impl" }
%"struct.std::_Vector_base<Catch::MessageInfo, std::allocator<Catch::MessageInfo>>::_Vector_impl" = type { %"struct.std::_Vector_base<Catch::MessageInfo, std::allocator<Catch::MessageInfo>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Catch::MessageInfo, std::allocator<Catch::MessageInfo>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.Catch::Totals" = type { %"struct.Catch::Counts", %"struct.Catch::Counts" }
%"struct.Catch::Counts" = type { i64, i64, i64, i64 }
%"class.Catch::SonarQubeReporter" = type { %"class.Catch::CumulativeReporterBase", %"class.Catch::XmlWriter" }
%"class.Catch::CumulativeReporterBase" = type { %"class.Catch::ReporterBase", i8, i8, %"class.Catch::Detail::unique_ptr.1", %"class.std::vector", %"class.Catch::Detail::unique_ptr.5", ptr, %"class.std::vector.6" }
%"class.Catch::ReporterBase" = type { %"class.Catch::IEventListener", %"class.Catch::Detail::unique_ptr", ptr, %"class.Catch::Detail::unique_ptr.0", %"class.std::map" }
%"class.Catch::IEventListener" = type { ptr, %"struct.Catch::ReporterPreferences", ptr }
%"struct.Catch::ReporterPreferences" = type { i8, i8 }
%"class.Catch::Detail::unique_ptr" = type { ptr }
%"class.Catch::Detail::unique_ptr.0" = type { ptr }
%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.Catch::Detail::unique_ptr.1" = type { ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<Catch::Detail::unique_ptr<Catch::CumulativeReporterBase::Node<Catch::TestCaseStats, Catch::CumulativeReporterBase::SectionNode>>, std::allocator<Catch::Detail::unique_ptr<Catch::CumulativeReporterBase::Node<Catch::TestCaseStats, Catch::CumulativeReporterBase::SectionNode>>>>::_Vector_impl" }
%"struct.std::_Vector_base<Catch::Detail::unique_ptr<Catch::CumulativeReporterBase::Node<Catch::TestCaseStats, Catch::CumulativeReporterBase::SectionNode>>, std::allocator<Catch::Detail::unique_ptr<Catch::CumulativeReporterBase::Node<Catch::TestCaseStats, Catch::CumulativeReporterBase::SectionNode>>>>::_Vector_impl" = type { %"struct.std::_Vector_base<Catch::Detail::unique_ptr<Catch::CumulativeReporterBase::Node<Catch::TestCaseStats, Catch::CumulativeReporterBase::SectionNode>>, std::allocator<Catch::Detail::unique_ptr<Catch::CumulativeReporterBase::Node<Catch::TestCaseStats, Catch::CumulativeReporterBase::SectionNode>>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Catch::Detail::unique_ptr<Catch::CumulativeReporterBase::Node<Catch::TestCaseStats, Catch::CumulativeReporterBase::SectionNode>>, std::allocator<Catch::Detail::unique_ptr<Catch::CumulativeReporterBase::Node<Catch::TestCaseStats, Catch::CumulativeReporterBase::SectionNode>>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.Catch::Detail::unique_ptr.5" = type { ptr }
%"class.std::vector.6" = type { %"struct.std::_Vector_base.7" }
%"struct.std::_Vector_base.7" = type { %"struct.std::_Vector_base<Catch::CumulativeReporterBase::SectionNode *, std::allocator<Catch::CumulativeReporterBase::SectionNode *>>::_Vector_impl" }
%"struct.std::_Vector_base<Catch::CumulativeReporterBase::SectionNode *, std::allocator<Catch::CumulativeReporterBase::SectionNode *>>::_Vector_impl" = type { %"struct.std::_Vector_base<Catch::CumulativeReporterBase::SectionNode *, std::allocator<Catch::CumulativeReporterBase::SectionNode *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Catch::CumulativeReporterBase::SectionNode *, std::allocator<Catch::CumulativeReporterBase::SectionNode *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.Catch::XmlWriter" = type { i8, i8, %"class.std::vector.11", %"class.std::__cxx11::basic_string", ptr }
%"class.std::vector.11" = type { %"struct.std::_Vector_base.12" }
%"struct.std::_Vector_base.12" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.Catch::MessageInfo" = type { %"class.Catch::StringRef", %"class.std::__cxx11::basic_string", %"struct.Catch::SourceLineInfo", i32, i32 }

@.str.10 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [4 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: mustprogress nounwind uwtable
declare dso_local void @_ZN5Catch9StringRefC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #1 align 2

declare noundef i32 @_ZN5CatchorENS_13XmlFormattingES0_(i32 noundef, i32 noundef) #2

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: 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 { ptr, i64 } @_ZN5Catchli3_srEPKcm(ptr noundef, i64 noundef) #1

declare void @_ZN5Catch9XmlWriter13scopedElementERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_13XmlFormattingE(ptr dead_on_unwind writable sret(%"class.Catch::XmlWriter::ScopedElement") align 8, ptr noundef nonnull align 8 dereferenceable(72), ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) #2

declare noundef nonnull align 8 dereferenceable(72) ptr @_ZN5Catch9XmlWriter14writeAttributeENS_9StringRefES1_(ptr noundef nonnull align 8 dereferenceable(72), ptr, i64, ptr, i64) #2

; Function Attrs: nounwind
declare void @_ZN5Catch9XmlWriter13ScopedElementD1Ev(ptr noundef nonnull align 8 dereferenceable(12)) unnamed_addr #3

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5Catch17SonarQubeReporter14writeAssertionERKNS_14AssertionStatsEb(ptr noundef nonnull align 8 dereferenceable(248) %0, ptr noundef nonnull align 8 dereferenceable(232) %1, i1 noundef zeroext %2) #4 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i8, align 1
  %7 = alloca ptr, align 8
  %8 = alloca %"class.std::__cxx11::basic_string", align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca %"class.Catch::XmlWriter::ScopedElement", align 8
  %12 = alloca %"class.Catch::ReusableStringStream", align 8
  %13 = alloca %"class.Catch::StringRef", align 8
  %14 = alloca i8, align 1
  %15 = alloca %"class.std::__cxx11::basic_string", align 8
  %16 = alloca i8, align 1
  %17 = alloca %"class.Catch::StringRef", align 8
  %18 = alloca %"class.Catch::StringRef", align 8
  %19 = alloca %"class.std::__cxx11::basic_string", align 8
  %20 = alloca %"class.Catch::ReusableStringStream", align 8
  %21 = alloca i8, align 1
  %22 = alloca %"class.std::__cxx11::basic_string", align 8
  %23 = alloca i8, align 1
  %24 = alloca %"class.std::__cxx11::basic_string", align 8
  %25 = alloca i8, align 1
  %26 = alloca %"class.Catch::StringRef", align 8
  %27 = alloca i8, align 1
  %28 = alloca ptr, align 8
  %29 = alloca %"class.__gnu_cxx::__normal_iterator.56", align 8
  %30 = alloca %"class.__gnu_cxx::__normal_iterator.56", align 8
  %31 = alloca ptr, align 8
  %32 = alloca i8, align 1
  %33 = alloca %"struct.Catch::SourceLineInfo", align 8
  %34 = alloca %"class.Catch::StringRef", align 8
  %35 = alloca %"class.std::__cxx11::basic_string", align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  %36 = zext i1 %2 to i8
  store i8 %36, ptr %6, align 1, !tbaa !9
  %37 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  %38 = load ptr, ptr %5, align 8, !tbaa !5
  %39 = getelementptr inbounds %"struct.Catch::AssertionStats", ptr %38, i32 0, i32 0
  store ptr %39, ptr %7, align 8, !tbaa !5
  %40 = load ptr, ptr %7, align 8, !tbaa !5
  %41 = call noundef zeroext i1 @_ZNK5Catch15AssertionResult4isOkEv(ptr noundef nonnull align 8 dereferenceable(144) %40)
  br i1 %41, label %42, label %46

42:                                               ; preds = %3
  %43 = load ptr, ptr %7, align 8, !tbaa !5
  %44 = call noundef i32 @_ZNK5Catch15AssertionResult13getResultTypeEv(ptr noundef nonnull align 8 dereferenceable(144) %43)
  %45 = icmp eq i32 %44, 4
  br i1 %45, label %46, label %333

46:                                               ; preds = %42, %3
  call void @llvm.lifetime.start.p0(i64 32, ptr %8) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #6
  %47 = load i8, ptr %6, align 1, !tbaa !9, !range !11, !noundef !12
  %48 = trunc i8 %47 to i1
  br i1 %48, label %49, label %56

49:                                               ; preds = %46
  %50 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef @.str.10)
          to label %51 unwind label %52

51:                                               ; preds = %49
  br label %73

52:                                               ; preds = %69, %66, %63, %60, %56, %49
  %53 = landingpad { ptr, i32 }
          cleanup
  %54 = extractvalue { ptr, i32 } %53, 0
  store ptr %54, ptr %9, align 8
  %55 = extractvalue { ptr, i32 } %53, 1
  store i32 %55, ptr %10, align 4
  br label %332

56:                                               ; preds = %46
  %57 = load ptr, ptr %7, align 8, !tbaa !5
  %58 = invoke noundef i32 @_ZNK5Catch15AssertionResult13getResultTypeEv(ptr noundef nonnull align 8 dereferenceable(144) %57)
          to label %59 unwind label %52

59:                                               ; preds = %56
  switch i32 %58, label %72 [
    i32 273, label %60
    i32 528, label %60
    i32 18, label %63
    i32 17, label %63
    i32 274, label %63
    i32 4, label %66
    i32 1, label %69
    i32 2, label %69
    i32 0, label %69
    i32 -1, label %69
    i32 16, label %69
    i32 272, label %69
  ]

60:                                               ; preds = %59, %59
  %61 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef @.str.11)
          to label %62 unwind label %52

62:                                               ; preds = %60
  br label %72

63:                                               ; preds = %59, %59, %59
  %64 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef @.str.12)
          to label %65 unwind label %52

65:                                               ; preds = %63
  br label %72

66:                                               ; preds = %59
  %67 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef @.str.10)
          to label %68 unwind label %52

68:                                               ; preds = %66
  br label %72

69:                                               ; preds = %59, %59, %59, %59, %59, %59
  %70 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef @.str.13)
          to label %71 unwind label %52

71:                                               ; preds = %69
  br label %72

72:                                               ; preds = %71, %68, %65, %62, %59
  br label %73

73:                                               ; preds = %72, %51
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #6
  %74 = getelementptr inbounds %"class.Catch::SonarQubeReporter", ptr %37, i32 0, i32 1
  %75 = invoke noundef i32 @_ZN5CatchorENS_13XmlFormattingES0_(i32 noundef 2, i32 noundef 1)
          to label %76 unwind label %121

76:                                               ; preds = %73
  invoke void @_ZN5Catch9XmlWriter13scopedElementERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_13XmlFormattingE(ptr dead_on_unwind writable sret(%"class.Catch::XmlWriter::ScopedElement") align 8 %11, ptr noundef nonnull align 8 dereferenceable(72) %74, ptr noundef nonnull align 8 dereferenceable(32) %8, i32 noundef %75)
          to label %77 unwind label %121

77:                                               ; preds = %76
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #6
  invoke void @_ZN5Catch20ReusableStringStreamC1Ev(ptr noundef nonnull align 8 dereferenceable(16) %12)
          to label %78 unwind label %125

78:                                               ; preds = %77
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #6
  %79 = load ptr, ptr %7, align 8, !tbaa !5
  %80 = invoke { ptr, i64 } @_ZNK5Catch15AssertionResult16getTestMacroNameEv(ptr noundef nonnull align 8 dereferenceable(144) %79)
          to label %81 unwind label %129

81:                                               ; preds = %78
  %82 = getelementptr inbounds { ptr, i64 }, ptr %13, i32 0, i32 0
  %83 = extractvalue { ptr, i64 } %80, 0
  store ptr %83, ptr %82, align 8
  %84 = getelementptr inbounds { ptr, i64 }, ptr %13, i32 0, i32 1
  %85 = extractvalue { ptr, i64 } %80, 1
  store i64 %85, ptr %84, align 8
  %86 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN5Catch20ReusableStringStreamlsINS_9StringRefEEERS0_RKT_(ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef nonnull align 8 dereferenceable(16) %13)
          to label %87 unwind label %129

87:                                               ; preds = %81
  call void @llvm.lifetime.start.p0(i64 1, ptr %14) #6
  store i8 40, ptr %14, align 1, !tbaa !13
  %88 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN5Catch20ReusableStringStreamlsIcEERS0_RKT_(ptr noundef nonnull align 8 dereferenceable(16) %86, ptr noundef nonnull align 1 dereferenceable(1) %14)
          to label %89 unwind label %133

89:                                               ; preds = %87
  call void @llvm.lifetime.start.p0(i64 32, ptr %15) #6
  %90 = load ptr, ptr %7, align 8, !tbaa !5
  invoke void @_ZNK5Catch15AssertionResult13getExpressionB5cxx11Ev(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %15, ptr noundef nonnull align 8 dereferenceable(144) %90)
          to label %91 unwind label %137

91:                                               ; preds = %89
  %92 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN5Catch20ReusableStringStreamlsINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEERS0_RKT_(ptr noundef nonnull align 8 dereferenceable(16) %88, ptr noundef nonnull align 8 dereferenceable(32) %15)
          to label %93 unwind label %141

93:                                               ; preds = %91
  call void @llvm.lifetime.start.p0(i64 1, ptr %16) #6
  store i8 41, ptr %16, align 1, !tbaa !13
  %94 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN5Catch20ReusableStringStreamlsIcEERS0_RKT_(ptr noundef nonnull align 8 dereferenceable(16) %92, ptr noundef nonnull align 1 dereferenceable(1) %16)
          to label %95 unwind label %145

95:                                               ; preds = %93
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #6
  %96 = getelementptr inbounds %"class.Catch::SonarQubeReporter", ptr %37, i32 0, i32 1
  %97 = call { ptr, i64 } @_ZN5Catchli3_srEPKcm(ptr noundef @.str.14, i64 noundef 7) #6
  %98 = getelementptr inbounds { ptr, i64 }, ptr %17, i32 0, i32 0
  %99 = extractvalue { ptr, i64 } %97, 0
  store ptr %99, ptr %98, align 8
  %100 = getelementptr inbounds { ptr, i64 }, ptr %17, i32 0, i32 1
  %101 = extractvalue { ptr, i64 } %97, 1
  store i64 %101, ptr %100, align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr %19) #6
  invoke void @_ZNK5Catch20ReusableStringStream3strB5cxx11Ev(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %19, ptr noundef nonnull align 8 dereferenceable(16) %12)
          to label %102 unwind label %153

102:                                              ; preds = %95
  call void @_ZN5Catch9StringRefC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(16) %18, ptr noundef nonnull align 8 dereferenceable(32) %19) #6
  %103 = getelementptr inbounds { ptr, i64 }, ptr %17, i32 0, i32 0
  %104 = load ptr, ptr %103, align 8
  %105 = getelementptr inbounds { ptr, i64 }, ptr %17, i32 0, i32 1
  %106 = load i64, ptr %105, align 8
  %107 = getelementptr inbounds { ptr, i64 }, ptr %18, i32 0, i32 0
  %108 = load ptr, ptr %107, align 8
  %109 = getelementptr inbounds { ptr, i64 }, ptr %18, i32 0, i32 1
  %110 = load i64, ptr %109, align 8
  %111 = invoke noundef nonnull align 8 dereferenceable(72) ptr @_ZN5Catch9XmlWriter14writeAttributeENS_9StringRefES1_(ptr noundef nonnull align 8 dereferenceable(72) %96, ptr %104, i64 %106, ptr %108, i64 %110)
          to label %112 unwind label %157

112:                                              ; preds = %102
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %19) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #6
  invoke void @_ZN5Catch20ReusableStringStreamC1Ev(ptr noundef nonnull align 8 dereferenceable(16) %20)
          to label %113 unwind label %162

113:                                              ; preds = %112
  %114 = load ptr, ptr %7, align 8, !tbaa !5
  %115 = invoke noundef i32 @_ZNK5Catch15AssertionResult13getResultTypeEv(ptr noundef nonnull align 8 dereferenceable(144) %114)
          to label %116 unwind label %166

116:                                              ; preds = %113
  %117 = icmp eq i32 %115, 4
  br i1 %117, label %118, label %170

118:                                              ; preds = %116
  %119 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN5Catch20ReusableStringStreamlsIA9_cEERS0_RKT_(ptr noundef nonnull align 8 dereferenceable(16) %20, ptr noundef nonnull align 1 dereferenceable(9) @.str.15)
          to label %120 unwind label %166

120:                                              ; preds = %118
  br label %232

121:                                              ; preds = %76, %73
  %122 = landingpad { ptr, i32 }
          cleanup
  %123 = extractvalue { ptr, i32 } %122, 0
  store ptr %123, ptr %9, align 8
  %124 = extractvalue { ptr, i32 } %122, 1
  store i32 %124, ptr %10, align 4
  br label %331

125:                                              ; preds = %77
  %126 = landingpad { ptr, i32 }
          cleanup
  %127 = extractvalue { ptr, i32 } %126, 0
  store ptr %127, ptr %9, align 8
  %128 = extractvalue { ptr, i32 } %126, 1
  store i32 %128, ptr %10, align 4
  br label %330

129:                                              ; preds = %81, %78
  %130 = landingpad { ptr, i32 }
          cleanup
  %131 = extractvalue { ptr, i32 } %130, 0
  store ptr %131, ptr %9, align 8
  %132 = extractvalue { ptr, i32 } %130, 1
  store i32 %132, ptr %10, align 4
  br label %152

133:                                              ; preds = %87
  %134 = landingpad { ptr, i32 }
          cleanup
  %135 = extractvalue { ptr, i32 } %134, 0
  store ptr %135, ptr %9, align 8
  %136 = extractvalue { ptr, i32 } %134, 1
  store i32 %136, ptr %10, align 4
  br label %151

137:                                              ; preds = %89
  %138 = landingpad { ptr, i32 }
          cleanup
  %139 = extractvalue { ptr, i32 } %138, 0
  store ptr %139, ptr %9, align 8
  %140 = extractvalue { ptr, i32 } %138, 1
  store i32 %140, ptr %10, align 4
  br label %150

141:                                              ; preds = %91
  %142 = landingpad { ptr, i32 }
          cleanup
  %143 = extractvalue { ptr, i32 } %142, 0
  store ptr %143, ptr %9, align 8
  %144 = extractvalue { ptr, i32 } %142, 1
  store i32 %144, ptr %10, align 4
  br label %149

145:                                              ; preds = %93
  %146 = landingpad { ptr, i32 }
          cleanup
  %147 = extractvalue { ptr, i32 } %146, 0
  store ptr %147, ptr %9, align 8
  %148 = extractvalue { ptr, i32 } %146, 1
  store i32 %148, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #6
  br label %149

149:                                              ; preds = %145, %141
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #6
  br label %150

150:                                              ; preds = %149, %137
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #6
  br label %151

151:                                              ; preds = %150, %133
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #6
  br label %152

152:                                              ; preds = %151, %129
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #6
  br label %329

153:                                              ; preds = %95
  %154 = landingpad { ptr, i32 }
          cleanup
  %155 = extractvalue { ptr, i32 } %154, 0
  store ptr %155, ptr %9, align 8
  %156 = extractvalue { ptr, i32 } %154, 1
  store i32 %156, ptr %10, align 4
  br label %161

157:                                              ; preds = %102
  %158 = landingpad { ptr, i32 }
          cleanup
  %159 = extractvalue { ptr, i32 } %158, 0
  store ptr %159, ptr %9, align 8
  %160 = extractvalue { ptr, i32 } %158, 1
  store i32 %160, ptr %10, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #6
  br label %161

161:                                              ; preds = %157, %153
  call void @llvm.lifetime.end.p0(i64 32, ptr %19) #6
  br label %329

162:                                              ; preds = %112
  %163 = landingpad { ptr, i32 }
          cleanup
  %164 = extractvalue { ptr, i32 } %163, 0
  store ptr %164, ptr %9, align 8
  %165 = extractvalue { ptr, i32 } %163, 1
  store i32 %165, ptr %10, align 4
  br label %328

166:                                              ; preds = %294, %232, %208, %204, %172, %170, %118, %113
  %167 = landingpad { ptr, i32 }
          cleanup
  %168 = extractvalue { ptr, i32 } %167, 0
  store ptr %168, ptr %9, align 8
  %169 = extractvalue { ptr, i32 } %167, 1
  store i32 %169, ptr %10, align 4
  br label %327

170:                                              ; preds = %116
  %171 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN5Catch20ReusableStringStreamlsIA9_cEERS0_RKT_(ptr noundef nonnull align 8 dereferenceable(16) %20, ptr noundef nonnull align 1 dereferenceable(9) @.str.16)
          to label %172 unwind label %166

172:                                              ; preds = %170
  %173 = load ptr, ptr %7, align 8, !tbaa !5
  %174 = invoke noundef zeroext i1 @_ZNK5Catch15AssertionResult13hasExpressionEv(ptr noundef nonnull align 8 dereferenceable(144) %173)
          to label %175 unwind label %166

175:                                              ; preds = %172
  br i1 %174, label %176, label %204

176:                                              ; preds = %175
  call void @llvm.lifetime.start.p0(i64 1, ptr %21) #6
  store i8 9, ptr %21, align 1, !tbaa !13
  %177 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN5Catch20ReusableStringStreamlsIcEERS0_RKT_(ptr noundef nonnull align 8 dereferenceable(16) %20, ptr noundef nonnull align 1 dereferenceable(1) %21)
          to label %178 unwind label %185

178:                                              ; preds = %176
  call void @llvm.lifetime.start.p0(i64 32, ptr %22) #6
  %179 = load ptr, ptr %7, align 8, !tbaa !5
  invoke void @_ZNK5Catch15AssertionResult20getExpressionInMacroB5cxx11Ev(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %22, ptr noundef nonnull align 8 dereferenceable(144) %179)
          to label %180 unwind label %189

180:                                              ; preds = %178
  %181 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN5Catch20ReusableStringStreamlsINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEERS0_RKT_(ptr noundef nonnull align 8 dereferenceable(16) %177, ptr noundef nonnull align 8 dereferenceable(32) %22)
          to label %182 unwind label %193

182:                                              ; preds = %180
  call void @llvm.lifetime.start.p0(i64 1, ptr %23) #6
  store i8 10, ptr %23, align 1, !tbaa !13
  %183 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN5Catch20ReusableStringStreamlsIcEERS0_RKT_(ptr noundef nonnull align 8 dereferenceable(16) %181, ptr noundef nonnull align 1 dereferenceable(1) %23)
          to label %184 unwind label %197

184:                                              ; preds = %182
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %21) #6
  br label %204

185:                                              ; preds = %176
  %186 = landingpad { ptr, i32 }
          cleanup
  %187 = extractvalue { ptr, i32 } %186, 0
  store ptr %187, ptr %9, align 8
  %188 = extractvalue { ptr, i32 } %186, 1
  store i32 %188, ptr %10, align 4
  br label %203

189:                                              ; preds = %178
  %190 = landingpad { ptr, i32 }
          cleanup
  %191 = extractvalue { ptr, i32 } %190, 0
  store ptr %191, ptr %9, align 8
  %192 = extractvalue { ptr, i32 } %190, 1
  store i32 %192, ptr %10, align 4
  br label %202

193:                                              ; preds = %180
  %194 = landingpad { ptr, i32 }
          cleanup
  %195 = extractvalue { ptr, i32 } %194, 0
  store ptr %195, ptr %9, align 8
  %196 = extractvalue { ptr, i32 } %194, 1
  store i32 %196, ptr %10, align 4
  br label %201

197:                                              ; preds = %182
  %198 = landingpad { ptr, i32 }
          cleanup
  %199 = extractvalue { ptr, i32 } %198, 0
  store ptr %199, ptr %9, align 8
  %200 = extractvalue { ptr, i32 } %198, 1
  store i32 %200, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #6
  br label %201

201:                                              ; preds = %197, %193
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #6
  br label %202

202:                                              ; preds = %201, %189
  call void @llvm.lifetime.end.p0(i64 32, ptr %22) #6
  br label %203

203:                                              ; preds = %202, %185
  call void @llvm.lifetime.end.p0(i64 1, ptr %21) #6
  br label %327

204:                                              ; preds = %184, %175
  %205 = load ptr, ptr %7, align 8, !tbaa !5
  %206 = invoke noundef zeroext i1 @_ZNK5Catch15AssertionResult21hasExpandedExpressionEv(ptr noundef nonnull align 8 dereferenceable(144) %205)
          to label %207 unwind label %166

207:                                              ; preds = %204
  br i1 %206, label %208, label %231

208:                                              ; preds = %207
  %209 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN5Catch20ReusableStringStreamlsIA18_cEERS0_RKT_(ptr noundef nonnull align 8 dereferenceable(16) %20, ptr noundef nonnull align 1 dereferenceable(18) @.str.17)
          to label %210 unwind label %166

210:                                              ; preds = %208
  call void @llvm.lifetime.start.p0(i64 32, ptr %24) #6
  %211 = load ptr, ptr %7, align 8, !tbaa !5
  invoke void @_ZNK5Catch15AssertionResult21getExpandedExpressionB5cxx11Ev(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %24, ptr noundef nonnull align 8 dereferenceable(144) %211)
          to label %212 unwind label %217

212:                                              ; preds = %210
  %213 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN5Catch20ReusableStringStreamlsINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEERS0_RKT_(ptr noundef nonnull align 8 dereferenceable(16) %209, ptr noundef nonnull align 8 dereferenceable(32) %24)
          to label %214 unwind label %221

214:                                              ; preds = %212
  call void @llvm.lifetime.start.p0(i64 1, ptr %25) #6
  store i8 10, ptr %25, align 1, !tbaa !13
  %215 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN5Catch20ReusableStringStreamlsIcEERS0_RKT_(ptr noundef nonnull align 8 dereferenceable(16) %213, ptr noundef nonnull align 1 dereferenceable(1) %25)
          to label %216 unwind label %225

216:                                              ; preds = %214
  call void @llvm.lifetime.end.p0(i64 1, ptr %25) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %24) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %24) #6
  br label %231

217:                                              ; preds = %210
  %218 = landingpad { ptr, i32 }
          cleanup
  %219 = extractvalue { ptr, i32 } %218, 0
  store ptr %219, ptr %9, align 8
  %220 = extractvalue { ptr, i32 } %218, 1
  store i32 %220, ptr %10, align 4
  br label %230

221:                                              ; preds = %212
  %222 = landingpad { ptr, i32 }
          cleanup
  %223 = extractvalue { ptr, i32 } %222, 0
  store ptr %223, ptr %9, align 8
  %224 = extractvalue { ptr, i32 } %222, 1
  store i32 %224, ptr %10, align 4
  br label %229

225:                                              ; preds = %214
  %226 = landingpad { ptr, i32 }
          cleanup
  %227 = extractvalue { ptr, i32 } %226, 0
  store ptr %227, ptr %9, align 8
  %228 = extractvalue { ptr, i32 } %226, 1
  store i32 %228, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %25) #6
  br label %229

229:                                              ; preds = %225, %221
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %24) #6
  br label %230

230:                                              ; preds = %229, %217
  call void @llvm.lifetime.end.p0(i64 32, ptr %24) #6
  br label %327

231:                                              ; preds = %216, %207
  br label %232

232:                                              ; preds = %231, %120
  %233 = load ptr, ptr %7, align 8, !tbaa !5
  %234 = invoke noundef zeroext i1 @_ZNK5Catch15AssertionResult10hasMessageEv(ptr noundef nonnull align 8 dereferenceable(144) %233)
          to label %235 unwind label %166

235:                                              ; preds = %232
  br i1 %234, label %236, label %257

236:                                              ; preds = %235
  call void @llvm.lifetime.start.p0(i64 16, ptr %26) #6
  %237 = load ptr, ptr %7, align 8, !tbaa !5
  %238 = invoke { ptr, i64 } @_ZNK5Catch15AssertionResult10getMessageEv(ptr noundef nonnull align 8 dereferenceable(144) %237)
          to label %239 unwind label %248

239:                                              ; preds = %236
  %240 = getelementptr inbounds { ptr, i64 }, ptr %26, i32 0, i32 0
  %241 = extractvalue { ptr, i64 } %238, 0
  store ptr %241, ptr %240, align 8
  %242 = getelementptr inbounds { ptr, i64 }, ptr %26, i32 0, i32 1
  %243 = extractvalue { ptr, i64 } %238, 1
  store i64 %243, ptr %242, align 8
  %244 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN5Catch20ReusableStringStreamlsINS_9StringRefEEERS0_RKT_(ptr noundef nonnull align 8 dereferenceable(16) %20, ptr noundef nonnull align 8 dereferenceable(16) %26)
          to label %245 unwind label %248

245:                                              ; preds = %239
  call void @llvm.lifetime.start.p0(i64 1, ptr %27) #6
  store i8 10, ptr %27, align 1, !tbaa !13
  %246 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN5Catch20ReusableStringStreamlsIcEERS0_RKT_(ptr noundef nonnull align 8 dereferenceable(16) %244, ptr noundef nonnull align 1 dereferenceable(1) %27)
          to label %247 unwind label %252

247:                                              ; preds = %245
  call void @llvm.lifetime.end.p0(i64 1, ptr %27) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #6
  br label %257

248:                                              ; preds = %239, %236
  %249 = landingpad { ptr, i32 }
          cleanup
  %250 = extractvalue { ptr, i32 } %249, 0
  store ptr %250, ptr %9, align 8
  %251 = extractvalue { ptr, i32 } %249, 1
  store i32 %251, ptr %10, align 4
  br label %256

252:                                              ; preds = %245
  %253 = landingpad { ptr, i32 }
          cleanup
  %254 = extractvalue { ptr, i32 } %253, 0
  store ptr %254, ptr %9, align 8
  %255 = extractvalue { ptr, i32 } %253, 1
  store i32 %255, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %27) #6
  br label %256

256:                                              ; preds = %252, %248
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #6
  br label %327

257:                                              ; preds = %247, %235
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #6
  %258 = load ptr, ptr %5, align 8, !tbaa !5
  %259 = getelementptr inbounds %"struct.Catch::AssertionStats", ptr %258, i32 0, i32 1
  store ptr %259, ptr %28, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #6
  %260 = load ptr, ptr %28, align 8, !tbaa !5
  %261 = call ptr @_ZNKSt6vectorIN5Catch11MessageInfoESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %260) #6
  %262 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.56", ptr %29, i32 0, i32 0
  store ptr %261, ptr %262, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #6
  %263 = load ptr, ptr %28, align 8, !tbaa !5
  %264 = call ptr @_ZNKSt6vectorIN5Catch11MessageInfoESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %263) #6
  %265 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.56", ptr %30, i32 0, i32 0
  store ptr %264, ptr %265, align 8
  br label %266

266:                                              ; preds = %291, %257
  %267 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKN5Catch11MessageInfoESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %29, ptr noundef nonnull align 8 dereferenceable(8) %30) #6
  br i1 %267, label %269, label %268

268:                                              ; preds = %266
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #6
  br label %294

269:                                              ; preds = %266
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #6
  %270 = call noundef nonnull align 8 dereferenceable(72) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN5Catch11MessageInfoESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %29) #6
  store ptr %270, ptr %31, align 8, !tbaa !5
  %271 = load ptr, ptr %31, align 8, !tbaa !5
  %272 = getelementptr inbounds %"struct.Catch::MessageInfo", ptr %271, i32 0, i32 3
  %273 = load i32, ptr %272, align 8, !tbaa !14
  %274 = icmp eq i32 %273, 1
  br i1 %274, label %275, label %290

275:                                              ; preds = %269
  %276 = load ptr, ptr %31, align 8, !tbaa !5
  %277 = getelementptr inbounds %"struct.Catch::MessageInfo", ptr %276, i32 0, i32 1
  %278 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN5Catch20ReusableStringStreamlsINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEERS0_RKT_(ptr noundef nonnull align 8 dereferenceable(16) %20, ptr noundef nonnull align 8 dereferenceable(32) %277)
          to label %279 unwind label %282

279:                                              ; preds = %275
  call void @llvm.lifetime.start.p0(i64 1, ptr %32) #6
  store i8 10, ptr %32, align 1, !tbaa !13
  %280 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN5Catch20ReusableStringStreamlsIcEERS0_RKT_(ptr noundef nonnull align 8 dereferenceable(16) %278, ptr noundef nonnull align 1 dereferenceable(1) %32)
          to label %281 unwind label %286

281:                                              ; preds = %279
  call void @llvm.lifetime.end.p0(i64 1, ptr %32) #6
  br label %290

282:                                              ; preds = %275
  %283 = landingpad { ptr, i32 }
          cleanup
  %284 = extractvalue { ptr, i32 } %283, 0
  store ptr %284, ptr %9, align 8
  %285 = extractvalue { ptr, i32 } %283, 1
  store i32 %285, ptr %10, align 4
  br label %293

286:                                              ; preds = %279
  %287 = landingpad { ptr, i32 }
          cleanup
  %288 = extractvalue { ptr, i32 } %287, 0
  store ptr %288, ptr %9, align 8
  %289 = extractvalue { ptr, i32 } %287, 1
  store i32 %289, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %32) #6
  br label %293

290:                                              ; preds = %281, %269
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #6
  br label %291

291:                                              ; preds = %290
  %292 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKN5Catch11MessageInfoESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %29) #6
  br label %266

293:                                              ; preds = %286, %282
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #6
  br label %327

294:                                              ; preds = %268
  %295 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN5Catch20ReusableStringStreamlsIA4_cEERS0_RKT_(ptr noundef nonnull align 8 dereferenceable(16) %20, ptr noundef nonnull align 1 dereferenceable(4) @.str.18)
          to label %296 unwind label %166

296:                                              ; preds = %294
  call void @llvm.lifetime.start.p0(i64 16, ptr %33) #6
  %297 = load ptr, ptr %7, align 8, !tbaa !5
  %298 = invoke { ptr, i64 } @_ZNK5Catch15AssertionResult13getSourceInfoEv(ptr noundef nonnull align 8 dereferenceable(144) %297)
          to label %299 unwind label %314

299:                                              ; preds = %296
  %300 = getelementptr inbounds { ptr, i64 }, ptr %33, i32 0, i32 0
  %301 = extractvalue { ptr, i64 } %298, 0
  store ptr %301, ptr %300, align 8
  %302 = getelementptr inbounds { ptr, i64 }, ptr %33, i32 0, i32 1
  %303 = extractvalue { ptr, i64 } %298, 1
  store i64 %303, ptr %302, align 8
  %304 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN5Catch20ReusableStringStreamlsINS_14SourceLineInfoEEERS0_RKT_(ptr noundef nonnull align 8 dereferenceable(16) %295, ptr noundef nonnull align 8 dereferenceable(16) %33)
          to label %305 unwind label %314

305:                                              ; preds = %299
  call void @llvm.lifetime.end.p0(i64 16, ptr %33) #6
  %306 = getelementptr inbounds %"class.Catch::SonarQubeReporter", ptr %37, i32 0, i32 1
  call void @llvm.lifetime.start.p0(i64 32, ptr %35) #6
  invoke void @_ZNK5Catch20ReusableStringStream3strB5cxx11Ev(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %35, ptr noundef nonnull align 8 dereferenceable(16) %20)
          to label %307 unwind label %318

307:                                              ; preds = %305
  call void @_ZN5Catch9StringRefC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(16) %34, ptr noundef nonnull align 8 dereferenceable(32) %35) #6
  %308 = getelementptr inbounds { ptr, i64 }, ptr %34, i32 0, i32 0
  %309 = load ptr, ptr %308, align 8
  %310 = getelementptr inbounds { ptr, i64 }, ptr %34, i32 0, i32 1
  %311 = load i64, ptr %310, align 8
  %312 = invoke noundef nonnull align 8 dereferenceable(72) ptr @_ZN5Catch9XmlWriter9writeTextENS_9StringRefENS_13XmlFormattingE(ptr noundef nonnull align 8 dereferenceable(72) %306, ptr %309, i64 %311, i32 noundef 2)
          to label %313 unwind label %322

313:                                              ; preds = %307
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %35) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %35) #6
  call void @_ZN5Catch20ReusableStringStreamD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %20) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #6
  call void @_ZN5Catch20ReusableStringStreamD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %12) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #6
  call void @_ZN5Catch9XmlWriter13ScopedElementD1Ev(ptr noundef nonnull align 8 dereferenceable(12) %11) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %8) #6
  br label %333

314:                                              ; preds = %299, %296
  %315 = landingpad { ptr, i32 }
          cleanup
  %316 = extractvalue { ptr, i32 } %315, 0
  store ptr %316, ptr %9, align 8
  %317 = extractvalue { ptr, i32 } %315, 1
  store i32 %317, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %33) #6
  br label %327

318:                                              ; preds = %305
  %319 = landingpad { ptr, i32 }
          cleanup
  %320 = extractvalue { ptr, i32 } %319, 0
  store ptr %320, ptr %9, align 8
  %321 = extractvalue { ptr, i32 } %319, 1
  store i32 %321, ptr %10, align 4
  br label %326

322:                                              ; preds = %307
  %323 = landingpad { ptr, i32 }
          cleanup
  %324 = extractvalue { ptr, i32 } %323, 0
  store ptr %324, ptr %9, align 8
  %325 = extractvalue { ptr, i32 } %323, 1
  store i32 %325, ptr %10, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %35) #6
  br label %326

326:                                              ; preds = %322, %318
  call void @llvm.lifetime.end.p0(i64 32, ptr %35) #6
  br label %327

327:                                              ; preds = %326, %314, %293, %256, %230, %203, %166
  call void @_ZN5Catch20ReusableStringStreamD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %20) #6
  br label %328

328:                                              ; preds = %327, %162
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #6
  br label %329

329:                                              ; preds = %328, %161, %152
  call void @_ZN5Catch20ReusableStringStreamD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %12) #6
  br label %330

330:                                              ; preds = %329, %125
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #6
  call void @_ZN5Catch9XmlWriter13ScopedElementD1Ev(ptr noundef nonnull align 8 dereferenceable(12) %11) #6
  br label %331

331:                                              ; preds = %330, %121
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #6
  br label %332

332:                                              ; preds = %331, %52
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  br label %334

333:                                              ; preds = %313, %42
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  ret void

334:                                              ; preds = %332
  %335 = load ptr, ptr %9, align 8
  %336 = load i32, ptr %10, align 4
  %337 = insertvalue { ptr, i32 } poison, ptr %335, 0
  %338 = insertvalue { ptr, i32 } %337, i32 %336, 1
  resume { ptr, i32 } %338
}

declare noundef zeroext i1 @_ZNK5Catch15AssertionResult4isOkEv(ptr noundef nonnull align 8 dereferenceable(144)) #2

declare noundef i32 @_ZNK5Catch15AssertionResult13getResultTypeEv(ptr noundef nonnull align 8 dereferenceable(144)) #2

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

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

declare void @_ZN5Catch20ReusableStringStreamC1Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZN5Catch20ReusableStringStreamlsINS_9StringRefEEERS0_RKT_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #4 align 2

declare { ptr, i64 } @_ZNK5Catch15AssertionResult16getTestMacroNameEv(ptr noundef nonnull align 8 dereferenceable(144)) #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZN5Catch20ReusableStringStreamlsIcEERS0_RKT_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 1 dereferenceable(1)) #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZN5Catch20ReusableStringStreamlsINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEERS0_RKT_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(32)) #4 align 2

declare void @_ZNK5Catch15AssertionResult13getExpressionB5cxx11Ev(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(144)) #2

declare void @_ZNK5Catch20ReusableStringStream3strB5cxx11Ev(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(16)) #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZN5Catch20ReusableStringStreamlsIA9_cEERS0_RKT_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 1 dereferenceable(9)) #4 align 2

declare noundef zeroext i1 @_ZNK5Catch15AssertionResult13hasExpressionEv(ptr noundef nonnull align 8 dereferenceable(144)) #2

declare void @_ZNK5Catch15AssertionResult20getExpressionInMacroB5cxx11Ev(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(144)) #2

declare noundef zeroext i1 @_ZNK5Catch15AssertionResult21hasExpandedExpressionEv(ptr noundef nonnull align 8 dereferenceable(144)) #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZN5Catch20ReusableStringStreamlsIA18_cEERS0_RKT_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 1 dereferenceable(18)) #4 align 2

declare void @_ZNK5Catch15AssertionResult21getExpandedExpressionB5cxx11Ev(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(144)) #2

declare noundef zeroext i1 @_ZNK5Catch15AssertionResult10hasMessageEv(ptr noundef nonnull align 8 dereferenceable(144)) #2

declare { ptr, i64 } @_ZNK5Catch15AssertionResult10getMessageEv(ptr noundef nonnull align 8 dereferenceable(144)) #2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPKN5Catch11MessageInfoESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #5

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZN5Catch20ReusableStringStreamlsIA4_cEERS0_RKT_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 1 dereferenceable(4)) #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZN5Catch20ReusableStringStreamlsINS_14SourceLineInfoEEERS0_RKT_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #4 align 2

declare { ptr, i64 } @_ZNK5Catch15AssertionResult13getSourceInfoEv(ptr noundef nonnull align 8 dereferenceable(144)) #2

declare noundef nonnull align 8 dereferenceable(72) ptr @_ZN5Catch9XmlWriter9writeTextENS_9StringRefENS_13XmlFormattingE(ptr noundef nonnull align 8 dereferenceable(72), ptr, i64, i32 noundef) #2

; Function Attrs: nounwind
declare void @_ZN5Catch20ReusableStringStreamD1Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #3

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 = { "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 "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress 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 #5 = { inlinehint 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 #6 = { 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 = !{!7, !7, i64 0}
!14 = !{!15, !21, i64 64}
!15 = !{!"_ZTSN5Catch11MessageInfoE", !16, i64 0, !18, i64 16, !20, i64 48, !21, i64 64, !22, i64 68}
!16 = !{!"_ZTSN5Catch9StringRefE", !6, i64 0, !17, i64 8}
!17 = !{!"long", !7, i64 0}
!18 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !19, i64 0, !17, i64 8, !7, i64 16}
!19 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!20 = !{!"_ZTSN5Catch14SourceLineInfoE", !6, i64 0, !17, i64 8}
!21 = !{!"_ZTSN5Catch9ResultWas6OfTypeE", !7, i64 0}
!22 = !{!"int", !7, 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.Catch::XmlWriter::ScopedElement" = type <{ ptr, i32, [4 x i8] }>
%"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.Catch::ReusableStringStream" = type { i64, ptr }
%"class.Catch::StringRef" = type { ptr, i64 }
%"class.__gnu_cxx::__normal_iterator.56" = type { ptr }
%"struct.Catch::SourceLineInfo" = type { ptr, i64 }

@.str.10 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [4 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 nounwind uwtable
declare dso_local void @_ZN5Catch9StringRefC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #1 align 2

declare noundef i32 @_ZN5CatchorENS_13XmlFormattingES0_(i32 noundef, i32 noundef) local_unnamed_addr #2

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: mustprogress 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 { ptr, i64 } @_ZN5Catchli3_srEPKcm(ptr noundef, i64 noundef) local_unnamed_addr #1

declare void @_ZN5Catch9XmlWriter13scopedElementERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_13XmlFormattingE(ptr dead_on_unwind writable sret(%"class.Catch::XmlWriter::ScopedElement") align 8, ptr noundef nonnull align 8 dereferenceable(72), ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) local_unnamed_addr #2

declare noundef nonnull align 8 dereferenceable(72) ptr @_ZN5Catch9XmlWriter14writeAttributeENS_9StringRefES1_(ptr noundef nonnull align 8 dereferenceable(72), ptr, i64, ptr, i64) local_unnamed_addr #2

; Function Attrs: nounwind
declare void @_ZN5Catch9XmlWriter13ScopedElementD1Ev(ptr noundef nonnull align 8 dereferenceable(12)) unnamed_addr #3

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5Catch17SonarQubeReporter14writeAssertionERKNS_14AssertionStatsEb(ptr noundef nonnull align 8 dereferenceable(248) %0, ptr noundef nonnull align 8 dereferenceable(232) %1, i1 noundef zeroext %2) local_unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.std::__cxx11::basic_string", align 8
  %5 = alloca %"class.Catch::XmlWriter::ScopedElement", align 8
  %6 = alloca %"class.Catch::ReusableStringStream", align 8
  %7 = alloca %"class.Catch::StringRef", align 8
  %8 = alloca i8, align 1
  %9 = alloca %"class.std::__cxx11::basic_string", align 8
  %10 = alloca i8, align 1
  %11 = alloca %"class.Catch::StringRef", align 8
  %12 = alloca %"class.std::__cxx11::basic_string", align 8
  %13 = alloca %"class.Catch::ReusableStringStream", align 8
  %14 = alloca i8, align 1
  %15 = alloca %"class.std::__cxx11::basic_string", align 8
  %16 = alloca i8, align 1
  %17 = alloca %"class.std::__cxx11::basic_string", align 8
  %18 = alloca i8, align 1
  %19 = alloca %"class.Catch::StringRef", align 8
  %20 = alloca i8, align 1
  %21 = alloca %"class.__gnu_cxx::__normal_iterator.56", align 8
  %22 = alloca %"class.__gnu_cxx::__normal_iterator.56", align 8
  %23 = alloca i8, align 1
  %24 = alloca %"struct.Catch::SourceLineInfo", align 8
  %25 = alloca %"class.Catch::StringRef", align 8
  %26 = alloca %"class.std::__cxx11::basic_string", align 8
  %27 = tail call noundef zeroext i1 @_ZNK5Catch15AssertionResult4isOkEv(ptr noundef nonnull align 8 dereferenceable(144) %1)
  br i1 %27, label %28, label %31

28:                                               ; preds = %3
  %29 = tail call noundef i32 @_ZNK5Catch15AssertionResult13getResultTypeEv(ptr noundef nonnull align 8 dereferenceable(144) %1)
  %30 = icmp eq i32 %29, 4
  br i1 %30, label %31, label %216

31:                                               ; preds = %28, %3
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  br i1 %2, label %.invoke, label %34

32:                                               ; preds = %.invoke, %34
  %33 = landingpad { ptr, i32 }
          cleanup
  br label %215

34:                                               ; preds = %31
  %35 = invoke noundef i32 @_ZNK5Catch15AssertionResult13getResultTypeEv(ptr noundef nonnull align 8 dereferenceable(144) %1)
          to label %36 unwind label %32

36:                                               ; preds = %34
  switch i32 %35, label %42 [
    i32 273, label %.invoke
    i32 528, label %.invoke
    i32 18, label %37
    i32 17, label %37
    i32 274, label %37
    i32 4, label %38
    i32 1, label %39
    i32 2, label %39
    i32 0, label %39
    i32 -1, label %39
    i32 16, label %39
    i32 272, label %39
  ]

37:                                               ; preds = %36, %36, %36
  br label %.invoke

38:                                               ; preds = %36
  br label %.invoke

39:                                               ; preds = %36, %36, %36, %36, %36, %36
  br label %.invoke

.invoke:                                          ; preds = %31, %36, %36, %37, %38, %39
  %40 = phi ptr [ @.str.13, %39 ], [ @.str.10, %38 ], [ @.str.12, %37 ], [ @.str.11, %36 ], [ @.str.11, %36 ], [ @.str.10, %31 ]
  %41 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) %4, ptr noundef nonnull %40)
          to label %42 unwind label %32

42:                                               ; preds = %.invoke, %36
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #6
  %43 = getelementptr inbounds i8, ptr %0, i64 176
  %44 = invoke noundef i32 @_ZN5CatchorENS_13XmlFormattingES0_(i32 noundef 2, i32 noundef 1)
          to label %45 unwind label %77

45:                                               ; preds = %42
  invoke void @_ZN5Catch9XmlWriter13scopedElementERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_13XmlFormattingE(ptr dead_on_unwind nonnull writable sret(%"class.Catch::XmlWriter::ScopedElement") align 8 %5, ptr noundef nonnull align 8 dereferenceable(72) %43, ptr noundef nonnull align 8 dereferenceable(32) %4, i32 noundef %44)
          to label %46 unwind label %77

46:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #6
  invoke void @_ZN5Catch20ReusableStringStreamC1Ev(ptr noundef nonnull align 8 dereferenceable(16) %6)
          to label %47 unwind label %79

47:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #6
  %48 = invoke { ptr, i64 } @_ZNK5Catch15AssertionResult16getTestMacroNameEv(ptr noundef nonnull align 8 dereferenceable(144) %1)
          to label %49 unwind label %81

49:                                               ; preds = %47
  %50 = extractvalue { ptr, i64 } %48, 0
  store ptr %50, ptr %7, align 8
  %51 = getelementptr inbounds i8, ptr %7, i64 8
  %52 = extractvalue { ptr, i64 } %48, 1
  store i64 %52, ptr %51, align 8
  %53 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN5Catch20ReusableStringStreamlsINS_9StringRefEEERS0_RKT_(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull align 8 dereferenceable(16) %7)
          to label %54 unwind label %81

54:                                               ; preds = %49
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %8) #6
  store i8 40, ptr %8, align 1, !tbaa !5
  %55 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN5Catch20ReusableStringStreamlsIcEERS0_RKT_(ptr noundef nonnull align 8 dereferenceable(16) %53, ptr noundef nonnull align 1 dereferenceable(1) %8)
          to label %56 unwind label %83

56:                                               ; preds = %54
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %9) #6
  invoke void @_ZNK5Catch15AssertionResult13getExpressionB5cxx11Ev(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %9, ptr noundef nonnull align 8 dereferenceable(144) %1)
          to label %57 unwind label %85

57:                                               ; preds = %56
  %58 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN5Catch20ReusableStringStreamlsINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEERS0_RKT_(ptr noundef nonnull align 8 dereferenceable(16) %55, ptr noundef nonnull align 8 dereferenceable(32) %9)
          to label %59 unwind label %87

59:                                               ; preds = %57
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %10) #6
  store i8 41, ptr %10, align 1, !tbaa !5
  %60 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN5Catch20ReusableStringStreamlsIcEERS0_RKT_(ptr noundef nonnull align 8 dereferenceable(16) %58, ptr noundef nonnull align 1 dereferenceable(1) %10)
          to label %61 unwind label %89

61:                                               ; preds = %59
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #6
  %62 = call { ptr, i64 } @_ZN5Catchli3_srEPKcm(ptr noundef nonnull @.str.14, i64 noundef 7) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %12) #6
  invoke void @_ZNK5Catch20ReusableStringStream3strB5cxx11Ev(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %12, ptr noundef nonnull align 8 dereferenceable(16) %6)
          to label %63 unwind label %95

63:                                               ; preds = %61
  %64 = extractvalue { ptr, i64 } %62, 1
  %65 = extractvalue { ptr, i64 } %62, 0
  call void @_ZN5Catch9StringRefC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef nonnull align 8 dereferenceable(32) %12) #6
  %66 = load ptr, ptr %11, align 8
  %67 = getelementptr inbounds i8, ptr %11, i64 8
  %68 = load i64, ptr %67, align 8
  %69 = invoke noundef nonnull align 8 dereferenceable(72) ptr @_ZN5Catch9XmlWriter14writeAttributeENS_9StringRefES1_(ptr noundef nonnull align 8 dereferenceable(72) %43, ptr %65, i64 %64, ptr %66, i64 %68)
          to label %70 unwind label %97

70:                                               ; preds = %63
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %12) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #6
  invoke void @_ZN5Catch20ReusableStringStreamC1Ev(ptr noundef nonnull align 8 dereferenceable(16) %13)
          to label %71 unwind label %100

71:                                               ; preds = %70
  %72 = invoke noundef i32 @_ZNK5Catch15AssertionResult13getResultTypeEv(ptr noundef nonnull align 8 dereferenceable(144) %1)
          to label %73 unwind label %102

73:                                               ; preds = %71
  %74 = icmp eq i32 %72, 4
  br i1 %74, label %75, label %104

75:                                               ; preds = %73
  %76 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN5Catch20ReusableStringStreamlsIA9_cEERS0_RKT_(ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef nonnull align 1 dereferenceable(9) @.str.15)
          to label %147 unwind label %102

77:                                               ; preds = %45, %42
  %78 = landingpad { ptr, i32 }
          cleanup
  br label %214

79:                                               ; preds = %46
  %80 = landingpad { ptr, i32 }
          cleanup
  br label %213

81:                                               ; preds = %49, %47
  %82 = landingpad { ptr, i32 }
          cleanup
  br label %94

83:                                               ; preds = %54
  %84 = landingpad { ptr, i32 }
          cleanup
  br label %93

85:                                               ; preds = %56
  %86 = landingpad { ptr, i32 }
          cleanup
  br label %92

87:                                               ; preds = %57
  %88 = landingpad { ptr, i32 }
          cleanup
  br label %91

89:                                               ; preds = %59
  %90 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #6
  br label %91

91:                                               ; preds = %89, %87
  %.pn = phi { ptr, i32 } [ %90, %89 ], [ %88, %87 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #6
  br label %92

92:                                               ; preds = %91, %85
  %.pn.pn = phi { ptr, i32 } [ %.pn, %91 ], [ %86, %85 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #6
  br label %93

93:                                               ; preds = %92, %83
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %92 ], [ %84, %83 ]
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #6
  br label %94

94:                                               ; preds = %93, %81
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %93 ], [ %82, %81 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #6
  br label %212

95:                                               ; preds = %61
  %96 = landingpad { ptr, i32 }
          cleanup
  br label %99

97:                                               ; preds = %63
  %98 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #6
  br label %99

99:                                               ; preds = %97, %95
  %.pn45 = phi { ptr, i32 } [ %98, %97 ], [ %96, %95 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %12) #6
  br label %212

100:                                              ; preds = %70
  %101 = landingpad { ptr, i32 }
          cleanup
  br label %211

102:                                              ; preds = %._crit_edge, %147, %131, %128, %106, %104, %75, %71
  %103 = landingpad { ptr, i32 }
          cleanup
  br label %210

104:                                              ; preds = %73
  %105 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN5Catch20ReusableStringStreamlsIA9_cEERS0_RKT_(ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef nonnull align 1 dereferenceable(9) @.str.16)
          to label %106 unwind label %102

106:                                              ; preds = %104
  %107 = invoke noundef zeroext i1 @_ZNK5Catch15AssertionResult13hasExpressionEv(ptr noundef nonnull align 8 dereferenceable(144) %1)
          to label %108 unwind label %102

108:                                              ; preds = %106
  br i1 %107, label %109, label %128

109:                                              ; preds = %108
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %14) #6
  store i8 9, ptr %14, align 1, !tbaa !5
  %110 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN5Catch20ReusableStringStreamlsIcEERS0_RKT_(ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef nonnull align 1 dereferenceable(1) %14)
          to label %111 unwind label %117

111:                                              ; preds = %109
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %15) #6
  invoke void @_ZNK5Catch15AssertionResult20getExpressionInMacroB5cxx11Ev(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %15, ptr noundef nonnull align 8 dereferenceable(144) %1)
          to label %112 unwind label %119

112:                                              ; preds = %111
  %113 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN5Catch20ReusableStringStreamlsINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEERS0_RKT_(ptr noundef nonnull align 8 dereferenceable(16) %110, ptr noundef nonnull align 8 dereferenceable(32) %15)
          to label %114 unwind label %121

114:                                              ; preds = %112
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %16) #6
  store i8 10, ptr %16, align 1, !tbaa !5
  %115 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN5Catch20ReusableStringStreamlsIcEERS0_RKT_(ptr noundef nonnull align 8 dereferenceable(16) %113, ptr noundef nonnull align 1 dereferenceable(1) %16)
          to label %116 unwind label %123

116:                                              ; preds = %114
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %16) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %15) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %14) #6
  br label %128

117:                                              ; preds = %109
  %118 = landingpad { ptr, i32 }
          cleanup
  br label %127

119:                                              ; preds = %111
  %120 = landingpad { ptr, i32 }
          cleanup
  br label %126

121:                                              ; preds = %112
  %122 = landingpad { ptr, i32 }
          cleanup
  br label %125

123:                                              ; preds = %114
  %124 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %16) #6
  br label %125

125:                                              ; preds = %123, %121
  %.pn47 = phi { ptr, i32 } [ %124, %123 ], [ %122, %121 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #6
  br label %126

126:                                              ; preds = %125, %119
  %.pn47.pn = phi { ptr, i32 } [ %.pn47, %125 ], [ %120, %119 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %15) #6
  br label %127

127:                                              ; preds = %126, %117
  %.pn47.pn.pn = phi { ptr, i32 } [ %.pn47.pn, %126 ], [ %118, %117 ]
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %14) #6
  br label %210

128:                                              ; preds = %116, %108
  %129 = invoke noundef zeroext i1 @_ZNK5Catch15AssertionResult21hasExpandedExpressionEv(ptr noundef nonnull align 8 dereferenceable(144) %1)
          to label %130 unwind label %102

130:                                              ; preds = %128
  br i1 %129, label %131, label %147

131:                                              ; preds = %130
  %132 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN5Catch20ReusableStringStreamlsIA18_cEERS0_RKT_(ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef nonnull align 1 dereferenceable(18) @.str.17)
          to label %133 unwind label %102

133:                                              ; preds = %131
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %17) #6
  invoke void @_ZNK5Catch15AssertionResult21getExpandedExpressionB5cxx11Ev(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %17, ptr noundef nonnull align 8 dereferenceable(144) %1)
          to label %134 unwind label %139

134:                                              ; preds = %133
  %135 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN5Catch20ReusableStringStreamlsINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEERS0_RKT_(ptr noundef nonnull align 8 dereferenceable(16) %132, ptr noundef nonnull align 8 dereferenceable(32) %17)
          to label %136 unwind label %141

136:                                              ; preds = %134
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %18) #6
  store i8 10, ptr %18, align 1, !tbaa !5
  %137 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN5Catch20ReusableStringStreamlsIcEERS0_RKT_(ptr noundef nonnull align 8 dereferenceable(16) %135, ptr noundef nonnull align 1 dereferenceable(1) %18)
          to label %138 unwind label %143

138:                                              ; preds = %136
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %18) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %17) #6
  br label %147

139:                                              ; preds = %133
  %140 = landingpad { ptr, i32 }
          cleanup
  br label %146

141:                                              ; preds = %134
  %142 = landingpad { ptr, i32 }
          cleanup
  br label %145

143:                                              ; preds = %136
  %144 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %18) #6
  br label %145

145:                                              ; preds = %143, %141
  %.pn51 = phi { ptr, i32 } [ %144, %143 ], [ %142, %141 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #6
  br label %146

146:                                              ; preds = %145, %139
  %.pn51.pn = phi { ptr, i32 } [ %.pn51, %145 ], [ %140, %139 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %17) #6
  br label %210

147:                                              ; preds = %130, %138, %75
  %148 = invoke noundef zeroext i1 @_ZNK5Catch15AssertionResult10hasMessageEv(ptr noundef nonnull align 8 dereferenceable(144) %1)
          to label %149 unwind label %102

149:                                              ; preds = %147
  br i1 %148, label %150, label %165

150:                                              ; preds = %149
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %19) #6
  %151 = invoke { ptr, i64 } @_ZNK5Catch15AssertionResult10getMessageEv(ptr noundef nonnull align 8 dereferenceable(144) %1)
          to label %152 unwind label %160

152:                                              ; preds = %150
  %153 = extractvalue { ptr, i64 } %151, 0
  store ptr %153, ptr %19, align 8
  %154 = getelementptr inbounds i8, ptr %19, i64 8
  %155 = extractvalue { ptr, i64 } %151, 1
  store i64 %155, ptr %154, align 8
  %156 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN5Catch20ReusableStringStreamlsINS_9StringRefEEERS0_RKT_(ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef nonnull align 8 dereferenceable(16) %19)
          to label %157 unwind label %160

157:                                              ; preds = %152
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %20) #6
  store i8 10, ptr %20, align 1, !tbaa !5
  %158 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN5Catch20ReusableStringStreamlsIcEERS0_RKT_(ptr noundef nonnull align 8 dereferenceable(16) %156, ptr noundef nonnull align 1 dereferenceable(1) %20)
          to label %159 unwind label %162

159:                                              ; preds = %157
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %20) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %19) #6
  br label %165

160:                                              ; preds = %152, %150
  %161 = landingpad { ptr, i32 }
          cleanup
  br label %164

162:                                              ; preds = %157
  %163 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %20) #6
  br label %164

164:                                              ; preds = %162, %160
  %.pn54 = phi { ptr, i32 } [ %163, %162 ], [ %161, %160 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %19) #6
  br label %210

165:                                              ; preds = %159, %149
  %166 = getelementptr inbounds i8, ptr %1, i64 144
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %21) #6
  %167 = call ptr @_ZNKSt6vectorIN5Catch11MessageInfoESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %166) #6
  store ptr %167, ptr %21, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %22) #6
  %168 = call ptr @_ZNKSt6vectorIN5Catch11MessageInfoESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %166) #6
  store ptr %168, ptr %22, align 8
  %169 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKN5Catch11MessageInfoESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %21, ptr noundef nonnull align 8 dereferenceable(8) %22) #6
  br i1 %169, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %185, %165
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %22) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %21) #6
  %170 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN5Catch20ReusableStringStreamlsIA4_cEERS0_RKT_(ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef nonnull align 1 dereferenceable(4) @.str.18)
          to label %189 unwind label %102

.lr.ph:                                           ; preds = %165, %185
  %171 = call noundef nonnull align 8 dereferenceable(72) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN5Catch11MessageInfoESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %21) #6
  %172 = getelementptr inbounds i8, ptr %171, i64 64
  %173 = load i32, ptr %172, align 8, !tbaa !8
  %174 = icmp eq i32 %173, 1
  br i1 %174, label %175, label %185

175:                                              ; preds = %.lr.ph
  %176 = getelementptr inbounds i8, ptr %171, i64 16
  %177 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN5Catch20ReusableStringStreamlsINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEERS0_RKT_(ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef nonnull align 8 dereferenceable(32) %176)
          to label %178 unwind label %181

178:                                              ; preds = %175
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %23) #6
  store i8 10, ptr %23, align 1, !tbaa !5
  %179 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN5Catch20ReusableStringStreamlsIcEERS0_RKT_(ptr noundef nonnull align 8 dereferenceable(16) %177, ptr noundef nonnull align 1 dereferenceable(1) %23)
          to label %180 unwind label %183

180:                                              ; preds = %178
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %23) #6
  br label %185

181:                                              ; preds = %175
  %182 = landingpad { ptr, i32 }
          cleanup
  br label %188

183:                                              ; preds = %178
  %184 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %23) #6
  br label %188

185:                                              ; preds = %180, %.lr.ph
  %186 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKN5Catch11MessageInfoESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %21) #6
  %187 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKN5Catch11MessageInfoESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %21, ptr noundef nonnull align 8 dereferenceable(8) %22) #6
  br i1 %187, label %.lr.ph, label %._crit_edge

188:                                              ; preds = %183, %181
  %.pn58 = phi { ptr, i32 } [ %184, %183 ], [ %182, %181 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %22) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %21) #6
  br label %210

189:                                              ; preds = %._crit_edge
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %24) #6
  %190 = invoke { ptr, i64 } @_ZNK5Catch15AssertionResult13getSourceInfoEv(ptr noundef nonnull align 8 dereferenceable(144) %1)
          to label %191 unwind label %203

191:                                              ; preds = %189
  %192 = extractvalue { ptr, i64 } %190, 0
  store ptr %192, ptr %24, align 8
  %193 = getelementptr inbounds i8, ptr %24, i64 8
  %194 = extractvalue { ptr, i64 } %190, 1
  store i64 %194, ptr %193, align 8
  %195 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN5Catch20ReusableStringStreamlsINS_14SourceLineInfoEEERS0_RKT_(ptr noundef nonnull align 8 dereferenceable(16) %170, ptr noundef nonnull align 8 dereferenceable(16) %24)
          to label %196 unwind label %203

196:                                              ; preds = %191
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %24) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %26) #6
  invoke void @_ZNK5Catch20ReusableStringStream3strB5cxx11Ev(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %26, ptr noundef nonnull align 8 dereferenceable(16) %13)
          to label %197 unwind label %205

197:                                              ; preds = %196
  call void @_ZN5Catch9StringRefC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(16) %25, ptr noundef nonnull align 8 dereferenceable(32) %26) #6
  %198 = load ptr, ptr %25, align 8
  %199 = getelementptr inbounds i8, ptr %25, i64 8
  %200 = load i64, ptr %199, align 8
  %201 = invoke noundef nonnull align 8 dereferenceable(72) ptr @_ZN5Catch9XmlWriter9writeTextENS_9StringRefENS_13XmlFormattingE(ptr noundef nonnull align 8 dereferenceable(72) %43, ptr %198, i64 %200, i32 noundef 2)
          to label %202 unwind label %207

202:                                              ; preds = %197
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %26) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %26) #6
  call void @_ZN5Catch20ReusableStringStreamD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %13) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #6
  call void @_ZN5Catch20ReusableStringStreamD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #6
  call void @_ZN5Catch9XmlWriter13ScopedElementD1Ev(ptr noundef nonnull align 8 dereferenceable(12) %5) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #6
  br label %216

203:                                              ; preds = %191, %189
  %204 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %24) #6
  br label %210

205:                                              ; preds = %196
  %206 = landingpad { ptr, i32 }
          cleanup
  br label %209

207:                                              ; preds = %197
  %208 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %26) #6
  br label %209

209:                                              ; preds = %207, %205
  %.pn56 = phi { ptr, i32 } [ %208, %207 ], [ %206, %205 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %26) #6
  br label %210

210:                                              ; preds = %209, %203, %188, %164, %146, %127, %102
  %.pn58.pn = phi { ptr, i32 } [ %.pn58, %188 ], [ %.pn56, %209 ], [ %204, %203 ], [ %103, %102 ], [ %.pn54, %164 ], [ %.pn51.pn, %146 ], [ %.pn47.pn.pn, %127 ]
  call void @_ZN5Catch20ReusableStringStreamD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %13) #6
  br label %211

211:                                              ; preds = %210, %100
  %.pn58.pn.pn = phi { ptr, i32 } [ %.pn58.pn, %210 ], [ %101, %100 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #6
  br label %212

212:                                              ; preds = %211, %99, %94
  %.pn58.pn.pn.pn = phi { ptr, i32 } [ %.pn58.pn.pn, %211 ], [ %.pn45, %99 ], [ %.pn.pn.pn.pn, %94 ]
  call void @_ZN5Catch20ReusableStringStreamD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #6
  br label %213

213:                                              ; preds = %212, %79
  %.pn58.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn58.pn.pn.pn, %212 ], [ %80, %79 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #6
  call void @_ZN5Catch9XmlWriter13ScopedElementD1Ev(ptr noundef nonnull align 8 dereferenceable(12) %5) #6
  br label %214

214:                                              ; preds = %213, %77
  %.pn58.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn58.pn.pn.pn.pn, %213 ], [ %78, %77 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #6
  br label %215

215:                                              ; preds = %214, %32
  %.pn58.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn58.pn.pn.pn.pn.pn, %214 ], [ %33, %32 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #6
  resume { ptr, i32 } %.pn58.pn.pn.pn.pn.pn.pn

216:                                              ; preds = %202, %28
  ret void
}

declare noundef zeroext i1 @_ZNK5Catch15AssertionResult4isOkEv(ptr noundef nonnull align 8 dereferenceable(144)) local_unnamed_addr #2

declare noundef i32 @_ZNK5Catch15AssertionResult13getResultTypeEv(ptr noundef nonnull align 8 dereferenceable(144)) local_unnamed_addr #2

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

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

declare void @_ZN5Catch20ReusableStringStreamC1Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZN5Catch20ReusableStringStreamlsINS_9StringRefEEERS0_RKT_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #4 align 2

declare { ptr, i64 } @_ZNK5Catch15AssertionResult16getTestMacroNameEv(ptr noundef nonnull align 8 dereferenceable(144)) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZN5Catch20ReusableStringStreamlsIcEERS0_RKT_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZN5Catch20ReusableStringStreamlsINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEERS0_RKT_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #4 align 2

declare void @_ZNK5Catch15AssertionResult13getExpressionB5cxx11Ev(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(144)) local_unnamed_addr #2

declare void @_ZNK5Catch20ReusableStringStream3strB5cxx11Ev(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZN5Catch20ReusableStringStreamlsIA9_cEERS0_RKT_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 1 dereferenceable(9)) local_unnamed_addr #4 align 2

declare noundef zeroext i1 @_ZNK5Catch15AssertionResult13hasExpressionEv(ptr noundef nonnull align 8 dereferenceable(144)) local_unnamed_addr #2

declare void @_ZNK5Catch15AssertionResult20getExpressionInMacroB5cxx11Ev(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(144)) local_unnamed_addr #2

declare noundef zeroext i1 @_ZNK5Catch15AssertionResult21hasExpandedExpressionEv(ptr noundef nonnull align 8 dereferenceable(144)) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZN5Catch20ReusableStringStreamlsIA18_cEERS0_RKT_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 1 dereferenceable(18)) local_unnamed_addr #4 align 2

declare void @_ZNK5Catch15AssertionResult21getExpandedExpressionB5cxx11Ev(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(144)) local_unnamed_addr #2

declare noundef zeroext i1 @_ZNK5Catch15AssertionResult10hasMessageEv(ptr noundef nonnull align 8 dereferenceable(144)) local_unnamed_addr #2

declare { ptr, i64 } @_ZNK5Catch15AssertionResult10getMessageEv(ptr noundef nonnull align 8 dereferenceable(144)) local_unnamed_addr #2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPKN5Catch11MessageInfoESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #5

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZN5Catch20ReusableStringStreamlsIA4_cEERS0_RKT_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 1 dereferenceable(4)) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZN5Catch20ReusableStringStreamlsINS_14SourceLineInfoEEERS0_RKT_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #4 align 2

declare { ptr, i64 } @_ZNK5Catch15AssertionResult13getSourceInfoEv(ptr noundef nonnull align 8 dereferenceable(144)) local_unnamed_addr #2

declare noundef nonnull align 8 dereferenceable(72) ptr @_ZN5Catch9XmlWriter9writeTextENS_9StringRefENS_13XmlFormattingE(ptr noundef nonnull align 8 dereferenceable(72), ptr, i64, i32 noundef) local_unnamed_addr #2

; Function Attrs: nounwind
declare void @_ZN5Catch20ReusableStringStreamD1Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #3

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 = { "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 "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress 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 #5 = { inlinehint 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 #6 = { 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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !16, i64 64}
!9 = !{!"_ZTSN5Catch11MessageInfoE", !10, i64 0, !13, i64 16, !15, i64 48, !16, i64 64, !17, i64 68}
!10 = !{!"_ZTSN5Catch9StringRefE", !11, i64 0, !12, i64 8}
!11 = !{!"any pointer", !6, i64 0}
!12 = !{!"long", !6, i64 0}
!13 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !14, i64 0, !12, i64 8, !6, i64 16}
!14 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !11, i64 0}
!15 = !{!"_ZTSN5Catch14SourceLineInfoE", !11, i64 0, !12, i64 8}
!16 = !{!"_ZTSN5Catch9ResultWas6OfTypeE", !6, i64 0}
!17 = !{!"int", !6, i64 0}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass