; LLVM IR from QAQdev/mini-sql-engine :: thirdparty/googletest/samples (sample9_unittest)

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

@.str.7 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [77 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

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

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr noundef %1) #2 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i8, align 1
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca ptr, align 8
  store i32 0, ptr %3, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  %16 = load ptr, ptr %5, align 8, !tbaa !9
  call void @_ZN7testing14InitGoogleTestEPiPPc(ptr noundef %4, ptr noundef %16)
  call void @llvm.lifetime.start.p0(i64 1, ptr %6) #8
  store i8 0, ptr %6, align 1, !tbaa !11
  %17 = load i32, ptr %4, align 4, !tbaa !5
  %18 = icmp sgt i32 %17, 1
  br i1 %18, label %19, label %26

19:                                               ; preds = %2
  %20 = load ptr, ptr %5, align 8, !tbaa !9
  %21 = getelementptr inbounds ptr, ptr %20, i64 1
  %22 = load ptr, ptr %21, align 8, !tbaa !9
  %23 = call i32 @strcmp(ptr noundef %22, ptr noundef @.str.8) #9
  %24 = icmp eq i32 %23, 0
  br i1 %24, label %25, label %26

25:                                               ; preds = %19
  store i8 1, ptr %6, align 1, !tbaa !11
  br label %28

26:                                               ; preds = %19, %2
  %27 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, ptr noundef @.str.10)
  br label %28

28:                                               ; preds = %26, %25
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #8
  %29 = call noundef ptr @_ZN7testing8UnitTest11GetInstanceEv()
  store ptr %29, ptr %7, align 8, !tbaa !9
  %30 = load i8, ptr %6, align 1, !tbaa !11, !range !13, !noundef !14
  %31 = trunc i8 %30 to i1
  br i1 %31, label %32, label %47

32:                                               ; preds = %28
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #8
  %33 = load ptr, ptr %7, align 8, !tbaa !9
  %34 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN7testing8UnitTest9listenersEv(ptr noundef nonnull align 8 dereferenceable(72) %33)
  store ptr %34, ptr %8, align 8, !tbaa !9
  %35 = load ptr, ptr %8, align 8, !tbaa !9
  %36 = load ptr, ptr %8, align 8, !tbaa !9
  %37 = call noundef ptr @_ZNK7testing18TestEventListeners22default_result_printerEv(ptr noundef nonnull align 8 dereferenceable(24) %36)
  %38 = call noundef ptr @_ZN7testing18TestEventListeners7ReleaseEPNS_17TestEventListenerE(ptr noundef nonnull align 8 dereferenceable(24) %35, ptr noundef %37)
  %39 = icmp eq ptr %38, null
  br i1 %39, label %44, label %40

40:                                               ; preds = %32
  %41 = load ptr, ptr %38, align 8, !tbaa !15
  %42 = getelementptr inbounds ptr, ptr %41, i64 1
  %43 = load ptr, ptr %42, align 8
  call void %43(ptr noundef nonnull align 8 dereferenceable(8) %38) #8
  br label %44

44:                                               ; preds = %40, %32
  %45 = load ptr, ptr %8, align 8, !tbaa !9
  %46 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 8) #10
  call void @_ZN12_GLOBAL__N_112TersePrinterC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %46) #8
  call void @_ZN7testing18TestEventListeners6AppendEPNS_17TestEventListenerE(ptr noundef nonnull align 8 dereferenceable(24) %45, ptr noundef %46)
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #8
  br label %47

47:                                               ; preds = %44, %28
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #8
  %48 = call noundef i32 @_Z13RUN_ALL_TESTSv()
  store i32 %48, ptr %9, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #8
  store i32 0, ptr %10, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #8
  store i32 0, ptr %11, align 4, !tbaa !5
  br label %49

49:                                               ; preds = %85, %47
  %50 = load i32, ptr %11, align 4, !tbaa !5
  %51 = load ptr, ptr %7, align 8, !tbaa !9
  %52 = call noundef i32 @_ZNK7testing8UnitTest22total_test_suite_countEv(ptr noundef nonnull align 8 dereferenceable(72) %51)
  %53 = icmp slt i32 %50, %52
  br i1 %53, label %55, label %54

54:                                               ; preds = %49
  store i32 2, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #8
  br label %88

55:                                               ; preds = %49
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #8
  %56 = load ptr, ptr %7, align 8, !tbaa !9
  %57 = load i32, ptr %11, align 4, !tbaa !5
  %58 = call noundef ptr @_ZNK7testing8UnitTest12GetTestSuiteEi(ptr noundef nonnull align 8 dereferenceable(72) %56, i32 noundef %57)
  store ptr %58, ptr %13, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #8
  store i32 0, ptr %14, align 4, !tbaa !5
  br label %59

59:                                               ; preds = %81, %55
  %60 = load i32, ptr %14, align 4, !tbaa !5
  %61 = load ptr, ptr %13, align 8, !tbaa !9
  %62 = call noundef i32 @_ZNK7testing9TestSuite16total_test_countEv(ptr noundef nonnull align 8 dereferenceable(264) %61)
  %63 = icmp slt i32 %60, %62
  br i1 %63, label %65, label %64

64:                                               ; preds = %59
  store i32 5, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #8
  br label %84

65:                                               ; preds = %59
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #8
  %66 = load ptr, ptr %13, align 8, !tbaa !9
  %67 = load i32, ptr %14, align 4, !tbaa !5
  %68 = call noundef ptr @_ZNK7testing9TestSuite11GetTestInfoEi(ptr noundef nonnull align 8 dereferenceable(264) %66, i32 noundef %67)
  store ptr %68, ptr %15, align 8, !tbaa !9
  %69 = load ptr, ptr %15, align 8, !tbaa !9
  %70 = call noundef ptr @_ZNK7testing8TestInfo6resultEv(ptr noundef nonnull align 8 dereferenceable(272) %69)
  %71 = call noundef zeroext i1 @_ZNK7testing10TestResult6FailedEv(ptr noundef nonnull align 8 dereferenceable(128) %70)
  br i1 %71, label %72, label %80

72:                                               ; preds = %65
  %73 = load ptr, ptr %15, align 8, !tbaa !9
  %74 = call noundef ptr @_ZNK7testing8TestInfo4nameEv(ptr noundef nonnull align 8 dereferenceable(272) %73)
  %75 = call i32 @strcmp(ptr noundef %74, ptr noundef @.str.7) #9
  %76 = icmp ne i32 %75, 0
  br i1 %76, label %77, label %80

77:                                               ; preds = %72
  %78 = load i32, ptr %10, align 4, !tbaa !5
  %79 = add nsw i32 %78, 1
  store i32 %79, ptr %10, align 4, !tbaa !5
  br label %80

80:                                               ; preds = %77, %72, %65
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  br label %81

81:                                               ; preds = %80
  %82 = load i32, ptr %14, align 4, !tbaa !5
  %83 = add nsw i32 %82, 1
  store i32 %83, ptr %14, align 4, !tbaa !5
  br label %59, !llvm.loop !17

84:                                               ; preds = %64
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  br label %85

85:                                               ; preds = %84
  %86 = load i32, ptr %11, align 4, !tbaa !5
  %87 = add nsw i32 %86, 1
  store i32 %87, ptr %11, align 4, !tbaa !5
  br label %49, !llvm.loop !19

88:                                               ; preds = %54
  %89 = load i32, ptr %10, align 4, !tbaa !5
  %90 = icmp eq i32 %89, 0
  br i1 %90, label %91, label %92

91:                                               ; preds = %88
  store i32 0, ptr %9, align 4, !tbaa !5
  br label %92

92:                                               ; preds = %91, %88
  %93 = load i32, ptr %9, align 4, !tbaa !5
  store i32 %93, ptr %3, align 4
  store i32 1, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %6) #8
  %94 = load i32, ptr %3, align 4
  ret i32 %94
}

declare void @_ZN7testing14InitGoogleTestEPiPPc(ptr noundef, ptr noundef) #3

; Function Attrs: nounwind willreturn memory(read)
declare i32 @strcmp(ptr noundef, ptr noundef) #4

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

declare noundef ptr @_ZN7testing8UnitTest11GetInstanceEv() #3

declare noundef nonnull align 8 dereferenceable(24) ptr @_ZN7testing8UnitTest9listenersEv(ptr noundef nonnull align 8 dereferenceable(72)) #3

declare noundef ptr @_ZN7testing18TestEventListeners7ReleaseEPNS_17TestEventListenerE(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK7testing18TestEventListeners22default_result_printerEv(ptr noundef nonnull align 8 dereferenceable(24)) #5 align 2

declare void @_ZN7testing18TestEventListeners6AppendEPNS_17TestEventListenerE(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef) #3

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_Z13RUN_ALL_TESTSv() #7

declare noundef i32 @_ZNK7testing8UnitTest22total_test_suite_countEv(ptr noundef nonnull align 8 dereferenceable(72)) #3

declare noundef ptr @_ZNK7testing8UnitTest12GetTestSuiteEi(ptr noundef nonnull align 8 dereferenceable(72), i32 noundef) #3

declare noundef i32 @_ZNK7testing9TestSuite16total_test_countEv(ptr noundef nonnull align 8 dereferenceable(264)) #3

declare noundef ptr @_ZNK7testing9TestSuite11GetTestInfoEi(ptr noundef nonnull align 8 dereferenceable(264), i32 noundef) #3

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

declare noundef zeroext i1 @_ZNK7testing10TestResult6FailedEv(ptr noundef nonnull align 8 dereferenceable(128)) #3

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

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

!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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !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 = !{!"vtable pointer", !8, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = distinct !{!19, !18}


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

@.str.7 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [77 x i8], align 1

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr noundef %1) local_unnamed_addr #1 {
  %3 = alloca i32, align 4
  store i32 %0, ptr %3, align 4, !tbaa !5
  call void @_ZN7testing14InitGoogleTestEPiPPc(ptr noundef nonnull %3, ptr noundef %1)
  %4 = load i32, ptr %3, align 4, !tbaa !5
  %5 = icmp sgt i32 %4, 1
  br i1 %5, label %6, label %11

6:                                                ; preds = %2
  %7 = getelementptr inbounds i8, ptr %1, i64 8
  %8 = load ptr, ptr %7, align 8, !tbaa !9
  %9 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %8, ptr noundef nonnull dereferenceable(1) @.str.8) #8
  %10 = icmp eq i32 %9, 0
  br i1 %10, label %14, label %11

11:                                               ; preds = %2, %6
  %12 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.9, ptr noundef nonnull @.str.10)
  %13 = call noundef ptr @_ZN7testing8UnitTest11GetInstanceEv()
  br label %26

14:                                               ; preds = %6
  %15 = call noundef ptr @_ZN7testing8UnitTest11GetInstanceEv()
  %16 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN7testing8UnitTest9listenersEv(ptr noundef nonnull align 8 dereferenceable(72) %15)
  %17 = call noundef ptr @_ZNK7testing18TestEventListeners22default_result_printerEv(ptr noundef nonnull align 8 dereferenceable(24) %16)
  %18 = call noundef ptr @_ZN7testing18TestEventListeners7ReleaseEPNS_17TestEventListenerE(ptr noundef nonnull align 8 dereferenceable(24) %16, ptr noundef %17)
  %19 = icmp eq ptr %18, null
  br i1 %19, label %24, label %20

20:                                               ; preds = %14
  %21 = load ptr, ptr %18, align 8, !tbaa !11
  %22 = getelementptr inbounds i8, ptr %21, i64 8
  %23 = load ptr, ptr %22, align 8
  call void %23(ptr noundef nonnull align 8 dereferenceable(8) %18) #9
  br label %24

24:                                               ; preds = %20, %14
  %25 = call noalias noundef nonnull dereferenceable(8) ptr @_Znwm(i64 noundef 8) #10
  call void @_ZN12_GLOBAL__N_112TersePrinterC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %25) #9
  call void @_ZN7testing18TestEventListeners6AppendEPNS_17TestEventListenerE(ptr noundef nonnull align 8 dereferenceable(24) %16, ptr noundef nonnull %25)
  br label %26

26:                                               ; preds = %11, %24
  %27 = phi ptr [ %15, %24 ], [ %13, %11 ]
  %28 = call noundef i32 @_Z13RUN_ALL_TESTSv()
  %29 = call noundef i32 @_ZNK7testing8UnitTest22total_test_suite_countEv(ptr noundef nonnull align 8 dereferenceable(72) %27)
  %30 = icmp sgt i32 %29, 0
  br i1 %30, label %.lr.ph34, label %._crit_edge35

._crit_edge35.loopexit:                           ; preds = %._crit_edge
  %31 = icmp eq i32 %.1.lcssa, 0
  %32 = select i1 %31, i32 0, i32 %28
  br label %._crit_edge35

._crit_edge35:                                    ; preds = %._crit_edge35.loopexit, %26
  %.024.lcssa = phi i32 [ 0, %26 ], [ %32, %._crit_edge35.loopexit ]
  ret i32 %.024.lcssa

.lr.ph34:                                         ; preds = %26, %._crit_edge
  %.02332 = phi i32 [ %36, %._crit_edge ], [ 0, %26 ]
  %.02431 = phi i32 [ %.1.lcssa, %._crit_edge ], [ 0, %26 ]
  %33 = call noundef ptr @_ZNK7testing8UnitTest12GetTestSuiteEi(ptr noundef nonnull align 8 dereferenceable(72) %27, i32 noundef %.02332)
  %34 = call noundef i32 @_ZNK7testing9TestSuite16total_test_countEv(ptr noundef nonnull align 8 dereferenceable(264) %33)
  %35 = icmp sgt i32 %34, 0
  br i1 %35, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %46, %.lr.ph34
  %.1.lcssa = phi i32 [ %.02431, %.lr.ph34 ], [ %.2, %46 ]
  %36 = add nuw nsw i32 %.02332, 1
  %37 = call noundef i32 @_ZNK7testing8UnitTest22total_test_suite_countEv(ptr noundef nonnull align 8 dereferenceable(72) %27)
  %38 = icmp slt i32 %36, %37
  br i1 %38, label %.lr.ph34, label %._crit_edge35.loopexit, !llvm.loop !13

.lr.ph:                                           ; preds = %.lr.ph34, %46
  %.030 = phi i32 [ %47, %46 ], [ 0, %.lr.ph34 ]
  %.129 = phi i32 [ %.2, %46 ], [ %.02431, %.lr.ph34 ]
  %39 = call noundef ptr @_ZNK7testing9TestSuite11GetTestInfoEi(ptr noundef nonnull align 8 dereferenceable(264) %33, i32 noundef %.030)
  %40 = call noundef ptr @_ZNK7testing8TestInfo6resultEv(ptr noundef nonnull align 8 dereferenceable(272) %39)
  %41 = call noundef zeroext i1 @_ZNK7testing10TestResult6FailedEv(ptr noundef nonnull align 8 dereferenceable(128) %40)
  br i1 %41, label %42, label %46

42:                                               ; preds = %.lr.ph
  %43 = call noundef ptr @_ZNK7testing8TestInfo4nameEv(ptr noundef nonnull align 8 dereferenceable(272) %39)
  %44 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %43, ptr noundef nonnull dereferenceable(1) @.str.7) #8
  %.not = icmp ne i32 %44, 0
  %45 = zext i1 %.not to i32
  %spec.select27 = add nsw i32 %.129, %45
  br label %46

46:                                               ; preds = %42, %.lr.ph
  %.2 = phi i32 [ %.129, %.lr.ph ], [ %spec.select27, %42 ]
  %47 = add nuw nsw i32 %.030, 1
  %48 = call noundef i32 @_ZNK7testing9TestSuite16total_test_countEv(ptr noundef nonnull align 8 dereferenceable(264) %33)
  %49 = icmp slt i32 %47, %48
  br i1 %49, label %.lr.ph, label %._crit_edge, !llvm.loop !15
}

declare void @_ZN7testing14InitGoogleTestEPiPPc(ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i32 @strcmp(ptr nocapture noundef, ptr nocapture noundef) local_unnamed_addr #3

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

declare noundef ptr @_ZN7testing8UnitTest11GetInstanceEv() local_unnamed_addr #2

declare noundef nonnull align 8 dereferenceable(24) ptr @_ZN7testing8UnitTest9listenersEv(ptr noundef nonnull align 8 dereferenceable(72)) local_unnamed_addr #2

declare noundef ptr @_ZN7testing18TestEventListeners7ReleaseEPNS_17TestEventListenerE(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK7testing18TestEventListeners22default_result_printerEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #5 align 2

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_Z13RUN_ALL_TESTSv() local_unnamed_addr #7

declare noundef i32 @_ZNK7testing8UnitTest22total_test_suite_countEv(ptr noundef nonnull align 8 dereferenceable(72)) local_unnamed_addr #2

declare noundef ptr @_ZNK7testing8UnitTest12GetTestSuiteEi(ptr noundef nonnull align 8 dereferenceable(72), i32 noundef) local_unnamed_addr #2

declare noundef i32 @_ZNK7testing9TestSuite16total_test_countEv(ptr noundef nonnull align 8 dereferenceable(264)) local_unnamed_addr #2

declare noundef ptr @_ZNK7testing9TestSuite11GetTestInfoEi(ptr noundef nonnull align 8 dereferenceable(264), i32 noundef) local_unnamed_addr #2

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

declare noundef zeroext i1 @_ZNK7testing10TestResult6FailedEv(ptr noundef nonnull align 8 dereferenceable(128)) local_unnamed_addr #2

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

attributes #0 = { 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 #1 = { mustprogress norecurse 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 = { mustprogress nofree nounwind willreturn memory(argmem: read) "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 = { 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 #5 = { 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 #6 = { 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 #7 = { 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 #8 = { nounwind willreturn memory(read) }
attributes #9 = { nounwind }
attributes #10 = { builtin allocsize(0) }

!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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"vtable pointer", !8, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}


; Effective O3 passes: GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass