; LLVM IR from QAQdev/mini-sql-engine :: thirdparty/googletest/src/gtest-all.ll (ZN7testing9TestSuite3RunEv)

; 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::Timer" = type { %"class.std::chrono::time_point.152" }
%"class.std::chrono::time_point.152" = type { %"class.std::chrono::duration.89" }
%"class.std::chrono::duration.89" = type { i64 }
%"class.testing::TestSuite" = type { ptr, %"class.std::__cxx11::basic_string", %"class.std::unique_ptr.138", %"class.std::vector.146", %"class.std::vector.18", ptr, ptr, i8, i64, i64, %"class.testing::TestResult" }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::unique_ptr.138" = type { %"struct.std::__uniq_ptr_data.139" }
%"struct.std::__uniq_ptr_data.139" = type { %"class.std::__uniq_ptr_impl.140" }
%"class.std::__uniq_ptr_impl.140" = type { %"class.std::tuple.141" }
%"class.std::tuple.141" = type { %"struct.std::_Tuple_impl.142" }
%"struct.std::_Tuple_impl.142" = type { %"struct.std::_Head_base.145" }
%"struct.std::_Head_base.145" = type { ptr }
%"class.std::vector.146" = type { %"struct.std::_Vector_base.147" }
%"struct.std::_Vector_base.147" = type { %"struct.std::_Vector_base<testing::TestInfo *, std::allocator<testing::TestInfo *>>::_Vector_impl" }
%"struct.std::_Vector_base<testing::TestInfo *, std::allocator<testing::TestInfo *>>::_Vector_impl" = type { %"struct.std::_Vector_base<testing::TestInfo *, std::allocator<testing::TestInfo *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<testing::TestInfo *, std::allocator<testing::TestInfo *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.18" = type { %"struct.std::_Vector_base.19" }
%"struct.std::_Vector_base.19" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.testing::TestResult" = type { %"class.testing::internal::Mutex", %"class.std::vector.35", %"class.std::vector.40", i32, i64, i64 }
%"class.testing::internal::Mutex" = type { %"class.testing::internal::MutexBase" }
%"class.testing::internal::MutexBase" = type { %union.pthread_mutex_t, i8, i64 }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%"class.std::vector.35" = type { %"struct.std::_Vector_base.36" }
%"struct.std::_Vector_base.36" = type { %"struct.std::_Vector_base<testing::TestPartResult, std::allocator<testing::TestPartResult>>::_Vector_impl" }
%"struct.std::_Vector_base<testing::TestPartResult, std::allocator<testing::TestPartResult>>::_Vector_impl" = type { %"struct.std::_Vector_base<testing::TestPartResult, std::allocator<testing::TestPartResult>>::_Vector_impl_data" }
%"struct.std::_Vector_base<testing::TestPartResult, std::allocator<testing::TestPartResult>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.40" = type { %"struct.std::_Vector_base.41" }
%"struct.std::_Vector_base.41" = type { %"struct.std::_Vector_base<testing::TestProperty, std::allocator<testing::TestProperty>>::_Vector_impl" }
%"struct.std::_Vector_base<testing::TestProperty, std::allocator<testing::TestProperty>>::_Vector_impl" = type { %"struct.std::_Vector_base<testing::TestProperty, std::allocator<testing::TestProperty>>::_Vector_impl_data" }
%"struct.std::_Vector_base<testing::TestProperty, std::allocator<testing::TestProperty>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@_ZN7testing21FLAGS_gtest_fail_fastE = external dso_local global i8, align 1
@.str.126 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.127 = external hidden unnamed_addr constant [20 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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN7testing8UnitTest11GetInstanceEv() #1 align 2

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZN7testing8internal15GetTimeInMillisEv() #1

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7testing9TestSuite3RunEv(ptr noundef nonnull align 8 dereferenceable(264) %0) #1 align 2 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca { i64, i64 }, align 8
  %6 = alloca %"class.testing::internal::Timer", align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca { i64, i64 }, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %11 = load ptr, ptr %2, align 8
  %12 = getelementptr inbounds %"class.testing::TestSuite", ptr %11, i32 0, i32 7
  %13 = load i8, ptr %12, align 8, !tbaa !9, !range !41, !noundef !42
  %14 = trunc i8 %13 to i1
  br i1 %14, label %16, label %15

15:                                               ; preds = %1
  br label %97

16:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #4
  %17 = call noundef ptr @_ZN7testing8internal15GetUnitTestImplEv()
  store ptr %17, ptr %3, align 8, !tbaa !5
  %18 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN7testing8internal12UnitTestImpl22set_current_test_suiteEPNS_9TestSuiteE(ptr noundef nonnull align 8 dereferenceable(601) %18, ptr noundef %11)
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #4
  %19 = call noundef ptr @_ZN7testing8UnitTest11GetInstanceEv()
  %20 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN7testing8UnitTest9listenersEv(ptr noundef nonnull align 8 dereferenceable(72) %19)
  %21 = call noundef ptr @_ZN7testing18TestEventListeners8repeaterEv(ptr noundef nonnull align 8 dereferenceable(24) %20)
  store ptr %21, ptr %4, align 8, !tbaa !5
  %22 = load ptr, ptr %4, align 8, !tbaa !5
  %23 = load ptr, ptr %22, align 8, !tbaa !43
  %24 = getelementptr inbounds ptr, ptr %23, i64 6
  %25 = load ptr, ptr %24, align 8
  call void %25(ptr noundef nonnull align 8 dereferenceable(8) %22, ptr noundef nonnull align 8 dereferenceable(264) %11)
  %26 = load ptr, ptr %4, align 8, !tbaa !5
  %27 = load ptr, ptr %26, align 8, !tbaa !43
  %28 = getelementptr inbounds ptr, ptr %27, i64 7
  %29 = load ptr, ptr %28, align 8
  call void %29(ptr noundef nonnull align 8 dereferenceable(8) %26, ptr noundef nonnull align 8 dereferenceable(264) %11)
  %30 = load ptr, ptr %3, align 8, !tbaa !5
  %31 = call noundef ptr @_ZN7testing8internal12UnitTestImpl21os_stack_trace_getterEv(ptr noundef nonnull align 8 dereferenceable(601) %30)
  %32 = load ptr, ptr %31, align 8, !tbaa !43
  %33 = getelementptr inbounds ptr, ptr %32, i64 3
  %34 = load ptr, ptr %33, align 8
  call void %34(ptr noundef nonnull align 8 dereferenceable(8) %31)
  store { i64, i64 } { i64 ptrtoint (ptr @_ZN7testing9TestSuite17RunSetUpTestSuiteEv to i64), i64 0 }, ptr %5, align 8, !tbaa !45
  %35 = getelementptr inbounds { i64, i64 }, ptr %5, i32 0, i32 0
  %36 = load i64, ptr %35, align 8
  %37 = getelementptr inbounds { i64, i64 }, ptr %5, i32 0, i32 1
  %38 = load i64, ptr %37, align 8
  call void @_ZN7testing8internal35HandleExceptionsInMethodIfSupportedINS_9TestSuiteEvEET0_PT_MS4_FS3_vEPKc(ptr noundef %11, i64 %36, i64 %38, ptr noundef @.str.126)
  %39 = call noundef i64 @_ZN7testing8internal15GetTimeInMillisEv()
  %40 = getelementptr inbounds %"class.testing::TestSuite", ptr %11, i32 0, i32 8
  store i64 %39, ptr %40, align 8, !tbaa !46
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  call void @_ZN7testing8internal5TimerC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %6)
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  store i32 0, ptr %7, align 4, !tbaa !47
  br label %41

41:                                               ; preds = %72, %16
  %42 = load i32, ptr %7, align 4, !tbaa !47
  %43 = call noundef i32 @_ZNK7testing9TestSuite16total_test_countEv(ptr noundef nonnull align 8 dereferenceable(264) %11)
  %44 = icmp slt i32 %42, %43
  br i1 %44, label %46, label %45

45:                                               ; preds = %41
  store i32 2, ptr %8, align 4
  br label %75

46:                                               ; preds = %41
  %47 = load i32, ptr %7, align 4, !tbaa !47
  %48 = call noundef ptr @_ZN7testing9TestSuite18GetMutableTestInfoEi(ptr noundef nonnull align 8 dereferenceable(264) %11, i32 noundef %47)
  call void @_ZN7testing8TestInfo3RunEv(ptr noundef nonnull align 8 dereferenceable(272) %48)
  %49 = load i8, ptr @_ZN7testing21FLAGS_gtest_fail_fastE, align 1, !tbaa !48, !range !41, !noundef !42
  %50 = trunc i8 %49 to i1
  br i1 %50, label %51, label %71

51:                                               ; preds = %46
  %52 = load i32, ptr %7, align 4, !tbaa !47
  %53 = call noundef ptr @_ZN7testing9TestSuite18GetMutableTestInfoEi(ptr noundef nonnull align 8 dereferenceable(264) %11, i32 noundef %52)
  %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 %56, label %71

56:                                               ; preds = %51
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  %57 = load i32, ptr %7, align 4, !tbaa !47
  %58 = add nsw i32 %57, 1
  store i32 %58, ptr %9, align 4, !tbaa !47
  br label %59

59:                                               ; preds = %67, %56
  %60 = load i32, ptr %9, align 4, !tbaa !47
  %61 = call noundef i32 @_ZNK7testing9TestSuite16total_test_countEv(ptr noundef nonnull align 8 dereferenceable(264) %11)
  %62 = icmp slt i32 %60, %61
  br i1 %62, label %64, label %63

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

64:                                               ; preds = %59
  %65 = load i32, ptr %9, align 4, !tbaa !47
  %66 = call noundef ptr @_ZN7testing9TestSuite18GetMutableTestInfoEi(ptr noundef nonnull align 8 dereferenceable(264) %11, i32 noundef %65)
  call void @_ZN7testing8TestInfo4SkipEv(ptr noundef nonnull align 8 dereferenceable(272) %66)
  br label %67

67:                                               ; preds = %64
  %68 = load i32, ptr %9, align 4, !tbaa !47
  %69 = add nsw i32 %68, 1
  store i32 %69, ptr %9, align 4, !tbaa !47
  br label %59, !llvm.loop !49

70:                                               ; preds = %63
  store i32 2, ptr %8, align 4
  br label %75

71:                                               ; preds = %51, %46
  br label %72

72:                                               ; preds = %71
  %73 = load i32, ptr %7, align 4, !tbaa !47
  %74 = add nsw i32 %73, 1
  store i32 %74, ptr %7, align 4, !tbaa !47
  br label %41, !llvm.loop !51

75:                                               ; preds = %70, %45
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  br label %76

76:                                               ; preds = %75
  %77 = call noundef i64 @_ZN7testing8internal5Timer7ElapsedEv(ptr noundef nonnull align 8 dereferenceable(8) %6)
  %78 = getelementptr inbounds %"class.testing::TestSuite", ptr %11, i32 0, i32 9
  store i64 %77, ptr %78, align 8, !tbaa !52
  %79 = load ptr, ptr %3, align 8, !tbaa !5
  %80 = call noundef ptr @_ZN7testing8internal12UnitTestImpl21os_stack_trace_getterEv(ptr noundef nonnull align 8 dereferenceable(601) %79)
  %81 = load ptr, ptr %80, align 8, !tbaa !43
  %82 = getelementptr inbounds ptr, ptr %81, i64 3
  %83 = load ptr, ptr %82, align 8
  call void %83(ptr noundef nonnull align 8 dereferenceable(8) %80)
  store { i64, i64 } { i64 ptrtoint (ptr @_ZN7testing9TestSuite20RunTearDownTestSuiteEv to i64), i64 0 }, ptr %10, align 8, !tbaa !45
  %84 = getelementptr inbounds { i64, i64 }, ptr %10, i32 0, i32 0
  %85 = load i64, ptr %84, align 8
  %86 = getelementptr inbounds { i64, i64 }, ptr %10, i32 0, i32 1
  %87 = load i64, ptr %86, align 8
  call void @_ZN7testing8internal35HandleExceptionsInMethodIfSupportedINS_9TestSuiteEvEET0_PT_MS4_FS3_vEPKc(ptr noundef %11, i64 %85, i64 %87, ptr noundef @.str.127)
  %88 = load ptr, ptr %4, align 8, !tbaa !5
  %89 = load ptr, ptr %88, align 8, !tbaa !43
  %90 = getelementptr inbounds ptr, ptr %89, i64 11
  %91 = load ptr, ptr %90, align 8
  call void %91(ptr noundef nonnull align 8 dereferenceable(8) %88, ptr noundef nonnull align 8 dereferenceable(264) %11)
  %92 = load ptr, ptr %4, align 8, !tbaa !5
  %93 = load ptr, ptr %92, align 8, !tbaa !43
  %94 = getelementptr inbounds ptr, ptr %93, i64 12
  %95 = load ptr, ptr %94, align 8
  call void %95(ptr noundef nonnull align 8 dereferenceable(8) %92, ptr noundef nonnull align 8 dereferenceable(264) %11)
  %96 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN7testing8internal12UnitTestImpl22set_current_test_suiteEPNS_9TestSuiteE(ptr noundef nonnull align 8 dereferenceable(601) %96, ptr noundef null)
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #4
  br label %97

97:                                               ; preds = %76, %15
  ret void
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7testing8internal12UnitTestImpl22set_current_test_suiteEPNS_9TestSuiteE(ptr noundef nonnull align 8 dereferenceable(601), ptr noundef) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7testing8internal35HandleExceptionsInMethodIfSupportedINS_9TestSuiteEvEET0_PT_MS4_FS3_vEPKc(ptr noundef, i64, i64, ptr noundef) #1

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #3 = { 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 #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, !28, i64 112}
!10 = !{!"_ZTSN7testing9TestSuiteE", !11, i64 8, !14, i64 40, !20, i64 48, !24, i64 72, !6, i64 96, !6, i64 104, !28, i64 112, !13, i64 120, !13, i64 128, !29, i64 136}
!11 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !12, i64 0, !13, i64 8, !7, i64 16}
!12 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!13 = !{!"long", !7, i64 0}
!14 = !{!"_ZTSSt10unique_ptrIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt14default_deleteIS6_EE", !15, i64 0}
!15 = !{!"_ZTSSt15__uniq_ptr_dataIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt14default_deleteIS6_ELb1ELb1EE", !16, i64 0}
!16 = !{!"_ZTSSt15__uniq_ptr_implIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt14default_deleteIS6_EE", !17, i64 0}
!17 = !{!"_ZTSSt5tupleIJPKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt14default_deleteIS6_EEE", !18, i64 0}
!18 = !{!"_ZTSSt11_Tuple_implILm0EJPKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt14default_deleteIS6_EEE", !19, i64 0}
!19 = !{!"_ZTSSt10_Head_baseILm0EPKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEELb0EE", !6, i64 0}
!20 = !{!"_ZTSSt6vectorIPN7testing8TestInfoESaIS2_EE", !21, i64 0}
!21 = !{!"_ZTSSt12_Vector_baseIPN7testing8TestInfoESaIS2_EE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseIPN7testing8TestInfoESaIS2_EE12_Vector_implE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseIPN7testing8TestInfoESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!24 = !{!"_ZTSSt6vectorIiSaIiEE", !25, i64 0}
!25 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !26, i64 0}
!26 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !27, i64 0}
!27 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!28 = !{!"bool", !7, i64 0}
!29 = !{!"_ZTSN7testing10TestResultE", !30, i64 0, !32, i64 56, !36, i64 80, !40, i64 104, !13, i64 112, !13, i64 120}
!30 = !{!"_ZTSN7testing8internal5MutexE", !31, i64 0}
!31 = !{!"_ZTSN7testing8internal9MutexBaseE", !7, i64 0, !28, i64 40, !13, i64 48}
!32 = !{!"_ZTSSt6vectorIN7testing14TestPartResultESaIS1_EE", !33, i64 0}
!33 = !{!"_ZTSSt12_Vector_baseIN7testing14TestPartResultESaIS1_EE", !34, i64 0}
!34 = !{!"_ZTSNSt12_Vector_baseIN7testing14TestPartResultESaIS1_EE12_Vector_implE", !35, i64 0}
!35 = !{!"_ZTSNSt12_Vector_baseIN7testing14TestPartResultESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!36 = !{!"_ZTSSt6vectorIN7testing12TestPropertyESaIS1_EE", !37, i64 0}
!37 = !{!"_ZTSSt12_Vector_baseIN7testing12TestPropertyESaIS1_EE", !38, i64 0}
!38 = !{!"_ZTSNSt12_Vector_baseIN7testing12TestPropertyESaIS1_EE12_Vector_implE", !39, i64 0}
!39 = !{!"_ZTSNSt12_Vector_baseIN7testing12TestPropertyESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!40 = !{!"int", !7, i64 0}
!41 = !{i8 0, i8 2}
!42 = !{}
!43 = !{!44, !44, i64 0}
!44 = !{!"vtable pointer", !8, i64 0}
!45 = !{!7, !7, i64 0}
!46 = !{!10, !13, i64 120}
!47 = !{!40, !40, i64 0}
!48 = !{!28, !28, i64 0}
!49 = distinct !{!49, !50}
!50 = !{!"llvm.loop.mustprogress"}
!51 = distinct !{!51, !50}
!52 = !{!10, !13, i64 128}


; 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::Timer" = type { %"class.std::chrono::time_point.152" }
%"class.std::chrono::time_point.152" = type { %"class.std::chrono::duration.89" }
%"class.std::chrono::duration.89" = type { i64 }

@_ZN7testing21FLAGS_gtest_fail_fastE = external dso_local local_unnamed_addr global i8, align 1
@.str.126 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.127 = external hidden unnamed_addr constant [20 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

; 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 uwtable
declare dso_local noundef ptr @_ZN7testing8UnitTest11GetInstanceEv() local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN7testing18TestEventListeners8repeaterEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3 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 #3 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZN7testing8internal15GetTimeInMillisEv() local_unnamed_addr #1

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7testing9TestSuite3RunEv(ptr noundef nonnull align 8 dereferenceable(264) %0) local_unnamed_addr #1 align 2 {
  %2 = alloca %"class.testing::internal::Timer", align 8
  %3 = getelementptr inbounds i8, ptr %0, i64 112
  %4 = load i8, ptr %3, align 8, !tbaa !5, !range !40, !noundef !41
  %5 = trunc nuw i8 %4 to i1
  br i1 %5, label %6, label %53

6:                                                ; preds = %1
  %7 = tail call noundef ptr @_ZN7testing8internal15GetUnitTestImplEv()
  tail call void @_ZN7testing8internal12UnitTestImpl22set_current_test_suiteEPNS_9TestSuiteE(ptr noundef nonnull align 8 dereferenceable(601) %7, ptr noundef nonnull %0)
  %8 = tail call noundef ptr @_ZN7testing8UnitTest11GetInstanceEv()
  %9 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZN7testing8UnitTest9listenersEv(ptr noundef nonnull align 8 dereferenceable(72) %8)
  %10 = tail call noundef ptr @_ZN7testing18TestEventListeners8repeaterEv(ptr noundef nonnull align 8 dereferenceable(24) %9)
  %11 = load ptr, ptr %10, align 8, !tbaa !42
  %12 = getelementptr inbounds i8, ptr %11, i64 48
  %13 = load ptr, ptr %12, align 8
  tail call void %13(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(264) %0)
  %14 = load ptr, ptr %10, align 8, !tbaa !42
  %15 = getelementptr inbounds i8, ptr %14, i64 56
  %16 = load ptr, ptr %15, align 8
  tail call void %16(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(264) %0)
  %17 = tail call noundef ptr @_ZN7testing8internal12UnitTestImpl21os_stack_trace_getterEv(ptr noundef nonnull align 8 dereferenceable(601) %7)
  %18 = load ptr, ptr %17, align 8, !tbaa !42
  %19 = getelementptr inbounds i8, ptr %18, i64 24
  %20 = load ptr, ptr %19, align 8
  tail call void %20(ptr noundef nonnull align 8 dereferenceable(8) %17)
  tail call void @_ZN7testing8internal35HandleExceptionsInMethodIfSupportedINS_9TestSuiteEvEET0_PT_MS4_FS3_vEPKc(ptr noundef nonnull %0, i64 ptrtoint (ptr @_ZN7testing9TestSuite17RunSetUpTestSuiteEv to i64), i64 0, ptr noundef nonnull @.str.126)
  %21 = tail call noundef i64 @_ZN7testing8internal15GetTimeInMillisEv()
  %22 = getelementptr inbounds i8, ptr %0, i64 120
  store i64 %21, ptr %22, align 8, !tbaa !44
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #4
  call void @_ZN7testing8internal5TimerC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %2)
  %23 = call noundef i32 @_ZNK7testing9TestSuite16total_test_countEv(ptr noundef nonnull align 8 dereferenceable(264) %0)
  %24 = icmp sgt i32 %23, 0
  br i1 %24, label %.lr.ph, label %.loopexit

.lr.ph:                                           ; preds = %6, %37
  %.021 = phi i32 [ %38, %37 ], [ 0, %6 ]
  %25 = call noundef ptr @_ZN7testing9TestSuite18GetMutableTestInfoEi(ptr noundef nonnull align 8 dereferenceable(264) %0, i32 noundef %.021)
  call void @_ZN7testing8TestInfo3RunEv(ptr noundef nonnull align 8 dereferenceable(272) %25)
  %26 = load i8, ptr @_ZN7testing21FLAGS_gtest_fail_fastE, align 1, !tbaa !45, !range !40, !noundef !41
  %27 = trunc nuw i8 %26 to i1
  br i1 %27, label %28, label %37

28:                                               ; preds = %.lr.ph
  %29 = call noundef ptr @_ZN7testing9TestSuite18GetMutableTestInfoEi(ptr noundef nonnull align 8 dereferenceable(264) %0, i32 noundef %.021)
  %30 = call noundef ptr @_ZNK7testing8TestInfo6resultEv(ptr noundef nonnull align 8 dereferenceable(272) %29)
  %31 = call noundef zeroext i1 @_ZNK7testing10TestResult6FailedEv(ptr noundef nonnull align 8 dereferenceable(128) %30)
  br i1 %31, label %.preheader, label %37

.preheader:                                       ; preds = %28
  %.01822 = add nuw nsw i32 %.021, 1
  %32 = call noundef i32 @_ZNK7testing9TestSuite16total_test_countEv(ptr noundef nonnull align 8 dereferenceable(264) %0)
  %33 = icmp slt i32 %.01822, %32
  br i1 %33, label %.lr.ph24, label %.loopexit

.lr.ph24:                                         ; preds = %.preheader, %.lr.ph24
  %.01823 = phi i32 [ %.018, %.lr.ph24 ], [ %.01822, %.preheader ]
  %34 = call noundef ptr @_ZN7testing9TestSuite18GetMutableTestInfoEi(ptr noundef nonnull align 8 dereferenceable(264) %0, i32 noundef %.01823)
  call void @_ZN7testing8TestInfo4SkipEv(ptr noundef nonnull align 8 dereferenceable(272) %34)
  %.018 = add nuw nsw i32 %.01823, 1
  %35 = call noundef i32 @_ZNK7testing9TestSuite16total_test_countEv(ptr noundef nonnull align 8 dereferenceable(264) %0)
  %36 = icmp slt i32 %.018, %35
  br i1 %36, label %.lr.ph24, label %.loopexit, !llvm.loop !46

37:                                               ; preds = %.lr.ph, %28
  %38 = add nuw nsw i32 %.021, 1
  %39 = call noundef i32 @_ZNK7testing9TestSuite16total_test_countEv(ptr noundef nonnull align 8 dereferenceable(264) %0)
  %40 = icmp slt i32 %38, %39
  br i1 %40, label %.lr.ph, label %.loopexit, !llvm.loop !48

.loopexit:                                        ; preds = %37, %.lr.ph24, %6, %.preheader
  %41 = call noundef i64 @_ZN7testing8internal5Timer7ElapsedEv(ptr noundef nonnull align 8 dereferenceable(8) %2)
  %42 = getelementptr inbounds i8, ptr %0, i64 128
  store i64 %41, ptr %42, align 8, !tbaa !49
  %43 = call noundef ptr @_ZN7testing8internal12UnitTestImpl21os_stack_trace_getterEv(ptr noundef nonnull align 8 dereferenceable(601) %7)
  %44 = load ptr, ptr %43, align 8, !tbaa !42
  %45 = getelementptr inbounds i8, ptr %44, i64 24
  %46 = load ptr, ptr %45, align 8
  call void %46(ptr noundef nonnull align 8 dereferenceable(8) %43)
  call void @_ZN7testing8internal35HandleExceptionsInMethodIfSupportedINS_9TestSuiteEvEET0_PT_MS4_FS3_vEPKc(ptr noundef nonnull %0, i64 ptrtoint (ptr @_ZN7testing9TestSuite20RunTearDownTestSuiteEv to i64), i64 0, ptr noundef nonnull @.str.127)
  %47 = load ptr, ptr %10, align 8, !tbaa !42
  %48 = getelementptr inbounds i8, ptr %47, i64 88
  %49 = load ptr, ptr %48, align 8
  call void %49(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(264) %0)
  %50 = load ptr, ptr %10, align 8, !tbaa !42
  %51 = getelementptr inbounds i8, ptr %50, i64 96
  %52 = load ptr, ptr %51, align 8
  call void %52(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(264) %0)
  call void @_ZN7testing8internal12UnitTestImpl22set_current_test_suiteEPNS_9TestSuiteE(ptr noundef nonnull align 8 dereferenceable(601) %7, ptr noundef null)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #4
  br label %53

53:                                               ; preds = %1, %.loopexit
  ret void
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7testing8internal12UnitTestImpl22set_current_test_suiteEPNS_9TestSuiteE(ptr noundef nonnull align 8 dereferenceable(601), ptr noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7testing8internal35HandleExceptionsInMethodIfSupportedINS_9TestSuiteEvEET0_PT_MS4_FS3_vEPKc(ptr noundef, i64, i64, ptr noundef) local_unnamed_addr #1

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

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #3 = { 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 #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, !27, i64 112}
!6 = !{!"_ZTSN7testing9TestSuiteE", !7, i64 8, !13, i64 40, !19, i64 48, !23, i64 72, !9, i64 96, !9, i64 104, !27, i64 112, !12, i64 120, !12, i64 128, !28, i64 136}
!7 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !8, i64 0, !12, i64 8, !10, i64 16}
!8 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !9, i64 0}
!9 = !{!"any pointer", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C++ TBAA"}
!12 = !{!"long", !10, i64 0}
!13 = !{!"_ZTSSt10unique_ptrIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt14default_deleteIS6_EE", !14, i64 0}
!14 = !{!"_ZTSSt15__uniq_ptr_dataIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt14default_deleteIS6_ELb1ELb1EE", !15, i64 0}
!15 = !{!"_ZTSSt15__uniq_ptr_implIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt14default_deleteIS6_EE", !16, i64 0}
!16 = !{!"_ZTSSt5tupleIJPKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt14default_deleteIS6_EEE", !17, i64 0}
!17 = !{!"_ZTSSt11_Tuple_implILm0EJPKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt14default_deleteIS6_EEE", !18, i64 0}
!18 = !{!"_ZTSSt10_Head_baseILm0EPKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEELb0EE", !9, i64 0}
!19 = !{!"_ZTSSt6vectorIPN7testing8TestInfoESaIS2_EE", !20, i64 0}
!20 = !{!"_ZTSSt12_Vector_baseIPN7testing8TestInfoESaIS2_EE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseIPN7testing8TestInfoESaIS2_EE12_Vector_implE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseIPN7testing8TestInfoESaIS2_EE17_Vector_impl_dataE", !9, i64 0, !9, i64 8, !9, i64 16}
!23 = !{!"_ZTSSt6vectorIiSaIiEE", !24, i64 0}
!24 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !25, i64 0}
!25 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !26, i64 0}
!26 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !9, i64 0, !9, i64 8, !9, i64 16}
!27 = !{!"bool", !10, i64 0}
!28 = !{!"_ZTSN7testing10TestResultE", !29, i64 0, !31, i64 56, !35, i64 80, !39, i64 104, !12, i64 112, !12, i64 120}
!29 = !{!"_ZTSN7testing8internal5MutexE", !30, i64 0}
!30 = !{!"_ZTSN7testing8internal9MutexBaseE", !10, i64 0, !27, i64 40, !12, i64 48}
!31 = !{!"_ZTSSt6vectorIN7testing14TestPartResultESaIS1_EE", !32, i64 0}
!32 = !{!"_ZTSSt12_Vector_baseIN7testing14TestPartResultESaIS1_EE", !33, i64 0}
!33 = !{!"_ZTSNSt12_Vector_baseIN7testing14TestPartResultESaIS1_EE12_Vector_implE", !34, i64 0}
!34 = !{!"_ZTSNSt12_Vector_baseIN7testing14TestPartResultESaIS1_EE17_Vector_impl_dataE", !9, i64 0, !9, i64 8, !9, i64 16}
!35 = !{!"_ZTSSt6vectorIN7testing12TestPropertyESaIS1_EE", !36, i64 0}
!36 = !{!"_ZTSSt12_Vector_baseIN7testing12TestPropertyESaIS1_EE", !37, i64 0}
!37 = !{!"_ZTSNSt12_Vector_baseIN7testing12TestPropertyESaIS1_EE12_Vector_implE", !38, i64 0}
!38 = !{!"_ZTSNSt12_Vector_baseIN7testing12TestPropertyESaIS1_EE17_Vector_impl_dataE", !9, i64 0, !9, i64 8, !9, i64 16}
!39 = !{!"int", !10, i64 0}
!40 = !{i8 0, i8 2}
!41 = !{}
!42 = !{!43, !43, i64 0}
!43 = !{!"vtable pointer", !11, i64 0}
!44 = !{!6, !12, i64 120}
!45 = !{!27, !27, i64 0}
!46 = distinct !{!46, !47}
!47 = !{!"llvm.loop.mustprogress"}
!48 = distinct !{!48, !47}
!49 = !{!6, !12, i64 128}


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