; LLVM IR from QAQdev/mini-sql-engine :: thirdparty/googletest/src (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.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] }

@.str.95 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.160 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.164 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.165 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.166 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.167 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.168 = external hidden unnamed_addr constant [6 x i8], align 1

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

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

; 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 nounwind uwtable
declare noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32)) #1 align 2

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN7testing8internalL13ColoredPrintfENS0_12_GLOBAL__N_110GTestColorEPKcz(i32 noundef, ptr noundef, ...) #2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN7testingL15FormatTestCountB5cxx11Ei(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, i32 noundef) #2

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN7testing8internalL29PrintFullTestCommentIfPresentERKNS_8TestInfoE(ptr noundef nonnull align 8 dereferenceable(272)) #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7testing8internal27PrettyUnitTestResultPrinter16PrintFailedTestsERKNS_8UnitTestE(ptr noundef nonnull align 8 dereferenceable(72) %0) #2 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca %"class.std::__cxx11::basic_string", align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #4
  %12 = load ptr, ptr %2, align 8, !tbaa !5
  %13 = call noundef i32 @_ZNK7testing8UnitTest17failed_test_countEv(ptr noundef nonnull align 8 dereferenceable(72) %12)
  store i32 %13, ptr %3, align 4, !tbaa !9
  call void (i32, ptr, ...) @_ZN7testing8internalL13ColoredPrintfENS0_12_GLOBAL__N_110GTestColorEPKcz(i32 noundef 1, ptr noundef @.str.160)
  call void @llvm.lifetime.start.p0(i64 32, ptr %4) #4
  %14 = load i32, ptr %3, align 4, !tbaa !9
  call void @_ZN7testingL15FormatTestCountB5cxx11Ei(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %4, i32 noundef %14)
  %15 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %4) #4
  %16 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.164, ptr noundef %15)
          to label %17 unwind label %24

17:                                               ; preds = %1
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %4) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  store i32 0, ptr %7, align 4, !tbaa !9
  br label %18

18:                                               ; preds = %75, %17
  %19 = load i32, ptr %7, align 4, !tbaa !9
  %20 = load ptr, ptr %2, align 8, !tbaa !5
  %21 = call noundef i32 @_ZNK7testing8UnitTest22total_test_suite_countEv(ptr noundef nonnull align 8 dereferenceable(72) %20)
  %22 = icmp slt i32 %19, %21
  br i1 %22, label %28, label %23

23:                                               ; preds = %18
  store i32 2, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  br label %78

24:                                               ; preds = %1
  %25 = landingpad { ptr, i32 }
          cleanup
  %26 = extractvalue { ptr, i32 } %25, 0
  store ptr %26, ptr %5, align 8
  %27 = extractvalue { ptr, i32 } %25, 1
  store i32 %27, ptr %6, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %4) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #4
  br label %85

28:                                               ; preds = %18
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  %29 = load ptr, ptr %2, align 8, !tbaa !5
  %30 = load i32, ptr %7, align 4, !tbaa !9
  %31 = call noundef ptr @_ZNK7testing8UnitTest12GetTestSuiteEi(ptr noundef nonnull align 8 dereferenceable(72) %29, i32 noundef %30)
  store ptr %31, ptr %9, align 8, !tbaa !5
  %32 = load ptr, ptr %9, align 8, !tbaa !5
  %33 = call noundef zeroext i1 @_ZNK7testing9TestSuite10should_runEv(ptr noundef nonnull align 8 dereferenceable(264) %32)
  br i1 %33, label %34, label %38

34:                                               ; preds = %28
  %35 = load ptr, ptr %9, align 8, !tbaa !5
  %36 = call noundef i32 @_ZNK7testing9TestSuite17failed_test_countEv(ptr noundef nonnull align 8 dereferenceable(264) %35)
  %37 = icmp eq i32 %36, 0
  br i1 %37, label %38, label %39

38:                                               ; preds = %34, %28
  store i32 4, ptr %8, align 4
  br label %72

39:                                               ; preds = %34
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  store i32 0, ptr %10, align 4, !tbaa !9
  br label %40

40:                                               ; preds = %68, %39
  %41 = load i32, ptr %10, align 4, !tbaa !9
  %42 = load ptr, ptr %9, align 8, !tbaa !5
  %43 = call noundef i32 @_ZNK7testing9TestSuite16total_test_countEv(ptr noundef nonnull align 8 dereferenceable(264) %42)
  %44 = icmp slt i32 %41, %43
  br i1 %44, label %46, label %45

45:                                               ; preds = %40
  store i32 5, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  br label %71

46:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  %47 = load ptr, ptr %9, align 8, !tbaa !5
  %48 = load i32, ptr %10, align 4, !tbaa !9
  %49 = call noundef ptr @_ZNK7testing9TestSuite11GetTestInfoEi(ptr noundef nonnull align 8 dereferenceable(264) %47, i32 noundef %48)
  store ptr %49, ptr %11, align 8, !tbaa !5
  %50 = load ptr, ptr %11, align 8, !tbaa !5
  %51 = call noundef zeroext i1 @_ZNK7testing8TestInfo10should_runEv(ptr noundef nonnull align 8 dereferenceable(272) %50)
  br i1 %51, label %52, label %56

52:                                               ; preds = %46
  %53 = load ptr, ptr %11, align 8, !tbaa !5
  %54 = call noundef ptr @_ZNK7testing8TestInfo6resultEv(ptr noundef nonnull align 8 dereferenceable(272) %53)
  %55 = call noundef zeroext i1 @_ZNK7testing10TestResult6FailedEv(ptr noundef nonnull align 8 dereferenceable(128) %54)
  br i1 %55, label %57, label %56

56:                                               ; preds = %52, %46
  store i32 7, ptr %8, align 4
  br label %65

57:                                               ; preds = %52
  call void (i32, ptr, ...) @_ZN7testing8internalL13ColoredPrintfENS0_12_GLOBAL__N_110GTestColorEPKcz(i32 noundef 1, ptr noundef @.str.160)
  %58 = load ptr, ptr %9, align 8, !tbaa !5
  %59 = call noundef ptr @_ZNK7testing9TestSuite4nameEv(ptr noundef nonnull align 8 dereferenceable(264) %58)
  %60 = load ptr, ptr %11, align 8, !tbaa !5
  %61 = call noundef ptr @_ZNK7testing8TestInfo4nameEv(ptr noundef nonnull align 8 dereferenceable(272) %60)
  %62 = call i32 (ptr, ...) @printf(ptr noundef @.str.165, ptr noundef %59, ptr noundef %61)
  %63 = load ptr, ptr %11, align 8, !tbaa !5
  call void @_ZN7testing8internalL29PrintFullTestCommentIfPresentERKNS_8TestInfoE(ptr noundef nonnull align 8 dereferenceable(272) %63)
  %64 = call i32 (ptr, ...) @printf(ptr noundef @.str.95)
  store i32 0, ptr %8, align 4
  br label %65

65:                                               ; preds = %57, %56
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  %66 = load i32, ptr %8, align 4
  switch i32 %66, label %90 [
    i32 0, label %67
    i32 7, label %68
  ]

67:                                               ; preds = %65
  br label %68

68:                                               ; preds = %67, %65
  %69 = load i32, ptr %10, align 4, !tbaa !9
  %70 = add nsw i32 %69, 1
  store i32 %70, ptr %10, align 4, !tbaa !9
  br label %40, !llvm.loop !11

71:                                               ; preds = %45
  store i32 0, ptr %8, align 4
  br label %72

72:                                               ; preds = %71, %38
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  %73 = load i32, ptr %8, align 4
  switch i32 %73, label %90 [
    i32 0, label %74
    i32 4, label %75
  ]

74:                                               ; preds = %72
  br label %75

75:                                               ; preds = %74, %72
  %76 = load i32, ptr %7, align 4, !tbaa !9
  %77 = add nsw i32 %76, 1
  store i32 %77, ptr %7, align 4, !tbaa !9
  br label %18, !llvm.loop !13

78:                                               ; preds = %23
  %79 = load i32, ptr %3, align 4, !tbaa !9
  %80 = load i32, ptr %3, align 4, !tbaa !9
  %81 = icmp eq i32 %80, 1
  %82 = zext i1 %81 to i64
  %83 = select i1 %81, ptr @.str.167, ptr @.str.168
  %84 = call i32 (ptr, ...) @printf(ptr noundef @.str.166, i32 noundef %79, ptr noundef %83)
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #4
  ret void

85:                                               ; preds = %24
  %86 = load ptr, ptr %5, align 8
  %87 = load i32, ptr %6, align 4
  %88 = insertvalue { ptr, i32 } poison, ptr %86, 0
  %89 = insertvalue { ptr, i32 } %88, i32 %87, 1
  resume { ptr, i32 } %89

90:                                               ; preds = %72, %65
  unreachable
}

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK7testing9TestSuite10should_runEv(ptr noundef nonnull align 8 dereferenceable(264)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK7testing8TestInfo10should_runEv(ptr noundef nonnull align 8 dereferenceable(272)) #1 align 2

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


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

%"class.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] }

@.str.95 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.160 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.164 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.165 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.166 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.167 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.168 = external hidden unnamed_addr constant [6 x i8], align 1

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

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

; 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 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: mustprogress uwtable
declare dso_local noundef i32 @_ZNK7testing9TestSuite17failed_test_countEv(ptr noundef nonnull align 8 dereferenceable(264)) local_unnamed_addr #2 align 2

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN7testing8internalL13ColoredPrintfENS0_12_GLOBAL__N_110GTestColorEPKcz(i32 noundef, ptr noundef, ...) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN7testingL15FormatTestCountB5cxx11Ei(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, i32 noundef) local_unnamed_addr #2

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN7testing8internalL29PrintFullTestCommentIfPresentERKNS_8TestInfoE(ptr noundef nonnull align 8 dereferenceable(272)) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7testing8internal27PrettyUnitTestResultPrinter16PrintFailedTestsERKNS_8UnitTestE(ptr noundef nonnull align 8 dereferenceable(72) %0) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.std::__cxx11::basic_string", align 8
  %3 = tail call noundef i32 @_ZNK7testing8UnitTest17failed_test_countEv(ptr noundef nonnull align 8 dereferenceable(72) %0)
  tail call void (i32, ptr, ...) @_ZN7testing8internalL13ColoredPrintfENS0_12_GLOBAL__N_110GTestColorEPKcz(i32 noundef 1, ptr noundef nonnull @.str.160)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %2) #4
  call void @_ZN7testingL15FormatTestCountB5cxx11Ei(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %2, i32 noundef %3)
  %4 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %2) #4
  %5 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.164, ptr noundef %4)
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #4
  %6 = call noundef i32 @_ZNK7testing8UnitTest22total_test_suite_countEv(ptr noundef nonnull align 8 dereferenceable(72) %0)
  %7 = icmp sgt i32 %6, 0
  br i1 %7, label %.lr.ph23, label %._crit_edge

._crit_edge:                                      ; preds = %.loopexit, %1
  %8 = icmp eq i32 %3, 1
  %9 = select i1 %8, ptr @.str.167, ptr @.str.168
  %10 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.166, i32 noundef %3, ptr noundef nonnull %9)
  ret void

.lr.ph23:                                         ; preds = %1, %.loopexit
  %.022 = phi i32 [ %32, %.loopexit ], [ 0, %1 ]
  %11 = call noundef ptr @_ZNK7testing8UnitTest12GetTestSuiteEi(ptr noundef nonnull align 8 dereferenceable(72) %0, i32 noundef %.022)
  %12 = call noundef zeroext i1 @_ZNK7testing9TestSuite10should_runEv(ptr noundef nonnull align 8 dereferenceable(264) %11)
  br i1 %12, label %13, label %.loopexit

13:                                               ; preds = %.lr.ph23
  %14 = call noundef i32 @_ZNK7testing9TestSuite17failed_test_countEv(ptr noundef nonnull align 8 dereferenceable(264) %11)
  %15 = icmp eq i32 %14, 0
  br i1 %15, label %.loopexit, label %.preheader

.preheader:                                       ; preds = %13
  %16 = call noundef i32 @_ZNK7testing9TestSuite16total_test_countEv(ptr noundef nonnull align 8 dereferenceable(264) %11)
  %17 = icmp sgt i32 %16, 0
  br i1 %17, label %.lr.ph, label %.loopexit

.lr.ph:                                           ; preds = %.preheader, %28
  %.02021 = phi i32 [ %29, %28 ], [ 0, %.preheader ]
  %18 = call noundef ptr @_ZNK7testing9TestSuite11GetTestInfoEi(ptr noundef nonnull align 8 dereferenceable(264) %11, i32 noundef %.02021)
  %19 = call noundef zeroext i1 @_ZNK7testing8TestInfo10should_runEv(ptr noundef nonnull align 8 dereferenceable(272) %18)
  br i1 %19, label %20, label %28

20:                                               ; preds = %.lr.ph
  %21 = call noundef ptr @_ZNK7testing8TestInfo6resultEv(ptr noundef nonnull align 8 dereferenceable(272) %18)
  %22 = call noundef zeroext i1 @_ZNK7testing10TestResult6FailedEv(ptr noundef nonnull align 8 dereferenceable(128) %21)
  br i1 %22, label %23, label %28

23:                                               ; preds = %20
  call void (i32, ptr, ...) @_ZN7testing8internalL13ColoredPrintfENS0_12_GLOBAL__N_110GTestColorEPKcz(i32 noundef 1, ptr noundef nonnull @.str.160)
  %24 = call noundef ptr @_ZNK7testing9TestSuite4nameEv(ptr noundef nonnull align 8 dereferenceable(264) %11)
  %25 = call noundef ptr @_ZNK7testing8TestInfo4nameEv(ptr noundef nonnull align 8 dereferenceable(272) %18)
  %26 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.165, ptr noundef %24, ptr noundef %25)
  call void @_ZN7testing8internalL29PrintFullTestCommentIfPresentERKNS_8TestInfoE(ptr noundef nonnull align 8 dereferenceable(272) %18)
  %27 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.95)
  br label %28

28:                                               ; preds = %.lr.ph, %20, %23
  %29 = add nuw nsw i32 %.02021, 1
  %30 = call noundef i32 @_ZNK7testing9TestSuite16total_test_countEv(ptr noundef nonnull align 8 dereferenceable(264) %11)
  %31 = icmp slt i32 %29, %30
  br i1 %31, label %.lr.ph, label %.loopexit, !llvm.loop !5

.loopexit:                                        ; preds = %28, %.preheader, %.lr.ph23, %13
  %32 = add nuw nsw i32 %.022, 1
  %33 = call noundef i32 @_ZNK7testing8UnitTest22total_test_suite_countEv(ptr noundef nonnull align 8 dereferenceable(72) %0)
  %34 = icmp slt i32 %32, %33
  br i1 %34, label %.lr.ph23, label %._crit_edge, !llvm.loop !7
}

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

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

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

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

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

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


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