; LLVM IR from chensoft/libsocket :: lib/libchen/test/lib/googletest/googlemock/test (gmock_link2_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::AnythingMatcher" = type { i8 }
%"class.testing::Matcher" = type { %"class.testing::internal::MatcherBase" }
%"class.testing::internal::MatcherBase" = type { ptr, %"class.testing::internal::linked_ptr" }
%"class.testing::internal::linked_ptr" = type { ptr, %"class.testing::internal::linked_ptr_internal" }
%"class.testing::internal::linked_ptr_internal" = type { ptr }
%class.Mock = type { %class.Interface, %"class.testing::internal::FunctionMocker", %"class.testing::internal::FunctionMocker.8", %"class.testing::internal::FunctionMocker.11", %"class.testing::internal::FunctionMocker.14", %"class.testing::internal::FunctionMocker.17", %"class.testing::internal::FunctionMocker.26", %"class.testing::internal::FunctionMocker.35", %"class.testing::internal::FunctionMocker.44", %"class.testing::internal::FunctionMocker.53" }
%class.Interface = type { ptr }
%"class.testing::internal::FunctionMocker" = type { %"class.testing::internal::FunctionMockerBase" }
%"class.testing::internal::FunctionMockerBase" = type { %"class.testing::internal::UntypedFunctionMockerBase", %"class.testing::internal::MockSpec" }
%"class.testing::internal::UntypedFunctionMockerBase" = type { ptr, ptr, ptr, %"class.std::vector", %"class.std::vector.3" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<const void *, std::allocator<const void *>>::_Vector_impl" }
%"struct.std::_Vector_base<const void *, std::allocator<const void *>>::_Vector_impl" = type { %"struct.std::_Vector_base<const void *, std::allocator<const void *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<const void *, std::allocator<const void *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.3" = type { %"struct.std::_Vector_base.4" }
%"struct.std::_Vector_base.4" = type { %"struct.std::_Vector_base<testing::internal::linked_ptr<testing::internal::ExpectationBase>, std::allocator<testing::internal::linked_ptr<testing::internal::ExpectationBase>>>::_Vector_impl" }
%"struct.std::_Vector_base<testing::internal::linked_ptr<testing::internal::ExpectationBase>, std::allocator<testing::internal::linked_ptr<testing::internal::ExpectationBase>>>::_Vector_impl" = type { %"struct.std::_Vector_base<testing::internal::linked_ptr<testing::internal::ExpectationBase>, std::allocator<testing::internal::linked_ptr<testing::internal::ExpectationBase>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<testing::internal::linked_ptr<testing::internal::ExpectationBase>, std::allocator<testing::internal::linked_ptr<testing::internal::ExpectationBase>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.testing::internal::MockSpec" = type { ptr, %"class.std::tuple" }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Head_base" }
%"struct.std::_Head_base" = type { %"class.testing::Matcher" }
%"class.testing::internal::FunctionMocker.8" = type { %"class.testing::internal::FunctionMockerBase.9" }
%"class.testing::internal::FunctionMockerBase.9" = type { %"class.testing::internal::UntypedFunctionMockerBase", %"class.testing::internal::MockSpec.10" }
%"class.testing::internal::MockSpec.10" = type { ptr, %"class.std::tuple" }
%"class.testing::internal::FunctionMocker.11" = type { %"class.testing::internal::FunctionMockerBase.12" }
%"class.testing::internal::FunctionMockerBase.12" = type { %"class.testing::internal::UntypedFunctionMockerBase", %"class.testing::internal::MockSpec.13" }
%"class.testing::internal::MockSpec.13" = type { ptr, %"class.std::tuple" }
%"class.testing::internal::FunctionMocker.14" = type { %"class.testing::internal::FunctionMockerBase.15" }
%"class.testing::internal::FunctionMockerBase.15" = type { %"class.testing::internal::UntypedFunctionMockerBase", %"class.testing::internal::MockSpec.16" }
%"class.testing::internal::MockSpec.16" = type { ptr, %"class.std::tuple" }
%"class.testing::internal::FunctionMocker.17" = type { %"class.testing::internal::FunctionMockerBase.18" }
%"class.testing::internal::FunctionMockerBase.18" = type { %"class.testing::internal::UntypedFunctionMockerBase", %"class.testing::internal::MockSpec.19" }
%"class.testing::internal::MockSpec.19" = type { ptr, %"class.std::tuple.20" }
%"class.std::tuple.20" = type { %"struct.std::_Tuple_impl.21" }
%"struct.std::_Tuple_impl.21" = type { %"struct.std::_Head_base.22" }
%"struct.std::_Head_base.22" = type { %"class.testing::Matcher.23" }
%"class.testing::Matcher.23" = type { %"class.testing::internal::MatcherBase.24" }
%"class.testing::internal::MatcherBase.24" = type { ptr, %"class.testing::internal::linked_ptr.25" }
%"class.testing::internal::linked_ptr.25" = type { ptr, %"class.testing::internal::linked_ptr_internal" }
%"class.testing::internal::FunctionMocker.26" = type { %"class.testing::internal::FunctionMockerBase.27" }
%"class.testing::internal::FunctionMockerBase.27" = type { %"class.testing::internal::UntypedFunctionMockerBase", %"class.testing::internal::MockSpec.28" }
%"class.testing::internal::MockSpec.28" = type { ptr, %"class.std::tuple.29" }
%"class.std::tuple.29" = type { %"struct.std::_Tuple_impl.30" }
%"struct.std::_Tuple_impl.30" = type { %"struct.std::_Head_base.31" }
%"struct.std::_Head_base.31" = type { %"class.testing::Matcher.32" }
%"class.testing::Matcher.32" = type { %"class.testing::internal::MatcherBase.33" }
%"class.testing::internal::MatcherBase.33" = type { ptr, %"class.testing::internal::linked_ptr.34" }
%"class.testing::internal::linked_ptr.34" = type { ptr, %"class.testing::internal::linked_ptr_internal" }
%"class.testing::internal::FunctionMocker.35" = type { %"class.testing::internal::FunctionMockerBase.36" }
%"class.testing::internal::FunctionMockerBase.36" = type { %"class.testing::internal::UntypedFunctionMockerBase", %"class.testing::internal::MockSpec.37" }
%"class.testing::internal::MockSpec.37" = type { ptr, %"class.std::tuple.38" }
%"class.std::tuple.38" = type { %"struct.std::_Tuple_impl.39" }
%"struct.std::_Tuple_impl.39" = type { %"struct.std::_Head_base.40" }
%"struct.std::_Head_base.40" = type { %"class.testing::Matcher.41" }
%"class.testing::Matcher.41" = type { %"class.testing::internal::MatcherBase.42" }
%"class.testing::internal::MatcherBase.42" = type { ptr, %"class.testing::internal::linked_ptr.43" }
%"class.testing::internal::linked_ptr.43" = type { ptr, %"class.testing::internal::linked_ptr_internal" }
%"class.testing::internal::FunctionMocker.44" = type { %"class.testing::internal::FunctionMockerBase.45" }
%"class.testing::internal::FunctionMockerBase.45" = type { %"class.testing::internal::UntypedFunctionMockerBase", %"class.testing::internal::MockSpec.46" }
%"class.testing::internal::MockSpec.46" = type { ptr, %"class.std::tuple.47" }
%"class.std::tuple.47" = type { %"struct.std::_Tuple_impl.48" }
%"struct.std::_Tuple_impl.48" = type { %"struct.std::_Head_base.49" }
%"struct.std::_Head_base.49" = type { %"class.testing::Matcher.50" }
%"class.testing::Matcher.50" = type { %"class.testing::internal::MatcherBase.51" }
%"class.testing::internal::MatcherBase.51" = type { ptr, %"class.testing::internal::linked_ptr.52" }
%"class.testing::internal::linked_ptr.52" = type { ptr, %"class.testing::internal::linked_ptr_internal" }
%"class.testing::internal::FunctionMocker.53" = type { %"class.testing::internal::FunctionMockerBase.54" }
%"class.testing::internal::FunctionMockerBase.54" = type { %"class.testing::internal::UntypedFunctionMockerBase", %"class.testing::internal::MockSpec.55" }
%"class.testing::internal::MockSpec.55" = type { ptr, %"class.std::tuple.56" }
%"class.std::tuple.56" = type { %"struct.std::_Tuple_impl.57" }
%"struct.std::_Tuple_impl.57" = type { %"struct.std::_Head_base.58" }
%"struct.std::_Head_base.58" = type { %"class.testing::Matcher.59" }
%"class.testing::Matcher.59" = type { %"class.testing::internal::MatcherBase.60" }
%"class.testing::internal::MatcherBase.60" = type { ptr, %"class.testing::internal::linked_ptr.61" }
%"class.testing::internal::linked_ptr.61" = type { ptr, %"class.testing::internal::linked_ptr_internal" }
%"class.testing::Action" = type { %"class.testing::internal::linked_ptr.69" }
%"class.testing::internal::linked_ptr.69" = type { ptr, %"class.testing::internal::linked_ptr_internal" }
%"class.testing::ThrowActionP" = type { i32 }
%"struct.testing::internal::ConstCharPtr" = type { ptr }
%"class.testing::Message" = type { %"class.testing::internal::scoped_ptr" }
%"class.testing::internal::scoped_ptr" = type { ptr }
%"class.testing::internal::AssertHelper" = type { ptr }

@.str.3 = external hidden unnamed_addr constant [118 x i8], align 1
@_ZN7testingL1_E = external hidden constant %"class.testing::internal::AnythingMatcher", align 1
@.str.4 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.44 = external hidden unnamed_addr constant [1 x i8], align 1
@_ZTIi = external constant ptr
@.str.45 = external hidden unnamed_addr constant [109 x i8], align 1
@.str.46 = external hidden unnamed_addr constant [100 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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(304) ptr @_ZN7testing8internal8MockSpecIFvPcEE18InternalExpectedAtEPKciS6_S6_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, i32 noundef, ptr noundef, ptr noundef) #1 align 2

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN24LinkTest2_TestThrow_Test8TestBodyEv(ptr noundef nonnull align 8 dereferenceable(16) %0) unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca %class.Mock, align 8
  %4 = alloca %"class.testing::Matcher", align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca %"class.testing::Action", align 8
  %8 = alloca %"class.testing::ThrowActionP", align 4
  %9 = alloca %"struct.testing::internal::ConstCharPtr", align 8
  %10 = alloca i8, align 1
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca %"class.testing::Message", align 8
  %14 = alloca %"class.testing::internal::AssertHelper", align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %15 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 944, ptr %3) #8
  call void @_ZN4MockC2Ev(ptr noundef nonnull align 8 dereferenceable(944) %3)
  call void @llvm.lifetime.start.p0(i64 24, ptr %4) #8
  invoke void @_ZNK7testing8internal15AnythingMatchercvNS_7MatcherIT_EEIPcEEv(ptr dead_on_unwind writable sret(%"class.testing::Matcher") align 8 %4, ptr noundef nonnull align 1 dereferenceable(1) @_ZN7testingL1_E)
          to label %16 unwind label %35

16:                                               ; preds = %1
  %17 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZN4Mock20gmock_VoidFromStringERKN7testing7MatcherIPcEE(ptr noundef nonnull align 8 dereferenceable(944) %3, ptr noundef nonnull align 8 dereferenceable(24) %4)
          to label %18 unwind label %39

18:                                               ; preds = %16
  %19 = invoke noundef nonnull align 8 dereferenceable(304) ptr @_ZN7testing8internal8MockSpecIFvPcEE18InternalExpectedAtEPKciS6_S6_(ptr noundef nonnull align 8 dereferenceable(32) %17, ptr noundef @.str.3, i32 noundef 411, ptr noundef @.str.4, ptr noundef @.str.5)
          to label %20 unwind label %39

20:                                               ; preds = %18
  call void @llvm.lifetime.start.p0(i64 16, ptr %7) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #8
  %21 = invoke i32 @_ZN7testing5ThrowIiEENS_12ThrowActionPIT_EES2_(i32 noundef 42)
          to label %22 unwind label %43

22:                                               ; preds = %20
  %23 = getelementptr inbounds %"class.testing::ThrowActionP", ptr %8, i32 0, i32 0
  store i32 %21, ptr %23, align 4
  invoke void @_ZNK7testing12ThrowActionPIiEcvNS_6ActionIT_EEIFvPcEEEv(ptr dead_on_unwind writable sret(%"class.testing::Action") align 8 %7, ptr noundef nonnull align 4 dereferenceable(4) %8)
          to label %24 unwind label %43

24:                                               ; preds = %22
  %25 = invoke noundef nonnull align 8 dereferenceable(304) ptr @_ZN7testing8internal16TypedExpectationIFvPcEE8WillOnceERKNS_6ActionIS3_EE(ptr noundef nonnull align 8 dereferenceable(304) %19, ptr noundef nonnull align 8 dereferenceable(16) %7)
          to label %26 unwind label %47

26:                                               ; preds = %24
  call void @_ZN7testing6ActionIFvPcEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %7) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #8
  call void @_ZN7testing8internal11MatcherBaseIPcED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %4) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #8
  invoke void @_ZN7testing8internal12ConstCharPtrC2EPKc(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef @.str.44)
          to label %27 unwind label %54

27:                                               ; preds = %26
  %28 = invoke noundef zeroext i1 @_ZNK7testing8internal12ConstCharPtrcvbEv(ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %29 unwind label %54

29:                                               ; preds = %27
  br i1 %28, label %30, label %88

30:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 1, ptr %10) #8
  store i8 0, ptr %10, align 1, !tbaa !9
  %31 = invoke noundef zeroext i1 @_ZN7testing8internal10AlwaysTrueEv()
          to label %32 unwind label %58

32:                                               ; preds = %30
  br i1 %31, label %33, label %78

33:                                               ; preds = %32
  invoke void @_ZN4Mock14VoidFromStringEPc(ptr noundef nonnull align 8 dereferenceable(944) %3, ptr noundef null)
          to label %34 unwind label %58

34:                                               ; preds = %33
  br label %78

35:                                               ; preds = %1
  %36 = landingpad { ptr, i32 }
          cleanup
  %37 = extractvalue { ptr, i32 } %36, 0
  store ptr %37, ptr %5, align 8
  %38 = extractvalue { ptr, i32 } %36, 1
  store i32 %38, ptr %6, align 4
  br label %53

39:                                               ; preds = %18, %16
  %40 = landingpad { ptr, i32 }
          cleanup
  %41 = extractvalue { ptr, i32 } %40, 0
  store ptr %41, ptr %5, align 8
  %42 = extractvalue { ptr, i32 } %40, 1
  store i32 %42, ptr %6, align 4
  br label %52

43:                                               ; preds = %22, %20
  %44 = landingpad { ptr, i32 }
          cleanup
  %45 = extractvalue { ptr, i32 } %44, 0
  store ptr %45, ptr %5, align 8
  %46 = extractvalue { ptr, i32 } %44, 1
  store i32 %46, ptr %6, align 4
  br label %51

47:                                               ; preds = %24
  %48 = landingpad { ptr, i32 }
          cleanup
  %49 = extractvalue { ptr, i32 } %48, 0
  store ptr %49, ptr %5, align 8
  %50 = extractvalue { ptr, i32 } %48, 1
  store i32 %50, ptr %6, align 4
  call void @_ZN7testing6ActionIFvPcEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %7) #8
  br label %51

51:                                               ; preds = %47, %43
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #8
  br label %52

52:                                               ; preds = %51, %39
  call void @_ZN7testing8internal11MatcherBaseIPcED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #8
  br label %53

53:                                               ; preds = %52, %35
  call void @llvm.lifetime.end.p0(i64 24, ptr %4) #8
  br label %111

54:                                               ; preds = %27, %26
  %55 = landingpad { ptr, i32 }
          cleanup
  %56 = extractvalue { ptr, i32 } %55, 0
  store ptr %56, ptr %5, align 8
  %57 = extractvalue { ptr, i32 } %55, 1
  store i32 %57, ptr %6, align 4
  br label %110

58:                                               ; preds = %33, %30
  %59 = landingpad { ptr, i32 }
          catch ptr @_ZTIi
          catch ptr null
  %60 = extractvalue { ptr, i32 } %59, 0
  store ptr %60, ptr %5, align 8
  %61 = extractvalue { ptr, i32 } %59, 1
  store i32 %61, ptr %6, align 4
  br label %62

62:                                               ; preds = %58
  %63 = load i32, ptr %6, align 4
  %64 = call i32 @llvm.eh.typeid.for.p0(ptr @_ZTIi) #8
  %65 = icmp eq i32 %63, %64
  br i1 %65, label %66, label %74

66:                                               ; preds = %62
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #8
  %67 = load ptr, ptr %5, align 8
  %68 = call ptr @__cxa_begin_catch(ptr %67) #8
  store ptr %68, ptr %12, align 8
  store i8 1, ptr %10, align 1, !tbaa !9
  call void @__cxa_end_catch() #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  br label %69

69:                                               ; preds = %78, %66
  %70 = load i8, ptr %10, align 1, !tbaa !9, !range !11, !noundef !12
  %71 = trunc i8 %70 to i1
  br i1 %71, label %84, label %72

72:                                               ; preds = %69
  %73 = getelementptr inbounds %"struct.testing::internal::ConstCharPtr", ptr %9, i32 0, i32 0
  store ptr @.str.46, ptr %73, align 8, !tbaa !13
  store i32 2, ptr %11, align 4
  br label %85

74:                                               ; preds = %62
  %75 = load ptr, ptr %5, align 8
  %76 = call ptr @__cxa_begin_catch(ptr %75) #8
  %77 = getelementptr inbounds %"struct.testing::internal::ConstCharPtr", ptr %9, i32 0, i32 0
  store ptr @.str.45, ptr %77, align 8, !tbaa !13
  store i32 2, ptr %11, align 4
  invoke void @__cxa_end_catch()
          to label %79 unwind label %80

78:                                               ; preds = %34, %32
  br label %69

79:                                               ; preds = %74
  br label %85

80:                                               ; preds = %74
  %81 = landingpad { ptr, i32 }
          cleanup
  %82 = extractvalue { ptr, i32 } %81, 0
  store ptr %82, ptr %5, align 8
  %83 = extractvalue { ptr, i32 } %81, 1
  store i32 %83, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #8
  br label %110

84:                                               ; preds = %69
  store i32 0, ptr %11, align 4
  br label %85

85:                                               ; preds = %84, %79, %72
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #8
  %86 = load i32, ptr %11, align 4
  switch i32 %86, label %117 [
    i32 0, label %87
    i32 2, label %89
  ]

87:                                               ; preds = %85
  br label %109

88:                                               ; preds = %29
  br label %89

89:                                               ; preds = %88, %85
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #8
  invoke void @_ZN7testing7MessageC1Ev(ptr noundef nonnull align 8 dereferenceable(8) %13)
          to label %90 unwind label %95

90:                                               ; preds = %89
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #8
  %91 = getelementptr inbounds %"struct.testing::internal::ConstCharPtr", ptr %9, i32 0, i32 0
  %92 = load ptr, ptr %91, align 8, !tbaa !13
  invoke void @_ZN7testing8internal12AssertHelperC1ENS_14TestPartResult4TypeEPKciS5_(ptr noundef nonnull align 8 dereferenceable(8) %14, i32 noundef 1, ptr noundef @.str.3, i32 noundef 412, ptr noundef %92)
          to label %93 unwind label %99

93:                                               ; preds = %90
  invoke void @_ZNK7testing8internal12AssertHelperaSERKNS_7MessageE(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 8 dereferenceable(8) %13)
          to label %94 unwind label %103

94:                                               ; preds = %93
  call void @_ZN7testing8internal12AssertHelperD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %14) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  call void @_ZN7testing7MessageD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %13) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  br label %109

95:                                               ; preds = %89
  %96 = landingpad { ptr, i32 }
          cleanup
  %97 = extractvalue { ptr, i32 } %96, 0
  store ptr %97, ptr %5, align 8
  %98 = extractvalue { ptr, i32 } %96, 1
  store i32 %98, ptr %6, align 4
  br label %108

99:                                               ; preds = %90
  %100 = landingpad { ptr, i32 }
          cleanup
  %101 = extractvalue { ptr, i32 } %100, 0
  store ptr %101, ptr %5, align 8
  %102 = extractvalue { ptr, i32 } %100, 1
  store i32 %102, ptr %6, align 4
  br label %107

103:                                              ; preds = %93
  %104 = landingpad { ptr, i32 }
          cleanup
  %105 = extractvalue { ptr, i32 } %104, 0
  store ptr %105, ptr %5, align 8
  %106 = extractvalue { ptr, i32 } %104, 1
  store i32 %106, ptr %6, align 4
  call void @_ZN7testing8internal12AssertHelperD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %14) #8
  br label %107

107:                                              ; preds = %103, %99
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  call void @_ZN7testing7MessageD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %13) #8
  br label %108

108:                                              ; preds = %107, %95
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  br label %110

109:                                              ; preds = %94, %87
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #8
  call void @_ZN4MockD2Ev(ptr noundef nonnull align 8 dereferenceable(944) %3) #8
  call void @llvm.lifetime.end.p0(i64 944, ptr %3) #8
  ret void

110:                                              ; preds = %108, %80, %54
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #8
  br label %111

111:                                              ; preds = %110, %53
  call void @_ZN4MockD2Ev(ptr noundef nonnull align 8 dereferenceable(944) %3) #8
  call void @llvm.lifetime.end.p0(i64 944, ptr %3) #8
  br label %112

112:                                              ; preds = %111
  %113 = load ptr, ptr %5, align 8
  %114 = load i32, ptr %6, align 4
  %115 = insertvalue { ptr, i32 } poison, ptr %113, 0
  %116 = insertvalue { ptr, i32 } %115, i32 %114, 1
  resume { ptr, i32 } %116

117:                                              ; preds = %85
  unreachable
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local i32 @_ZN7testing5ThrowIiEENS_12ThrowActionPIT_EES2_(i32 noundef) #4

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK7testing12ThrowActionPIiEcvNS_6ActionIT_EEIFvPcEEEv(ptr dead_on_unwind noalias writable sret(%"class.testing::Action") align 8, ptr noundef nonnull align 4 dereferenceable(4)) #1 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK7testing8internal12ConstCharPtrcvbEv(ptr noundef nonnull align 8 dereferenceable(8)) #3 align 2

declare noundef zeroext i1 @_ZN7testing8internal10AlwaysTrueEv() #5

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

declare ptr @__cxa_begin_catch(ptr)

declare void @__cxa_end_catch()

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

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

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

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

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

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

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

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


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

%"class.testing::internal::AnythingMatcher" = type { i8 }
%"class.testing::Matcher" = type { %"class.testing::internal::MatcherBase" }
%"class.testing::internal::MatcherBase" = type { ptr, %"class.testing::internal::linked_ptr" }
%"class.testing::internal::linked_ptr" = type { ptr, %"class.testing::internal::linked_ptr_internal" }
%"class.testing::internal::linked_ptr_internal" = type { ptr }
%class.Mock = type { %class.Interface, %"class.testing::internal::FunctionMocker", %"class.testing::internal::FunctionMocker.8", %"class.testing::internal::FunctionMocker.11", %"class.testing::internal::FunctionMocker.14", %"class.testing::internal::FunctionMocker.17", %"class.testing::internal::FunctionMocker.26", %"class.testing::internal::FunctionMocker.35", %"class.testing::internal::FunctionMocker.44", %"class.testing::internal::FunctionMocker.53" }
%class.Interface = type { ptr }
%"class.testing::internal::FunctionMocker" = type { %"class.testing::internal::FunctionMockerBase" }
%"class.testing::internal::FunctionMockerBase" = type { %"class.testing::internal::UntypedFunctionMockerBase", %"class.testing::internal::MockSpec" }
%"class.testing::internal::UntypedFunctionMockerBase" = type { ptr, ptr, ptr, %"class.std::vector", %"class.std::vector.3" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<const void *, std::allocator<const void *>>::_Vector_impl" }
%"struct.std::_Vector_base<const void *, std::allocator<const void *>>::_Vector_impl" = type { %"struct.std::_Vector_base<const void *, std::allocator<const void *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<const void *, std::allocator<const void *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.3" = type { %"struct.std::_Vector_base.4" }
%"struct.std::_Vector_base.4" = type { %"struct.std::_Vector_base<testing::internal::linked_ptr<testing::internal::ExpectationBase>, std::allocator<testing::internal::linked_ptr<testing::internal::ExpectationBase>>>::_Vector_impl" }
%"struct.std::_Vector_base<testing::internal::linked_ptr<testing::internal::ExpectationBase>, std::allocator<testing::internal::linked_ptr<testing::internal::ExpectationBase>>>::_Vector_impl" = type { %"struct.std::_Vector_base<testing::internal::linked_ptr<testing::internal::ExpectationBase>, std::allocator<testing::internal::linked_ptr<testing::internal::ExpectationBase>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<testing::internal::linked_ptr<testing::internal::ExpectationBase>, std::allocator<testing::internal::linked_ptr<testing::internal::ExpectationBase>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.testing::internal::MockSpec" = type { ptr, %"class.std::tuple" }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Head_base" }
%"struct.std::_Head_base" = type { %"class.testing::Matcher" }
%"class.testing::internal::FunctionMocker.8" = type { %"class.testing::internal::FunctionMockerBase.9" }
%"class.testing::internal::FunctionMockerBase.9" = type { %"class.testing::internal::UntypedFunctionMockerBase", %"class.testing::internal::MockSpec.10" }
%"class.testing::internal::MockSpec.10" = type { ptr, %"class.std::tuple" }
%"class.testing::internal::FunctionMocker.11" = type { %"class.testing::internal::FunctionMockerBase.12" }
%"class.testing::internal::FunctionMockerBase.12" = type { %"class.testing::internal::UntypedFunctionMockerBase", %"class.testing::internal::MockSpec.13" }
%"class.testing::internal::MockSpec.13" = type { ptr, %"class.std::tuple" }
%"class.testing::internal::FunctionMocker.14" = type { %"class.testing::internal::FunctionMockerBase.15" }
%"class.testing::internal::FunctionMockerBase.15" = type { %"class.testing::internal::UntypedFunctionMockerBase", %"class.testing::internal::MockSpec.16" }
%"class.testing::internal::MockSpec.16" = type { ptr, %"class.std::tuple" }
%"class.testing::internal::FunctionMocker.17" = type { %"class.testing::internal::FunctionMockerBase.18" }
%"class.testing::internal::FunctionMockerBase.18" = type { %"class.testing::internal::UntypedFunctionMockerBase", %"class.testing::internal::MockSpec.19" }
%"class.testing::internal::MockSpec.19" = type { ptr, %"class.std::tuple.20" }
%"class.std::tuple.20" = type { %"struct.std::_Tuple_impl.21" }
%"struct.std::_Tuple_impl.21" = type { %"struct.std::_Head_base.22" }
%"struct.std::_Head_base.22" = type { %"class.testing::Matcher.23" }
%"class.testing::Matcher.23" = type { %"class.testing::internal::MatcherBase.24" }
%"class.testing::internal::MatcherBase.24" = type { ptr, %"class.testing::internal::linked_ptr.25" }
%"class.testing::internal::linked_ptr.25" = type { ptr, %"class.testing::internal::linked_ptr_internal" }
%"class.testing::internal::FunctionMocker.26" = type { %"class.testing::internal::FunctionMockerBase.27" }
%"class.testing::internal::FunctionMockerBase.27" = type { %"class.testing::internal::UntypedFunctionMockerBase", %"class.testing::internal::MockSpec.28" }
%"class.testing::internal::MockSpec.28" = type { ptr, %"class.std::tuple.29" }
%"class.std::tuple.29" = type { %"struct.std::_Tuple_impl.30" }
%"struct.std::_Tuple_impl.30" = type { %"struct.std::_Head_base.31" }
%"struct.std::_Head_base.31" = type { %"class.testing::Matcher.32" }
%"class.testing::Matcher.32" = type { %"class.testing::internal::MatcherBase.33" }
%"class.testing::internal::MatcherBase.33" = type { ptr, %"class.testing::internal::linked_ptr.34" }
%"class.testing::internal::linked_ptr.34" = type { ptr, %"class.testing::internal::linked_ptr_internal" }
%"class.testing::internal::FunctionMocker.35" = type { %"class.testing::internal::FunctionMockerBase.36" }
%"class.testing::internal::FunctionMockerBase.36" = type { %"class.testing::internal::UntypedFunctionMockerBase", %"class.testing::internal::MockSpec.37" }
%"class.testing::internal::MockSpec.37" = type { ptr, %"class.std::tuple.38" }
%"class.std::tuple.38" = type { %"struct.std::_Tuple_impl.39" }
%"struct.std::_Tuple_impl.39" = type { %"struct.std::_Head_base.40" }
%"struct.std::_Head_base.40" = type { %"class.testing::Matcher.41" }
%"class.testing::Matcher.41" = type { %"class.testing::internal::MatcherBase.42" }
%"class.testing::internal::MatcherBase.42" = type { ptr, %"class.testing::internal::linked_ptr.43" }
%"class.testing::internal::linked_ptr.43" = type { ptr, %"class.testing::internal::linked_ptr_internal" }
%"class.testing::internal::FunctionMocker.44" = type { %"class.testing::internal::FunctionMockerBase.45" }
%"class.testing::internal::FunctionMockerBase.45" = type { %"class.testing::internal::UntypedFunctionMockerBase", %"class.testing::internal::MockSpec.46" }
%"class.testing::internal::MockSpec.46" = type { ptr, %"class.std::tuple.47" }
%"class.std::tuple.47" = type { %"struct.std::_Tuple_impl.48" }
%"struct.std::_Tuple_impl.48" = type { %"struct.std::_Head_base.49" }
%"struct.std::_Head_base.49" = type { %"class.testing::Matcher.50" }
%"class.testing::Matcher.50" = type { %"class.testing::internal::MatcherBase.51" }
%"class.testing::internal::MatcherBase.51" = type { ptr, %"class.testing::internal::linked_ptr.52" }
%"class.testing::internal::linked_ptr.52" = type { ptr, %"class.testing::internal::linked_ptr_internal" }
%"class.testing::internal::FunctionMocker.53" = type { %"class.testing::internal::FunctionMockerBase.54" }
%"class.testing::internal::FunctionMockerBase.54" = type { %"class.testing::internal::UntypedFunctionMockerBase", %"class.testing::internal::MockSpec.55" }
%"class.testing::internal::MockSpec.55" = type { ptr, %"class.std::tuple.56" }
%"class.std::tuple.56" = type { %"struct.std::_Tuple_impl.57" }
%"struct.std::_Tuple_impl.57" = type { %"struct.std::_Head_base.58" }
%"struct.std::_Head_base.58" = type { %"class.testing::Matcher.59" }
%"class.testing::Matcher.59" = type { %"class.testing::internal::MatcherBase.60" }
%"class.testing::internal::MatcherBase.60" = type { ptr, %"class.testing::internal::linked_ptr.61" }
%"class.testing::internal::linked_ptr.61" = type { ptr, %"class.testing::internal::linked_ptr_internal" }
%"class.testing::Action" = type { %"class.testing::internal::linked_ptr.69" }
%"class.testing::internal::linked_ptr.69" = type { ptr, %"class.testing::internal::linked_ptr_internal" }
%"class.testing::ThrowActionP" = type { i32 }
%"struct.testing::internal::ConstCharPtr" = type { ptr }
%"class.testing::Message" = type { %"class.testing::internal::scoped_ptr" }
%"class.testing::internal::scoped_ptr" = type { ptr }
%"class.testing::internal::AssertHelper" = type { ptr }

@.str.3 = external hidden unnamed_addr constant [118 x i8], align 1
@_ZN7testingL1_E = external hidden constant %"class.testing::internal::AnythingMatcher", align 1
@.str.4 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.44 = external hidden unnamed_addr constant [1 x i8], align 1
@_ZTIi = external constant ptr
@.str.45 = external hidden unnamed_addr constant [109 x i8], align 1
@.str.46 = external hidden unnamed_addr constant [100 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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(304) ptr @_ZN7testing8internal8MockSpecIFvPcEE18InternalExpectedAtEPKciS6_S6_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #1 align 2

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN24LinkTest2_TestThrow_Test8TestBodyEv(ptr nocapture noundef nonnull readnone align 8 dereferenceable(16) %0) unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %class.Mock, align 8
  %3 = alloca %"class.testing::Matcher", align 8
  %4 = alloca %"class.testing::Action", align 8
  %5 = alloca %"class.testing::ThrowActionP", align 4
  %6 = alloca %"struct.testing::internal::ConstCharPtr", align 8
  %7 = alloca %"class.testing::Message", align 8
  %8 = alloca %"class.testing::internal::AssertHelper", align 8
  call void @llvm.lifetime.start.p0(i64 944, ptr nonnull %2) #8
  call void @_ZN4MockC2Ev(ptr noundef nonnull align 8 dereferenceable(944) %2)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #8
  invoke void @_ZNK7testing8internal15AnythingMatchercvNS_7MatcherIT_EEIPcEEv(ptr dead_on_unwind nonnull writable sret(%"class.testing::Matcher") align 8 %3, ptr noundef nonnull align 1 dereferenceable(1) @_ZN7testingL1_E)
          to label %9 unwind label %24

9:                                                ; preds = %1
  %10 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZN4Mock20gmock_VoidFromStringERKN7testing7MatcherIPcEE(ptr noundef nonnull align 8 dereferenceable(944) %2, ptr noundef nonnull align 8 dereferenceable(24) %3)
          to label %11 unwind label %26

11:                                               ; preds = %9
  %12 = invoke noundef nonnull align 8 dereferenceable(304) ptr @_ZN7testing8internal8MockSpecIFvPcEE18InternalExpectedAtEPKciS6_S6_(ptr noundef nonnull align 8 dereferenceable(32) %10, ptr noundef nonnull @.str.3, i32 noundef 411, ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.5)
          to label %13 unwind label %26

13:                                               ; preds = %11
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #8
  %14 = invoke i32 @_ZN7testing5ThrowIiEENS_12ThrowActionPIT_EES2_(i32 noundef 42)
          to label %15 unwind label %28

15:                                               ; preds = %13
  store i32 %14, ptr %5, align 4
  invoke void @_ZNK7testing12ThrowActionPIiEcvNS_6ActionIT_EEIFvPcEEEv(ptr dead_on_unwind nonnull writable sret(%"class.testing::Action") align 8 %4, ptr noundef nonnull align 4 dereferenceable(4) %5)
          to label %16 unwind label %28

16:                                               ; preds = %15
  %17 = invoke noundef nonnull align 8 dereferenceable(304) ptr @_ZN7testing8internal16TypedExpectationIFvPcEE8WillOnceERKNS_6ActionIS3_EE(ptr noundef nonnull align 8 dereferenceable(304) %12, ptr noundef nonnull align 8 dereferenceable(16) %4)
          to label %18 unwind label %30

18:                                               ; preds = %16
  call void @_ZN7testing6ActionIFvPcEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %4) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #8
  call void @_ZN7testing8internal11MatcherBaseIPcED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #8
  call void @_ZN7testing8internal12ConstCharPtrC2EPKc(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull @.str.44)
  %19 = call noundef zeroext i1 @_ZNK7testing8internal12ConstCharPtrcvbEv(ptr noundef nonnull align 8 dereferenceable(8) %6)
  br i1 %19, label %20, label %.thread

20:                                               ; preds = %18
  %21 = invoke noundef zeroext i1 @_ZN7testing8internal10AlwaysTrueEv()
          to label %22 unwind label %35

22:                                               ; preds = %20
  br i1 %21, label %23, label %.critedge

23:                                               ; preds = %22
  invoke void @_ZN4Mock14VoidFromStringEPc(ptr noundef nonnull align 8 dereferenceable(944) %2, ptr noundef null)
          to label %.critedge unwind label %35

24:                                               ; preds = %1
  %25 = landingpad { ptr, i32 }
          cleanup
  br label %34

26:                                               ; preds = %11, %9
  %27 = landingpad { ptr, i32 }
          cleanup
  br label %33

28:                                               ; preds = %15, %13
  %29 = landingpad { ptr, i32 }
          cleanup
  br label %32

30:                                               ; preds = %16
  %31 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7testing6ActionIFvPcEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %4) #8
  br label %32

32:                                               ; preds = %30, %28
  %.pn = phi { ptr, i32 } [ %31, %30 ], [ %29, %28 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #8
  br label %33

33:                                               ; preds = %32, %26
  %.pn.pn = phi { ptr, i32 } [ %.pn, %32 ], [ %27, %26 ]
  call void @_ZN7testing8internal11MatcherBaseIPcED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #8
  br label %34

34:                                               ; preds = %33, %24
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %33 ], [ %25, %24 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #8
  br label %60

35:                                               ; preds = %23, %20
  %36 = landingpad { ptr, i32 }
          catch ptr @_ZTIi
          catch ptr null
  %37 = extractvalue { ptr, i32 } %36, 0
  %38 = extractvalue { ptr, i32 } %36, 1
  %39 = call i32 @llvm.eh.typeid.for.p0(ptr nonnull @_ZTIi) #8
  %40 = icmp eq i32 %38, %39
  %41 = call ptr @__cxa_begin_catch(ptr %37) #8
  br i1 %40, label %45, label %42

.critedge:                                        ; preds = %22, %23
  store ptr @.str.46, ptr %6, align 8, !tbaa !5
  br label %.thread

42:                                               ; preds = %35
  store ptr @.str.45, ptr %6, align 8, !tbaa !5
  invoke void @__cxa_end_catch()
          to label %.thread unwind label %43

43:                                               ; preds = %42
  %44 = landingpad { ptr, i32 }
          cleanup
  br label %59

45:                                               ; preds = %35
  call void @__cxa_end_catch() #8
  br label %58

.thread:                                          ; preds = %42, %.critedge, %18
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #8
  invoke void @_ZN7testing7MessageC1Ev(ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %46 unwind label %50

46:                                               ; preds = %.thread
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #8
  %47 = load ptr, ptr %6, align 8, !tbaa !5
  invoke void @_ZN7testing8internal12AssertHelperC1ENS_14TestPartResult4TypeEPKciS5_(ptr noundef nonnull align 8 dereferenceable(8) %8, i32 noundef 1, ptr noundef nonnull @.str.3, i32 noundef 412, ptr noundef %47)
          to label %48 unwind label %52

48:                                               ; preds = %46
  invoke void @_ZNK7testing8internal12AssertHelperaSERKNS_7MessageE(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %49 unwind label %54

49:                                               ; preds = %48
  call void @_ZN7testing8internal12AssertHelperD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #8
  call void @_ZN7testing7MessageD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #8
  br label %58

50:                                               ; preds = %.thread
  %51 = landingpad { ptr, i32 }
          cleanup
  br label %57

52:                                               ; preds = %46
  %53 = landingpad { ptr, i32 }
          cleanup
  br label %56

54:                                               ; preds = %48
  %55 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7testing8internal12AssertHelperD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #8
  br label %56

56:                                               ; preds = %54, %52
  %.pn19 = phi { ptr, i32 } [ %55, %54 ], [ %53, %52 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #8
  call void @_ZN7testing7MessageD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #8
  br label %57

57:                                               ; preds = %56, %50
  %.pn19.pn = phi { ptr, i32 } [ %.pn19, %56 ], [ %51, %50 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #8
  br label %59

58:                                               ; preds = %45, %49
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #8
  call void @_ZN4MockD2Ev(ptr noundef nonnull align 8 dereferenceable(944) %2) #8
  call void @llvm.lifetime.end.p0(i64 944, ptr nonnull %2) #8
  ret void

59:                                               ; preds = %57, %43
  %.pn19.pn.pn = phi { ptr, i32 } [ %.pn19.pn, %57 ], [ %44, %43 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #8
  br label %60

60:                                               ; preds = %59, %34
  %.pn19.pn.pn.pn = phi { ptr, i32 } [ %.pn19.pn.pn, %59 ], [ %.pn.pn.pn, %34 ]
  call void @_ZN4MockD2Ev(ptr noundef nonnull align 8 dereferenceable(944) %2) #8
  call void @llvm.lifetime.end.p0(i64 944, ptr nonnull %2) #8
  resume { ptr, i32 } %.pn19.pn.pn.pn
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local i32 @_ZN7testing5ThrowIiEENS_12ThrowActionPIT_EES2_(i32 noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK7testing12ThrowActionPIiEcvNS_6ActionIT_EEIFvPcEEEv(ptr dead_on_unwind noalias writable sret(%"class.testing::Action") align 8, ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK7testing8internal12ConstCharPtrcvbEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3 align 2

declare noundef zeroext i1 @_ZN7testing8internal10AlwaysTrueEv() local_unnamed_addr #5

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

declare ptr @__cxa_begin_catch(ptr) local_unnamed_addr

declare void @__cxa_end_catch() local_unnamed_addr

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

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

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

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #3 = { 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 = { 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 #5 = { "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 = { nofree nosync nounwind memory(none) }
attributes #7 = { 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 #8 = { 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, !7, i64 0}
!6 = !{!"_ZTSN7testing8internal12ConstCharPtrE", !7, i64 0}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}


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