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

; 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.__gnu_cxx::__normal_iterator" = type { ptr }
%"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.std::allocator.9" = type { i8 }
%"class.Catch::StringRef" = type { ptr, i64 }
%"struct.Catch::SourceLineInfo" = type { ptr, i64 }
%"struct.Catch::AssertionStats" = type { %"class.Catch::AssertionResult", %"class.std::vector.22", %"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.22" = type { %"struct.std::_Vector_base.23" }
%"struct.std::_Vector_base.23" = 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::IEventListener" = type { ptr, %"struct.Catch::ReporterPreferences", ptr }
%"struct.Catch::ReporterPreferences" = type { i8, i8 }
%"struct.Catch::MessageInfo" = type { %"class.Catch::StringRef", %"class.std::__cxx11::basic_string", %"struct.Catch::SourceLineInfo", i32, i32 }
%"class.Catch::XmlReporter" = type <{ %"class.Catch::StreamingReporterBase", %"class.Catch::Timer", %"class.Catch::XmlWriter", i32, [4 x i8] }>
%"class.Catch::StreamingReporterBase" = type { %"class.Catch::ReporterBase", %"struct.Catch::TestRunInfo", ptr, %"class.std::vector" }
%"class.Catch::ReporterBase" = type { %"class.Catch::IEventListener", %"class.Catch::Detail::unique_ptr", ptr, %"class.Catch::Detail::unique_ptr.0", %"class.std::map" }
%"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 }
%"struct.Catch::TestRunInfo" = type { %"class.Catch::StringRef" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<Catch::SectionInfo, std::allocator<Catch::SectionInfo>>::_Vector_impl" }
%"struct.std::_Vector_base<Catch::SectionInfo, std::allocator<Catch::SectionInfo>>::_Vector_impl" = type { %"struct.std::_Vector_base<Catch::SectionInfo, std::allocator<Catch::SectionInfo>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Catch::SectionInfo, std::allocator<Catch::SectionInfo>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.Catch::Timer" = type { i64 }
%"class.Catch::XmlWriter" = type { i8, i8, %"class.std::vector.4", %"class.std::__cxx11::basic_string", ptr }
%"class.std::vector.4" = type { %"struct.std::_Vector_base.5" }
%"struct.std::_Vector_base.5" = 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 }

@.str.12 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [5 x i8], align 1

declare i32 @__gxx_personality_v0(...)

; 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 void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) 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 uwtable
declare dso_local void @_ZN5Catch11XmlReporter15writeSourceInfoERKNS_14SourceLineInfoE(ptr noundef nonnull align 8 dereferenceable(228), ptr noundef nonnull align 8 dereferenceable(16)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { ptr, i64 } @_ZN5Catchli3_srEPKcm(ptr noundef, i64 noundef) #1

; 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 nonnull align 8 dereferenceable(72) ptr @_ZN5Catch9XmlWriter12startElementERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_13XmlFormattingE(ptr noundef nonnull align 8 dereferenceable(72), ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) #3

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

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

; 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 uwtable
define dso_local void @_ZN5Catch11XmlReporter14assertionEndedERKNS_14AssertionStatsE(ptr noundef nonnull align 8 dereferenceable(228) %0, ptr noundef nonnull align 8 dereferenceable(232) %1) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i8, align 1
  %7 = alloca ptr, align 8
  %8 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %9 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %10 = alloca ptr, align 8
  %11 = alloca %"class.Catch::XmlWriter::ScopedElement", align 8
  %12 = alloca %"class.std::__cxx11::basic_string", align 8
  %13 = alloca %"class.std::allocator.9", align 1
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca %"class.Catch::StringRef", align 8
  %17 = alloca %"class.Catch::XmlWriter::ScopedElement", align 8
  %18 = alloca %"class.std::__cxx11::basic_string", align 8
  %19 = alloca %"class.std::allocator.9", align 1
  %20 = alloca %"class.Catch::StringRef", align 8
  %21 = alloca i32, align 4
  %22 = alloca %"class.std::__cxx11::basic_string", align 8
  %23 = alloca %"class.std::allocator.9", align 1
  %24 = alloca %"class.Catch::StringRef", align 8
  %25 = alloca %"class.Catch::StringRef", align 8
  %26 = alloca %"class.Catch::StringRef", align 8
  %27 = alloca %"struct.Catch::SourceLineInfo", align 8
  %28 = alloca %"class.Catch::XmlWriter::ScopedElement", align 8
  %29 = alloca %"class.std::__cxx11::basic_string", align 8
  %30 = alloca %"class.std::allocator.9", align 1
  %31 = alloca %"class.Catch::StringRef", align 8
  %32 = alloca %"class.std::__cxx11::basic_string", align 8
  %33 = alloca %"class.Catch::XmlWriter::ScopedElement", align 8
  %34 = alloca %"class.std::__cxx11::basic_string", align 8
  %35 = alloca %"class.std::allocator.9", align 1
  %36 = alloca %"class.Catch::StringRef", align 8
  %37 = alloca %"class.std::__cxx11::basic_string", align 8
  %38 = alloca %"class.std::__cxx11::basic_string", align 8
  %39 = alloca %"class.std::allocator.9", align 1
  %40 = alloca %"struct.Catch::SourceLineInfo", align 8
  %41 = alloca %"class.Catch::StringRef", align 8
  %42 = alloca %"class.std::__cxx11::basic_string", align 8
  %43 = alloca %"class.std::allocator.9", align 1
  %44 = alloca %"struct.Catch::SourceLineInfo", align 8
  %45 = alloca %"class.Catch::StringRef", align 8
  %46 = alloca %"class.Catch::XmlWriter::ScopedElement", align 8
  %47 = alloca %"class.std::__cxx11::basic_string", align 8
  %48 = alloca %"class.std::allocator.9", align 1
  %49 = alloca %"class.Catch::StringRef", align 8
  %50 = alloca %"class.std::__cxx11::basic_string", align 8
  %51 = alloca %"class.std::allocator.9", align 1
  %52 = alloca %"struct.Catch::SourceLineInfo", align 8
  %53 = alloca %"class.Catch::StringRef", align 8
  %54 = alloca %"class.std::__cxx11::basic_string", align 8
  %55 = alloca %"class.std::allocator.9", align 1
  %56 = alloca %"struct.Catch::SourceLineInfo", align 8
  %57 = alloca %"class.Catch::StringRef", align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %58 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  %59 = load ptr, ptr %4, align 8, !tbaa !5
  %60 = getelementptr inbounds %"struct.Catch::AssertionStats", ptr %59, i32 0, i32 0
  store ptr %60, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %6) #6
  %61 = getelementptr inbounds %"class.Catch::IEventListener", ptr %58, i32 0, i32 2
  %62 = load ptr, ptr %61, align 8, !tbaa !9
  %63 = load ptr, ptr %62, align 8, !tbaa !13
  %64 = getelementptr inbounds ptr, ptr %63, i64 4
  %65 = load ptr, ptr %64, align 8
  %66 = call noundef zeroext i1 %65(ptr noundef nonnull align 8 dereferenceable(8) %62)
  br i1 %66, label %71, label %67

67:                                               ; preds = %2
  %68 = load ptr, ptr %5, align 8, !tbaa !5
  %69 = call noundef zeroext i1 @_ZNK5Catch15AssertionResult4isOkEv(ptr noundef nonnull align 8 dereferenceable(144) %68)
  %70 = xor i1 %69, true
  br label %71

71:                                               ; preds = %67, %2
  %72 = phi i1 [ true, %2 ], [ %70, %67 ]
  %73 = zext i1 %72 to i8
  store i8 %73, ptr %6, align 1, !tbaa !15
  %74 = load i8, ptr %6, align 1, !tbaa !15, !range !16, !noundef !17
  %75 = trunc i8 %74 to i1
  br i1 %75, label %80, label %76

76:                                               ; preds = %71
  %77 = load ptr, ptr %5, align 8, !tbaa !5
  %78 = call noundef i32 @_ZNK5Catch15AssertionResult13getResultTypeEv(ptr noundef nonnull align 8 dereferenceable(144) %77)
  %79 = icmp eq i32 %78, 2
  br i1 %79, label %80, label %178

80:                                               ; preds = %76, %71
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  %81 = load ptr, ptr %4, align 8, !tbaa !5
  %82 = getelementptr inbounds %"struct.Catch::AssertionStats", ptr %81, i32 0, i32 1
  store ptr %82, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  %83 = load ptr, ptr %7, align 8, !tbaa !5
  %84 = call ptr @_ZNKSt6vectorIN5Catch11MessageInfoESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %83) #6
  %85 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %8, i32 0, i32 0
  store ptr %84, ptr %85, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  %86 = load ptr, ptr %7, align 8, !tbaa !5
  %87 = call ptr @_ZNKSt6vectorIN5Catch11MessageInfoESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %86) #6
  %88 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %9, i32 0, i32 0
  store ptr %87, ptr %88, align 8
  br label %89

89:                                               ; preds = %174, %80
  %90 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKN5Catch11MessageInfoESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %9) #6
  br i1 %90, label %92, label %91

91:                                               ; preds = %89
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  br label %177

92:                                               ; preds = %89
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  %93 = call noundef nonnull align 8 dereferenceable(72) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN5Catch11MessageInfoESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #6
  store ptr %93, ptr %10, align 8, !tbaa !5
  %94 = load ptr, ptr %10, align 8, !tbaa !5
  %95 = getelementptr inbounds %"struct.Catch::MessageInfo", ptr %94, i32 0, i32 3
  %96 = load i32, ptr %95, align 8, !tbaa !18
  %97 = icmp eq i32 %96, 1
  br i1 %97, label %98, label %134

98:                                               ; preds = %92
  %99 = load i8, ptr %6, align 1, !tbaa !15, !range !16, !noundef !17
  %100 = trunc i8 %99 to i1
  br i1 %100, label %101, label %134

101:                                              ; preds = %98
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #6
  %102 = getelementptr inbounds %"class.Catch::XmlReporter", ptr %58, i32 0, i32 2
  call void @llvm.lifetime.start.p0(i64 32, ptr %12) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %13) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %12, ptr noundef @.str.12, ptr noundef nonnull align 1 dereferenceable(1) %13)
          to label %103 unwind label %120

103:                                              ; preds = %101
  %104 = invoke noundef i32 @_ZN5CatchorENS_13XmlFormattingES0_(i32 noundef 2, i32 noundef 1)
          to label %105 unwind label %124

105:                                              ; preds = %103
  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) %102, ptr noundef nonnull align 8 dereferenceable(32) %12, i32 noundef %104)
          to label %106 unwind label %124

106:                                              ; preds = %105
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %12) #6
  %107 = load ptr, ptr %10, align 8, !tbaa !5
  %108 = getelementptr inbounds %"struct.Catch::MessageInfo", ptr %107, i32 0, i32 2
  invoke void @_ZN5Catch11XmlReporter15writeSourceInfoERKNS_14SourceLineInfoE(ptr noundef nonnull align 8 dereferenceable(228) %58, ptr noundef nonnull align 8 dereferenceable(16) %108)
          to label %109 unwind label %129

109:                                              ; preds = %106
  %110 = load ptr, ptr %10, align 8, !tbaa !5
  %111 = getelementptr inbounds %"struct.Catch::MessageInfo", ptr %110, i32 0, i32 1
  call void @_ZN5Catch9StringRefC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(16) %16, ptr noundef nonnull align 8 dereferenceable(32) %111) #6
  %112 = invoke noundef i32 @_ZN5CatchorENS_13XmlFormattingES0_(i32 noundef 2, i32 noundef 1)
          to label %113 unwind label %129

113:                                              ; preds = %109
  %114 = getelementptr inbounds { ptr, i64 }, ptr %16, i32 0, i32 0
  %115 = load ptr, ptr %114, align 8
  %116 = getelementptr inbounds { ptr, i64 }, ptr %16, i32 0, i32 1
  %117 = load i64, ptr %116, align 8
  %118 = invoke noundef nonnull align 8 dereferenceable(12) ptr @_ZN5Catch9XmlWriter13ScopedElement9writeTextENS_9StringRefENS_13XmlFormattingE(ptr noundef nonnull align 8 dereferenceable(12) %11, ptr %115, i64 %117, i32 noundef %112)
          to label %119 unwind label %129

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

120:                                              ; preds = %101
  %121 = landingpad { ptr, i32 }
          cleanup
  %122 = extractvalue { ptr, i32 } %121, 0
  store ptr %122, ptr %14, align 8
  %123 = extractvalue { ptr, i32 } %121, 1
  store i32 %123, ptr %15, align 4
  br label %128

124:                                              ; preds = %105, %103
  %125 = landingpad { ptr, i32 }
          cleanup
  %126 = extractvalue { ptr, i32 } %125, 0
  store ptr %126, ptr %14, align 8
  %127 = extractvalue { ptr, i32 } %125, 1
  store i32 %127, ptr %15, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #6
  br label %128

128:                                              ; preds = %124, %120
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %12) #6
  br label %133

129:                                              ; preds = %113, %109, %106
  %130 = landingpad { ptr, i32 }
          cleanup
  %131 = extractvalue { ptr, i32 } %130, 0
  store ptr %131, ptr %14, align 8
  %132 = extractvalue { ptr, i32 } %130, 1
  store i32 %132, ptr %15, align 4
  call void @_ZN5Catch9XmlWriter13ScopedElementD1Ev(ptr noundef nonnull align 8 dereferenceable(12) %11) #6
  br label %133

133:                                              ; preds = %129, %128
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #6
  br label %176

134:                                              ; preds = %98, %92
  %135 = load ptr, ptr %10, align 8, !tbaa !5
  %136 = getelementptr inbounds %"struct.Catch::MessageInfo", ptr %135, i32 0, i32 3
  %137 = load i32, ptr %136, align 8, !tbaa !18
  %138 = icmp eq i32 %137, 2
  br i1 %138, label %139, label %172

139:                                              ; preds = %134
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #6
  %140 = getelementptr inbounds %"class.Catch::XmlReporter", ptr %58, i32 0, i32 2
  call void @llvm.lifetime.start.p0(i64 32, ptr %18) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %19) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %18, ptr noundef @.str.13, ptr noundef nonnull align 1 dereferenceable(1) %19)
          to label %141 unwind label %158

141:                                              ; preds = %139
  %142 = invoke noundef i32 @_ZN5CatchorENS_13XmlFormattingES0_(i32 noundef 2, i32 noundef 1)
          to label %143 unwind label %162

143:                                              ; preds = %141
  invoke void @_ZN5Catch9XmlWriter13scopedElementERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_13XmlFormattingE(ptr dead_on_unwind writable sret(%"class.Catch::XmlWriter::ScopedElement") align 8 %17, ptr noundef nonnull align 8 dereferenceable(72) %140, ptr noundef nonnull align 8 dereferenceable(32) %18, i32 noundef %142)
          to label %144 unwind label %162

144:                                              ; preds = %143
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %18) #6
  %145 = load ptr, ptr %10, align 8, !tbaa !5
  %146 = getelementptr inbounds %"struct.Catch::MessageInfo", ptr %145, i32 0, i32 2
  invoke void @_ZN5Catch11XmlReporter15writeSourceInfoERKNS_14SourceLineInfoE(ptr noundef nonnull align 8 dereferenceable(228) %58, ptr noundef nonnull align 8 dereferenceable(16) %146)
          to label %147 unwind label %167

147:                                              ; preds = %144
  %148 = load ptr, ptr %10, align 8, !tbaa !5
  %149 = getelementptr inbounds %"struct.Catch::MessageInfo", ptr %148, i32 0, i32 1
  call void @_ZN5Catch9StringRefC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(16) %20, ptr noundef nonnull align 8 dereferenceable(32) %149) #6
  %150 = invoke noundef i32 @_ZN5CatchorENS_13XmlFormattingES0_(i32 noundef 2, i32 noundef 1)
          to label %151 unwind label %167

151:                                              ; preds = %147
  %152 = getelementptr inbounds { ptr, i64 }, ptr %20, i32 0, i32 0
  %153 = load ptr, ptr %152, align 8
  %154 = getelementptr inbounds { ptr, i64 }, ptr %20, i32 0, i32 1
  %155 = load i64, ptr %154, align 8
  %156 = invoke noundef nonnull align 8 dereferenceable(12) ptr @_ZN5Catch9XmlWriter13ScopedElement9writeTextENS_9StringRefENS_13XmlFormattingE(ptr noundef nonnull align 8 dereferenceable(12) %17, ptr %153, i64 %155, i32 noundef %150)
          to label %157 unwind label %167

157:                                              ; preds = %151
  call void @_ZN5Catch9XmlWriter13ScopedElementD1Ev(ptr noundef nonnull align 8 dereferenceable(12) %17) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #6
  br label %172

158:                                              ; preds = %139
  %159 = landingpad { ptr, i32 }
          cleanup
  %160 = extractvalue { ptr, i32 } %159, 0
  store ptr %160, ptr %14, align 8
  %161 = extractvalue { ptr, i32 } %159, 1
  store i32 %161, ptr %15, align 4
  br label %166

162:                                              ; preds = %143, %141
  %163 = landingpad { ptr, i32 }
          cleanup
  %164 = extractvalue { ptr, i32 } %163, 0
  store ptr %164, ptr %14, align 8
  %165 = extractvalue { ptr, i32 } %163, 1
  store i32 %165, ptr %15, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #6
  br label %166

166:                                              ; preds = %162, %158
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %18) #6
  br label %171

167:                                              ; preds = %151, %147, %144
  %168 = landingpad { ptr, i32 }
          cleanup
  %169 = extractvalue { ptr, i32 } %168, 0
  store ptr %169, ptr %14, align 8
  %170 = extractvalue { ptr, i32 } %168, 1
  store i32 %170, ptr %15, align 4
  call void @_ZN5Catch9XmlWriter13ScopedElementD1Ev(ptr noundef nonnull align 8 dereferenceable(12) %17) #6
  br label %171

171:                                              ; preds = %167, %166
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #6
  br label %176

172:                                              ; preds = %157, %134
  br label %173

173:                                              ; preds = %172, %119
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  br label %174

174:                                              ; preds = %173
  %175 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKN5Catch11MessageInfoESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #6
  br label %89

176:                                              ; preds = %171, %133
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  br label %521

177:                                              ; preds = %91
  br label %178

178:                                              ; preds = %177, %76
  %179 = load i8, ptr %6, align 1, !tbaa !15, !range !16, !noundef !17
  %180 = trunc i8 %179 to i1
  br i1 %180, label %190, label %181

181:                                              ; preds = %178
  %182 = load ptr, ptr %5, align 8, !tbaa !5
  %183 = call noundef i32 @_ZNK5Catch15AssertionResult13getResultTypeEv(ptr noundef nonnull align 8 dereferenceable(144) %182)
  %184 = icmp ne i32 %183, 2
  br i1 %184, label %185, label %190

185:                                              ; preds = %181
  %186 = load ptr, ptr %5, align 8, !tbaa !5
  %187 = call noundef i32 @_ZNK5Catch15AssertionResult13getResultTypeEv(ptr noundef nonnull align 8 dereferenceable(144) %186)
  %188 = icmp ne i32 %187, 4
  br i1 %188, label %189, label %190

189:                                              ; preds = %185
  store i32 1, ptr %21, align 4
  br label %518

190:                                              ; preds = %185, %181, %178
  %191 = load ptr, ptr %5, align 8, !tbaa !5
  %192 = call noundef zeroext i1 @_ZNK5Catch15AssertionResult13hasExpressionEv(ptr noundef nonnull align 8 dereferenceable(144) %191)
  br i1 %192, label %193, label %319

193:                                              ; preds = %190
  %194 = getelementptr inbounds %"class.Catch::XmlReporter", ptr %58, i32 0, i32 2
  call void @llvm.lifetime.start.p0(i64 32, ptr %22) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %23) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %23) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %22, ptr noundef @.str.14, ptr noundef nonnull align 1 dereferenceable(1) %23)
          to label %195 unwind label %272

195:                                              ; preds = %193
  %196 = invoke noundef i32 @_ZN5CatchorENS_13XmlFormattingES0_(i32 noundef 2, i32 noundef 1)
          to label %197 unwind label %276

197:                                              ; preds = %195
  %198 = invoke noundef nonnull align 8 dereferenceable(72) ptr @_ZN5Catch9XmlWriter12startElementERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_13XmlFormattingE(ptr noundef nonnull align 8 dereferenceable(72) %194, ptr noundef nonnull align 8 dereferenceable(32) %22, i32 noundef %196)
          to label %199 unwind label %276

199:                                              ; preds = %197
  %200 = call { ptr, i64 } @_ZN5Catchli3_srEPKcm(ptr noundef @.str.15, i64 noundef 7) #6
  %201 = getelementptr inbounds { ptr, i64 }, ptr %24, i32 0, i32 0
  %202 = extractvalue { ptr, i64 } %200, 0
  store ptr %202, ptr %201, align 8
  %203 = getelementptr inbounds { ptr, i64 }, ptr %24, i32 0, i32 1
  %204 = extractvalue { ptr, i64 } %200, 1
  store i64 %204, ptr %203, align 8
  %205 = load ptr, ptr %5, align 8, !tbaa !5
  %206 = invoke noundef zeroext i1 @_ZNK5Catch15AssertionResult9succeededEv(ptr noundef nonnull align 8 dereferenceable(144) %205)
          to label %207 unwind label %276

207:                                              ; preds = %199
  %208 = getelementptr inbounds { ptr, i64 }, ptr %24, i32 0, i32 0
  %209 = load ptr, ptr %208, align 8
  %210 = getelementptr inbounds { ptr, i64 }, ptr %24, i32 0, i32 1
  %211 = load i64, ptr %210, align 8
  %212 = invoke noundef nonnull align 8 dereferenceable(72) ptr @_ZN5Catch9XmlWriter14writeAttributeENS_9StringRefEb(ptr noundef nonnull align 8 dereferenceable(72) %198, ptr %209, i64 %211, i1 noundef zeroext %206)
          to label %213 unwind label %276

213:                                              ; preds = %207
  %214 = call { ptr, i64 } @_ZN5Catchli3_srEPKcm(ptr noundef @.str.16, i64 noundef 4) #6
  %215 = getelementptr inbounds { ptr, i64 }, ptr %25, i32 0, i32 0
  %216 = extractvalue { ptr, i64 } %214, 0
  store ptr %216, ptr %215, align 8
  %217 = getelementptr inbounds { ptr, i64 }, ptr %25, i32 0, i32 1
  %218 = extractvalue { ptr, i64 } %214, 1
  store i64 %218, ptr %217, align 8
  %219 = load ptr, ptr %5, align 8, !tbaa !5
  %220 = invoke { ptr, i64 } @_ZNK5Catch15AssertionResult16getTestMacroNameEv(ptr noundef nonnull align 8 dereferenceable(144) %219)
          to label %221 unwind label %276

221:                                              ; preds = %213
  %222 = getelementptr inbounds { ptr, i64 }, ptr %26, i32 0, i32 0
  %223 = extractvalue { ptr, i64 } %220, 0
  store ptr %223, ptr %222, align 8
  %224 = getelementptr inbounds { ptr, i64 }, ptr %26, i32 0, i32 1
  %225 = extractvalue { ptr, i64 } %220, 1
  store i64 %225, ptr %224, align 8
  %226 = getelementptr inbounds { ptr, i64 }, ptr %25, i32 0, i32 0
  %227 = load ptr, ptr %226, align 8
  %228 = getelementptr inbounds { ptr, i64 }, ptr %25, i32 0, i32 1
  %229 = load i64, ptr %228, align 8
  %230 = getelementptr inbounds { ptr, i64 }, ptr %26, i32 0, i32 0
  %231 = load ptr, ptr %230, align 8
  %232 = getelementptr inbounds { ptr, i64 }, ptr %26, i32 0, i32 1
  %233 = load i64, ptr %232, align 8
  %234 = invoke noundef nonnull align 8 dereferenceable(72) ptr @_ZN5Catch9XmlWriter14writeAttributeENS_9StringRefES1_(ptr noundef nonnull align 8 dereferenceable(72) %212, ptr %227, i64 %229, ptr %231, i64 %233)
          to label %235 unwind label %276

235:                                              ; preds = %221
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %23) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %22) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %27) #6
  %236 = load ptr, ptr %5, align 8, !tbaa !5
  %237 = call { ptr, i64 } @_ZNK5Catch15AssertionResult13getSourceInfoEv(ptr noundef nonnull align 8 dereferenceable(144) %236)
  %238 = getelementptr inbounds { ptr, i64 }, ptr %27, i32 0, i32 0
  %239 = extractvalue { ptr, i64 } %237, 0
  store ptr %239, ptr %238, align 8
  %240 = getelementptr inbounds { ptr, i64 }, ptr %27, i32 0, i32 1
  %241 = extractvalue { ptr, i64 } %237, 1
  store i64 %241, ptr %240, align 8
  call void @_ZN5Catch11XmlReporter15writeSourceInfoERKNS_14SourceLineInfoE(ptr noundef nonnull align 8 dereferenceable(228) %58, ptr noundef nonnull align 8 dereferenceable(16) %27)
  call void @llvm.lifetime.end.p0(i64 16, ptr %27) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %28) #6
  %242 = getelementptr inbounds %"class.Catch::XmlReporter", ptr %58, i32 0, i32 2
  call void @llvm.lifetime.start.p0(i64 32, ptr %29) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %30) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %30) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %29, ptr noundef @.str.17, ptr noundef nonnull align 1 dereferenceable(1) %30)
          to label %243 unwind label %281

243:                                              ; preds = %235
  %244 = invoke noundef i32 @_ZN5CatchorENS_13XmlFormattingES0_(i32 noundef 2, i32 noundef 1)
          to label %245 unwind label %285

245:                                              ; preds = %243
  invoke void @_ZN5Catch9XmlWriter13scopedElementERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_13XmlFormattingE(ptr dead_on_unwind writable sret(%"class.Catch::XmlWriter::ScopedElement") align 8 %28, ptr noundef nonnull align 8 dereferenceable(72) %242, ptr noundef nonnull align 8 dereferenceable(32) %29, i32 noundef %244)
          to label %246 unwind label %285

246:                                              ; preds = %245
  call void @llvm.lifetime.start.p0(i64 32, ptr %32) #6
  %247 = load ptr, ptr %5, align 8, !tbaa !5
  invoke void @_ZNK5Catch15AssertionResult13getExpressionB5cxx11Ev(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %32, ptr noundef nonnull align 8 dereferenceable(144) %247)
          to label %248 unwind label %289

248:                                              ; preds = %246
  call void @_ZN5Catch9StringRefC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(16) %31, ptr noundef nonnull align 8 dereferenceable(32) %32) #6
  %249 = invoke noundef i32 @_ZN5CatchorENS_13XmlFormattingES0_(i32 noundef 2, i32 noundef 1)
          to label %250 unwind label %293

250:                                              ; preds = %248
  %251 = getelementptr inbounds { ptr, i64 }, ptr %31, i32 0, i32 0
  %252 = load ptr, ptr %251, align 8
  %253 = getelementptr inbounds { ptr, i64 }, ptr %31, i32 0, i32 1
  %254 = load i64, ptr %253, align 8
  %255 = invoke noundef nonnull align 8 dereferenceable(12) ptr @_ZN5Catch9XmlWriter13ScopedElement9writeTextENS_9StringRefENS_13XmlFormattingE(ptr noundef nonnull align 8 dereferenceable(12) %28, ptr %252, i64 %254, i32 noundef %249)
          to label %256 unwind label %293

256:                                              ; preds = %250
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %32) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %32) #6
  call void @_ZN5Catch9XmlWriter13ScopedElementD1Ev(ptr noundef nonnull align 8 dereferenceable(12) %28) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %29) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %30) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %30) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %29) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %33) #6
  %257 = getelementptr inbounds %"class.Catch::XmlReporter", ptr %58, i32 0, i32 2
  call void @llvm.lifetime.start.p0(i64 32, ptr %34) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %35) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %35) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %34, ptr noundef @.str.18, ptr noundef nonnull align 1 dereferenceable(1) %35)
          to label %258 unwind label %300

258:                                              ; preds = %256
  %259 = invoke noundef i32 @_ZN5CatchorENS_13XmlFormattingES0_(i32 noundef 2, i32 noundef 1)
          to label %260 unwind label %304

260:                                              ; preds = %258
  invoke void @_ZN5Catch9XmlWriter13scopedElementERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_13XmlFormattingE(ptr dead_on_unwind writable sret(%"class.Catch::XmlWriter::ScopedElement") align 8 %33, ptr noundef nonnull align 8 dereferenceable(72) %257, ptr noundef nonnull align 8 dereferenceable(32) %34, i32 noundef %259)
          to label %261 unwind label %304

261:                                              ; preds = %260
  call void @llvm.lifetime.start.p0(i64 32, ptr %37) #6
  %262 = load ptr, ptr %5, align 8, !tbaa !5
  invoke void @_ZNK5Catch15AssertionResult21getExpandedExpressionB5cxx11Ev(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %37, ptr noundef nonnull align 8 dereferenceable(144) %262)
          to label %263 unwind label %308

263:                                              ; preds = %261
  call void @_ZN5Catch9StringRefC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(16) %36, ptr noundef nonnull align 8 dereferenceable(32) %37) #6
  %264 = invoke noundef i32 @_ZN5CatchorENS_13XmlFormattingES0_(i32 noundef 2, i32 noundef 1)
          to label %265 unwind label %312

265:                                              ; preds = %263
  %266 = getelementptr inbounds { ptr, i64 }, ptr %36, i32 0, i32 0
  %267 = load ptr, ptr %266, align 8
  %268 = getelementptr inbounds { ptr, i64 }, ptr %36, i32 0, i32 1
  %269 = load i64, ptr %268, align 8
  %270 = invoke noundef nonnull align 8 dereferenceable(12) ptr @_ZN5Catch9XmlWriter13ScopedElement9writeTextENS_9StringRefENS_13XmlFormattingE(ptr noundef nonnull align 8 dereferenceable(12) %33, ptr %267, i64 %269, i32 noundef %264)
          to label %271 unwind label %312

271:                                              ; preds = %265
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %37) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %37) #6
  call void @_ZN5Catch9XmlWriter13ScopedElementD1Ev(ptr noundef nonnull align 8 dereferenceable(12) %33) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %34) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %35) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %35) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %34) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %33) #6
  br label %319

272:                                              ; preds = %193
  %273 = landingpad { ptr, i32 }
          cleanup
  %274 = extractvalue { ptr, i32 } %273, 0
  store ptr %274, ptr %14, align 8
  %275 = extractvalue { ptr, i32 } %273, 1
  store i32 %275, ptr %15, align 4
  br label %280

276:                                              ; preds = %221, %213, %207, %199, %197, %195
  %277 = landingpad { ptr, i32 }
          cleanup
  %278 = extractvalue { ptr, i32 } %277, 0
  store ptr %278, ptr %14, align 8
  %279 = extractvalue { ptr, i32 } %277, 1
  store i32 %279, ptr %15, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #6
  br label %280

280:                                              ; preds = %276, %272
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %23) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %22) #6
  br label %521

281:                                              ; preds = %235
  %282 = landingpad { ptr, i32 }
          cleanup
  %283 = extractvalue { ptr, i32 } %282, 0
  store ptr %283, ptr %14, align 8
  %284 = extractvalue { ptr, i32 } %282, 1
  store i32 %284, ptr %15, align 4
  br label %299

285:                                              ; preds = %245, %243
  %286 = landingpad { ptr, i32 }
          cleanup
  %287 = extractvalue { ptr, i32 } %286, 0
  store ptr %287, ptr %14, align 8
  %288 = extractvalue { ptr, i32 } %286, 1
  store i32 %288, ptr %15, align 4
  br label %298

289:                                              ; preds = %246
  %290 = landingpad { ptr, i32 }
          cleanup
  %291 = extractvalue { ptr, i32 } %290, 0
  store ptr %291, ptr %14, align 8
  %292 = extractvalue { ptr, i32 } %290, 1
  store i32 %292, ptr %15, align 4
  br label %297

293:                                              ; preds = %250, %248
  %294 = landingpad { ptr, i32 }
          cleanup
  %295 = extractvalue { ptr, i32 } %294, 0
  store ptr %295, ptr %14, align 8
  %296 = extractvalue { ptr, i32 } %294, 1
  store i32 %296, ptr %15, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %32) #6
  br label %297

297:                                              ; preds = %293, %289
  call void @llvm.lifetime.end.p0(i64 32, ptr %32) #6
  call void @_ZN5Catch9XmlWriter13ScopedElementD1Ev(ptr noundef nonnull align 8 dereferenceable(12) %28) #6
  br label %298

298:                                              ; preds = %297, %285
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %29) #6
  br label %299

299:                                              ; preds = %298, %281
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %30) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %30) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %29) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #6
  br label %521

300:                                              ; preds = %256
  %301 = landingpad { ptr, i32 }
          cleanup
  %302 = extractvalue { ptr, i32 } %301, 0
  store ptr %302, ptr %14, align 8
  %303 = extractvalue { ptr, i32 } %301, 1
  store i32 %303, ptr %15, align 4
  br label %318

304:                                              ; preds = %260, %258
  %305 = landingpad { ptr, i32 }
          cleanup
  %306 = extractvalue { ptr, i32 } %305, 0
  store ptr %306, ptr %14, align 8
  %307 = extractvalue { ptr, i32 } %305, 1
  store i32 %307, ptr %15, align 4
  br label %317

308:                                              ; preds = %261
  %309 = landingpad { ptr, i32 }
          cleanup
  %310 = extractvalue { ptr, i32 } %309, 0
  store ptr %310, ptr %14, align 8
  %311 = extractvalue { ptr, i32 } %309, 1
  store i32 %311, ptr %15, align 4
  br label %316

312:                                              ; preds = %265, %263
  %313 = landingpad { ptr, i32 }
          cleanup
  %314 = extractvalue { ptr, i32 } %313, 0
  store ptr %314, ptr %14, align 8
  %315 = extractvalue { ptr, i32 } %313, 1
  store i32 %315, ptr %15, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %37) #6
  br label %316

316:                                              ; preds = %312, %308
  call void @llvm.lifetime.end.p0(i64 32, ptr %37) #6
  call void @_ZN5Catch9XmlWriter13ScopedElementD1Ev(ptr noundef nonnull align 8 dereferenceable(12) %33) #6
  br label %317

317:                                              ; preds = %316, %304
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %34) #6
  br label %318

318:                                              ; preds = %317, %300
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %35) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %35) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %34) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %33) #6
  br label %521

319:                                              ; preds = %271, %190
  %320 = load ptr, ptr %5, align 8, !tbaa !5
  %321 = call noundef i32 @_ZNK5Catch15AssertionResult13getResultTypeEv(ptr noundef nonnull align 8 dereferenceable(144) %320)
  switch i32 %321, label %509 [
    i32 273, label %322
    i32 528, label %360
    i32 1, label %398
    i32 2, label %510
    i32 18, label %433
    i32 4, label %471
  ]

322:                                              ; preds = %319
  %323 = getelementptr inbounds %"class.Catch::XmlReporter", ptr %58, i32 0, i32 2
  call void @llvm.lifetime.start.p0(i64 32, ptr %38) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %39) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %39) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %38, ptr noundef @.str.19, ptr noundef nonnull align 1 dereferenceable(1) %39)
          to label %324 unwind label %351

324:                                              ; preds = %322
  %325 = invoke noundef i32 @_ZN5CatchorENS_13XmlFormattingES0_(i32 noundef 2, i32 noundef 1)
          to label %326 unwind label %355

326:                                              ; preds = %324
  %327 = invoke noundef nonnull align 8 dereferenceable(72) ptr @_ZN5Catch9XmlWriter12startElementERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_13XmlFormattingE(ptr noundef nonnull align 8 dereferenceable(72) %323, ptr noundef nonnull align 8 dereferenceable(32) %38, i32 noundef %325)
          to label %328 unwind label %355

328:                                              ; preds = %326
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %38) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %39) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %39) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %38) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %40) #6
  %329 = load ptr, ptr %5, align 8, !tbaa !5
  %330 = call { ptr, i64 } @_ZNK5Catch15AssertionResult13getSourceInfoEv(ptr noundef nonnull align 8 dereferenceable(144) %329)
  %331 = getelementptr inbounds { ptr, i64 }, ptr %40, i32 0, i32 0
  %332 = extractvalue { ptr, i64 } %330, 0
  store ptr %332, ptr %331, align 8
  %333 = getelementptr inbounds { ptr, i64 }, ptr %40, i32 0, i32 1
  %334 = extractvalue { ptr, i64 } %330, 1
  store i64 %334, ptr %333, align 8
  call void @_ZN5Catch11XmlReporter15writeSourceInfoERKNS_14SourceLineInfoE(ptr noundef nonnull align 8 dereferenceable(228) %58, ptr noundef nonnull align 8 dereferenceable(16) %40)
  call void @llvm.lifetime.end.p0(i64 16, ptr %40) #6
  %335 = getelementptr inbounds %"class.Catch::XmlReporter", ptr %58, i32 0, i32 2
  %336 = load ptr, ptr %5, align 8, !tbaa !5
  %337 = call { ptr, i64 } @_ZNK5Catch15AssertionResult10getMessageEv(ptr noundef nonnull align 8 dereferenceable(144) %336)
  %338 = getelementptr inbounds { ptr, i64 }, ptr %41, i32 0, i32 0
  %339 = extractvalue { ptr, i64 } %337, 0
  store ptr %339, ptr %338, align 8
  %340 = getelementptr inbounds { ptr, i64 }, ptr %41, i32 0, i32 1
  %341 = extractvalue { ptr, i64 } %337, 1
  store i64 %341, ptr %340, align 8
  %342 = call noundef i32 @_ZN5CatchorENS_13XmlFormattingES0_(i32 noundef 2, i32 noundef 1)
  %343 = getelementptr inbounds { ptr, i64 }, ptr %41, i32 0, i32 0
  %344 = load ptr, ptr %343, align 8
  %345 = getelementptr inbounds { ptr, i64 }, ptr %41, i32 0, i32 1
  %346 = load i64, ptr %345, align 8
  %347 = call noundef nonnull align 8 dereferenceable(72) ptr @_ZN5Catch9XmlWriter9writeTextENS_9StringRefENS_13XmlFormattingE(ptr noundef nonnull align 8 dereferenceable(72) %335, ptr %344, i64 %346, i32 noundef %342)
  %348 = getelementptr inbounds %"class.Catch::XmlReporter", ptr %58, i32 0, i32 2
  %349 = call noundef i32 @_ZN5CatchorENS_13XmlFormattingES0_(i32 noundef 2, i32 noundef 1)
  %350 = call noundef nonnull align 8 dereferenceable(72) ptr @_ZN5Catch9XmlWriter10endElementENS_13XmlFormattingE(ptr noundef nonnull align 8 dereferenceable(72) %348, i32 noundef %349)
  br label %510

351:                                              ; preds = %322
  %352 = landingpad { ptr, i32 }
          cleanup
  %353 = extractvalue { ptr, i32 } %352, 0
  store ptr %353, ptr %14, align 8
  %354 = extractvalue { ptr, i32 } %352, 1
  store i32 %354, ptr %15, align 4
  br label %359

355:                                              ; preds = %326, %324
  %356 = landingpad { ptr, i32 }
          cleanup
  %357 = extractvalue { ptr, i32 } %356, 0
  store ptr %357, ptr %14, align 8
  %358 = extractvalue { ptr, i32 } %356, 1
  store i32 %358, ptr %15, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %38) #6
  br label %359

359:                                              ; preds = %355, %351
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %39) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %39) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %38) #6
  br label %521

360:                                              ; preds = %319
  %361 = getelementptr inbounds %"class.Catch::XmlReporter", ptr %58, i32 0, i32 2
  call void @llvm.lifetime.start.p0(i64 32, ptr %42) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %43) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %43) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %42, ptr noundef @.str.20, ptr noundef nonnull align 1 dereferenceable(1) %43)
          to label %362 unwind label %389

362:                                              ; preds = %360
  %363 = invoke noundef i32 @_ZN5CatchorENS_13XmlFormattingES0_(i32 noundef 2, i32 noundef 1)
          to label %364 unwind label %393

364:                                              ; preds = %362
  %365 = invoke noundef nonnull align 8 dereferenceable(72) ptr @_ZN5Catch9XmlWriter12startElementERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_13XmlFormattingE(ptr noundef nonnull align 8 dereferenceable(72) %361, ptr noundef nonnull align 8 dereferenceable(32) %42, i32 noundef %363)
          to label %366 unwind label %393

366:                                              ; preds = %364
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %42) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %43) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %43) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %42) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %44) #6
  %367 = load ptr, ptr %5, align 8, !tbaa !5
  %368 = call { ptr, i64 } @_ZNK5Catch15AssertionResult13getSourceInfoEv(ptr noundef nonnull align 8 dereferenceable(144) %367)
  %369 = getelementptr inbounds { ptr, i64 }, ptr %44, i32 0, i32 0
  %370 = extractvalue { ptr, i64 } %368, 0
  store ptr %370, ptr %369, align 8
  %371 = getelementptr inbounds { ptr, i64 }, ptr %44, i32 0, i32 1
  %372 = extractvalue { ptr, i64 } %368, 1
  store i64 %372, ptr %371, align 8
  call void @_ZN5Catch11XmlReporter15writeSourceInfoERKNS_14SourceLineInfoE(ptr noundef nonnull align 8 dereferenceable(228) %58, ptr noundef nonnull align 8 dereferenceable(16) %44)
  call void @llvm.lifetime.end.p0(i64 16, ptr %44) #6
  %373 = getelementptr inbounds %"class.Catch::XmlReporter", ptr %58, i32 0, i32 2
  %374 = load ptr, ptr %5, align 8, !tbaa !5
  %375 = call { ptr, i64 } @_ZNK5Catch15AssertionResult10getMessageEv(ptr noundef nonnull align 8 dereferenceable(144) %374)
  %376 = getelementptr inbounds { ptr, i64 }, ptr %45, i32 0, i32 0
  %377 = extractvalue { ptr, i64 } %375, 0
  store ptr %377, ptr %376, align 8
  %378 = getelementptr inbounds { ptr, i64 }, ptr %45, i32 0, i32 1
  %379 = extractvalue { ptr, i64 } %375, 1
  store i64 %379, ptr %378, align 8
  %380 = call noundef i32 @_ZN5CatchorENS_13XmlFormattingES0_(i32 noundef 2, i32 noundef 1)
  %381 = getelementptr inbounds { ptr, i64 }, ptr %45, i32 0, i32 0
  %382 = load ptr, ptr %381, align 8
  %383 = getelementptr inbounds { ptr, i64 }, ptr %45, i32 0, i32 1
  %384 = load i64, ptr %383, align 8
  %385 = call noundef nonnull align 8 dereferenceable(72) ptr @_ZN5Catch9XmlWriter9writeTextENS_9StringRefENS_13XmlFormattingE(ptr noundef nonnull align 8 dereferenceable(72) %373, ptr %382, i64 %384, i32 noundef %380)
  %386 = getelementptr inbounds %"class.Catch::XmlReporter", ptr %58, i32 0, i32 2
  %387 = call noundef i32 @_ZN5CatchorENS_13XmlFormattingES0_(i32 noundef 2, i32 noundef 1)
  %388 = call noundef nonnull align 8 dereferenceable(72) ptr @_ZN5Catch9XmlWriter10endElementENS_13XmlFormattingE(ptr noundef nonnull align 8 dereferenceable(72) %386, i32 noundef %387)
  br label %510

389:                                              ; preds = %360
  %390 = landingpad { ptr, i32 }
          cleanup
  %391 = extractvalue { ptr, i32 } %390, 0
  store ptr %391, ptr %14, align 8
  %392 = extractvalue { ptr, i32 } %390, 1
  store i32 %392, ptr %15, align 4
  br label %397

393:                                              ; preds = %364, %362
  %394 = landingpad { ptr, i32 }
          cleanup
  %395 = extractvalue { ptr, i32 } %394, 0
  store ptr %395, ptr %14, align 8
  %396 = extractvalue { ptr, i32 } %394, 1
  store i32 %396, ptr %15, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %42) #6
  br label %397

397:                                              ; preds = %393, %389
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %43) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %43) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %42) #6
  br label %521

398:                                              ; preds = %319
  call void @llvm.lifetime.start.p0(i64 16, ptr %46) #6
  %399 = getelementptr inbounds %"class.Catch::XmlReporter", ptr %58, i32 0, i32 2
  call void @llvm.lifetime.start.p0(i64 32, ptr %47) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %48) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %48) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %47, ptr noundef @.str.12, ptr noundef nonnull align 1 dereferenceable(1) %48)
          to label %400 unwind label %419

400:                                              ; preds = %398
  %401 = invoke noundef i32 @_ZN5CatchorENS_13XmlFormattingES0_(i32 noundef 2, i32 noundef 1)
          to label %402 unwind label %423

402:                                              ; preds = %400
  invoke void @_ZN5Catch9XmlWriter13scopedElementERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_13XmlFormattingE(ptr dead_on_unwind writable sret(%"class.Catch::XmlWriter::ScopedElement") align 8 %46, ptr noundef nonnull align 8 dereferenceable(72) %399, ptr noundef nonnull align 8 dereferenceable(32) %47, i32 noundef %401)
          to label %403 unwind label %423

403:                                              ; preds = %402
  %404 = load ptr, ptr %5, align 8, !tbaa !5
  %405 = invoke { ptr, i64 } @_ZNK5Catch15AssertionResult10getMessageEv(ptr noundef nonnull align 8 dereferenceable(144) %404)
          to label %406 unwind label %427

406:                                              ; preds = %403
  %407 = getelementptr inbounds { ptr, i64 }, ptr %49, i32 0, i32 0
  %408 = extractvalue { ptr, i64 } %405, 0
  store ptr %408, ptr %407, align 8
  %409 = getelementptr inbounds { ptr, i64 }, ptr %49, i32 0, i32 1
  %410 = extractvalue { ptr, i64 } %405, 1
  store i64 %410, ptr %409, align 8
  %411 = invoke noundef i32 @_ZN5CatchorENS_13XmlFormattingES0_(i32 noundef 2, i32 noundef 1)
          to label %412 unwind label %427

412:                                              ; preds = %406
  %413 = getelementptr inbounds { ptr, i64 }, ptr %49, i32 0, i32 0
  %414 = load ptr, ptr %413, align 8
  %415 = getelementptr inbounds { ptr, i64 }, ptr %49, i32 0, i32 1
  %416 = load i64, ptr %415, align 8
  %417 = invoke noundef nonnull align 8 dereferenceable(12) ptr @_ZN5Catch9XmlWriter13ScopedElement9writeTextENS_9StringRefENS_13XmlFormattingE(ptr noundef nonnull align 8 dereferenceable(12) %46, ptr %414, i64 %416, i32 noundef %411)
          to label %418 unwind label %427

418:                                              ; preds = %412
  call void @_ZN5Catch9XmlWriter13ScopedElementD1Ev(ptr noundef nonnull align 8 dereferenceable(12) %46) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %47) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %48) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %48) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %47) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %46) #6
  br label %510

419:                                              ; preds = %398
  %420 = landingpad { ptr, i32 }
          cleanup
  %421 = extractvalue { ptr, i32 } %420, 0
  store ptr %421, ptr %14, align 8
  %422 = extractvalue { ptr, i32 } %420, 1
  store i32 %422, ptr %15, align 4
  br label %432

423:                                              ; preds = %402, %400
  %424 = landingpad { ptr, i32 }
          cleanup
  %425 = extractvalue { ptr, i32 } %424, 0
  store ptr %425, ptr %14, align 8
  %426 = extractvalue { ptr, i32 } %424, 1
  store i32 %426, ptr %15, align 4
  br label %431

427:                                              ; preds = %412, %406, %403
  %428 = landingpad { ptr, i32 }
          cleanup
  %429 = extractvalue { ptr, i32 } %428, 0
  store ptr %429, ptr %14, align 8
  %430 = extractvalue { ptr, i32 } %428, 1
  store i32 %430, ptr %15, align 4
  call void @_ZN5Catch9XmlWriter13ScopedElementD1Ev(ptr noundef nonnull align 8 dereferenceable(12) %46) #6
  br label %431

431:                                              ; preds = %427, %423
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %47) #6
  br label %432

432:                                              ; preds = %431, %419
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %48) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %48) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %47) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %46) #6
  br label %521

433:                                              ; preds = %319
  %434 = getelementptr inbounds %"class.Catch::XmlReporter", ptr %58, i32 0, i32 2
  call void @llvm.lifetime.start.p0(i64 32, ptr %50) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %51) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %51) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %50, ptr noundef @.str.21, ptr noundef nonnull align 1 dereferenceable(1) %51)
          to label %435 unwind label %462

435:                                              ; preds = %433
  %436 = invoke noundef i32 @_ZN5CatchorENS_13XmlFormattingES0_(i32 noundef 2, i32 noundef 1)
          to label %437 unwind label %466

437:                                              ; preds = %435
  %438 = invoke noundef nonnull align 8 dereferenceable(72) ptr @_ZN5Catch9XmlWriter12startElementERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_13XmlFormattingE(ptr noundef nonnull align 8 dereferenceable(72) %434, ptr noundef nonnull align 8 dereferenceable(32) %50, i32 noundef %436)
          to label %439 unwind label %466

439:                                              ; preds = %437
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %50) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %51) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %51) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %50) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %52) #6
  %440 = load ptr, ptr %5, align 8, !tbaa !5
  %441 = call { ptr, i64 } @_ZNK5Catch15AssertionResult13getSourceInfoEv(ptr noundef nonnull align 8 dereferenceable(144) %440)
  %442 = getelementptr inbounds { ptr, i64 }, ptr %52, i32 0, i32 0
  %443 = extractvalue { ptr, i64 } %441, 0
  store ptr %443, ptr %442, align 8
  %444 = getelementptr inbounds { ptr, i64 }, ptr %52, i32 0, i32 1
  %445 = extractvalue { ptr, i64 } %441, 1
  store i64 %445, ptr %444, align 8
  call void @_ZN5Catch11XmlReporter15writeSourceInfoERKNS_14SourceLineInfoE(ptr noundef nonnull align 8 dereferenceable(228) %58, ptr noundef nonnull align 8 dereferenceable(16) %52)
  call void @llvm.lifetime.end.p0(i64 16, ptr %52) #6
  %446 = getelementptr inbounds %"class.Catch::XmlReporter", ptr %58, i32 0, i32 2
  %447 = load ptr, ptr %5, align 8, !tbaa !5
  %448 = call { ptr, i64 } @_ZNK5Catch15AssertionResult10getMessageEv(ptr noundef nonnull align 8 dereferenceable(144) %447)
  %449 = getelementptr inbounds { ptr, i64 }, ptr %53, i32 0, i32 0
  %450 = extractvalue { ptr, i64 } %448, 0
  store ptr %450, ptr %449, align 8
  %451 = getelementptr inbounds { ptr, i64 }, ptr %53, i32 0, i32 1
  %452 = extractvalue { ptr, i64 } %448, 1
  store i64 %452, ptr %451, align 8
  %453 = call noundef i32 @_ZN5CatchorENS_13XmlFormattingES0_(i32 noundef 2, i32 noundef 1)
  %454 = getelementptr inbounds { ptr, i64 }, ptr %53, i32 0, i32 0
  %455 = load ptr, ptr %454, align 8
  %456 = getelementptr inbounds { ptr, i64 }, ptr %53, i32 0, i32 1
  %457 = load i64, ptr %456, align 8
  %458 = call noundef nonnull align 8 dereferenceable(72) ptr @_ZN5Catch9XmlWriter9writeTextENS_9StringRefENS_13XmlFormattingE(ptr noundef nonnull align 8 dereferenceable(72) %446, ptr %455, i64 %457, i32 noundef %453)
  %459 = getelementptr inbounds %"class.Catch::XmlReporter", ptr %58, i32 0, i32 2
  %460 = call noundef i32 @_ZN5CatchorENS_13XmlFormattingES0_(i32 noundef 2, i32 noundef 1)
  %461 = call noundef nonnull align 8 dereferenceable(72) ptr @_ZN5Catch9XmlWriter10endElementENS_13XmlFormattingE(ptr noundef nonnull align 8 dereferenceable(72) %459, i32 noundef %460)
  br label %510

462:                                              ; preds = %433
  %463 = landingpad { ptr, i32 }
          cleanup
  %464 = extractvalue { ptr, i32 } %463, 0
  store ptr %464, ptr %14, align 8
  %465 = extractvalue { ptr, i32 } %463, 1
  store i32 %465, ptr %15, align 4
  br label %470

466:                                              ; preds = %437, %435
  %467 = landingpad { ptr, i32 }
          cleanup
  %468 = extractvalue { ptr, i32 } %467, 0
  store ptr %468, ptr %14, align 8
  %469 = extractvalue { ptr, i32 } %467, 1
  store i32 %469, ptr %15, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %50) #6
  br label %470

470:                                              ; preds = %466, %462
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %51) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %51) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %50) #6
  br label %521

471:                                              ; preds = %319
  %472 = getelementptr inbounds %"class.Catch::XmlReporter", ptr %58, i32 0, i32 2
  call void @llvm.lifetime.start.p0(i64 32, ptr %54) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %55) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %55) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %54, ptr noundef @.str.22, ptr noundef nonnull align 1 dereferenceable(1) %55)
          to label %473 unwind label %500

473:                                              ; preds = %471
  %474 = invoke noundef i32 @_ZN5CatchorENS_13XmlFormattingES0_(i32 noundef 2, i32 noundef 1)
          to label %475 unwind label %504

475:                                              ; preds = %473
  %476 = invoke noundef nonnull align 8 dereferenceable(72) ptr @_ZN5Catch9XmlWriter12startElementERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_13XmlFormattingE(ptr noundef nonnull align 8 dereferenceable(72) %472, ptr noundef nonnull align 8 dereferenceable(32) %54, i32 noundef %474)
          to label %477 unwind label %504

477:                                              ; preds = %475
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %54) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %55) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %55) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %54) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %56) #6
  %478 = load ptr, ptr %5, align 8, !tbaa !5
  %479 = call { ptr, i64 } @_ZNK5Catch15AssertionResult13getSourceInfoEv(ptr noundef nonnull align 8 dereferenceable(144) %478)
  %480 = getelementptr inbounds { ptr, i64 }, ptr %56, i32 0, i32 0
  %481 = extractvalue { ptr, i64 } %479, 0
  store ptr %481, ptr %480, align 8
  %482 = getelementptr inbounds { ptr, i64 }, ptr %56, i32 0, i32 1
  %483 = extractvalue { ptr, i64 } %479, 1
  store i64 %483, ptr %482, align 8
  call void @_ZN5Catch11XmlReporter15writeSourceInfoERKNS_14SourceLineInfoE(ptr noundef nonnull align 8 dereferenceable(228) %58, ptr noundef nonnull align 8 dereferenceable(16) %56)
  call void @llvm.lifetime.end.p0(i64 16, ptr %56) #6
  %484 = getelementptr inbounds %"class.Catch::XmlReporter", ptr %58, i32 0, i32 2
  %485 = load ptr, ptr %5, align 8, !tbaa !5
  %486 = call { ptr, i64 } @_ZNK5Catch15AssertionResult10getMessageEv(ptr noundef nonnull align 8 dereferenceable(144) %485)
  %487 = getelementptr inbounds { ptr, i64 }, ptr %57, i32 0, i32 0
  %488 = extractvalue { ptr, i64 } %486, 0
  store ptr %488, ptr %487, align 8
  %489 = getelementptr inbounds { ptr, i64 }, ptr %57, i32 0, i32 1
  %490 = extractvalue { ptr, i64 } %486, 1
  store i64 %490, ptr %489, align 8
  %491 = call noundef i32 @_ZN5CatchorENS_13XmlFormattingES0_(i32 noundef 2, i32 noundef 1)
  %492 = getelementptr inbounds { ptr, i64 }, ptr %57, i32 0, i32 0
  %493 = load ptr, ptr %492, align 8
  %494 = getelementptr inbounds { ptr, i64 }, ptr %57, i32 0, i32 1
  %495 = load i64, ptr %494, align 8
  %496 = call noundef nonnull align 8 dereferenceable(72) ptr @_ZN5Catch9XmlWriter9writeTextENS_9StringRefENS_13XmlFormattingE(ptr noundef nonnull align 8 dereferenceable(72) %484, ptr %493, i64 %495, i32 noundef %491)
  %497 = getelementptr inbounds %"class.Catch::XmlReporter", ptr %58, i32 0, i32 2
  %498 = call noundef i32 @_ZN5CatchorENS_13XmlFormattingES0_(i32 noundef 2, i32 noundef 1)
  %499 = call noundef nonnull align 8 dereferenceable(72) ptr @_ZN5Catch9XmlWriter10endElementENS_13XmlFormattingE(ptr noundef nonnull align 8 dereferenceable(72) %497, i32 noundef %498)
  br label %510

500:                                              ; preds = %471
  %501 = landingpad { ptr, i32 }
          cleanup
  %502 = extractvalue { ptr, i32 } %501, 0
  store ptr %502, ptr %14, align 8
  %503 = extractvalue { ptr, i32 } %501, 1
  store i32 %503, ptr %15, align 4
  br label %508

504:                                              ; preds = %475, %473
  %505 = landingpad { ptr, i32 }
          cleanup
  %506 = extractvalue { ptr, i32 } %505, 0
  store ptr %506, ptr %14, align 8
  %507 = extractvalue { ptr, i32 } %505, 1
  store i32 %507, ptr %15, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %54) #6
  br label %508

508:                                              ; preds = %504, %500
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %55) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %55) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %54) #6
  br label %521

509:                                              ; preds = %319
  br label %510

510:                                              ; preds = %509, %477, %439, %418, %366, %328, %319
  %511 = load ptr, ptr %5, align 8, !tbaa !5
  %512 = call noundef zeroext i1 @_ZNK5Catch15AssertionResult13hasExpressionEv(ptr noundef nonnull align 8 dereferenceable(144) %511)
  br i1 %512, label %513, label %517

513:                                              ; preds = %510
  %514 = getelementptr inbounds %"class.Catch::XmlReporter", ptr %58, i32 0, i32 2
  %515 = call noundef i32 @_ZN5CatchorENS_13XmlFormattingES0_(i32 noundef 2, i32 noundef 1)
  %516 = call noundef nonnull align 8 dereferenceable(72) ptr @_ZN5Catch9XmlWriter10endElementENS_13XmlFormattingE(ptr noundef nonnull align 8 dereferenceable(72) %514, i32 noundef %515)
  br label %517

517:                                              ; preds = %513, %510
  store i32 0, ptr %21, align 4
  br label %518

518:                                              ; preds = %517, %189
  call void @llvm.lifetime.end.p0(i64 1, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  %519 = load i32, ptr %21, align 4
  switch i32 %519, label %527 [
    i32 0, label %520
    i32 1, label %520
  ]

520:                                              ; preds = %518, %518
  ret void

521:                                              ; preds = %508, %470, %432, %397, %359, %318, %299, %280, %176
  call void @llvm.lifetime.end.p0(i64 1, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  br label %522

522:                                              ; preds = %521
  %523 = load ptr, ptr %14, align 8
  %524 = load i32, ptr %15, align 4
  %525 = insertvalue { ptr, i32 } poison, ptr %523, 0
  %526 = insertvalue { ptr, i32 } %525, i32 %524, 1
  resume { ptr, i32 } %526

527:                                              ; preds = %518
  unreachable
}

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

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

; 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)) #4

; 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

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) #3

declare noundef nonnull align 8 dereferenceable(12) ptr @_ZN5Catch9XmlWriter13ScopedElement9writeTextENS_9StringRefENS_13XmlFormattingE(ptr noundef nonnull align 8 dereferenceable(12), ptr, i64, i32 noundef) #3

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

; 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

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

declare noundef nonnull align 8 dereferenceable(72) ptr @_ZN5Catch9XmlWriter14writeAttributeENS_9StringRefEb(ptr noundef nonnull align 8 dereferenceable(72), ptr, i64, i1 noundef zeroext) #3

declare noundef zeroext i1 @_ZNK5Catch15AssertionResult9succeededEv(ptr noundef nonnull align 8 dereferenceable(144)) #3

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

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

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

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

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

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

declare noundef nonnull align 8 dereferenceable(72) ptr @_ZN5Catch9XmlWriter10endElementENS_13XmlFormattingE(ptr noundef nonnull align 8 dereferenceable(72), i32 noundef) #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 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "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 = { 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 #5 = { 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 #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, !6, i64 16}
!10 = !{!"_ZTSN5Catch14IEventListenerE", !11, i64 8, !6, i64 16}
!11 = !{!"_ZTSN5Catch19ReporterPreferencesE", !12, i64 0, !12, i64 1}
!12 = !{!"bool", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"vtable pointer", !8, i64 0}
!15 = !{!12, !12, i64 0}
!16 = !{i8 0, i8 2}
!17 = !{}
!18 = !{!19, !25, i64 64}
!19 = !{!"_ZTSN5Catch11MessageInfoE", !20, i64 0, !22, i64 16, !24, i64 48, !25, i64 64, !26, i64 68}
!20 = !{!"_ZTSN5Catch9StringRefE", !6, i64 0, !21, i64 8}
!21 = !{!"long", !7, i64 0}
!22 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !23, i64 0, !21, i64 8, !7, i64 16}
!23 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!24 = !{!"_ZTSN5Catch14SourceLineInfoE", !6, i64 0, !21, i64 8}
!25 = !{!"_ZTSN5Catch9ResultWas6OfTypeE", !7, i64 0}
!26 = !{!"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.__gnu_cxx::__normal_iterator" = type { ptr }
%"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.std::allocator.9" = type { i8 }
%"class.Catch::StringRef" = type { ptr, i64 }
%"struct.Catch::SourceLineInfo" = type { ptr, i64 }

@.str.12 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [5 x i8], align 1

declare i32 @__gxx_personality_v0(...)

; 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 void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) 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 uwtable
declare dso_local void @_ZN5Catch11XmlReporter15writeSourceInfoERKNS_14SourceLineInfoE(ptr noundef nonnull align 8 dereferenceable(228), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { ptr, i64 } @_ZN5Catchli3_srEPKcm(ptr noundef, i64 noundef) local_unnamed_addr #1

; 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 nonnull align 8 dereferenceable(72) ptr @_ZN5Catch9XmlWriter12startElementERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_13XmlFormattingE(ptr noundef nonnull align 8 dereferenceable(72), ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) local_unnamed_addr #3

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

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

; 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 uwtable
define dso_local void @_ZN5Catch11XmlReporter14assertionEndedERKNS_14AssertionStatsE(ptr noundef nonnull align 8 dereferenceable(228) %0, ptr noundef nonnull align 8 dereferenceable(232) %1) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %4 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %5 = alloca %"class.Catch::XmlWriter::ScopedElement", align 8
  %6 = alloca %"class.std::__cxx11::basic_string", align 8
  %7 = alloca %"class.std::allocator.9", align 1
  %8 = alloca %"class.Catch::StringRef", align 8
  %9 = alloca %"class.Catch::XmlWriter::ScopedElement", align 8
  %10 = alloca %"class.std::__cxx11::basic_string", align 8
  %11 = alloca %"class.std::allocator.9", align 1
  %12 = alloca %"class.Catch::StringRef", align 8
  %13 = alloca %"class.std::__cxx11::basic_string", align 8
  %14 = alloca %"class.std::allocator.9", align 1
  %15 = alloca %"struct.Catch::SourceLineInfo", align 8
  %16 = alloca %"class.Catch::XmlWriter::ScopedElement", align 8
  %17 = alloca %"class.std::__cxx11::basic_string", align 8
  %18 = alloca %"class.std::allocator.9", align 1
  %19 = alloca %"class.Catch::StringRef", align 8
  %20 = alloca %"class.std::__cxx11::basic_string", align 8
  %21 = alloca %"class.Catch::XmlWriter::ScopedElement", align 8
  %22 = alloca %"class.std::__cxx11::basic_string", align 8
  %23 = alloca %"class.std::allocator.9", align 1
  %24 = alloca %"class.Catch::StringRef", align 8
  %25 = alloca %"class.std::__cxx11::basic_string", align 8
  %26 = alloca %"class.std::__cxx11::basic_string", align 8
  %27 = alloca %"class.std::allocator.9", align 1
  %28 = alloca %"struct.Catch::SourceLineInfo", align 8
  %29 = alloca %"class.std::__cxx11::basic_string", align 8
  %30 = alloca %"class.std::allocator.9", align 1
  %31 = alloca %"struct.Catch::SourceLineInfo", align 8
  %32 = alloca %"class.Catch::XmlWriter::ScopedElement", align 8
  %33 = alloca %"class.std::__cxx11::basic_string", align 8
  %34 = alloca %"class.std::allocator.9", align 1
  %35 = alloca %"class.std::__cxx11::basic_string", align 8
  %36 = alloca %"class.std::allocator.9", align 1
  %37 = alloca %"struct.Catch::SourceLineInfo", align 8
  %38 = alloca %"class.std::__cxx11::basic_string", align 8
  %39 = alloca %"class.std::allocator.9", align 1
  %40 = alloca %"struct.Catch::SourceLineInfo", align 8
  %41 = getelementptr inbounds i8, ptr %0, i64 16
  %42 = load ptr, ptr %41, align 8, !tbaa !5
  %43 = load ptr, ptr %42, align 8, !tbaa !12
  %44 = getelementptr inbounds i8, ptr %43, i64 32
  %45 = load ptr, ptr %44, align 8
  %46 = tail call noundef zeroext i1 %45(ptr noundef nonnull align 8 dereferenceable(8) %42)
  br i1 %46, label %.thread, label %47

47:                                               ; preds = %2
  %48 = tail call noundef zeroext i1 @_ZNK5Catch15AssertionResult4isOkEv(ptr noundef nonnull align 8 dereferenceable(144) %1)
  br i1 %48, label %49, label %.thread

49:                                               ; preds = %47
  %50 = tail call noundef i32 @_ZNK5Catch15AssertionResult13getResultTypeEv(ptr noundef nonnull align 8 dereferenceable(144) %1)
  %51 = icmp eq i32 %50, 2
  br i1 %51, label %.thread, label %.thread102

.thread:                                          ; preds = %2, %49, %47
  %52 = phi i1 [ false, %49 ], [ true, %47 ], [ true, %2 ]
  %53 = getelementptr inbounds i8, ptr %1, i64 144
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #6
  %54 = tail call ptr @_ZNKSt6vectorIN5Catch11MessageInfoESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %53) #6
  store ptr %54, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #6
  %55 = tail call ptr @_ZNKSt6vectorIN5Catch11MessageInfoESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %53) #6
  store ptr %55, ptr %4, align 8
  %56 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKN5Catch11MessageInfoESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %4) #6
  br i1 %56, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %.thread
  %57 = getelementptr inbounds i8, ptr %0, i64 152
  %58 = getelementptr inbounds i8, ptr %12, i64 8
  %59 = getelementptr inbounds i8, ptr %8, i64 8
  br label %60

60:                                               ; preds = %.lr.ph, %111
  %61 = call noundef nonnull align 8 dereferenceable(72) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN5Catch11MessageInfoESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #6
  %62 = getelementptr inbounds i8, ptr %61, i64 64
  %63 = load i32, ptr %62, align 8, !tbaa !14
  %64 = icmp eq i32 %63, 1
  %brmerge.not = and i1 %52, %64
  br i1 %brmerge.not, label %65, label %87

65:                                               ; preds = %60
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %7) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull @.str.12, ptr noundef nonnull align 1 dereferenceable(1) %7)
          to label %66 unwind label %79

66:                                               ; preds = %65
  %67 = invoke noundef i32 @_ZN5CatchorENS_13XmlFormattingES0_(i32 noundef 2, i32 noundef 1)
          to label %68 unwind label %81

68:                                               ; preds = %66
  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) %57, ptr noundef nonnull align 8 dereferenceable(32) %6, i32 noundef %67)
          to label %69 unwind label %81

69:                                               ; preds = %68
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #6
  %70 = getelementptr inbounds i8, ptr %61, i64 48
  invoke void @_ZN5Catch11XmlReporter15writeSourceInfoERKNS_14SourceLineInfoE(ptr noundef nonnull align 8 dereferenceable(228) %0, ptr noundef nonnull align 8 dereferenceable(16) %70)
          to label %71 unwind label %84

71:                                               ; preds = %69
  %72 = getelementptr inbounds i8, ptr %61, i64 16
  call void @_ZN5Catch9StringRefC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(16) %8, ptr noundef nonnull align 8 dereferenceable(32) %72) #6
  %73 = invoke noundef i32 @_ZN5CatchorENS_13XmlFormattingES0_(i32 noundef 2, i32 noundef 1)
          to label %74 unwind label %84

74:                                               ; preds = %71
  %75 = load ptr, ptr %8, align 8
  %76 = load i64, ptr %59, align 8
  %77 = invoke noundef nonnull align 8 dereferenceable(12) ptr @_ZN5Catch9XmlWriter13ScopedElement9writeTextENS_9StringRefENS_13XmlFormattingE(ptr noundef nonnull align 8 dereferenceable(12) %5, ptr %75, i64 %76, i32 noundef %73)
          to label %78 unwind label %84

78:                                               ; preds = %74
  call void @_ZN5Catch9XmlWriter13ScopedElementD1Ev(ptr noundef nonnull align 8 dereferenceable(12) %5) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #6
  br label %111

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

81:                                               ; preds = %68, %66
  %82 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #6
  br label %83

83:                                               ; preds = %81, %79
  %.pn94 = phi { ptr, i32 } [ %82, %81 ], [ %80, %79 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #6
  br label %86

84:                                               ; preds = %74, %71, %69
  %85 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN5Catch9XmlWriter13ScopedElementD1Ev(ptr noundef nonnull align 8 dereferenceable(12) %5) #6
  br label %86

86:                                               ; preds = %84, %83
  %.pn96 = phi { ptr, i32 } [ %85, %84 ], [ %.pn94, %83 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #6
  br label %114

87:                                               ; preds = %60
  %88 = icmp eq i32 %63, 2
  br i1 %88, label %89, label %111

89:                                               ; preds = %87
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %10) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %11) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %10, ptr noundef nonnull @.str.13, ptr noundef nonnull align 1 dereferenceable(1) %11)
          to label %90 unwind label %103

90:                                               ; preds = %89
  %91 = invoke noundef i32 @_ZN5CatchorENS_13XmlFormattingES0_(i32 noundef 2, i32 noundef 1)
          to label %92 unwind label %105

92:                                               ; preds = %90
  invoke void @_ZN5Catch9XmlWriter13scopedElementERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_13XmlFormattingE(ptr dead_on_unwind nonnull writable sret(%"class.Catch::XmlWriter::ScopedElement") align 8 %9, ptr noundef nonnull align 8 dereferenceable(72) %57, ptr noundef nonnull align 8 dereferenceable(32) %10, i32 noundef %91)
          to label %93 unwind label %105

93:                                               ; preds = %92
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %11) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #6
  %94 = getelementptr inbounds i8, ptr %61, i64 48
  invoke void @_ZN5Catch11XmlReporter15writeSourceInfoERKNS_14SourceLineInfoE(ptr noundef nonnull align 8 dereferenceable(228) %0, ptr noundef nonnull align 8 dereferenceable(16) %94)
          to label %95 unwind label %108

95:                                               ; preds = %93
  %96 = getelementptr inbounds i8, ptr %61, i64 16
  call void @_ZN5Catch9StringRefC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef nonnull align 8 dereferenceable(32) %96) #6
  %97 = invoke noundef i32 @_ZN5CatchorENS_13XmlFormattingES0_(i32 noundef 2, i32 noundef 1)
          to label %98 unwind label %108

98:                                               ; preds = %95
  %99 = load ptr, ptr %12, align 8
  %100 = load i64, ptr %58, align 8
  %101 = invoke noundef nonnull align 8 dereferenceable(12) ptr @_ZN5Catch9XmlWriter13ScopedElement9writeTextENS_9StringRefENS_13XmlFormattingE(ptr noundef nonnull align 8 dereferenceable(12) %9, ptr %99, i64 %100, i32 noundef %97)
          to label %102 unwind label %108

102:                                              ; preds = %98
  call void @_ZN5Catch9XmlWriter13ScopedElementD1Ev(ptr noundef nonnull align 8 dereferenceable(12) %9) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #6
  br label %111

103:                                              ; preds = %89
  %104 = landingpad { ptr, i32 }
          cleanup
  br label %107

105:                                              ; preds = %92, %90
  %106 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #6
  br label %107

107:                                              ; preds = %105, %103
  %.pn90 = phi { ptr, i32 } [ %106, %105 ], [ %104, %103 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %11) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #6
  br label %110

108:                                              ; preds = %98, %95, %93
  %109 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN5Catch9XmlWriter13ScopedElementD1Ev(ptr noundef nonnull align 8 dereferenceable(12) %9) #6
  br label %110

110:                                              ; preds = %108, %107
  %.pn92 = phi { ptr, i32 } [ %109, %108 ], [ %.pn90, %107 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #6
  br label %114

111:                                              ; preds = %87, %102, %78
  %112 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKN5Catch11MessageInfoESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #6
  %113 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKN5Catch11MessageInfoESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %4) #6
  br i1 %113, label %60, label %._crit_edge

114:                                              ; preds = %110, %86
  %.pn96.pn = phi { ptr, i32 } [ %.pn96, %86 ], [ %.pn92, %110 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
  br label %321

._crit_edge:                                      ; preds = %111, %.thread
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
  br i1 %52, label %118, label %.thread102

.thread102:                                       ; preds = %49, %._crit_edge
  %115 = call noundef i32 @_ZNK5Catch15AssertionResult13getResultTypeEv(ptr noundef nonnull align 8 dereferenceable(144) %1)
  %.not = icmp eq i32 %115, 2
  br i1 %.not, label %118, label %116

116:                                              ; preds = %.thread102
  %117 = call noundef i32 @_ZNK5Catch15AssertionResult13getResultTypeEv(ptr noundef nonnull align 8 dereferenceable(144) %1)
  %.not69 = icmp eq i32 %117, 4
  br i1 %.not69, label %118, label %320

118:                                              ; preds = %116, %.thread102, %._crit_edge
  %119 = call noundef zeroext i1 @_ZNK5Catch15AssertionResult13hasExpressionEv(ptr noundef nonnull align 8 dereferenceable(144) %1)
  br i1 %119, label %120, label %198

120:                                              ; preds = %118
  %121 = getelementptr inbounds i8, ptr %0, i64 152
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %13) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %14) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %13, ptr noundef nonnull @.str.14, ptr noundef nonnull align 1 dereferenceable(1) %14)
          to label %122 unwind label %171

122:                                              ; preds = %120
  %123 = invoke noundef i32 @_ZN5CatchorENS_13XmlFormattingES0_(i32 noundef 2, i32 noundef 1)
          to label %124 unwind label %173

124:                                              ; preds = %122
  %125 = invoke noundef nonnull align 8 dereferenceable(72) ptr @_ZN5Catch9XmlWriter12startElementERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_13XmlFormattingE(ptr noundef nonnull align 8 dereferenceable(72) %121, ptr noundef nonnull align 8 dereferenceable(32) %13, i32 noundef %123)
          to label %126 unwind label %173

126:                                              ; preds = %124
  %127 = call { ptr, i64 } @_ZN5Catchli3_srEPKcm(ptr noundef nonnull @.str.15, i64 noundef 7) #6
  %128 = invoke noundef zeroext i1 @_ZNK5Catch15AssertionResult9succeededEv(ptr noundef nonnull align 8 dereferenceable(144) %1)
          to label %129 unwind label %173

129:                                              ; preds = %126
  %130 = extractvalue { ptr, i64 } %127, 1
  %131 = extractvalue { ptr, i64 } %127, 0
  %132 = invoke noundef nonnull align 8 dereferenceable(72) ptr @_ZN5Catch9XmlWriter14writeAttributeENS_9StringRefEb(ptr noundef nonnull align 8 dereferenceable(72) %125, ptr %131, i64 %130, i1 noundef zeroext %128)
          to label %133 unwind label %173

133:                                              ; preds = %129
  %134 = call { ptr, i64 } @_ZN5Catchli3_srEPKcm(ptr noundef nonnull @.str.16, i64 noundef 4) #6
  %135 = invoke { ptr, i64 } @_ZNK5Catch15AssertionResult16getTestMacroNameEv(ptr noundef nonnull align 8 dereferenceable(144) %1)
          to label %136 unwind label %173

136:                                              ; preds = %133
  %137 = extractvalue { ptr, i64 } %134, 1
  %138 = extractvalue { ptr, i64 } %134, 0
  %139 = extractvalue { ptr, i64 } %135, 0
  %140 = extractvalue { ptr, i64 } %135, 1
  %141 = invoke noundef nonnull align 8 dereferenceable(72) ptr @_ZN5Catch9XmlWriter14writeAttributeENS_9StringRefES1_(ptr noundef nonnull align 8 dereferenceable(72) %132, ptr %138, i64 %137, ptr %139, i64 %140)
          to label %142 unwind label %173

142:                                              ; preds = %136
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %14) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %13) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %15) #6
  %143 = call { ptr, i64 } @_ZNK5Catch15AssertionResult13getSourceInfoEv(ptr noundef nonnull align 8 dereferenceable(144) %1)
  %144 = extractvalue { ptr, i64 } %143, 0
  store ptr %144, ptr %15, align 8
  %145 = getelementptr inbounds i8, ptr %15, i64 8
  %146 = extractvalue { ptr, i64 } %143, 1
  store i64 %146, ptr %145, align 8
  call void @_ZN5Catch11XmlReporter15writeSourceInfoERKNS_14SourceLineInfoE(ptr noundef nonnull align 8 dereferenceable(228) %0, ptr noundef nonnull align 8 dereferenceable(16) %15)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %16) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %17) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %18) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %17, ptr noundef nonnull @.str.17, ptr noundef nonnull align 1 dereferenceable(1) %18)
          to label %147 unwind label %176

147:                                              ; preds = %142
  %148 = invoke noundef i32 @_ZN5CatchorENS_13XmlFormattingES0_(i32 noundef 2, i32 noundef 1)
          to label %149 unwind label %178

149:                                              ; preds = %147
  invoke void @_ZN5Catch9XmlWriter13scopedElementERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_13XmlFormattingE(ptr dead_on_unwind nonnull writable sret(%"class.Catch::XmlWriter::ScopedElement") align 8 %16, ptr noundef nonnull align 8 dereferenceable(72) %121, ptr noundef nonnull align 8 dereferenceable(32) %17, i32 noundef %148)
          to label %150 unwind label %178

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

151:                                              ; preds = %150
  call void @_ZN5Catch9StringRefC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(16) %19, ptr noundef nonnull align 8 dereferenceable(32) %20) #6
  %152 = invoke noundef i32 @_ZN5CatchorENS_13XmlFormattingES0_(i32 noundef 2, i32 noundef 1)
          to label %153 unwind label %182

153:                                              ; preds = %151
  %154 = load ptr, ptr %19, align 8
  %155 = getelementptr inbounds i8, ptr %19, i64 8
  %156 = load i64, ptr %155, align 8
  %157 = invoke noundef nonnull align 8 dereferenceable(12) ptr @_ZN5Catch9XmlWriter13ScopedElement9writeTextENS_9StringRefENS_13XmlFormattingE(ptr noundef nonnull align 8 dereferenceable(12) %16, ptr %154, i64 %156, i32 noundef %152)
          to label %158 unwind label %182

158:                                              ; preds = %153
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %20) #6
  call void @_ZN5Catch9XmlWriter13ScopedElementD1Ev(ptr noundef nonnull align 8 dereferenceable(12) %16) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %18) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %17) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %21) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %22) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %23) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %23) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %22, ptr noundef nonnull @.str.18, ptr noundef nonnull align 1 dereferenceable(1) %23)
          to label %159 unwind label %187

159:                                              ; preds = %158
  %160 = invoke noundef i32 @_ZN5CatchorENS_13XmlFormattingES0_(i32 noundef 2, i32 noundef 1)
          to label %161 unwind label %189

161:                                              ; preds = %159
  invoke void @_ZN5Catch9XmlWriter13scopedElementERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_13XmlFormattingE(ptr dead_on_unwind nonnull writable sret(%"class.Catch::XmlWriter::ScopedElement") align 8 %21, ptr noundef nonnull align 8 dereferenceable(72) %121, ptr noundef nonnull align 8 dereferenceable(32) %22, i32 noundef %160)
          to label %162 unwind label %189

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

163:                                              ; preds = %162
  call void @_ZN5Catch9StringRefC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(16) %24, ptr noundef nonnull align 8 dereferenceable(32) %25) #6
  %164 = invoke noundef i32 @_ZN5CatchorENS_13XmlFormattingES0_(i32 noundef 2, i32 noundef 1)
          to label %165 unwind label %193

165:                                              ; preds = %163
  %166 = load ptr, ptr %24, align 8
  %167 = getelementptr inbounds i8, ptr %24, i64 8
  %168 = load i64, ptr %167, align 8
  %169 = invoke noundef nonnull align 8 dereferenceable(12) ptr @_ZN5Catch9XmlWriter13ScopedElement9writeTextENS_9StringRefENS_13XmlFormattingE(ptr noundef nonnull align 8 dereferenceable(12) %21, ptr %166, i64 %168, i32 noundef %164)
          to label %170 unwind label %193

170:                                              ; preds = %165
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %25) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %25) #6
  call void @_ZN5Catch9XmlWriter13ScopedElementD1Ev(ptr noundef nonnull align 8 dereferenceable(12) %21) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %23) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %23) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %22) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %21) #6
  br label %198

171:                                              ; preds = %120
  %172 = landingpad { ptr, i32 }
          cleanup
  br label %175

173:                                              ; preds = %136, %133, %129, %126, %124, %122
  %174 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #6
  br label %175

175:                                              ; preds = %173, %171
  %.pn = phi { ptr, i32 } [ %174, %173 ], [ %172, %171 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %14) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %13) #6
  br label %321

176:                                              ; preds = %142
  %177 = landingpad { ptr, i32 }
          cleanup
  br label %186

178:                                              ; preds = %149, %147
  %179 = landingpad { ptr, i32 }
          cleanup
  br label %185

180:                                              ; preds = %150
  %181 = landingpad { ptr, i32 }
          cleanup
  br label %184

182:                                              ; preds = %153, %151
  %183 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #6
  br label %184

184:                                              ; preds = %182, %180
  %.pn71 = phi { ptr, i32 } [ %183, %182 ], [ %181, %180 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %20) #6
  call void @_ZN5Catch9XmlWriter13ScopedElementD1Ev(ptr noundef nonnull align 8 dereferenceable(12) %16) #6
  br label %185

185:                                              ; preds = %184, %178
  %.pn71.pn = phi { ptr, i32 } [ %.pn71, %184 ], [ %179, %178 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #6
  br label %186

186:                                              ; preds = %185, %176
  %.pn71.pn.pn = phi { ptr, i32 } [ %.pn71.pn, %185 ], [ %177, %176 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %18) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %17) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #6
  br label %321

187:                                              ; preds = %158
  %188 = landingpad { ptr, i32 }
          cleanup
  br label %197

189:                                              ; preds = %161, %159
  %190 = landingpad { ptr, i32 }
          cleanup
  br label %196

191:                                              ; preds = %162
  %192 = landingpad { ptr, i32 }
          cleanup
  br label %195

193:                                              ; preds = %165, %163
  %194 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %25) #6
  br label %195

195:                                              ; preds = %193, %191
  %.pn75 = phi { ptr, i32 } [ %194, %193 ], [ %192, %191 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %25) #6
  call void @_ZN5Catch9XmlWriter13ScopedElementD1Ev(ptr noundef nonnull align 8 dereferenceable(12) %21) #6
  br label %196

196:                                              ; preds = %195, %189
  %.pn75.pn = phi { ptr, i32 } [ %.pn75, %195 ], [ %190, %189 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #6
  br label %197

197:                                              ; preds = %196, %187
  %.pn75.pn.pn = phi { ptr, i32 } [ %.pn75.pn, %196 ], [ %188, %187 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %23) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %23) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %22) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %21) #6
  br label %321

198:                                              ; preds = %170, %118
  %199 = call noundef i32 @_ZNK5Catch15AssertionResult13getResultTypeEv(ptr noundef nonnull align 8 dereferenceable(144) %1)
  switch i32 %199, label %314 [
    i32 273, label %200
    i32 528, label %223
    i32 1, label %246
    i32 4, label %291
    i32 18, label %268
  ]

200:                                              ; preds = %198
  %201 = getelementptr inbounds i8, ptr %0, i64 152
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %26) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %27) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %27) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %26, ptr noundef nonnull @.str.19, ptr noundef nonnull align 1 dereferenceable(1) %27)
          to label %202 unwind label %218

202:                                              ; preds = %200
  %203 = invoke noundef i32 @_ZN5CatchorENS_13XmlFormattingES0_(i32 noundef 2, i32 noundef 1)
          to label %204 unwind label %220

204:                                              ; preds = %202
  %205 = invoke noundef nonnull align 8 dereferenceable(72) ptr @_ZN5Catch9XmlWriter12startElementERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_13XmlFormattingE(ptr noundef nonnull align 8 dereferenceable(72) %201, ptr noundef nonnull align 8 dereferenceable(32) %26, i32 noundef %203)
          to label %206 unwind label %220

206:                                              ; preds = %204
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %26) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %27) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %27) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %26) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %28) #6
  %207 = call { ptr, i64 } @_ZNK5Catch15AssertionResult13getSourceInfoEv(ptr noundef nonnull align 8 dereferenceable(144) %1)
  %208 = extractvalue { ptr, i64 } %207, 0
  store ptr %208, ptr %28, align 8
  %209 = getelementptr inbounds i8, ptr %28, i64 8
  %210 = extractvalue { ptr, i64 } %207, 1
  store i64 %210, ptr %209, align 8
  call void @_ZN5Catch11XmlReporter15writeSourceInfoERKNS_14SourceLineInfoE(ptr noundef nonnull align 8 dereferenceable(228) %0, ptr noundef nonnull align 8 dereferenceable(16) %28)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %28) #6
  %211 = call { ptr, i64 } @_ZNK5Catch15AssertionResult10getMessageEv(ptr noundef nonnull align 8 dereferenceable(144) %1)
  %212 = extractvalue { ptr, i64 } %211, 0
  %213 = extractvalue { ptr, i64 } %211, 1
  %214 = call noundef i32 @_ZN5CatchorENS_13XmlFormattingES0_(i32 noundef 2, i32 noundef 1)
  %215 = call noundef nonnull align 8 dereferenceable(72) ptr @_ZN5Catch9XmlWriter9writeTextENS_9StringRefENS_13XmlFormattingE(ptr noundef nonnull align 8 dereferenceable(72) %201, ptr %212, i64 %213, i32 noundef %214)
  %216 = call noundef i32 @_ZN5CatchorENS_13XmlFormattingES0_(i32 noundef 2, i32 noundef 1)
  %217 = call noundef nonnull align 8 dereferenceable(72) ptr @_ZN5Catch9XmlWriter10endElementENS_13XmlFormattingE(ptr noundef nonnull align 8 dereferenceable(72) %201, i32 noundef %216)
  br label %314

218:                                              ; preds = %200
  %219 = landingpad { ptr, i32 }
          cleanup
  br label %222

220:                                              ; preds = %204, %202
  %221 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %26) #6
  br label %222

222:                                              ; preds = %220, %218
  %.pn88 = phi { ptr, i32 } [ %221, %220 ], [ %219, %218 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %27) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %27) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %26) #6
  br label %321

223:                                              ; preds = %198
  %224 = getelementptr inbounds i8, ptr %0, i64 152
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %29) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %30) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %30) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %29, ptr noundef nonnull @.str.20, ptr noundef nonnull align 1 dereferenceable(1) %30)
          to label %225 unwind label %241

225:                                              ; preds = %223
  %226 = invoke noundef i32 @_ZN5CatchorENS_13XmlFormattingES0_(i32 noundef 2, i32 noundef 1)
          to label %227 unwind label %243

227:                                              ; preds = %225
  %228 = invoke noundef nonnull align 8 dereferenceable(72) ptr @_ZN5Catch9XmlWriter12startElementERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_13XmlFormattingE(ptr noundef nonnull align 8 dereferenceable(72) %224, ptr noundef nonnull align 8 dereferenceable(32) %29, i32 noundef %226)
          to label %229 unwind label %243

229:                                              ; preds = %227
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %29) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %30) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %30) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %29) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %31) #6
  %230 = call { ptr, i64 } @_ZNK5Catch15AssertionResult13getSourceInfoEv(ptr noundef nonnull align 8 dereferenceable(144) %1)
  %231 = extractvalue { ptr, i64 } %230, 0
  store ptr %231, ptr %31, align 8
  %232 = getelementptr inbounds i8, ptr %31, i64 8
  %233 = extractvalue { ptr, i64 } %230, 1
  store i64 %233, ptr %232, align 8
  call void @_ZN5Catch11XmlReporter15writeSourceInfoERKNS_14SourceLineInfoE(ptr noundef nonnull align 8 dereferenceable(228) %0, ptr noundef nonnull align 8 dereferenceable(16) %31)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %31) #6
  %234 = call { ptr, i64 } @_ZNK5Catch15AssertionResult10getMessageEv(ptr noundef nonnull align 8 dereferenceable(144) %1)
  %235 = extractvalue { ptr, i64 } %234, 0
  %236 = extractvalue { ptr, i64 } %234, 1
  %237 = call noundef i32 @_ZN5CatchorENS_13XmlFormattingES0_(i32 noundef 2, i32 noundef 1)
  %238 = call noundef nonnull align 8 dereferenceable(72) ptr @_ZN5Catch9XmlWriter9writeTextENS_9StringRefENS_13XmlFormattingE(ptr noundef nonnull align 8 dereferenceable(72) %224, ptr %235, i64 %236, i32 noundef %237)
  %239 = call noundef i32 @_ZN5CatchorENS_13XmlFormattingES0_(i32 noundef 2, i32 noundef 1)
  %240 = call noundef nonnull align 8 dereferenceable(72) ptr @_ZN5Catch9XmlWriter10endElementENS_13XmlFormattingE(ptr noundef nonnull align 8 dereferenceable(72) %224, i32 noundef %239)
  br label %314

241:                                              ; preds = %223
  %242 = landingpad { ptr, i32 }
          cleanup
  br label %245

243:                                              ; preds = %227, %225
  %244 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %29) #6
  br label %245

245:                                              ; preds = %243, %241
  %.pn86 = phi { ptr, i32 } [ %244, %243 ], [ %242, %241 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %30) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %30) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %29) #6
  br label %321

246:                                              ; preds = %198
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %32) #6
  %247 = getelementptr inbounds i8, ptr %0, i64 152
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %33) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %34) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %34) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %33, ptr noundef nonnull @.str.12, ptr noundef nonnull align 1 dereferenceable(1) %34)
          to label %248 unwind label %260

248:                                              ; preds = %246
  %249 = invoke noundef i32 @_ZN5CatchorENS_13XmlFormattingES0_(i32 noundef 2, i32 noundef 1)
          to label %250 unwind label %262

250:                                              ; preds = %248
  invoke void @_ZN5Catch9XmlWriter13scopedElementERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_13XmlFormattingE(ptr dead_on_unwind nonnull writable sret(%"class.Catch::XmlWriter::ScopedElement") align 8 %32, ptr noundef nonnull align 8 dereferenceable(72) %247, ptr noundef nonnull align 8 dereferenceable(32) %33, i32 noundef %249)
          to label %251 unwind label %262

251:                                              ; preds = %250
  %252 = invoke { ptr, i64 } @_ZNK5Catch15AssertionResult10getMessageEv(ptr noundef nonnull align 8 dereferenceable(144) %1)
          to label %253 unwind label %264

253:                                              ; preds = %251
  %254 = invoke noundef i32 @_ZN5CatchorENS_13XmlFormattingES0_(i32 noundef 2, i32 noundef 1)
          to label %255 unwind label %264

255:                                              ; preds = %253
  %256 = extractvalue { ptr, i64 } %252, 1
  %257 = extractvalue { ptr, i64 } %252, 0
  %258 = invoke noundef nonnull align 8 dereferenceable(12) ptr @_ZN5Catch9XmlWriter13ScopedElement9writeTextENS_9StringRefENS_13XmlFormattingE(ptr noundef nonnull align 8 dereferenceable(12) %32, ptr %257, i64 %256, i32 noundef %254)
          to label %259 unwind label %264

259:                                              ; preds = %255
  call void @_ZN5Catch9XmlWriter13ScopedElementD1Ev(ptr noundef nonnull align 8 dereferenceable(12) %32) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %33) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %34) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %34) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %33) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %32) #6
  br label %314

260:                                              ; preds = %246
  %261 = landingpad { ptr, i32 }
          cleanup
  br label %267

262:                                              ; preds = %250, %248
  %263 = landingpad { ptr, i32 }
          cleanup
  br label %266

264:                                              ; preds = %255, %253, %251
  %265 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN5Catch9XmlWriter13ScopedElementD1Ev(ptr noundef nonnull align 8 dereferenceable(12) %32) #6
  br label %266

266:                                              ; preds = %264, %262
  %.pn83 = phi { ptr, i32 } [ %265, %264 ], [ %263, %262 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %33) #6
  br label %267

267:                                              ; preds = %266, %260
  %.pn83.pn = phi { ptr, i32 } [ %.pn83, %266 ], [ %261, %260 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %34) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %34) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %33) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %32) #6
  br label %321

268:                                              ; preds = %198
  %269 = getelementptr inbounds i8, ptr %0, i64 152
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %35) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %36) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %36) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %35, ptr noundef nonnull @.str.21, ptr noundef nonnull align 1 dereferenceable(1) %36)
          to label %270 unwind label %286

270:                                              ; preds = %268
  %271 = invoke noundef i32 @_ZN5CatchorENS_13XmlFormattingES0_(i32 noundef 2, i32 noundef 1)
          to label %272 unwind label %288

272:                                              ; preds = %270
  %273 = invoke noundef nonnull align 8 dereferenceable(72) ptr @_ZN5Catch9XmlWriter12startElementERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_13XmlFormattingE(ptr noundef nonnull align 8 dereferenceable(72) %269, ptr noundef nonnull align 8 dereferenceable(32) %35, i32 noundef %271)
          to label %274 unwind label %288

274:                                              ; preds = %272
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %35) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %36) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %36) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %35) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %37) #6
  %275 = call { ptr, i64 } @_ZNK5Catch15AssertionResult13getSourceInfoEv(ptr noundef nonnull align 8 dereferenceable(144) %1)
  %276 = extractvalue { ptr, i64 } %275, 0
  store ptr %276, ptr %37, align 8
  %277 = getelementptr inbounds i8, ptr %37, i64 8
  %278 = extractvalue { ptr, i64 } %275, 1
  store i64 %278, ptr %277, align 8
  call void @_ZN5Catch11XmlReporter15writeSourceInfoERKNS_14SourceLineInfoE(ptr noundef nonnull align 8 dereferenceable(228) %0, ptr noundef nonnull align 8 dereferenceable(16) %37)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %37) #6
  %279 = call { ptr, i64 } @_ZNK5Catch15AssertionResult10getMessageEv(ptr noundef nonnull align 8 dereferenceable(144) %1)
  %280 = extractvalue { ptr, i64 } %279, 0
  %281 = extractvalue { ptr, i64 } %279, 1
  %282 = call noundef i32 @_ZN5CatchorENS_13XmlFormattingES0_(i32 noundef 2, i32 noundef 1)
  %283 = call noundef nonnull align 8 dereferenceable(72) ptr @_ZN5Catch9XmlWriter9writeTextENS_9StringRefENS_13XmlFormattingE(ptr noundef nonnull align 8 dereferenceable(72) %269, ptr %280, i64 %281, i32 noundef %282)
  %284 = call noundef i32 @_ZN5CatchorENS_13XmlFormattingES0_(i32 noundef 2, i32 noundef 1)
  %285 = call noundef nonnull align 8 dereferenceable(72) ptr @_ZN5Catch9XmlWriter10endElementENS_13XmlFormattingE(ptr noundef nonnull align 8 dereferenceable(72) %269, i32 noundef %284)
  br label %314

286:                                              ; preds = %268
  %287 = landingpad { ptr, i32 }
          cleanup
  br label %290

288:                                              ; preds = %272, %270
  %289 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %35) #6
  br label %290

290:                                              ; preds = %288, %286
  %.pn79 = phi { ptr, i32 } [ %289, %288 ], [ %287, %286 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %36) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %36) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %35) #6
  br label %321

291:                                              ; preds = %198
  %292 = getelementptr inbounds i8, ptr %0, i64 152
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %38) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %39) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %39) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %38, ptr noundef nonnull @.str.22, ptr noundef nonnull align 1 dereferenceable(1) %39)
          to label %293 unwind label %309

293:                                              ; preds = %291
  %294 = invoke noundef i32 @_ZN5CatchorENS_13XmlFormattingES0_(i32 noundef 2, i32 noundef 1)
          to label %295 unwind label %311

295:                                              ; preds = %293
  %296 = invoke noundef nonnull align 8 dereferenceable(72) ptr @_ZN5Catch9XmlWriter12startElementERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_13XmlFormattingE(ptr noundef nonnull align 8 dereferenceable(72) %292, ptr noundef nonnull align 8 dereferenceable(32) %38, i32 noundef %294)
          to label %297 unwind label %311

297:                                              ; preds = %295
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %38) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %39) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %39) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %38) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %40) #6
  %298 = call { ptr, i64 } @_ZNK5Catch15AssertionResult13getSourceInfoEv(ptr noundef nonnull align 8 dereferenceable(144) %1)
  %299 = extractvalue { ptr, i64 } %298, 0
  store ptr %299, ptr %40, align 8
  %300 = getelementptr inbounds i8, ptr %40, i64 8
  %301 = extractvalue { ptr, i64 } %298, 1
  store i64 %301, ptr %300, align 8
  call void @_ZN5Catch11XmlReporter15writeSourceInfoERKNS_14SourceLineInfoE(ptr noundef nonnull align 8 dereferenceable(228) %0, ptr noundef nonnull align 8 dereferenceable(16) %40)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %40) #6
  %302 = call { ptr, i64 } @_ZNK5Catch15AssertionResult10getMessageEv(ptr noundef nonnull align 8 dereferenceable(144) %1)
  %303 = extractvalue { ptr, i64 } %302, 0
  %304 = extractvalue { ptr, i64 } %302, 1
  %305 = call noundef i32 @_ZN5CatchorENS_13XmlFormattingES0_(i32 noundef 2, i32 noundef 1)
  %306 = call noundef nonnull align 8 dereferenceable(72) ptr @_ZN5Catch9XmlWriter9writeTextENS_9StringRefENS_13XmlFormattingE(ptr noundef nonnull align 8 dereferenceable(72) %292, ptr %303, i64 %304, i32 noundef %305)
  %307 = call noundef i32 @_ZN5CatchorENS_13XmlFormattingES0_(i32 noundef 2, i32 noundef 1)
  %308 = call noundef nonnull align 8 dereferenceable(72) ptr @_ZN5Catch9XmlWriter10endElementENS_13XmlFormattingE(ptr noundef nonnull align 8 dereferenceable(72) %292, i32 noundef %307)
  br label %314

309:                                              ; preds = %291
  %310 = landingpad { ptr, i32 }
          cleanup
  br label %313

311:                                              ; preds = %295, %293
  %312 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %38) #6
  br label %313

313:                                              ; preds = %311, %309
  %.pn81 = phi { ptr, i32 } [ %312, %311 ], [ %310, %309 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %39) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %39) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %38) #6
  br label %321

314:                                              ; preds = %198, %297, %274, %259, %229, %206
  %315 = call noundef zeroext i1 @_ZNK5Catch15AssertionResult13hasExpressionEv(ptr noundef nonnull align 8 dereferenceable(144) %1)
  br i1 %315, label %316, label %320

316:                                              ; preds = %314
  %317 = getelementptr inbounds i8, ptr %0, i64 152
  %318 = call noundef i32 @_ZN5CatchorENS_13XmlFormattingES0_(i32 noundef 2, i32 noundef 1)
  %319 = call noundef nonnull align 8 dereferenceable(72) ptr @_ZN5Catch9XmlWriter10endElementENS_13XmlFormattingE(ptr noundef nonnull align 8 dereferenceable(72) %317, i32 noundef %318)
  br label %320

320:                                              ; preds = %314, %316, %116
  ret void

321:                                              ; preds = %313, %290, %267, %245, %222, %197, %186, %175, %114
  %.pn96.pn.pn = phi { ptr, i32 } [ %.pn96.pn, %114 ], [ %.pn79, %290 ], [ %.pn81, %313 ], [ %.pn83.pn, %267 ], [ %.pn86, %245 ], [ %.pn88, %222 ], [ %.pn75.pn.pn, %197 ], [ %.pn71.pn.pn, %186 ], [ %.pn, %175 ]
  resume { ptr, i32 } %.pn96.pn.pn
}

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

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

; 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 #4

; 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

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 #3

declare noundef nonnull align 8 dereferenceable(12) ptr @_ZN5Catch9XmlWriter13ScopedElement9writeTextENS_9StringRefENS_13XmlFormattingE(ptr noundef nonnull align 8 dereferenceable(12), ptr, i64, i32 noundef) local_unnamed_addr #3

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

; 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

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

declare noundef nonnull align 8 dereferenceable(72) ptr @_ZN5Catch9XmlWriter14writeAttributeENS_9StringRefEb(ptr noundef nonnull align 8 dereferenceable(72), ptr, i64, i1 noundef zeroext) local_unnamed_addr #3

declare noundef zeroext i1 @_ZNK5Catch15AssertionResult9succeededEv(ptr noundef nonnull align 8 dereferenceable(144)) local_unnamed_addr #3

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

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

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 #3

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 #3

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 #3

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

declare noundef nonnull align 8 dereferenceable(72) ptr @_ZN5Catch9XmlWriter10endElementENS_13XmlFormattingE(ptr noundef nonnull align 8 dereferenceable(72), i32 noundef) local_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 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "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 = { 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 #5 = { 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 #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, !11, i64 16}
!6 = !{!"_ZTSN5Catch14IEventListenerE", !7, i64 8, !11, i64 16}
!7 = !{!"_ZTSN5Catch19ReporterPreferencesE", !8, i64 0, !8, i64 1}
!8 = !{!"bool", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"any pointer", !9, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"vtable pointer", !10, 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", !11, i64 0, !17, i64 8}
!17 = !{!"long", !9, i64 0}
!18 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !19, i64 0, !17, i64 8, !9, i64 16}
!19 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !11, i64 0}
!20 = !{!"_ZTSN5Catch14SourceLineInfoE", !11, i64 0, !17, i64 8}
!21 = !{!"_ZTSN5Catch9ResultWas6OfTypeE", !9, i64 0}
!22 = !{!"int", !9, i64 0}


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