; LLVM IR from chensoft/libsocket :: lib/libchen/test/lib/googletest/googletest/test (gtest-death-test_test)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.testing::internal::RE" = type { ptr, i8, %struct.re_pattern_buffer, %struct.re_pattern_buffer }
%struct.re_pattern_buffer = type { ptr, i64, i64, i64, ptr, ptr, i64, i8 }
%"class.testing::internal::scoped_ptr" = type { ptr }
%"class.testing::ExitedWithCode" = type { i32 }
%"class.testing::internal::DeathTest::ReturnSentinel" = type { ptr }
%"class.testing::Message" = type { %"class.testing::internal::scoped_ptr.0" }
%"class.testing::internal::scoped_ptr.0" = type { ptr }
%"class.testing::internal::AssertHelper" = type { ptr }

@stderr = external global ptr, align 8
@.str.9 = external hidden unnamed_addr constant [125 x i8], align 1
@_ZTISt9exception = external constant ptr
@.str.10 = external hidden unnamed_addr constant [103 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.48 = external hidden unnamed_addr constant [5 x i8], align 1
@_ZN7testing28FLAGS_gtest_death_test_styleB5cxx11E = external global %"class.std::__cxx11::basic_string", align 8

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #0

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

declare i32 @fflush(ptr noundef) #2

declare noundef zeroext i1 @_ZN7testing8internal10AlwaysTrueEv() #2

; Function Attrs: noreturn
declare void @_exit(i32 noundef) #3

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

declare i32 @__gxx_personality_v0(...)

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

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

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

declare noundef zeroext i1 @_ZN7testing8internal9DeathTest6CreateEPKcPKNS0_2REES3_iPPS1_(ptr noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef) #2

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

declare noundef zeroext i1 @_ZN7testing8internal20ExitedUnsuccessfullyEi(i32 noundef) #2

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

; Function Attrs: nounwind memory(none)
declare i32 @llvm.eh.typeid.for.p0(ptr) #6

declare ptr @__cxa_begin_catch(ptr)

declare void @__cxa_end_catch()

; Function Attrs: noinline noreturn nounwind uwtable
declare hidden void @__clang_call_terminate(ptr noundef) #7

declare void @_ZN7testing8internal18FormatFileLocationB5cxx11EPKci(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef, i32 noundef) #2

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

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

; Function Attrs: nounwind
declare void @_ZN7testing8internal2RED1Ev(ptr noundef nonnull align 8 dereferenceable(144)) unnamed_addr #0

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

declare noundef ptr @_ZN7testing8internal9DeathTest11LastMessageEv() #2

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

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

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

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

declare void @_ZN7testing14ExitedWithCodeC1Ei(ptr noundef nonnull align 4 dereferenceable(4), i32 noundef) unnamed_addr #2

declare noundef zeroext i1 @_ZNK7testing14ExitedWithCodeclEi(ptr noundef nonnull align 4 dereferenceable(4), i32 noundef) #2

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z15ChangeToRootDirv() #5

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN47TestForDeathTest_FastDeathTestInChangedDir_Test8TestBodyEv(ptr noundef nonnull align 8 dereferenceable(56) %0) unnamed_addr #5 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca %"class.testing::internal::RE", align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca %"class.testing::internal::scoped_ptr", align 8
  %9 = alloca %"class.testing::ExitedWithCode", align 4
  %10 = alloca %"class.testing::internal::DeathTest::ReturnSentinel", align 8
  %11 = alloca ptr, align 8
  %12 = alloca %"class.std::__cxx11::basic_string", align 8
  %13 = alloca i32, align 4
  %14 = alloca %"class.testing::Message", align 8
  %15 = alloca %"class.testing::internal::AssertHelper", align 8
  %16 = alloca ptr, align 8
  %17 = alloca %"class.testing::internal::RE", align 8
  %18 = alloca ptr, align 8
  %19 = alloca %"class.testing::internal::scoped_ptr", align 8
  %20 = alloca %"class.testing::internal::DeathTest::ReturnSentinel", align 8
  %21 = alloca ptr, align 8
  %22 = alloca %"class.std::__cxx11::basic_string", align 8
  %23 = alloca %"class.testing::Message", align 8
  %24 = alloca %"class.testing::internal::AssertHelper", align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %25 = load ptr, ptr %2, align 8
  %26 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) @_ZN7testing28FLAGS_gtest_death_test_styleB5cxx11E, ptr noundef @.str.48)
  call void @_Z15ChangeToRootDirv()
  %27 = call noundef zeroext i1 @_ZN7testing8internal10AlwaysTrueEv()
  br i1 %27, label %28, label %174

28:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #9
  call void @llvm.lifetime.start.p0(i64 144, ptr %4) #9
  call void @_ZN7testing8internal2REC2EPKc(ptr noundef nonnull align 8 dereferenceable(144) %4, ptr noundef @.str.37)
  store ptr %4, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #9
  %29 = load ptr, ptr %3, align 8, !tbaa !5
  %30 = invoke noundef zeroext i1 @_ZN7testing8internal9DeathTest6CreateEPKcPKNS0_2REES3_iPPS1_(ptr noundef @.str.39, ptr noundef %29, ptr noundef @.str.9, i32 noundef 367, ptr noundef %5)
          to label %31 unwind label %33

31:                                               ; preds = %28
  br i1 %30, label %37, label %32

32:                                               ; preds = %31
  store i32 2, ptr %13, align 4
  br label %170

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

37:                                               ; preds = %31
  %38 = load ptr, ptr %5, align 8, !tbaa !5
  %39 = icmp ne ptr %38, null
  br i1 %39, label %40, label %169

40:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #9
  %41 = load ptr, ptr %5, align 8, !tbaa !5
  invoke void @_ZN7testing8internal10scoped_ptrINS0_9DeathTestEEC2EPS2_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef %41)
          to label %42 unwind label %49

42:                                               ; preds = %40
  %43 = load ptr, ptr %5, align 8, !tbaa !5
  %44 = load ptr, ptr %43, align 8, !tbaa !9
  %45 = getelementptr inbounds ptr, ptr %44, i64 2
  %46 = load ptr, ptr %45, align 8
  %47 = invoke noundef i32 %46(ptr noundef nonnull align 8 dereferenceable(8) %43)
          to label %48 unwind label %53

48:                                               ; preds = %42
  switch i32 %47, label %162 [
    i32 0, label %57
    i32 1, label %80
  ]

49:                                               ; preds = %40
  %50 = landingpad { ptr, i32 }
          cleanup
  %51 = extractvalue { ptr, i32 } %50, 0
  store ptr %51, ptr %6, align 8
  %52 = extractvalue { ptr, i32 } %50, 1
  store i32 %52, ptr %7, align 4
  br label %168

53:                                               ; preds = %42
  %54 = landingpad { ptr, i32 }
          cleanup
  %55 = extractvalue { ptr, i32 } %54, 0
  store ptr %55, ptr %6, align 8
  %56 = extractvalue { ptr, i32 } %54, 1
  store i32 %56, ptr %7, align 4
  br label %167

57:                                               ; preds = %48
  %58 = load ptr, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #9
  invoke void @_ZN7testing14ExitedWithCodeC1Ei(ptr noundef nonnull align 4 dereferenceable(4) %9, i32 noundef 1)
          to label %59 unwind label %75

59:                                               ; preds = %57
  %60 = load ptr, ptr %5, align 8, !tbaa !5
  %61 = load ptr, ptr %60, align 8, !tbaa !9
  %62 = getelementptr inbounds ptr, ptr %61, i64 3
  %63 = load ptr, ptr %62, align 8
  %64 = invoke noundef i32 %63(ptr noundef nonnull align 8 dereferenceable(8) %60)
          to label %65 unwind label %75

65:                                               ; preds = %59
  %66 = invoke noundef zeroext i1 @_ZNK7testing14ExitedWithCodeclEi(ptr noundef nonnull align 4 dereferenceable(4) %9, i32 noundef %64)
          to label %67 unwind label %75

67:                                               ; preds = %65
  %68 = load ptr, ptr %58, align 8, !tbaa !9
  %69 = getelementptr inbounds ptr, ptr %68, i64 4
  %70 = load ptr, ptr %69, align 8
  %71 = invoke noundef zeroext i1 %70(ptr noundef nonnull align 8 dereferenceable(8) %58, i1 noundef zeroext %66)
          to label %72 unwind label %75

72:                                               ; preds = %67
  %73 = xor i1 %71, true
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #9
  br i1 %73, label %74, label %79

74:                                               ; preds = %72
  store i32 2, ptr %13, align 4
  br label %164

75:                                               ; preds = %67, %65, %59, %57
  %76 = landingpad { ptr, i32 }
          cleanup
  %77 = extractvalue { ptr, i32 } %76, 0
  store ptr %77, ptr %6, align 8
  %78 = extractvalue { ptr, i32 } %76, 1
  store i32 %78, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #9
  br label %167

79:                                               ; preds = %72
  br label %163

80:                                               ; preds = %48
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #9
  %81 = load ptr, ptr %5, align 8, !tbaa !5
  invoke void @_ZN7testing8internal9DeathTest14ReturnSentinelC2EPS1_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef %81)
          to label %82 unwind label %87

82:                                               ; preds = %80
  %83 = invoke noundef zeroext i1 @_ZN7testing8internal10AlwaysTrueEv()
          to label %84 unwind label %91

84:                                               ; preds = %82
  br i1 %83, label %85, label %135

85:                                               ; preds = %84
  invoke void @_exit(i32 noundef 1) #10
          to label %86 unwind label %91

86:                                               ; preds = %85
  unreachable

87:                                               ; preds = %80
  %88 = landingpad { ptr, i32 }
          cleanup
  %89 = extractvalue { ptr, i32 } %88, 0
  store ptr %89, ptr %6, align 8
  %90 = extractvalue { ptr, i32 } %88, 1
  store i32 %90, ptr %7, align 4
  br label %161

91:                                               ; preds = %85, %82
  %92 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  %93 = extractvalue { ptr, i32 } %92, 0
  store ptr %93, ptr %6, align 8
  %94 = extractvalue { ptr, i32 } %92, 1
  store i32 %94, ptr %7, align 4
  br label %95

95:                                               ; preds = %91
  %96 = load i32, ptr %7, align 4
  %97 = call i32 @llvm.eh.typeid.for.p0(ptr @_ZTISt9exception) #9
  %98 = icmp eq i32 %96, %97
  br i1 %98, label %99, label %126

99:                                               ; preds = %95
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #9
  %100 = load ptr, ptr %6, align 8
  %101 = call ptr @__cxa_begin_catch(ptr %100) #9
  store ptr %101, ptr %11, align 8
  %102 = load ptr, ptr @stderr, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %12) #9
  invoke void @_ZN7testing8internal18FormatFileLocationB5cxx11EPKci(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %12, ptr noundef @.str.9, i32 noundef 367)
          to label %103 unwind label %145

103:                                              ; preds = %99
  %104 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %12) #9
  %105 = load ptr, ptr %11, align 8, !tbaa !5
  %106 = load ptr, ptr %105, align 8, !tbaa !9
  %107 = getelementptr inbounds ptr, ptr %106, i64 2
  %108 = load ptr, ptr %107, align 8
  %109 = call noundef ptr %108(ptr noundef nonnull align 8 dereferenceable(8) %105) #9
  %110 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %102, ptr noundef @.str.10, ptr noundef %104, ptr noundef %109) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %12) #9
  %111 = load ptr, ptr @stderr, align 8, !tbaa !5
  %112 = invoke i32 @fflush(ptr noundef %111)
          to label %113 unwind label %149

113:                                              ; preds = %103
  %114 = load ptr, ptr %5, align 8, !tbaa !5
  %115 = load ptr, ptr %114, align 8, !tbaa !9
  %116 = getelementptr inbounds ptr, ptr %115, i64 5
  %117 = load ptr, ptr %116, align 8
  invoke void %117(ptr noundef nonnull align 8 dereferenceable(8) %114, i32 noundef 1)
          to label %118 unwind label %149

118:                                              ; preds = %113
  invoke void @__cxa_end_catch()
          to label %119 unwind label %153

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

120:                                              ; preds = %135, %134, %119
  %121 = load ptr, ptr %5, align 8, !tbaa !5
  %122 = load ptr, ptr %121, align 8, !tbaa !9
  %123 = getelementptr inbounds ptr, ptr %122, i64 5
  %124 = load ptr, ptr %123, align 8
  invoke void %124(ptr noundef nonnull align 8 dereferenceable(8) %121, i32 noundef 2)
          to label %125 unwind label %140

125:                                              ; preds = %120
  call void @_ZN7testing8internal9DeathTest14ReturnSentinelD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %10) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #9
  br label %163

126:                                              ; preds = %95
  %127 = load ptr, ptr %6, align 8
  %128 = call ptr @__cxa_begin_catch(ptr %127) #9
  %129 = load ptr, ptr %5, align 8, !tbaa !5
  %130 = load ptr, ptr %129, align 8, !tbaa !9
  %131 = getelementptr inbounds ptr, ptr %130, i64 5
  %132 = load ptr, ptr %131, align 8
  invoke void %132(ptr noundef nonnull align 8 dereferenceable(8) %129, i32 noundef 1)
          to label %133 unwind label %136

133:                                              ; preds = %126
  invoke void @__cxa_end_catch()
          to label %134 unwind label %140

134:                                              ; preds = %133
  br label %120

135:                                              ; preds = %84
  br label %120

136:                                              ; preds = %126
  %137 = landingpad { ptr, i32 }
          cleanup
  %138 = extractvalue { ptr, i32 } %137, 0
  store ptr %138, ptr %6, align 8
  %139 = extractvalue { ptr, i32 } %137, 1
  store i32 %139, ptr %7, align 4
  invoke void @__cxa_end_catch()
          to label %144 unwind label %352

140:                                              ; preds = %133, %120
  %141 = landingpad { ptr, i32 }
          cleanup
  %142 = extractvalue { ptr, i32 } %141, 0
  store ptr %142, ptr %6, align 8
  %143 = extractvalue { ptr, i32 } %141, 1
  store i32 %143, ptr %7, align 4
  br label %160

144:                                              ; preds = %136
  br label %160

145:                                              ; preds = %99
  %146 = landingpad { ptr, i32 }
          cleanup
  %147 = extractvalue { ptr, i32 } %146, 0
  store ptr %147, ptr %6, align 8
  %148 = extractvalue { ptr, i32 } %146, 1
  store i32 %148, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 32, ptr %12) #9
  br label %157

149:                                              ; preds = %113, %103
  %150 = landingpad { ptr, i32 }
          cleanup
  %151 = extractvalue { ptr, i32 } %150, 0
  store ptr %151, ptr %6, align 8
  %152 = extractvalue { ptr, i32 } %150, 1
  store i32 %152, ptr %7, align 4
  br label %157

153:                                              ; preds = %118
  %154 = landingpad { ptr, i32 }
          cleanup
  %155 = extractvalue { ptr, i32 } %154, 0
  store ptr %155, ptr %6, align 8
  %156 = extractvalue { ptr, i32 } %154, 1
  store i32 %156, ptr %7, align 4
  br label %159

157:                                              ; preds = %149, %145
  invoke void @__cxa_end_catch()
          to label %158 unwind label %352

158:                                              ; preds = %157
  br label %159

159:                                              ; preds = %158, %153
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #9
  br label %160

160:                                              ; preds = %159, %144, %140
  call void @_ZN7testing8internal9DeathTest14ReturnSentinelD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %10) #9
  br label %161

161:                                              ; preds = %160, %87
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #9
  br label %167

162:                                              ; preds = %48
  br label %163

163:                                              ; preds = %162, %125, %79
  store i32 0, ptr %13, align 4
  br label %164

164:                                              ; preds = %163, %74
  call void @_ZN7testing8internal10scoped_ptrINS0_9DeathTestEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #9
  %165 = load i32, ptr %13, align 4
  switch i32 %165, label %170 [
    i32 0, label %166
  ]

166:                                              ; preds = %164
  br label %169

167:                                              ; preds = %161, %75, %53
  call void @_ZN7testing8internal10scoped_ptrINS0_9DeathTestEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #9
  br label %168

168:                                              ; preds = %167, %49
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #9
  br label %173

169:                                              ; preds = %166, %37
  store i32 0, ptr %13, align 4
  br label %170

170:                                              ; preds = %169, %164, %32
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #9
  call void @_ZN7testing8internal2RED1Ev(ptr noundef nonnull align 8 dereferenceable(144) %4) #9
  call void @llvm.lifetime.end.p0(i64 144, ptr %4) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #9
  %171 = load i32, ptr %13, align 4
  switch i32 %171, label %355 [
    i32 0, label %172
    i32 2, label %175
  ]

172:                                              ; preds = %170
  br label %189

173:                                              ; preds = %168, %33
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #9
  call void @_ZN7testing8internal2RED1Ev(ptr noundef nonnull align 8 dereferenceable(144) %4) #9
  call void @llvm.lifetime.end.p0(i64 144, ptr %4) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #9
  br label %347

174:                                              ; preds = %1
  br label %175

175:                                              ; preds = %174, %170
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #9
  call void @_ZN7testing7MessageC1Ev(ptr noundef nonnull align 8 dereferenceable(8) %14)
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #9
  %176 = invoke noundef ptr @_ZN7testing8internal9DeathTest11LastMessageEv()
          to label %177 unwind label %180

177:                                              ; preds = %175
  invoke void @_ZN7testing8internal12AssertHelperC1ENS_14TestPartResult4TypeEPKciS5_(ptr noundef nonnull align 8 dereferenceable(8) %15, i32 noundef 1, ptr noundef @.str.9, i32 noundef 367, ptr noundef %176)
          to label %178 unwind label %180

178:                                              ; preds = %177
  invoke void @_ZNK7testing8internal12AssertHelperaSERKNS_7MessageE(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 8 dereferenceable(8) %14)
          to label %179 unwind label %184

179:                                              ; preds = %178
  call void @_ZN7testing8internal12AssertHelperD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %15) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #9
  call void @_ZN7testing7MessageD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %14) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #9
  br label %189

180:                                              ; preds = %177, %175
  %181 = landingpad { ptr, i32 }
          cleanup
  %182 = extractvalue { ptr, i32 } %181, 0
  store ptr %182, ptr %6, align 8
  %183 = extractvalue { ptr, i32 } %181, 1
  store i32 %183, ptr %7, align 4
  br label %188

184:                                              ; preds = %178
  %185 = landingpad { ptr, i32 }
          cleanup
  %186 = extractvalue { ptr, i32 } %185, 0
  store ptr %186, ptr %6, align 8
  %187 = extractvalue { ptr, i32 } %185, 1
  store i32 %187, ptr %7, align 4
  call void @_ZN7testing8internal12AssertHelperD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %15) #9
  br label %188

188:                                              ; preds = %184, %180
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #9
  call void @_ZN7testing7MessageD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %14) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #9
  br label %347

189:                                              ; preds = %179, %172
  call void @_Z15ChangeToRootDirv()
  %190 = call noundef zeroext i1 @_ZN7testing8internal10AlwaysTrueEv()
  br i1 %190, label %191, label %331

191:                                              ; preds = %189
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #9
  call void @llvm.lifetime.start.p0(i64 144, ptr %17) #9
  call void @_ZN7testing8internal2REC2EPKc(ptr noundef nonnull align 8 dereferenceable(144) %17, ptr noundef @.str.37)
  store ptr %17, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #9
  %192 = load ptr, ptr %16, align 8, !tbaa !5
  %193 = invoke noundef zeroext i1 @_ZN7testing8internal9DeathTest6CreateEPKcPKNS0_2REES3_iPPS1_(ptr noundef @.str.39, ptr noundef %192, ptr noundef @.str.9, i32 noundef 370, ptr noundef %18)
          to label %194 unwind label %196

194:                                              ; preds = %191
  br i1 %193, label %200, label %195

195:                                              ; preds = %194
  store i32 4, ptr %13, align 4
  br label %327

196:                                              ; preds = %191
  %197 = landingpad { ptr, i32 }
          cleanup
  %198 = extractvalue { ptr, i32 } %197, 0
  store ptr %198, ptr %6, align 8
  %199 = extractvalue { ptr, i32 } %197, 1
  store i32 %199, ptr %7, align 4
  br label %330

200:                                              ; preds = %194
  %201 = load ptr, ptr %18, align 8, !tbaa !5
  %202 = icmp ne ptr %201, null
  br i1 %202, label %203, label %326

203:                                              ; preds = %200
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #9
  %204 = load ptr, ptr %18, align 8, !tbaa !5
  invoke void @_ZN7testing8internal10scoped_ptrINS0_9DeathTestEEC2EPS2_(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef %204)
          to label %205 unwind label %212

205:                                              ; preds = %203
  %206 = load ptr, ptr %18, align 8, !tbaa !5
  %207 = load ptr, ptr %206, align 8, !tbaa !9
  %208 = getelementptr inbounds ptr, ptr %207, i64 2
  %209 = load ptr, ptr %208, align 8
  %210 = invoke noundef i32 %209(ptr noundef nonnull align 8 dereferenceable(8) %206)
          to label %211 unwind label %216

211:                                              ; preds = %205
  switch i32 %210, label %319 [
    i32 0, label %220
    i32 1, label %237
  ]

212:                                              ; preds = %203
  %213 = landingpad { ptr, i32 }
          cleanup
  %214 = extractvalue { ptr, i32 } %213, 0
  store ptr %214, ptr %6, align 8
  %215 = extractvalue { ptr, i32 } %213, 1
  store i32 %215, ptr %7, align 4
  br label %325

216:                                              ; preds = %229, %227, %220, %205
  %217 = landingpad { ptr, i32 }
          cleanup
  %218 = extractvalue { ptr, i32 } %217, 0
  store ptr %218, ptr %6, align 8
  %219 = extractvalue { ptr, i32 } %217, 1
  store i32 %219, ptr %7, align 4
  br label %324

220:                                              ; preds = %211
  %221 = load ptr, ptr %18, align 8, !tbaa !5
  %222 = load ptr, ptr %18, align 8, !tbaa !5
  %223 = load ptr, ptr %222, align 8, !tbaa !9
  %224 = getelementptr inbounds ptr, ptr %223, i64 3
  %225 = load ptr, ptr %224, align 8
  %226 = invoke noundef i32 %225(ptr noundef nonnull align 8 dereferenceable(8) %222)
          to label %227 unwind label %216

227:                                              ; preds = %220
  %228 = invoke noundef zeroext i1 @_ZN7testing8internal20ExitedUnsuccessfullyEi(i32 noundef %226)
          to label %229 unwind label %216

229:                                              ; preds = %227
  %230 = load ptr, ptr %221, align 8, !tbaa !9
  %231 = getelementptr inbounds ptr, ptr %230, i64 4
  %232 = load ptr, ptr %231, align 8
  %233 = invoke noundef zeroext i1 %232(ptr noundef nonnull align 8 dereferenceable(8) %221, i1 noundef zeroext %228)
          to label %234 unwind label %216

234:                                              ; preds = %229
  br i1 %233, label %236, label %235

235:                                              ; preds = %234
  store i32 4, ptr %13, align 4
  br label %321

236:                                              ; preds = %234
  br label %320

237:                                              ; preds = %211
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #9
  %238 = load ptr, ptr %18, align 8, !tbaa !5
  invoke void @_ZN7testing8internal9DeathTest14ReturnSentinelC2EPS1_(ptr noundef nonnull align 8 dereferenceable(8) %20, ptr noundef %238)
          to label %239 unwind label %244

239:                                              ; preds = %237
  %240 = invoke noundef zeroext i1 @_ZN7testing8internal10AlwaysTrueEv()
          to label %241 unwind label %248

241:                                              ; preds = %239
  br i1 %240, label %242, label %292

242:                                              ; preds = %241
  invoke void @_exit(i32 noundef 1) #10
          to label %243 unwind label %248

243:                                              ; preds = %242
  unreachable

244:                                              ; preds = %237
  %245 = landingpad { ptr, i32 }
          cleanup
  %246 = extractvalue { ptr, i32 } %245, 0
  store ptr %246, ptr %6, align 8
  %247 = extractvalue { ptr, i32 } %245, 1
  store i32 %247, ptr %7, align 4
  br label %318

248:                                              ; preds = %242, %239
  %249 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  %250 = extractvalue { ptr, i32 } %249, 0
  store ptr %250, ptr %6, align 8
  %251 = extractvalue { ptr, i32 } %249, 1
  store i32 %251, ptr %7, align 4
  br label %252

252:                                              ; preds = %248
  %253 = load i32, ptr %7, align 4
  %254 = call i32 @llvm.eh.typeid.for.p0(ptr @_ZTISt9exception) #9
  %255 = icmp eq i32 %253, %254
  br i1 %255, label %256, label %283

256:                                              ; preds = %252
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #9
  %257 = load ptr, ptr %6, align 8
  %258 = call ptr @__cxa_begin_catch(ptr %257) #9
  store ptr %258, ptr %21, align 8
  %259 = load ptr, ptr @stderr, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %22) #9
  invoke void @_ZN7testing8internal18FormatFileLocationB5cxx11EPKci(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %22, ptr noundef @.str.9, i32 noundef 370)
          to label %260 unwind label %302

260:                                              ; preds = %256
  %261 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %22) #9
  %262 = load ptr, ptr %21, align 8, !tbaa !5
  %263 = load ptr, ptr %262, align 8, !tbaa !9
  %264 = getelementptr inbounds ptr, ptr %263, i64 2
  %265 = load ptr, ptr %264, align 8
  %266 = call noundef ptr %265(ptr noundef nonnull align 8 dereferenceable(8) %262) #9
  %267 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %259, ptr noundef @.str.10, ptr noundef %261, ptr noundef %266) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %22) #9
  %268 = load ptr, ptr @stderr, align 8, !tbaa !5
  %269 = invoke i32 @fflush(ptr noundef %268)
          to label %270 unwind label %306

270:                                              ; preds = %260
  %271 = load ptr, ptr %18, align 8, !tbaa !5
  %272 = load ptr, ptr %271, align 8, !tbaa !9
  %273 = getelementptr inbounds ptr, ptr %272, i64 5
  %274 = load ptr, ptr %273, align 8
  invoke void %274(ptr noundef nonnull align 8 dereferenceable(8) %271, i32 noundef 1)
          to label %275 unwind label %306

275:                                              ; preds = %270
  invoke void @__cxa_end_catch()
          to label %276 unwind label %310

276:                                              ; preds = %275
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #9
  br label %277

277:                                              ; preds = %292, %291, %276
  %278 = load ptr, ptr %18, align 8, !tbaa !5
  %279 = load ptr, ptr %278, align 8, !tbaa !9
  %280 = getelementptr inbounds ptr, ptr %279, i64 5
  %281 = load ptr, ptr %280, align 8
  invoke void %281(ptr noundef nonnull align 8 dereferenceable(8) %278, i32 noundef 2)
          to label %282 unwind label %297

282:                                              ; preds = %277
  store i32 5, ptr %13, align 4
  call void @_ZN7testing8internal9DeathTest14ReturnSentinelD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %20) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #9
  br label %320

283:                                              ; preds = %252
  %284 = load ptr, ptr %6, align 8
  %285 = call ptr @__cxa_begin_catch(ptr %284) #9
  %286 = load ptr, ptr %18, align 8, !tbaa !5
  %287 = load ptr, ptr %286, align 8, !tbaa !9
  %288 = getelementptr inbounds ptr, ptr %287, i64 5
  %289 = load ptr, ptr %288, align 8
  invoke void %289(ptr noundef nonnull align 8 dereferenceable(8) %286, i32 noundef 1)
          to label %290 unwind label %293

290:                                              ; preds = %283
  invoke void @__cxa_end_catch()
          to label %291 unwind label %297

291:                                              ; preds = %290
  br label %277

292:                                              ; preds = %241
  br label %277

293:                                              ; preds = %283
  %294 = landingpad { ptr, i32 }
          cleanup
  %295 = extractvalue { ptr, i32 } %294, 0
  store ptr %295, ptr %6, align 8
  %296 = extractvalue { ptr, i32 } %294, 1
  store i32 %296, ptr %7, align 4
  invoke void @__cxa_end_catch()
          to label %301 unwind label %352

297:                                              ; preds = %290, %277
  %298 = landingpad { ptr, i32 }
          cleanup
  %299 = extractvalue { ptr, i32 } %298, 0
  store ptr %299, ptr %6, align 8
  %300 = extractvalue { ptr, i32 } %298, 1
  store i32 %300, ptr %7, align 4
  br label %317

301:                                              ; preds = %293
  br label %317

302:                                              ; preds = %256
  %303 = landingpad { ptr, i32 }
          cleanup
  %304 = extractvalue { ptr, i32 } %303, 0
  store ptr %304, ptr %6, align 8
  %305 = extractvalue { ptr, i32 } %303, 1
  store i32 %305, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 32, ptr %22) #9
  br label %314

306:                                              ; preds = %270, %260
  %307 = landingpad { ptr, i32 }
          cleanup
  %308 = extractvalue { ptr, i32 } %307, 0
  store ptr %308, ptr %6, align 8
  %309 = extractvalue { ptr, i32 } %307, 1
  store i32 %309, ptr %7, align 4
  br label %314

310:                                              ; preds = %275
  %311 = landingpad { ptr, i32 }
          cleanup
  %312 = extractvalue { ptr, i32 } %311, 0
  store ptr %312, ptr %6, align 8
  %313 = extractvalue { ptr, i32 } %311, 1
  store i32 %313, ptr %7, align 4
  br label %316

314:                                              ; preds = %306, %302
  invoke void @__cxa_end_catch()
          to label %315 unwind label %352

315:                                              ; preds = %314
  br label %316

316:                                              ; preds = %315, %310
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #9
  br label %317

317:                                              ; preds = %316, %301, %297
  call void @_ZN7testing8internal9DeathTest14ReturnSentinelD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %20) #9
  br label %318

318:                                              ; preds = %317, %244
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #9
  br label %324

319:                                              ; preds = %211
  br label %320

320:                                              ; preds = %319, %282, %236
  store i32 0, ptr %13, align 4
  br label %321

321:                                              ; preds = %320, %235
  call void @_ZN7testing8internal10scoped_ptrINS0_9DeathTestEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %19) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #9
  %322 = load i32, ptr %13, align 4
  switch i32 %322, label %327 [
    i32 0, label %323
  ]

323:                                              ; preds = %321
  br label %326

324:                                              ; preds = %318, %216
  call void @_ZN7testing8internal10scoped_ptrINS0_9DeathTestEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %19) #9
  br label %325

325:                                              ; preds = %324, %212
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #9
  br label %330

326:                                              ; preds = %323, %200
  store i32 0, ptr %13, align 4
  br label %327

327:                                              ; preds = %326, %321, %195
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #9
  call void @_ZN7testing8internal2RED1Ev(ptr noundef nonnull align 8 dereferenceable(144) %17) #9
  call void @llvm.lifetime.end.p0(i64 144, ptr %17) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #9
  %328 = load i32, ptr %13, align 4
  switch i32 %328, label %355 [
    i32 0, label %329
    i32 4, label %332
  ]

329:                                              ; preds = %327
  br label %346

330:                                              ; preds = %325, %196
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #9
  call void @_ZN7testing8internal2RED1Ev(ptr noundef nonnull align 8 dereferenceable(144) %17) #9
  call void @llvm.lifetime.end.p0(i64 144, ptr %17) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #9
  br label %347

331:                                              ; preds = %189
  br label %332

332:                                              ; preds = %331, %327
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #9
  call void @_ZN7testing7MessageC1Ev(ptr noundef nonnull align 8 dereferenceable(8) %23)
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #9
  %333 = invoke noundef ptr @_ZN7testing8internal9DeathTest11LastMessageEv()
          to label %334 unwind label %337

334:                                              ; preds = %332
  invoke void @_ZN7testing8internal12AssertHelperC1ENS_14TestPartResult4TypeEPKciS5_(ptr noundef nonnull align 8 dereferenceable(8) %24, i32 noundef 2, ptr noundef @.str.9, i32 noundef 370, ptr noundef %333)
          to label %335 unwind label %337

335:                                              ; preds = %334
  invoke void @_ZNK7testing8internal12AssertHelperaSERKNS_7MessageE(ptr noundef nonnull align 8 dereferenceable(8) %24, ptr noundef nonnull align 8 dereferenceable(8) %23)
          to label %336 unwind label %341

336:                                              ; preds = %335
  call void @_ZN7testing8internal12AssertHelperD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %24) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #9
  call void @_ZN7testing7MessageD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %23) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #9
  br label %346

337:                                              ; preds = %334, %332
  %338 = landingpad { ptr, i32 }
          cleanup
  %339 = extractvalue { ptr, i32 } %338, 0
  store ptr %339, ptr %6, align 8
  %340 = extractvalue { ptr, i32 } %338, 1
  store i32 %340, ptr %7, align 4
  br label %345

341:                                              ; preds = %335
  %342 = landingpad { ptr, i32 }
          cleanup
  %343 = extractvalue { ptr, i32 } %342, 0
  store ptr %343, ptr %6, align 8
  %344 = extractvalue { ptr, i32 } %342, 1
  store i32 %344, ptr %7, align 4
  call void @_ZN7testing8internal12AssertHelperD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %24) #9
  br label %345

345:                                              ; preds = %341, %337
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #9
  call void @_ZN7testing7MessageD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %23) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #9
  br label %347

346:                                              ; preds = %336, %329
  ret void

347:                                              ; preds = %345, %330, %188, %173
  %348 = load ptr, ptr %6, align 8
  %349 = load i32, ptr %7, align 4
  %350 = insertvalue { ptr, i32 } poison, ptr %348, 0
  %351 = insertvalue { ptr, i32 } %350, i32 %349, 1
  resume { ptr, i32 } %351

352:                                              ; preds = %314, %293, %157, %136
  %353 = landingpad { ptr, i32 }
          catch ptr null
  %354 = extractvalue { ptr, i32 } %353, 0
  call void @__clang_call_terminate(ptr %354) #11
  unreachable

355:                                              ; preds = %327, %170
  unreachable
}

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"vtable pointer", !8, i64 0}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.testing::internal::RE" = type { ptr, i8, %struct.re_pattern_buffer, %struct.re_pattern_buffer }
%struct.re_pattern_buffer = type { ptr, i64, i64, i64, ptr, ptr, i64, i8 }
%"class.testing::internal::scoped_ptr" = type { ptr }
%"class.testing::ExitedWithCode" = type { i32 }
%"class.testing::internal::DeathTest::ReturnSentinel" = type { ptr }
%"class.testing::Message" = type { %"class.testing::internal::scoped_ptr.0" }
%"class.testing::internal::scoped_ptr.0" = type { ptr }
%"class.testing::internal::AssertHelper" = type { ptr }

@stderr = external local_unnamed_addr global ptr, align 8
@.str.9 = external hidden unnamed_addr constant [125 x i8], align 1
@_ZTISt9exception = external constant ptr
@.str.10 = external hidden unnamed_addr constant [103 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.48 = external hidden unnamed_addr constant [5 x i8], align 1
@_ZN7testing28FLAGS_gtest_death_test_styleB5cxx11E = external global %"class.std::__cxx11::basic_string", align 8

; Function Attrs: nofree nounwind
declare noundef i32 @fprintf(ptr nocapture noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #0

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

; Function Attrs: nofree nounwind
declare noundef i32 @fflush(ptr nocapture noundef) local_unnamed_addr #0

declare noundef zeroext i1 @_ZN7testing8internal10AlwaysTrueEv() local_unnamed_addr #2

; Function Attrs: noreturn
declare void @_exit(i32 noundef) local_unnamed_addr #3

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

declare i32 @__gxx_personality_v0(...)

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

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

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

declare noundef zeroext i1 @_ZN7testing8internal9DeathTest6CreateEPKcPKNS0_2REES3_iPPS1_(ptr noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2

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

declare noundef zeroext i1 @_ZN7testing8internal20ExitedUnsuccessfullyEi(i32 noundef) local_unnamed_addr #2

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

; Function Attrs: nofree nosync nounwind memory(none)
declare i32 @llvm.eh.typeid.for.p0(ptr) #6

declare ptr @__cxa_begin_catch(ptr) local_unnamed_addr

declare void @__cxa_end_catch() local_unnamed_addr

; Function Attrs: noinline noreturn nounwind uwtable
declare hidden void @__clang_call_terminate(ptr noundef) local_unnamed_addr #7

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

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

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

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

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

declare noundef ptr @_ZN7testing8internal9DeathTest11LastMessageEv() local_unnamed_addr #2

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

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

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

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

declare void @_ZN7testing14ExitedWithCodeC1Ei(ptr noundef nonnull align 4 dereferenceable(4), i32 noundef) unnamed_addr #2

declare noundef zeroext i1 @_ZNK7testing14ExitedWithCodeclEi(ptr noundef nonnull align 4 dereferenceable(4), i32 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z15ChangeToRootDirv() local_unnamed_addr #5

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN47TestForDeathTest_FastDeathTestInChangedDir_Test8TestBodyEv(ptr nocapture noundef nonnull readnone align 8 dereferenceable(56) %0) unnamed_addr #5 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.testing::internal::RE", align 8
  %3 = alloca ptr, align 8
  %4 = alloca %"class.testing::internal::scoped_ptr", align 8
  %5 = alloca %"class.testing::ExitedWithCode", align 4
  %6 = alloca %"class.testing::internal::DeathTest::ReturnSentinel", align 8
  %7 = alloca %"class.std::__cxx11::basic_string", align 8
  %8 = alloca %"class.testing::Message", align 8
  %9 = alloca %"class.testing::internal::AssertHelper", align 8
  %10 = alloca %"class.testing::internal::RE", align 8
  %11 = alloca ptr, align 8
  %12 = alloca %"class.testing::internal::scoped_ptr", align 8
  %13 = alloca %"class.testing::internal::DeathTest::ReturnSentinel", align 8
  %14 = alloca %"class.std::__cxx11::basic_string", align 8
  %15 = alloca %"class.testing::Message", align 8
  %16 = alloca %"class.testing::internal::AssertHelper", align 8
  %17 = tail call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) @_ZN7testing28FLAGS_gtest_death_test_styleB5cxx11E, ptr noundef nonnull @.str.48)
  tail call void @_Z15ChangeToRootDirv()
  %18 = tail call noundef zeroext i1 @_ZN7testing8internal10AlwaysTrueEv()
  br i1 %18, label %19, label %110

19:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 144, ptr nonnull %2) #10
  call void @_ZN7testing8internal2REC2EPKc(ptr noundef nonnull align 8 dereferenceable(144) %2, ptr noundef nonnull @.str.37)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #10
  %20 = invoke noundef zeroext i1 @_ZN7testing8internal9DeathTest6CreateEPKcPKNS0_2REES3_iPPS1_(ptr noundef nonnull @.str.39, ptr noundef nonnull %2, ptr noundef nonnull @.str.9, i32 noundef 367, ptr noundef nonnull %3)
          to label %21 unwind label %22

21:                                               ; preds = %19
  br i1 %20, label %24, label %108

22:                                               ; preds = %19
  %23 = landingpad { ptr, i32 }
          cleanup
  br label %109

24:                                               ; preds = %21
  %25 = load ptr, ptr %3, align 8, !tbaa !5
  %.not = icmp eq ptr %25, null
  br i1 %.not, label %.thread59, label %26

26:                                               ; preds = %24
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #10
  call void @_ZN7testing8internal10scoped_ptrINS0_9DeathTestEEC2EPS2_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull %25)
  %27 = load ptr, ptr %3, align 8, !tbaa !5
  %28 = load ptr, ptr %27, align 8, !tbaa !9
  %29 = getelementptr inbounds i8, ptr %28, i64 16
  %30 = load ptr, ptr %29, align 8
  %31 = invoke noundef i32 %30(ptr noundef nonnull align 8 dereferenceable(8) %27)
          to label %32 unwind label %33

32:                                               ; preds = %26
  switch i32 %31, label %.thread [
    i32 0, label %35
    i32 1, label %53
  ]

33:                                               ; preds = %26
  %34 = landingpad { ptr, i32 }
          cleanup
  br label %107

35:                                               ; preds = %32
  %36 = load ptr, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #10
  invoke void @_ZN7testing14ExitedWithCodeC1Ei(ptr noundef nonnull align 4 dereferenceable(4) %5, i32 noundef 1)
          to label %37 unwind label %51

37:                                               ; preds = %35
  %38 = load ptr, ptr %3, align 8, !tbaa !5
  %39 = load ptr, ptr %38, align 8, !tbaa !9
  %40 = getelementptr inbounds i8, ptr %39, i64 24
  %41 = load ptr, ptr %40, align 8
  %42 = invoke noundef i32 %41(ptr noundef nonnull align 8 dereferenceable(8) %38)
          to label %43 unwind label %51

43:                                               ; preds = %37
  %44 = invoke noundef zeroext i1 @_ZNK7testing14ExitedWithCodeclEi(ptr noundef nonnull align 4 dereferenceable(4) %5, i32 noundef %42)
          to label %45 unwind label %51

45:                                               ; preds = %43
  %46 = load ptr, ptr %36, align 8, !tbaa !9
  %47 = getelementptr inbounds i8, ptr %46, i64 32
  %48 = load ptr, ptr %47, align 8
  %49 = invoke noundef zeroext i1 %48(ptr noundef nonnull align 8 dereferenceable(8) %36, i1 noundef zeroext %44)
          to label %50 unwind label %51

50:                                               ; preds = %45
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #10
  br i1 %49, label %.thread, label %106

51:                                               ; preds = %45, %43, %37, %35
  %52 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #10
  br label %107

53:                                               ; preds = %32
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #10
  %54 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN7testing8internal9DeathTest14ReturnSentinelC2EPS1_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef %54)
  %55 = invoke noundef zeroext i1 @_ZN7testing8internal10AlwaysTrueEv()
          to label %56 unwind label %59

56:                                               ; preds = %53
  br i1 %55, label %57, label %82

57:                                               ; preds = %56
  invoke void @_exit(i32 noundef 1) #11
          to label %58 unwind label %59

58:                                               ; preds = %57
  unreachable

59:                                               ; preds = %57, %53
  %60 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  %61 = extractvalue { ptr, i32 } %60, 0
  %62 = extractvalue { ptr, i32 } %60, 1
  %63 = call i32 @llvm.eh.typeid.for.p0(ptr nonnull @_ZTISt9exception) #10
  %64 = icmp eq i32 %62, %63
  %65 = call ptr @__cxa_begin_catch(ptr %61) #10
  br i1 %64, label %66, label %88

66:                                               ; preds = %59
  %67 = load ptr, ptr @stderr, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %7) #10
  invoke void @_ZN7testing8internal18FormatFileLocationB5cxx11EPKci(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %7, ptr noundef nonnull @.str.9, i32 noundef 367)
          to label %68 unwind label %98

68:                                               ; preds = %66
  %69 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %7) #10
  %70 = load ptr, ptr %65, align 8, !tbaa !9
  %71 = getelementptr inbounds i8, ptr %70, i64 16
  %72 = load ptr, ptr %71, align 8
  %73 = call noundef ptr %72(ptr noundef nonnull align 8 dereferenceable(8) %65) #10
  %74 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %67, ptr noundef nonnull @.str.10, ptr noundef %69, ptr noundef %73) #12
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #10
  %75 = load ptr, ptr @stderr, align 8, !tbaa !5
  %76 = call i32 @fflush(ptr noundef %75)
  %77 = load ptr, ptr %3, align 8, !tbaa !5
  %78 = load ptr, ptr %77, align 8, !tbaa !9
  %79 = getelementptr inbounds i8, ptr %78, i64 40
  %80 = load ptr, ptr %79, align 8
  invoke void %80(ptr noundef nonnull align 8 dereferenceable(8) %77, i32 noundef 1)
          to label %81 unwind label %100

81:                                               ; preds = %68
  invoke void @__cxa_end_catch()
          to label %82 unwind label %102

82:                                               ; preds = %81, %56, %93
  %83 = load ptr, ptr %3, align 8, !tbaa !5
  %84 = load ptr, ptr %83, align 8, !tbaa !9
  %85 = getelementptr inbounds i8, ptr %84, i64 40
  %86 = load ptr, ptr %85, align 8
  invoke void %86(ptr noundef nonnull align 8 dereferenceable(8) %83, i32 noundef 2)
          to label %87 unwind label %96

87:                                               ; preds = %82
  call void @_ZN7testing8internal9DeathTest14ReturnSentinelD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #10
  br label %.thread

88:                                               ; preds = %59
  %89 = load ptr, ptr %3, align 8, !tbaa !5
  %90 = load ptr, ptr %89, align 8, !tbaa !9
  %91 = getelementptr inbounds i8, ptr %90, i64 40
  %92 = load ptr, ptr %91, align 8
  invoke void %92(ptr noundef nonnull align 8 dereferenceable(8) %89, i32 noundef 1)
          to label %93 unwind label %94

93:                                               ; preds = %88
  invoke void @__cxa_end_catch()
          to label %82 unwind label %96

94:                                               ; preds = %88
  %95 = landingpad { ptr, i32 }
          cleanup
  invoke void @__cxa_end_catch()
          to label %105 unwind label %221

96:                                               ; preds = %93, %82
  %97 = landingpad { ptr, i32 }
          cleanup
  br label %105

98:                                               ; preds = %66
  %99 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #10
  br label %104

100:                                              ; preds = %68
  %101 = landingpad { ptr, i32 }
          cleanup
  br label %104

102:                                              ; preds = %81
  %103 = landingpad { ptr, i32 }
          cleanup
  br label %105

104:                                              ; preds = %100, %98
  %.pn = phi { ptr, i32 } [ %101, %100 ], [ %99, %98 ]
  invoke void @__cxa_end_catch()
          to label %105 unwind label %221

105:                                              ; preds = %102, %104, %94, %96
  %.pn37 = phi { ptr, i32 } [ %97, %96 ], [ %95, %94 ], [ %103, %102 ], [ %.pn, %104 ]
  call void @_ZN7testing8internal9DeathTest14ReturnSentinelD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #10
  br label %107

.thread:                                          ; preds = %87, %50, %32
  call void @_ZN7testing8internal10scoped_ptrINS0_9DeathTestEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %4) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #10
  br label %.thread59

106:                                              ; preds = %50
  call void @_ZN7testing8internal10scoped_ptrINS0_9DeathTestEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %4) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #10
  br label %108

107:                                              ; preds = %105, %51, %33
  %.pn37.pn = phi { ptr, i32 } [ %.pn37, %105 ], [ %52, %51 ], [ %34, %33 ]
  call void @_ZN7testing8internal10scoped_ptrINS0_9DeathTestEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %4) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #10
  br label %109

.thread59:                                        ; preds = %.thread, %24
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #10
  call void @_ZN7testing8internal2RED1Ev(ptr noundef nonnull align 8 dereferenceable(144) %2) #10
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %2) #10
  br label %120

108:                                              ; preds = %106, %21
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #10
  call void @_ZN7testing8internal2RED1Ev(ptr noundef nonnull align 8 dereferenceable(144) %2) #10
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %2) #10
  br label %110

109:                                              ; preds = %107, %22
  %.pn37.pn.pn = phi { ptr, i32 } [ %.pn37.pn, %107 ], [ %23, %22 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #10
  call void @_ZN7testing8internal2RED1Ev(ptr noundef nonnull align 8 dereferenceable(144) %2) #10
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %2) #10
  br label %220

110:                                              ; preds = %108, %1
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #10
  call void @_ZN7testing7MessageC1Ev(ptr noundef nonnull align 8 dereferenceable(8) %8)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #10
  %111 = invoke noundef ptr @_ZN7testing8internal9DeathTest11LastMessageEv()
          to label %112 unwind label %115

112:                                              ; preds = %110
  invoke void @_ZN7testing8internal12AssertHelperC1ENS_14TestPartResult4TypeEPKciS5_(ptr noundef nonnull align 8 dereferenceable(8) %9, i32 noundef 1, ptr noundef nonnull @.str.9, i32 noundef 367, ptr noundef %111)
          to label %113 unwind label %115

113:                                              ; preds = %112
  invoke void @_ZNK7testing8internal12AssertHelperaSERKNS_7MessageE(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %8)
          to label %114 unwind label %117

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

115:                                              ; preds = %112, %110
  %116 = landingpad { ptr, i32 }
          cleanup
  br label %119

117:                                              ; preds = %113
  %118 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7testing8internal12AssertHelperD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #10
  br label %119

119:                                              ; preds = %117, %115
  %.pn41 = phi { ptr, i32 } [ %118, %117 ], [ %116, %115 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #10
  call void @_ZN7testing7MessageD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #10
  br label %220

120:                                              ; preds = %.thread59, %114
  call void @_Z15ChangeToRootDirv()
  %121 = call noundef zeroext i1 @_ZN7testing8internal10AlwaysTrueEv()
  br i1 %121, label %122, label %209

122:                                              ; preds = %120
  call void @llvm.lifetime.start.p0(i64 144, ptr nonnull %10) #10
  call void @_ZN7testing8internal2REC2EPKc(ptr noundef nonnull align 8 dereferenceable(144) %10, ptr noundef nonnull @.str.37)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #10
  %123 = invoke noundef zeroext i1 @_ZN7testing8internal9DeathTest6CreateEPKcPKNS0_2REES3_iPPS1_(ptr noundef nonnull @.str.39, ptr noundef nonnull %10, ptr noundef nonnull @.str.9, i32 noundef 370, ptr noundef nonnull %11)
          to label %124 unwind label %125

124:                                              ; preds = %122
  br i1 %123, label %127, label %207

125:                                              ; preds = %122
  %126 = landingpad { ptr, i32 }
          cleanup
  br label %208

127:                                              ; preds = %124
  %128 = load ptr, ptr %11, align 8, !tbaa !5
  %.not43 = icmp eq ptr %128, null
  br i1 %.not43, label %.thread66, label %129

129:                                              ; preds = %127
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #10
  call void @_ZN7testing8internal10scoped_ptrINS0_9DeathTestEEC2EPS2_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull %128)
  %130 = load ptr, ptr %11, align 8, !tbaa !5
  %131 = load ptr, ptr %130, align 8, !tbaa !9
  %132 = getelementptr inbounds i8, ptr %131, i64 16
  %133 = load ptr, ptr %132, align 8
  %134 = invoke noundef i32 %133(ptr noundef nonnull align 8 dereferenceable(8) %130)
          to label %135 unwind label %136

135:                                              ; preds = %129
  switch i32 %134, label %.thread62 [
    i32 0, label %138
    i32 1, label %152
  ]

136:                                              ; preds = %146, %144, %138, %129
  %137 = landingpad { ptr, i32 }
          cleanup
  br label %206

138:                                              ; preds = %135
  %139 = load ptr, ptr %11, align 8, !tbaa !5
  %140 = load ptr, ptr %139, align 8, !tbaa !9
  %141 = getelementptr inbounds i8, ptr %140, i64 24
  %142 = load ptr, ptr %141, align 8
  %143 = invoke noundef i32 %142(ptr noundef nonnull align 8 dereferenceable(8) %139)
          to label %144 unwind label %136

144:                                              ; preds = %138
  %145 = invoke noundef zeroext i1 @_ZN7testing8internal20ExitedUnsuccessfullyEi(i32 noundef %143)
          to label %146 unwind label %136

146:                                              ; preds = %144
  %147 = load ptr, ptr %139, align 8, !tbaa !9
  %148 = getelementptr inbounds i8, ptr %147, i64 32
  %149 = load ptr, ptr %148, align 8
  %150 = invoke noundef zeroext i1 %149(ptr noundef nonnull align 8 dereferenceable(8) %139, i1 noundef zeroext %145)
          to label %151 unwind label %136

151:                                              ; preds = %146
  br i1 %150, label %.thread62, label %205

152:                                              ; preds = %135
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #10
  %153 = load ptr, ptr %11, align 8, !tbaa !5
  call void @_ZN7testing8internal9DeathTest14ReturnSentinelC2EPS1_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef %153)
  %154 = invoke noundef zeroext i1 @_ZN7testing8internal10AlwaysTrueEv()
          to label %155 unwind label %158

155:                                              ; preds = %152
  br i1 %154, label %156, label %181

156:                                              ; preds = %155
  invoke void @_exit(i32 noundef 1) #11
          to label %157 unwind label %158

157:                                              ; preds = %156
  unreachable

158:                                              ; preds = %156, %152
  %159 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  %160 = extractvalue { ptr, i32 } %159, 0
  %161 = extractvalue { ptr, i32 } %159, 1
  %162 = call i32 @llvm.eh.typeid.for.p0(ptr nonnull @_ZTISt9exception) #10
  %163 = icmp eq i32 %161, %162
  %164 = call ptr @__cxa_begin_catch(ptr %160) #10
  br i1 %163, label %165, label %187

165:                                              ; preds = %158
  %166 = load ptr, ptr @stderr, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %14) #10
  invoke void @_ZN7testing8internal18FormatFileLocationB5cxx11EPKci(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %14, ptr noundef nonnull @.str.9, i32 noundef 370)
          to label %167 unwind label %197

167:                                              ; preds = %165
  %168 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %14) #10
  %169 = load ptr, ptr %164, align 8, !tbaa !9
  %170 = getelementptr inbounds i8, ptr %169, i64 16
  %171 = load ptr, ptr %170, align 8
  %172 = call noundef ptr %171(ptr noundef nonnull align 8 dereferenceable(8) %164) #10
  %173 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %166, ptr noundef nonnull @.str.10, ptr noundef %168, ptr noundef %172) #12
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %14) #10
  %174 = load ptr, ptr @stderr, align 8, !tbaa !5
  %175 = call i32 @fflush(ptr noundef %174)
  %176 = load ptr, ptr %11, align 8, !tbaa !5
  %177 = load ptr, ptr %176, align 8, !tbaa !9
  %178 = getelementptr inbounds i8, ptr %177, i64 40
  %179 = load ptr, ptr %178, align 8
  invoke void %179(ptr noundef nonnull align 8 dereferenceable(8) %176, i32 noundef 1)
          to label %180 unwind label %199

180:                                              ; preds = %167
  invoke void @__cxa_end_catch()
          to label %181 unwind label %201

181:                                              ; preds = %180, %155, %192
  %182 = load ptr, ptr %11, align 8, !tbaa !5
  %183 = load ptr, ptr %182, align 8, !tbaa !9
  %184 = getelementptr inbounds i8, ptr %183, i64 40
  %185 = load ptr, ptr %184, align 8
  invoke void %185(ptr noundef nonnull align 8 dereferenceable(8) %182, i32 noundef 2)
          to label %186 unwind label %195

186:                                              ; preds = %181
  call void @_ZN7testing8internal9DeathTest14ReturnSentinelD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %13) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #10
  br label %.thread62

187:                                              ; preds = %158
  %188 = load ptr, ptr %11, align 8, !tbaa !5
  %189 = load ptr, ptr %188, align 8, !tbaa !9
  %190 = getelementptr inbounds i8, ptr %189, i64 40
  %191 = load ptr, ptr %190, align 8
  invoke void %191(ptr noundef nonnull align 8 dereferenceable(8) %188, i32 noundef 1)
          to label %192 unwind label %193

192:                                              ; preds = %187
  invoke void @__cxa_end_catch()
          to label %181 unwind label %195

193:                                              ; preds = %187
  %194 = landingpad { ptr, i32 }
          cleanup
  invoke void @__cxa_end_catch()
          to label %204 unwind label %221

195:                                              ; preds = %192, %181
  %196 = landingpad { ptr, i32 }
          cleanup
  br label %204

197:                                              ; preds = %165
  %198 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %14) #10
  br label %203

199:                                              ; preds = %167
  %200 = landingpad { ptr, i32 }
          cleanup
  br label %203

201:                                              ; preds = %180
  %202 = landingpad { ptr, i32 }
          cleanup
  br label %204

203:                                              ; preds = %199, %197
  %.pn44 = phi { ptr, i32 } [ %200, %199 ], [ %198, %197 ]
  invoke void @__cxa_end_catch()
          to label %204 unwind label %221

204:                                              ; preds = %201, %203, %193, %195
  %.pn48 = phi { ptr, i32 } [ %196, %195 ], [ %194, %193 ], [ %202, %201 ], [ %.pn44, %203 ]
  call void @_ZN7testing8internal9DeathTest14ReturnSentinelD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %13) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #10
  br label %206

.thread62:                                        ; preds = %186, %151, %135
  call void @_ZN7testing8internal10scoped_ptrINS0_9DeathTestEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %12) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #10
  br label %.thread66

205:                                              ; preds = %151
  call void @_ZN7testing8internal10scoped_ptrINS0_9DeathTestEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %12) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #10
  br label %207

206:                                              ; preds = %204, %136
  %.pn48.pn = phi { ptr, i32 } [ %.pn48, %204 ], [ %137, %136 ]
  call void @_ZN7testing8internal10scoped_ptrINS0_9DeathTestEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %12) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #10
  br label %208

.thread66:                                        ; preds = %.thread62, %127
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #10
  call void @_ZN7testing8internal2RED1Ev(ptr noundef nonnull align 8 dereferenceable(144) %10) #10
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %10) #10
  br label %219

207:                                              ; preds = %205, %124
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #10
  call void @_ZN7testing8internal2RED1Ev(ptr noundef nonnull align 8 dereferenceable(144) %10) #10
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %10) #10
  br label %209

208:                                              ; preds = %206, %125
  %.pn48.pn.pn = phi { ptr, i32 } [ %.pn48.pn, %206 ], [ %126, %125 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #10
  call void @_ZN7testing8internal2RED1Ev(ptr noundef nonnull align 8 dereferenceable(144) %10) #10
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %10) #10
  br label %220

209:                                              ; preds = %207, %120
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #10
  call void @_ZN7testing7MessageC1Ev(ptr noundef nonnull align 8 dereferenceable(8) %15)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #10
  %210 = invoke noundef ptr @_ZN7testing8internal9DeathTest11LastMessageEv()
          to label %211 unwind label %214

211:                                              ; preds = %209
  invoke void @_ZN7testing8internal12AssertHelperC1ENS_14TestPartResult4TypeEPKciS5_(ptr noundef nonnull align 8 dereferenceable(8) %16, i32 noundef 2, ptr noundef nonnull @.str.9, i32 noundef 370, ptr noundef %210)
          to label %212 unwind label %214

212:                                              ; preds = %211
  invoke void @_ZNK7testing8internal12AssertHelperaSERKNS_7MessageE(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(8) %15)
          to label %213 unwind label %216

213:                                              ; preds = %212
  call void @_ZN7testing8internal12AssertHelperD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %16) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #10
  call void @_ZN7testing7MessageD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %15) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #10
  br label %219

214:                                              ; preds = %211, %209
  %215 = landingpad { ptr, i32 }
          cleanup
  br label %218

216:                                              ; preds = %212
  %217 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7testing8internal12AssertHelperD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %16) #10
  br label %218

218:                                              ; preds = %216, %214
  %.pn52 = phi { ptr, i32 } [ %217, %216 ], [ %215, %214 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #10
  call void @_ZN7testing7MessageD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %15) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #10
  br label %220

219:                                              ; preds = %.thread66, %213
  ret void

220:                                              ; preds = %218, %208, %119, %109
  %.pn52.pn = phi { ptr, i32 } [ %.pn52, %218 ], [ %.pn48.pn.pn, %208 ], [ %.pn41, %119 ], [ %.pn37.pn.pn, %109 ]
  resume { ptr, i32 } %.pn52.pn

221:                                              ; preds = %203, %193, %104, %94
  %222 = landingpad { ptr, i32 }
          catch ptr null
  %223 = extractvalue { ptr, i32 } %222, 0
  call void @__clang_call_terminate(ptr %223) #13
  unreachable
}

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"vtable pointer", !8, i64 0}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass