; 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::internal::String" = type { ptr, i64 }
%"class.testing::internal::Arguments" = type { %"class.std::vector.60" }
%"class.std::vector.60" = type { %"struct.std::_Vector_base.61" }
%"struct.std::_Vector_base.61" = type { %"struct.std::_Vector_base<char *, std::allocator<char *>>::_Vector_impl" }
%"struct.std::_Vector_base<char *, std::allocator<char *>>::_Vector_impl" = type { %"struct.std::_Vector_base<char *, std::allocator<char *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<char *, std::allocator<char *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.testing::internal::ExecDeathTest" = type <{ %"class.testing::internal::ForkingDeathTest", ptr, i32, [4 x i8] }>
%"class.testing::internal::ForkingDeathTest" = type { %"class.testing::internal::DeathTestImpl.base", i32 }
%"class.testing::internal::DeathTestImpl.base" = type <{ %"class.testing::internal::DeathTest", ptr, ptr, i8, [3 x i8], i32, i32, i32, i32 }>
%"class.testing::internal::DeathTest" = type { ptr }

@.str.13 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [87 x i8], align 1
@.str.231 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.243 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.258 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.259 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.262 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.263 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.264 = external hidden unnamed_addr constant [13 x i8], align 1
@_ZN7testing8internalL11kFilterFlagE = external hidden constant [7 x i8], align 1
@.str.265 = external hidden unnamed_addr constant [19 x i8], align 1
@_ZN7testing8internalL25kInternalRunDeathTestFlagE = external hidden constant [24 x i8], align 16

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN7testing8internal6IsTrueEb(i1 noundef zeroext) #1

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

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) #2

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZN7testing8internal15GetUnitTestImplEv() #3

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

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

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

declare i32 @close(i32 noundef) #4

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK7testing8internal24InternalRunDeathTestFlag8write_fdEv(ptr noundef nonnull align 8 dereferenceable(28)) #1 align 2

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN7testing8internal11AlwaysFalseEv() #3

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

; Function Attrs: nounwind
declare i32 @pipe(ptr noundef) #6

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7testing8internal13CaptureStderrEv() #0

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN7testing8internal12FlushInfoLogEv() #3

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN7testing8internal13ExecDeathTest10AssumeRoleEv(ptr noundef nonnull align 8 dereferenceable(60) %0) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca i32, align 4
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca [2 x i32], align 4
  %10 = alloca %"class.testing::internal::String", align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca %"class.testing::internal::String", align 8
  %14 = alloca %"class.testing::internal::String", align 8
  %15 = alloca %"class.testing::internal::String", align 8
  %16 = alloca %"class.testing::internal::Arguments", align 8
  %17 = alloca %"class.testing::internal::String", align 8
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca %"class.testing::internal::String", align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  %21 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #7
  %22 = call noundef ptr @_ZN7testing8internal15GetUnitTestImplEv()
  store ptr %22, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #7
  %23 = load ptr, ptr %4, align 8, !tbaa !5
  %24 = call noundef ptr @_ZNK7testing8internal12UnitTestImpl28internal_run_death_test_flagEv(ptr noundef nonnull align 8 dereferenceable(473) %23)
  store ptr %24, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #7
  %25 = load ptr, ptr %4, align 8, !tbaa !5
  %26 = call noundef ptr @_ZNK7testing8internal12UnitTestImpl17current_test_infoEv(ptr noundef nonnull align 8 dereferenceable(473) %25)
  store ptr %26, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #7
  %27 = load ptr, ptr %6, align 8, !tbaa !5
  %28 = call noundef ptr @_ZNK7testing8TestInfo6resultEv(ptr noundef nonnull align 8 dereferenceable(216) %27)
  %29 = call noundef i32 @_ZNK7testing10TestResult16death_test_countEv(ptr noundef nonnull align 8 dereferenceable(112) %28)
  store i32 %29, ptr %7, align 4, !tbaa !9
  %30 = load ptr, ptr %5, align 8, !tbaa !5
  %31 = icmp ne ptr %30, null
  br i1 %31, label %32, label %35

32:                                               ; preds = %1
  %33 = load ptr, ptr %5, align 8, !tbaa !5
  %34 = call noundef i32 @_ZNK7testing8internal24InternalRunDeathTestFlag8write_fdEv(ptr noundef nonnull align 8 dereferenceable(28) %33)
  call void @_ZN7testing8internal13DeathTestImpl12set_write_fdEi(ptr noundef nonnull align 8 dereferenceable(44) %21, i32 noundef %34)
  store i32 1, ptr %2, align 4
  store i32 1, ptr %8, align 4
  br label %175

35:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #7
  br label %36

36:                                               ; preds = %48, %35
  %37 = getelementptr inbounds [2 x i32], ptr %9, i64 0, i64 0
  %38 = call i32 @pipe(ptr noundef %37) #7
  %39 = icmp ne i32 %38, -1
  %40 = call noundef zeroext i1 @_ZN7testing8internal6IsTrueEb(i1 noundef zeroext %39)
  br i1 %40, label %47, label %41

41:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #7
  call void (ptr, ptr, ...) @_ZN7testing8internal6String6FormatEPKcz(ptr dead_on_unwind writable sret(%"class.testing::internal::String") align 8 %10, ptr noundef @.str.258, ptr noundef @.str.28, i32 noundef 7201, ptr noundef @.str.259)
  invoke void @_ZN7testing8internal14DeathTestAbortERKNS0_6StringE(ptr noundef nonnull align 8 dereferenceable(16) %10)
          to label %42 unwind label %43

42:                                               ; preds = %41
  call void @_ZN7testing8internal6StringD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %10) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #7
  br label %47

43:                                               ; preds = %41
  %44 = landingpad { ptr, i32 }
          cleanup
  %45 = extractvalue { ptr, i32 } %44, 0
  store ptr %45, ptr %11, align 8
  %46 = extractvalue { ptr, i32 } %44, 1
  store i32 %46, ptr %12, align 4
  call void @_ZN7testing8internal6StringD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %10) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #7
  br label %174

47:                                               ; preds = %42, %36
  br label %48

48:                                               ; preds = %47
  %49 = call noundef zeroext i1 @_ZN7testing8internal11AlwaysFalseEv()
  br i1 %49, label %36, label %50, !llvm.loop !11

50:                                               ; preds = %48
  br label %51

51:                                               ; preds = %64, %50
  %52 = getelementptr inbounds [2 x i32], ptr %9, i64 0, i64 1
  %53 = load i32, ptr %52, align 4, !tbaa !9
  %54 = call i32 (i32, i32, ...) @fcntl(i32 noundef %53, i32 noundef 2, i32 noundef 0)
  %55 = icmp ne i32 %54, -1
  %56 = call noundef zeroext i1 @_ZN7testing8internal6IsTrueEb(i1 noundef zeroext %55)
  br i1 %56, label %63, label %57

57:                                               ; preds = %51
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #7
  call void (ptr, ptr, ...) @_ZN7testing8internal6String6FormatEPKcz(ptr dead_on_unwind writable sret(%"class.testing::internal::String") align 8 %13, ptr noundef @.str.258, ptr noundef @.str.28, i32 noundef 7204, ptr noundef @.str.263)
  invoke void @_ZN7testing8internal14DeathTestAbortERKNS0_6StringE(ptr noundef nonnull align 8 dereferenceable(16) %13)
          to label %58 unwind label %59

58:                                               ; preds = %57
  call void @_ZN7testing8internal6StringD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %13) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #7
  br label %63

59:                                               ; preds = %57
  %60 = landingpad { ptr, i32 }
          cleanup
  %61 = extractvalue { ptr, i32 } %60, 0
  store ptr %61, ptr %11, align 8
  %62 = extractvalue { ptr, i32 } %60, 1
  store i32 %62, ptr %12, align 4
  call void @_ZN7testing8internal6StringD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %13) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #7
  br label %174

63:                                               ; preds = %58, %51
  br label %64

64:                                               ; preds = %63
  %65 = call noundef zeroext i1 @_ZN7testing8internal11AlwaysFalseEv()
  br i1 %65, label %51, label %66, !llvm.loop !13

66:                                               ; preds = %64
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #7
  %67 = load ptr, ptr %6, align 8, !tbaa !5
  %68 = call noundef ptr @_ZNK7testing8TestInfo14test_case_nameEv(ptr noundef nonnull align 8 dereferenceable(216) %67)
  %69 = load ptr, ptr %6, align 8, !tbaa !5
  %70 = call noundef ptr @_ZNK7testing8TestInfo4nameEv(ptr noundef nonnull align 8 dereferenceable(216) %69)
  call void (ptr, ptr, ...) @_ZN7testing8internal6String6FormatEPKcz(ptr dead_on_unwind writable sret(%"class.testing::internal::String") align 8 %14, ptr noundef @.str.264, ptr noundef @.str.231, ptr noundef @_ZN7testing8internalL11kFilterFlagE, ptr noundef %68, ptr noundef %70)
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #7
  %71 = getelementptr inbounds %"class.testing::internal::ExecDeathTest", ptr %21, i32 0, i32 1
  %72 = load ptr, ptr %71, align 8, !tbaa !14
  %73 = getelementptr inbounds %"class.testing::internal::ExecDeathTest", ptr %21, i32 0, i32 2
  %74 = load i32, ptr %73, align 8, !tbaa !21
  %75 = load i32, ptr %7, align 4, !tbaa !9
  %76 = getelementptr inbounds [2 x i32], ptr %9, i64 0, i64 1
  %77 = load i32, ptr %76, align 4, !tbaa !9
  invoke void (ptr, ptr, ...) @_ZN7testing8internal6String6FormatEPKcz(ptr dead_on_unwind writable sret(%"class.testing::internal::String") align 8 %15, ptr noundef @.str.265, ptr noundef @.str.231, ptr noundef @_ZN7testing8internalL25kInternalRunDeathTestFlagE, ptr noundef %72, i32 noundef %74, i32 noundef %75, i32 noundef %77)
          to label %78 unwind label %120

78:                                               ; preds = %66
  call void @llvm.lifetime.start.p0(i64 24, ptr %16) #7
  invoke void @_ZN7testing8internal9ArgumentsC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16)
          to label %79 unwind label %124

79:                                               ; preds = %78
  %80 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN7testing8internal8GetArgvsEv()
          to label %81 unwind label %128

81:                                               ; preds = %79
  invoke void @_ZN7testing8internal9Arguments12AddArgumentsINS0_6StringEEEvRKSt6vectorIT_SaIS5_EE(ptr noundef nonnull align 8 dereferenceable(24) %16, ptr noundef nonnull align 8 dereferenceable(24) %80)
          to label %82 unwind label %128

82:                                               ; preds = %81
  %83 = invoke noundef ptr @_ZNK7testing8internal6String5c_strEv(ptr noundef nonnull align 8 dereferenceable(16) %14)
          to label %84 unwind label %128

84:                                               ; preds = %82
  invoke void @_ZN7testing8internal9Arguments11AddArgumentEPKc(ptr noundef nonnull align 8 dereferenceable(24) %16, ptr noundef %83)
          to label %85 unwind label %128

85:                                               ; preds = %84
  %86 = invoke noundef ptr @_ZNK7testing8internal6String5c_strEv(ptr noundef nonnull align 8 dereferenceable(16) %15)
          to label %87 unwind label %128

87:                                               ; preds = %85
  invoke void @_ZN7testing8internal9Arguments11AddArgumentEPKc(ptr noundef nonnull align 8 dereferenceable(24) %16, ptr noundef %86)
          to label %88 unwind label %128

88:                                               ; preds = %87
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #7
  invoke void @_ZN7testing8internal6StringC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %17, ptr noundef @.str.13)
          to label %89 unwind label %132

89:                                               ; preds = %88
  invoke void @_ZN7testing8internal9DeathTest27set_last_death_test_messageERKNS0_6StringE(ptr noundef nonnull align 8 dereferenceable(16) %17)
          to label %90 unwind label %136

90:                                               ; preds = %89
  call void @_ZN7testing8internal6StringD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %17) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #7
  invoke void @_ZN7testing8internal13CaptureStderrEv()
          to label %91 unwind label %128

91:                                               ; preds = %90
  invoke void @_ZN7testing8internal12FlushInfoLogEv()
          to label %92 unwind label %128

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

94:                                               ; preds = %92
  %95 = getelementptr inbounds [2 x i32], ptr %9, i64 0, i64 0
  %96 = load i32, ptr %95, align 4, !tbaa !9
  %97 = invoke noundef i32 @_ZN7testing8internalL17ExecDeathTestForkEPKPci(ptr noundef %93, i32 noundef %96)
          to label %98 unwind label %141

98:                                               ; preds = %94
  store i32 %97, ptr %18, align 4, !tbaa !9
  br label %99

99:                                               ; preds = %161, %98
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #7
  br label %100

100:                                              ; preds = %112, %99
  %101 = getelementptr inbounds [2 x i32], ptr %9, i64 0, i64 1
  %102 = load i32, ptr %101, align 4, !tbaa !9
  %103 = invoke i32 @close(i32 noundef %102)
          to label %104 unwind label %145

104:                                              ; preds = %100
  store i32 %103, ptr %19, align 4, !tbaa !9
  br label %105

105:                                              ; preds = %104
  %106 = load i32, ptr %19, align 4, !tbaa !9
  %107 = icmp eq i32 %106, -1
  br i1 %107, label %108, label %112

108:                                              ; preds = %105
  %109 = call ptr @__errno_location() #8
  %110 = load i32, ptr %109, align 4, !tbaa !9
  %111 = icmp eq i32 %110, 4
  br label %112

112:                                              ; preds = %108, %105
  %113 = phi i1 [ false, %105 ], [ %111, %108 ]
  br i1 %113, label %100, label %114, !llvm.loop !22

114:                                              ; preds = %112
  %115 = load i32, ptr %19, align 4, !tbaa !9
  %116 = icmp eq i32 %115, -1
  br i1 %116, label %117, label %158

117:                                              ; preds = %114
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #7
  invoke void (ptr, ptr, ...) @_ZN7testing8internal6String6FormatEPKcz(ptr dead_on_unwind writable sret(%"class.testing::internal::String") align 8 %20, ptr noundef @.str.243, ptr noundef @.str.28, i32 noundef 7227, ptr noundef @.str.262)
          to label %118 unwind label %149

118:                                              ; preds = %117
  invoke void @_ZN7testing8internal14DeathTestAbortERKNS0_6StringE(ptr noundef nonnull align 8 dereferenceable(16) %20)
          to label %119 unwind label %153

119:                                              ; preds = %118
  call void @_ZN7testing8internal6StringD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %20) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #7
  br label %158

120:                                              ; preds = %66
  %121 = landingpad { ptr, i32 }
          cleanup
  %122 = extractvalue { ptr, i32 } %121, 0
  store ptr %122, ptr %11, align 8
  %123 = extractvalue { ptr, i32 } %121, 1
  store i32 %123, ptr %12, align 4
  br label %173

124:                                              ; preds = %78
  %125 = landingpad { ptr, i32 }
          cleanup
  %126 = extractvalue { ptr, i32 } %125, 0
  store ptr %126, ptr %11, align 8
  %127 = extractvalue { ptr, i32 } %125, 1
  store i32 %127, ptr %12, align 4
  br label %172

128:                                              ; preds = %91, %90, %87, %85, %84, %82, %81, %79
  %129 = landingpad { ptr, i32 }
          cleanup
  %130 = extractvalue { ptr, i32 } %129, 0
  store ptr %130, ptr %11, align 8
  %131 = extractvalue { ptr, i32 } %129, 1
  store i32 %131, ptr %12, align 4
  br label %171

132:                                              ; preds = %88
  %133 = landingpad { ptr, i32 }
          cleanup
  %134 = extractvalue { ptr, i32 } %133, 0
  store ptr %134, ptr %11, align 8
  %135 = extractvalue { ptr, i32 } %133, 1
  store i32 %135, ptr %12, align 4
  br label %140

136:                                              ; preds = %89
  %137 = landingpad { ptr, i32 }
          cleanup
  %138 = extractvalue { ptr, i32 } %137, 0
  store ptr %138, ptr %11, align 8
  %139 = extractvalue { ptr, i32 } %137, 1
  store i32 %139, ptr %12, align 4
  call void @_ZN7testing8internal6StringD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %17) #7
  br label %140

140:                                              ; preds = %136, %132
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #7
  br label %171

141:                                              ; preds = %167, %164, %162, %159, %94, %92
  %142 = landingpad { ptr, i32 }
          cleanup
  %143 = extractvalue { ptr, i32 } %142, 0
  store ptr %143, ptr %11, align 8
  %144 = extractvalue { ptr, i32 } %142, 1
  store i32 %144, ptr %12, align 4
  br label %170

145:                                              ; preds = %100
  %146 = landingpad { ptr, i32 }
          cleanup
  %147 = extractvalue { ptr, i32 } %146, 0
  store ptr %147, ptr %11, align 8
  %148 = extractvalue { ptr, i32 } %146, 1
  store i32 %148, ptr %12, align 4
  br label %169

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

153:                                              ; preds = %118
  %154 = landingpad { ptr, i32 }
          cleanup
  %155 = extractvalue { ptr, i32 } %154, 0
  store ptr %155, ptr %11, align 8
  %156 = extractvalue { ptr, i32 } %154, 1
  store i32 %156, ptr %12, align 4
  call void @_ZN7testing8internal6StringD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %20) #7
  br label %157

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

158:                                              ; preds = %119, %114
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  br label %159

159:                                              ; preds = %158
  %160 = invoke noundef zeroext i1 @_ZN7testing8internal11AlwaysFalseEv()
          to label %161 unwind label %141

161:                                              ; preds = %159
  br i1 %160, label %99, label %162, !llvm.loop !23

162:                                              ; preds = %161
  %163 = load i32, ptr %18, align 4, !tbaa !9
  invoke void @_ZN7testing8internal16ForkingDeathTest13set_child_pidEi(ptr noundef nonnull align 8 dereferenceable(48) %21, i32 noundef %163)
          to label %164 unwind label %141

164:                                              ; preds = %162
  %165 = getelementptr inbounds [2 x i32], ptr %9, i64 0, i64 0
  %166 = load i32, ptr %165, align 4, !tbaa !9
  invoke void @_ZN7testing8internal13DeathTestImpl11set_read_fdEi(ptr noundef nonnull align 8 dereferenceable(44) %21, i32 noundef %166)
          to label %167 unwind label %141

167:                                              ; preds = %164
  invoke void @_ZN7testing8internal13DeathTestImpl11set_spawnedEb(ptr noundef nonnull align 8 dereferenceable(44) %21, i1 noundef zeroext true)
          to label %168 unwind label %141

168:                                              ; preds = %167
  store i32 0, ptr %2, align 4
  store i32 1, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  call void @_ZN7testing8internal9ArgumentsD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %16) #7
  call void @_ZN7testing8internal6StringD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %15) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #7
  call void @_ZN7testing8internal6StringD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %14) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  br label %175

169:                                              ; preds = %157, %145
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  br label %170

170:                                              ; preds = %169, %141
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  br label %171

171:                                              ; preds = %170, %140, %128
  call void @_ZN7testing8internal9ArgumentsD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #7
  br label %172

172:                                              ; preds = %171, %124
  call void @llvm.lifetime.end.p0(i64 24, ptr %16) #7
  call void @_ZN7testing8internal6StringD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %15) #7
  br label %173

173:                                              ; preds = %172, %120
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #7
  call void @_ZN7testing8internal6StringD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %14) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #7
  br label %174

174:                                              ; preds = %173, %59, %43
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #7
  br label %177

175:                                              ; preds = %168, %32
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #7
  %176 = load i32, ptr %2, align 4
  ret i32 %176

177:                                              ; preds = %174
  %178 = load ptr, ptr %11, align 8
  %179 = load i32, ptr %12, align 4
  %180 = insertvalue { ptr, i32 } poison, ptr %178, 0
  %181 = insertvalue { ptr, i32 } %180, i32 %179, 1
  resume { ptr, i32 } %181
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK7testing10TestResult16death_test_countEv(ptr noundef nonnull align 8 dereferenceable(112)) #1 align 2

declare i32 @fcntl(i32 noundef, i32 noundef, ...) #4

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

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

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

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

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZN7testing8internalL17ExecDeathTestForkEPKPci(ptr noundef, i32 noundef) #0

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

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

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

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = !{!15, !6, i64 48}
!15 = !{!"_ZTSN7testing8internal13ExecDeathTestE", !16, i64 0, !6, i64 48, !10, i64 56}
!16 = !{!"_ZTSN7testing8internal16ForkingDeathTestE", !17, i64 0, !10, i64 44}
!17 = !{!"_ZTSN7testing8internal13DeathTestImplE", !18, i64 0, !6, i64 8, !6, i64 16, !19, i64 24, !10, i64 28, !20, i64 32, !10, i64 36, !10, i64 40}
!18 = !{!"_ZTSN7testing8internal9DeathTestE"}
!19 = !{!"bool", !7, i64 0}
!20 = !{!"_ZTSN7testing8internal16DeathTestOutcomeE", !7, i64 0}
!21 = !{!15, !10, i64 56}
!22 = distinct !{!22, !12}
!23 = distinct !{!23, !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::internal::String" = type { ptr, i64 }
%"class.testing::internal::Arguments" = type { %"class.std::vector.60" }
%"class.std::vector.60" = type { %"struct.std::_Vector_base.61" }
%"struct.std::_Vector_base.61" = type { %"struct.std::_Vector_base<char *, std::allocator<char *>>::_Vector_impl" }
%"struct.std::_Vector_base<char *, std::allocator<char *>>::_Vector_impl" = type { %"struct.std::_Vector_base<char *, std::allocator<char *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<char *, std::allocator<char *>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@.str.13 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [87 x i8], align 1
@.str.231 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.243 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.258 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.259 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.262 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.263 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.264 = external hidden unnamed_addr constant [13 x i8], align 1
@_ZN7testing8internalL11kFilterFlagE = external hidden constant [7 x i8], align 1
@.str.265 = external hidden unnamed_addr constant [19 x i8], align 1
@_ZN7testing8internalL25kInternalRunDeathTestFlagE = external hidden constant [24 x i8], align 16

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN7testing8internal6IsTrueEb(i1 noundef zeroext) local_unnamed_addr #1

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

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) #2

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

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

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

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

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

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

declare i32 @close(i32 noundef) local_unnamed_addr #4

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK7testing8internal24InternalRunDeathTestFlag8write_fdEv(ptr noundef nonnull align 8 dereferenceable(28)) local_unnamed_addr #1 align 2

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN7testing8internal11AlwaysFalseEv() local_unnamed_addr #3

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

; Function Attrs: nounwind
declare i32 @pipe(ptr noundef) local_unnamed_addr #6

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7testing8internal13CaptureStderrEv() local_unnamed_addr #0

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN7testing8internal12FlushInfoLogEv() local_unnamed_addr #3

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef range(i32 0, 2) i32 @_ZN7testing8internal13ExecDeathTest10AssumeRoleEv(ptr noundef nonnull align 8 dereferenceable(60) %0) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca [2 x i32], align 4
  %3 = alloca %"class.testing::internal::String", align 8
  %4 = alloca %"class.testing::internal::String", align 8
  %5 = alloca %"class.testing::internal::String", align 8
  %6 = alloca %"class.testing::internal::String", align 8
  %7 = alloca %"class.testing::internal::Arguments", align 8
  %8 = alloca %"class.testing::internal::String", align 8
  %9 = alloca %"class.testing::internal::String", align 8
  %10 = tail call noundef ptr @_ZN7testing8internal15GetUnitTestImplEv()
  %11 = tail call noundef ptr @_ZNK7testing8internal12UnitTestImpl28internal_run_death_test_flagEv(ptr noundef nonnull align 8 dereferenceable(473) %10)
  %12 = tail call noundef ptr @_ZNK7testing8internal12UnitTestImpl17current_test_infoEv(ptr noundef nonnull align 8 dereferenceable(473) %10)
  %13 = tail call noundef ptr @_ZNK7testing8TestInfo6resultEv(ptr noundef nonnull align 8 dereferenceable(216) %12)
  %14 = tail call noundef i32 @_ZNK7testing10TestResult16death_test_countEv(ptr noundef nonnull align 8 dereferenceable(112) %13)
  %.not = icmp eq ptr %11, null
  br i1 %.not, label %17, label %15

15:                                               ; preds = %1
  %16 = tail call noundef i32 @_ZNK7testing8internal24InternalRunDeathTestFlag8write_fdEv(ptr noundef nonnull align 8 dereferenceable(28) %11)
  tail call void @_ZN7testing8internal13DeathTestImpl12set_write_fdEi(ptr noundef nonnull align 8 dereferenceable(44) %0, i32 noundef %16)
  br label %99

17:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #7
  br label %18

18:                                               ; preds = %26, %17
  %19 = call i32 @pipe(ptr noundef nonnull %2) #7
  %20 = icmp ne i32 %19, -1
  %21 = call noundef zeroext i1 @_ZN7testing8internal6IsTrueEb(i1 noundef zeroext %20)
  br i1 %21, label %26, label %22

22:                                               ; preds = %18
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #7
  call void (ptr, ptr, ...) @_ZN7testing8internal6String6FormatEPKcz(ptr dead_on_unwind nonnull writable sret(%"class.testing::internal::String") align 8 %3, ptr noundef nonnull @.str.258, ptr noundef nonnull @.str.28, i32 noundef 7201, ptr noundef nonnull @.str.259)
  invoke void @_ZN7testing8internal14DeathTestAbortERKNS0_6StringE(ptr noundef nonnull align 8 dereferenceable(16) %3)
          to label %23 unwind label %24

23:                                               ; preds = %22
  call void @_ZN7testing8internal6StringD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %3) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #7
  br label %26

24:                                               ; preds = %22
  %25 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7testing8internal6StringD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %3) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #7
  br label %98

26:                                               ; preds = %18, %23
  %27 = call noundef zeroext i1 @_ZN7testing8internal11AlwaysFalseEv()
  br i1 %27, label %18, label %.preheader35, !llvm.loop !5

.preheader35:                                     ; preds = %26
  %28 = getelementptr inbounds i8, ptr %2, i64 4
  br label %29

29:                                               ; preds = %.preheader35, %38
  %30 = load i32, ptr %28, align 4, !tbaa !7
  %31 = call i32 (i32, i32, ...) @fcntl(i32 noundef %30, i32 noundef 2, i32 noundef 0)
  %32 = icmp ne i32 %31, -1
  %33 = call noundef zeroext i1 @_ZN7testing8internal6IsTrueEb(i1 noundef zeroext %32)
  br i1 %33, label %38, label %34

34:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #7
  call void (ptr, ptr, ...) @_ZN7testing8internal6String6FormatEPKcz(ptr dead_on_unwind nonnull writable sret(%"class.testing::internal::String") align 8 %4, ptr noundef nonnull @.str.258, ptr noundef nonnull @.str.28, i32 noundef 7204, ptr noundef nonnull @.str.263)
  invoke void @_ZN7testing8internal14DeathTestAbortERKNS0_6StringE(ptr noundef nonnull align 8 dereferenceable(16) %4)
          to label %35 unwind label %36

35:                                               ; preds = %34
  call void @_ZN7testing8internal6StringD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %4) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #7
  br label %38

36:                                               ; preds = %34
  %37 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7testing8internal6StringD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %4) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #7
  br label %98

38:                                               ; preds = %29, %35
  %39 = call noundef zeroext i1 @_ZN7testing8internal11AlwaysFalseEv()
  br i1 %39, label %29, label %40, !llvm.loop !11

40:                                               ; preds = %38
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #7
  %41 = call noundef ptr @_ZNK7testing8TestInfo14test_case_nameEv(ptr noundef nonnull align 8 dereferenceable(216) %12)
  %42 = call noundef ptr @_ZNK7testing8TestInfo4nameEv(ptr noundef nonnull align 8 dereferenceable(216) %12)
  call void (ptr, ptr, ...) @_ZN7testing8internal6String6FormatEPKcz(ptr dead_on_unwind nonnull writable sret(%"class.testing::internal::String") align 8 %5, ptr noundef nonnull @.str.264, ptr noundef nonnull @.str.231, ptr noundef nonnull @_ZN7testing8internalL11kFilterFlagE, ptr noundef %41, ptr noundef %42)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #7
  %43 = getelementptr inbounds i8, ptr %0, i64 48
  %44 = load ptr, ptr %43, align 8, !tbaa !12
  %45 = getelementptr inbounds i8, ptr %0, i64 56
  %46 = load i32, ptr %45, align 8, !tbaa !20
  %47 = load i32, ptr %28, align 4, !tbaa !7
  invoke void (ptr, ptr, ...) @_ZN7testing8internal6String6FormatEPKcz(ptr dead_on_unwind nonnull writable sret(%"class.testing::internal::String") align 8 %6, ptr noundef nonnull @.str.265, ptr noundef nonnull @.str.231, ptr noundef nonnull @_ZN7testing8internalL25kInternalRunDeathTestFlagE, ptr noundef %44, i32 noundef %46, i32 noundef %14, i32 noundef %47)
          to label %48 unwind label %73

48:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #7
  invoke void @_ZN7testing8internal9ArgumentsC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7)
          to label %49 unwind label %75

49:                                               ; preds = %48
  %50 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN7testing8internal8GetArgvsEv()
  invoke void @_ZN7testing8internal9Arguments12AddArgumentsINS0_6StringEEEvRKSt6vectorIT_SaIS5_EE(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 8 dereferenceable(24) %50)
          to label %51 unwind label %77

51:                                               ; preds = %49
  %52 = call noundef ptr @_ZNK7testing8internal6String5c_strEv(ptr noundef nonnull align 8 dereferenceable(16) %5)
  invoke void @_ZN7testing8internal9Arguments11AddArgumentEPKc(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef %52)
          to label %53 unwind label %77

53:                                               ; preds = %51
  %54 = call noundef ptr @_ZNK7testing8internal6String5c_strEv(ptr noundef nonnull align 8 dereferenceable(16) %6)
  invoke void @_ZN7testing8internal9Arguments11AddArgumentEPKc(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef %54)
          to label %55 unwind label %77

55:                                               ; preds = %53
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #7
  invoke void @_ZN7testing8internal6StringC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %8, ptr noundef nonnull @.str.13)
          to label %56 unwind label %79

56:                                               ; preds = %55
  invoke void @_ZN7testing8internal9DeathTest27set_last_death_test_messageERKNS0_6StringE(ptr noundef nonnull align 8 dereferenceable(16) %8)
          to label %57 unwind label %81

57:                                               ; preds = %56
  call void @_ZN7testing8internal6StringD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %8) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #7
  invoke void @_ZN7testing8internal13CaptureStderrEv()
          to label %58 unwind label %77

58:                                               ; preds = %57
  invoke void @_ZN7testing8internal12FlushInfoLogEv()
          to label %59 unwind label %77

59:                                               ; preds = %58
  %60 = call noundef ptr @_ZN7testing8internal9Arguments4ArgvEv(ptr noundef nonnull align 8 dereferenceable(24) %7)
  %61 = load i32, ptr %2, align 4, !tbaa !7
  %62 = invoke noundef i32 @_ZN7testing8internalL17ExecDeathTestForkEPKPci(ptr noundef %60, i32 noundef %61)
          to label %.preheader unwind label %.loopexit.split-lp

.preheader:                                       ; preds = %59, %.preheader.backedge
  %63 = load i32, ptr %28, align 4, !tbaa !7
  %64 = invoke i32 @close(i32 noundef %63)
          to label %65 unwind label %84

65:                                               ; preds = %.preheader
  %66 = icmp eq i32 %64, -1
  br i1 %66, label %67, label %.critedge34

67:                                               ; preds = %65
  %68 = tail call ptr @__errno_location() #8
  %69 = load i32, ptr %68, align 4, !tbaa !7
  %70 = icmp eq i32 %69, 4
  br i1 %70, label %.preheader.backedge, label %.critedge

.preheader.backedge:                              ; preds = %67, %92
  br label %.preheader, !llvm.loop !21

.critedge:                                        ; preds = %67
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #7
  invoke void (ptr, ptr, ...) @_ZN7testing8internal6String6FormatEPKcz(ptr dead_on_unwind nonnull writable sret(%"class.testing::internal::String") align 8 %9, ptr noundef nonnull @.str.243, ptr noundef nonnull @.str.28, i32 noundef 7227, ptr noundef nonnull @.str.262)
          to label %71 unwind label %86

71:                                               ; preds = %.critedge
  invoke void @_ZN7testing8internal14DeathTestAbortERKNS0_6StringE(ptr noundef nonnull align 8 dereferenceable(16) %9)
          to label %72 unwind label %88

72:                                               ; preds = %71
  call void @_ZN7testing8internal6StringD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #7
  br label %.critedge34

73:                                               ; preds = %40
  %74 = landingpad { ptr, i32 }
          cleanup
  br label %97

75:                                               ; preds = %48
  %76 = landingpad { ptr, i32 }
          cleanup
  br label %96

77:                                               ; preds = %58, %57, %53, %51, %49
  %78 = landingpad { ptr, i32 }
          cleanup
  br label %95

79:                                               ; preds = %55
  %80 = landingpad { ptr, i32 }
          cleanup
  br label %83

81:                                               ; preds = %56
  %82 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7testing8internal6StringD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %8) #7
  br label %83

83:                                               ; preds = %81, %79
  %.pn = phi { ptr, i32 } [ %82, %81 ], [ %80, %79 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #7
  br label %95

.loopexit:                                        ; preds = %.critedge34
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %95

.loopexit.split-lp:                               ; preds = %59
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %95

84:                                               ; preds = %.preheader
  %85 = landingpad { ptr, i32 }
          cleanup
  br label %95

86:                                               ; preds = %.critedge
  %87 = landingpad { ptr, i32 }
          cleanup
  br label %90

88:                                               ; preds = %71
  %89 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7testing8internal6StringD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #7
  br label %90

90:                                               ; preds = %88, %86
  %.pn25 = phi { ptr, i32 } [ %89, %88 ], [ %87, %86 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #7
  br label %95

.critedge34:                                      ; preds = %65, %72
  %91 = invoke noundef zeroext i1 @_ZN7testing8internal11AlwaysFalseEv()
          to label %92 unwind label %.loopexit

92:                                               ; preds = %.critedge34
  br i1 %91, label %.preheader.backedge, label %93

93:                                               ; preds = %92
  call void @_ZN7testing8internal16ForkingDeathTest13set_child_pidEi(ptr noundef nonnull align 8 dereferenceable(48) %0, i32 noundef %62)
  %94 = load i32, ptr %2, align 4, !tbaa !7
  call void @_ZN7testing8internal13DeathTestImpl11set_read_fdEi(ptr noundef nonnull align 8 dereferenceable(44) %0, i32 noundef %94)
  call void @_ZN7testing8internal13DeathTestImpl11set_spawnedEb(ptr noundef nonnull align 8 dereferenceable(44) %0, i1 noundef zeroext true)
  call void @_ZN7testing8internal9ArgumentsD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #7
  call void @_ZN7testing8internal6StringD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #7
  call void @_ZN7testing8internal6StringD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #7
  br label %99

95:                                               ; preds = %.loopexit, %.loopexit.split-lp, %90, %84, %83, %77
  %.pn28.pn = phi { ptr, i32 } [ %78, %77 ], [ %.pn, %83 ], [ %.pn25, %90 ], [ %85, %84 ], [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @_ZN7testing8internal9ArgumentsD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  br label %96

96:                                               ; preds = %95, %75
  %.pn28.pn.pn = phi { ptr, i32 } [ %.pn28.pn, %95 ], [ %76, %75 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #7
  call void @_ZN7testing8internal6StringD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #7
  br label %97

97:                                               ; preds = %96, %73
  %.pn28.pn.pn.pn = phi { ptr, i32 } [ %.pn28.pn.pn, %96 ], [ %74, %73 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #7
  call void @_ZN7testing8internal6StringD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #7
  br label %98

98:                                               ; preds = %97, %36, %24
  %.pn28.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn28.pn.pn.pn, %97 ], [ %37, %36 ], [ %25, %24 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #7
  resume { ptr, i32 } %.pn28.pn.pn.pn.pn

99:                                               ; preds = %93, %15
  %.0 = phi i32 [ 1, %15 ], [ 0, %93 ]
  ret i32 %.0
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK7testing10TestResult16death_test_countEv(ptr noundef nonnull align 8 dereferenceable(112)) local_unnamed_addr #1 align 2

declare i32 @fcntl(i32 noundef, i32 noundef, ...) local_unnamed_addr #4

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7testing8internal9Arguments12AddArgumentsINS0_6StringEEEvRKSt6vectorIT_SaIS5_EE(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZN7testing8internal8GetArgvsEv() local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7testing8internal9Arguments11AddArgumentEPKc(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZN7testing8internalL17ExecDeathTestForkEPKPci(ptr noundef, i32 noundef) local_unnamed_addr #0

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

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

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

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = !{!8, !8, i64 0}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = distinct !{!11, !6}
!12 = !{!13, !17, i64 48}
!13 = !{!"_ZTSN7testing8internal13ExecDeathTestE", !14, i64 0, !17, i64 48, !8, i64 56}
!14 = !{!"_ZTSN7testing8internal16ForkingDeathTestE", !15, i64 0, !8, i64 44}
!15 = !{!"_ZTSN7testing8internal13DeathTestImplE", !16, i64 0, !17, i64 8, !17, i64 16, !18, i64 24, !8, i64 28, !19, i64 32, !8, i64 36, !8, i64 40}
!16 = !{!"_ZTSN7testing8internal9DeathTestE"}
!17 = !{!"any pointer", !9, i64 0}
!18 = !{!"bool", !9, i64 0}
!19 = !{!"_ZTSN7testing8internal16DeathTestOutcomeE", !9, i64 0}
!20 = !{!13, !8, i64 56}
!21 = distinct !{!21, !6}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LCSSAPass,LICMPass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass