; LLVM IR from chensoft/libsocket :: lib/libchen/test/lib/googletest/googlemock/test (gmock-matchers_test)

; 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.testing::internal::ResultOfMatcher" = type { ptr, %"class.testing::Matcher.22" }
%"class.testing::Matcher.22" = type { %"class.testing::internal::MatcherBase.23" }
%"class.testing::internal::MatcherBase.23" = type { ptr, %"class.testing::internal::linked_ptr.24" }
%"class.testing::internal::linked_ptr.24" = type { ptr, %"class.testing::internal::linked_ptr_internal" }
%"class.testing::internal::linked_ptr_internal" = type { ptr }
%"class.testing::internal::EqMatcher.958" = type { %"class.testing::internal::ComparisonBase.959" }
%"class.testing::internal::ComparisonBase.959" = type { %"class.std::__cxx11::basic_string" }
%"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.testing::internal::RE" = type { ptr, i8, %struct.re_pattern_buffer, %struct.re_pattern_buffer }
%struct.re_pattern_buffer = type { ptr, i64, i64, i64, ptr, ptr, i64, i8 }
%"class.testing::internal::scoped_ptr.979" = type { ptr }
%"class.testing::internal::DeathTest::ReturnSentinel" = type { ptr }
%"class.std::allocator" = type { i8 }
%"class.testing::Message" = type { %"class.testing::internal::scoped_ptr.0" }
%"class.testing::internal::scoped_ptr.0" = type { ptr }
%"class.testing::internal::AssertHelper" = type { ptr }

@.str.5 = external hidden unnamed_addr constant [123 x i8], align 1
@.str.382 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.1137 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.1138 = external hidden unnamed_addr constant [71 x i8], align 1
@_ZTISt9exception = external constant ptr
@stderr = external global ptr, align 8
@.str.1139 = external hidden unnamed_addr constant [103 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 @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #1 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare 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

declare void @_ZN7testing7MessageC1Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #3

declare void @_ZN7testing8internal12AssertHelperC1ENS_14TestPartResult4TypeEPKciS5_(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef, ptr noundef, i32 noundef, ptr noundef) unnamed_addr #3

declare void @_ZNK7testing8internal12AssertHelperaSERKNS_7MessageE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #3

; Function Attrs: nounwind
declare void @_ZN7testing8internal12AssertHelperD1Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN7testing7MessageD2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #5 align 2

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

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

declare noundef zeroext i1 @_ZN7testing8internal10AlwaysTrueEv() #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7testing8ResultOfIPFNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiENS_8internal9EqMatcherIS6_EEEENS9_15ResultOfMatcherIT_EESD_RKT0_(ptr dead_on_unwind noalias writable sret(%"class.testing::internal::ResultOfMatcher") align 8, ptr noundef, ptr noundef nonnull align 8 dereferenceable(32)) #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN7testing2EqINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEENS_8internal9EqMatcherIT_EES9_(ptr dead_on_unwind noalias writable sret(%"class.testing::internal::EqMatcher.958") align 8, ptr noundef) #6

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN7testing8internal15ResultOfMatcherIPFNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN7testing8internal14ComparisonBaseINS0_9EqMatcherINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEES8_NS0_5AnyEqEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7testing19gmock_matchers_test49ResultOfDeathTest_DiesOnNullFunctionPointers_Test8TestBodyEv(ptr noundef nonnull align 8 dereferenceable(16) %0) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca %"class.testing::internal::RE", align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca %"class.testing::internal::scoped_ptr.979", align 8
  %9 = alloca %"class.testing::internal::DeathTest::ReturnSentinel", align 8
  %10 = alloca %"class.testing::internal::ResultOfMatcher", align 8
  %11 = alloca %"class.testing::internal::EqMatcher.958", align 8
  %12 = alloca %"class.std::__cxx11::basic_string", align 8
  %13 = alloca %"class.std::allocator", align 1
  %14 = alloca ptr, align 8
  %15 = alloca %"class.std::__cxx11::basic_string", align 8
  %16 = alloca i32, align 4
  %17 = alloca %"class.testing::Message", align 8
  %18 = alloca %"class.testing::internal::AssertHelper", align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %19 = load ptr, ptr %2, align 8
  %20 = call noundef zeroext i1 @_ZN7testing8internal10AlwaysTrueEv()
  br i1 %20, label %21, label %177

21:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #9
  call void @llvm.lifetime.start.p0(i64 144, ptr %4) #9
  call void @_ZN7testing8internal2REC2EPKc(ptr noundef nonnull align 8 dereferenceable(144) %4, ptr noundef @.str.1137)
  store ptr %4, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #9
  %22 = load ptr, ptr %3, align 8, !tbaa !5
  %23 = invoke noundef zeroext i1 @_ZN7testing8internal9DeathTest6CreateEPKcPKNS0_2REES3_iPPS1_(ptr noundef @.str.1138, ptr noundef %22, ptr noundef @.str.5, i32 noundef 3897, ptr noundef %5)
          to label %24 unwind label %26

24:                                               ; preds = %21
  br i1 %23, label %30, label %25

25:                                               ; preds = %24
  store i32 2, ptr %16, align 4
  br label %173

26:                                               ; preds = %21
  %27 = landingpad { ptr, i32 }
          cleanup
  %28 = extractvalue { ptr, i32 } %27, 0
  store ptr %28, ptr %6, align 8
  %29 = extractvalue { ptr, i32 } %27, 1
  store i32 %29, ptr %7, align 4
  br label %176

30:                                               ; preds = %24
  %31 = load ptr, ptr %5, align 8, !tbaa !5
  %32 = icmp ne ptr %31, null
  br i1 %32, label %33, label %172

33:                                               ; preds = %30
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #9
  %34 = load ptr, ptr %5, align 8, !tbaa !5
  invoke void @_ZN7testing8internal10scoped_ptrINS0_9DeathTestEEC2EPS2_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef %34)
          to label %35 unwind label %42

