; 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.std::vector.1414" = type { %"struct.std::_Vector_base.1415" }
%"struct.std::_Vector_base.1415" = type { %"struct.std::_Vector_base<std::pair<unsigned long, unsigned long>, std::allocator<std::pair<unsigned long, unsigned long>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<unsigned long, unsigned long>, std::allocator<std::pair<unsigned long, unsigned long>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<unsigned long, unsigned long>, std::allocator<std::pair<unsigned long, unsigned long>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<unsigned long, unsigned long>, std::allocator<std::pair<unsigned long, unsigned long>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.testing::internal::MatchMatrix" = type { i64, i64, %"class.std::vector.1412" }
%"class.std::vector.1412" = type { %"struct.std::_Vector_base.1413" }
%"struct.std::_Vector_base.1413" = type { %"struct.std::_Vector_base<char, std::allocator<char>>::_Vector_impl" }
%"struct.std::_Vector_base<char, std::allocator<char>>::_Vector_impl" = type { %"struct.std::_Vector_base<char, std::allocator<char>>::_Vector_impl_data" }
%"struct.std::_Vector_base<char, std::allocator<char>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.testing::AssertionResult" = type { i8, %"class.testing::internal::scoped_ptr" }
%"class.testing::internal::scoped_ptr" = type { ptr }
%"class.testing::internal::PredicateFormatterFromMatcher.1438" = type { %"class.testing::internal::ElementsAreMatcher.1439" }
%"class.testing::internal::ElementsAreMatcher.1439" = type { %"class.std::tuple.1440" }
%"class.std::tuple.1440" = type { %"struct.std::_Tuple_impl.1441" }
%"struct.std::_Tuple_impl.1441" = type { %"struct.std::_Tuple_impl.1442", %"struct.std::_Head_base.1252" }
%"struct.std::_Tuple_impl.1442" = type { %"struct.std::_Tuple_impl.1443", %"struct.std::_Head_base.1444" }
%"struct.std::_Tuple_impl.1443" = type { %"struct.std::_Head_base.1250" }
%"struct.std::_Head_base.1250" = type { %"class.testing::internal::PairMatcher.1247" }
%"class.testing::internal::PairMatcher.1247" = type { i32, i32 }
%"struct.std::_Head_base.1444" = type { %"class.testing::internal::PairMatcher.1445" }
%"class.testing::internal::PairMatcher.1445" = type { %"class.testing::internal::EitherOfMatcher.559", i32 }
%"class.testing::internal::EitherOfMatcher.559" = type { i32, i32 }
%"struct.std::_Head_base.1252" = type { %"class.testing::internal::PairMatcher.1247" }
%"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
@_ZZN7testing19gmock_matchers_test46BipartiteNonSquareTest_SimpleBacktracking_Test8TestBodyEvE6kEdges = external hidden constant [4 x [2 x i32]], align 16
@.str.1458 = external hidden unnamed_addr constant [26 x i8], align 1

declare i32 @__gxx_personality_v0(...)

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare 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: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #6

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN7testing7MessagelsINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEERS0_RKT_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(32)) #7 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local i64 @_ZN7testing5AnyOfIiiEENS_8internal12AnyOfResult2IT_T0_E4typeES3_S4_(i32 noundef, i32 noundef) #7

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local i64 @_ZN7testing4PairIiiEENS_8internal11PairMatcherIT_T0_EES3_S4_(i32 noundef, i32 noundef) #7

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7testing19gmock_matchers_test22FindBacktrackingMaxBPMINS_8internal11MatchMatrixEEESt6vectorISt4pairImmESaIS6_EERKT_(ptr dead_on_unwind noalias writable sret(%"class.std::vector.1414") align 8, ptr noundef nonnull align 8 dereferenceable(40)) #3

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

declare void @_ZNK7testing8internal11MatchMatrix11DebugStringB5cxx11Ev(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(40)) #2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7testing19gmock_matchers_test46BipartiteNonSquareTest_SimpleBacktracking_Test8TestBodyEv(ptr noundef nonnull align 8 dereferenceable(24) %0) unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca %"class.testing::internal::MatchMatrix", align 8
  %4 = alloca i64, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca %"class.testing::AssertionResult", align 8
  %8 = alloca %"class.testing::internal::PredicateFormatterFromMatcher.1438", align 4
  %9 = alloca %"class.testing::internal::ElementsAreMatcher.1439", align 8
  %10 = alloca %"class.testing::internal::PairMatcher.1247", align 4
  %11 = alloca %"class.testing::internal::PairMatcher.1445", align 4
  %12 = alloca %"class.testing::internal::EitherOfMatcher.559", align 4
  %13 = alloca { i64, i32 }, align 8
  %14 = alloca %"class.testing::internal::PairMatcher.1247", align 4
  %15 = alloca %"class.std::vector.1414", align 8
  %16 = alloca %"class.testing::Message", align 8
  %17 = alloca %"class.std::__cxx11::basic_string", align 8
  %18 = alloca %"class.testing::internal::AssertHelper", align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %19 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 40, ptr %3) #8
  call void @_ZN7testing8internal11MatchMatrixC2Emm(ptr noundef nonnull align 8 dereferenceable(40) %3, i64 noundef 4, i64 noundef 3)
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #8
  store i64 0, ptr %4, align 8, !tbaa !9
  br label %20

20:                                               ; preds = %36, %1
  %21 = load i64, ptr %4, align 8, !tbaa !9
  %22 = icmp ult i64 %21, 4
  br i1 %22, label %24, label %23

23:                                               ; preds = %20
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #8
  br label %43

24:                                               ; preds = %20
  %25 = load i64, ptr %4, align 8, !tbaa !9
  %26 = getelementptr inbounds [4 x [2 x i32]], ptr @_ZZN7testing19gmock_matchers_test46BipartiteNonSquareTest_SimpleBacktracking_Test8TestBodyEvE6kEdges, i64 0, i64 %25
  %27 = getelementptr inbounds [2 x i32], ptr %26, i64 0, i64 0
  %28 = load i32, ptr %27, align 8, !tbaa !11
  %29 = sext i32 %28 to i64
  %30 = load i64, ptr %4, align 8, !tbaa !9
  %31 = getelementptr inbounds [4 x [2 x i32]], ptr @_ZZN7testing19gmock_matchers_test46BipartiteNonSquareTest_SimpleBacktracking_Test8TestBodyEvE6kEdges, i64 0, i64 %30
  %32 = getelementptr inbounds [2 x i32], ptr %31, i64 0, i64 1
  %33 = load i32, ptr %32, align 4, !tbaa !11
  %34 = sext i32 %33 to i64
  invoke void @_ZN7testing8internal11MatchMatrix7SetEdgeEmmb(ptr noundef nonnull align 8 dereferenceable(40) %3, i64 noundef %29, i64 noundef %34, i1 noundef zeroext true)
          to label %35 unwind label %39

35:                                               ; preds = %24
  br label %36

36:                                               ; preds = %35
  %37 = load i64, ptr %4, align 8, !tbaa !9
  %38 = add i64 %37, 1
  store i64 %38, ptr %4, align 8, !tbaa !9
  br label %20, !llvm.loop !13

39:                                               ; preds = %24
  %40 = landingpad { ptr, i32 }
          cleanup
  %41 = extractvalue { ptr, i32 } %40, 0
  store ptr %41, ptr %5, align 8
  %42 = extractvalue { ptr, i32 } %40, 1
  store i32 %42, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #8
  br label %124

43:                                               ; preds = %23
  call void @llvm.lifetime.start.p0(i64 16, ptr %7) #8
  call void @llvm.lifetime.start.p0(i64 28, ptr %8) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #8
  %44 = invoke i64 @_ZN7testing4PairIiiEENS_8internal11PairMatcherIT_T0_EES3_S4_(i32 noundef 3, i32 noundef 0)
          to label %45 unwind label %60

45:                                               ; preds = %43
  store i64 %44, ptr %10, align 4
  call void @llvm.lifetime.start.p0(i64 12, ptr %11) #8
  %46 = invoke i64 @_ZN7testing5AnyOfIiiEENS_8internal12AnyOfResult2IT_T0_E4typeES3_S4_(i32 noundef 1, i32 noundef 2)
          to label %47 unwind label %64

47:                                               ; preds = %45
  store i64 %46, ptr %12, align 4
  %48 = load i64, ptr %12, align 4
  %49 = invoke { i64, i32 } @_ZN7testing4PairINS_8internal15EitherOfMatcherIiiEEiEENS1_11PairMatcherIT_T0_EES5_S6_(i64 %48, i32 noundef 1)
          to label %50 unwind label %64

50:                                               ; preds = %47
  store { i64, i32 } %49, ptr %13, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %11, ptr align 8 %13, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #8
  %51 = invoke i64 @_ZN7testing4PairIiiEENS_8internal11PairMatcherIT_T0_EES3_S4_(i32 noundef 0, i32 noundef 2)
          to label %52 unwind label %68

52:                                               ; preds = %50
  store i64 %51, ptr %14, align 4
  invoke void @_ZN7testing11ElementsAreINS_8internal11PairMatcherIiiEENS2_INS1_15EitherOfMatcherIiiEEiEES3_EENS1_18ElementsAreMatcherISt5tupleIJNS1_10DecayArrayIT_E4typeENS9_IT0_E4typeENS9_IT1_E4typeEEEEERKSA_RKSD_RKSG_(ptr dead_on_unwind writable sret(%"class.testing::internal::ElementsAreMatcher.1439") align 4 %9, ptr noundef nonnull align 4 dereferenceable(8) %10, ptr noundef nonnull align 4 dereferenceable(12) %11, ptr noundef nonnull align 4 dereferenceable(8) %14)
          to label %53 unwind label %68

53:                                               ; preds = %52
  invoke void @_ZN7testing8internal33MakePredicateFormatterFromMatcherINS0_18ElementsAreMatcherISt5tupleIJNS0_11PairMatcherIiiEENS4_INS0_15EitherOfMatcherIiiEEiEES5_EEEEEENS0_29PredicateFormatterFromMatcherIT_EESC_(ptr dead_on_unwind writable sret(%"class.testing::internal::PredicateFormatterFromMatcher.1438") align 4 %8, ptr noundef byval(%"class.testing::internal::ElementsAreMatcher.1439") align 8 %9)
          to label %54 unwind label %68

54:                                               ; preds = %53
  call void @llvm.lifetime.start.p0(i64 24, ptr %15) #8
  invoke void @_ZN7testing19gmock_matchers_test22FindBacktrackingMaxBPMINS_8internal11MatchMatrixEEESt6vectorISt4pairImmESaIS6_EERKT_(ptr dead_on_unwind writable sret(%"class.std::vector.1414") align 8 %15, ptr noundef nonnull align 8 dereferenceable(40) %3)
          to label %55 unwind label %72

55:                                               ; preds = %54
  invoke void @_ZNK7testing8internal29PredicateFormatterFromMatcherINS0_18ElementsAreMatcherISt5tupleIJNS0_11PairMatcherIiiEENS4_INS0_15EitherOfMatcherIiiEEiEES5_EEEEEclISt6vectorISt4pairImmESaISF_EEEENS_15AssertionResultEPKcRKT_(ptr dead_on_unwind writable sret(%"class.testing::AssertionResult") align 8 %7, ptr noundef nonnull align 4 dereferenceable(28) %8, ptr noundef @.str.1458, ptr noundef nonnull align 8 dereferenceable(24) %15)
          to label %56 unwind label %76

56:                                               ; preds = %55
  call void @_ZNSt6vectorISt4pairImmESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 28, ptr %8) #8
  %57 = invoke noundef zeroext i1 @_ZNK7testing15AssertionResultcvbEv(ptr noundef nonnull align 8 dereferenceable(16) %7)
          to label %58 unwind label %84

58:                                               ; preds = %56
  br i1 %57, label %59, label %88

59:                                               ; preds = %58
  br label %121

60:                                               ; preds = %43
  %61 = landingpad { ptr, i32 }
          cleanup
  %62 = extractvalue { ptr, i32 } %61, 0
  store ptr %62, ptr %5, align 8
  %63 = extractvalue { ptr, i32 } %61, 1
  store i32 %63, ptr %6, align 4
  br label %83

64:                                               ; preds = %47, %45
  %65 = landingpad { ptr, i32 }
          cleanup
  %66 = extractvalue { ptr, i32 } %65, 0
  store ptr %66, ptr %5, align 8
  %67 = extractvalue { ptr, i32 } %65, 1
  store i32 %67, ptr %6, align 4
  br label %82

68:                                               ; preds = %53, %52, %50
  %69 = landingpad { ptr, i32 }
          cleanup
  %70 = extractvalue { ptr, i32 } %69, 0
  store ptr %70, ptr %5, align 8
  %71 = extractvalue { ptr, i32 } %69, 1
  store i32 %71, ptr %6, align 4
  br label %81

72:                                               ; preds = %54
  %73 = landingpad { ptr, i32 }
          cleanup
  %74 = extractvalue { ptr, i32 } %73, 0
  store ptr %74, ptr %5, align 8
  %75 = extractvalue { ptr, i32 } %73, 1
  store i32 %75, ptr %6, align 4
  br label %80

76:                                               ; preds = %55
  %77 = landingpad { ptr, i32 }
          cleanup
  %78 = extractvalue { ptr, i32 } %77, 0
  store ptr %78, ptr %5, align 8
  %79 = extractvalue { ptr, i32 } %77, 1
  store i32 %79, ptr %6, align 4
  call void @_ZNSt6vectorISt4pairImmESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #8
  br label %80

80:                                               ; preds = %76, %72
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #8
  br label %81

81:                                               ; preds = %80, %68
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  br label %82

82:                                               ; preds = %81, %64
  call void @llvm.lifetime.end.p0(i64 12, ptr %11) #8
  br label %83

83:                                               ; preds = %82, %60
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 28, ptr %8) #8
  br label %123

84:                                               ; preds = %56
  %85 = landingpad { ptr, i32 }
          cleanup
  %86 = extractvalue { ptr, i32 } %85, 0
  store ptr %86, ptr %5, align 8
  %87 = extractvalue { ptr, i32 } %85, 1
  store i32 %87, ptr %6, align 4
  br label %122

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

89:                                               ; preds = %88
  call void @llvm.lifetime.start.p0(i64 32, ptr %17) #8
  invoke void @_ZNK7testing8internal11MatchMatrix11DebugStringB5cxx11Ev(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %17, ptr noundef nonnull align 8 dereferenceable(40) %3)
          to label %90 unwind label %101

90:                                               ; preds = %89
  %91 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7testing7MessagelsINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEERS0_RKT_(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(32) %17)
          to label %92 unwind label %105

92:                                               ; preds = %90
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #8
  %93 = invoke noundef ptr @_ZNK7testing15AssertionResult15failure_messageEv(ptr noundef nonnull align 8 dereferenceable(16) %7)
          to label %94 unwind label %109

94:                                               ; preds = %92
  invoke void @_ZN7testing8internal12AssertHelperC1ENS_14TestPartResult4TypeEPKciS5_(ptr noundef nonnull align 8 dereferenceable(8) %18, i32 noundef 1, ptr noundef @.str.5, i32 noundef 5151, ptr noundef %93)
          to label %95 unwind label %109

95:                                               ; preds = %94
  invoke void @_ZNK7testing8internal12AssertHelperaSERKNS_7MessageE(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull align 8 dereferenceable(8) %91)
          to label %96 unwind label %113

96:                                               ; preds = %95
  call void @_ZN7testing8internal12AssertHelperD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %18) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %17) #8
  call void @_ZN7testing7MessageD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %16) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  br label %121

97:                                               ; preds = %88
  %98 = landingpad { ptr, i32 }
          cleanup
  %99 = extractvalue { ptr, i32 } %98, 0
  store ptr %99, ptr %5, align 8
  %100 = extractvalue { ptr, i32 } %98, 1
  store i32 %100, ptr %6, align 4
  br label %120

101:                                              ; preds = %89
  %102 = landingpad { ptr, i32 }
          cleanup
  %103 = extractvalue { ptr, i32 } %102, 0
  store ptr %103, ptr %5, align 8
  %104 = extractvalue { ptr, i32 } %102, 1
  store i32 %104, ptr %6, align 4
  br label %119

105:                                              ; preds = %90
  %106 = landingpad { ptr, i32 }
          cleanup
  %107 = extractvalue { ptr, i32 } %106, 0
  store ptr %107, ptr %5, align 8
  %108 = extractvalue { ptr, i32 } %106, 1
  store i32 %108, ptr %6, align 4
  br label %118

109:                                              ; preds = %94, %92
  %110 = landingpad { ptr, i32 }
          cleanup
  %111 = extractvalue { ptr, i32 } %110, 0
  store ptr %111, ptr %5, align 8
  %112 = extractvalue { ptr, i32 } %110, 1
  store i32 %112, ptr %6, align 4
  br label %117

113:                                              ; preds = %95
  %114 = landingpad { ptr, i32 }
          cleanup
  %115 = extractvalue { ptr, i32 } %114, 0
  store ptr %115, ptr %5, align 8
  %116 = extractvalue { ptr, i32 } %114, 1
  store i32 %116, ptr %6, align 4
  call void @_ZN7testing8internal12AssertHelperD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %18) #8
  br label %117

117:                                              ; preds = %113, %109
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  br label %118

118:                                              ; preds = %117, %105
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #8
  br label %119

119:                                              ; preds = %118, %101
  call void @llvm.lifetime.end.p0(i64 32, ptr %17) #8
  call void @_ZN7testing7MessageD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %16) #8
  br label %120

120:                                              ; preds = %119, %97
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  br label %122

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

122:                                              ; preds = %120, %84
  call void @_ZN7testing15AssertionResultD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %7) #8
  br label %123

123:                                              ; preds = %122, %83
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #8
  br label %124

124:                                              ; preds = %123, %39
  call void @_ZN7testing8internal11MatchMatrixD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %3) #8
  call void @llvm.lifetime.end.p0(i64 40, ptr %3) #8
  br label %125

125:                                              ; preds = %124
  %126 = load ptr, ptr %5, align 8
  %127 = load i32, ptr %6, align 4
  %128 = insertvalue { ptr, i32 } poison, ptr %126, 0
  %129 = insertvalue { ptr, i32 } %128, i32 %127, 1
  resume { ptr, i32 } %129
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7testing8internal11MatchMatrix7SetEdgeEmmb(ptr noundef nonnull align 8 dereferenceable(40), i64 noundef, i64 noundef, i1 noundef zeroext) #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN7testing8internal33MakePredicateFormatterFromMatcherINS0_18ElementsAreMatcherISt5tupleIJNS0_11PairMatcherIiiEENS4_INS0_15EitherOfMatcherIiiEEiEES5_EEEEEENS0_29PredicateFormatterFromMatcherIT_EESC_(ptr dead_on_unwind noalias writable sret(%"class.testing::internal::PredicateFormatterFromMatcher.1438") align 4, ptr noundef byval(%"class.testing::internal::ElementsAreMatcher.1439") align 8) #7

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { i64, i32 } @_ZN7testing4PairINS_8internal15EitherOfMatcherIiiEEiEENS1_11PairMatcherIT_T0_EES5_S6_(i64, i32 noundef) #7

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK7testing8internal29PredicateFormatterFromMatcherINS0_18ElementsAreMatcherISt5tupleIJNS0_11PairMatcherIiiEENS4_INS0_15EitherOfMatcherIiiEEiEES5_EEEEEclISt6vectorISt4pairImmESaISF_EEEENS_15AssertionResultEPKcRKT_(ptr dead_on_unwind noalias writable sret(%"class.testing::AssertionResult") align 8, ptr noundef nonnull align 4 dereferenceable(28), ptr noundef, ptr noundef nonnull align 8 dereferenceable(24)) #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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #7 = { 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 #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 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}


; 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.std::vector.1414" = type { %"struct.std::_Vector_base.1415" }
%"struct.std::_Vector_base.1415" = type { %"struct.std::_Vector_base<std::pair<unsigned long, unsigned long>, std::allocator<std::pair<unsigned long, unsigned long>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<unsigned long, unsigned long>, std::allocator<std::pair<unsigned long, unsigned long>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<unsigned long, unsigned long>, std::allocator<std::pair<unsigned long, unsigned long>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<unsigned long, unsigned long>, std::allocator<std::pair<unsigned long, unsigned long>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.testing::internal::MatchMatrix" = type { i64, i64, %"class.std::vector.1412" }
%"class.std::vector.1412" = type { %"struct.std::_Vector_base.1413" }
%"struct.std::_Vector_base.1413" = type { %"struct.std::_Vector_base<char, std::allocator<char>>::_Vector_impl" }
%"struct.std::_Vector_base<char, std::allocator<char>>::_Vector_impl" = type { %"struct.std::_Vector_base<char, std::allocator<char>>::_Vector_impl_data" }
%"struct.std::_Vector_base<char, std::allocator<char>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.testing::AssertionResult" = type { i8, %"class.testing::internal::scoped_ptr" }
%"class.testing::internal::scoped_ptr" = type { ptr }
%"class.testing::internal::PredicateFormatterFromMatcher.1438" = type { %"class.testing::internal::ElementsAreMatcher.1439" }
%"class.testing::internal::ElementsAreMatcher.1439" = type { %"class.std::tuple.1440" }
%"class.std::tuple.1440" = type { %"struct.std::_Tuple_impl.1441" }
%"struct.std::_Tuple_impl.1441" = type { %"struct.std::_Tuple_impl.1442", %"struct.std::_Head_base.1252" }
%"struct.std::_Tuple_impl.1442" = type { %"struct.std::_Tuple_impl.1443", %"struct.std::_Head_base.1444" }
%"struct.std::_Tuple_impl.1443" = type { %"struct.std::_Head_base.1250" }
%"struct.std::_Head_base.1250" = type { %"class.testing::internal::PairMatcher.1247" }
%"class.testing::internal::PairMatcher.1247" = type { i32, i32 }
%"struct.std::_Head_base.1444" = type { %"class.testing::internal::PairMatcher.1445" }
%"class.testing::internal::PairMatcher.1445" = type { %"class.testing::internal::EitherOfMatcher.559", i32 }
%"class.testing::internal::EitherOfMatcher.559" = type { i32, i32 }
%"struct.std::_Head_base.1252" = type { %"class.testing::internal::PairMatcher.1247" }
%"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
@_ZZN7testing19gmock_matchers_test46BipartiteNonSquareTest_SimpleBacktracking_Test8TestBodyEvE6kEdges = external hidden local_unnamed_addr constant [4 x [2 x i32]], align 16
@.str.1458 = external hidden unnamed_addr constant [26 x i8], align 1

declare i32 @__gxx_personality_v0(...)

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare 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: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN7testing7MessagelsINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEERS0_RKT_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #6 align 2

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7testing19gmock_matchers_test22FindBacktrackingMaxBPMINS_8internal11MatchMatrixEEESt6vectorISt4pairImmESaIS6_EERKT_(ptr dead_on_unwind noalias writable sret(%"class.std::vector.1414") align 8, ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #3

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

declare void @_ZNK7testing8internal11MatchMatrix11DebugStringB5cxx11Ev(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7testing19gmock_matchers_test46BipartiteNonSquareTest_SimpleBacktracking_Test8TestBodyEv(ptr nocapture noundef nonnull readnone align 8 dereferenceable(24) %0) unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.testing::internal::MatchMatrix", align 8
  %3 = alloca %"class.testing::AssertionResult", align 8
  %4 = alloca %"class.testing::internal::PredicateFormatterFromMatcher.1438", align 4
  %5 = alloca %"class.testing::internal::ElementsAreMatcher.1439", align 8
  %6 = alloca %"class.testing::internal::PairMatcher.1247", align 8
  %7 = alloca %"class.testing::internal::PairMatcher.1445", align 8
  %8 = alloca %"class.testing::internal::PairMatcher.1247", align 8
  %9 = alloca %"class.std::vector.1414", align 8
  %10 = alloca %"class.testing::Message", align 8
  %11 = alloca %"class.std::__cxx11::basic_string", align 8
  %12 = alloca %"class.testing::internal::AssertHelper", align 8
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %2) #7
  call void @_ZN7testing8internal11MatchMatrixC2Emm(ptr noundef nonnull align 8 dereferenceable(40) %2, i64 noundef 4, i64 noundef 3)
  %13 = load i32, ptr @_ZZN7testing19gmock_matchers_test46BipartiteNonSquareTest_SimpleBacktracking_Test8TestBodyEvE6kEdges, align 16, !tbaa !5
  %14 = sext i32 %13 to i64
  %15 = load i32, ptr getelementptr inbounds (i8, ptr @_ZZN7testing19gmock_matchers_test46BipartiteNonSquareTest_SimpleBacktracking_Test8TestBodyEvE6kEdges, i64 4), align 4, !tbaa !5
  %16 = sext i32 %15 to i64
  call void @_ZN7testing8internal11MatchMatrix7SetEdgeEmmb(ptr noundef nonnull align 8 dereferenceable(40) %2, i64 noundef %14, i64 noundef %16, i1 noundef zeroext true)
  %17 = load i32, ptr getelementptr inbounds (i8, ptr @_ZZN7testing19gmock_matchers_test46BipartiteNonSquareTest_SimpleBacktracking_Test8TestBodyEvE6kEdges, i64 8), align 8, !tbaa !5
  %18 = sext i32 %17 to i64
  %19 = load i32, ptr getelementptr inbounds (i8, ptr @_ZZN7testing19gmock_matchers_test46BipartiteNonSquareTest_SimpleBacktracking_Test8TestBodyEvE6kEdges, i64 12), align 4, !tbaa !5
  %20 = sext i32 %19 to i64
  call void @_ZN7testing8internal11MatchMatrix7SetEdgeEmmb(ptr noundef nonnull align 8 dereferenceable(40) %2, i64 noundef %18, i64 noundef %20, i1 noundef zeroext true)
  %21 = load i32, ptr getelementptr inbounds (i8, ptr @_ZZN7testing19gmock_matchers_test46BipartiteNonSquareTest_SimpleBacktracking_Test8TestBodyEvE6kEdges, i64 16), align 16, !tbaa !5
  %22 = sext i32 %21 to i64
  %23 = load i32, ptr getelementptr inbounds (i8, ptr @_ZZN7testing19gmock_matchers_test46BipartiteNonSquareTest_SimpleBacktracking_Test8TestBodyEvE6kEdges, i64 20), align 4, !tbaa !5
  %24 = sext i32 %23 to i64
  call void @_ZN7testing8internal11MatchMatrix7SetEdgeEmmb(ptr noundef nonnull align 8 dereferenceable(40) %2, i64 noundef %22, i64 noundef %24, i1 noundef zeroext true)
  %25 = load i32, ptr getelementptr inbounds (i8, ptr @_ZZN7testing19gmock_matchers_test46BipartiteNonSquareTest_SimpleBacktracking_Test8TestBodyEvE6kEdges, i64 24), align 8, !tbaa !5
  %26 = sext i32 %25 to i64
  %27 = load i32, ptr getelementptr inbounds (i8, ptr @_ZZN7testing19gmock_matchers_test46BipartiteNonSquareTest_SimpleBacktracking_Test8TestBodyEvE6kEdges, i64 28), align 4, !tbaa !5
  %28 = sext i32 %27 to i64
  call void @_ZN7testing8internal11MatchMatrix7SetEdgeEmmb(ptr noundef nonnull align 8 dereferenceable(40) %2, i64 noundef %26, i64 noundef %28, i1 noundef zeroext true)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #7
  call void @llvm.lifetime.start.p0(i64 28, ptr nonnull %4) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #7
  %29 = invoke i64 @_ZN7testing4PairIiiEENS_8internal11PairMatcherIT_T0_EES3_S4_(i32 noundef 3, i32 noundef 0)
          to label %30 unwind label %42

30:                                               ; preds = %1
  store i64 %29, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %7) #7
  %31 = invoke i64 @_ZN7testing5AnyOfIiiEENS_8internal12AnyOfResult2IT_T0_E4typeES3_S4_(i32 noundef 1, i32 noundef 2)
          to label %32 unwind label %44

32:                                               ; preds = %30
  %33 = invoke { i64, i32 } @_ZN7testing4PairINS_8internal15EitherOfMatcherIiiEEiEENS1_11PairMatcherIT_T0_EES5_S6_(i64 %31, i32 noundef 1)
          to label %34 unwind label %44

34:                                               ; preds = %32
  %.fca.0.extract = extractvalue { i64, i32 } %33, 0
  %.fca.1.extract = extractvalue { i64, i32 } %33, 1
  store i64 %.fca.0.extract, ptr %7, align 8
  %.sroa.2.0..sroa_idx = getelementptr inbounds i8, ptr %7, i64 8
  store i32 %.fca.1.extract, ptr %.sroa.2.0..sroa_idx, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #7
  %35 = invoke i64 @_ZN7testing4PairIiiEENS_8internal11PairMatcherIT_T0_EES3_S4_(i32 noundef 0, i32 noundef 2)
          to label %36 unwind label %46

36:                                               ; preds = %34
  store i64 %35, ptr %8, align 8
  invoke void @_ZN7testing11ElementsAreINS_8internal11PairMatcherIiiEENS2_INS1_15EitherOfMatcherIiiEEiEES3_EENS1_18ElementsAreMatcherISt5tupleIJNS1_10DecayArrayIT_E4typeENS9_IT0_E4typeENS9_IT1_E4typeEEEEERKSA_RKSD_RKSG_(ptr dead_on_unwind nonnull writable sret(%"class.testing::internal::ElementsAreMatcher.1439") align 4 %5, ptr noundef nonnull align 4 dereferenceable(8) %6, ptr noundef nonnull align 4 dereferenceable(12) %7, ptr noundef nonnull align 4 dereferenceable(8) %8)
          to label %37 unwind label %46

37:                                               ; preds = %36
  invoke void @_ZN7testing8internal33MakePredicateFormatterFromMatcherINS0_18ElementsAreMatcherISt5tupleIJNS0_11PairMatcherIiiEENS4_INS0_15EitherOfMatcherIiiEEiEES5_EEEEEENS0_29PredicateFormatterFromMatcherIT_EESC_(ptr dead_on_unwind nonnull writable sret(%"class.testing::internal::PredicateFormatterFromMatcher.1438") align 4 %4, ptr noundef nonnull byval(%"class.testing::internal::ElementsAreMatcher.1439") align 8 %5)
          to label %38 unwind label %46

38:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %9) #7
  invoke void @_ZN7testing19gmock_matchers_test22FindBacktrackingMaxBPMINS_8internal11MatchMatrixEEESt6vectorISt4pairImmESaIS6_EERKT_(ptr dead_on_unwind nonnull writable sret(%"class.std::vector.1414") align 8 %9, ptr noundef nonnull align 8 dereferenceable(40) %2)
          to label %39 unwind label %48

39:                                               ; preds = %38
  invoke void @_ZNK7testing8internal29PredicateFormatterFromMatcherINS0_18ElementsAreMatcherISt5tupleIJNS0_11PairMatcherIiiEENS4_INS0_15EitherOfMatcherIiiEEiEES5_EEEEEclISt6vectorISt4pairImmESaISF_EEEENS_15AssertionResultEPKcRKT_(ptr dead_on_unwind nonnull writable sret(%"class.testing::AssertionResult") align 8 %3, ptr noundef nonnull align 4 dereferenceable(28) %4, ptr noundef nonnull @.str.1458, ptr noundef nonnull align 8 dereferenceable(24) %9)
          to label %40 unwind label %50

40:                                               ; preds = %39
  call void @_ZNSt6vectorISt4pairImmESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 28, ptr nonnull %4) #7
  %41 = call noundef zeroext i1 @_ZNK7testing15AssertionResultcvbEv(ptr noundef nonnull align 8 dereferenceable(16) %3)
  br i1 %41, label %79, label %56

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

44:                                               ; preds = %32, %30
  %45 = landingpad { ptr, i32 }
          cleanup
  br label %54

46:                                               ; preds = %37, %36, %34
  %47 = landingpad { ptr, i32 }
          cleanup
  br label %53

48:                                               ; preds = %38
  %49 = landingpad { ptr, i32 }
          cleanup
  br label %52

50:                                               ; preds = %39
  %51 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorISt4pairImmESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #7
  br label %52

52:                                               ; preds = %50, %48
  %.pn = phi { ptr, i32 } [ %51, %50 ], [ %49, %48 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #7
  br label %53

53:                                               ; preds = %52, %46
  %.pn.pn = phi { ptr, i32 } [ %.pn, %52 ], [ %47, %46 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #7
  br label %54

54:                                               ; preds = %53, %44
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %53 ], [ %45, %44 ]
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %7) #7
  br label %55

55:                                               ; preds = %54, %42
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %54 ], [ %43, %42 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 28, ptr nonnull %4) #7
  br label %80

56:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #7
  invoke void @_ZN7testing7MessageC1Ev(ptr noundef nonnull align 8 dereferenceable(8) %10)
          to label %57 unwind label %65

57:                                               ; preds = %56
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %11) #7
  invoke void @_ZNK7testing8internal11MatchMatrix11DebugStringB5cxx11Ev(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %11, ptr noundef nonnull align 8 dereferenceable(40) %2)
          to label %58 unwind label %67

58:                                               ; preds = %57
  %59 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7testing7MessagelsINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEERS0_RKT_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(32) %11)
          to label %60 unwind label %69

60:                                               ; preds = %58
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #7
  %61 = invoke noundef ptr @_ZNK7testing15AssertionResult15failure_messageEv(ptr noundef nonnull align 8 dereferenceable(16) %3)
          to label %62 unwind label %71

62:                                               ; preds = %60
  invoke void @_ZN7testing8internal12AssertHelperC1ENS_14TestPartResult4TypeEPKciS5_(ptr noundef nonnull align 8 dereferenceable(8) %12, i32 noundef 1, ptr noundef nonnull @.str.5, i32 noundef 5151, ptr noundef %61)
          to label %63 unwind label %71

63:                                               ; preds = %62
  invoke void @_ZNK7testing8internal12AssertHelperaSERKNS_7MessageE(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %59)
          to label %64 unwind label %73

64:                                               ; preds = %63
  call void @_ZN7testing8internal12AssertHelperD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %11) #7
  call void @_ZN7testing7MessageD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #7
  br label %79

65:                                               ; preds = %56
  %66 = landingpad { ptr, i32 }
          cleanup
  br label %78

67:                                               ; preds = %57
  %68 = landingpad { ptr, i32 }
          cleanup
  br label %77

69:                                               ; preds = %58
  %70 = landingpad { ptr, i32 }
          cleanup
  br label %76

71:                                               ; preds = %62, %60
  %72 = landingpad { ptr, i32 }
          cleanup
  br label %75

73:                                               ; preds = %63
  %74 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7testing8internal12AssertHelperD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %12) #7
  br label %75

75:                                               ; preds = %73, %71
  %.pn21 = phi { ptr, i32 } [ %74, %73 ], [ %72, %71 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #7
  br label %76

76:                                               ; preds = %75, %69
  %.pn21.pn = phi { ptr, i32 } [ %.pn21, %75 ], [ %70, %69 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #7
  br label %77

77:                                               ; preds = %76, %67
  %.pn21.pn.pn = phi { ptr, i32 } [ %.pn21.pn, %76 ], [ %68, %67 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %11) #7
  call void @_ZN7testing7MessageD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %10) #7
  br label %78

78:                                               ; preds = %77, %65
  %.pn21.pn.pn.pn = phi { ptr, i32 } [ %.pn21.pn.pn, %77 ], [ %66, %65 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #7
  call void @_ZN7testing15AssertionResultD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %3) #7
  br label %80

79:                                               ; preds = %40, %64
  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 @_ZN7testing8internal11MatchMatrixD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %2) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %2) #7
  ret void

80:                                               ; preds = %78, %55
  %.pn21.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn21.pn.pn.pn, %78 ], [ %.pn.pn.pn.pn, %55 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #7
  call void @_ZN7testing8internal11MatchMatrixD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %2) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %2) #7
  resume { ptr, i32 } %.pn21.pn.pn.pn.pn
}

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { i64, i32 } @_ZN7testing4PairINS_8internal15EitherOfMatcherIiiEEiEENS1_11PairMatcherIT_T0_EES5_S6_(i64, i32 noundef) local_unnamed_addr #6

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK7testing8internal29PredicateFormatterFromMatcherINS0_18ElementsAreMatcherISt5tupleIJNS0_11PairMatcherIiiEENS4_INS0_15EitherOfMatcherIiiEEiEES5_EEEEEclISt6vectorISt4pairImmESaISF_EEEENS_15AssertionResultEPKcRKT_(ptr dead_on_unwind noalias writable sret(%"class.testing::AssertionResult") align 8, ptr noundef nonnull align 4 dereferenceable(28), ptr noundef, ptr noundef nonnull align 8 dereferenceable(24)) 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)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,LoopRotatePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass