; LLVM IR from PaddlePaddle/FastDeploy :: third_party/yaml-cpp/test/gtest-1.11.0/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.Mock = type { %class.Interface, %"class.testing::internal::FunctionMocker", %"class.testing::internal::FunctionMocker.8", %"class.testing::internal::FunctionMocker.9", %"class.testing::internal::FunctionMocker.10", %"class.testing::internal::FunctionMocker.11", %"class.testing::internal::FunctionMocker.12", %"class.testing::internal::FunctionMocker.13", %"class.testing::internal::FunctionMocker.14", %"class.testing::internal::FunctionMocker.15" }
%class.Interface = type { ptr }
%"class.testing::internal::FunctionMocker" = type { %"class.testing::internal::UntypedFunctionMockerBase" }
%"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<std::shared_ptr<testing::internal::ExpectationBase>, std::allocator<std::shared_ptr<testing::internal::ExpectationBase>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::shared_ptr<testing::internal::ExpectationBase>, std::allocator<std::shared_ptr<testing::internal::ExpectationBase>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::shared_ptr<testing::internal::ExpectationBase>, std::allocator<std::shared_ptr<testing::internal::ExpectationBase>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::shared_ptr<testing::internal::ExpectationBase>, std::allocator<std::shared_ptr<testing::internal::ExpectationBase>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.testing::internal::FunctionMocker.8" = type { %"class.testing::internal::UntypedFunctionMockerBase" }
%"class.testing::internal::FunctionMocker.9" = type { %"class.testing::internal::UntypedFunctionMockerBase" }
%"class.testing::internal::FunctionMocker.10" = type { %"class.testing::internal::UntypedFunctionMockerBase" }
%"class.testing::internal::FunctionMocker.11" = type { %"class.testing::internal::UntypedFunctionMockerBase" }
%"class.testing::internal::FunctionMocker.12" = type { %"class.testing::internal::UntypedFunctionMockerBase" }
%"class.testing::internal::FunctionMocker.13" = type { %"class.testing::internal::UntypedFunctionMockerBase" }
%"class.testing::internal::FunctionMocker.14" = type { %"class.testing::internal::UntypedFunctionMockerBase" }
%"class.testing::internal::FunctionMocker.15" = type { %"class.testing::internal::UntypedFunctionMockerBase" }
%"class.testing::internal::MockSpec.44" = 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::Matcher" = type { %"class.testing::internal::MatcherBase" }
%"class.testing::internal::MatcherBase" = type { %"class.testing::MatcherDescriberInterface", ptr, %"union.testing::internal::MatcherBase<char *>::Buffer" }
%"class.testing::MatcherDescriberInterface" = type { ptr }
%"union.testing::internal::MatcherBase<char *>::Buffer" = type { ptr }
%"class.testing::internal::WithoutMatchers" = type { i8 }
%"class.testing::Action.46" = type { %"class.std::function.47" }
%"class.std::function.47" = type { %"class.std::_Function_base", ptr }
%"class.std::_Function_base" = type { %"union.std::_Any_data", ptr }
%"union.std::_Any_data" = type { %"union.std::_Nocopy_types" }
%"union.std::_Nocopy_types" = type { { i64, i64 } }
%"class.testing::PolymorphicAction.50" = type { %"class.testing::internal::SetErrnoAndReturnAction" }
%"class.testing::internal::SetErrnoAndReturnAction" = type { i32, i32 }

@.str.3 = external hidden unnamed_addr constant [130 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.22 = external hidden unnamed_addr constant [17 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(656)) unnamed_addr #1 align 2

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

declare void @_ZN7testing8internal18GetWithoutMatchersEv() #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: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN4MockD2Ev(ptr noundef nonnull align 8 dereferenceable(656)) unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN36LinkTest2_TestSetErrnoAndReturn_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 i32, align 4
  %5 = alloca %"class.testing::internal::MockSpec.44", align 8
  %6 = alloca %"class.testing::Matcher", align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca %"class.testing::internal::WithoutMatchers", align 1
  %10 = alloca %"class.testing::internal::WithoutMatchers", align 1
  %11 = alloca %"class.testing::Action.46", align 8
  %12 = alloca %"class.testing::PolymorphicAction.50", align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  %13 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 656, ptr %3) #6
  call void @_ZN4MockC2Ev(ptr noundef nonnull align 8 dereferenceable(656) %3)
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #6
  %14 = call ptr @__errno_location() #7
  %15 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %15, ptr %4, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 32, ptr %5) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr %6) #6
  invoke void @_ZN7testing7MatcherIPcEC2IRKNS_8internal15AnythingMatcherEvEEOT_(ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 1 dereferenceable(1) @_ZN7testingL1_E)
          to label %16 unwind label %33

16:                                               ; preds = %1
  invoke void @_ZN4Mock19gmock_IntFromStringERKN7testing7MatcherIPcEE(ptr dead_on_unwind writable sret(%"class.testing::internal::MockSpec.44") align 8 %5, ptr noundef nonnull align 8 dereferenceable(656) %3, ptr noundef nonnull align 8 dereferenceable(24) %6)
          to label %17 unwind label %37

17:                                               ; preds = %16
  call void @llvm.lifetime.start.p0(i64 1, ptr %9) #6
  invoke void @_ZN7testing8internal18GetWithoutMatchersEv()
          to label %18 unwind label %41

18:                                               ; preds = %17
  %19 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZN7testing8internal8MockSpecIFiPcEEclERKNS0_15WithoutMatchersEPv(ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef nonnull align 1 dereferenceable(1) %9, ptr noundef null)
          to label %20 unwind label %41

20:                                               ; preds = %18
  %21 = invoke noundef nonnull align 8 dereferenceable(320) ptr @_ZN7testing8internal8MockSpecIFiPcEE18InternalExpectedAtEPKciS6_S6_(ptr noundef nonnull align 8 dereferenceable(32) %19, ptr noundef @.str.3, i32 noundef 316, ptr noundef @.str.4, ptr noundef @.str.22)
          to label %22 unwind label %41

22:                                               ; preds = %20
  call void @llvm.lifetime.start.p0(i64 32, ptr %11) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %23 = invoke i64 @_ZN7testing17SetErrnoAndReturnIiEENS_17PolymorphicActionINS_8internal23SetErrnoAndReturnActionIT_EEEEiS4_(i32 noundef 1, i32 noundef -1)
          to label %24 unwind label %45

24:                                               ; preds = %22
  %25 = getelementptr inbounds %"class.testing::PolymorphicAction.50", ptr %12, i32 0, i32 0
  store i64 %23, ptr %25, align 4
  invoke void @_ZNK7testing17PolymorphicActionINS_8internal23SetErrnoAndReturnActionIiEEEcvNS_6ActionIT_EEIFiPcEEEv(ptr dead_on_unwind writable sret(%"class.testing::Action.46") align 8 %11, ptr noundef nonnull align 4 dereferenceable(8) %12)
          to label %26 unwind label %45

26:                                               ; preds = %24
  %27 = invoke noundef nonnull align 8 dereferenceable(320) ptr @_ZN7testing8internal16TypedExpectationIFiPcEE8WillOnceERKNS_6ActionIS3_EE(ptr noundef nonnull align 8 dereferenceable(320) %21, ptr noundef nonnull align 8 dereferenceable(32) %11)
          to label %28 unwind label %49

28:                                               ; preds = %26
  call void @_ZN7testing6ActionIFiPcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #6
  call void @_ZN7testing8internal8MockSpecIFiPcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  call void @_ZN7testing8internal11MatcherBaseIPcED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %5) #6
  %29 = invoke noundef i32 @_ZN4Mock13IntFromStringEPc(ptr noundef nonnull align 8 dereferenceable(656) %3, ptr noundef null)
          to label %30 unwind label %57

30:                                               ; preds = %28
  %31 = load i32, ptr %4, align 4, !tbaa !9
  %32 = call ptr @__errno_location() #7
  store i32 %31, ptr %32, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
  call void @_ZN4MockD2Ev(ptr noundef nonnull align 8 dereferenceable(656) %3) #6
  call void @llvm.lifetime.end.p0(i64 656, ptr %3) #6
  ret void

33:                                               ; preds = %1
  %34 = landingpad { ptr, i32 }
          cleanup
  %35 = extractvalue { ptr, i32 } %34, 0
  store ptr %35, ptr %7, align 8
  %36 = extractvalue { ptr, i32 } %34, 1
  store i32 %36, ptr %8, align 4
  br label %56

37:                                               ; preds = %16
  %38 = landingpad { ptr, i32 }
          cleanup
  %39 = extractvalue { ptr, i32 } %38, 0
  store ptr %39, ptr %7, align 8
  %40 = extractvalue { ptr, i32 } %38, 1
  store i32 %40, ptr %8, align 4
  br label %55

41:                                               ; preds = %20, %18, %17
  %42 = landingpad { ptr, i32 }
          cleanup
  %43 = extractvalue { ptr, i32 } %42, 0
  store ptr %43, ptr %7, align 8
  %44 = extractvalue { ptr, i32 } %42, 1
  store i32 %44, ptr %8, align 4
  br label %54

45:                                               ; preds = %24, %22
  %46 = landingpad { ptr, i32 }
          cleanup
  %47 = extractvalue { ptr, i32 } %46, 0
  store ptr %47, ptr %7, align 8
  %48 = extractvalue { ptr, i32 } %46, 1
  store i32 %48, ptr %8, align 4
  br label %53

49:                                               ; preds = %26
  %50 = landingpad { ptr, i32 }
          cleanup
  %51 = extractvalue { ptr, i32 } %50, 0
  store ptr %51, ptr %7, align 8
  %52 = extractvalue { ptr, i32 } %50, 1
  store i32 %52, ptr %8, align 4
  call void @_ZN7testing6ActionIFiPcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #6
  br label %53

53:                                               ; preds = %49, %45
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %11) #6
  br label %54

54:                                               ; preds = %53, %41
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #6
  call void @_ZN7testing8internal8MockSpecIFiPcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  br label %55

55:                                               ; preds = %54, %37
  call void @_ZN7testing8internal11MatcherBaseIPcED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #6
  br label %56

56:                                               ; preds = %55, %33
  call void @llvm.lifetime.end.p0(i64 24, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %5) #6
  br label %61

57:                                               ; preds = %28
  %58 = landingpad { ptr, i32 }
          cleanup
  %59 = extractvalue { ptr, i32 } %58, 0
  store ptr %59, ptr %7, align 8
  %60 = extractvalue { ptr, i32 } %58, 1
  store i32 %60, ptr %8, align 4
  br label %61

61:                                               ; preds = %57, %56
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
  call void @_ZN4MockD2Ev(ptr noundef nonnull align 8 dereferenceable(656) %3) #6
  call void @llvm.lifetime.end.p0(i64 656, ptr %3) #6
  br label %62

62:                                               ; preds = %61
  %63 = load ptr, ptr %7, align 8
  %64 = load i32, ptr %8, align 4
  %65 = insertvalue { ptr, i32 } poison, ptr %63, 0
  %66 = insertvalue { ptr, i32 } %65, i32 %64, 1
  resume { ptr, i32 } %66
}

; Function Attrs: nounwind willreturn memory(none)
declare ptr @__errno_location() #5

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4Mock19gmock_IntFromStringERKN7testing7MatcherIPcEE(ptr dead_on_unwind noalias writable sret(%"class.testing::internal::MockSpec.44") align 8, ptr noundef nonnull align 8 dereferenceable(656), ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(320) ptr @_ZN7testing8internal8MockSpecIFiPcEE18InternalExpectedAtEPKciS6_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(320) ptr @_ZN7testing8internal16TypedExpectationIFiPcEE8WillOnceERKNS_6ActionIS3_EE(ptr noundef nonnull align 8 dereferenceable(320), ptr noundef nonnull align 8 dereferenceable(32)) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local i64 @_ZN7testing17SetErrnoAndReturnIiEENS_17PolymorphicActionINS_8internal23SetErrnoAndReturnActionIT_EEEEiS4_(i32 noundef, i32 noundef) #1

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN4Mock13IntFromStringEPc(ptr noundef nonnull align 8 dereferenceable(656), ptr noundef) unnamed_addr #1 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 = { "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 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 willreturn memory(none) "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 }
attributes #7 = { nounwind willreturn memory(none) }

!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 = !{!"int", !7, i64 0}


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

%"class.testing::internal::AnythingMatcher" = type { i8 }
%class.Mock = type { %class.Interface, %"class.testing::internal::FunctionMocker", %"class.testing::internal::FunctionMocker.8", %"class.testing::internal::FunctionMocker.9", %"class.testing::internal::FunctionMocker.10", %"class.testing::internal::FunctionMocker.11", %"class.testing::internal::FunctionMocker.12", %"class.testing::internal::FunctionMocker.13", %"class.testing::internal::FunctionMocker.14", %"class.testing::internal::FunctionMocker.15" }
%class.Interface = type { ptr }
%"class.testing::internal::FunctionMocker" = type { %"class.testing::internal::UntypedFunctionMockerBase" }
%"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<std::shared_ptr<testing::internal::ExpectationBase>, std::allocator<std::shared_ptr<testing::internal::ExpectationBase>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::shared_ptr<testing::internal::ExpectationBase>, std::allocator<std::shared_ptr<testing::internal::ExpectationBase>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::shared_ptr<testing::internal::ExpectationBase>, std::allocator<std::shared_ptr<testing::internal::ExpectationBase>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::shared_ptr<testing::internal::ExpectationBase>, std::allocator<std::shared_ptr<testing::internal::ExpectationBase>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.testing::internal::FunctionMocker.8" = type { %"class.testing::internal::UntypedFunctionMockerBase" }
%"class.testing::internal::FunctionMocker.9" = type { %"class.testing::internal::UntypedFunctionMockerBase" }
%"class.testing::internal::FunctionMocker.10" = type { %"class.testing::internal::UntypedFunctionMockerBase" }
%"class.testing::internal::FunctionMocker.11" = type { %"class.testing::internal::UntypedFunctionMockerBase" }
%"class.testing::internal::FunctionMocker.12" = type { %"class.testing::internal::UntypedFunctionMockerBase" }
%"class.testing::internal::FunctionMocker.13" = type { %"class.testing::internal::UntypedFunctionMockerBase" }
%"class.testing::internal::FunctionMocker.14" = type { %"class.testing::internal::UntypedFunctionMockerBase" }
%"class.testing::internal::FunctionMocker.15" = type { %"class.testing::internal::UntypedFunctionMockerBase" }
%"class.testing::internal::MockSpec.44" = 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::Matcher" = type { %"class.testing::internal::MatcherBase" }
%"class.testing::internal::MatcherBase" = type { %"class.testing::MatcherDescriberInterface", ptr, %"union.testing::internal::MatcherBase<char *>::Buffer" }
%"class.testing::MatcherDescriberInterface" = type { ptr }
%"union.testing::internal::MatcherBase<char *>::Buffer" = type { ptr }
%"class.testing::internal::WithoutMatchers" = type { i8 }
%"class.testing::Action.46" = type { %"class.std::function.47" }
%"class.std::function.47" = type { %"class.std::_Function_base", ptr }
%"class.std::_Function_base" = type { %"union.std::_Any_data", ptr }
%"union.std::_Any_data" = type { %"union.std::_Nocopy_types" }
%"union.std::_Nocopy_types" = type { { i64, i64 } }
%"class.testing::PolymorphicAction.50" = type { %"class.testing::internal::SetErrnoAndReturnAction" }
%"class.testing::internal::SetErrnoAndReturnAction" = type { i32, i32 }

@.str.3 = external hidden unnamed_addr constant [130 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.22 = external hidden unnamed_addr constant [17 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(656)) unnamed_addr #1 align 2

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

declare void @_ZN7testing8internal18GetWithoutMatchersEv() local_unnamed_addr #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: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN4MockD2Ev(ptr noundef nonnull align 8 dereferenceable(656)) unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN36LinkTest2_TestSetErrnoAndReturn_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::internal::MockSpec.44", align 8
  %4 = alloca %"class.testing::Matcher", align 8
  %5 = alloca %"class.testing::internal::WithoutMatchers", align 1
  %6 = alloca %"class.testing::Action.46", align 8
  %7 = alloca %"class.testing::PolymorphicAction.50", align 8
  call void @llvm.lifetime.start.p0(i64 656, ptr nonnull %2) #6
  call void @_ZN4MockC2Ev(ptr noundef nonnull align 8 dereferenceable(656) %2)
  %8 = tail call ptr @__errno_location() #7
  %9 = load i32, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #6
  invoke void @_ZN7testing7MatcherIPcEC2IRKNS_8internal15AnythingMatcherEvEEOT_(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 1 dereferenceable(1) @_ZN7testingL1_E)
          to label %10 unwind label %23

10:                                               ; preds = %1
  invoke void @_ZN4Mock19gmock_IntFromStringERKN7testing7MatcherIPcEE(ptr dead_on_unwind nonnull writable sret(%"class.testing::internal::MockSpec.44") align 8 %3, ptr noundef nonnull align 8 dereferenceable(656) %2, ptr noundef nonnull align 8 dereferenceable(24) %4)
          to label %11 unwind label %25

11:                                               ; preds = %10
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %5) #6
  invoke void @_ZN7testing8internal18GetWithoutMatchersEv()
          to label %12 unwind label %27

12:                                               ; preds = %11
  %13 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZN7testing8internal8MockSpecIFiPcEEclERKNS0_15WithoutMatchersEPv(ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef nonnull align 1 dereferenceable(1) %5, ptr noundef null)
  %14 = invoke noundef nonnull align 8 dereferenceable(320) ptr @_ZN7testing8internal8MockSpecIFiPcEE18InternalExpectedAtEPKciS6_S6_(ptr noundef nonnull align 8 dereferenceable(32) %13, ptr noundef nonnull @.str.3, i32 noundef 316, ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.22)
          to label %15 unwind label %27

15:                                               ; preds = %12
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #6
  %16 = invoke i64 @_ZN7testing17SetErrnoAndReturnIiEENS_17PolymorphicActionINS_8internal23SetErrnoAndReturnActionIT_EEEEiS4_(i32 noundef 1, i32 noundef -1)
          to label %17 unwind label %29

17:                                               ; preds = %15
  store i64 %16, ptr %7, align 8
  invoke void @_ZNK7testing17PolymorphicActionINS_8internal23SetErrnoAndReturnActionIiEEEcvNS_6ActionIT_EEIFiPcEEEv(ptr dead_on_unwind nonnull writable sret(%"class.testing::Action.46") align 8 %6, ptr noundef nonnull align 4 dereferenceable(8) %7)
          to label %18 unwind label %29

18:                                               ; preds = %17
  %19 = invoke noundef nonnull align 8 dereferenceable(320) ptr @_ZN7testing8internal16TypedExpectationIFiPcEE8WillOnceERKNS_6ActionIS3_EE(ptr noundef nonnull align 8 dereferenceable(320) %14, ptr noundef nonnull align 8 dereferenceable(32) %6)
          to label %20 unwind label %31

20:                                               ; preds = %18
  call void @_ZN7testing6ActionIFiPcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #6
  call void @_ZN7testing8internal8MockSpecIFiPcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #6
  call void @_ZN7testing8internal11MatcherBaseIPcED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #6
  %21 = invoke noundef i32 @_ZN4Mock13IntFromStringEPc(ptr noundef nonnull align 8 dereferenceable(656) %2, ptr noundef null)
          to label %22 unwind label %37

22:                                               ; preds = %20
  store i32 %9, ptr %8, align 4, !tbaa !5
  call void @_ZN4MockD2Ev(ptr noundef nonnull align 8 dereferenceable(656) %2) #6
  call void @llvm.lifetime.end.p0(i64 656, ptr nonnull %2) #6
  ret void

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

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

27:                                               ; preds = %12, %11
  %28 = landingpad { ptr, i32 }
          cleanup
  br label %34

29:                                               ; preds = %17, %15
  %30 = landingpad { ptr, i32 }
          cleanup
  br label %33

31:                                               ; preds = %18
  %32 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7testing6ActionIFiPcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #6
  br label %33

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

34:                                               ; preds = %33, %27
  %.pn.pn = phi { ptr, i32 } [ %.pn, %33 ], [ %28, %27 ]
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #6
  call void @_ZN7testing8internal8MockSpecIFiPcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #6
  br label %35

35:                                               ; preds = %34, %25
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %34 ], [ %26, %25 ]
  call void @_ZN7testing8internal11MatcherBaseIPcED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
  br label %36

36:                                               ; preds = %35, %23
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %35 ], [ %24, %23 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #6
  br label %39

37:                                               ; preds = %20
  %38 = landingpad { ptr, i32 }
          cleanup
  br label %39

39:                                               ; preds = %37, %36
  %.pn12 = phi { ptr, i32 } [ %38, %37 ], [ %.pn.pn.pn.pn, %36 ]
  call void @_ZN4MockD2Ev(ptr noundef nonnull align 8 dereferenceable(656) %2) #6
  call void @llvm.lifetime.end.p0(i64 656, ptr nonnull %2) #6
  resume { ptr, i32 } %.pn12
}

; Function Attrs: mustprogress nofree nosync nounwind willreturn memory(none)
declare ptr @__errno_location() local_unnamed_addr #5

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(320) ptr @_ZN7testing8internal8MockSpecIFiPcEE18InternalExpectedAtEPKciS6_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(320) ptr @_ZN7testing8internal16TypedExpectationIFiPcEE8WillOnceERKNS_6ActionIS3_EE(ptr noundef nonnull align 8 dereferenceable(320), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local i64 @_ZN7testing17SetErrnoAndReturnIiEENS_17PolymorphicActionINS_8internal23SetErrnoAndReturnActionIT_EEEEiS4_(i32 noundef, i32 noundef) local_unnamed_addr #1

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN4Mock13IntFromStringEPc(ptr noundef nonnull align 8 dereferenceable(656), ptr noundef) unnamed_addr #1 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 = { "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 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 = { mustprogress nofree nosync nounwind willreturn memory(none) "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 }
attributes #7 = { nounwind willreturn memory(none) }

!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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}


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