; 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::GTestLog" = type { i32 }

@.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.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.260 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.261 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.262 = external hidden unnamed_addr constant [18 x i8], align 1

; 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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN7testing8internal8GTestLog9GetStreamEv(ptr noundef nonnull align 4 dereferenceable(4)) #1 align 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 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 @_ZN7testing8internal12UnitTestImpl9listenersEv(ptr noundef nonnull align 8 dereferenceable(473)) #1 align 2

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

declare i32 @close(i32 noundef) #4

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

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

; 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: mustprogress uwtable
define dso_local noundef i32 @_ZN7testing8internal15NoExecDeathTest10AssumeRoleEv(ptr noundef nonnull align 8 dereferenceable(48) %0) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca i32, align 4
  %3 = alloca ptr, align 8
  %4 = alloca i64, align 8
  %5 = alloca %"class.testing::internal::GTestLog", align 4
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca %"class.testing::internal::String", align 8
  %9 = alloca [2 x i32], align 4
  %10 = alloca %"class.testing::internal::String", align 8
  %11 = alloca %"class.testing::internal::String", align 8
  %12 = alloca i32, align 4
  %13 = alloca %"class.testing::internal::String", align 8
  %14 = alloca i32, align 4
  %15 = alloca %"class.testing::internal::String", align 8
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca %"class.testing::internal::String", align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  %19 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #8
  %20 = call noundef i64 @_ZN7testing8internal14GetThreadCountEv()
  store i64 %20, ptr %4, align 8, !tbaa !9
  %21 = load i64, ptr %4, align 8, !tbaa !9
  %22 = icmp ne i64 %21, 1
  br i1 %22, label %23, label %44

23:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #8
  call void @_ZN7testing8internal8GTestLogC1ENS0_16GTestLogSeverityEPKci(ptr noundef nonnull align 4 dereferenceable(4) %5, i32 noundef 1, ptr noundef @.str.28, i32 noundef 6986)
  %24 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7testing8internal8GTestLog9GetStreamEv(ptr noundef nonnull align 4 dereferenceable(4) %5)
          to label %25 unwind label %30

25:                                               ; preds = %23
  call void @llvm.lifetime.start.p0(i64 16, ptr %8) #8
  %26 = load i64, ptr %4, align 8, !tbaa !9
  invoke void @_ZN7testing8internalL22DeathTestThreadWarningEm(ptr dead_on_unwind writable sret(%"class.testing::internal::String") align 8 %8, i64 noundef %26)
          to label %27 unwind label %34

27:                                               ; preds = %25
  %28 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7testing8internallsERSoRKNS0_6StringE(ptr noundef nonnull align 8 dereferenceable(8) %24, ptr noundef nonnull align 8 dereferenceable(16) %8)
          to label %29 unwind label %38

29:                                               ; preds = %27
  call void @_ZN7testing8internal6StringD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %8) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #8
  call void @_ZN7testing8internal8GTestLogD1Ev(ptr noundef nonnull align 4 dereferenceable(4) %5) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #8
  br label %44

30:                                               ; preds = %23
  %31 = landingpad { ptr, i32 }
          cleanup
  %32 = extractvalue { ptr, i32 } %31, 0
  store ptr %32, ptr %6, align 8
  %33 = extractvalue { ptr, i32 } %31, 1
  store i32 %33, ptr %7, align 4
  br label %43

34:                                               ; preds = %25
  %35 = landingpad { ptr, i32 }
          cleanup
  %36 = extractvalue { ptr, i32 } %35, 0
  store ptr %36, ptr %6, align 8
  %37 = extractvalue { ptr, i32 } %35, 1
  store i32 %37, ptr %7, align 4
  br label %42

38:                                               ; preds = %27
  %39 = landingpad { ptr, i32 }
          cleanup
  %40 = extractvalue { ptr, i32 } %39, 0
  store ptr %40, ptr %6, align 8
  %41 = extractvalue { ptr, i32 } %39, 1
  store i32 %41, ptr %7, align 4
  call void @_ZN7testing8internal6StringD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %8) #8
  br label %42

42:                                               ; preds = %38, %34
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #8
  br label %43

43:                                               ; preds = %42, %30
  call void @_ZN7testing8internal8GTestLogD1Ev(ptr noundef nonnull align 4 dereferenceable(4) %5) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #8
  br label %149

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

45:                                               ; preds = %57, %44
  %46 = getelementptr inbounds [2 x i32], ptr %9, i64 0, i64 0
  %47 = call i32 @pipe(ptr noundef %46) #8
  %48 = icmp ne i32 %47, -1
  %49 = call noundef zeroext i1 @_ZN7testing8internal6IsTrueEb(i1 noundef zeroext %48)
  br i1 %49, label %56, label %50

50:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #8
  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 6990, ptr noundef @.str.259)
  invoke void @_ZN7testing8internal14DeathTestAbortERKNS0_6StringE(ptr noundef nonnull align 8 dereferenceable(16) %10)
          to label %51 unwind label %52

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

52:                                               ; preds = %50
  %53 = landingpad { ptr, i32 }
          cleanup
  %54 = extractvalue { ptr, i32 } %53, 0
  store ptr %54, ptr %6, align 8
  %55 = extractvalue { ptr, i32 } %53, 1
  store i32 %55, ptr %7, align 4
  call void @_ZN7testing8internal6StringD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %10) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #8
  br label %148

56:                                               ; preds = %51, %45
  br label %57

57:                                               ; preds = %56
  %58 = call noundef zeroext i1 @_ZN7testing8internal11AlwaysFalseEv()
  br i1 %58, label %45, label %59, !llvm.loop !11

59:                                               ; preds = %57
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #8
  call void @_ZN7testing8internal6StringC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef @.str.13)
  invoke void @_ZN7testing8internal9DeathTest27set_last_death_test_messageERKNS0_6StringE(ptr noundef nonnull align 8 dereferenceable(16) %11)
          to label %60 unwind label %68

60:                                               ; preds = %59
  call void @_ZN7testing8internal6StringD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %11) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #8
  call void @_ZN7testing8internal13CaptureStderrEv()
  call void @_ZN7testing8internal12FlushInfoLogEv()
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #8
  %61 = call i32 @fork() #8
  store i32 %61, ptr %12, align 4, !tbaa !13
  br label %62

62:                                               ; preds = %77, %60
  %63 = load i32, ptr %12, align 4, !tbaa !13
  %64 = icmp ne i32 %63, -1
  %65 = call noundef zeroext i1 @_ZN7testing8internal6IsTrueEb(i1 noundef zeroext %64)
  br i1 %65, label %76, label %66

66:                                               ; preds = %62
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #8
  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 7004, ptr noundef @.str.260)
  invoke void @_ZN7testing8internal14DeathTestAbortERKNS0_6StringE(ptr noundef nonnull align 8 dereferenceable(16) %13)
          to label %67 unwind label %72

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

68:                                               ; preds = %59
  %69 = landingpad { ptr, i32 }
          cleanup
  %70 = extractvalue { ptr, i32 } %69, 0
  store ptr %70, ptr %6, align 8
  %71 = extractvalue { ptr, i32 } %69, 1
  store i32 %71, ptr %7, align 4
  call void @_ZN7testing8internal6StringD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %11) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #8
  br label %148

72:                                               ; preds = %66
  %73 = landingpad { ptr, i32 }
          cleanup
  %74 = extractvalue { ptr, i32 } %73, 0
  store ptr %74, ptr %6, align 8
  %75 = extractvalue { ptr, i32 } %73, 1
  store i32 %75, ptr %7, align 4
  call void @_ZN7testing8internal6StringD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %13) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #8
  br label %147

76:                                               ; preds = %67, %62
  br label %77

77:                                               ; preds = %76
  %78 = call noundef zeroext i1 @_ZN7testing8internal11AlwaysFalseEv()
  br i1 %78, label %62, label %79, !llvm.loop !15

79:                                               ; preds = %77
  %80 = load i32, ptr %12, align 4, !tbaa !13
  call void @_ZN7testing8internal16ForkingDeathTest13set_child_pidEi(ptr noundef nonnull align 8 dereferenceable(48) %19, i32 noundef %80)
  %81 = load i32, ptr %12, align 4, !tbaa !13
  %82 = icmp eq i32 %81, 0
  br i1 %82, label %83, label %115

83:                                               ; preds = %79
  br label %84

84:                                               ; preds = %108, %83
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #8
  br label %85

85:                                               ; preds = %96, %84
  %86 = getelementptr inbounds [2 x i32], ptr %9, i64 0, i64 0
  %87 = load i32, ptr %86, align 4, !tbaa !13
  %88 = call i32 @close(i32 noundef %87)
  store i32 %88, ptr %14, align 4, !tbaa !13
  br label %89

89:                                               ; preds = %85
  %90 = load i32, ptr %14, align 4, !tbaa !13
  %91 = icmp eq i32 %90, -1
  br i1 %91, label %92, label %96

92:                                               ; preds = %89
  %93 = call ptr @__errno_location() #9
  %94 = load i32, ptr %93, align 4, !tbaa !13
  %95 = icmp eq i32 %94, 4
  br label %96

96:                                               ; preds = %92, %89
  %97 = phi i1 [ false, %89 ], [ %95, %92 ]
  br i1 %97, label %85, label %98, !llvm.loop !16

98:                                               ; preds = %96
  %99 = load i32, ptr %14, align 4, !tbaa !13
  %100 = icmp eq i32 %99, -1
  br i1 %100, label %101, label %107

101:                                              ; preds = %98
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #8
  call void (ptr, ptr, ...) @_ZN7testing8internal6String6FormatEPKcz(ptr dead_on_unwind writable sret(%"class.testing::internal::String") align 8 %15, ptr noundef @.str.243, ptr noundef @.str.28, i32 noundef 7007, ptr noundef @.str.261)
  invoke void @_ZN7testing8internal14DeathTestAbortERKNS0_6StringE(ptr noundef nonnull align 8 dereferenceable(16) %15)
          to label %102 unwind label %103

102:                                              ; preds = %101
  call void @_ZN7testing8internal6StringD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %15) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #8
  br label %107

103:                                              ; preds = %101
  %104 = landingpad { ptr, i32 }
          cleanup
  %105 = extractvalue { ptr, i32 } %104, 0
  store ptr %105, ptr %6, align 8
  %106 = extractvalue { ptr, i32 } %104, 1
  store i32 %106, ptr %7, align 4
  call void @_ZN7testing8internal6StringD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %15) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #8
  br label %147

107:                                              ; preds = %102, %98
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #8
  br label %108

108:                                              ; preds = %107
  %109 = call noundef zeroext i1 @_ZN7testing8internal11AlwaysFalseEv()
  br i1 %109, label %84, label %110, !llvm.loop !17

110:                                              ; preds = %108
  %111 = getelementptr inbounds [2 x i32], ptr %9, i64 0, i64 1
  %112 = load i32, ptr %111, align 4, !tbaa !13
  call void @_ZN7testing8internal13DeathTestImpl12set_write_fdEi(ptr noundef nonnull align 8 dereferenceable(44) %19, i32 noundef %112)
  call void @_ZN7testing8internal11LogToStderrEv()
  %113 = call noundef ptr @_ZN7testing8internal15GetUnitTestImplEv()
  %114 = call noundef ptr @_ZN7testing8internal12UnitTestImpl9listenersEv(ptr noundef nonnull align 8 dereferenceable(473) %113)
  call void @_ZN7testing18TestEventListeners23SuppressEventForwardingEv(ptr noundef nonnull align 8 dereferenceable(24) %114)
  store i32 1, ptr %2, align 4
  store i32 1, ptr %16, align 4
  br label %145

115:                                              ; preds = %79
  br label %116

116:                                              ; preds = %140, %115
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #8
  br label %117

117:                                              ; preds = %128, %116
  %118 = getelementptr inbounds [2 x i32], ptr %9, i64 0, i64 1
  %119 = load i32, ptr %118, align 4, !tbaa !13
  %120 = call i32 @close(i32 noundef %119)
  store i32 %120, ptr %17, align 4, !tbaa !13
  br label %121

121:                                              ; preds = %117
  %122 = load i32, ptr %17, align 4, !tbaa !13
  %123 = icmp eq i32 %122, -1
  br i1 %123, label %124, label %128

124:                                              ; preds = %121
  %125 = call ptr @__errno_location() #9
  %126 = load i32, ptr %125, align 4, !tbaa !13
  %127 = icmp eq i32 %126, 4
  br label %128

128:                                              ; preds = %124, %121
  %129 = phi i1 [ false, %121 ], [ %127, %124 ]
  br i1 %129, label %117, label %130, !llvm.loop !18

130:                                              ; preds = %128
  %131 = load i32, ptr %17, align 4, !tbaa !13
  %132 = icmp eq i32 %131, -1
  br i1 %132, label %133, label %139

133:                                              ; preds = %130
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #8
  call void (ptr, ptr, ...) @_ZN7testing8internal6String6FormatEPKcz(ptr dead_on_unwind writable sret(%"class.testing::internal::String") align 8 %18, ptr noundef @.str.243, ptr noundef @.str.28, i32 noundef 7018, ptr noundef @.str.262)
  invoke void @_ZN7testing8internal14DeathTestAbortERKNS0_6StringE(ptr noundef nonnull align 8 dereferenceable(16) %18)
          to label %134 unwind label %135

134:                                              ; preds = %133
  call void @_ZN7testing8internal6StringD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %18) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #8
  br label %139

135:                                              ; preds = %133
  %136 = landingpad { ptr, i32 }
          cleanup
  %137 = extractvalue { ptr, i32 } %136, 0
  store ptr %137, ptr %6, align 8
  %138 = extractvalue { ptr, i32 } %136, 1
  store i32 %138, ptr %7, align 4
  call void @_ZN7testing8internal6StringD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %18) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #8
  br label %147

139:                                              ; preds = %134, %130
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #8
  br label %140

140:                                              ; preds = %139
  %141 = call noundef zeroext i1 @_ZN7testing8internal11AlwaysFalseEv()
  br i1 %141, label %116, label %142, !llvm.loop !19

142:                                              ; preds = %140
  %143 = getelementptr inbounds [2 x i32], ptr %9, i64 0, i64 0
  %144 = load i32, ptr %143, align 4, !tbaa !13
  call void @_ZN7testing8internal13DeathTestImpl11set_read_fdEi(ptr noundef nonnull align 8 dereferenceable(44) %19, i32 noundef %144)
  call void @_ZN7testing8internal13DeathTestImpl11set_spawnedEb(ptr noundef nonnull align 8 dereferenceable(44) %19, i1 noundef zeroext true)
  store i32 0, ptr %2, align 4
  store i32 1, ptr %16, align 4
  br label %145

145:                                              ; preds = %142, %110
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #8
  %146 = load i32, ptr %2, align 4
  ret i32 %146

147:                                              ; preds = %135, %103, %72
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #8
  br label %148

148:                                              ; preds = %147, %68, %52
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #8
  br label %149

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN7testing8internal14GetThreadCountEv() #1

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

; 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: nounwind
declare i32 @fork() #6

; 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: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN7testing8internal11LogToStderrEv() #7

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

declare void @_ZN7testing8internal8GTestLogC1ENS0_16GTestLogSeverityEPKci(ptr, i32, ptr, i32)

declare void @_ZN7testing8internal8GTestLogD1Ev(ptr)

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 = { 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 #8 = { nounwind }
attributes #9 = { 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 = !{!"long", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!14, !14, i64 0}
!14 = !{!"int", !7, i64 0}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !12}
!17 = distinct !{!17, !12}
!18 = distinct !{!18, !12}
!19 = distinct !{!19, !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::GTestLog" = type { i32 }

@.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.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.260 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.261 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.262 = external hidden unnamed_addr constant [18 x i8], align 1

; 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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN7testing8internal8GTestLog9GetStreamEv(ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #1 align 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 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 @_ZN7testing8internal12UnitTestImpl9listenersEv(ptr noundef nonnull align 8 dereferenceable(473)) local_unnamed_addr #1 align 2

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

declare i32 @close(i32 noundef) local_unnamed_addr #4

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

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

; 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: mustprogress uwtable
define dso_local noundef range(i32 0, 2) i32 @_ZN7testing8internal15NoExecDeathTest10AssumeRoleEv(ptr noundef nonnull align 8 dereferenceable(48) %0) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.testing::internal::GTestLog", align 4
  %3 = alloca %"class.testing::internal::String", align 8
  %4 = alloca [2 x i32], align 4
  %5 = alloca %"class.testing::internal::String", align 8
  %6 = alloca %"class.testing::internal::String", align 8
  %7 = alloca %"class.testing::internal::String", align 8
  %8 = alloca %"class.testing::internal::String", align 8
  %9 = alloca %"class.testing::internal::String", align 8
  %10 = tail call noundef i64 @_ZN7testing8internal14GetThreadCountEv()
  %.not = icmp eq i64 %10, 1
  br i1 %.not, label %21, label %11

11:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #9
  call void @_ZN7testing8internal8GTestLogC1ENS0_16GTestLogSeverityEPKci(ptr noundef nonnull align 4 dereferenceable(4) %2, i32 noundef 1, ptr noundef nonnull @.str.28, i32 noundef 6986)
  %12 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN7testing8internal8GTestLog9GetStreamEv(ptr noundef nonnull align 4 dereferenceable(4) %2)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #9
  invoke void @_ZN7testing8internalL22DeathTestThreadWarningEm(ptr dead_on_unwind nonnull writable sret(%"class.testing::internal::String") align 8 %3, i64 noundef %10)
          to label %13 unwind label %16

13:                                               ; preds = %11
  %14 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7testing8internallsERSoRKNS0_6StringE(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(16) %3)
          to label %15 unwind label %18

15:                                               ; preds = %13
  call void @_ZN7testing8internal6StringD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %3) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #9
  call void @_ZN7testing8internal8GTestLogD1Ev(ptr noundef nonnull align 4 dereferenceable(4) %2) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #9
  br label %21

16:                                               ; preds = %11
  %17 = landingpad { ptr, i32 }
          cleanup
  br label %20

18:                                               ; preds = %13
  %19 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7testing8internal6StringD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %3) #9
  br label %20

20:                                               ; preds = %18, %16
  %.pn = phi { ptr, i32 } [ %19, %18 ], [ %17, %16 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #9
  call void @_ZN7testing8internal8GTestLogD1Ev(ptr noundef nonnull align 4 dereferenceable(4) %2) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #9
  br label %81

21:                                               ; preds = %15, %1
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #9
  br label %22

22:                                               ; preds = %30, %21
  %23 = call i32 @pipe(ptr noundef nonnull %4) #9
  %24 = icmp ne i32 %23, -1
  %25 = call noundef zeroext i1 @_ZN7testing8internal6IsTrueEb(i1 noundef zeroext %24)
  br i1 %25, label %30, label %26

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

27:                                               ; preds = %26
  call void @_ZN7testing8internal6StringD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #9
  br label %30

28:                                               ; preds = %26
  %29 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7testing8internal6StringD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #9
  br label %80

30:                                               ; preds = %22, %27
  %31 = call noundef zeroext i1 @_ZN7testing8internal11AlwaysFalseEv()
  br i1 %31, label %22, label %32, !llvm.loop !5

32:                                               ; preds = %30
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #9
  call void @_ZN7testing8internal6StringC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull @.str.13)
  invoke void @_ZN7testing8internal9DeathTest27set_last_death_test_messageERKNS0_6StringE(ptr noundef nonnull align 8 dereferenceable(16) %6)
          to label %33 unwind label %40

33:                                               ; preds = %32
  call void @_ZN7testing8internal6StringD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #9
  call void @_ZN7testing8internal13CaptureStderrEv()
  call void @_ZN7testing8internal12FlushInfoLogEv()
  %34 = call i32 @fork() #9
  %35 = icmp ne i32 %34, -1
  br label %36

36:                                               ; preds = %44, %33
  %37 = call noundef zeroext i1 @_ZN7testing8internal6IsTrueEb(i1 noundef zeroext %35)
  br i1 %37, label %44, label %38

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

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

40:                                               ; preds = %32
  %41 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7testing8internal6StringD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #9
  br label %80

42:                                               ; preds = %38
  %43 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7testing8internal6StringD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %7) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #9
  br label %80

44:                                               ; preds = %36, %39
  %45 = call noundef zeroext i1 @_ZN7testing8internal11AlwaysFalseEv()
  br i1 %45, label %36, label %46, !llvm.loop !7

46:                                               ; preds = %44
  call void @_ZN7testing8internal16ForkingDeathTest13set_child_pidEi(ptr noundef nonnull align 8 dereferenceable(48) %0, i32 noundef %34)
  %47 = icmp eq i32 %34, 0
  br i1 %47, label %.preheader, label %.preheader27

.preheader27:                                     ; preds = %46
  %48 = getelementptr inbounds i8, ptr %4, i64 4
  br label %65

.preheader:                                       ; preds = %46, %.preheader.backedge
  %49 = load i32, ptr %4, align 4, !tbaa !8
  %50 = call i32 @close(i32 noundef %49)
  %51 = icmp eq i32 %50, -1
  br i1 %51, label %52, label %.critedge25

52:                                               ; preds = %.preheader
  %53 = tail call ptr @__errno_location() #10
  %54 = load i32, ptr %53, align 4, !tbaa !8
  %55 = icmp eq i32 %54, 4
  br i1 %55, label %.preheader.backedge, label %.critedge

.preheader.backedge:                              ; preds = %52, %.critedge25
  br label %.preheader, !llvm.loop !12

.critedge:                                        ; preds = %52
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #9
  call void (ptr, ptr, ...) @_ZN7testing8internal6String6FormatEPKcz(ptr dead_on_unwind nonnull writable sret(%"class.testing::internal::String") align 8 %8, ptr noundef nonnull @.str.243, ptr noundef nonnull @.str.28, i32 noundef 7007, ptr noundef nonnull @.str.261)
  invoke void @_ZN7testing8internal14DeathTestAbortERKNS0_6StringE(ptr noundef nonnull align 8 dereferenceable(16) %8)
          to label %56 unwind label %57

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

57:                                               ; preds = %.critedge
  %58 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7testing8internal6StringD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %8) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #9
  br label %80

.critedge25:                                      ; preds = %.preheader, %56
  %59 = call noundef zeroext i1 @_ZN7testing8internal11AlwaysFalseEv()
  br i1 %59, label %.preheader.backedge, label %60

60:                                               ; preds = %.critedge25
  %61 = getelementptr inbounds i8, ptr %4, i64 4
  %62 = load i32, ptr %61, align 4, !tbaa !8
  call void @_ZN7testing8internal13DeathTestImpl12set_write_fdEi(ptr noundef nonnull align 8 dereferenceable(44) %0, i32 noundef %62)
  call void @_ZN7testing8internal11LogToStderrEv()
  %63 = call noundef ptr @_ZN7testing8internal15GetUnitTestImplEv()
  %64 = call noundef ptr @_ZN7testing8internal12UnitTestImpl9listenersEv(ptr noundef nonnull align 8 dereferenceable(473) %63)
  call void @_ZN7testing18TestEventListeners23SuppressEventForwardingEv(ptr noundef nonnull align 8 dereferenceable(24) %64)
  br label %79

65:                                               ; preds = %.backedge, %.preheader27
  %66 = load i32, ptr %48, align 4, !tbaa !8
  %67 = call i32 @close(i32 noundef %66)
  %68 = icmp eq i32 %67, -1
  br i1 %68, label %69, label %.critedge26

69:                                               ; preds = %65
  %70 = tail call ptr @__errno_location() #10
  %71 = load i32, ptr %70, align 4, !tbaa !8
  %72 = icmp eq i32 %71, 4
  br i1 %72, label %.backedge, label %.critedge2

.backedge:                                        ; preds = %69, %.critedge26
  br label %65, !llvm.loop !13

.critedge2:                                       ; preds = %69
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #9
  call 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 7018, ptr noundef nonnull @.str.262)
  invoke void @_ZN7testing8internal14DeathTestAbortERKNS0_6StringE(ptr noundef nonnull align 8 dereferenceable(16) %9)
          to label %73 unwind label %74

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

74:                                               ; preds = %.critedge2
  %75 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7testing8internal6StringD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #9
  br label %80

.critedge26:                                      ; preds = %65, %73
  %76 = call noundef zeroext i1 @_ZN7testing8internal11AlwaysFalseEv()
  br i1 %76, label %.backedge, label %77

77:                                               ; preds = %.critedge26
  %78 = load i32, ptr %4, align 4, !tbaa !8
  call void @_ZN7testing8internal13DeathTestImpl11set_read_fdEi(ptr noundef nonnull align 8 dereferenceable(44) %0, i32 noundef %78)
  call void @_ZN7testing8internal13DeathTestImpl11set_spawnedEb(ptr noundef nonnull align 8 dereferenceable(44) %0, i1 noundef zeroext true)
  br label %79

79:                                               ; preds = %77, %60
  %.0 = phi i32 [ 1, %60 ], [ 0, %77 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #9
  ret i32 %.0

80:                                               ; preds = %42, %57, %74, %40, %28
  %.pn21.pn = phi { ptr, i32 } [ %41, %40 ], [ %29, %28 ], [ %58, %57 ], [ %75, %74 ], [ %43, %42 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #9
  br label %81

81:                                               ; preds = %80, %20
  %.pn21.pn.pn = phi { ptr, i32 } [ %.pn21.pn, %80 ], [ %.pn, %20 ]
  resume { ptr, i32 } %.pn21.pn.pn
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN7testing8internal14GetThreadCountEv() local_unnamed_addr #1

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

; 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: nofree nounwind
declare i32 @fork() local_unnamed_addr #7

; 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: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN7testing8internal11LogToStderrEv() local_unnamed_addr #8

; 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

declare void @_ZN7testing8internal8GTestLogC1ENS0_16GTestLogSeverityEPKci(ptr, i32, ptr, i32) local_unnamed_addr

declare void @_ZN7testing8internal8GTestLogD1Ev(ptr) local_unnamed_addr

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 = { nofree 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 #8 = { 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 #9 = { nounwind }
attributes #10 = { 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 = distinct !{!7, !6}
!8 = !{!9, !9, i64 0}
!9 = !{!"int", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C++ TBAA"}
!12 = distinct !{!12, !6}
!13 = distinct !{!13, !6}


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