; LLVM IR from richgrov/simulo-engine :: src/test_main.ll (ZN7doctest6detail13ResultBuilder3logEv)

; 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.doctest::String" = type { %union.anon.7 }
%union.anon.7 = type { %"struct.doctest::String::view", [8 x i8] }
%"struct.doctest::String::view" = type { ptr, i32, i32 }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"struct.doctest::AssertData" = type { ptr, i32, ptr, i32, ptr, i8, i8, %"class.doctest::String", %"class.doctest::String", i8, ptr, %"class.doctest::AssertData::StringContains" }
%"class.doctest::AssertData::StringContains" = type <{ %"class.doctest::Contains", i8, [7 x i8] }>
%"class.doctest::Contains" = type { %"class.doctest::String" }
%"struct.doctest::detail::ContextState" = type <{ %"struct.doctest::ContextOptions.base", i8, %"struct.doctest::TestRunStats", %"struct.doctest::CurrentTestCaseStats", %"class.doctest::detail::MultiLaneAtomic", %"class.doctest::detail::MultiLaneAtomic", %"class.std::vector.9", %"class.std::vector.14", ptr, %"struct.doctest::detail::Timer", %"class.std::vector.19", i8, [7 x i8], %"class.std::vector.24", %"class.std::vector.24", %"class.std::unordered_set", i64, %"struct.std::atomic.34", [7 x i8] }>
%"struct.doctest::ContextOptions.base" = type <{ ptr, %"class.doctest::String", ptr, %"class.doctest::String", %"class.doctest::String", i32, i32, i32, i32, i32, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8 }>
%"struct.doctest::TestRunStats" = type { i32, i32, i32, i32, i32, i32 }
%"struct.doctest::CurrentTestCaseStats" = type { i32, i32, double, i32, i8 }
%"class.doctest::detail::MultiLaneAtomic" = type { [32 x %"struct.doctest::detail::MultiLaneAtomic<int>::CacheLineAlignedAtomic"] }
%"struct.doctest::detail::MultiLaneAtomic<int>::CacheLineAlignedAtomic" = type { %"struct.std::atomic", [60 x i8] }
%"struct.std::atomic" = type { %"struct.std::__atomic_base" }
%"struct.std::__atomic_base" = type { i32 }
%"class.std::vector.9" = type { %"struct.std::_Vector_base.10" }
%"struct.std::_Vector_base.10" = type { %"struct.std::_Vector_base<std::vector<doctest::String>, std::allocator<std::vector<doctest::String>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<doctest::String>, std::allocator<std::vector<doctest::String>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<doctest::String>, std::allocator<std::vector<doctest::String>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<doctest::String>, std::allocator<std::vector<doctest::String>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.14" = type { %"struct.std::_Vector_base.15" }
%"struct.std::_Vector_base.15" = type { %"struct.std::_Vector_base<doctest::IReporter *, std::allocator<doctest::IReporter *>>::_Vector_impl" }
%"struct.std::_Vector_base<doctest::IReporter *, std::allocator<doctest::IReporter *>>::_Vector_impl" = type { %"struct.std::_Vector_base<doctest::IReporter *, std::allocator<doctest::IReporter *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<doctest::IReporter *, std::allocator<doctest::IReporter *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.doctest::detail::Timer" = type { i64 }
%"class.std::vector.19" = type { %"struct.std::_Vector_base.20" }
%"struct.std::_Vector_base.20" = type { %"struct.std::_Vector_base<doctest::String, std::allocator<doctest::String>>::_Vector_impl" }
%"struct.std::_Vector_base<doctest::String, std::allocator<doctest::String>>::_Vector_impl" = type { %"struct.std::_Vector_base<doctest::String, std::allocator<doctest::String>>::_Vector_impl_data" }
%"struct.std::_Vector_base<doctest::String, std::allocator<doctest::String>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.24" = type { %"struct.std::_Vector_base.25" }
%"struct.std::_Vector_base.25" = type { %"struct.std::_Vector_base<doctest::SubcaseSignature, std::allocator<doctest::SubcaseSignature>>::_Vector_impl" }
%"struct.std::_Vector_base<doctest::SubcaseSignature, std::allocator<doctest::SubcaseSignature>>::_Vector_impl" = type { %"struct.std::_Vector_base<doctest::SubcaseSignature, std::allocator<doctest::SubcaseSignature>>::_Vector_impl_data" }
%"struct.std::_Vector_base<doctest::SubcaseSignature, std::allocator<doctest::SubcaseSignature>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::unordered_set" = type { %"class.std::_Hashtable" }
%"class.std::_Hashtable" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%"struct.std::atomic.34" = type { %"struct.std::__atomic_base.35" }
%"struct.std::__atomic_base.35" = type { i8 }
%"struct.doctest::ContextOptions" = type <{ ptr, %"class.doctest::String", ptr, %"class.doctest::String", %"class.doctest::String", i32, i32, i32, i32, i32, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8 }>
%"struct.doctest::TestCaseData" = type { %"class.doctest::String", i32, ptr, ptr, ptr, i8, i8, i8, i8, i8, i32, double }

@_ZN7doctest18is_running_in_testE = external dso_local global i8, align 1
@_ZN7doctest6detail4g_csE = external dso_local global ptr, align 8
@.str.65 = external hidden unnamed_addr constant [2 x i8], align 1

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7doctestplERKNS_6StringES2_(ptr dead_on_unwind noalias writable sret(%"class.doctest::String") align 8, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN7doctest17getContextOptionsEv() #1

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIPN7doctest9IReporterESaIS2_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_cxxneIPPN7doctest9IReporterESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #3

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN7doctest6detail16isDebuggerActiveEv() #2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN7doctest6detail13ResultBuilder3logEv(ptr noundef nonnull align 8 dereferenceable(144) %0) #2 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca %"class.doctest::String", align 8
  %4 = alloca %"class.doctest::String", align 8
  %5 = alloca %"class.doctest::String", align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca %"class.doctest::String", align 8
  %9 = alloca ptr, align 8
  %10 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %11 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %12 = alloca ptr, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %13 = load ptr, ptr %2, align 8
  %14 = getelementptr inbounds %"struct.doctest::AssertData", ptr %13, i32 0, i32 1
  %15 = load i32, ptr %14, align 8, !tbaa !9
  %16 = and i32 %15, 16
  %17 = icmp ne i32 %16, 0
  br i1 %17, label %18, label %25

18:                                               ; preds = %1
  %19 = getelementptr inbounds %"struct.doctest::AssertData", ptr %13, i32 0, i32 6
  %20 = load i8, ptr %19, align 1, !tbaa !17, !range !18, !noundef !19
  %21 = trunc i8 %20 to i1
  %22 = xor i1 %21, true
  %23 = getelementptr inbounds %"struct.doctest::AssertData", ptr %13, i32 0, i32 5
  %24 = zext i1 %22 to i8
  store i8 %24, ptr %23, align 8, !tbaa !20
  br label %87

25:                                               ; preds = %1
  %26 = getelementptr inbounds %"struct.doctest::AssertData", ptr %13, i32 0, i32 1
  %27 = load i32, ptr %26, align 8, !tbaa !9
  %28 = and i32 %27, 32
  %29 = icmp ne i32 %28, 0
  br i1 %29, label %30, label %48

30:                                               ; preds = %25
  %31 = getelementptr inbounds %"struct.doctest::AssertData", ptr %13, i32 0, i32 1
  %32 = load i32, ptr %31, align 8, !tbaa !9
  %33 = and i32 %32, 64
  %34 = icmp ne i32 %33, 0
  br i1 %34, label %35, label %48

35:                                               ; preds = %30
  %36 = getelementptr inbounds %"struct.doctest::AssertData", ptr %13, i32 0, i32 9
  %37 = load i8, ptr %36, align 8, !tbaa !21, !range !18, !noundef !19
  %38 = trunc i8 %37 to i1
  br i1 %38, label %39, label %44

39:                                               ; preds = %35
  %40 = getelementptr inbounds %"struct.doctest::AssertData", ptr %13, i32 0, i32 11
  %41 = getelementptr inbounds %"struct.doctest::AssertData", ptr %13, i32 0, i32 7
  %42 = call noundef zeroext i1 @_ZN7doctest10AssertData14StringContains5checkERKNS_6StringE(ptr noundef nonnull align 8 dereferenceable(25) %40, ptr noundef nonnull align 8 dereferenceable(24) %41)
  %43 = xor i1 %42, true
  br label %44

44:                                               ; preds = %39, %35
  %45 = phi i1 [ true, %35 ], [ %43, %39 ]
  %46 = getelementptr inbounds %"struct.doctest::AssertData", ptr %13, i32 0, i32 5
  %47 = zext i1 %45 to i8
  store i8 %47, ptr %46, align 8, !tbaa !20
  br label %86

48:                                               ; preds = %30, %25
  %49 = getelementptr inbounds %"struct.doctest::AssertData", ptr %13, i32 0, i32 1
  %50 = load i32, ptr %49, align 8, !tbaa !9
  %51 = and i32 %50, 32
  %52 = icmp ne i32 %51, 0
  br i1 %52, label %53, label %60

53:                                               ; preds = %48
  %54 = getelementptr inbounds %"struct.doctest::AssertData", ptr %13, i32 0, i32 9
  %55 = load i8, ptr %54, align 8, !tbaa !21, !range !18, !noundef !19
  %56 = trunc i8 %55 to i1
  %57 = xor i1 %56, true
  %58 = getelementptr inbounds %"struct.doctest::AssertData", ptr %13, i32 0, i32 5
  %59 = zext i1 %57 to i8
  store i8 %59, ptr %58, align 8, !tbaa !20
  br label %85

60:                                               ; preds = %48
  %61 = getelementptr inbounds %"struct.doctest::AssertData", ptr %13, i32 0, i32 1
  %62 = load i32, ptr %61, align 8, !tbaa !9
  %63 = and i32 %62, 64
  %64 = icmp ne i32 %63, 0
  br i1 %64, label %65, label %72

65:                                               ; preds = %60
  %66 = getelementptr inbounds %"struct.doctest::AssertData", ptr %13, i32 0, i32 11
  %67 = getelementptr inbounds %"struct.doctest::AssertData", ptr %13, i32 0, i32 7
  %68 = call noundef zeroext i1 @_ZN7doctest10AssertData14StringContains5checkERKNS_6StringE(ptr noundef nonnull align 8 dereferenceable(25) %66, ptr noundef nonnull align 8 dereferenceable(24) %67)
  %69 = xor i1 %68, true
  %70 = getelementptr inbounds %"struct.doctest::AssertData", ptr %13, i32 0, i32 5
  %71 = zext i1 %69 to i8
  store i8 %71, ptr %70, align 8, !tbaa !20
  br label %84

72:                                               ; preds = %60
  %73 = getelementptr inbounds %"struct.doctest::AssertData", ptr %13, i32 0, i32 1
  %74 = load i32, ptr %73, align 8, !tbaa !9
  %75 = and i32 %74, 128
  %76 = icmp ne i32 %75, 0
  br i1 %76, label %77, label %83

77:                                               ; preds = %72
  %78 = getelementptr inbounds %"struct.doctest::AssertData", ptr %13, i32 0, i32 6
  %79 = load i8, ptr %78, align 1, !tbaa !17, !range !18, !noundef !19
  %80 = trunc i8 %79 to i1
  %81 = getelementptr inbounds %"struct.doctest::AssertData", ptr %13, i32 0, i32 5
  %82 = zext i1 %80 to i8
  store i8 %82, ptr %81, align 8, !tbaa !20
  br label %83

83:                                               ; preds = %77, %72
  br label %84

84:                                               ; preds = %83, %65
  br label %85

85:                                               ; preds = %84, %53
  br label %86

86:                                               ; preds = %85, %44
  br label %87

87:                                               ; preds = %86, %18
  %88 = getelementptr inbounds %"struct.doctest::AssertData", ptr %13, i32 0, i32 7
  %89 = call noundef i32 @_ZNK7doctest6String4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %88)
  %90 = icmp ne i32 %89, 0
  br i1 %90, label %91, label %112

91:                                               ; preds = %87
  call void @llvm.lifetime.start.p0(i64 24, ptr %3) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr %4) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr %5) #4
  call void @_ZN7doctest6StringC1EPKc(ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef @.str.65)
  %92 = getelementptr inbounds %"struct.doctest::AssertData", ptr %13, i32 0, i32 7
  invoke void @_ZN7doctestplERKNS_6StringES2_(ptr dead_on_unwind writable sret(%"class.doctest::String") align 8 %4, ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(24) %92)
          to label %93 unwind label %98

93:                                               ; preds = %91
  call void @llvm.lifetime.start.p0(i64 24, ptr %8) #4
  invoke void @_ZN7doctest6StringC1EPKc(ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef @.str.65)
          to label %94 unwind label %102

94:                                               ; preds = %93
  invoke void @_ZN7doctestplERKNS_6StringES2_(ptr dead_on_unwind writable sret(%"class.doctest::String") align 8 %3, ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(24) %8)
          to label %95 unwind label %106

95:                                               ; preds = %94
  %96 = getelementptr inbounds %"struct.doctest::AssertData", ptr %13, i32 0, i32 7
  %97 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN7doctest6StringaSEOS0_(ptr noundef nonnull align 8 dereferenceable(24) %96, ptr noundef nonnull align 8 dereferenceable(24) %3) #4
  call void @_ZN7doctest6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #4
  call void @_ZN7doctest6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %8) #4
  call void @_ZN7doctest6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #4
  call void @_ZN7doctest6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %5) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %4) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %3) #4
  br label %112

98:                                               ; preds = %91
  %99 = landingpad { ptr, i32 }
          cleanup
  %100 = extractvalue { ptr, i32 } %99, 0
  store ptr %100, ptr %6, align 8
  %101 = extractvalue { ptr, i32 } %99, 1
  store i32 %101, ptr %7, align 4
  br label %111

102:                                              ; preds = %93
  %103 = landingpad { ptr, i32 }
          cleanup
  %104 = extractvalue { ptr, i32 } %103, 0
  store ptr %104, ptr %6, align 8
  %105 = extractvalue { ptr, i32 } %103, 1
  store i32 %105, ptr %7, align 4
  br label %110

106:                                              ; preds = %94
  %107 = landingpad { ptr, i32 }
          cleanup
  %108 = extractvalue { ptr, i32 } %107, 0
  store ptr %108, ptr %6, align 8
  %109 = extractvalue { ptr, i32 } %107, 1
  store i32 %109, ptr %7, align 4
  call void @_ZN7doctest6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #4
  br label %110

110:                                              ; preds = %106, %102
  call void @llvm.lifetime.end.p0(i64 24, ptr %8) #4
  call void @_ZN7doctest6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #4
  br label %111

111:                                              ; preds = %110, %98
  call void @_ZN7doctest6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %5) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %4) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %3) #4
  br label %180

112:                                              ; preds = %95, %87
  %113 = load i8, ptr @_ZN7doctest18is_running_in_testE, align 1, !tbaa !22, !range !18, !noundef !19
  %114 = trunc i8 %113 to i1
  br i1 %114, label %115, label %146

115:                                              ; preds = %112
  %116 = getelementptr inbounds %"struct.doctest::AssertData", ptr %13, i32 0, i32 1
  %117 = load i32, ptr %116, align 8, !tbaa !9
  call void @_ZN7doctest12_GLOBAL__N_19addAssertENS_10assertType4EnumE(i32 noundef %117)
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  %118 = load ptr, ptr @_ZN7doctest6detail4g_csE, align 8, !tbaa !5
  %119 = getelementptr inbounds %"struct.doctest::detail::ContextState", ptr %118, i32 0, i32 7
  store ptr %119, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  %120 = load ptr, ptr %9, align 8, !tbaa !5
  %121 = call ptr @_ZNSt6vectorIPN7doctest9IReporterESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %120) #4
  %122 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %10, i32 0, i32 0
  store ptr %121, ptr %122, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  %123 = load ptr, ptr %9, align 8, !tbaa !5
  %124 = call ptr @_ZNSt6vectorIPN7doctest9IReporterESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %123) #4
  %125 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %11, i32 0, i32 0
  store ptr %124, ptr %125, align 8
  br label %126

126:                                              ; preds = %136, %115
  %127 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPPN7doctest9IReporterESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %11) #4
  br i1 %127, label %129, label %128

128:                                              ; preds = %126
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  br label %138

129:                                              ; preds = %126
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  %130 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPPN7doctest9IReporterESt6vectorIS3_SaIS3_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #4
  store ptr %130, ptr %12, align 8, !tbaa !5
  %131 = load ptr, ptr %12, align 8, !tbaa !5
  %132 = load ptr, ptr %131, align 8, !tbaa !5
  %133 = load ptr, ptr %132, align 8, !tbaa !23
  %134 = getelementptr inbounds ptr, ptr %133, i64 9
  %135 = load ptr, ptr %134, align 8
  call void %135(ptr noundef nonnull align 8 dereferenceable(8) %132, ptr noundef nonnull align 8 dereferenceable(144) %13)
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  br label %136

136:                                              ; preds = %129
  %137 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPPN7doctest9IReporterESt6vectorIS3_SaIS3_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #4
  br label %126

138:                                              ; preds = %128
  %139 = getelementptr inbounds %"struct.doctest::AssertData", ptr %13, i32 0, i32 5
  %140 = load i8, ptr %139, align 8, !tbaa !20, !range !18, !noundef !19
  %141 = trunc i8 %140 to i1
  br i1 %141, label %142, label %145

142:                                              ; preds = %138
  %143 = getelementptr inbounds %"struct.doctest::AssertData", ptr %13, i32 0, i32 1
  %144 = load i32, ptr %143, align 8, !tbaa !9
  call void @_ZN7doctest12_GLOBAL__N_115addFailedAssertENS_10assertType4EnumE(i32 noundef %144)
  br label %145

145:                                              ; preds = %142, %138
  br label %152

146:                                              ; preds = %112
  %147 = getelementptr inbounds %"struct.doctest::AssertData", ptr %13, i32 0, i32 5
  %148 = load i8, ptr %147, align 8, !tbaa !20, !range !18, !noundef !19
  %149 = trunc i8 %148 to i1
  br i1 %149, label %150, label %151

150:                                              ; preds = %146
  call void @_ZN7doctest6detail31failed_out_of_a_testing_contextERKNS_10AssertDataE(ptr noundef nonnull align 8 dereferenceable(144) %13)
  br label %151

151:                                              ; preds = %150, %146
  br label %152

152:                                              ; preds = %151, %145
  %153 = getelementptr inbounds %"struct.doctest::AssertData", ptr %13, i32 0, i32 5
  %154 = load i8, ptr %153, align 8, !tbaa !20, !range !18, !noundef !19
  %155 = trunc i8 %154 to i1
  br i1 %155, label %156, label %178

156:                                              ; preds = %152
  %157 = call noundef zeroext i1 @_ZN7doctest6detail16isDebuggerActiveEv()
  br i1 %157, label %158, label %178

158:                                              ; preds = %156
  %159 = call noundef ptr @_ZN7doctest17getContextOptionsEv()
  %160 = getelementptr inbounds %"struct.doctest::ContextOptions", ptr %159, i32 0, i32 23
  %161 = load i8, ptr %160, align 1, !tbaa !25, !range !18, !noundef !19
  %162 = trunc i8 %161 to i1
  br i1 %162, label %178, label %163

163:                                              ; preds = %158
  %164 = load ptr, ptr @_ZN7doctest6detail4g_csE, align 8, !tbaa !5
  %165 = getelementptr inbounds %"struct.doctest::ContextOptions", ptr %164, i32 0, i32 2
  %166 = load ptr, ptr %165, align 8, !tbaa !27
  %167 = icmp eq ptr %166, null
  br i1 %167, label %176, label %168

168:                                              ; preds = %163
  %169 = load ptr, ptr @_ZN7doctest6detail4g_csE, align 8, !tbaa !5
  %170 = getelementptr inbounds %"struct.doctest::ContextOptions", ptr %169, i32 0, i32 2
  %171 = load ptr, ptr %170, align 8, !tbaa !27
  %172 = getelementptr inbounds %"struct.doctest::TestCaseData", ptr %171, i32 0, i32 6
  %173 = load i8, ptr %172, align 1, !tbaa !28, !range !18, !noundef !19
  %174 = trunc i8 %173 to i1
  %175 = xor i1 %174, true
  br label %176

176:                                              ; preds = %168, %163
  %177 = phi i1 [ true, %163 ], [ %175, %168 ]
  br label %178

178:                                              ; preds = %176, %158, %156, %152
  %179 = phi i1 [ false, %158 ], [ false, %156 ], [ false, %152 ], [ %177, %176 ]
  ret i1 %179

180:                                              ; preds = %111
  %181 = load ptr, ptr %6, align 8
  %182 = load i32, ptr %7, align 4
  %183 = insertvalue { ptr, i32 } poison, ptr %181, 0
  %184 = insertvalue { ptr, i32 } %183, i32 %182, 1
  resume { ptr, i32 } %184
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN7doctest10AssertData14StringContains5checkERKNS_6StringE(ptr noundef nonnull align 8 dereferenceable(25), ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZN7doctest12_GLOBAL__N_19addAssertENS_10assertType4EnumE(i32 noundef) #1

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZN7doctest12_GLOBAL__N_115addFailedAssertENS_10assertType4EnumE(i32 noundef) #1

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

declare void @_ZN7doctest6StringD1Ev(ptr)

declare void @_ZN7doctest6StringC1EPKc(ptr, ptr)

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 = { 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 #4 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !11, i64 8}
!10 = !{!"_ZTSN7doctest10AssertDataE", !6, i64 0, !11, i64 8, !6, i64 16, !12, i64 24, !6, i64 32, !13, i64 40, !13, i64 41, !14, i64 48, !14, i64 72, !13, i64 96, !6, i64 104, !15, i64 112}
!11 = !{!"_ZTSN7doctest10assertType4EnumE", !7, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!"bool", !7, i64 0}
!14 = !{!"_ZTSN7doctest6StringE", !7, i64 0}
!15 = !{!"_ZTSN7doctest10AssertData14StringContainsE", !16, i64 0, !13, i64 24}
!16 = !{!"_ZTSN7doctest8ContainsE", !14, i64 0}
!17 = !{!10, !13, i64 41}
!18 = !{i8 0, i8 2}
!19 = !{}
!20 = !{!10, !13, i64 40}
!21 = !{!10, !13, i64 96}
!22 = !{!13, !13, i64 0}
!23 = !{!24, !24, i64 0}
!24 = !{!"vtable pointer", !8, i64 0}
!25 = !{!26, !13, i64 121}
!26 = !{!"_ZTSN7doctest14ContextOptionsE", !6, i64 0, !14, i64 8, !6, i64 32, !14, i64 40, !14, i64 64, !12, i64 88, !12, i64 92, !12, i64 96, !12, i64 100, !12, i64 104, !13, i64 108, !13, i64 109, !13, i64 110, !13, i64 111, !13, i64 112, !13, i64 113, !13, i64 114, !13, i64 115, !13, i64 116, !13, i64 117, !13, i64 118, !13, i64 119, !13, i64 120, !13, i64 121, !13, i64 122, !13, i64 123, !13, i64 124, !13, i64 125, !13, i64 126, !13, i64 127, !13, i64 128, !13, i64 129, !13, i64 130, !13, i64 131, !13, i64 132, !13, i64 133, !13, i64 134}
!27 = !{!26, !6, i64 32}
!28 = !{!29, !13, i64 57}
!29 = !{!"_ZTSN7doctest12TestCaseDataE", !14, i64 0, !12, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !13, i64 56, !13, i64 57, !13, i64 58, !13, i64 59, !13, i64 60, !12, i64 64, !30, i64 72}
!30 = !{!"double", !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.doctest::String" = type { %union.anon.7 }
%union.anon.7 = type { %"struct.doctest::String::view", [8 x i8] }
%"struct.doctest::String::view" = type { ptr, i32, i32 }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }

@_ZN7doctest18is_running_in_testE = external dso_local local_unnamed_addr global i8, align 1
@_ZN7doctest6detail4g_csE = external dso_local local_unnamed_addr global ptr, align 8
@.str.65 = external hidden unnamed_addr constant [2 x i8], align 1

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7doctestplERKNS_6StringES2_(ptr dead_on_unwind noalias writable sret(%"class.doctest::String") align 8, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN7doctest17getContextOptionsEv() local_unnamed_addr #1

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIPN7doctest9IReporterESaIS2_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_cxxneIPPN7doctest9IReporterESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN7doctest6detail16isDebuggerActiveEv() local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN7doctest6detail13ResultBuilder3logEv(ptr noundef nonnull align 8 dereferenceable(144) %0) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.doctest::String", align 8
  %3 = alloca %"class.doctest::String", align 8
  %4 = alloca %"class.doctest::String", align 8
  %5 = alloca %"class.doctest::String", align 8
  %6 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %7 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %8 = getelementptr inbounds i8, ptr %0, i64 8
  %9 = load i32, ptr %8, align 8, !tbaa !5
  %10 = and i32 %9, 16
  %.not = icmp eq i32 %10, 0
  br i1 %.not, label %16, label %11

11:                                               ; preds = %1
  %12 = getelementptr inbounds i8, ptr %0, i64 41
  %13 = load i8, ptr %12, align 1, !tbaa !16, !range !17, !noundef !18
  %14 = xor i8 %13, 1
  %15 = getelementptr inbounds i8, ptr %0, i64 40
  store i8 %14, ptr %15, align 8, !tbaa !19
  br label %53

16:                                               ; preds = %1
  %17 = and i32 %9, 64
  %.not9 = icmp eq i32 %17, 0
  %18 = and i32 %9, 96
  %or.cond.not = icmp eq i32 %18, 96
  br i1 %or.cond.not, label %19, label %32

19:                                               ; preds = %16
  %20 = getelementptr inbounds i8, ptr %0, i64 96
  %21 = load i8, ptr %20, align 8, !tbaa !20, !range !17, !noundef !18
  %22 = trunc nuw i8 %21 to i1
  br i1 %22, label %23, label %29

23:                                               ; preds = %19
  %24 = getelementptr inbounds i8, ptr %0, i64 112
  %25 = getelementptr inbounds i8, ptr %0, i64 48
  %26 = tail call noundef zeroext i1 @_ZN7doctest10AssertData14StringContains5checkERKNS_6StringE(ptr noundef nonnull align 8 dereferenceable(25) %24, ptr noundef nonnull align 8 dereferenceable(24) %25)
  %27 = xor i1 %26, true
  %28 = zext i1 %27 to i8
  br label %29

29:                                               ; preds = %23, %19
  %30 = phi i8 [ 1, %19 ], [ %28, %23 ]
  %31 = getelementptr inbounds i8, ptr %0, i64 40
  store i8 %30, ptr %31, align 8, !tbaa !19
  br label %53

32:                                               ; preds = %16
  %33 = and i32 %9, 32
  %.not8 = icmp eq i32 %33, 0
  br i1 %.not8, label %39, label %34

34:                                               ; preds = %32
  %35 = getelementptr inbounds i8, ptr %0, i64 96
  %36 = load i8, ptr %35, align 8, !tbaa !20, !range !17, !noundef !18
  %37 = xor i8 %36, 1
  %38 = getelementptr inbounds i8, ptr %0, i64 40
  store i8 %37, ptr %38, align 8, !tbaa !19
  br label %53

39:                                               ; preds = %32
  br i1 %.not9, label %47, label %40

40:                                               ; preds = %39
  %41 = getelementptr inbounds i8, ptr %0, i64 112
  %42 = getelementptr inbounds i8, ptr %0, i64 48
  %43 = tail call noundef zeroext i1 @_ZN7doctest10AssertData14StringContains5checkERKNS_6StringE(ptr noundef nonnull align 8 dereferenceable(25) %41, ptr noundef nonnull align 8 dereferenceable(24) %42)
  %44 = xor i1 %43, true
  %45 = getelementptr inbounds i8, ptr %0, i64 40
  %46 = zext i1 %44 to i8
  store i8 %46, ptr %45, align 8, !tbaa !19
  br label %53

47:                                               ; preds = %39
  %48 = and i32 %9, 128
  %.not12 = icmp eq i32 %48, 0
  br i1 %.not12, label %53, label %49

49:                                               ; preds = %47
  %50 = getelementptr inbounds i8, ptr %0, i64 41
  %51 = load i8, ptr %50, align 1, !tbaa !16, !range !17, !noundef !18
  %52 = getelementptr inbounds i8, ptr %0, i64 40
  store i8 %51, ptr %52, align 8, !tbaa !19
  br label %53

53:                                               ; preds = %29, %40, %49, %47, %34, %11
  %54 = getelementptr inbounds i8, ptr %0, i64 48
  %55 = tail call noundef i32 @_ZNK7doctest6String4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %54)
  %.not13 = icmp eq i32 %55, 0
  br i1 %.not13, label %69, label %56

56:                                               ; preds = %53
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %2) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #4
  call void @_ZN7doctest6StringC1EPKc(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull @.str.65)
  invoke void @_ZN7doctestplERKNS_6StringES2_(ptr dead_on_unwind nonnull writable sret(%"class.doctest::String") align 8 %3, ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(24) %54)
          to label %57 unwind label %61

57:                                               ; preds = %56
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #4
  invoke void @_ZN7doctest6StringC1EPKc(ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull @.str.65)
          to label %58 unwind label %63

58:                                               ; preds = %57
  invoke void @_ZN7doctestplERKNS_6StringES2_(ptr dead_on_unwind nonnull writable sret(%"class.doctest::String") align 8 %2, ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(24) %5)
          to label %59 unwind label %65

59:                                               ; preds = %58
  %60 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN7doctest6StringaSEOS0_(ptr noundef nonnull align 8 dereferenceable(24) %54, ptr noundef nonnull align 8 dereferenceable(24) %2) #4
  call void @_ZN7doctest6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #4
  call void @_ZN7doctest6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #4
  call void @_ZN7doctest6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #4
  call void @_ZN7doctest6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #4
  br label %69

61:                                               ; preds = %56
  %62 = landingpad { ptr, i32 }
          cleanup
  br label %68

63:                                               ; preds = %57
  %64 = landingpad { ptr, i32 }
          cleanup
  br label %67

65:                                               ; preds = %58
  %66 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7doctest6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #4
  br label %67

67:                                               ; preds = %65, %63
  %.pn = phi { ptr, i32 } [ %66, %65 ], [ %64, %63 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #4
  call void @_ZN7doctest6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #4
  br label %68

68:                                               ; preds = %67, %61
  %.pn.pn = phi { ptr, i32 } [ %.pn, %67 ], [ %62, %61 ]
  call void @_ZN7doctest6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #4
  resume { ptr, i32 } %.pn.pn

69:                                               ; preds = %59, %53
  %70 = load i8, ptr @_ZN7doctest18is_running_in_testE, align 1, !tbaa !21, !range !17, !noundef !18
  %71 = trunc nuw i8 %70 to i1
  br i1 %71, label %72, label %91

72:                                               ; preds = %69
  %73 = load i32, ptr %8, align 8, !tbaa !5
  call void @_ZN7doctest12_GLOBAL__N_19addAssertENS_10assertType4EnumE(i32 noundef %73)
  %74 = load ptr, ptr @_ZN7doctest6detail4g_csE, align 8, !tbaa !22
  %75 = getelementptr inbounds i8, ptr %74, i64 4304
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #4
  %76 = call ptr @_ZNSt6vectorIPN7doctest9IReporterESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %75) #4
  store ptr %76, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #4
  %77 = call ptr @_ZNSt6vectorIPN7doctest9IReporterESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %75) #4
  store ptr %77, ptr %7, align 8
  %78 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPPN7doctest9IReporterESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #4
  br i1 %78, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph, %72
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #4
  %79 = getelementptr inbounds i8, ptr %0, i64 40
  %80 = load i8, ptr %79, align 8, !tbaa !19, !range !17, !noundef !18
  %81 = trunc nuw i8 %80 to i1
  br i1 %81, label %89, label %96

.lr.ph:                                           ; preds = %72, %.lr.ph
  %82 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPPN7doctest9IReporterESt6vectorIS3_SaIS3_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #4
  %83 = load ptr, ptr %82, align 8, !tbaa !22
  %84 = load ptr, ptr %83, align 8, !tbaa !23
  %85 = getelementptr inbounds i8, ptr %84, i64 72
  %86 = load ptr, ptr %85, align 8
  call void %86(ptr noundef nonnull align 8 dereferenceable(8) %83, ptr noundef nonnull align 8 dereferenceable(144) %0)
  %87 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPPN7doctest9IReporterESt6vectorIS3_SaIS3_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #4
  %88 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPPN7doctest9IReporterESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #4
  br i1 %88, label %.lr.ph, label %._crit_edge

89:                                               ; preds = %._crit_edge
  %90 = load i32, ptr %8, align 8, !tbaa !5
  call void @_ZN7doctest12_GLOBAL__N_115addFailedAssertENS_10assertType4EnumE(i32 noundef %90)
  br label %96

91:                                               ; preds = %69
  %92 = getelementptr inbounds i8, ptr %0, i64 40
  %93 = load i8, ptr %92, align 8, !tbaa !19, !range !17, !noundef !18
  %94 = trunc nuw i8 %93 to i1
  br i1 %94, label %95, label %96

95:                                               ; preds = %91
  call void @_ZN7doctest6detail31failed_out_of_a_testing_contextERKNS_10AssertDataE(ptr noundef nonnull align 8 dereferenceable(144) %0)
  br label %96

96:                                               ; preds = %91, %95, %._crit_edge, %89
  %97 = getelementptr inbounds i8, ptr %0, i64 40
  %98 = load i8, ptr %97, align 8, !tbaa !19, !range !17, !noundef !18
  %99 = trunc nuw i8 %98 to i1
  br i1 %99, label %100, label %117

100:                                              ; preds = %96
  %101 = call noundef zeroext i1 @_ZN7doctest6detail16isDebuggerActiveEv()
  br i1 %101, label %102, label %117

102:                                              ; preds = %100
  %103 = call noundef ptr @_ZN7doctest17getContextOptionsEv()
  %104 = getelementptr inbounds i8, ptr %103, i64 121
  %105 = load i8, ptr %104, align 1, !tbaa !25, !range !17, !noundef !18
  %106 = trunc nuw i8 %105 to i1
  br i1 %106, label %117, label %107

107:                                              ; preds = %102
  %108 = load ptr, ptr @_ZN7doctest6detail4g_csE, align 8, !tbaa !22
  %109 = getelementptr inbounds i8, ptr %108, i64 32
  %110 = load ptr, ptr %109, align 8, !tbaa !27
  %111 = icmp eq ptr %110, null
  br i1 %111, label %117, label %112

112:                                              ; preds = %107
  %113 = getelementptr inbounds i8, ptr %110, i64 57
  %114 = load i8, ptr %113, align 1, !tbaa !28, !range !17, !noundef !18
  %115 = trunc nuw i8 %114 to i1
  %116 = xor i1 %115, true
  br label %117

117:                                              ; preds = %107, %112, %102, %100, %96
  %118 = phi i1 [ false, %102 ], [ false, %100 ], [ false, %96 ], [ true, %107 ], [ %116, %112 ]
  ret i1 %118
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN7doctest10AssertData14StringContains5checkERKNS_6StringE(ptr noundef nonnull align 8 dereferenceable(25), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZN7doctest12_GLOBAL__N_19addAssertENS_10assertType4EnumE(i32 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZN7doctest12_GLOBAL__N_115addFailedAssertENS_10assertType4EnumE(i32 noundef) local_unnamed_addr #1

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

declare void @_ZN7doctest6StringD1Ev(ptr) local_unnamed_addr

declare void @_ZN7doctest6StringC1EPKc(ptr, ptr) local_unnamed_addr

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 = { 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 #4 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !10, i64 8}
!6 = !{!"_ZTSN7doctest10AssertDataE", !7, i64 0, !10, i64 8, !7, i64 16, !11, i64 24, !7, i64 32, !12, i64 40, !12, i64 41, !13, i64 48, !13, i64 72, !12, i64 96, !7, i64 104, !14, i64 112}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTSN7doctest10assertType4EnumE", !8, i64 0}
!11 = !{!"int", !8, i64 0}
!12 = !{!"bool", !8, i64 0}
!13 = !{!"_ZTSN7doctest6StringE", !8, i64 0}
!14 = !{!"_ZTSN7doctest10AssertData14StringContainsE", !15, i64 0, !12, i64 24}
!15 = !{!"_ZTSN7doctest8ContainsE", !13, i64 0}
!16 = !{!6, !12, i64 41}
!17 = !{i8 0, i8 2}
!18 = !{}
!19 = !{!6, !12, i64 40}
!20 = !{!6, !12, i64 96}
!21 = !{!12, !12, i64 0}
!22 = !{!7, !7, i64 0}
!23 = !{!24, !24, i64 0}
!24 = !{!"vtable pointer", !9, i64 0}
!25 = !{!26, !12, i64 121}
!26 = !{!"_ZTSN7doctest14ContextOptionsE", !7, i64 0, !13, i64 8, !7, i64 32, !13, i64 40, !13, i64 64, !11, i64 88, !11, i64 92, !11, i64 96, !11, i64 100, !11, i64 104, !12, i64 108, !12, i64 109, !12, i64 110, !12, i64 111, !12, i64 112, !12, i64 113, !12, i64 114, !12, i64 115, !12, i64 116, !12, i64 117, !12, i64 118, !12, i64 119, !12, i64 120, !12, i64 121, !12, i64 122, !12, i64 123, !12, i64 124, !12, i64 125, !12, i64 126, !12, i64 127, !12, i64 128, !12, i64 129, !12, i64 130, !12, i64 131, !12, i64 132, !12, i64 133, !12, i64 134}
!27 = !{!26, !7, i64 32}
!28 = !{!29, !12, i64 57}
!29 = !{!"_ZTSN7doctest12TestCaseDataE", !13, i64 0, !11, i64 24, !7, i64 32, !7, i64 40, !7, i64 48, !12, i64 56, !12, i64 57, !12, i64 58, !12, i64 59, !12, i64 60, !11, i64 64, !30, i64 72}
!30 = !{!"double", !8, i64 0}


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