; 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 }

@_ZN7testing28FLAGS_gtest_death_test_styleE = external dso_local global %"class.testing::internal::String", align 8
@.str.266 = external hidden unnamed_addr constant [61 x i8], align 1
@.str.267 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.268 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.269 = external hidden unnamed_addr constant [42 x i8], align 1

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

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) #2

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) #3

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

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

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

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

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

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

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

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

32:                                               ; preds = %6
  %33 = load i32, ptr %16, align 4, !tbaa !9
  %34 = load ptr, ptr %15, align 8, !tbaa !5
  %35 = call noundef i32 @_ZNK7testing8internal24InternalRunDeathTestFlag5indexEv(ptr noundef nonnull align 8 dereferenceable(28) %34)
  %36 = icmp sgt i32 %33, %35
  br i1 %36, label %37, label %46

37:                                               ; preds = %32
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #6
  %38 = load i32, ptr %16, align 4, !tbaa !9
  %39 = load ptr, ptr %15, align 8, !tbaa !5
  %40 = call noundef i32 @_ZNK7testing8internal24InternalRunDeathTestFlag5indexEv(ptr noundef nonnull align 8 dereferenceable(28) %39)
  call void (ptr, ptr, ...) @_ZN7testing8internal6String6FormatEPKcz(ptr dead_on_unwind writable sret(%"class.testing::internal::String") align 8 %17, ptr noundef @.str.266, i32 noundef %38, i32 noundef %40)
  invoke void @_ZN7testing8internal9DeathTest27set_last_death_test_messageERKNS0_6StringE(ptr noundef nonnull align 8 dereferenceable(16) %17)
          to label %41 unwind label %42

41:                                               ; preds = %37
  call void @_ZN7testing8internal6StringD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %17) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #6
  store i1 false, ptr %7, align 1
  store i32 1, ptr %20, align 4
  br label %108

42:                                               ; preds = %37
  %43 = landingpad { ptr, i32 }
          cleanup
  %44 = extractvalue { ptr, i32 } %43, 0
  store ptr %44, ptr %18, align 8
  %45 = extractvalue { ptr, i32 } %43, 1
  store i32 %45, ptr %19, align 4
  call void @_ZN7testing8internal6StringD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %17) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #6
  br label %110

46:                                               ; preds = %32
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #6
  %47 = load ptr, ptr %15, align 8, !tbaa !5
  call void @_ZNK7testing8internal24InternalRunDeathTestFlag4fileEv(ptr dead_on_unwind writable sret(%"class.testing::internal::String") align 8 %21, ptr noundef nonnull align 8 dereferenceable(28) %47)
  %48 = load ptr, ptr %11, align 8, !tbaa !5
  %49 = invoke noundef zeroext i1 @_ZNK7testing8internal6StringeqEPKc(ptr noundef nonnull align 8 dereferenceable(16) %21, ptr noundef %48)
          to label %50 unwind label %68

50:                                               ; preds = %46
  br i1 %49, label %51, label %63

51:                                               ; preds = %50
  %52 = load ptr, ptr %15, align 8, !tbaa !5
  %53 = invoke noundef i32 @_ZNK7testing8internal24InternalRunDeathTestFlag4lineEv(ptr noundef nonnull align 8 dereferenceable(28) %52)
          to label %54 unwind label %68

54:                                               ; preds = %51
  %55 = load i32, ptr %12, align 4, !tbaa !9
  %56 = icmp eq i32 %53, %55
  br i1 %56, label %57, label %63

57:                                               ; preds = %54
  %58 = load ptr, ptr %15, align 8, !tbaa !5
  %59 = invoke noundef i32 @_ZNK7testing8internal24InternalRunDeathTestFlag5indexEv(ptr noundef nonnull align 8 dereferenceable(28) %58)
          to label %60 unwind label %68

60:                                               ; preds = %57
  %61 = load i32, ptr %16, align 4, !tbaa !9
  %62 = icmp eq i32 %59, %61
  br label %63

63:                                               ; preds = %60, %54, %50
  %64 = phi i1 [ false, %54 ], [ false, %50 ], [ %62, %60 ]
  %65 = xor i1 %64, true
  call void @_ZN7testing8internal6StringD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %21) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #6
  br i1 %65, label %66, label %72

66:                                               ; preds = %63
  %67 = load ptr, ptr %13, align 8, !tbaa !5
  store ptr null, ptr %67, align 8, !tbaa !5
  store i1 true, ptr %7, align 1
  store i32 1, ptr %20, align 4
  br label %108

68:                                               ; preds = %57, %51, %46
  %69 = landingpad { ptr, i32 }
          cleanup
  %70 = extractvalue { ptr, i32 } %69, 0
  store ptr %70, ptr %18, align 8
  %71 = extractvalue { ptr, i32 } %69, 1
  store i32 %71, ptr %19, align 4
  call void @_ZN7testing8internal6StringD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %21) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #6
  br label %110

72:                                               ; preds = %63
  br label %73

73:                                               ; preds = %72, %6
  %74 = call noundef zeroext i1 @_ZNK7testing8internal6StringeqEPKc(ptr noundef nonnull align 8 dereferenceable(16) @_ZN7testing28FLAGS_gtest_death_test_styleE, ptr noundef @.str.267)
  br i1 %74, label %75, label %87

75:                                               ; preds = %73
  %76 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 64) #7
  %77 = load ptr, ptr %9, align 8, !tbaa !5
  %78 = load ptr, ptr %10, align 8, !tbaa !5
  %79 = load ptr, ptr %11, align 8, !tbaa !5
  %80 = load i32, ptr %12, align 4, !tbaa !9
  invoke void @_ZN7testing8internal13ExecDeathTestC2EPKcPKNS0_2REES3_i(ptr noundef nonnull align 8 dereferenceable(60) %76, ptr noundef %77, ptr noundef %78, ptr noundef %79, i32 noundef %80)
          to label %81 unwind label %83

81:                                               ; preds = %75
  %82 = load ptr, ptr %13, align 8, !tbaa !5
  store ptr %76, ptr %82, align 8, !tbaa !5
  br label %107

83:                                               ; preds = %75
  %84 = landingpad { ptr, i32 }
          cleanup
  %85 = extractvalue { ptr, i32 } %84, 0
  store ptr %85, ptr %18, align 8
  %86 = extractvalue { ptr, i32 } %84, 1
  store i32 %86, ptr %19, align 4
  call void @_ZdlPvm(ptr noundef %76, i64 noundef 64) #8
  br label %110

87:                                               ; preds = %73
  %88 = call noundef zeroext i1 @_ZNK7testing8internal6StringeqEPKc(ptr noundef nonnull align 8 dereferenceable(16) @_ZN7testing28FLAGS_gtest_death_test_styleE, ptr noundef @.str.268)
  br i1 %88, label %89, label %99

89:                                               ; preds = %87
  %90 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 48) #7
  %91 = load ptr, ptr %9, align 8, !tbaa !5
  %92 = load ptr, ptr %10, align 8, !tbaa !5
  invoke void @_ZN7testing8internal15NoExecDeathTestC2EPKcPKNS0_2REE(ptr noundef nonnull align 8 dereferenceable(48) %90, ptr noundef %91, ptr noundef %92)
          to label %93 unwind label %95

93:                                               ; preds = %89
  %94 = load ptr, ptr %13, align 8, !tbaa !5
  store ptr %90, ptr %94, align 8, !tbaa !5
  br label %106

95:                                               ; preds = %89
  %96 = landingpad { ptr, i32 }
          cleanup
  %97 = extractvalue { ptr, i32 } %96, 0
  store ptr %97, ptr %18, align 8
  %98 = extractvalue { ptr, i32 } %96, 1
  store i32 %98, ptr %19, align 4
  call void @_ZdlPvm(ptr noundef %90, i64 noundef 48) #8
  br label %110

99:                                               ; preds = %87
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #6
  %100 = call noundef ptr @_ZNK7testing8internal6String5c_strEv(ptr noundef nonnull align 8 dereferenceable(16) @_ZN7testing28FLAGS_gtest_death_test_styleE)
  call void (ptr, ptr, ...) @_ZN7testing8internal6String6FormatEPKcz(ptr dead_on_unwind writable sret(%"class.testing::internal::String") align 8 %22, ptr noundef @.str.269, ptr noundef %100)
  invoke void @_ZN7testing8internal9DeathTest27set_last_death_test_messageERKNS0_6StringE(ptr noundef nonnull align 8 dereferenceable(16) %22)
          to label %101 unwind label %102

101:                                              ; preds = %99
  call void @_ZN7testing8internal6StringD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %22) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #6
  store i1 false, ptr %7, align 1
  store i32 1, ptr %20, align 4
  br label %108

102:                                              ; preds = %99
  %103 = landingpad { ptr, i32 }
          cleanup
  %104 = extractvalue { ptr, i32 } %103, 0
  store ptr %104, ptr %18, align 8
  %105 = extractvalue { ptr, i32 } %103, 1
  store i32 %105, ptr %19, align 4
  call void @_ZN7testing8internal6StringD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %22) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #6
  br label %110

106:                                              ; preds = %93
  br label %107

107:                                              ; preds = %106, %81
  store i1 true, ptr %7, align 1
  store i32 1, ptr %20, align 4
  br label %108

108:                                              ; preds = %107, %101, %66, %41
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  %109 = load i1, ptr %7, align 1
  ret i1 %109

110:                                              ; preds = %102, %95, %83, %68, %42
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  br label %111

111:                                              ; preds = %110
  %112 = load ptr, ptr %18, align 8
  %113 = load i32, ptr %19, align 4
  %114 = insertvalue { ptr, i32 } poison, ptr %112, 0
  %115 = insertvalue { ptr, i32 } %114, i32 %113, 1
  resume { ptr, i32 } %115
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN7testing8TestInfo26increment_death_test_countEv(ptr noundef nonnull align 8 dereferenceable(216)) #4 align 2

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

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

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

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

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

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

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

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


; 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 }

@_ZN7testing28FLAGS_gtest_death_test_styleE = external dso_local global %"class.testing::internal::String", align 8
@.str.266 = external hidden unnamed_addr constant [61 x i8], align 1
@.str.267 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.268 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.269 = external hidden unnamed_addr constant [42 x i8], align 1

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

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) local_unnamed_addr #2

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) local_unnamed_addr #3

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN7testing8internal23DefaultDeathTestFactory6CreateEPKcPKNS0_2REES3_iPPNS0_9DeathTestE(ptr nocapture noundef nonnull readnone align 8 dereferenceable(8) %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, i32 noundef %4, ptr nocapture noundef writeonly %5) unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  %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 ptr @_ZN7testing8internal15GetUnitTestImplEv()
  %11 = tail call noundef ptr @_ZNK7testing8internal12UnitTestImpl28internal_run_death_test_flagEv(ptr noundef nonnull align 8 dereferenceable(473) %10)
  %12 = tail call noundef ptr @_ZN7testing8internal12UnitTestImpl17current_test_infoEv(ptr noundef nonnull align 8 dereferenceable(473) %10)
  %13 = tail call noundef i32 @_ZN7testing8TestInfo26increment_death_test_countEv(ptr noundef nonnull align 8 dereferenceable(216) %12)
  %.not = icmp eq ptr %11, null
  br i1 %.not, label %33, label %14

14:                                               ; preds = %6
  %15 = tail call noundef i32 @_ZNK7testing8internal24InternalRunDeathTestFlag5indexEv(ptr noundef nonnull align 8 dereferenceable(28) %11)
  %16 = icmp sgt i32 %13, %15
  br i1 %16, label %17, label %22

17:                                               ; preds = %14
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #6
  %18 = tail call noundef i32 @_ZNK7testing8internal24InternalRunDeathTestFlag5indexEv(ptr noundef nonnull align 8 dereferenceable(28) %11)
  call void (ptr, ptr, ...) @_ZN7testing8internal6String6FormatEPKcz(ptr dead_on_unwind nonnull writable sret(%"class.testing::internal::String") align 8 %7, ptr noundef nonnull @.str.266, i32 noundef %13, i32 noundef %18)
  invoke void @_ZN7testing8internal9DeathTest27set_last_death_test_messageERKNS0_6StringE(ptr noundef nonnull align 8 dereferenceable(16) %7)
          to label %19 unwind label %20

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

20:                                               ; preds = %17
  %21 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7testing8internal6StringD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %7) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #6
  br label %52

22:                                               ; preds = %14
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #6
  call void @_ZNK7testing8internal24InternalRunDeathTestFlag4fileEv(ptr dead_on_unwind nonnull writable sret(%"class.testing::internal::String") align 8 %8, ptr noundef nonnull align 8 dereferenceable(28) %11)
  %23 = invoke noundef zeroext i1 @_ZNK7testing8internal6StringeqEPKc(ptr noundef nonnull align 8 dereferenceable(16) %8, ptr noundef %3)
          to label %24 unwind label %31

24:                                               ; preds = %22
  br i1 %23, label %25, label %.critedge

25:                                               ; preds = %24
  %26 = call noundef i32 @_ZNK7testing8internal24InternalRunDeathTestFlag4lineEv(ptr noundef nonnull align 8 dereferenceable(28) %11)
  %27 = icmp eq i32 %26, %4
  br i1 %27, label %28, label %.critedge

28:                                               ; preds = %25
  %29 = call noundef i32 @_ZNK7testing8internal24InternalRunDeathTestFlag5indexEv(ptr noundef nonnull align 8 dereferenceable(28) %11)
  %.not30 = icmp eq i32 %29, %13
  call void @_ZN7testing8internal6StringD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %8) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #6
  br i1 %.not30, label %33, label %30

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

30:                                               ; preds = %.critedge, %28
  store ptr null, ptr %5, align 8, !tbaa !5
  br label %51

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

33:                                               ; preds = %28, %6
  %34 = call noundef zeroext i1 @_ZNK7testing8internal6StringeqEPKc(ptr noundef nonnull align 8 dereferenceable(16) @_ZN7testing28FLAGS_gtest_death_test_styleE, ptr noundef nonnull @.str.267)
  br i1 %34, label %35, label %39

35:                                               ; preds = %33
  %36 = call noalias noundef nonnull dereferenceable(64) ptr @_Znwm(i64 noundef 64) #7
  invoke void @_ZN7testing8internal13ExecDeathTestC2EPKcPKNS0_2REES3_i(ptr noundef nonnull align 8 dereferenceable(60) %36, ptr noundef %1, ptr noundef %2, ptr noundef %3, i32 noundef %4)
          to label %50 unwind label %37

37:                                               ; preds = %35
  %38 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %36, i64 noundef 64) #8
  br label %52

39:                                               ; preds = %33
  %40 = call noundef zeroext i1 @_ZNK7testing8internal6StringeqEPKc(ptr noundef nonnull align 8 dereferenceable(16) @_ZN7testing28FLAGS_gtest_death_test_styleE, ptr noundef nonnull @.str.268)
  br i1 %40, label %41, label %45

41:                                               ; preds = %39
  %42 = call noalias noundef nonnull dereferenceable(48) ptr @_Znwm(i64 noundef 48) #7
  invoke void @_ZN7testing8internal15NoExecDeathTestC2EPKcPKNS0_2REE(ptr noundef nonnull align 8 dereferenceable(48) %42, ptr noundef %1, ptr noundef %2)
          to label %50 unwind label %43

43:                                               ; preds = %41
  %44 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %42, i64 noundef 48) #8
  br label %52

45:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #6
  %46 = call noundef ptr @_ZNK7testing8internal6String5c_strEv(ptr noundef nonnull align 8 dereferenceable(16) @_ZN7testing28FLAGS_gtest_death_test_styleE)
  call void (ptr, ptr, ...) @_ZN7testing8internal6String6FormatEPKcz(ptr dead_on_unwind nonnull writable sret(%"class.testing::internal::String") align 8 %9, ptr noundef nonnull @.str.269, ptr noundef %46)
  invoke void @_ZN7testing8internal9DeathTest27set_last_death_test_messageERKNS0_6StringE(ptr noundef nonnull align 8 dereferenceable(16) %9)
          to label %47 unwind label %48

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

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

50:                                               ; preds = %41, %35
  %storemerge = phi ptr [ %36, %35 ], [ %42, %41 ]
  store ptr %storemerge, ptr %5, align 8, !tbaa !5
  br label %51

51:                                               ; preds = %50, %47, %30, %19
  %.026 = phi i1 [ false, %19 ], [ true, %30 ], [ true, %50 ], [ false, %47 ]
  ret i1 %.026

52:                                               ; preds = %48, %43, %37, %31, %20
  %.pn = phi { ptr, i32 } [ %21, %20 ], [ %38, %37 ], [ %44, %43 ], [ %49, %48 ], [ %32, %31 ]
  resume { ptr, i32 } %.pn
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN7testing8TestInfo26increment_death_test_countEv(ptr noundef nonnull align 8 dereferenceable(216)) local_unnamed_addr #4 align 2

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

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

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

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

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

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

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

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


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