35:                                               ; preds = %33
  %36 = load ptr, ptr %5, align 8, !tbaa !5
  %37 = load ptr, ptr %36, align 8, !tbaa !9
  %38 = getelementptr inbounds ptr, ptr %37, i64 2
  %39 = load ptr, ptr %38, align 8
  %40 = invoke noundef i32 %39(ptr noundef nonnull align 8 dereferenceable(8) %36)
          to label %41 unwind label %46

41:                                               ; preds = %35
  switch i32 %40, label %165 [
    i32 0, label %50
    i32 1, label %67
  ]

42:                                               ; preds = %33
  %43 = landingpad { ptr, i32 }
          cleanup
  %44 = extractvalue { ptr, i32 } %43, 0
  store ptr %44, ptr %6, align 8
  %45 = extractvalue { ptr, i32 } %43, 1
  store i32 %45, ptr %7, align 4
  br label %171

46:                                               ; preds = %59, %57, %50, %35
  %47 = landingpad { ptr, i32 }
          cleanup
  %48 = extractvalue { ptr, i32 } %47, 0
  store ptr %48, ptr %6, align 8
  %49 = extractvalue { ptr, i32 } %47, 1
  store i32 %49, ptr %7, align 4
  br label %170

50:                                               ; preds = %41
  %51 = load ptr, ptr %5, align 8, !tbaa !5
  %52 = load ptr, ptr %5, align 8, !tbaa !5
  %53 = load ptr, ptr %52, align 8, !tbaa !9
  %54 = getelementptr inbounds ptr, ptr %53, i64 3
  %55 = load ptr, ptr %54, align 8
  %56 = invoke noundef i32 %55(ptr noundef nonnull align 8 dereferenceable(8) %52)
          to label %57 unwind label %46

57:                                               ; preds = %50
  %58 = invoke noundef zeroext i1 @_ZN7testing8internal20ExitedUnsuccessfullyEi(i32 noundef %56)
          to label %59 unwind label %46

59:                                               ; preds = %57
  %60 = load ptr, ptr %51, align 8, !tbaa !9
  %61 = getelementptr inbounds ptr, ptr %60, i64 4
  %62 = load ptr, ptr %61, align 8
  %63 = invoke noundef zeroext i1 %62(ptr noundef nonnull align 8 dereferenceable(8) %51, i1 noundef zeroext %58)
          to label %64 unwind label %46

64:                                               ; preds = %59
  br i1 %63, label %66, label %65

65:                                               ; preds = %64
  store i32 2, ptr %16, align 4
  br label %167

66:                                               ; preds = %64
  br label %166

67:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #9
  %68 = load ptr, ptr %5, align 8, !tbaa !5
  invoke void @_ZN7testing8internal9DeathTest14ReturnSentinelC2EPS1_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef %68)
          to label %69 unwind label %76

69:                                               ; preds = %67
  %70 = invoke noundef zeroext i1 @_ZN7testing8internal10AlwaysTrueEv()
          to label %71 unwind label %80

71:                                               ; preds = %69
  br i1 %70, label %72, label %138

72:                                               ; preds = %71
  call void @llvm.lifetime.start.p0(i64 32, ptr %11) #9
  call void @llvm.lifetime.start.p0(i64 1, ptr %13) #9
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #9
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %12, ptr noundef @.str.382, ptr noundef nonnull align 1 dereferenceable(1) %13)
          to label %73 unwind label %84

73:                                               ; preds = %72
  invoke void @_ZN7testing2EqINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEENS_8internal9EqMatcherIT_EES9_(ptr dead_on_unwind writable sret(%"class.testing::internal::EqMatcher.958") align 8 %11, ptr noundef %12)
          to label %74 unwind label %88

74:                                               ; preds = %73
  invoke void @_ZN7testing8ResultOfIPFNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiENS_8internal9EqMatcherIS6_EEEENS9_15ResultOfMatcherIT_EESD_RKT0_(ptr dead_on_unwind writable sret(%"class.testing::internal::ResultOfMatcher") align 8 %10, ptr noundef null, ptr noundef nonnull align 8 dereferenceable(32) %11)
          to label %75 unwind label %92

75:                                               ; preds = %74
  call void @_ZN7testing8internal15ResultOfMatcherIPFNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #9
  call void @_ZN7testing8internal14ComparisonBaseINS0_9EqMatcherINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEES8_NS0_5AnyEqEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #9
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %11) #9
  br label %138

76:                                               ; preds = %67
  %77 = landingpad { ptr, i32 }
          cleanup
  %78 = extractvalue { ptr, i32 } %77, 0
  store ptr %78, ptr %6, align 8
  %79 = extractvalue { ptr, i32 } %77, 1
  store i32 %79, ptr %7, align 4
  br label %164

80:                                               ; preds = %69
  %81 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  %82 = extractvalue { ptr, i32 } %81, 0
  store ptr %82, ptr %6, align 8
  %83 = extractvalue { ptr, i32 } %81, 1
  store i32 %83, ptr %7, align 4
  br label %98

84:                                               ; preds = %72
  %85 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  %86 = extractvalue { ptr, i32 } %85, 0
  store ptr %86, ptr %6, align 8
  %87 = extractvalue { ptr, i32 } %85, 1
  store i32 %87, ptr %7, align 4
  br label %97

88:                                               ; preds = %73
  %89 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  %90 = extractvalue { ptr, i32 } %89, 0
  store ptr %90, ptr %6, align 8
  %91 = extractvalue { ptr, i32 } %89, 1
  store i32 %91, ptr %7, align 4
  br label %96

92:                                               ; preds = %74
  %93 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  %94 = extractvalue { ptr, i32 } %93, 0
  store ptr %94, ptr %6, align 8
  %95 = extractvalue { ptr, i32 } %93, 1
  store i32 %95, ptr %7, align 4
  call void @_ZN7testing8internal14ComparisonBaseINS0_9EqMatcherINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEES8_NS0_5AnyEqEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #9
  br label %96

96:                                               ; preds = %92, %88
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #9
  br label %97

97:                                               ; preds = %96, %84
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %11) #9
  br label %98

98:                                               ; preds = %97, %80
  %99 = load i32, ptr %7, align 4
  %100 = call i32 @llvm.eh.typeid.for.p0(ptr @_ZTISt9exception) #9
  %101 = icmp eq i32 %99, %100
  br i1 %101, label %102, label %129

102:                                              ; preds = %98
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #9
  %103 = load ptr, ptr %6, align 8
  %104 = call ptr @__cxa_begin_catch(ptr %103) #9
  store ptr %104, ptr %14, align 8
  %105 = load ptr, ptr @stderr, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %15) #9
  invoke void @_ZN7testing8internal18FormatFileLocationB5cxx11EPKci(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %15, ptr noundef @.str.5, i32 noundef 3897)
          to label %106 unwind label %148

106:                                              ; preds = %102
  %107 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %15) #9
  %108 = load ptr, ptr %14, align 8, !tbaa !5
  %109 = load ptr, ptr %108, align 8, !tbaa !9
  %110 = getelementptr inbounds ptr, ptr %109, i64 2
  %111 = load ptr, ptr %110, align 8
  %112 = call noundef ptr %111(ptr noundef nonnull align 8 dereferenceable(8) %108) #9
  %113 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %105, ptr noundef @.str.1139, ptr noundef %107, ptr noundef %112) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #9
  %114 = load ptr, ptr @stderr, align 8, !tbaa !5
  %115 = invoke i32 @fflush(ptr noundef %114)
          to label %116 unwind label %152

116:                                              ; preds = %106
  %117 = load ptr, ptr %5, align 8, !tbaa !5
  %118 = load ptr, ptr %117, align 8, !tbaa !9
  %119 = getelementptr inbounds ptr, ptr %118, i64 5
  %120 = load ptr, ptr %119, align 8
  invoke void %120(ptr noundef nonnull align 8 dereferenceable(8) %117, i32 noundef 1)
          to label %121 unwind label %152

121:                                              ; preds = %116
  invoke void @__cxa_end_catch()
          to label %122 unwind label %156

122:                                              ; preds = %121
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #9
  br label %123

123:                                              ; preds = %138, %137, %122
  %124 = load ptr, ptr %5, align 8, !tbaa !5
  %125 = load ptr, ptr %124, align 8, !tbaa !9
  %126 = getelementptr inbounds ptr, ptr %125, i64 5
  %127 = load ptr, ptr %126, align 8
  invoke void %127(ptr noundef nonnull align 8 dereferenceable(8) %124, i32 noundef 2)
          to label %128 unwind label %143

128:                                              ; preds = %123
  call void @_ZN7testing8internal9DeathTest14ReturnSentinelD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #9
  br label %166

129:                                              ; preds = %98
  %130 = load ptr, ptr %6, align 8
  %131 = call ptr @__cxa_begin_catch(ptr %130) #9
  %132 = load ptr, ptr %5, align 8, !tbaa !5
  %133 = load ptr, ptr %132, align 8, !tbaa !9
  %134 = getelementptr inbounds ptr, ptr %133, i64 5
  %135 = load ptr, ptr %134, align 8
  invoke void %135(ptr noundef nonnull align 8 dereferenceable(8) %132, i32 noundef 1)
          to label %136 unwind label %139

136:                                              ; preds = %129
  invoke void @__cxa_end_catch()
          to label %137 unwind label %143

137:                                              ; preds = %136
  br label %123

138:                                              ; preds = %75, %71
  br label %123

139:                                              ; preds = %129
  %140 = landingpad { ptr, i32 }
          cleanup
  %141 = extractvalue { ptr, i32 } %140, 0
  store ptr %141, ptr %6, align 8
  %142 = extractvalue { ptr, i32 } %140, 1
  store i32 %142, ptr %7, align 4
  invoke void @__cxa_end_catch()
          to label %147 unwind label %198

143:                                              ; preds = %136, %123
  %144 = landingpad { ptr, i32 }
          cleanup
  %145 = extractvalue { ptr, i32 } %144, 0
  store ptr %145, ptr %6, align 8
  %146 = extractvalue { ptr, i32 } %144, 1
  store i32 %146, ptr %7, align 4
  br label %163

147:                                              ; preds = %139
  br label %163

148:                                              ; preds = %102
  %149 = landingpad { ptr, i32 }
          cleanup
  %150 = extractvalue { ptr, i32 } %149, 0
  store ptr %150, ptr %6, align 8
  %151 = extractvalue { ptr, i32 } %149, 1
  store i32 %151, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #9
  br label %160

152:                                              ; preds = %116, %106
  %153 = landingpad { ptr, i32 }
          cleanup
  %154 = extractvalue { ptr, i32 } %153, 0
  store ptr %154, ptr %6, align 8
  %155 = extractvalue { ptr, i32 } %153, 1
  store i32 %155, ptr %7, align 4
  br label %160

156:                                              ; preds = %121
  %157 = landingpad { ptr, i32 }
          cleanup
  %158 = extractvalue { ptr, i32 } %157, 0
  store ptr %158, ptr %6, align 8
  %159 = extractvalue { ptr, i32 } %157, 1
  store i32 %159, ptr %7, align 4
  br label %162

160:                                              ; preds = %152, %148
  invoke void @__cxa_end_catch()
          to label %161 unwind label %198

161:                                              ; preds = %160
  br label %162

162:                                              ; preds = %161, %156
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #9
  br label %163

163:                                              ; preds = %162, %147, %143
  call void @_ZN7testing8internal9DeathTest14ReturnSentinelD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #9
  br label %164

164:                                              ; preds = %163, %76
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #9
  br label %170

165:                                              ; preds = %41
  br label %166

166:                                              ; preds = %165, %128, %66
  store i32 0, ptr %16, align 4
  br label %167

167:                                              ; preds = %166, %65
  call void @_ZN7testing8internal10scoped_ptrINS0_9DeathTestEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #9
  %168 = load i32, ptr %16, align 4
  switch i32 %168, label %173 [
    i32 0, label %169
  ]

169:                                              ; preds = %167
  br label %172

170:                                              ; preds = %164, %46
  call void @_ZN7testing8internal10scoped_ptrINS0_9DeathTestEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #9
  br label %171

171:                                              ; preds = %170, %42
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #9
  br label %176

172:                                              ; preds = %169, %30
  store i32 0, ptr %16, align 4
  br label %173

173:                                              ; preds = %172, %167, %25
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #9
  call void @_ZN7testing8internal2RED1Ev(ptr noundef nonnull align 8 dereferenceable(144) %4) #9
  call void @llvm.lifetime.end.p0(i64 144, ptr %4) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #9
  %174 = load i32, ptr %16, align 4
  switch i32 %174, label %201 [
    i32 0, label %175
    i32 2, label %178
  ]

175:                                              ; preds = %173
  br label %192

176:                                              ; preds = %171, %26
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #9
  call void @_ZN7testing8internal2RED1Ev(ptr noundef nonnull align 8 dereferenceable(144) %4) #9
  call void @llvm.lifetime.end.p0(i64 144, ptr %4) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #9
  br label %193

177:                                              ; preds = %1
  br label %178

178:                                              ; preds = %177, %173
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #9
  call void @_ZN7testing7MessageC1Ev(ptr noundef nonnull align 8 dereferenceable(8) %17)
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #9
  %179 = invoke noundef ptr @_ZN7testing8internal9DeathTest11LastMessageEv()
          to label %180 unwind label %183

180:                                              ; preds = %178
  invoke void @_ZN7testing8internal12AssertHelperC1ENS_14TestPartResult4TypeEPKciS5_(ptr noundef nonnull align 8 dereferenceable(8) %18, i32 noundef 1, ptr noundef @.str.5, i32 noundef 3897, ptr noundef %179)
          to label %181 unwind label %183

181:                                              ; preds = %180
  invoke void @_ZNK7testing8internal12AssertHelperaSERKNS_7MessageE(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull align 8 dereferenceable(8) %17)
          to label %182 unwind label %187

182:                                              ; preds = %181
  call void @_ZN7testing8internal12AssertHelperD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %18) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #9
  call void @_ZN7testing7MessageD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %17) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #9
  br label %192

183:                                              ; preds = %180, %178
  %184 = landingpad { ptr, i32 }
          cleanup
  %185 = extractvalue { ptr, i32 } %184, 0
  store ptr %185, ptr %6, align 8
  %186 = extractvalue { ptr, i32 } %184, 1
  store i32 %186, ptr %7, align 4
  br label %191

187:                                              ; preds = %181
  %188 = landingpad { ptr, i32 }
          cleanup
  %189 = extractvalue { ptr, i32 } %188, 0
  store ptr %189, ptr %6, align 8
  %190 = extractvalue { ptr, i32 } %188, 1
  store i32 %190, ptr %7, align 4
  call void @_ZN7testing8internal12AssertHelperD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %18) #9
  br label %191

191:                                              ; preds = %187, %183
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #9
  call void @_ZN7testing7MessageD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %17) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #9
  br label %193

192:                                              ; preds = %182, %175
  ret void

193:                                              ; preds = %191, %176
  %194 = load ptr, ptr %6, align 8
  %195 = load i32, ptr %7, align 4
  %196 = insertvalue { ptr, i32 } poison, ptr %194, 0
  %197 = insertvalue { ptr, i32 } %196, i32 %195, 1
  resume { ptr, i32 } %197

198:                                              ; preds = %160, %139
  %199 = landingpad { ptr, i32 }
          catch ptr null
  %200 = extractvalue { ptr, i32 } %199, 0
  call void @__clang_call_terminate(ptr %200) #10
  unreachable

201:                                              ; preds = %173
  unreachable
}

declare noundef zeroext i1 @_ZN7testing8internal9DeathTest6CreateEPKcPKNS0_2REES3_iPPS1_(ptr noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef) #3

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

declare noundef zeroext i1 @_ZN7testing8internal20ExitedUnsuccessfullyEi(i32 noundef) #3

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

; Function Attrs: nounwind memory(none)
declare i32 @llvm.eh.typeid.for.p0(ptr) #7

declare ptr @__cxa_begin_catch(ptr)

declare void @__cxa_end_catch()

; Function Attrs: noinline noreturn nounwind uwtable
declare hidden void @__clang_call_terminate(ptr noundef) #8

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

declare void @_ZN7testing8internal18FormatFileLocationB5cxx11EPKci(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef, i32 noundef) #3

declare i32 @fflush(ptr noundef) #3

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

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

; Function Attrs: nounwind
declare void @_ZN7testing8internal2RED1Ev(ptr noundef nonnull align 8 dereferenceable(144)) unnamed_addr #4

declare noundef ptr @_ZN7testing8internal9DeathTest11LastMessageEv() #3

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"vtable pointer", !8, 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.testing::internal::ResultOfMatcher" = type { ptr, %"class.testing::Matcher.22" }
%"class.testing::Matcher.22" = type { %"class.testing::internal::MatcherBase.23" }
%"class.testing::internal::MatcherBase.23" = type { ptr, %"class.testing::internal::linked_ptr.24" }
%"class.testing::internal::linked_ptr.24" = type { ptr, %"class.testing::internal::linked_ptr_internal" }
%"class.testing::internal::linked_ptr_internal" = type { ptr }
%"class.testing::internal::EqMatcher.958" = type { %"class.testing::internal::ComparisonBase.959" }
%"class.testing::internal::ComparisonBase.959" = type { %"class.std::__cxx11::basic_string" }
%"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.testing::internal::RE" = type { ptr, i8, %struct.re_pattern_buffer, %struct.re_pattern_buffer }
%struct.re_pattern_buffer = type { ptr, i64, i64, i64, ptr, ptr, i64, i8 }
%"class.testing::internal::scoped_ptr.979" = type { ptr }
%"class.testing::internal::DeathTest::ReturnSentinel" = type { ptr }
%"class.std::allocator" = type { i8 }
%"class.testing::Message" = type { %"class.testing::internal::scoped_ptr.0" }
%"class.testing::internal::scoped_ptr.0" = type { ptr }
%"class.testing::internal::AssertHelper" = type { ptr }

@.str.5 = external hidden unnamed_addr constant [123 x i8], align 1
@.str.382 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.1137 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.1138 = external hidden unnamed_addr constant [71 x i8], align 1
@_ZTISt9exception = external constant ptr
@stderr = external local_unnamed_addr global ptr, align 8
@.str.1139 = external hidden unnamed_addr constant [103 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 @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #1 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare 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

declare void @_ZN7testing7MessageC1Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #3

declare void @_ZN7testing8internal12AssertHelperC1ENS_14TestPartResult4TypeEPKciS5_(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef, ptr noundef, i32 noundef, ptr noundef) unnamed_addr #3

declare void @_ZNK7testing8internal12AssertHelperaSERKNS_7MessageE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3

; Function Attrs: nounwind
declare void @_ZN7testing8internal12AssertHelperD1Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN7testing7MessageD2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #5 align 2

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

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

declare noundef zeroext i1 @_ZN7testing8internal10AlwaysTrueEv() local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7testing8ResultOfIPFNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiENS_8internal9EqMatcherIS6_EEEENS9_15ResultOfMatcherIT_EESD_RKT0_(ptr dead_on_unwind noalias writable sret(%"class.testing::internal::ResultOfMatcher") align 8, ptr noundef, ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN7testing2EqINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEENS_8internal9EqMatcherIT_EES9_(ptr dead_on_unwind noalias writable sret(%"class.testing::internal::EqMatcher.958") align 8, ptr noundef) local_unnamed_addr #6

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN7testing8internal15ResultOfMatcherIPFNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN7testing8internal14ComparisonBaseINS0_9EqMatcherINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEES8_NS0_5AnyEqEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7testing19gmock_matchers_test49ResultOfDeathTest_DiesOnNullFunctionPointers_Test8TestBodyEv(ptr nocapture noundef nonnull readnone align 8 dereferenceable(16) %0) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.testing::internal::RE", align 8
  %3 = alloca ptr, align 8
  %4 = alloca %"class.testing::internal::scoped_ptr.979", align 8
  %5 = alloca %"class.testing::internal::DeathTest::ReturnSentinel", align 8
  %6 = alloca %"class.testing::internal::ResultOfMatcher", align 8
  %7 = alloca %"class.testing::internal::EqMatcher.958", align 8
  %8 = alloca %"class.std::__cxx11::basic_string", align 8
  %9 = alloca %"class.std::allocator", align 1
  %10 = alloca %"class.std::__cxx11::basic_string", align 8
  %11 = alloca %"class.testing::Message", align 8
  %12 = alloca %"class.testing::internal::AssertHelper", align 8
  %13 = tail call noundef zeroext i1 @_ZN7testing8internal10AlwaysTrueEv()
  br i1 %13, label %14, label %110

14:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 144, ptr nonnull %2) #10
  call void @_ZN7testing8internal2REC2EPKc(ptr noundef nonnull align 8 dereferenceable(144) %2, ptr noundef nonnull @.str.1137)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #10
  %15 = invoke noundef zeroext i1 @_ZN7testing8internal9DeathTest6CreateEPKcPKNS0_2REES3_iPPS1_(ptr noundef nonnull @.str.1138, ptr noundef nonnull %2, ptr noundef nonnull @.str.5, i32 noundef 3897, ptr noundef nonnull %3)
          to label %16 unwind label %17

16:                                               ; preds = %14
  br i1 %15, label %19, label %108

17:                                               ; preds = %14
  %18 = landingpad { ptr, i32 }
          cleanup
  br label %109

19:                                               ; preds = %16
  %20 = load ptr, ptr %3, align 8, !tbaa !5
  %.not = icmp eq ptr %20, null
  br i1 %.not, label %.thread37, label %21

21:                                               ; preds = %19
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #10
  call void @_ZN7testing8internal10scoped_ptrINS0_9DeathTestEEC2EPS2_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull %20)
  %22 = load ptr, ptr %3, align 8, !tbaa !5
  %23 = load ptr, ptr %22, align 8, !tbaa !9
  %24 = getelementptr inbounds i8, ptr %23, i64 16
  %25 = load ptr, ptr %24, align 8
  %26 = invoke noundef i32 %25(ptr noundef nonnull align 8 dereferenceable(8) %22)
          to label %27 unwind label %28

27:                                               ; preds = %21
  switch i32 %26, label %.thread [
    i32 0, label %30
    i32 1, label %44
  ]

28:                                               ; preds = %38, %36, %30, %21
  %29 = landingpad { ptr, i32 }
          cleanup
  br label %107

30:                                               ; preds = %27
  %31 = load ptr, ptr %3, align 8, !tbaa !5
  %32 = load ptr, ptr %31, align 8, !tbaa !9
  %33 = getelementptr inbounds i8, ptr %32, i64 24
  %34 = load ptr, ptr %33, align 8
  %35 = invoke noundef i32 %34(ptr noundef nonnull align 8 dereferenceable(8) %31)
          to label %36 unwind label %28

36:                                               ; preds = %30
  %37 = invoke noundef zeroext i1 @_ZN7testing8internal20ExitedUnsuccessfullyEi(i32 noundef %35)
          to label %38 unwind label %28

38:                                               ; preds = %36
  %39 = load ptr, ptr %31, align 8, !tbaa !9
  %40 = getelementptr inbounds i8, ptr %39, i64 32
  %41 = load ptr, ptr %40, align 8
  %42 = invoke noundef zeroext i1 %41(ptr noundef nonnull align 8 dereferenceable(8) %31, i1 noundef zeroext %37)
          to label %43 unwind label %28

43:                                               ; preds = %38
  br i1 %42, label %.thread, label %106

44:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #10
  %45 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN7testing8internal9DeathTest14ReturnSentinelC2EPS1_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef %45)
  %46 = invoke noundef zeroext i1 @_ZN7testing8internal10AlwaysTrueEv()
          to label %47 unwind label %52

47:                                               ; preds = %44
  br i1 %46, label %48, label %82

48:                                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %7) #10
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %9) #10
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #10
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef nonnull @.str.382, ptr noundef nonnull align 1 dereferenceable(1) %9)
          to label %49 unwind label %54

49:                                               ; preds = %48
  invoke void @_ZN7testing2EqINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEENS_8internal9EqMatcherIT_EES9_(ptr dead_on_unwind nonnull writable sret(%"class.testing::internal::EqMatcher.958") align 8 %7, ptr noundef nonnull %8)
          to label %50 unwind label %56

50:                                               ; preds = %49
  invoke void @_ZN7testing8ResultOfIPFNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiENS_8internal9EqMatcherIS6_EEEENS9_15ResultOfMatcherIT_EESD_RKT0_(ptr dead_on_unwind nonnull writable sret(%"class.testing::internal::ResultOfMatcher") align 8 %6, ptr noundef null, ptr noundef nonnull align 8 dereferenceable(32) %7)
          to label %51 unwind label %58

51:                                               ; preds = %50
  call void @_ZN7testing8internal15ResultOfMatcherIPFNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #10
  call void @_ZN7testing8internal14ComparisonBaseINS0_9EqMatcherINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEES8_NS0_5AnyEqEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #10
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #10
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #10
  br label %82

52:                                               ; preds = %44
  %53 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  br label %62

54:                                               ; preds = %48
  %55 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  br label %61

56:                                               ; preds = %49
  %57 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  br label %60

58:                                               ; preds = %50
  %59 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  call void @_ZN7testing8internal14ComparisonBaseINS0_9EqMatcherINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEES8_NS0_5AnyEqEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #10
  br label %60

60:                                               ; preds = %58, %56
  %.pn = phi { ptr, i32 } [ %59, %58 ], [ %57, %56 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #10
  br label %61

61:                                               ; preds = %60, %54
  %.pn.pn = phi { ptr, i32 } [ %.pn, %60 ], [ %55, %54 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #10
  br label %62

62:                                               ; preds = %61, %52
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %61 ], [ %53, %52 ]
  %.2 = extractvalue { ptr, i32 } %.pn.pn.pn, 0
  %.213 = extractvalue { ptr, i32 } %.pn.pn.pn, 1
  %63 = call i32 @llvm.eh.typeid.for.p0(ptr nonnull @_ZTISt9exception) #10
  %64 = icmp eq i32 %.213, %63
  %65 = call ptr @__cxa_begin_catch(ptr %.2) #10
  br i1 %64, label %66, label %88

66:                                               ; preds = %62
  %67 = load ptr, ptr @stderr, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %10) #10
  invoke void @_ZN7testing8internal18FormatFileLocationB5cxx11EPKci(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %10, ptr noundef nonnull @.str.5, i32 noundef 3897)
          to label %68 unwind label %98

68:                                               ; preds = %66
  %69 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %10) #10
  %70 = load ptr, ptr %65, align 8, !tbaa !9
  %71 = getelementptr inbounds i8, ptr %70, i64 16
  %72 = load ptr, ptr %71, align 8
  %73 = call noundef ptr %72(ptr noundef nonnull align 8 dereferenceable(8) %65) #10
  %74 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %67, ptr noundef nonnull @.str.1139, ptr noundef %69, ptr noundef %73) #11
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #10
  %75 = load ptr, ptr @stderr, align 8, !tbaa !5
  %76 = call i32 @fflush(ptr noundef %75)
  %77 = load ptr, ptr %3, align 8, !tbaa !5
  %78 = load ptr, ptr %77, align 8, !tbaa !9
  %79 = getelementptr inbounds i8, ptr %78, i64 40
  %80 = load ptr, ptr %79, align 8
  invoke void %80(ptr noundef nonnull align 8 dereferenceable(8) %77, i32 noundef 1)
          to label %81 unwind label %100

81:                                               ; preds = %68
  invoke void @__cxa_end_catch()
          to label %82 unwind label %102

82:                                               ; preds = %81, %47, %51, %93
  %83 = load ptr, ptr %3, align 8, !tbaa !5
  %84 = load ptr, ptr %83, align 8, !tbaa !9
  %85 = getelementptr inbounds i8, ptr %84, i64 40
  %86 = load ptr, ptr %85, align 8
  invoke void %86(ptr noundef nonnull align 8 dereferenceable(8) %83, i32 noundef 2)
          to label %87 unwind label %96

87:                                               ; preds = %82
  call void @_ZN7testing8internal9DeathTest14ReturnSentinelD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %5) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #10
  br label %.thread

88:                                               ; preds = %62
  %89 = load ptr, ptr %3, align 8, !tbaa !5
  %90 = load ptr, ptr %89, align 8, !tbaa !9
  %91 = getelementptr inbounds i8, ptr %90, i64 40
  %92 = load ptr, ptr %91, align 8
  invoke void %92(ptr noundef nonnull align 8 dereferenceable(8) %89, i32 noundef 1)
          to label %93 unwind label %94

93:                                               ; preds = %88
  invoke void @__cxa_end_catch()
          to label %82 unwind label %96

94:                                               ; preds = %88
  %95 = landingpad { ptr, i32 }
          cleanup
  invoke void @__cxa_end_catch()
          to label %105 unwind label %122

96:                                               ; preds = %93, %82
  %97 = landingpad { ptr, i32 }
          cleanup
  br label %105

98:                                               ; preds = %66
  %99 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #10
  br label %104

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

102:                                              ; preds = %81
  %103 = landingpad { ptr, i32 }
          cleanup
  br label %105

104:                                              ; preds = %100, %98
  %.pn24 = phi { ptr, i32 } [ %101, %100 ], [ %99, %98 ]
  invoke void @__cxa_end_catch()
          to label %105 unwind label %122

105:                                              ; preds = %102, %104, %94, %96
  %.pn28 = phi { ptr, i32 } [ %97, %96 ], [ %95, %94 ], [ %103, %102 ], [ %.pn24, %104 ]
  call void @_ZN7testing8internal9DeathTest14ReturnSentinelD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %5) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #10
  br label %107

.thread:                                          ; preds = %87, %43, %27
  call void @_ZN7testing8internal10scoped_ptrINS0_9DeathTestEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %4) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #10
  br label %.thread37

106:                                              ; preds = %43
  call void @_ZN7testing8internal10scoped_ptrINS0_9DeathTestEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %4) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #10
  br label %108

107:                                              ; preds = %105, %28
  %.pn28.pn = phi { ptr, i32 } [ %.pn28, %105 ], [ %29, %28 ]
  call void @_ZN7testing8internal10scoped_ptrINS0_9DeathTestEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %4) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #10
  br label %109

.thread37:                                        ; preds = %.thread, %19
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #10
  call void @_ZN7testing8internal2RED1Ev(ptr noundef nonnull align 8 dereferenceable(144) %2) #10
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %2) #10
  br label %120

108:                                              ; preds = %106, %16
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #10
  call void @_ZN7testing8internal2RED1Ev(ptr noundef nonnull align 8 dereferenceable(144) %2) #10
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %2) #10
  br label %110

109:                                              ; preds = %107, %17
  %.pn28.pn.pn = phi { ptr, i32 } [ %.pn28.pn, %107 ], [ %18, %17 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #10
  call void @_ZN7testing8internal2RED1Ev(ptr noundef nonnull align 8 dereferenceable(144) %2) #10
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %2) #10
  br label %121

110:                                              ; preds = %108, %1
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #10
  call void @_ZN7testing7MessageC1Ev(ptr noundef nonnull align 8 dereferenceable(8) %11)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #10
  %111 = invoke noundef ptr @_ZN7testing8internal9DeathTest11LastMessageEv()
          to label %112 unwind label %115

112:                                              ; preds = %110
  invoke void @_ZN7testing8internal12AssertHelperC1ENS_14TestPartResult4TypeEPKciS5_(ptr noundef nonnull align 8 dereferenceable(8) %12, i32 noundef 1, ptr noundef nonnull @.str.5, i32 noundef 3897, ptr noundef %111)
          to label %113 unwind label %115

113:                                              ; preds = %112
  invoke void @_ZNK7testing8internal12AssertHelperaSERKNS_7MessageE(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %11)
          to label %114 unwind label %117

114:                                              ; preds = %113
  call void @_ZN7testing8internal12AssertHelperD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %12) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #10
  call void @_ZN7testing7MessageD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %11) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #10
  br label %120

115:                                              ; preds = %112, %110
  %116 = landingpad { ptr, i32 }
          cleanup
  br label %119

117:                                              ; preds = %113
  %118 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7testing8internal12AssertHelperD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %12) #10
  br label %119

119:                                              ; preds = %117, %115
  %.pn32 = phi { ptr, i32 } [ %118, %117 ], [ %116, %115 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #10
  call void @_ZN7testing7MessageD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %11) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #10
  br label %121

120:                                              ; preds = %.thread37, %114
  ret void

121:                                              ; preds = %119, %109
  %.pn32.pn = phi { ptr, i32 } [ %.pn32, %119 ], [ %.pn28.pn.pn, %109 ]
  resume { ptr, i32 } %.pn32.pn

122:                                              ; preds = %104, %94
  %123 = landingpad { ptr, i32 }
          catch ptr null
  %124 = extractvalue { ptr, i32 } %123, 0
  call void @__clang_call_terminate(ptr %124) #12
  unreachable
}

declare noundef zeroext i1 @_ZN7testing8internal9DeathTest6CreateEPKcPKNS0_2REES3_iPPS1_(ptr noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #3

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

declare noundef zeroext i1 @_ZN7testing8internal20ExitedUnsuccessfullyEi(i32 noundef) local_unnamed_addr #3

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

; Function Attrs: nofree nosync nounwind memory(none)
declare i32 @llvm.eh.typeid.for.p0(ptr) #7

declare ptr @__cxa_begin_catch(ptr) local_unnamed_addr

declare void @__cxa_end_catch() local_unnamed_addr

; Function Attrs: noinline noreturn nounwind uwtable
declare hidden void @__clang_call_terminate(ptr noundef) local_unnamed_addr #8

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

declare void @_ZN7testing8internal18FormatFileLocationB5cxx11EPKci(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef, i32 noundef) local_unnamed_addr #3

; Function Attrs: nofree nounwind
declare noundef i32 @fflush(ptr nocapture noundef) local_unnamed_addr #9

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

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

; Function Attrs: nounwind
declare void @_ZN7testing8internal2RED1Ev(ptr noundef nonnull align 8 dereferenceable(144)) unnamed_addr #4

declare noundef ptr @_ZN7testing8internal9DeathTest11LastMessageEv() local_unnamed_addr #3

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

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 = { 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 #5 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nofree nosync nounwind memory(none) }
attributes #8 = { noinline noreturn nounwind uwtable "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 #9 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #10 = { nounwind }
attributes #11 = { cold nounwind }
attributes #12 = { noreturn nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"vtable pointer", !8, i64 0}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass