; LLVM IR from QAQdev/mini-sql-engine :: thirdparty/googletest/test (googletest-port-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::AssertionResult" = type { i8, %"class.std::unique_ptr" }
%"class.std::unique_ptr" = type { %"struct.std::__uniq_ptr_data" }
%"struct.std::__uniq_ptr_data" = type { %"class.std::__uniq_ptr_impl" }
%"class.std::__uniq_ptr_impl" = type { %"class.std::tuple" }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Head_base.1" }
%"struct.std::_Head_base.1" = type { ptr }
%"class.testing::internal::Mutex" = type { %"class.testing::internal::MutexBase" }
%"class.testing::internal::MutexBase" = type { %union.pthread_mutex_t, i8, i64 }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%"class.testing::internal::AtomicCounterWithMutex" = type <{ i32, [4 x i8], ptr, %"class.testing::internal::Random", [4 x i8] }>
%"class.testing::internal::Random" = type { i32 }
%"class.std::unique_ptr.101" = type { %"struct.std::__uniq_ptr_data.102" }
%"struct.std::__uniq_ptr_data.102" = type { %"class.std::__uniq_ptr_impl.103" }
%"class.std::__uniq_ptr_impl.103" = type { %"class.std::tuple.104" }
%"class.std::tuple.104" = type { %"struct.std::_Tuple_impl.105" }
%"struct.std::_Tuple_impl.105" = type { %"struct.std::_Head_base.108" }
%"struct.std::_Head_base.108" = type { ptr }
%"class.testing::internal::Notification" = type <{ %union.pthread_mutex_t, i8, [7 x i8] }>
%"struct.std::pair" = type <{ ptr, i32, [4 x i8] }>
%"class.testing::Message" = type { %"class.std::unique_ptr.2" }
%"class.std::unique_ptr.2" = type { %"struct.std::__uniq_ptr_data.3" }
%"struct.std::__uniq_ptr_data.3" = type { %"class.std::__uniq_ptr_impl.4" }
%"class.std::__uniq_ptr_impl.4" = type { %"class.std::tuple.5" }
%"class.std::tuple.5" = type { %"struct.std::_Tuple_impl.6" }
%"struct.std::_Tuple_impl.6" = type { %"struct.std::_Head_base.9" }
%"struct.std::_Head_base.9" = type { ptr }
%"class.testing::internal::AssertHelper" = type { ptr }

@.str.3 = external hidden unnamed_addr constant [107 x i8], align 1
@.str.201 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.202 = external hidden unnamed_addr constant [23 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: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) #1

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) #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)) #3 align 2

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7testing8internal5MutexC2Ev(ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #7 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7testing8internal5MutexD2Ev(ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #3 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) #8

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7testing8internal18CountingThreadFuncESt4pairIPNS0_22AtomicCounterWithMutexEiE(ptr, i32) #7

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7testing8internal42MutexTest_OnlyOneThreadCanLockAtATime_Test8TestBodyEv(ptr noundef nonnull align 8 dereferenceable(16) %0) unnamed_addr #7 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca %"class.testing::internal::Mutex", align 8
  %4 = alloca %"class.testing::internal::AtomicCounterWithMutex", align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca [7 x %"class.std::unique_ptr.101"], align 16
  %10 = alloca %"class.testing::internal::Notification", align 8
  %11 = alloca i32, align 4
  %12 = alloca %"struct.std::pair", align 8
  %13 = alloca ptr, align 8
  %14 = alloca { ptr, i32 }, align 8
  %15 = alloca i1, align 1
  %16 = alloca i32, align 4
  %17 = alloca %"class.testing::AssertionResult", align 8
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca %"class.testing::Message", align 8
  %21 = alloca %"class.testing::internal::AssertHelper", align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %22 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 56, ptr %3) #9
  call void @_ZN7testing8internal5MutexC2Ev(ptr noundef nonnull align 8 dereferenceable(56) %3)
  call void @llvm.lifetime.start.p0(i64 24, ptr %4) #9
  invoke void @_ZN7testing8internal22AtomicCounterWithMutexC2EPNS0_5MutexE(ptr noundef nonnull align 8 dereferenceable(20) %4, ptr noundef %3)
          to label %23 unwind label %36

23:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #9
  store i32 20, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #9
  store i32 7, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 56, ptr %9) #9
  %24 = getelementptr inbounds [7 x %"class.std::unique_ptr.101"], ptr %9, i32 0, i32 0
  %25 = getelementptr inbounds %"class.std::unique_ptr.101", ptr %24, i64 7
  br label %26

26:                                               ; preds = %26, %23
  %27 = phi ptr [ %24, %23 ], [ %28, %26 ]
  call void @_ZNSt10unique_ptrIN7testing8internal15ThreadWithParamISt4pairIPNS1_22AtomicCounterWithMutexEiEEESt14default_deleteIS7_EEC2IS9_vEEv(ptr noundef nonnull align 8 dereferenceable(8) %27) #9
  %28 = getelementptr inbounds %"class.std::unique_ptr.101", ptr %27, i64 1
  %29 = icmp eq ptr %28, %25
  br i1 %29, label %30, label %26

30:                                               ; preds = %26
  call void @llvm.lifetime.start.p0(i64 48, ptr %10) #9
  invoke void @_ZN7testing8internal12NotificationC2Ev(ptr noundef nonnull align 8 dereferenceable(41) %10)
          to label %31 unwind label %40

31:                                               ; preds = %30
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #9
  store i32 0, ptr %11, align 4, !tbaa !9
  br label %32

32:                                               ; preds = %57, %31
  %33 = load i32, ptr %11, align 4, !tbaa !9
  %34 = icmp slt i32 %33, 7
  br i1 %34, label %44, label %35

35:                                               ; preds = %32
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #9
  br label %72

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

40:                                               ; preds = %30
  %41 = landingpad { ptr, i32 }
          cleanup
  %42 = extractvalue { ptr, i32 } %41, 0
  store ptr %42, ptr %5, align 8
  %43 = extractvalue { ptr, i32 } %41, 1
  store i32 %43, ptr %6, align 4
  br label %141

44:                                               ; preds = %32
  %45 = load i32, ptr %11, align 4, !tbaa !9
  %46 = sext i32 %45 to i64
  %47 = getelementptr inbounds [7 x %"class.std::unique_ptr.101"], ptr %9, i64 0, i64 %46
  %48 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 56) #10
          to label %49 unwind label %60

49:                                               ; preds = %44
  store i1 true, ptr %15, align 1
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #9
  store ptr %4, ptr %13, align 8, !tbaa !5
  %50 = invoke { ptr, i32 } @_ZSt9make_pairIPN7testing8internal22AtomicCounterWithMutexERKiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS7_INS8_IT0_E4typeEE6__typeEEOS9_OSE_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 4 dereferenceable(4) %7)
          to label %51 unwind label %64

51:                                               ; preds = %49
  store { ptr, i32 } %50, ptr %14, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %12, ptr align 8 %14, i64 12, i1 false)
  %52 = getelementptr inbounds { ptr, i32 }, ptr %12, i32 0, i32 0
  %53 = load ptr, ptr %52, align 8
  %54 = getelementptr inbounds { ptr, i32 }, ptr %12, i32 0, i32 1
  %55 = load i32, ptr %54, align 8
  invoke void @_ZN7testing8internal15ThreadWithParamISt4pairIPNS0_22AtomicCounterWithMutexEiEEC2EPFvS5_ES5_PNS0_12NotificationE(ptr noundef nonnull align 8 dereferenceable(56) %48, ptr noundef @_ZN7testing8internal18CountingThreadFuncESt4pairIPNS0_22AtomicCounterWithMutexEiE, ptr %53, i32 %55, ptr noundef %10)
          to label %56 unwind label %64

56:                                               ; preds = %51
  store i1 false, ptr %15, align 1
  call void @_ZNSt10unique_ptrIN7testing8internal15ThreadWithParamISt4pairIPNS1_22AtomicCounterWithMutexEiEEESt14default_deleteIS7_EE5resetEPS7_(ptr noundef nonnull align 8 dereferenceable(8) %47, ptr noundef %48) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #9
  br label %57

57:                                               ; preds = %56
  %58 = load i32, ptr %11, align 4, !tbaa !9
  %59 = add nsw i32 %58, 1
  store i32 %59, ptr %11, align 4, !tbaa !9
  br label %32, !llvm.loop !11

60:                                               ; preds = %44
  %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 %71

64:                                               ; preds = %51, %49
  %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
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #9
  %68 = load i1, ptr %15, align 1
  br i1 %68, label %69, label %70

69:                                               ; preds = %64
  call void @_ZdlPvm(ptr noundef %48, i64 noundef 56) #11
  br label %70

70:                                               ; preds = %69, %64
  br label %71

71:                                               ; preds = %70, %60
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #9
  br label %140

72:                                               ; preds = %35
  invoke void @_ZN7testing8internal12Notification6NotifyEv(ptr noundef nonnull align 8 dereferenceable(41) %10)
          to label %73 unwind label %78

73:                                               ; preds = %72
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #9
  store i32 0, ptr %16, align 4, !tbaa !9
  br label %74

74:                                               ; preds = %88, %73
  %75 = load i32, ptr %16, align 4, !tbaa !9
  %76 = icmp slt i32 %75, 7
  br i1 %76, label %82, label %77

77:                                               ; preds = %74
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #9
  br label %95

78:                                               ; preds = %72
  %79 = landingpad { ptr, i32 }
          cleanup
  %80 = extractvalue { ptr, i32 } %79, 0
  store ptr %80, ptr %5, align 8
  %81 = extractvalue { ptr, i32 } %79, 1
  store i32 %81, ptr %6, align 4
  br label %140

82:                                               ; preds = %74
  %83 = load i32, ptr %16, align 4, !tbaa !9
  %84 = sext i32 %83 to i64
  %85 = getelementptr inbounds [7 x %"class.std::unique_ptr.101"], ptr %9, i64 0, i64 %84
  %86 = call noundef ptr @_ZNKSt10unique_ptrIN7testing8internal15ThreadWithParamISt4pairIPNS1_22AtomicCounterWithMutexEiEEESt14default_deleteIS7_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %85) #9
  invoke void @_ZN7testing8internal15ThreadWithParamISt4pairIPNS0_22AtomicCounterWithMutexEiEE4JoinEv(ptr noundef nonnull align 8 dereferenceable(56) %86)
          to label %87 unwind label %91

87:                                               ; preds = %82
  br label %88

88:                                               ; preds = %87
  %89 = load i32, ptr %16, align 4, !tbaa !9
  %90 = add nsw i32 %89, 1
  store i32 %90, ptr %16, align 4, !tbaa !9
  br label %74, !llvm.loop !13

91:                                               ; preds = %82
  %92 = landingpad { ptr, i32 }
          cleanup
  %93 = extractvalue { ptr, i32 } %92, 0
  store ptr %93, ptr %5, align 8
  %94 = extractvalue { ptr, i32 } %92, 1
  store i32 %94, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #9
  br label %140

95:                                               ; preds = %77
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #9
  store i32 140, ptr %18, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #9
  %96 = invoke noundef i32 @_ZNK7testing8internal22AtomicCounterWithMutex5valueEv(ptr noundef nonnull align 8 dereferenceable(20) %4)
          to label %97 unwind label %102

97:                                               ; preds = %95
  store i32 %96, ptr %19, align 4, !tbaa !9
  invoke void @_ZN7testing8internal8EqHelper7CompareIiiTnPNSt9enable_ifIXoontsr3std11is_integralIT_EE5valuentsr3std10is_pointerIT0_EE5valueEvE4typeELPv0EEENS_15AssertionResultEPKcSC_RKS4_RKS5_(ptr dead_on_unwind writable sret(%"class.testing::AssertionResult") align 8 %17, ptr noundef @.str.201, ptr noundef @.str.202, ptr noundef nonnull align 4 dereferenceable(4) %18, ptr noundef nonnull align 4 dereferenceable(4) %19)
          to label %98 unwind label %102

98:                                               ; preds = %97
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #9
  %99 = invoke noundef zeroext i1 @_ZNK7testing15AssertionResultcvbEv(ptr noundef nonnull align 8 dereferenceable(16) %17)
          to label %100 unwind label %106

100:                                              ; preds = %98
  br i1 %99, label %101, label %110

101:                                              ; preds = %100
  br label %130

102:                                              ; preds = %97, %95
  %103 = landingpad { ptr, i32 }
          cleanup
  %104 = extractvalue { ptr, i32 } %103, 0
  store ptr %104, ptr %5, align 8
  %105 = extractvalue { ptr, i32 } %103, 1
  store i32 %105, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #9
  br label %139

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

110:                                              ; preds = %100
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #9
  invoke void @_ZN7testing7MessageC1Ev(ptr noundef nonnull align 8 dereferenceable(8) %20)
          to label %111 unwind label %116

111:                                              ; preds = %110
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #9
  %112 = invoke noundef ptr @_ZNK7testing15AssertionResult15failure_messageEv(ptr noundef nonnull align 8 dereferenceable(16) %17)
          to label %113 unwind label %120

113:                                              ; preds = %111
  invoke void @_ZN7testing8internal12AssertHelperC1ENS_14TestPartResult4TypeEPKciS5_(ptr noundef nonnull align 8 dereferenceable(8) %21, i32 noundef 1, ptr noundef @.str.3, i32 noundef 1094, ptr noundef %112)
          to label %114 unwind label %120

114:                                              ; preds = %113
  invoke void @_ZNK7testing8internal12AssertHelperaSERKNS_7MessageE(ptr noundef nonnull align 8 dereferenceable(8) %21, ptr noundef nonnull align 8 dereferenceable(8) %20)
          to label %115 unwind label %124

115:                                              ; preds = %114
  call void @_ZN7testing8internal12AssertHelperD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %21) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #9
  call void @_ZN7testing7MessageD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %20) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #9
  br label %130

116:                                              ; preds = %110
  %117 = landingpad { ptr, i32 }
          cleanup
  %118 = extractvalue { ptr, i32 } %117, 0
  store ptr %118, ptr %5, align 8
  %119 = extractvalue { ptr, i32 } %117, 1
  store i32 %119, ptr %6, align 4
  br label %129

120:                                              ; preds = %113, %111
  %121 = landingpad { ptr, i32 }
          cleanup
  %122 = extractvalue { ptr, i32 } %121, 0
  store ptr %122, ptr %5, align 8
  %123 = extractvalue { ptr, i32 } %121, 1
  store i32 %123, ptr %6, align 4
  br label %128

124:                                              ; preds = %114
  %125 = landingpad { ptr, i32 }
          cleanup
  %126 = extractvalue { ptr, i32 } %125, 0
  store ptr %126, ptr %5, align 8
  %127 = extractvalue { ptr, i32 } %125, 1
  store i32 %127, ptr %6, align 4
  call void @_ZN7testing8internal12AssertHelperD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %21) #9
  br label %128

128:                                              ; preds = %124, %120
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #9
  call void @_ZN7testing7MessageD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %20) #9
  br label %129

129:                                              ; preds = %128, %116
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #9
  br label %138

130:                                              ; preds = %115, %101
  call void @_ZN7testing15AssertionResultD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %17) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #9
  call void @_ZN7testing8internal12NotificationD2Ev(ptr noundef nonnull align 8 dereferenceable(41) %10) #9
  call void @llvm.lifetime.end.p0(i64 48, ptr %10) #9
  %131 = getelementptr inbounds [7 x %"class.std::unique_ptr.101"], ptr %9, i32 0, i32 0
  %132 = getelementptr inbounds %"class.std::unique_ptr.101", ptr %131, i64 7
  br label %133

133:                                              ; preds = %133, %130
  %134 = phi ptr [ %132, %130 ], [ %135, %133 ]
  %135 = getelementptr inbounds %"class.std::unique_ptr.101", ptr %134, i64 -1
  call void @_ZNSt10unique_ptrIN7testing8internal15ThreadWithParamISt4pairIPNS1_22AtomicCounterWithMutexEiEEESt14default_deleteIS7_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %135) #9
  %136 = icmp eq ptr %135, %131
  br i1 %136, label %137, label %133

137:                                              ; preds = %133
  call void @llvm.lifetime.end.p0(i64 56, ptr %9) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %4) #9
  call void @_ZN7testing8internal5MutexD2Ev(ptr noundef nonnull align 8 dereferenceable(56) %3) #9
  call void @llvm.lifetime.end.p0(i64 56, ptr %3) #9
  ret void

138:                                              ; preds = %129, %106
  call void @_ZN7testing15AssertionResultD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %17) #9
  br label %139

139:                                              ; preds = %138, %102
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #9
  br label %140

140:                                              ; preds = %139, %91, %78, %71
  call void @_ZN7testing8internal12NotificationD2Ev(ptr noundef nonnull align 8 dereferenceable(41) %10) #9
  br label %141

141:                                              ; preds = %140, %40
  call void @llvm.lifetime.end.p0(i64 48, ptr %10) #9
  %142 = getelementptr inbounds [7 x %"class.std::unique_ptr.101"], ptr %9, i32 0, i32 0
  %143 = getelementptr inbounds %"class.std::unique_ptr.101", ptr %142, i64 7
  br label %144

144:                                              ; preds = %144, %141
  %145 = phi ptr [ %143, %141 ], [ %146, %144 ]
  %146 = getelementptr inbounds %"class.std::unique_ptr.101", ptr %145, i64 -1
  call void @_ZNSt10unique_ptrIN7testing8internal15ThreadWithParamISt4pairIPNS1_22AtomicCounterWithMutexEiEEESt14default_deleteIS7_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %146) #9
  %147 = icmp eq ptr %146, %142
  br i1 %147, label %148, label %144

148:                                              ; preds = %144
  call void @llvm.lifetime.end.p0(i64 56, ptr %9) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #9
  br label %149

149:                                              ; preds = %148, %36
  call void @llvm.lifetime.end.p0(i64 24, ptr %4) #9
  call void @_ZN7testing8internal5MutexD2Ev(ptr noundef nonnull align 8 dereferenceable(56) %3) #9
  call void @llvm.lifetime.end.p0(i64 56, ptr %3) #9
  br label %150

150:                                              ; preds = %149
  %151 = load ptr, ptr %5, align 8
  %152 = load i32, ptr %6, align 4
  %153 = insertvalue { ptr, i32 } poison, ptr %151, 0
  %154 = insertvalue { ptr, i32 } %153, i32 %152, 1
  resume { ptr, i32 } %154
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7testing8internal22AtomicCounterWithMutexC2EPNS0_5MutexE(ptr noundef nonnull align 8 dereferenceable(20), ptr noundef) unnamed_addr #7 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7testing8internal12NotificationC2Ev(ptr noundef nonnull align 8 dereferenceable(41)) unnamed_addr #7 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i32 } @_ZSt9make_pairIPN7testing8internal22AtomicCounterWithMutexERKiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS7_INS8_IT0_E4typeEE6__typeEEOS9_OSE_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(4)) #7

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7testing8internal15ThreadWithParamISt4pairIPNS0_22AtomicCounterWithMutexEiEEC2EPFvS5_ES5_PNS0_12NotificationE(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef, ptr, i32, ptr noundef) unnamed_addr #7 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7testing8internal15ThreadWithParamISt4pairIPNS0_22AtomicCounterWithMutexEiEE4JoinEv(ptr noundef nonnull align 8 dereferenceable(56)) #7 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK7testing8internal22AtomicCounterWithMutex5valueEv(ptr noundef nonnull align 8 dereferenceable(20)) #3 align 2

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nobuiltin allocsize(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 = { nobuiltin 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 #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 = { "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 "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 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 #7 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #9 = { nounwind }
attributes #10 = { builtin allocsize(0) }
attributes #11 = { builtin 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 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}


; 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::AssertionResult" = type { i8, %"class.std::unique_ptr" }
%"class.std::unique_ptr" = type { %"struct.std::__uniq_ptr_data" }
%"struct.std::__uniq_ptr_data" = type { %"class.std::__uniq_ptr_impl" }
%"class.std::__uniq_ptr_impl" = type { %"class.std::tuple" }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Head_base.1" }
%"struct.std::_Head_base.1" = type { ptr }
%"class.testing::internal::Mutex" = type { %"class.testing::internal::MutexBase" }
%"class.testing::internal::MutexBase" = type { %union.pthread_mutex_t, i8, i64 }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%"class.testing::internal::AtomicCounterWithMutex" = type <{ i32, [4 x i8], ptr, %"class.testing::internal::Random", [4 x i8] }>
%"class.testing::internal::Random" = type { i32 }
%"class.std::unique_ptr.101" = type { %"struct.std::__uniq_ptr_data.102" }
%"struct.std::__uniq_ptr_data.102" = type { %"class.std::__uniq_ptr_impl.103" }
%"class.std::__uniq_ptr_impl.103" = type { %"class.std::tuple.104" }
%"class.std::tuple.104" = type { %"struct.std::_Tuple_impl.105" }
%"struct.std::_Tuple_impl.105" = type { %"struct.std::_Head_base.108" }
%"struct.std::_Head_base.108" = type { ptr }
%"class.testing::internal::Notification" = type <{ %union.pthread_mutex_t, i8, [7 x i8] }>
%"class.testing::Message" = type { %"class.std::unique_ptr.2" }
%"class.std::unique_ptr.2" = type { %"struct.std::__uniq_ptr_data.3" }
%"struct.std::__uniq_ptr_data.3" = type { %"class.std::__uniq_ptr_impl.4" }
%"class.std::__uniq_ptr_impl.4" = type { %"class.std::tuple.5" }
%"class.std::tuple.5" = type { %"struct.std::_Tuple_impl.6" }
%"struct.std::_Tuple_impl.6" = type { %"struct.std::_Head_base.9" }
%"struct.std::_Head_base.9" = type { ptr }
%"class.testing::internal::AssertHelper" = type { ptr }

@.str.3 = external hidden unnamed_addr constant [107 x i8], align 1
@.str.201 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.202 = external hidden unnamed_addr constant [23 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: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) local_unnamed_addr #1

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) local_unnamed_addr #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 #3 align 2

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7testing8internal5MutexC2Ev(ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #7 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7testing8internal18CountingThreadFuncESt4pairIPNS0_22AtomicCounterWithMutexEiE(ptr, i32) #7

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7testing8internal42MutexTest_OnlyOneThreadCanLockAtATime_Test8TestBodyEv(ptr nocapture noundef nonnull readnone align 8 dereferenceable(16) %0) unnamed_addr #7 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.testing::internal::Mutex", align 8
  %3 = alloca %"class.testing::internal::AtomicCounterWithMutex", align 8
  %4 = alloca i32, align 4
  %5 = alloca [7 x %"class.std::unique_ptr.101"], align 16
  %6 = alloca %"class.testing::internal::Notification", align 8
  %7 = alloca ptr, align 8
  %8 = alloca %"class.testing::AssertionResult", align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca %"class.testing::Message", align 8
  %12 = alloca %"class.testing::internal::AssertHelper", align 8
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %2) #8
  call void @_ZN7testing8internal5MutexC2Ev(ptr noundef nonnull align 8 dereferenceable(56) %2)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #8
  invoke void @_ZN7testing8internal22AtomicCounterWithMutexC2EPNS0_5MutexE(ptr noundef nonnull align 8 dereferenceable(20) %3, ptr noundef nonnull %2)
          to label %13 unwind label %15

13:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #8
  store i32 20, ptr %4, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %5) #8
  call void @_ZNSt10unique_ptrIN7testing8internal15ThreadWithParamISt4pairIPNS1_22AtomicCounterWithMutexEiEEESt14default_deleteIS7_EEC2IS9_vEEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #8
  %.ptr.1 = getelementptr inbounds i8, ptr %5, i64 8
  call void @_ZNSt10unique_ptrIN7testing8internal15ThreadWithParamISt4pairIPNS1_22AtomicCounterWithMutexEiEEESt14default_deleteIS7_EEC2IS9_vEEv(ptr noundef nonnull align 8 dereferenceable(8) %.ptr.1) #8
  %.ptr.2 = getelementptr inbounds i8, ptr %5, i64 16
  call void @_ZNSt10unique_ptrIN7testing8internal15ThreadWithParamISt4pairIPNS1_22AtomicCounterWithMutexEiEEESt14default_deleteIS7_EEC2IS9_vEEv(ptr noundef nonnull align 8 dereferenceable(8) %.ptr.2) #8
  %.ptr.3 = getelementptr inbounds i8, ptr %5, i64 24
  call void @_ZNSt10unique_ptrIN7testing8internal15ThreadWithParamISt4pairIPNS1_22AtomicCounterWithMutexEiEEESt14default_deleteIS7_EEC2IS9_vEEv(ptr noundef nonnull align 8 dereferenceable(8) %.ptr.3) #8
  %.ptr.4 = getelementptr inbounds i8, ptr %5, i64 32
  call void @_ZNSt10unique_ptrIN7testing8internal15ThreadWithParamISt4pairIPNS1_22AtomicCounterWithMutexEiEEESt14default_deleteIS7_EEC2IS9_vEEv(ptr noundef nonnull align 8 dereferenceable(8) %.ptr.4) #8
  %.ptr.5 = getelementptr inbounds i8, ptr %5, i64 40
  call void @_ZNSt10unique_ptrIN7testing8internal15ThreadWithParamISt4pairIPNS1_22AtomicCounterWithMutexEiEEESt14default_deleteIS7_EEC2IS9_vEEv(ptr noundef nonnull align 8 dereferenceable(8) %.ptr.5) #8
  %.ptr.6 = getelementptr inbounds i8, ptr %5, i64 48
  call void @_ZNSt10unique_ptrIN7testing8internal15ThreadWithParamISt4pairIPNS1_22AtomicCounterWithMutexEiEEESt14default_deleteIS7_EEC2IS9_vEEv(ptr noundef nonnull align 8 dereferenceable(8) %.ptr.6) #8
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %6) #8
  invoke void @_ZN7testing8internal12NotificationC2Ev(ptr noundef nonnull align 8 dereferenceable(41) %6)
          to label %.preheader.preheader unwind label %17

.preheader.preheader:                             ; preds = %13
  %14 = invoke noalias noundef nonnull dereferenceable(56) ptr @_Znwm(i64 noundef 56) #9
          to label %19 unwind label %48

15:                                               ; preds = %1
  %16 = landingpad { ptr, i32 }
          cleanup
  br label %102

17:                                               ; preds = %13
  %18 = landingpad { ptr, i32 }
          cleanup
  br label %95

19:                                               ; preds = %.preheader.preheader
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #8
  store ptr %3, ptr %7, align 8, !tbaa !9
  %20 = invoke { ptr, i32 } @_ZSt9make_pairIPN7testing8internal22AtomicCounterWithMutexERKiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS7_INS8_IT0_E4typeEE6__typeEEOS9_OSE_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 4 dereferenceable(4) %4)
          to label %21 unwind label %50

21:                                               ; preds = %19
  %.fca.0.extract = extractvalue { ptr, i32 } %20, 0
  %.fca.1.extract = extractvalue { ptr, i32 } %20, 1
  invoke void @_ZN7testing8internal15ThreadWithParamISt4pairIPNS0_22AtomicCounterWithMutexEiEEC2EPFvS5_ES5_PNS0_12NotificationE(ptr noundef nonnull align 8 dereferenceable(56) %14, ptr noundef nonnull @_ZN7testing8internal18CountingThreadFuncESt4pairIPNS0_22AtomicCounterWithMutexEiE, ptr %.fca.0.extract, i32 %.fca.1.extract, ptr noundef nonnull %6)
          to label %.preheader.1 unwind label %50

.preheader.1:                                     ; preds = %21
  call void @_ZNSt10unique_ptrIN7testing8internal15ThreadWithParamISt4pairIPNS1_22AtomicCounterWithMutexEiEEESt14default_deleteIS7_EE5resetEPS7_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull %14) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #8
  %22 = invoke noalias noundef nonnull dereferenceable(56) ptr @_Znwm(i64 noundef 56) #9
          to label %23 unwind label %48

23:                                               ; preds = %.preheader.1
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #8
  store ptr %3, ptr %7, align 8, !tbaa !9
  %24 = invoke { ptr, i32 } @_ZSt9make_pairIPN7testing8internal22AtomicCounterWithMutexERKiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS7_INS8_IT0_E4typeEE6__typeEEOS9_OSE_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 4 dereferenceable(4) %4)
          to label %25 unwind label %50

25:                                               ; preds = %23
  %.fca.0.extract.1 = extractvalue { ptr, i32 } %24, 0
  %.fca.1.extract.1 = extractvalue { ptr, i32 } %24, 1
  invoke void @_ZN7testing8internal15ThreadWithParamISt4pairIPNS0_22AtomicCounterWithMutexEiEEC2EPFvS5_ES5_PNS0_12NotificationE(ptr noundef nonnull align 8 dereferenceable(56) %22, ptr noundef nonnull @_ZN7testing8internal18CountingThreadFuncESt4pairIPNS0_22AtomicCounterWithMutexEiE, ptr %.fca.0.extract.1, i32 %.fca.1.extract.1, ptr noundef nonnull %6)
          to label %.preheader.2 unwind label %50

.preheader.2:                                     ; preds = %25
  call void @_ZNSt10unique_ptrIN7testing8internal15ThreadWithParamISt4pairIPNS1_22AtomicCounterWithMutexEiEEESt14default_deleteIS7_EE5resetEPS7_(ptr noundef nonnull align 8 dereferenceable(8) %.ptr.1, ptr noundef nonnull %22) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #8
  %26 = invoke noalias noundef nonnull dereferenceable(56) ptr @_Znwm(i64 noundef 56) #9
          to label %27 unwind label %48

27:                                               ; preds = %.preheader.2
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #8
  store ptr %3, ptr %7, align 8, !tbaa !9
  %28 = invoke { ptr, i32 } @_ZSt9make_pairIPN7testing8internal22AtomicCounterWithMutexERKiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS7_INS8_IT0_E4typeEE6__typeEEOS9_OSE_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 4 dereferenceable(4) %4)
          to label %29 unwind label %50

29:                                               ; preds = %27
  %.fca.0.extract.2 = extractvalue { ptr, i32 } %28, 0
  %.fca.1.extract.2 = extractvalue { ptr, i32 } %28, 1
  invoke void @_ZN7testing8internal15ThreadWithParamISt4pairIPNS0_22AtomicCounterWithMutexEiEEC2EPFvS5_ES5_PNS0_12NotificationE(ptr noundef nonnull align 8 dereferenceable(56) %26, ptr noundef nonnull @_ZN7testing8internal18CountingThreadFuncESt4pairIPNS0_22AtomicCounterWithMutexEiE, ptr %.fca.0.extract.2, i32 %.fca.1.extract.2, ptr noundef nonnull %6)
          to label %.preheader.3 unwind label %50

.preheader.3:                                     ; preds = %29
  call void @_ZNSt10unique_ptrIN7testing8internal15ThreadWithParamISt4pairIPNS1_22AtomicCounterWithMutexEiEEESt14default_deleteIS7_EE5resetEPS7_(ptr noundef nonnull align 8 dereferenceable(8) %.ptr.2, ptr noundef nonnull %26) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #8
  %30 = invoke noalias noundef nonnull dereferenceable(56) ptr @_Znwm(i64 noundef 56) #9
          to label %31 unwind label %48

31:                                               ; preds = %.preheader.3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #8
  store ptr %3, ptr %7, align 8, !tbaa !9
  %32 = invoke { ptr, i32 } @_ZSt9make_pairIPN7testing8internal22AtomicCounterWithMutexERKiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS7_INS8_IT0_E4typeEE6__typeEEOS9_OSE_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 4 dereferenceable(4) %4)
          to label %33 unwind label %50

33:                                               ; preds = %31
  %.fca.0.extract.3 = extractvalue { ptr, i32 } %32, 0
  %.fca.1.extract.3 = extractvalue { ptr, i32 } %32, 1
  invoke void @_ZN7testing8internal15ThreadWithParamISt4pairIPNS0_22AtomicCounterWithMutexEiEEC2EPFvS5_ES5_PNS0_12NotificationE(ptr noundef nonnull align 8 dereferenceable(56) %30, ptr noundef nonnull @_ZN7testing8internal18CountingThreadFuncESt4pairIPNS0_22AtomicCounterWithMutexEiE, ptr %.fca.0.extract.3, i32 %.fca.1.extract.3, ptr noundef nonnull %6)
          to label %.preheader.4 unwind label %50

.preheader.4:                                     ; preds = %33
  call void @_ZNSt10unique_ptrIN7testing8internal15ThreadWithParamISt4pairIPNS1_22AtomicCounterWithMutexEiEEESt14default_deleteIS7_EE5resetEPS7_(ptr noundef nonnull align 8 dereferenceable(8) %.ptr.3, ptr noundef nonnull %30) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #8
  %34 = invoke noalias noundef nonnull dereferenceable(56) ptr @_Znwm(i64 noundef 56) #9
          to label %35 unwind label %48

35:                                               ; preds = %.preheader.4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #8
  store ptr %3, ptr %7, align 8, !tbaa !9
  %36 = invoke { ptr, i32 } @_ZSt9make_pairIPN7testing8internal22AtomicCounterWithMutexERKiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS7_INS8_IT0_E4typeEE6__typeEEOS9_OSE_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 4 dereferenceable(4) %4)
          to label %37 unwind label %50

37:                                               ; preds = %35
  %.fca.0.extract.4 = extractvalue { ptr, i32 } %36, 0
  %.fca.1.extract.4 = extractvalue { ptr, i32 } %36, 1
  invoke void @_ZN7testing8internal15ThreadWithParamISt4pairIPNS0_22AtomicCounterWithMutexEiEEC2EPFvS5_ES5_PNS0_12NotificationE(ptr noundef nonnull align 8 dereferenceable(56) %34, ptr noundef nonnull @_ZN7testing8internal18CountingThreadFuncESt4pairIPNS0_22AtomicCounterWithMutexEiE, ptr %.fca.0.extract.4, i32 %.fca.1.extract.4, ptr noundef nonnull %6)
          to label %.preheader.5 unwind label %50

.preheader.5:                                     ; preds = %37
  call void @_ZNSt10unique_ptrIN7testing8internal15ThreadWithParamISt4pairIPNS1_22AtomicCounterWithMutexEiEEESt14default_deleteIS7_EE5resetEPS7_(ptr noundef nonnull align 8 dereferenceable(8) %.ptr.4, ptr noundef nonnull %34) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #8
  %38 = invoke noalias noundef nonnull dereferenceable(56) ptr @_Znwm(i64 noundef 56) #9
          to label %39 unwind label %48

39:                                               ; preds = %.preheader.5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #8
  store ptr %3, ptr %7, align 8, !tbaa !9
  %40 = invoke { ptr, i32 } @_ZSt9make_pairIPN7testing8internal22AtomicCounterWithMutexERKiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS7_INS8_IT0_E4typeEE6__typeEEOS9_OSE_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 4 dereferenceable(4) %4)
          to label %41 unwind label %50

41:                                               ; preds = %39
  %.fca.0.extract.5 = extractvalue { ptr, i32 } %40, 0
  %.fca.1.extract.5 = extractvalue { ptr, i32 } %40, 1
  invoke void @_ZN7testing8internal15ThreadWithParamISt4pairIPNS0_22AtomicCounterWithMutexEiEEC2EPFvS5_ES5_PNS0_12NotificationE(ptr noundef nonnull align 8 dereferenceable(56) %38, ptr noundef nonnull @_ZN7testing8internal18CountingThreadFuncESt4pairIPNS0_22AtomicCounterWithMutexEiE, ptr %.fca.0.extract.5, i32 %.fca.1.extract.5, ptr noundef nonnull %6)
          to label %.preheader.6 unwind label %50

.preheader.6:                                     ; preds = %41
  call void @_ZNSt10unique_ptrIN7testing8internal15ThreadWithParamISt4pairIPNS1_22AtomicCounterWithMutexEiEEESt14default_deleteIS7_EE5resetEPS7_(ptr noundef nonnull align 8 dereferenceable(8) %.ptr.5, ptr noundef nonnull %38) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #8
  %42 = invoke noalias noundef nonnull dereferenceable(56) ptr @_Znwm(i64 noundef 56) #9
          to label %43 unwind label %48

43:                                               ; preds = %.preheader.6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #8
  store ptr %3, ptr %7, align 8, !tbaa !9
  %44 = invoke { ptr, i32 } @_ZSt9make_pairIPN7testing8internal22AtomicCounterWithMutexERKiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS7_INS8_IT0_E4typeEE6__typeEEOS9_OSE_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 4 dereferenceable(4) %4)
          to label %45 unwind label %50

45:                                               ; preds = %43
  %.fca.0.extract.6 = extractvalue { ptr, i32 } %44, 0
  %.fca.1.extract.6 = extractvalue { ptr, i32 } %44, 1
  invoke void @_ZN7testing8internal15ThreadWithParamISt4pairIPNS0_22AtomicCounterWithMutexEiEEC2EPFvS5_ES5_PNS0_12NotificationE(ptr noundef nonnull align 8 dereferenceable(56) %42, ptr noundef nonnull @_ZN7testing8internal18CountingThreadFuncESt4pairIPNS0_22AtomicCounterWithMutexEiE, ptr %.fca.0.extract.6, i32 %.fca.1.extract.6, ptr noundef nonnull %6)
          to label %46 unwind label %50

46:                                               ; preds = %45
  call void @_ZNSt10unique_ptrIN7testing8internal15ThreadWithParamISt4pairIPNS1_22AtomicCounterWithMutexEiEEESt14default_deleteIS7_EE5resetEPS7_(ptr noundef nonnull align 8 dereferenceable(8) %.ptr.6, ptr noundef nonnull %42) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #8
  call void @_ZN7testing8internal12Notification6NotifyEv(ptr noundef nonnull align 8 dereferenceable(41) %6)
  %47 = call noundef ptr @_ZNKSt10unique_ptrIN7testing8internal15ThreadWithParamISt4pairIPNS1_22AtomicCounterWithMutexEiEEESt14default_deleteIS7_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #8
  invoke void @_ZN7testing8internal15ThreadWithParamISt4pairIPNS0_22AtomicCounterWithMutexEiEE4JoinEv(ptr noundef nonnull align 8 dereferenceable(56) %47)
          to label %52 unwind label %66

48:                                               ; preds = %.preheader.6, %.preheader.5, %.preheader.4, %.preheader.3, %.preheader.2, %.preheader.1, %.preheader.preheader
  %49 = landingpad { ptr, i32 }
          cleanup
  br label %94

50:                                               ; preds = %45, %43, %41, %39, %37, %35, %33, %31, %29, %27, %25, %23, %21, %19
  %.lcssa = phi ptr [ %14, %21 ], [ %14, %19 ], [ %22, %23 ], [ %22, %25 ], [ %26, %27 ], [ %26, %29 ], [ %30, %31 ], [ %30, %33 ], [ %34, %35 ], [ %34, %37 ], [ %38, %39 ], [ %38, %41 ], [ %42, %43 ], [ %42, %45 ]
  %51 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #8
  call void @_ZdlPvm(ptr noundef nonnull %.lcssa, i64 noundef 56) #10
  br label %94

52:                                               ; preds = %46
  %53 = call noundef ptr @_ZNKSt10unique_ptrIN7testing8internal15ThreadWithParamISt4pairIPNS1_22AtomicCounterWithMutexEiEEESt14default_deleteIS7_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %.ptr.1) #8
  invoke void @_ZN7testing8internal15ThreadWithParamISt4pairIPNS0_22AtomicCounterWithMutexEiEE4JoinEv(ptr noundef nonnull align 8 dereferenceable(56) %53)
          to label %54 unwind label %66

54:                                               ; preds = %52
  %55 = call noundef ptr @_ZNKSt10unique_ptrIN7testing8internal15ThreadWithParamISt4pairIPNS1_22AtomicCounterWithMutexEiEEESt14default_deleteIS7_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %.ptr.2) #8
  invoke void @_ZN7testing8internal15ThreadWithParamISt4pairIPNS0_22AtomicCounterWithMutexEiEE4JoinEv(ptr noundef nonnull align 8 dereferenceable(56) %55)
          to label %56 unwind label %66

56:                                               ; preds = %54
  %57 = call noundef ptr @_ZNKSt10unique_ptrIN7testing8internal15ThreadWithParamISt4pairIPNS1_22AtomicCounterWithMutexEiEEESt14default_deleteIS7_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %.ptr.3) #8
  invoke void @_ZN7testing8internal15ThreadWithParamISt4pairIPNS0_22AtomicCounterWithMutexEiEE4JoinEv(ptr noundef nonnull align 8 dereferenceable(56) %57)
          to label %58 unwind label %66

58:                                               ; preds = %56
  %59 = call noundef ptr @_ZNKSt10unique_ptrIN7testing8internal15ThreadWithParamISt4pairIPNS1_22AtomicCounterWithMutexEiEEESt14default_deleteIS7_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %.ptr.4) #8
  invoke void @_ZN7testing8internal15ThreadWithParamISt4pairIPNS0_22AtomicCounterWithMutexEiEE4JoinEv(ptr noundef nonnull align 8 dereferenceable(56) %59)
          to label %60 unwind label %66

60:                                               ; preds = %58
  %61 = call noundef ptr @_ZNKSt10unique_ptrIN7testing8internal15ThreadWithParamISt4pairIPNS1_22AtomicCounterWithMutexEiEEESt14default_deleteIS7_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %.ptr.5) #8
  invoke void @_ZN7testing8internal15ThreadWithParamISt4pairIPNS0_22AtomicCounterWithMutexEiEE4JoinEv(ptr noundef nonnull align 8 dereferenceable(56) %61)
          to label %62 unwind label %66

62:                                               ; preds = %60
  %63 = call noundef ptr @_ZNKSt10unique_ptrIN7testing8internal15ThreadWithParamISt4pairIPNS1_22AtomicCounterWithMutexEiEEESt14default_deleteIS7_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %.ptr.6) #8
  invoke void @_ZN7testing8internal15ThreadWithParamISt4pairIPNS0_22AtomicCounterWithMutexEiEE4JoinEv(ptr noundef nonnull align 8 dereferenceable(56) %63)
          to label %64 unwind label %66

64:                                               ; preds = %62
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #8
  store i32 140, ptr %9, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #8
  %65 = call noundef i32 @_ZNK7testing8internal22AtomicCounterWithMutex5valueEv(ptr noundef nonnull align 8 dereferenceable(20) %3)
  store i32 %65, ptr %10, align 4, !tbaa !5
  invoke void @_ZN7testing8internal8EqHelper7CompareIiiTnPNSt9enable_ifIXoontsr3std11is_integralIT_EE5valuentsr3std10is_pointerIT0_EE5valueEvE4typeELPv0EEENS_15AssertionResultEPKcSC_RKS4_RKS5_(ptr dead_on_unwind nonnull writable sret(%"class.testing::AssertionResult") align 8 %8, ptr noundef nonnull @.str.201, ptr noundef nonnull @.str.202, ptr noundef nonnull align 4 dereferenceable(4) %9, ptr noundef nonnull align 4 dereferenceable(4) %10)
          to label %68 unwind label %70

66:                                               ; preds = %62, %60, %58, %56, %54, %52, %46
  %67 = landingpad { ptr, i32 }
          cleanup
  br label %94

68:                                               ; preds = %64
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #8
  %69 = call noundef zeroext i1 @_ZNK7testing15AssertionResultcvbEv(ptr noundef nonnull align 8 dereferenceable(16) %8)
  br i1 %69, label %86, label %72

70:                                               ; preds = %64
  %71 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #8
  br label %93

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

73:                                               ; preds = %72
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #8
  %74 = invoke noundef ptr @_ZNK7testing15AssertionResult15failure_messageEv(ptr noundef nonnull align 8 dereferenceable(16) %8)
          to label %75 unwind label %80

75:                                               ; preds = %73
  invoke void @_ZN7testing8internal12AssertHelperC1ENS_14TestPartResult4TypeEPKciS5_(ptr noundef nonnull align 8 dereferenceable(8) %12, i32 noundef 1, ptr noundef nonnull @.str.3, i32 noundef 1094, ptr noundef %74)
          to label %76 unwind label %80

76:                                               ; preds = %75
  invoke void @_ZNK7testing8internal12AssertHelperaSERKNS_7MessageE(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %11)
          to label %77 unwind label %82

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

78:                                               ; preds = %72
  %79 = landingpad { ptr, i32 }
          cleanup
  br label %85

80:                                               ; preds = %75, %73
  %81 = landingpad { ptr, i32 }
          cleanup
  br label %84

82:                                               ; preds = %76
  %83 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7testing8internal12AssertHelperD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %12) #8
  br label %84

84:                                               ; preds = %82, %80
  %.pn = phi { ptr, i32 } [ %83, %82 ], [ %81, %80 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #8
  call void @_ZN7testing7MessageD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %11) #8
  br label %85

85:                                               ; preds = %84, %78
  %.pn.pn = phi { ptr, i32 } [ %.pn, %84 ], [ %79, %78 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #8
  call void @_ZN7testing15AssertionResultD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %8) #8
  br label %93

86:                                               ; preds = %68, %77
  call void @_ZN7testing15AssertionResultD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %8) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #8
  call void @_ZN7testing8internal12NotificationD2Ev(ptr noundef nonnull align 8 dereferenceable(41) %6) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %6) #8
  %87 = getelementptr inbounds i8, ptr %5, i64 48
  call void @_ZNSt10unique_ptrIN7testing8internal15ThreadWithParamISt4pairIPNS1_22AtomicCounterWithMutexEiEEESt14default_deleteIS7_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %87) #8
  %88 = getelementptr inbounds i8, ptr %5, i64 40
  call void @_ZNSt10unique_ptrIN7testing8internal15ThreadWithParamISt4pairIPNS1_22AtomicCounterWithMutexEiEEESt14default_deleteIS7_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %88) #8
  %89 = getelementptr inbounds i8, ptr %5, i64 32
  call void @_ZNSt10unique_ptrIN7testing8internal15ThreadWithParamISt4pairIPNS1_22AtomicCounterWithMutexEiEEESt14default_deleteIS7_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %89) #8
  %90 = getelementptr inbounds i8, ptr %5, i64 24
  call void @_ZNSt10unique_ptrIN7testing8internal15ThreadWithParamISt4pairIPNS1_22AtomicCounterWithMutexEiEEESt14default_deleteIS7_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %90) #8
  %91 = getelementptr inbounds i8, ptr %5, i64 16
  call void @_ZNSt10unique_ptrIN7testing8internal15ThreadWithParamISt4pairIPNS1_22AtomicCounterWithMutexEiEEESt14default_deleteIS7_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %91) #8
  %92 = getelementptr inbounds i8, ptr %5, i64 8
  call void @_ZNSt10unique_ptrIN7testing8internal15ThreadWithParamISt4pairIPNS1_22AtomicCounterWithMutexEiEEESt14default_deleteIS7_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %92) #8
  call void @_ZNSt10unique_ptrIN7testing8internal15ThreadWithParamISt4pairIPNS1_22AtomicCounterWithMutexEiEEESt14default_deleteIS7_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %5) #8
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %5) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #8
  call void @_ZN7testing8internal5MutexD2Ev(ptr noundef nonnull align 8 dereferenceable(56) %2) #8
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %2) #8
  ret void

93:                                               ; preds = %85, %70
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %85 ], [ %71, %70 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #8
  br label %94

94:                                               ; preds = %48, %50, %93, %66
  %.pn27.pn = phi { ptr, i32 } [ %67, %66 ], [ %.pn.pn.pn, %93 ], [ %51, %50 ], [ %49, %48 ]
  call void @_ZN7testing8internal12NotificationD2Ev(ptr noundef nonnull align 8 dereferenceable(41) %6) #8
  br label %95

95:                                               ; preds = %94, %17
  %.pn27.pn.pn = phi { ptr, i32 } [ %.pn27.pn, %94 ], [ %18, %17 ]
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %6) #8
  %96 = getelementptr inbounds i8, ptr %5, i64 48
  call void @_ZNSt10unique_ptrIN7testing8internal15ThreadWithParamISt4pairIPNS1_22AtomicCounterWithMutexEiEEESt14default_deleteIS7_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %96) #8
  %97 = getelementptr inbounds i8, ptr %5, i64 40
  call void @_ZNSt10unique_ptrIN7testing8internal15ThreadWithParamISt4pairIPNS1_22AtomicCounterWithMutexEiEEESt14default_deleteIS7_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %97) #8
  %98 = getelementptr inbounds i8, ptr %5, i64 32
  call void @_ZNSt10unique_ptrIN7testing8internal15ThreadWithParamISt4pairIPNS1_22AtomicCounterWithMutexEiEEESt14default_deleteIS7_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %98) #8
  %99 = getelementptr inbounds i8, ptr %5, i64 24
  call void @_ZNSt10unique_ptrIN7testing8internal15ThreadWithParamISt4pairIPNS1_22AtomicCounterWithMutexEiEEESt14default_deleteIS7_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %99) #8
  %100 = getelementptr inbounds i8, ptr %5, i64 16
  call void @_ZNSt10unique_ptrIN7testing8internal15ThreadWithParamISt4pairIPNS1_22AtomicCounterWithMutexEiEEESt14default_deleteIS7_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %100) #8
  %101 = getelementptr inbounds i8, ptr %5, i64 8
  call void @_ZNSt10unique_ptrIN7testing8internal15ThreadWithParamISt4pairIPNS1_22AtomicCounterWithMutexEiEEESt14default_deleteIS7_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %101) #8
  call void @_ZNSt10unique_ptrIN7testing8internal15ThreadWithParamISt4pairIPNS1_22AtomicCounterWithMutexEiEEESt14default_deleteIS7_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %5) #8
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %5) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #8
  br label %102

102:                                              ; preds = %95, %15
  %.pn27.pn.pn.pn = phi { ptr, i32 } [ %.pn27.pn.pn, %95 ], [ %16, %15 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #8
  call void @_ZN7testing8internal5MutexD2Ev(ptr noundef nonnull align 8 dereferenceable(56) %2) #8
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %2) #8
  resume { ptr, i32 } %.pn27.pn.pn.pn
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7testing8internal22AtomicCounterWithMutexC2EPNS0_5MutexE(ptr noundef nonnull align 8 dereferenceable(20), ptr noundef) unnamed_addr #7 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7testing8internal12NotificationC2Ev(ptr noundef nonnull align 8 dereferenceable(41)) unnamed_addr #7 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i32 } @_ZSt9make_pairIPN7testing8internal22AtomicCounterWithMutexERKiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS7_INS8_IT0_E4typeEE6__typeEEOS9_OSE_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #7

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7testing8internal15ThreadWithParamISt4pairIPNS0_22AtomicCounterWithMutexEiEEC2EPFvS5_ES5_PNS0_12NotificationE(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef, ptr, i32, ptr noundef) unnamed_addr #7 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7testing8internal12Notification6NotifyEv(ptr noundef nonnull align 8 dereferenceable(41)) local_unnamed_addr #3 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7testing8internal15ThreadWithParamISt4pairIPNS0_22AtomicCounterWithMutexEiEE4JoinEv(ptr noundef nonnull align 8 dereferenceable(56)) local_unnamed_addr #7 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK7testing8internal22AtomicCounterWithMutex5valueEv(ptr noundef nonnull align 8 dereferenceable(20)) local_unnamed_addr #3 align 2

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nobuiltin allocsize(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 = { nobuiltin 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 #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 = { "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 "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 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 #7 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { nounwind }
attributes #9 = { builtin allocsize(0) }
attributes #10 = { builtin 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"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}


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