; LLVM IR from chensoft/libsocket :: lib/libchen/test/lib/googletest/googlemock/test (gmock-more-actions_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::Action.381" = type { %"class.testing::internal::linked_ptr.382" }
%"class.testing::internal::linked_ptr.382" = type { ptr, %"class.testing::internal::linked_ptr_internal" }
%"class.testing::internal::linked_ptr_internal" = type { ptr }
%"class.testing::ThrowActionP.377" = type { i8 }
%"class.testing::gmock_more_actions_test::MyException" = type { i8 }
%"struct.testing::internal::ConstCharPtr" = type { ptr }
%"class.std::tuple" = 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 [127 x i8], align 1
@.str.160 = external hidden unnamed_addr constant [1 x i8], align 1
@_ZTIN7testing23gmock_more_actions_test11MyExceptionE = external dso_local constant { ptr, ptr }, align 8
@.str.169 = external hidden unnamed_addr constant [113 x i8], align 1
@.str.170 = external hidden unnamed_addr constant [104 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 nounwind uwtable
declare dso_local void @_ZSt10make_tupleIJEESt5tupleIJDpNSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeEEEDpOS3_() #1

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

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

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

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

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

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

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

declare noundef zeroext i1 @_ZN7testing8internal10AlwaysTrueEv() #2

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

declare ptr @__cxa_begin_catch(ptr)

declare void @__cxa_end_catch()

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN7testing5ThrowINS_23gmock_more_actions_test11MyExceptionEEENS_12ThrowActionPIT_EES4_() #6

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7testing23gmock_more_actions_test58ThrowActionTest_ThrowsGivenExceptionInNullaryFunction_Test8TestBodyEv(ptr noundef nonnull align 8 dereferenceable(16) %0) unnamed_addr #7 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca %"class.testing::Action.381", align 8
  %4 = alloca %"class.testing::ThrowActionP.377", align 1
  %5 = alloca %"class.testing::gmock_more_actions_test::MyException", align 1
  %6 = alloca %"class.testing::ThrowActionP.377", align 1
  %7 = alloca %"struct.testing::internal::ConstCharPtr", align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i8, align 1
  %11 = alloca %"class.std::tuple", align 1
  %12 = alloca %"class.std::tuple", align 1
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  %15 = alloca %"class.testing::Message", align 8
  %16 = alloca %"class.testing::internal::AssertHelper", align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %17 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %3) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr %4) #8
  call void @_ZN7testing5ThrowINS_23gmock_more_actions_test11MyExceptionEEENS_12ThrowActionPIT_EES4_()
  call void @_ZNK7testing12ThrowActionPINS_23gmock_more_actions_test11MyExceptionEEcvNS_6ActionIT_EEIFdvEEEv(ptr dead_on_unwind writable sret(%"class.testing::Action.381") align 8 %3, ptr noundef nonnull align 1 dereferenceable(1) %4)
  call void @llvm.lifetime.end.p0(i64 1, ptr %4) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #8
  invoke void @_ZN7testing8internal12ConstCharPtrC2EPKc(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef @.str.160)
          to label %18 unwind label %28

18:                                               ; preds = %1
  %19 = invoke noundef zeroext i1 @_ZNK7testing8internal12ConstCharPtrcvbEv(ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %20 unwind label %28

20:                                               ; preds = %18
  br i1 %19, label %21, label %72

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

23:                                               ; preds = %21
  br i1 %22, label %24, label %57

24:                                               ; preds = %23
  call void @llvm.lifetime.start.p0(i64 1, ptr %11) #8
  invoke void @_ZSt10make_tupleIJEESt5tupleIJDpNSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeEEEDpOS3_()
          to label %25 unwind label %36

25:                                               ; preds = %24
  %26 = invoke noundef double @_ZNK7testing6ActionIFdvEE7PerformERKSt5tupleIJEE(ptr noundef nonnull align 8 dereferenceable(16) %3, ptr noundef nonnull align 1 dereferenceable(1) %11)
          to label %27 unwind label %36

27:                                               ; preds = %25
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #8
  br label %57

28:                                               ; preds = %18, %1
  %29 = landingpad { ptr, i32 }
          cleanup
  %30 = extractvalue { ptr, i32 } %29, 0
  store ptr %30, ptr %8, align 8
  %31 = extractvalue { ptr, i32 } %29, 1
  store i32 %31, ptr %9, align 4
  br label %94

32:                                               ; preds = %21
  %33 = landingpad { ptr, i32 }
          catch ptr @_ZTIN7testing23gmock_more_actions_test11MyExceptionE
          catch ptr null
  %34 = extractvalue { ptr, i32 } %33, 0
  store ptr %34, ptr %8, align 8
  %35 = extractvalue { ptr, i32 } %33, 1
  store i32 %35, ptr %9, align 4
  br label %40

36:                                               ; preds = %25, %24
  %37 = landingpad { ptr, i32 }
          catch ptr @_ZTIN7testing23gmock_more_actions_test11MyExceptionE
          catch ptr null
  %38 = extractvalue { ptr, i32 } %37, 0
  store ptr %38, ptr %8, align 8
  %39 = extractvalue { ptr, i32 } %37, 1
  store i32 %39, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #8
  br label %40

40:                                               ; preds = %36, %32
  %41 = load i32, ptr %9, align 4
  %42 = call i32 @llvm.eh.typeid.for.p0(ptr @_ZTIN7testing23gmock_more_actions_test11MyExceptionE) #8
  %43 = icmp eq i32 %41, %42
  br i1 %43, label %44, label %53

44:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #8
  %45 = load ptr, ptr %8, align 8
  %46 = call ptr @__cxa_begin_catch(ptr %45) #8
  store ptr %46, ptr %14, align 8
  store i8 1, ptr %10, align 1, !tbaa !9
  invoke void @__cxa_end_catch()
          to label %47 unwind label %63

47:                                               ; preds = %44
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  br label %48

48:                                               ; preds = %57, %47
  %49 = load i8, ptr %10, align 1, !tbaa !9, !range !11, !noundef !12
  %50 = trunc i8 %49 to i1
  br i1 %50, label %67, label %51

51:                                               ; preds = %48
  %52 = getelementptr inbounds %"struct.testing::internal::ConstCharPtr", ptr %7, i32 0, i32 0
  store ptr @.str.170, ptr %52, align 8, !tbaa !13
  store i32 2, ptr %13, align 4
  br label %68

53:                                               ; preds = %40
  %54 = load ptr, ptr %8, align 8
  %55 = call ptr @__cxa_begin_catch(ptr %54) #8
  %56 = getelementptr inbounds %"struct.testing::internal::ConstCharPtr", ptr %7, i32 0, i32 0
  store ptr @.str.169, ptr %56, align 8, !tbaa !13
  store i32 2, ptr %13, align 4
  invoke void @__cxa_end_catch()
          to label %58 unwind label %59

57:                                               ; preds = %27, %23
  br label %48

58:                                               ; preds = %53
  br label %68

59:                                               ; preds = %53
  %60 = landingpad { ptr, i32 }
          cleanup
  %61 = extractvalue { ptr, i32 } %60, 0
  store ptr %61, ptr %8, align 8
  %62 = extractvalue { ptr, i32 } %60, 1
  store i32 %62, ptr %9, align 4
  br label %71

63:                                               ; preds = %44
  %64 = landingpad { ptr, i32 }
          cleanup
  %65 = extractvalue { ptr, i32 } %64, 0
  store ptr %65, ptr %8, align 8
  %66 = extractvalue { ptr, i32 } %64, 1
  store i32 %66, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  br label %71

67:                                               ; preds = %48
  store i32 0, ptr %13, align 4
  br label %68

68:                                               ; preds = %67, %58, %51
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #8
  %69 = load i32, ptr %13, align 4
  switch i32 %69, label %100 [
    i32 0, label %70
    i32 2, label %73
  ]

70:                                               ; preds = %68
  br label %93

71:                                               ; preds = %63, %59
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #8
  br label %94

72:                                               ; preds = %20
  br label %73

73:                                               ; preds = %72, %68
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #8
  invoke void @_ZN7testing7MessageC1Ev(ptr noundef nonnull align 8 dereferenceable(8) %15)
          to label %74 unwind label %79

74:                                               ; preds = %73
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #8
  %75 = getelementptr inbounds %"struct.testing::internal::ConstCharPtr", ptr %7, i32 0, i32 0
  %76 = load ptr, ptr %75, align 8, !tbaa !13
  invoke void @_ZN7testing8internal12AssertHelperC1ENS_14TestPartResult4TypeEPKciS5_(ptr noundef nonnull align 8 dereferenceable(8) %16, i32 noundef 1, ptr noundef @.str.5, i32 noundef 614, ptr noundef %76)
          to label %77 unwind label %83

77:                                               ; preds = %74
  invoke void @_ZNK7testing8internal12AssertHelperaSERKNS_7MessageE(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(8) %15)
          to label %78 unwind label %87

78:                                               ; preds = %77
  call void @_ZN7testing8internal12AssertHelperD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %16) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  call void @_ZN7testing7MessageD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %15) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  br label %93

79:                                               ; preds = %73
  %80 = landingpad { ptr, i32 }
          cleanup
  %81 = extractvalue { ptr, i32 } %80, 0
  store ptr %81, ptr %8, align 8
  %82 = extractvalue { ptr, i32 } %80, 1
  store i32 %82, ptr %9, align 4
  br label %92

83:                                               ; preds = %74
  %84 = landingpad { ptr, i32 }
          cleanup
  %85 = extractvalue { ptr, i32 } %84, 0
  store ptr %85, ptr %8, align 8
  %86 = extractvalue { ptr, i32 } %84, 1
  store i32 %86, ptr %9, align 4
  br label %91

87:                                               ; preds = %77
  %88 = landingpad { ptr, i32 }
          cleanup
  %89 = extractvalue { ptr, i32 } %88, 0
  store ptr %89, ptr %8, align 8
  %90 = extractvalue { ptr, i32 } %88, 1
  store i32 %90, ptr %9, align 4
  call void @_ZN7testing8internal12AssertHelperD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %16) #8
  br label %91

91:                                               ; preds = %87, %83
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  call void @_ZN7testing7MessageD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %15) #8
  br label %92

92:                                               ; preds = %91, %79
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  br label %94

93:                                               ; preds = %78, %70
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #8
  call void @_ZN7testing6ActionIFdvEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %3) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %3) #8
  ret void

94:                                               ; preds = %92, %71, %28
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #8
  call void @_ZN7testing6ActionIFdvEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %3) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %3) #8
  br label %95

95:                                               ; preds = %94
  %96 = load ptr, ptr %8, align 8
  %97 = load i32, ptr %9, align 4
  %98 = insertvalue { ptr, i32 } poison, ptr %96, 0
  %99 = insertvalue { ptr, i32 } %98, i32 %97, 1
  resume { ptr, i32 } %99

100:                                              ; preds = %68
  unreachable
}

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN7testing6ActionIFdvEED2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #4 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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind memory(none) }
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 = { 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 #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::Action.381" = type { %"class.testing::internal::linked_ptr.382" }
%"class.testing::internal::linked_ptr.382" = type { ptr, %"class.testing::internal::linked_ptr_internal" }
%"class.testing::internal::linked_ptr_internal" = type { ptr }
%"class.testing::ThrowActionP.377" = type { i8 }
%"struct.testing::internal::ConstCharPtr" = type { ptr }
%"class.std::tuple" = 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 [127 x i8], align 1
@.str.160 = external hidden unnamed_addr constant [1 x i8], align 1
@_ZTIN7testing23gmock_more_actions_test11MyExceptionE = external dso_local constant { ptr, ptr }, align 8
@.str.169 = external hidden unnamed_addr constant [113 x i8], align 1
@.str.170 = external hidden unnamed_addr constant [104 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 nounwind uwtable
declare dso_local void @_ZSt10make_tupleIJEESt5tupleIJDpNSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeEEEDpOS3_() local_unnamed_addr #1

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

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

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

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

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

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

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

declare noundef zeroext i1 @_ZN7testing8internal10AlwaysTrueEv() local_unnamed_addr #2

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

declare ptr @__cxa_begin_catch(ptr) local_unnamed_addr

declare void @__cxa_end_catch() local_unnamed_addr

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN7testing5ThrowINS_23gmock_more_actions_test11MyExceptionEEENS_12ThrowActionPIT_EES4_() local_unnamed_addr #6

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7testing23gmock_more_actions_test58ThrowActionTest_ThrowsGivenExceptionInNullaryFunction_Test8TestBodyEv(ptr nocapture noundef nonnull readnone align 8 dereferenceable(16) %0) unnamed_addr #7 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.testing::Action.381", align 8
  %3 = alloca %"class.testing::ThrowActionP.377", align 1
  %4 = alloca %"struct.testing::internal::ConstCharPtr", align 8
  %5 = alloca %"class.std::tuple", align 1
  %6 = alloca %"class.testing::Message", align 8
  %7 = alloca %"class.testing::internal::AssertHelper", align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %2) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %3) #8
  tail call void @_ZN7testing5ThrowINS_23gmock_more_actions_test11MyExceptionEEENS_12ThrowActionPIT_EES4_()
  call void @_ZNK7testing12ThrowActionPINS_23gmock_more_actions_test11MyExceptionEEcvNS_6ActionIT_EEIFdvEEEv(ptr dead_on_unwind nonnull writable sret(%"class.testing::Action.381") align 8 %2, ptr noundef nonnull align 1 dereferenceable(1) %3)
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %3) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #8
  call void @_ZN7testing8internal12ConstCharPtrC2EPKc(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull @.str.160)
  %8 = call noundef zeroext i1 @_ZNK7testing8internal12ConstCharPtrcvbEv(ptr noundef nonnull align 8 dereferenceable(8) %4)
  br i1 %8, label %9, label %.thread

9:                                                ; preds = %1
  %10 = invoke noundef zeroext i1 @_ZN7testing8internal10AlwaysTrueEv()
          to label %11 unwind label %15

11:                                               ; preds = %9
  br i1 %10, label %12, label %.critedge

12:                                               ; preds = %11
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %5) #8
  call void @_ZSt10make_tupleIJEESt5tupleIJDpNSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeEEEDpOS3_()
  %13 = invoke noundef double @_ZNK7testing6ActionIFdvEE7PerformERKSt5tupleIJEE(ptr noundef nonnull align 8 dereferenceable(16) %2, ptr noundef nonnull align 1 dereferenceable(1) %5)
          to label %14 unwind label %17

14:                                               ; preds = %12
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #8
  br label %.critedge

15:                                               ; preds = %9
  %16 = landingpad { ptr, i32 }
          catch ptr @_ZTIN7testing23gmock_more_actions_test11MyExceptionE
          catch ptr null
  br label %19

17:                                               ; preds = %12
  %18 = landingpad { ptr, i32 }
          catch ptr @_ZTIN7testing23gmock_more_actions_test11MyExceptionE
          catch ptr null
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #8
  br label %19

19:                                               ; preds = %17, %15
  %.pn = phi { ptr, i32 } [ %18, %17 ], [ %16, %15 ]
  %.0 = extractvalue { ptr, i32 } %.pn, 0
  %.09 = extractvalue { ptr, i32 } %.pn, 1
  %20 = call i32 @llvm.eh.typeid.for.p0(ptr nonnull @_ZTIN7testing23gmock_more_actions_test11MyExceptionE) #8
  %21 = icmp eq i32 %.09, %20
  %22 = call ptr @__cxa_begin_catch(ptr %.0) #8
  br i1 %21, label %23, label %24

23:                                               ; preds = %19
  invoke void @__cxa_end_catch()
          to label %41 unwind label %27

.critedge:                                        ; preds = %11, %14
  store ptr @.str.170, ptr %4, align 8, !tbaa !5
  br label %.thread

24:                                               ; preds = %19
  store ptr @.str.169, ptr %4, align 8, !tbaa !5
  invoke void @__cxa_end_catch()
          to label %.thread unwind label %25

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

27:                                               ; preds = %23
  %28 = landingpad { ptr, i32 }
          cleanup
  br label %42

.thread:                                          ; preds = %24, %.critedge, %1
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #8
  invoke void @_ZN7testing7MessageC1Ev(ptr noundef nonnull align 8 dereferenceable(8) %6)
          to label %29 unwind label %33

29:                                               ; preds = %.thread
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #8
  %30 = load ptr, ptr %4, align 8, !tbaa !5
  invoke void @_ZN7testing8internal12AssertHelperC1ENS_14TestPartResult4TypeEPKciS5_(ptr noundef nonnull align 8 dereferenceable(8) %7, i32 noundef 1, ptr noundef nonnull @.str.5, i32 noundef 614, ptr noundef %30)
          to label %31 unwind label %35

31:                                               ; preds = %29
  invoke void @_ZNK7testing8internal12AssertHelperaSERKNS_7MessageE(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %6)
          to label %32 unwind label %37

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

33:                                               ; preds = %.thread
  %34 = landingpad { ptr, i32 }
          cleanup
  br label %40

35:                                               ; preds = %29
  %36 = landingpad { ptr, i32 }
          cleanup
  br label %39

37:                                               ; preds = %31
  %38 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7testing8internal12AssertHelperD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #8
  br label %39

39:                                               ; preds = %37, %35
  %.pn17 = phi { ptr, i32 } [ %38, %37 ], [ %36, %35 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #8
  call void @_ZN7testing7MessageD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #8
  br label %40

40:                                               ; preds = %39, %33
  %.pn17.pn = phi { ptr, i32 } [ %.pn17, %39 ], [ %34, %33 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #8
  br label %42

41:                                               ; preds = %23, %32
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #8
  call void @_ZN7testing6ActionIFdvEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %2) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #8
  ret void

42:                                               ; preds = %25, %27, %40
  %.pn17.pn.pn = phi { ptr, i32 } [ %.pn17.pn, %40 ], [ %28, %27 ], [ %26, %25 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #8
  call void @_ZN7testing6ActionIFdvEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %2) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #8
  resume { ptr, i32 } %.pn17.pn.pn
}

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN7testing6ActionIFdvEED2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #4 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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nofree nosync nounwind memory(none) }
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 = { 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 #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,TailCallElimPass