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

@_ZN7testing35FLAGS_gtest_also_run_disabled_testsE = external dso_local global i8, align 1
@_ZN7testing22FLAGS_gtest_print_timeE = external dso_local global i8, align 1
@.str.42 = external hidden unnamed_addr constant [2 x i8], align 1
@stdout = external global ptr, align 8
@.str.146 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.156 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.160 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.161 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.162 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.163 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.164 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.165 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.166 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.167 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.168 = external hidden unnamed_addr constant [28 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: 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 @_ZN7testing8internal13ColoredPrintfENS0_10GTestColorEPKcz(i32 noundef, ptr noundef, ...) #2

declare i32 @printf(ptr noundef, ...) #3

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

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

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

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

declare i32 @fflush(ptr noundef) #3

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7testing8internal27PrettyUnitTestResultPrinter18OnTestIterationEndERKNS_8UnitTestEi(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(64) %1, i32 noundef %2) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca %"class.testing::internal::String", align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca %"class.testing::internal::String", align 8
  %11 = alloca %"class.testing::internal::String", align 8
  %12 = alloca i64, align 8
  %13 = alloca %"class.testing::internal::String", align 8
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca %"class.testing::internal::String", align 8
  %17 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store i32 %2, ptr %6, align 4, !tbaa !9
  %18 = load ptr, ptr %4, align 8
  call void (i32, ptr, ...) @_ZN7testing8internal13ColoredPrintfENS0_10GTestColorEPKcz(i32 noundef 2, ptr noundef @.str.146)
  call void @llvm.lifetime.start.p0(i64 16, ptr %7) #4
  %19 = load ptr, ptr %5, align 8, !tbaa !5
  %20 = call noundef i32 @_ZNK7testing8UnitTest17test_to_run_countEv(ptr noundef nonnull align 8 dereferenceable(64) %19)
  call void @_ZN7testingL15FormatTestCountEi(ptr dead_on_unwind writable sret(%"class.testing::internal::String") align 8 %7, i32 noundef %20)
  %21 = invoke noundef ptr @_ZNK7testing8internal6String5c_strEv(ptr noundef nonnull align 8 dereferenceable(16) %7)
          to label %22 unwind label %40

22:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #4
  %23 = load ptr, ptr %5, align 8, !tbaa !5
  %24 = invoke noundef i32 @_ZNK7testing8UnitTest22test_case_to_run_countEv(ptr noundef nonnull align 8 dereferenceable(64) %23)
          to label %25 unwind label %44

25:                                               ; preds = %22
  invoke void @_ZN7testingL19FormatTestCaseCountEi(ptr dead_on_unwind writable sret(%"class.testing::internal::String") align 8 %10, i32 noundef %24)
          to label %26 unwind label %44

26:                                               ; preds = %25
  %27 = invoke noundef ptr @_ZNK7testing8internal6String5c_strEv(ptr noundef nonnull align 8 dereferenceable(16) %10)
          to label %28 unwind label %48

28:                                               ; preds = %26
  %29 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.160, ptr noundef %21, ptr noundef %27)
          to label %30 unwind label %48

30:                                               ; preds = %28
  call void @_ZN7testing8internal6StringD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %10) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #4
  call void @_ZN7testing8internal6StringD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %7) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #4
  %31 = load i8, ptr @_ZN7testing22FLAGS_gtest_print_timeE, align 1, !tbaa !11, !range !13, !noundef !14
  %32 = trunc i8 %31 to i1
  br i1 %32, label %33, label %58

33:                                               ; preds = %30
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  %34 = load ptr, ptr %5, align 8, !tbaa !5
  %35 = call noundef i64 @_ZNK7testing8UnitTest12elapsed_timeEv(ptr noundef nonnull align 8 dereferenceable(64) %34)
  store i64 %35, ptr %12, align 8, !tbaa !15
  call void @_ZN7testing8internal18StreamableToStringIxEENS0_6StringERKT_(ptr dead_on_unwind writable sret(%"class.testing::internal::String") align 8 %11, ptr noundef nonnull align 8 dereferenceable(8) %12)
  %36 = invoke noundef ptr @_ZNK7testing8internal6String5c_strEv(ptr noundef nonnull align 8 dereferenceable(16) %11)
          to label %37 unwind label %54

37:                                               ; preds = %33
  %38 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.161, ptr noundef %36)
          to label %39 unwind label %54

39:                                               ; preds = %37
  call void @_ZN7testing8internal6StringD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #4
  br label %58

40:                                               ; preds = %3
  %41 = landingpad { ptr, i32 }
          cleanup
  %42 = extractvalue { ptr, i32 } %41, 0
  store ptr %42, ptr %8, align 8
  %43 = extractvalue { ptr, i32 } %41, 1
  store i32 %43, ptr %9, align 4
  br label %53

44:                                               ; preds = %25, %22
  %45 = landingpad { ptr, i32 }
          cleanup
  %46 = extractvalue { ptr, i32 } %45, 0
  store ptr %46, ptr %8, align 8
  %47 = extractvalue { ptr, i32 } %45, 1
  store i32 %47, ptr %9, align 4
  br label %52

48:                                               ; preds = %28, %26
  %49 = landingpad { ptr, i32 }
          cleanup
  %50 = extractvalue { ptr, i32 } %49, 0
  store ptr %50, ptr %8, align 8
  %51 = extractvalue { ptr, i32 } %49, 1
  store i32 %51, ptr %9, align 4
  call void @_ZN7testing8internal6StringD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %10) #4
  br label %52

52:                                               ; preds = %48, %44
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #4
  br label %53

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

54:                                               ; preds = %37, %33
  %55 = landingpad { ptr, i32 }
          cleanup
  %56 = extractvalue { ptr, i32 } %55, 0
  store ptr %56, ptr %8, align 8
  %57 = extractvalue { ptr, i32 } %55, 1
  store i32 %57, ptr %9, align 4
  call void @_ZN7testing8internal6StringD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #4
  br label %115

58:                                               ; preds = %39, %30
  %59 = call i32 (ptr, ...) @printf(ptr noundef @.str.42)
  call void (i32, ptr, ...) @_ZN7testing8internal13ColoredPrintfENS0_10GTestColorEPKcz(i32 noundef 2, ptr noundef @.str.162)
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #4
  %60 = load ptr, ptr %5, align 8, !tbaa !5
  %61 = call noundef i32 @_ZNK7testing8UnitTest21successful_test_countEv(ptr noundef nonnull align 8 dereferenceable(64) %60)
  call void @_ZN7testingL15FormatTestCountEi(ptr dead_on_unwind writable sret(%"class.testing::internal::String") align 8 %13, i32 noundef %61)
  %62 = invoke noundef ptr @_ZNK7testing8internal6String5c_strEv(ptr noundef nonnull align 8 dereferenceable(16) %13)
          to label %63 unwind label %85

63:                                               ; preds = %58
  %64 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.163, ptr noundef %62)
          to label %65 unwind label %85

65:                                               ; preds = %63
  call void @_ZN7testing8internal6StringD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %13) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  %66 = load ptr, ptr %5, align 8, !tbaa !5
  %67 = call noundef i32 @_ZNK7testing8UnitTest17failed_test_countEv(ptr noundef nonnull align 8 dereferenceable(64) %66)
  store i32 %67, ptr %14, align 4, !tbaa !9
  %68 = load ptr, ptr %5, align 8, !tbaa !5
  %69 = call noundef zeroext i1 @_ZNK7testing8UnitTest6PassedEv(ptr noundef nonnull align 8 dereferenceable(64) %68)
  br i1 %69, label %93, label %70

70:                                               ; preds = %65
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  %71 = load ptr, ptr %5, align 8, !tbaa !5
  %72 = call noundef i32 @_ZNK7testing8UnitTest17failed_test_countEv(ptr noundef nonnull align 8 dereferenceable(64) %71)
  store i32 %72, ptr %15, align 4, !tbaa !9
  call void (i32, ptr, ...) @_ZN7testing8internal13ColoredPrintfENS0_10GTestColorEPKcz(i32 noundef 1, ptr noundef @.str.156)
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #4
  %73 = load i32, ptr %15, align 4, !tbaa !9
  call void @_ZN7testingL15FormatTestCountEi(ptr dead_on_unwind writable sret(%"class.testing::internal::String") align 8 %16, i32 noundef %73)
  %74 = invoke noundef ptr @_ZNK7testing8internal6String5c_strEv(ptr noundef nonnull align 8 dereferenceable(16) %16)
          to label %75 unwind label %89

75:                                               ; preds = %70
  %76 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.164, ptr noundef %74)
          to label %77 unwind label %89

77:                                               ; preds = %75
  call void @_ZN7testing8internal6StringD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %16) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #4
  %78 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN7testing8internal27PrettyUnitTestResultPrinter16PrintFailedTestsERKNS_8UnitTestE(ptr noundef nonnull align 8 dereferenceable(64) %78)
  %79 = load i32, ptr %14, align 4, !tbaa !9
  %80 = load i32, ptr %14, align 4, !tbaa !9
  %81 = icmp eq i32 %80, 1
  %82 = zext i1 %81 to i64
  %83 = select i1 %81, ptr @.str.166, ptr @.str.167
  %84 = call i32 (ptr, ...) @printf(ptr noundef @.str.165, i32 noundef %79, ptr noundef %83)
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  br label %93

85:                                               ; preds = %63, %58
  %86 = landingpad { ptr, i32 }
          cleanup
  %87 = extractvalue { ptr, i32 } %86, 0
  store ptr %87, ptr %8, align 8
  %88 = extractvalue { ptr, i32 } %86, 1
  store i32 %88, ptr %9, align 4
  call void @_ZN7testing8internal6StringD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %13) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #4
  br label %115

89:                                               ; preds = %75, %70
  %90 = landingpad { ptr, i32 }
          cleanup
  %91 = extractvalue { ptr, i32 } %90, 0
  store ptr %91, ptr %8, align 8
  %92 = extractvalue { ptr, i32 } %90, 1
  store i32 %92, ptr %9, align 4
  call void @_ZN7testing8internal6StringD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %16) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  br label %115

93:                                               ; preds = %77, %65
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #4
  %94 = load ptr, ptr %5, align 8, !tbaa !5
  %95 = call noundef i32 @_ZNK7testing8UnitTest19disabled_test_countEv(ptr noundef nonnull align 8 dereferenceable(64) %94)
  store i32 %95, ptr %17, align 4, !tbaa !9
  %96 = load i32, ptr %17, align 4, !tbaa !9
  %97 = icmp ne i32 %96, 0
  br i1 %97, label %98, label %112

98:                                               ; preds = %93
  %99 = load i8, ptr @_ZN7testing35FLAGS_gtest_also_run_disabled_testsE, align 1, !tbaa !11, !range !13, !noundef !14
  %100 = trunc i8 %99 to i1
  br i1 %100, label %112, label %101

101:                                              ; preds = %98
  %102 = load i32, ptr %14, align 4, !tbaa !9
  %103 = icmp ne i32 %102, 0
  br i1 %103, label %106, label %104

104:                                              ; preds = %101
  %105 = call i32 (ptr, ...) @printf(ptr noundef @.str.42)
  br label %106

106:                                              ; preds = %104, %101
  %107 = load i32, ptr %17, align 4, !tbaa !9
  %108 = load i32, ptr %17, align 4, !tbaa !9
  %109 = icmp eq i32 %108, 1
  %110 = zext i1 %109 to i64
  %111 = select i1 %109, ptr @.str.166, ptr @.str.167
  call void (i32, ptr, ...) @_ZN7testing8internal13ColoredPrintfENS0_10GTestColorEPKcz(i32 noundef 3, ptr noundef @.str.168, i32 noundef %107, ptr noundef %111)
  br label %112

112:                                              ; preds = %106, %98, %93
  %113 = load ptr, ptr @stdout, align 8, !tbaa !5
  %114 = call i32 @fflush(ptr noundef %113)
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  ret void

115:                                              ; preds = %89, %85, %54, %53
  %116 = load ptr, ptr %8, align 8
  %117 = load i32, ptr %9, align 4
  %118 = insertvalue { ptr, i32 } poison, ptr %116, 0
  %119 = insertvalue { ptr, i32 } %118, i32 %117, 1
  resume { ptr, i32 } %119
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZNK7testing8UnitTest12elapsed_timeEv(ptr noundef nonnull align 8 dereferenceable(64)) #2 align 2

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

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

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

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

@_ZN7testing35FLAGS_gtest_also_run_disabled_testsE = external dso_local local_unnamed_addr global i8, align 1
@_ZN7testing22FLAGS_gtest_print_timeE = external dso_local local_unnamed_addr global i8, align 1
@.str.42 = external hidden unnamed_addr constant [2 x i8], align 1
@stdout = external local_unnamed_addr global ptr, align 8
@.str.146 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.156 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.160 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.161 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.162 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.163 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.164 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.165 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.166 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.167 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.168 = external hidden unnamed_addr constant [28 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: 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 @_ZN7testing8internal13ColoredPrintfENS0_10GTestColorEPKcz(i32 noundef, ptr noundef, ...) local_unnamed_addr #2

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7testing8internal27PrettyUnitTestResultPrinter18OnTestIterationEndERKNS_8UnitTestEi(ptr nocapture noundef nonnull readnone align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(64) %1, i32 noundef %2) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.testing::internal::String", align 8
  %5 = alloca %"class.testing::internal::String", align 8
  %6 = alloca %"class.testing::internal::String", align 8
  %7 = alloca i64, align 8
  %8 = alloca %"class.testing::internal::String", align 8
  %9 = alloca %"class.testing::internal::String", align 8
  tail call void (i32, ptr, ...) @_ZN7testing8internal13ColoredPrintfENS0_10GTestColorEPKcz(i32 noundef 2, ptr noundef nonnull @.str.146)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #4
  %10 = tail call noundef i32 @_ZNK7testing8UnitTest17test_to_run_countEv(ptr noundef nonnull align 8 dereferenceable(64) %1)
  call void @_ZN7testingL15FormatTestCountEi(ptr dead_on_unwind nonnull writable sret(%"class.testing::internal::String") align 8 %4, i32 noundef %10)
  %11 = call noundef ptr @_ZNK7testing8internal6String5c_strEv(ptr noundef nonnull align 8 dereferenceable(16) %4)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #4
  %12 = invoke noundef i32 @_ZNK7testing8UnitTest22test_case_to_run_countEv(ptr noundef nonnull align 8 dereferenceable(64) %1)
          to label %13 unwind label %23

13:                                               ; preds = %3
  invoke void @_ZN7testingL19FormatTestCaseCountEi(ptr dead_on_unwind nonnull writable sret(%"class.testing::internal::String") align 8 %5, i32 noundef %12)
          to label %14 unwind label %23

14:                                               ; preds = %13
  %15 = call noundef ptr @_ZNK7testing8internal6String5c_strEv(ptr noundef nonnull align 8 dereferenceable(16) %5)
  %16 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.160, ptr noundef %11, ptr noundef %15)
  call void @_ZN7testing8internal6StringD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #4
  call void @_ZN7testing8internal6StringD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %4) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #4
  %17 = load i8, ptr @_ZN7testing22FLAGS_gtest_print_timeE, align 1, !tbaa !5, !range !9, !noundef !10
  %18 = trunc nuw i8 %17 to i1
  br i1 %18, label %19, label %25

19:                                               ; preds = %14
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #4
  %20 = call noundef i64 @_ZNK7testing8UnitTest12elapsed_timeEv(ptr noundef nonnull align 8 dereferenceable(64) %1)
  store i64 %20, ptr %7, align 8, !tbaa !11
  call void @_ZN7testing8internal18StreamableToStringIxEENS0_6StringERKT_(ptr dead_on_unwind nonnull writable sret(%"class.testing::internal::String") align 8 %6, ptr noundef nonnull align 8 dereferenceable(8) %7)
  %21 = call noundef ptr @_ZNK7testing8internal6String5c_strEv(ptr noundef nonnull align 8 dereferenceable(16) %6)
  %22 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.161, ptr noundef %21)
  call void @_ZN7testing8internal6StringD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #4
  br label %25

23:                                               ; preds = %13, %3
  %24 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #4
  call void @_ZN7testing8internal6StringD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %4) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #4
  resume { ptr, i32 } %24

25:                                               ; preds = %19, %14
  %26 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.42)
  call void (i32, ptr, ...) @_ZN7testing8internal13ColoredPrintfENS0_10GTestColorEPKcz(i32 noundef 2, ptr noundef nonnull @.str.162)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #4
  %27 = call noundef i32 @_ZNK7testing8UnitTest21successful_test_countEv(ptr noundef nonnull align 8 dereferenceable(64) %1)
  call void @_ZN7testingL15FormatTestCountEi(ptr dead_on_unwind nonnull writable sret(%"class.testing::internal::String") align 8 %8, i32 noundef %27)
  %28 = call noundef ptr @_ZNK7testing8internal6String5c_strEv(ptr noundef nonnull align 8 dereferenceable(16) %8)
  %29 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.163, ptr noundef %28)
  call void @_ZN7testing8internal6StringD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %8) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #4
  %30 = call noundef i32 @_ZNK7testing8UnitTest17failed_test_countEv(ptr noundef nonnull align 8 dereferenceable(64) %1)
  %31 = call noundef zeroext i1 @_ZNK7testing8UnitTest6PassedEv(ptr noundef nonnull align 8 dereferenceable(64) %1)
  br i1 %31, label %39, label %32

32:                                               ; preds = %25
  %33 = call noundef i32 @_ZNK7testing8UnitTest17failed_test_countEv(ptr noundef nonnull align 8 dereferenceable(64) %1)
  call void (i32, ptr, ...) @_ZN7testing8internal13ColoredPrintfENS0_10GTestColorEPKcz(i32 noundef 1, ptr noundef nonnull @.str.156)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #4
  call void @_ZN7testingL15FormatTestCountEi(ptr dead_on_unwind nonnull writable sret(%"class.testing::internal::String") align 8 %9, i32 noundef %33)
  %34 = call noundef ptr @_ZNK7testing8internal6String5c_strEv(ptr noundef nonnull align 8 dereferenceable(16) %9)
  %35 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.164, ptr noundef %34)
  call void @_ZN7testing8internal6StringD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #4
  call void @_ZN7testing8internal27PrettyUnitTestResultPrinter16PrintFailedTestsERKNS_8UnitTestE(ptr noundef nonnull align 8 dereferenceable(64) %1)
  %36 = icmp eq i32 %30, 1
  %37 = select i1 %36, ptr @.str.166, ptr @.str.167
  %38 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.165, i32 noundef %30, ptr noundef nonnull %37)
  br label %39

39:                                               ; preds = %32, %25
  %40 = call noundef i32 @_ZNK7testing8UnitTest19disabled_test_countEv(ptr noundef nonnull align 8 dereferenceable(64) %1)
  %.not = icmp eq i32 %40, 0
  br i1 %.not, label %50, label %41

41:                                               ; preds = %39
  %42 = load i8, ptr @_ZN7testing35FLAGS_gtest_also_run_disabled_testsE, align 1, !tbaa !5, !range !9, !noundef !10
  %43 = trunc nuw i8 %42 to i1
  br i1 %43, label %50, label %44

44:                                               ; preds = %41
  %.not18 = icmp eq i32 %30, 0
  br i1 %.not18, label %45, label %47

45:                                               ; preds = %44
  %46 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.42)
  br label %47

47:                                               ; preds = %45, %44
  %48 = icmp eq i32 %40, 1
  %49 = select i1 %48, ptr @.str.166, ptr @.str.167
  call void (i32, ptr, ...) @_ZN7testing8internal13ColoredPrintfENS0_10GTestColorEPKcz(i32 noundef 3, ptr noundef nonnull @.str.168, i32 noundef %40, ptr noundef nonnull %49)
  br label %50

50:                                               ; preds = %47, %41, %39
  %51 = load ptr, ptr @stdout, align 8, !tbaa !13
  %52 = call i32 @fflush(ptr noundef %51)
  ret void
}

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

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

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

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

attributes #0 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 #4 = { 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 = !{!"bool", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{i8 0, i8 2}
!10 = !{}
!11 = !{!12, !12, i64 0}
!12 = !{!"long long", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"any pointer", !7, i64 0}


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