; LLVM IR from pictools/pica :: test/gtest/fused-src/gtest (gtest-all)

; 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::Message" = type { %"class.testing::internal::scoped_ptr" }
%"class.testing::internal::scoped_ptr" = type { ptr }
%"class.testing::internal::GTestMutexLock" = type { 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::TestPartResult" = type { i32, %"class.testing::internal::String", i32, %"class.testing::internal::String", %"class.testing::internal::String" }
%"class.testing::internal::String" = type { ptr, i64 }
%"class.testing::UnitTest" = type { ptr, %"class.testing::internal::Mutex", ptr }
%"class.testing::internal::Mutex" = type { %"class.testing::internal::MutexBase" }
%"class.testing::internal::MutexBase" = type { %union.pthread_mutex_t, 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 }
%"struct.testing::internal::TraceInfo" = type { ptr, i32, %"class.testing::internal::String" }

@_ZN7testing8internal17kStackTraceMarkerE = external dso_local constant [15 x i8], align 1
@_ZN7testing28FLAGS_gtest_break_on_failureE = external dso_local global i8, align 1
@_ZN7testing28FLAGS_gtest_throw_on_failureE = external dso_local global i8, align 1
@.str.42 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.91 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.204 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.213 = external hidden unnamed_addr constant [8 x i8], align 1
@_ZTIN7testing26GoogleTestFailureExceptionE = external dso_local constant { ptr, ptr, ptr }, align 8

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

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7testing8UnitTest17AddTestPartResultENS_14TestPartResult4TypeEPKciRKNS_8internal6StringES8_(ptr noundef nonnull align 8 dereferenceable(64) %0, i32 noundef %1, ptr noundef %2, i32 noundef %3, ptr noundef nonnull align 8 dereferenceable(16) %4, ptr noundef nonnull align 8 dereferenceable(16) %5) #2 align 2 personality ptr @__gxx_personality_v0 {
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca %"class.testing::Message", align 8
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca %"class.testing::internal::GTestMutexLock", align 8
  %17 = alloca i32, align 4
  %18 = alloca ptr, align 8
  %19 = alloca %"class.std::__cxx11::basic_string", align 8
  %20 = alloca %"class.testing::TestPartResult", align 8
  %21 = alloca %"class.testing::internal::String", align 8
  store ptr %0, ptr %7, align 8, !tbaa !5
  store i32 %1, ptr %8, align 4, !tbaa !9
  store ptr %2, ptr %9, align 8, !tbaa !5
  store i32 %3, ptr %10, align 4, !tbaa !11
  store ptr %4, ptr %11, align 8, !tbaa !5
  store ptr %5, ptr %12, align 8, !tbaa !5
  %22 = load ptr, ptr %7, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  call void @_ZN7testing7MessageC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %13)
  %23 = load ptr, ptr %11, align 8, !tbaa !5
  %24 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7testing7MessagelsINS_8internal6StringEEERS0_RKT_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(16) %23)
          to label %25 unwind label %51

25:                                               ; preds = %6
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  %26 = getelementptr inbounds %"class.testing::UnitTest", ptr %22, i32 0, i32 1
  invoke void @_ZN7testing8internal14GTestMutexLockC2EPNS0_9MutexBaseE(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef %26)
          to label %27 unwind label %55

27:                                               ; preds = %25
  %28 = getelementptr inbounds %"class.testing::UnitTest", ptr %22, i32 0, i32 2
  %29 = load ptr, ptr %28, align 8, !tbaa !13
  %30 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN7testing8internal12UnitTestImpl17gtest_trace_stackEv(ptr noundef nonnull align 8 dereferenceable(473) %29)
          to label %31 unwind label %59

31:                                               ; preds = %27
  %32 = call noundef i64 @_ZNKSt6vectorIN7testing8internal9TraceInfoESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %30) #6
  %33 = icmp ugt i64 %32, 0
  br i1 %33, label %34, label %112

34:                                               ; preds = %31
  %35 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7testing7MessagelsIA2_cEERS0_RKT_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 1 dereferenceable(2) @.str.42)
          to label %36 unwind label %59

36:                                               ; preds = %34
  %37 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7testing7MessagelsIA12_cEERS0_RKT_(ptr noundef nonnull align 8 dereferenceable(8) %35, ptr noundef nonnull align 1 dereferenceable(12) @.str.91)
          to label %38 unwind label %59

38:                                               ; preds = %36
  %39 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7testing7MessagelsIA8_cEERS0_RKT_(ptr noundef nonnull align 8 dereferenceable(8) %37, ptr noundef nonnull align 1 dereferenceable(8) @.str.213)
          to label %40 unwind label %59

40:                                               ; preds = %38
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  %41 = getelementptr inbounds %"class.testing::UnitTest", ptr %22, i32 0, i32 2
  %42 = load ptr, ptr %41, align 8, !tbaa !13
  %43 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN7testing8internal12UnitTestImpl17gtest_trace_stackEv(ptr noundef nonnull align 8 dereferenceable(473) %42)
          to label %44 unwind label %63

44:                                               ; preds = %40
  %45 = call noundef i64 @_ZNKSt6vectorIN7testing8internal9TraceInfoESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %43) #6
  %46 = trunc i64 %45 to i32
  store i32 %46, ptr %17, align 4, !tbaa !11
  br label %47

47:                                               ; preds = %93, %44
  %48 = load i32, ptr %17, align 4, !tbaa !11
  %49 = icmp sgt i32 %48, 0
  br i1 %49, label %67, label %50

50:                                               ; preds = %47
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  br label %111

51:                                               ; preds = %6
  %52 = landingpad { ptr, i32 }
          cleanup
  %53 = extractvalue { ptr, i32 } %52, 0
  store ptr %53, ptr %14, align 8
  %54 = extractvalue { ptr, i32 } %52, 1
  store i32 %54, ptr %15, align 4
  br label %179

55:                                               ; preds = %25
  %56 = landingpad { ptr, i32 }
          cleanup
  %57 = extractvalue { ptr, i32 } %56, 0
  store ptr %57, ptr %14, align 8
  %58 = extractvalue { ptr, i32 } %56, 1
  store i32 %58, ptr %15, align 4
  br label %178

59:                                               ; preds = %123, %121, %117, %112, %38, %36, %34, %27
  %60 = landingpad { ptr, i32 }
          cleanup
  %61 = extractvalue { ptr, i32 } %60, 0
  store ptr %61, ptr %14, align 8
  %62 = extractvalue { ptr, i32 } %60, 1
  store i32 %62, ptr %15, align 4
  br label %177

63:                                               ; preds = %40
  %64 = landingpad { ptr, i32 }
          cleanup
  %65 = extractvalue { ptr, i32 } %64, 0
  store ptr %65, ptr %14, align 8
  %66 = extractvalue { ptr, i32 } %64, 1
  store i32 %66, ptr %15, align 4
  br label %110

67:                                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  %68 = getelementptr inbounds %"class.testing::UnitTest", ptr %22, i32 0, i32 2
  %69 = load ptr, ptr %68, align 8, !tbaa !13
  %70 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN7testing8internal12UnitTestImpl17gtest_trace_stackEv(ptr noundef nonnull align 8 dereferenceable(473) %69)
          to label %71 unwind label %96

71:                                               ; preds = %67
  %72 = load i32, ptr %17, align 4, !tbaa !11
  %73 = sub nsw i32 %72, 1
  %74 = sext i32 %73 to i64
  %75 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorIN7testing8internal9TraceInfoESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %70, i64 noundef %74) #6
  store ptr %75, ptr %18, align 8, !tbaa !5
  %76 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7testing7MessagelsIA2_cEERS0_RKT_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 1 dereferenceable(2) @.str.42)
          to label %77 unwind label %96

77:                                               ; preds = %71
  call void @llvm.lifetime.start.p0(i64 32, ptr %19) #6
  %78 = load ptr, ptr %18, align 8, !tbaa !5
  %79 = getelementptr inbounds %"struct.testing::internal::TraceInfo", ptr %78, i32 0, i32 0
  %80 = load ptr, ptr %79, align 8, !tbaa !18
  %81 = load ptr, ptr %18, align 8, !tbaa !5
  %82 = getelementptr inbounds %"struct.testing::internal::TraceInfo", ptr %81, i32 0, i32 1
  %83 = load i32, ptr %82, align 8, !tbaa !21
  invoke void @_ZN7testing8internal18FormatFileLocationB5cxx11EPKci(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %19, ptr noundef %80, i32 noundef %83)
          to label %84 unwind label %100

84:                                               ; preds = %77
  %85 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7testing7MessagelsINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEERS0_RKT_(ptr noundef nonnull align 8 dereferenceable(8) %76, ptr noundef nonnull align 8 dereferenceable(32) %19)
          to label %86 unwind label %104

86:                                               ; preds = %84
  %87 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7testing7MessagelsIA2_cEERS0_RKT_(ptr noundef nonnull align 8 dereferenceable(8) %85, ptr noundef nonnull align 1 dereferenceable(2) @.str.204)
          to label %88 unwind label %104

88:                                               ; preds = %86
  %89 = load ptr, ptr %18, align 8, !tbaa !5
  %90 = getelementptr inbounds %"struct.testing::internal::TraceInfo", ptr %89, i32 0, i32 2
  %91 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7testing7MessagelsINS_8internal6StringEEERS0_RKT_(ptr noundef nonnull align 8 dereferenceable(8) %87, ptr noundef nonnull align 8 dereferenceable(16) %90)
          to label %92 unwind label %104

92:                                               ; preds = %88
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  br label %93

93:                                               ; preds = %92
  %94 = load i32, ptr %17, align 4, !tbaa !11
  %95 = add nsw i32 %94, -1
  store i32 %95, ptr %17, align 4, !tbaa !11
  br label %47, !llvm.loop !22

96:                                               ; preds = %71, %67
  %97 = landingpad { ptr, i32 }
          cleanup
  %98 = extractvalue { ptr, i32 } %97, 0
  store ptr %98, ptr %14, align 8
  %99 = extractvalue { ptr, i32 } %97, 1
  store i32 %99, ptr %15, align 4
  br label %109

100:                                              ; preds = %77
  %101 = landingpad { ptr, i32 }
          cleanup
  %102 = extractvalue { ptr, i32 } %101, 0
  store ptr %102, ptr %14, align 8
  %103 = extractvalue { ptr, i32 } %101, 1
  store i32 %103, ptr %15, align 4
  br label %108

104:                                              ; preds = %88, %86, %84
  %105 = landingpad { ptr, i32 }
          cleanup
  %106 = extractvalue { ptr, i32 } %105, 0
  store ptr %106, ptr %14, align 8
  %107 = extractvalue { ptr, i32 } %105, 1
  store i32 %107, ptr %15, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #6
  br label %108

108:                                              ; preds = %104, %100
  call void @llvm.lifetime.end.p0(i64 32, ptr %19) #6
  br label %109

109:                                              ; preds = %108, %96
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  br label %110

110:                                              ; preds = %109, %63
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  br label %177

111:                                              ; preds = %50
  br label %112

112:                                              ; preds = %111, %31
  %113 = load ptr, ptr %12, align 8, !tbaa !5
  %114 = invoke noundef ptr @_ZNK7testing8internal6String5c_strEv(ptr noundef nonnull align 8 dereferenceable(16) %113)
          to label %115 unwind label %59

115:                                              ; preds = %112
  %116 = icmp ne ptr %114, null
  br i1 %116, label %117, label %127

117:                                              ; preds = %115
  %118 = load ptr, ptr %12, align 8, !tbaa !5
  %119 = invoke noundef zeroext i1 @_ZNK7testing8internal6String5emptyEv(ptr noundef nonnull align 8 dereferenceable(16) %118)
          to label %120 unwind label %59

120:                                              ; preds = %117
  br i1 %119, label %127, label %121

121:                                              ; preds = %120
  %122 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7testing7MessagelsIA15_cEERS0_RKT_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 1 dereferenceable(15) @_ZN7testing8internal17kStackTraceMarkerE)
          to label %123 unwind label %59

123:                                              ; preds = %121
  %124 = load ptr, ptr %12, align 8, !tbaa !5
  %125 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7testing7MessagelsINS_8internal6StringEEERS0_RKT_(ptr noundef nonnull align 8 dereferenceable(8) %122, ptr noundef nonnull align 8 dereferenceable(16) %124)
          to label %126 unwind label %59

126:                                              ; preds = %123
  br label %127

127:                                              ; preds = %126, %120, %115
  call void @llvm.lifetime.start.p0(i64 64, ptr %20) #6
  %128 = load i32, ptr %8, align 4, !tbaa !9
  %129 = load ptr, ptr %9, align 8, !tbaa !5
  %130 = load i32, ptr %10, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #6
  invoke void @_ZNK7testing7Message9GetStringEv(ptr dead_on_unwind writable sret(%"class.testing::internal::String") align 8 %21, ptr noundef nonnull align 8 dereferenceable(8) %13)
          to label %131 unwind label %149

131:                                              ; preds = %127
  %132 = invoke noundef ptr @_ZNK7testing8internal6String5c_strEv(ptr noundef nonnull align 8 dereferenceable(16) %21)
          to label %133 unwind label %153

133:                                              ; preds = %131
  invoke void @_ZN7testing14TestPartResultC2ENS0_4TypeEPKciS3_(ptr noundef nonnull align 8 dereferenceable(64) %20, i32 noundef %128, ptr noundef %129, i32 noundef %130, ptr noundef %132)
          to label %134 unwind label %153

134:                                              ; preds = %133
  call void @_ZN7testing8internal6StringD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %21) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #6
  %135 = getelementptr inbounds %"class.testing::UnitTest", ptr %22, i32 0, i32 2
  %136 = load ptr, ptr %135, align 8, !tbaa !13
  %137 = invoke noundef ptr @_ZN7testing8internal12UnitTestImpl41GetTestPartResultReporterForCurrentThreadEv(ptr noundef nonnull align 8 dereferenceable(473) %136)
          to label %138 unwind label %158

138:                                              ; preds = %134
  %139 = load ptr, ptr %137, align 8, !tbaa !24
  %140 = getelementptr inbounds ptr, ptr %139, i64 2
  %141 = load ptr, ptr %140, align 8
  invoke void %141(ptr noundef nonnull align 8 dereferenceable(8) %137, ptr noundef nonnull align 8 dereferenceable(64) %20)
          to label %142 unwind label %158

142:                                              ; preds = %138
  %143 = load i32, ptr %8, align 4, !tbaa !9
  %144 = icmp ne i32 %143, 0
  br i1 %144, label %145, label %174

145:                                              ; preds = %142
  %146 = load i8, ptr @_ZN7testing28FLAGS_gtest_break_on_failureE, align 1, !tbaa !26, !range !28, !noundef !29
  %147 = trunc i8 %146 to i1
  br i1 %147, label %148, label %162

148:                                              ; preds = %145
  store volatile i32 1, ptr null, align 4, !tbaa !11
  br label %173

149:                                              ; preds = %127
  %150 = landingpad { ptr, i32 }
          cleanup
  %151 = extractvalue { ptr, i32 } %150, 0
  store ptr %151, ptr %14, align 8
  %152 = extractvalue { ptr, i32 } %150, 1
  store i32 %152, ptr %15, align 4
  br label %157

153:                                              ; preds = %133, %131
  %154 = landingpad { ptr, i32 }
          cleanup
  %155 = extractvalue { ptr, i32 } %154, 0
  store ptr %155, ptr %14, align 8
  %156 = extractvalue { ptr, i32 } %154, 1
  store i32 %156, ptr %15, align 4
  call void @_ZN7testing8internal6StringD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %21) #6
  br label %157

157:                                              ; preds = %153, %149
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #6
  br label %176

158:                                              ; preds = %167, %138, %134
  %159 = landingpad { ptr, i32 }
          cleanup
  %160 = extractvalue { ptr, i32 } %159, 0
  store ptr %160, ptr %14, align 8
  %161 = extractvalue { ptr, i32 } %159, 1
  store i32 %161, ptr %15, align 4
  br label %175

162:                                              ; preds = %145
  %163 = load i8, ptr @_ZN7testing28FLAGS_gtest_throw_on_failureE, align 1, !tbaa !26, !range !28, !noundef !29
  %164 = trunc i8 %163 to i1
  br i1 %164, label %165, label %172

165:                                              ; preds = %162
  %166 = call ptr @__cxa_allocate_exception(i64 16) #6
  invoke void @_ZN7testing26GoogleTestFailureExceptionC2ERKNS_14TestPartResultE(ptr noundef nonnull align 8 dereferenceable(16) %166, ptr noundef nonnull align 8 dereferenceable(64) %20)
          to label %167 unwind label %168

167:                                              ; preds = %165
  invoke void @__cxa_throw(ptr %166, ptr @_ZTIN7testing26GoogleTestFailureExceptionE, ptr @_ZNSt13runtime_errorD2Ev) #7
          to label %185 unwind label %158

168:                                              ; preds = %165
  %169 = landingpad { ptr, i32 }
          cleanup
  %170 = extractvalue { ptr, i32 } %169, 0
  store ptr %170, ptr %14, align 8
  %171 = extractvalue { ptr, i32 } %169, 1
  store i32 %171, ptr %15, align 4
  call void @__cxa_free_exception(ptr %166) #6
  br label %175

172:                                              ; preds = %162
  br label %173

173:                                              ; preds = %172, %148
  br label %174

174:                                              ; preds = %173, %142
  call void @_ZN7testing14TestPartResultD2Ev(ptr noundef nonnull align 8 dereferenceable(64) %20) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr %20) #6
  call void @_ZN7testing8internal14GTestMutexLockD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  call void @_ZN7testing7MessageD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  ret void

175:                                              ; preds = %168, %158
  call void @_ZN7testing14TestPartResultD2Ev(ptr noundef nonnull align 8 dereferenceable(64) %20) #6
  br label %176

176:                                              ; preds = %175, %157
  call void @llvm.lifetime.end.p0(i64 64, ptr %20) #6
  br label %177

177:                                              ; preds = %176, %110, %59
  call void @_ZN7testing8internal14GTestMutexLockD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %16) #6
  br label %178

178:                                              ; preds = %177, %55
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  br label %179

179:                                              ; preds = %178, %51
  call void @_ZN7testing7MessageD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  br label %180

180:                                              ; preds = %179
  %181 = load ptr, ptr %14, align 8
  %182 = load i32, ptr %15, align 4
  %183 = insertvalue { ptr, i32 } poison, ptr %181, 0
  %184 = insertvalue { ptr, i32 } %183, i32 %182, 1
  resume { ptr, i32 } %184

185:                                              ; preds = %167
  unreachable
}

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN7testing8internal12UnitTestImpl41GetTestPartResultReporterForCurrentThreadEv(ptr noundef nonnull align 8 dereferenceable(473)) #2 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN7testing7MessagelsINS_8internal6StringEEERS0_RKT_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(16)) #3 align 2

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN7testing7MessagelsIA12_cEERS0_RKT_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 1 dereferenceable(12)) #3 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7testing8internal18FormatFileLocationB5cxx11EPKci(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef, i32 noundef) #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZN7testing8internal12UnitTestImpl17gtest_trace_stackEv(ptr noundef nonnull align 8 dereferenceable(473)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIN7testing8internal9TraceInfoESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #0 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorIN7testing8internal9TraceInfoESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #0 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)) #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN7testing7MessagelsIA15_cEERS0_RKT_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 1 dereferenceable(15)) #3 align 2

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

declare ptr @__cxa_allocate_exception(i64)

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7testing26GoogleTestFailureExceptionC2ERKNS_14TestPartResultE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(64)) unnamed_addr #2 align 2

declare void @__cxa_free_exception(ptr)

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

declare void @__cxa_throw(ptr, ptr, ptr)

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

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { 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 #4 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind }
attributes #7 = { noreturn }

!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 = !{!"_ZTSN7testing14TestPartResult4TypeE", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !6, i64 56}
!14 = !{!"_ZTSN7testing8UnitTestE", !15, i64 8, !6, i64 56}
!15 = !{!"_ZTSN7testing8internal5MutexE", !16, i64 0}
!16 = !{!"_ZTSN7testing8internal9MutexBaseE", !7, i64 0, !17, i64 40}
!17 = !{!"long", !7, i64 0}
!18 = !{!19, !6, i64 0}
!19 = !{!"_ZTSN7testing8internal9TraceInfoE", !6, i64 0, !12, i64 8, !20, i64 16}
!20 = !{!"_ZTSN7testing8internal6StringE", !6, i64 0, !17, i64 8}
!21 = !{!19, !12, i64 8}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}
!24 = !{!25, !25, i64 0}
!25 = !{!"vtable pointer", !8, i64 0}
!26 = !{!27, !27, i64 0}
!27 = !{!"bool", !7, i64 0}
!28 = !{i8 0, i8 2}
!29 = !{}


; 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::Message" = type { %"class.testing::internal::scoped_ptr" }
%"class.testing::internal::scoped_ptr" = type { ptr }
%"class.testing::internal::GTestMutexLock" = type { 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::TestPartResult" = type { i32, %"class.testing::internal::String", i32, %"class.testing::internal::String", %"class.testing::internal::String" }
%"class.testing::internal::String" = type { ptr, i64 }

@_ZN7testing8internal17kStackTraceMarkerE = external dso_local constant [15 x i8], align 1
@_ZN7testing28FLAGS_gtest_break_on_failureE = external dso_local local_unnamed_addr global i8, align 1
@_ZN7testing28FLAGS_gtest_throw_on_failureE = external dso_local local_unnamed_addr global i8, align 1
@.str.42 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.91 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.204 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.213 = external hidden unnamed_addr constant [8 x i8], align 1
@_ZTIN7testing26GoogleTestFailureExceptionE = external dso_local constant { ptr, ptr, ptr }, align 8

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

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7testing8UnitTest17AddTestPartResultENS_14TestPartResult4TypeEPKciRKNS_8internal6StringES8_(ptr noundef nonnull align 8 dereferenceable(64) %0, i32 noundef %1, ptr noundef %2, i32 noundef %3, ptr noundef nonnull align 8 dereferenceable(16) %4, ptr noundef nonnull align 8 dereferenceable(16) %5) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %7 = alloca %"class.testing::Message", align 8
  %8 = alloca %"class.testing::internal::GTestMutexLock", align 8
  %9 = alloca %"class.std::__cxx11::basic_string", align 8
  %10 = alloca %"class.testing::TestPartResult", align 8
  %11 = alloca %"class.testing::internal::String", align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #6
  call void @_ZN7testing7MessageC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7)
  %12 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7testing7MessagelsINS_8internal6StringEEERS0_RKT_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(16) %4)
          to label %13 unwind label %35

13:                                               ; preds = %6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #6
  %14 = getelementptr inbounds i8, ptr %0, i64 8
  invoke void @_ZN7testing8internal14GTestMutexLockC2EPNS0_9MutexBaseE(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull %14)
          to label %15 unwind label %37

15:                                               ; preds = %13
  %16 = getelementptr inbounds i8, ptr %0, i64 56
  %17 = load ptr, ptr %16, align 8, !tbaa !5
  %18 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN7testing8internal12UnitTestImpl17gtest_trace_stackEv(ptr noundef nonnull align 8 dereferenceable(473) %17)
          to label %19 unwind label %39

19:                                               ; preds = %15
  %20 = call noundef i64 @_ZNKSt6vectorIN7testing8internal9TraceInfoESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %18) #6
  %.not = icmp eq i64 %20, 0
  br i1 %.not, label %.loopexit, label %21

21:                                               ; preds = %19
  %22 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7testing7MessagelsIA2_cEERS0_RKT_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 1 dereferenceable(2) @.str.42)
          to label %23 unwind label %39

23:                                               ; preds = %21
  %24 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7testing7MessagelsIA12_cEERS0_RKT_(ptr noundef nonnull align 8 dereferenceable(8) %22, ptr noundef nonnull align 1 dereferenceable(12) @.str.91)
          to label %25 unwind label %39

25:                                               ; preds = %23
  %26 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7testing7MessagelsIA8_cEERS0_RKT_(ptr noundef nonnull align 8 dereferenceable(8) %24, ptr noundef nonnull align 1 dereferenceable(8) @.str.213)
          to label %27 unwind label %39

27:                                               ; preds = %25
  %28 = load ptr, ptr %16, align 8, !tbaa !5
  %29 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN7testing8internal12UnitTestImpl17gtest_trace_stackEv(ptr noundef nonnull align 8 dereferenceable(473) %28)
          to label %30 unwind label %41

30:                                               ; preds = %27
  %31 = call noundef i64 @_ZNKSt6vectorIN7testing8internal9TraceInfoESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %29) #6
  %32 = trunc i64 %31 to i32
  %33 = icmp sgt i32 %32, 0
  br i1 %33, label %.lr.ph.preheader, label %.loopexit

.lr.ph.preheader:                                 ; preds = %30
  %34 = and i64 %31, 2147483647
  br label %.lr.ph

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

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

39:                                               ; preds = %74, %72, %69, %25, %23, %21, %15
  %40 = landingpad { ptr, i32 }
          cleanup
  br label %109

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

.lr.ph:                                           ; preds = %.lr.ph.preheader, %59
  %indvars.iv = phi i64 [ %34, %.lr.ph.preheader ], [ %indvars.iv.next, %59 ]
  %43 = load ptr, ptr %16, align 8, !tbaa !5
  %44 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN7testing8internal12UnitTestImpl17gtest_trace_stackEv(ptr noundef nonnull align 8 dereferenceable(473) %43)
          to label %45 unwind label %61

45:                                               ; preds = %.lr.ph
  %indvars.iv.next = add nsw i64 %indvars.iv, -1
  %46 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorIN7testing8internal9TraceInfoESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %44, i64 noundef %indvars.iv.next) #6
  %47 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7testing7MessagelsIA2_cEERS0_RKT_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 1 dereferenceable(2) @.str.42)
          to label %48 unwind label %61

48:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %9) #6
  %49 = load ptr, ptr %46, align 8, !tbaa !13
  %50 = getelementptr inbounds i8, ptr %46, i64 8
  %51 = load i32, ptr %50, align 8, !tbaa !17
  invoke void @_ZN7testing8internal18FormatFileLocationB5cxx11EPKci(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %9, ptr noundef %49, i32 noundef %51)
          to label %52 unwind label %63

52:                                               ; preds = %48
  %53 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7testing7MessagelsINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEERS0_RKT_(ptr noundef nonnull align 8 dereferenceable(8) %47, ptr noundef nonnull align 8 dereferenceable(32) %9)
          to label %54 unwind label %65

54:                                               ; preds = %52
  %55 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7testing7MessagelsIA2_cEERS0_RKT_(ptr noundef nonnull align 8 dereferenceable(8) %53, ptr noundef nonnull align 1 dereferenceable(2) @.str.204)
          to label %56 unwind label %65

56:                                               ; preds = %54
  %57 = getelementptr inbounds i8, ptr %46, i64 16
  %58 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7testing7MessagelsINS_8internal6StringEEERS0_RKT_(ptr noundef nonnull align 8 dereferenceable(8) %55, ptr noundef nonnull align 8 dereferenceable(16) %57)
          to label %59 unwind label %65

59:                                               ; preds = %56
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #6
  %60 = icmp ugt i64 %indvars.iv, 1
  br i1 %60, label %.lr.ph, label %.loopexit, !llvm.loop !18

61:                                               ; preds = %45, %.lr.ph
  %62 = landingpad { ptr, i32 }
          cleanup
  br label %109

63:                                               ; preds = %48
  %64 = landingpad { ptr, i32 }
          cleanup
  br label %67

65:                                               ; preds = %56, %54, %52
  %66 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #6
  br label %67

67:                                               ; preds = %65, %63
  %.pn32 = phi { ptr, i32 } [ %66, %65 ], [ %64, %63 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #6
  br label %109

.loopexit:                                        ; preds = %59, %30, %19
  %68 = call noundef ptr @_ZNK7testing8internal6String5c_strEv(ptr noundef nonnull align 8 dereferenceable(16) %5)
  %.not26 = icmp eq ptr %68, null
  br i1 %.not26, label %76, label %69

69:                                               ; preds = %.loopexit
  %70 = invoke noundef zeroext i1 @_ZNK7testing8internal6String5emptyEv(ptr noundef nonnull align 8 dereferenceable(16) %5)
          to label %71 unwind label %39

71:                                               ; preds = %69
  br i1 %70, label %76, label %72

72:                                               ; preds = %71
  %73 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7testing7MessagelsIA15_cEERS0_RKT_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 1 dereferenceable(15) @_ZN7testing8internal17kStackTraceMarkerE)
          to label %74 unwind label %39

74:                                               ; preds = %72
  %75 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7testing7MessagelsINS_8internal6StringEEERS0_RKT_(ptr noundef nonnull align 8 dereferenceable(8) %73, ptr noundef nonnull align 8 dereferenceable(16) %5)
          to label %76 unwind label %39

76:                                               ; preds = %74, %71, %.loopexit
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %10) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #6
  invoke void @_ZNK7testing7Message9GetStringEv(ptr dead_on_unwind nonnull writable sret(%"class.testing::internal::String") align 8 %11, ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %77 unwind label %91

77:                                               ; preds = %76
  %78 = call noundef ptr @_ZNK7testing8internal6String5c_strEv(ptr noundef nonnull align 8 dereferenceable(16) %11)
  invoke void @_ZN7testing14TestPartResultC2ENS0_4TypeEPKciS3_(ptr noundef nonnull align 8 dereferenceable(64) %10, i32 noundef %1, ptr noundef %2, i32 noundef %3, ptr noundef %78)
          to label %79 unwind label %93

79:                                               ; preds = %77
  call void @_ZN7testing8internal6StringD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %11) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #6
  %80 = load ptr, ptr %16, align 8, !tbaa !5
  %81 = invoke noundef ptr @_ZN7testing8internal12UnitTestImpl41GetTestPartResultReporterForCurrentThreadEv(ptr noundef nonnull align 8 dereferenceable(473) %80)
          to label %82 unwind label %96

82:                                               ; preds = %79
  %83 = load ptr, ptr %81, align 8, !tbaa !20
  %84 = getelementptr inbounds i8, ptr %83, i64 16
  %85 = load ptr, ptr %84, align 8
  invoke void %85(ptr noundef nonnull align 8 dereferenceable(8) %81, ptr noundef nonnull align 8 dereferenceable(64) %10)
          to label %86 unwind label %96

86:                                               ; preds = %82
  %.not28 = icmp eq i32 %1, 0
  br i1 %.not28, label %106, label %87

87:                                               ; preds = %86
  %88 = load i8, ptr @_ZN7testing28FLAGS_gtest_break_on_failureE, align 1, !tbaa !22, !range !24, !noundef !25
  %89 = trunc nuw i8 %88 to i1
  br i1 %89, label %90, label %98

90:                                               ; preds = %87
  store volatile i32 1, ptr null, align 4294967296, !tbaa !26
  br label %106

91:                                               ; preds = %76
  %92 = landingpad { ptr, i32 }
          cleanup
  br label %95

93:                                               ; preds = %77
  %94 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7testing8internal6StringD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %11) #6
  br label %95

95:                                               ; preds = %93, %91
  %.pn = phi { ptr, i32 } [ %94, %93 ], [ %92, %91 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #6
  br label %108

96:                                               ; preds = %103, %82, %79
  %97 = landingpad { ptr, i32 }
          cleanup
  br label %107

98:                                               ; preds = %87
  %99 = load i8, ptr @_ZN7testing28FLAGS_gtest_throw_on_failureE, align 1, !tbaa !22, !range !24, !noundef !25
  %100 = trunc nuw i8 %99 to i1
  br i1 %100, label %101, label %106

101:                                              ; preds = %98
  %102 = call ptr @__cxa_allocate_exception(i64 16) #6
  invoke void @_ZN7testing26GoogleTestFailureExceptionC2ERKNS_14TestPartResultE(ptr noundef nonnull align 8 dereferenceable(16) %102, ptr noundef nonnull align 8 dereferenceable(64) %10)
          to label %103 unwind label %104

103:                                              ; preds = %101
  invoke void @__cxa_throw(ptr nonnull %102, ptr nonnull @_ZTIN7testing26GoogleTestFailureExceptionE, ptr nonnull @_ZNSt13runtime_errorD2Ev) #7
          to label %112 unwind label %96

104:                                              ; preds = %101
  %105 = landingpad { ptr, i32 }
          cleanup
  call void @__cxa_free_exception(ptr %102) #6
  br label %107

106:                                              ; preds = %90, %98, %86
  call void @_ZN7testing14TestPartResultD2Ev(ptr noundef nonnull align 8 dereferenceable(64) %10) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %10) #6
  call void @_ZN7testing8internal14GTestMutexLockD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
  call void @_ZN7testing7MessageD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  ret void

107:                                              ; preds = %104, %96
  %.pn29 = phi { ptr, i32 } [ %97, %96 ], [ %105, %104 ]
  call void @_ZN7testing14TestPartResultD2Ev(ptr noundef nonnull align 8 dereferenceable(64) %10) #6
  br label %108

108:                                              ; preds = %107, %95
  %.pn29.pn = phi { ptr, i32 } [ %.pn29, %107 ], [ %.pn, %95 ]
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %10) #6
  br label %109

109:                                              ; preds = %41, %67, %61, %108, %39
  %.pn32.pn.pn.pn = phi { ptr, i32 } [ %.pn29.pn, %108 ], [ %40, %39 ], [ %42, %41 ], [ %.pn32, %67 ], [ %62, %61 ]
  call void @_ZN7testing8internal14GTestMutexLockD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #6
  br label %110

110:                                              ; preds = %109, %37
  %.pn32.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn32.pn.pn.pn, %109 ], [ %38, %37 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
  br label %111

111:                                              ; preds = %110, %35
  %.pn32.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn32.pn.pn.pn.pn, %110 ], [ %36, %35 ]
  call void @_ZN7testing7MessageD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  resume { ptr, i32 } %.pn32.pn.pn.pn.pn.pn

112:                                              ; preds = %103
  unreachable
}

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN7testing7MessagelsINS_8internal6StringEEERS0_RKT_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #3 align 2

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN7testing7MessagelsIA12_cEERS0_RKT_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 1 dereferenceable(12)) local_unnamed_addr #3 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7testing8internal18FormatFileLocationB5cxx11EPKci(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZN7testing8internal12UnitTestImpl17gtest_trace_stackEv(ptr noundef nonnull align 8 dereferenceable(473)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIN7testing8internal9TraceInfoESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorIN7testing8internal9TraceInfoESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #0 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 #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN7testing7MessagelsIA15_cEERS0_RKT_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 1 dereferenceable(15)) local_unnamed_addr #3 align 2

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

declare ptr @__cxa_allocate_exception(i64) local_unnamed_addr

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7testing26GoogleTestFailureExceptionC2ERKNS_14TestPartResultE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(64)) unnamed_addr #2 align 2

declare void @__cxa_free_exception(ptr) local_unnamed_addr

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

declare void @__cxa_throw(ptr, ptr, ptr) local_unnamed_addr

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

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { 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 #4 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind }
attributes #7 = { noreturn }

!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, !12, i64 56}
!6 = !{!"_ZTSN7testing8UnitTestE", !7, i64 8, !12, i64 56}
!7 = !{!"_ZTSN7testing8internal5MutexE", !8, i64 0}
!8 = !{!"_ZTSN7testing8internal9MutexBaseE", !9, i64 0, !11, i64 40}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"long", !9, i64 0}
!12 = !{!"any pointer", !9, i64 0}
!13 = !{!14, !12, i64 0}
!14 = !{!"_ZTSN7testing8internal9TraceInfoE", !12, i64 0, !15, i64 8, !16, i64 16}
!15 = !{!"int", !9, i64 0}
!16 = !{!"_ZTSN7testing8internal6StringE", !12, i64 0, !11, i64 8}
!17 = !{!14, !15, i64 8}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = !{!21, !21, i64 0}
!21 = !{!"vtable pointer", !10, i64 0}
!22 = !{!23, !23, i64 0}
!23 = !{!"bool", !9, i64 0}
!24 = !{i8 0, i8 2}
!25 = !{}
!26 = !{!15, !15, i64 0}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass