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

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.testing::gmock_matchers_test::Uncopyable" = type { i32 }
%"class.testing::AssertionResult" = type { i8, %"class.testing::internal::scoped_ptr" }
%"class.testing::internal::scoped_ptr" = type { ptr }
%"class.testing::internal::PredicateFormatterFromMatcher.1365" = type { %"class.testing::internal::UnorderedElementsAreMatcher" }
%"class.testing::internal::UnorderedElementsAreMatcher" = type { %"class.std::tuple.1366" }
%"class.std::tuple.1366" = type { %"struct.std::_Tuple_impl.1367" }
%"struct.std::_Tuple_impl.1367" = type { %"struct.std::_Tuple_impl.1368", %"struct.std::_Head_base.1370" }
%"struct.std::_Tuple_impl.1368" = type { %"struct.std::_Head_base.1369" }
%"struct.std::_Head_base.1369" = type { %"class.testing::gmock_matchers_test::UncopyableIsMatcherP" }
%"class.testing::gmock_matchers_test::UncopyableIsMatcherP" = type { i32 }
%"struct.std::_Head_base.1370" = type { %"class.testing::PolymorphicMatcher.872" }
%"class.testing::PolymorphicMatcher.872" = type { %"class.testing::internal::TrulyMatcher.873" }
%"class.testing::internal::TrulyMatcher.873" = type { ptr }
%"class.testing::Message" = type { %"class.testing::internal::scoped_ptr.0" }
%"class.testing::internal::scoped_ptr.0" = type { ptr }
%"class.testing::internal::AssertHelper" = type { ptr }

@.str.5 = external hidden unnamed_addr constant [123 x i8], align 1
@.str.1369 = external hidden unnamed_addr constant [5 x i8], align 1

declare i32 @__gxx_personality_v0(...)

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZNK7testing15AssertionResult15failure_messageEv(ptr noundef nonnull align 8 dereferenceable(16)) #3 align 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 #4

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN7testing19gmock_matchers_test15ValueIsPositiveERKNS0_10UncopyableE(ptr noundef nonnull align 4 dereferenceable(4)) #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local ptr @_ZN7testing5TrulyIPFbRKNS_19gmock_matchers_test10UncopyableEEEENS_18PolymorphicMatcherINS_8internal12TrulyMatcherIT_EEEESA_(ptr noundef) #6

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7testing19gmock_matchers_test10Uncopyable9set_valueEi(ptr noundef nonnull align 4 dereferenceable(4), i32 noundef) #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local i32 @_ZN7testing19gmock_matchers_test12UncopyableIsIiEENS0_20UncopyableIsMatcherPIT_EES3_(i32 noundef) #6

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7testing19gmock_matchers_test49UnorderedElementsAreTest_WorksWithUncopyable_Test8TestBodyEv(ptr noundef nonnull align 8 dereferenceable(16) %0) unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca [2 x %"class.testing::gmock_matchers_test::Uncopyable"], align 4
  %4 = alloca %"class.testing::AssertionResult", align 8
  %5 = alloca %"class.testing::internal::PredicateFormatterFromMatcher.1365", align 8
  %6 = alloca %"class.testing::internal::UnorderedElementsAreMatcher", align 8
  %7 = alloca %"class.testing::PolymorphicMatcher.872", align 8
  %8 = alloca %"class.testing::gmock_matchers_test::UncopyableIsMatcherP", align 4
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca %"class.testing::Message", align 8
  %12 = alloca %"class.testing::internal::AssertHelper", align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %13 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #7
  %14 = getelementptr inbounds [2 x %"class.testing::gmock_matchers_test::Uncopyable"], ptr %3, i32 0, i32 0
  %15 = getelementptr inbounds %"class.testing::gmock_matchers_test::Uncopyable", ptr %14, i64 2
  br label %16

16:                                               ; preds = %16, %1
  %17 = phi ptr [ %14, %1 ], [ %18, %16 ]
  call void @_ZN7testing19gmock_matchers_test10UncopyableC2Ev(ptr noundef nonnull align 4 dereferenceable(4) %17)
  %18 = getelementptr inbounds %"class.testing::gmock_matchers_test::Uncopyable", ptr %17, i64 1
  %19 = icmp eq ptr %18, %15
  br i1 %19, label %20, label %16

20:                                               ; preds = %16
  %21 = getelementptr inbounds [2 x %"class.testing::gmock_matchers_test::Uncopyable"], ptr %3, i64 0, i64 0
  call void @_ZN7testing19gmock_matchers_test10Uncopyable9set_valueEi(ptr noundef nonnull align 4 dereferenceable(4) %21, i32 noundef -3)
  %22 = getelementptr inbounds [2 x %"class.testing::gmock_matchers_test::Uncopyable"], ptr %3, i64 0, i64 1
  call void @_ZN7testing19gmock_matchers_test10Uncopyable9set_valueEi(ptr noundef nonnull align 4 dereferenceable(4) %22, i32 noundef 1)
  call void @llvm.lifetime.start.p0(i64 16, ptr %4) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %5) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #7
  %23 = call ptr @_ZN7testing5TrulyIPFbRKNS_19gmock_matchers_test10UncopyableEEEENS_18PolymorphicMatcherINS_8internal12TrulyMatcherIT_EEEESA_(ptr noundef @_ZN7testing19gmock_matchers_test15ValueIsPositiveERKNS0_10UncopyableE)
  %24 = getelementptr inbounds %"class.testing::PolymorphicMatcher.872", ptr %7, i32 0, i32 0
  %25 = getelementptr inbounds %"class.testing::internal::TrulyMatcher.873", ptr %24, i32 0, i32 0
  store ptr %23, ptr %25, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  %26 = call i32 @_ZN7testing19gmock_matchers_test12UncopyableIsIiEENS0_20UncopyableIsMatcherPIT_EES3_(i32 noundef -3)
  %27 = getelementptr inbounds %"class.testing::gmock_matchers_test::UncopyableIsMatcherP", ptr %8, i32 0, i32 0
  store i32 %26, ptr %27, align 4
  call void @_ZN7testing20UnorderedElementsAreINS_18PolymorphicMatcherINS_8internal12TrulyMatcherIPFbRKNS_19gmock_matchers_test10UncopyableEEEEEENS4_20UncopyableIsMatcherPIiEEEENS2_27UnorderedElementsAreMatcherISt5tupleIJNS2_10DecayArrayIT_E4typeENSG_IT0_E4typeEEEEERKSH_RKSK_(ptr dead_on_unwind writable sret(%"class.testing::internal::UnorderedElementsAreMatcher") align 8 %6, ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 4 dereferenceable(4) %8)
  call void @_ZN7testing8internal33MakePredicateFormatterFromMatcherINS0_27UnorderedElementsAreMatcherISt5tupleIJNS_18PolymorphicMatcherINS0_12TrulyMatcherIPFbRKNS_19gmock_matchers_test10UncopyableEEEEEENS6_20UncopyableIsMatcherPIiEEEEEEEENS0_29PredicateFormatterFromMatcherIT_EESJ_(ptr dead_on_unwind writable sret(%"class.testing::internal::PredicateFormatterFromMatcher.1365") align 8 %5, ptr noundef byval(%"class.testing::internal::UnorderedElementsAreMatcher") align 8 %6)
  call void @_ZNK7testing8internal29PredicateFormatterFromMatcherINS0_27UnorderedElementsAreMatcherISt5tupleIJNS_18PolymorphicMatcherINS0_12TrulyMatcherIPFbRKNS_19gmock_matchers_test10UncopyableEEEEEENS6_20UncopyableIsMatcherPIiEEEEEEEclIA2_S7_EENS_15AssertionResultEPKcRKT_(ptr dead_on_unwind writable sret(%"class.testing::AssertionResult") align 8 %4, ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef @.str.1369, ptr noundef nonnull align 4 dereferenceable(8) %3)
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %5) #7
  %28 = invoke noundef zeroext i1 @_ZNK7testing15AssertionResultcvbEv(ptr noundef nonnull align 8 dereferenceable(16) %4)
          to label %29 unwind label %31

29:                                               ; preds = %20
  br i1 %28, label %30, label %35

30:                                               ; preds = %29
  br label %55

31:                                               ; preds = %20
  %32 = landingpad { ptr, i32 }
          cleanup
  %33 = extractvalue { ptr, i32 } %32, 0
  store ptr %33, ptr %9, align 8
  %34 = extractvalue { ptr, i32 } %32, 1
  store i32 %34, ptr %10, align 4
  br label %56

35:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  invoke void @_ZN7testing7MessageC1Ev(ptr noundef nonnull align 8 dereferenceable(8) %11)
          to label %36 unwind label %41

36:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  %37 = invoke noundef ptr @_ZNK7testing15AssertionResult15failure_messageEv(ptr noundef nonnull align 8 dereferenceable(16) %4)
          to label %38 unwind label %45

38:                                               ; preds = %36
  invoke void @_ZN7testing8internal12AssertHelperC1ENS_14TestPartResult4TypeEPKciS5_(ptr noundef nonnull align 8 dereferenceable(8) %12, i32 noundef 1, ptr noundef @.str.5, i32 noundef 4803, ptr noundef %37)
          to label %39 unwind label %45

39:                                               ; preds = %38
  invoke void @_ZNK7testing8internal12AssertHelperaSERKNS_7MessageE(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %11)
          to label %40 unwind label %49

40:                                               ; preds = %39
  call void @_ZN7testing8internal12AssertHelperD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  call void @_ZN7testing7MessageD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %11) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  br label %55

41:                                               ; preds = %35
  %42 = landingpad { ptr, i32 }
          cleanup
  %43 = extractvalue { ptr, i32 } %42, 0
  store ptr %43, ptr %9, align 8
  %44 = extractvalue { ptr, i32 } %42, 1
  store i32 %44, ptr %10, align 4
  br label %54

45:                                               ; preds = %38, %36
  %46 = landingpad { ptr, i32 }
          cleanup
  %47 = extractvalue { ptr, i32 } %46, 0
  store ptr %47, ptr %9, align 8
  %48 = extractvalue { ptr, i32 } %46, 1
  store i32 %48, ptr %10, align 4
  br label %53

49:                                               ; preds = %39
  %50 = landingpad { ptr, i32 }
          cleanup
  %51 = extractvalue { ptr, i32 } %50, 0
  store ptr %51, ptr %9, align 8
  %52 = extractvalue { ptr, i32 } %50, 1
  store i32 %52, ptr %10, align 4
  call void @_ZN7testing8internal12AssertHelperD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %12) #7
  br label %53

53:                                               ; preds = %49, %45
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  call void @_ZN7testing7MessageD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %11) #7
  br label %54

54:                                               ; preds = %53, %41
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  br label %56

55:                                               ; preds = %40, %30
  call void @_ZN7testing15AssertionResultD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %4) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %4) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #7
  ret void

56:                                               ; preds = %54, %31
  call void @_ZN7testing15AssertionResultD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %4) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %4) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #7
  br label %57

57:                                               ; preds = %56
  %58 = load ptr, ptr %9, align 8
  %59 = load i32, ptr %10, align 4
  %60 = insertvalue { ptr, i32 } poison, ptr %58, 0
  %61 = insertvalue { ptr, i32 } %60, i32 %59, 1
  resume { ptr, i32 } %61
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN7testing8internal33MakePredicateFormatterFromMatcherINS0_27UnorderedElementsAreMatcherISt5tupleIJNS_18PolymorphicMatcherINS0_12TrulyMatcherIPFbRKNS_19gmock_matchers_test10UncopyableEEEEEENS6_20UncopyableIsMatcherPIiEEEEEEEENS0_29PredicateFormatterFromMatcherIT_EESJ_(ptr dead_on_unwind noalias writable sret(%"class.testing::internal::PredicateFormatterFromMatcher.1365") align 8, ptr noundef byval(%"class.testing::internal::UnorderedElementsAreMatcher") align 8) #6

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN7testing20UnorderedElementsAreINS_18PolymorphicMatcherINS_8internal12TrulyMatcherIPFbRKNS_19gmock_matchers_test10UncopyableEEEEEENS4_20UncopyableIsMatcherPIiEEEENS2_27UnorderedElementsAreMatcherISt5tupleIJNS2_10DecayArrayIT_E4typeENSG_IT0_E4typeEEEEERKSH_RKSK_(ptr dead_on_unwind noalias writable sret(%"class.testing::internal::UnorderedElementsAreMatcher") align 8, ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(4)) #6

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK7testing8internal29PredicateFormatterFromMatcherINS0_27UnorderedElementsAreMatcherISt5tupleIJNS_18PolymorphicMatcherINS0_12TrulyMatcherIPFbRKNS_19gmock_matchers_test10UncopyableEEEEEENS6_20UncopyableIsMatcherPIiEEEEEEEclIA2_S7_EENS_15AssertionResultEPKcRKT_(ptr dead_on_unwind noalias writable sret(%"class.testing::AssertionResult") align 8, ptr noundef nonnull align 8 dereferenceable(16), ptr noundef, ptr noundef nonnull align 4 dereferenceable(8)) #3 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 = { 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 #4 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nounwind }

!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"}


; 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::gmock_matchers_test::Uncopyable" = type { i32 }
%"class.testing::AssertionResult" = type { i8, %"class.testing::internal::scoped_ptr" }
%"class.testing::internal::scoped_ptr" = type { ptr }
%"class.testing::internal::PredicateFormatterFromMatcher.1365" = type { %"class.testing::internal::UnorderedElementsAreMatcher" }
%"class.testing::internal::UnorderedElementsAreMatcher" = type { %"class.std::tuple.1366" }
%"class.std::tuple.1366" = type { %"struct.std::_Tuple_impl.1367" }
%"struct.std::_Tuple_impl.1367" = type { %"struct.std::_Tuple_impl.1368", %"struct.std::_Head_base.1370" }
%"struct.std::_Tuple_impl.1368" = type { %"struct.std::_Head_base.1369" }
%"struct.std::_Head_base.1369" = type { %"class.testing::gmock_matchers_test::UncopyableIsMatcherP" }
%"class.testing::gmock_matchers_test::UncopyableIsMatcherP" = type { i32 }
%"struct.std::_Head_base.1370" = type { %"class.testing::PolymorphicMatcher.872" }
%"class.testing::PolymorphicMatcher.872" = type { %"class.testing::internal::TrulyMatcher.873" }
%"class.testing::internal::TrulyMatcher.873" = type { ptr }
%"class.testing::Message" = type { %"class.testing::internal::scoped_ptr.0" }
%"class.testing::internal::scoped_ptr.0" = type { ptr }
%"class.testing::internal::AssertHelper" = type { ptr }

@.str.5 = external hidden unnamed_addr constant [123 x i8], align 1
@.str.1369 = external hidden unnamed_addr constant [5 x i8], align 1

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN7testing19gmock_matchers_test15ValueIsPositiveERKNS0_10UncopyableE(ptr noundef nonnull align 4 dereferenceable(4)) #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local ptr @_ZN7testing5TrulyIPFbRKNS_19gmock_matchers_test10UncopyableEEEENS_18PolymorphicMatcherINS_8internal12TrulyMatcherIT_EEEESA_(ptr noundef) local_unnamed_addr #6

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7testing19gmock_matchers_test10Uncopyable9set_valueEi(ptr noundef nonnull align 4 dereferenceable(4), i32 noundef) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7testing19gmock_matchers_test49UnorderedElementsAreTest_WorksWithUncopyable_Test8TestBodyEv(ptr nocapture noundef nonnull readnone align 8 dereferenceable(16) %0) unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca [2 x %"class.testing::gmock_matchers_test::Uncopyable"], align 4
  %3 = alloca %"class.testing::AssertionResult", align 8
  %4 = alloca %"class.testing::internal::PredicateFormatterFromMatcher.1365", align 8
  %5 = alloca %"class.testing::internal::UnorderedElementsAreMatcher", align 8
  %6 = alloca %"class.testing::PolymorphicMatcher.872", align 8
  %7 = alloca %"class.testing::gmock_matchers_test::UncopyableIsMatcherP", align 4
  %8 = alloca %"class.testing::Message", align 8
  %9 = alloca %"class.testing::internal::AssertHelper", align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #7
  call void @_ZN7testing19gmock_matchers_test10UncopyableC2Ev(ptr noundef nonnull align 4 dereferenceable(4) %2)
  %.ptr.1 = getelementptr inbounds i8, ptr %2, i64 4
  call void @_ZN7testing19gmock_matchers_test10UncopyableC2Ev(ptr noundef nonnull align 4 dereferenceable(4) %.ptr.1)
  call void @_ZN7testing19gmock_matchers_test10Uncopyable9set_valueEi(ptr noundef nonnull align 4 dereferenceable(4) %2, i32 noundef -3)
  call void @_ZN7testing19gmock_matchers_test10Uncopyable9set_valueEi(ptr noundef nonnull align 4 dereferenceable(4) %.ptr.1, i32 noundef 1)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #7
  %10 = call ptr @_ZN7testing5TrulyIPFbRKNS_19gmock_matchers_test10UncopyableEEEENS_18PolymorphicMatcherINS_8internal12TrulyMatcherIT_EEEESA_(ptr noundef nonnull @_ZN7testing19gmock_matchers_test15ValueIsPositiveERKNS0_10UncopyableE)
  store ptr %10, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #7
  %11 = call i32 @_ZN7testing19gmock_matchers_test12UncopyableIsIiEENS0_20UncopyableIsMatcherPIT_EES3_(i32 noundef -3)
  store i32 %11, ptr %7, align 4
  call void @_ZN7testing20UnorderedElementsAreINS_18PolymorphicMatcherINS_8internal12TrulyMatcherIPFbRKNS_19gmock_matchers_test10UncopyableEEEEEENS4_20UncopyableIsMatcherPIiEEEENS2_27UnorderedElementsAreMatcherISt5tupleIJNS2_10DecayArrayIT_E4typeENSG_IT0_E4typeEEEEERKSH_RKSK_(ptr dead_on_unwind nonnull writable sret(%"class.testing::internal::UnorderedElementsAreMatcher") align 8 %5, ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 4 dereferenceable(4) %7)
  call void @_ZN7testing8internal33MakePredicateFormatterFromMatcherINS0_27UnorderedElementsAreMatcherISt5tupleIJNS_18PolymorphicMatcherINS0_12TrulyMatcherIPFbRKNS_19gmock_matchers_test10UncopyableEEEEEENS6_20UncopyableIsMatcherPIiEEEEEEEENS0_29PredicateFormatterFromMatcherIT_EESJ_(ptr dead_on_unwind nonnull writable sret(%"class.testing::internal::PredicateFormatterFromMatcher.1365") align 8 %4, ptr noundef nonnull byval(%"class.testing::internal::UnorderedElementsAreMatcher") align 8 %5)
  call void @_ZNK7testing8internal29PredicateFormatterFromMatcherINS0_27UnorderedElementsAreMatcherISt5tupleIJNS_18PolymorphicMatcherINS0_12TrulyMatcherIPFbRKNS_19gmock_matchers_test10UncopyableEEEEEENS6_20UncopyableIsMatcherPIiEEEEEEEclIA2_S7_EENS_15AssertionResultEPKcRKT_(ptr dead_on_unwind nonnull writable sret(%"class.testing::AssertionResult") align 8 %3, ptr noundef nonnull align 8 dereferenceable(16) %4, ptr noundef nonnull @.str.1369, ptr noundef nonnull align 4 dereferenceable(8) %2)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #7
  %12 = call noundef zeroext i1 @_ZNK7testing15AssertionResultcvbEv(ptr noundef nonnull align 8 dereferenceable(16) %3)
  br i1 %12, label %27, label %13

13:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #7
  invoke void @_ZN7testing7MessageC1Ev(ptr noundef nonnull align 8 dereferenceable(8) %8)
          to label %14 unwind label %19

14:                                               ; preds = %13
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #7
  %15 = invoke noundef ptr @_ZNK7testing15AssertionResult15failure_messageEv(ptr noundef nonnull align 8 dereferenceable(16) %3)
          to label %16 unwind label %21

16:                                               ; preds = %14
  invoke void @_ZN7testing8internal12AssertHelperC1ENS_14TestPartResult4TypeEPKciS5_(ptr noundef nonnull align 8 dereferenceable(8) %9, i32 noundef 1, ptr noundef nonnull @.str.5, i32 noundef 4803, ptr noundef %15)
          to label %17 unwind label %21

17:                                               ; preds = %16
  invoke void @_ZNK7testing8internal12AssertHelperaSERKNS_7MessageE(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %8)
          to label %18 unwind label %23

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

19:                                               ; preds = %13
  %20 = landingpad { ptr, i32 }
          cleanup
  br label %26

21:                                               ; preds = %16, %14
  %22 = landingpad { ptr, i32 }
          cleanup
  br label %25

23:                                               ; preds = %17
  %24 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7testing8internal12AssertHelperD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #7
  br label %25

25:                                               ; preds = %23, %21
  %.pn = phi { ptr, i32 } [ %24, %23 ], [ %22, %21 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #7
  call void @_ZN7testing7MessageD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #7
  br label %26

26:                                               ; preds = %25, %19
  %.pn.pn = phi { ptr, i32 } [ %.pn, %25 ], [ %20, %19 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #7
  call void @_ZN7testing15AssertionResultD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %3) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #7
  resume { ptr, i32 } %.pn.pn

27:                                               ; preds = %1, %18
  call void @_ZN7testing15AssertionResultD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %3) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #7
  ret void
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN7testing8internal33MakePredicateFormatterFromMatcherINS0_27UnorderedElementsAreMatcherISt5tupleIJNS_18PolymorphicMatcherINS0_12TrulyMatcherIPFbRKNS_19gmock_matchers_test10UncopyableEEEEEENS6_20UncopyableIsMatcherPIiEEEEEEEENS0_29PredicateFormatterFromMatcherIT_EESJ_(ptr dead_on_unwind noalias writable sret(%"class.testing::internal::PredicateFormatterFromMatcher.1365") align 8, ptr noundef byval(%"class.testing::internal::UnorderedElementsAreMatcher") align 8) local_unnamed_addr #6

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN7testing20UnorderedElementsAreINS_18PolymorphicMatcherINS_8internal12TrulyMatcherIPFbRKNS_19gmock_matchers_test10UncopyableEEEEEENS4_20UncopyableIsMatcherPIiEEEENS2_27UnorderedElementsAreMatcherISt5tupleIJNS2_10DecayArrayIT_E4typeENSG_IT0_E4typeEEEEERKSH_RKSK_(ptr dead_on_unwind noalias writable sret(%"class.testing::internal::UnorderedElementsAreMatcher") align 8, ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #6

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK7testing8internal29PredicateFormatterFromMatcherINS0_27UnorderedElementsAreMatcherISt5tupleIJNS_18PolymorphicMatcherINS0_12TrulyMatcherIPFbRKNS_19gmock_matchers_test10UncopyableEEEEEENS6_20UncopyableIsMatcherPIiEEEEEEEclIA2_S7_EENS_15AssertionResultEPKcRKT_(ptr dead_on_unwind noalias writable sret(%"class.testing::AssertionResult") align 8, ptr noundef nonnull align 8 dereferenceable(16), ptr noundef, ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #3 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 = { 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 #4 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nounwind }

!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)"}


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