; LLVM IR from chronoxor/CppBenchmark :: source/benchmark (benchmark_threads)

; 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.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.__gnu_cxx::__normal_iterator.32" = type { ptr }
%"class.CppBenchmark::ContextThreads" = type <{ %"class.CppBenchmark::Context", i32, [4 x i8] }>
%"class.CppBenchmark::Context" = type { %"class.CppBenchmark::Phase", i32, i32, i32, ptr, ptr, %"class.std::shared_ptr" }
%"class.CppBenchmark::Phase" = type { ptr }
%"class.std::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Tuple_impl.13", %"struct.std::_Head_base.16" }
%"struct.std::_Tuple_impl.13" = type { %"struct.std::_Tuple_impl.14", %"struct.std::_Head_base.15" }
%"struct.std::_Tuple_impl.14" = type { %"struct.std::_Head_base" }
%"struct.std::_Head_base" = type { i32 }
%"struct.std::_Head_base.15" = type { i64 }
%"struct.std::_Head_base.16" = type { i64 }
%"class.CppBenchmark::Barrier" = type <{ %"class.std::mutex", %"class.std::condition_variable", i32, i32, i32, [4 x i8] }>
%"class.std::mutex" = type { %"class.std::__mutex_base" }
%"class.std::__mutex_base" = type { %union.pthread_mutex_t }
%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::condition_variable" = type { %"class.std::__condvar" }
%"class.std::__condvar" = type { %union.pthread_cond_t }
%union.pthread_cond_t = type { %struct.__pthread_cond_s }
%struct.__pthread_cond_s = type { %union.__atomic_wide_counter, %union.__atomic_wide_counter, [2 x i32], [2 x i32], i32, i32, [2 x i32] }
%union.__atomic_wide_counter = type { i64 }
%class.anon = type <{ ptr, ptr, ptr, %"class.std::tuple", i8, [3 x i8], i32, i8, [7 x i8], i64, i64, i32, [4 x i8] }>
%"class.__gnu_cxx::__normal_iterator.66" = type { ptr }
%"class.CppBenchmark::BenchmarkBase" = type { ptr, i8, %"class.std::__cxx11::basic_string", %"class.CppBenchmark::Settings", %"class.std::vector.17" }
%"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.CppBenchmark::Settings" = type <{ i32, i8, [3 x i8], i64, i64, %"class.std::vector", %"class.std::vector.3", %"class.std::vector.8", %"class.std::tuple", i8, [7 x i8] }>
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = 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.std::vector.3" = type { %"struct.std::_Vector_base.4" }
%"struct.std::_Vector_base.4" = type { %"struct.std::_Vector_base<std::tuple<int, int>, std::allocator<std::tuple<int, int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::tuple<int, int>, std::allocator<std::tuple<int, int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::tuple<int, int>, std::allocator<std::tuple<int, int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::tuple<int, int>, std::allocator<std::tuple<int, int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.8" = type { %"struct.std::_Vector_base.9" }
%"struct.std::_Vector_base.9" = type { %"struct.std::_Vector_base<std::tuple<int, int, int>, std::allocator<std::tuple<int, int, int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::tuple<int, int, int>, std::allocator<std::tuple<int, int, int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::tuple<int, int, int>, std::allocator<std::tuple<int, int, int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::tuple<int, int, int>, std::allocator<std::tuple<int, int, int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.17" = type { %"struct.std::_Vector_base.18" }
%"struct.std::_Vector_base.18" = type { %"struct.std::_Vector_base<std::shared_ptr<CppBenchmark::PhaseCore>, std::allocator<std::shared_ptr<CppBenchmark::PhaseCore>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::shared_ptr<CppBenchmark::PhaseCore>, std::allocator<std::shared_ptr<CppBenchmark::PhaseCore>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::shared_ptr<CppBenchmark::PhaseCore>, std::allocator<std::shared_ptr<CppBenchmark::PhaseCore>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::shared_ptr<CppBenchmark::PhaseCore>, std::allocator<std::shared_ptr<CppBenchmark::PhaseCore>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.CppBenchmark::BenchmarkThreads" = type { %"class.CppBenchmark::BenchmarkBase", %"class.std::vector.22", %"class.CppBenchmark::FixtureThreads" }
%"class.std::vector.22" = type { %"struct.std::_Vector_base.23" }
%"struct.std::_Vector_base.23" = type { %"struct.std::_Vector_base<std::thread, std::allocator<std::thread>>::_Vector_impl" }
%"struct.std::_Vector_base<std::thread, std::allocator<std::thread>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::thread, std::allocator<std::thread>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::thread, std::allocator<std::thread>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.CppBenchmark::FixtureThreads" = type { ptr }

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt6vectorIiSaIiEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24)) #0 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt6vectorISt5tupleIJiiiEESaIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24)) #0 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN12CppBenchmark16BenchmarkThreads6LaunchERiiRNS_15LauncherHandlerE(ptr noundef nonnull align 8 dereferenceable(224) %0, ptr noundef nonnull align 4 dereferenceable(4) %1, i32 noundef %2, ptr noundef nonnull align 8 dereferenceable(8) %3) unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %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 i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca ptr, align 8
  %16 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %17 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca %"class.__gnu_cxx::__normal_iterator.32", align 8
  %21 = alloca %"class.__gnu_cxx::__normal_iterator.32", align 8
  %22 = alloca ptr, align 8
  %23 = alloca %"class.CppBenchmark::ContextThreads", align 8
  %24 = alloca ptr, align 8
  %25 = alloca i32, align 4
  %26 = alloca %"class.std::tuple", align 8
  %27 = alloca i8, align 1
  %28 = alloca i8, align 1
  %29 = alloca i64, align 8
  %30 = alloca i64, align 8
  %31 = alloca %"class.CppBenchmark::Barrier", align 8
  %32 = alloca i32, align 4
  %33 = alloca %class.anon, align 8
  %34 = alloca ptr, align 8
  %35 = alloca %"class.__gnu_cxx::__normal_iterator.66", align 8
  %36 = alloca %"class.__gnu_cxx::__normal_iterator.66", align 8
  %37 = alloca ptr, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store i32 %2, ptr %7, align 4, !tbaa !9
  store ptr %3, ptr %8, align 8, !tbaa !5
  %38 = load ptr, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  store i32 1, ptr %9, align 4, !tbaa !9
  br label %39

39:                                               ; preds = %243, %4
  %40 = load i32, ptr %9, align 4, !tbaa !9
  %41 = getelementptr inbounds %"class.CppBenchmark::BenchmarkBase", ptr %38, i32 0, i32 3
  %42 = call noundef i32 @_ZNK12CppBenchmark8Settings8attemptsEv(ptr noundef nonnull align 8 dereferenceable(121) %41) #7
  %43 = icmp sle i32 %40, %42
  br i1 %43, label %45, label %44

44:                                               ; preds = %39
  store i32 2, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  br label %246

45:                                               ; preds = %39
  %46 = getelementptr inbounds %"class.CppBenchmark::BenchmarkBase", ptr %38, i32 0, i32 3
  %47 = getelementptr inbounds %"class.CppBenchmark::Settings", ptr %46, i32 0, i32 5
  %48 = call noundef zeroext i1 @_ZNKSt6vectorIiSaIiEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %47) #7
  br i1 %48, label %49, label %54

49:                                               ; preds = %45
  %50 = getelementptr inbounds %"class.CppBenchmark::BenchmarkBase", ptr %38, i32 0, i32 3
  %51 = getelementptr inbounds %"class.CppBenchmark::Settings", ptr %50, i32 0, i32 5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  %52 = call noundef i32 @_ZN12CppBenchmark6System16CpuPhysicalCoresEv()
  store i32 %52, ptr %11, align 4, !tbaa !9
  %53 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEE12emplace_backIJiEEERiDpOT_(ptr noundef nonnull align 8 dereferenceable(24) %51, ptr noundef nonnull align 4 dereferenceable(4) %11)
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  br label %54

54:                                               ; preds = %49, %45
  %55 = getelementptr inbounds %"class.CppBenchmark::BenchmarkBase", ptr %38, i32 0, i32 3
  %56 = getelementptr inbounds %"class.CppBenchmark::Settings", ptr %55, i32 0, i32 7
  %57 = call noundef zeroext i1 @_ZNKSt6vectorISt5tupleIJiiiEESaIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %56) #7
  br i1 %57, label %58, label %62

58:                                               ; preds = %54
  %59 = getelementptr inbounds %"class.CppBenchmark::BenchmarkBase", ptr %38, i32 0, i32 3
  %60 = getelementptr inbounds %"class.CppBenchmark::Settings", ptr %59, i32 0, i32 7
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  store i32 -1, ptr %12, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  store i32 -1, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  store i32 -1, ptr %14, align 4, !tbaa !9
  %61 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorISt5tupleIJiiiEESaIS1_EE12emplace_backIJiiiEEERS1_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %60, ptr noundef nonnull align 4 dereferenceable(4) %12, ptr noundef nonnull align 4 dereferenceable(4) %13, ptr noundef nonnull align 4 dereferenceable(4) %14)
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  br label %62

62:                                               ; preds = %58, %54
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
  %63 = getelementptr inbounds %"class.CppBenchmark::BenchmarkBase", ptr %38, i32 0, i32 3
  %64 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK12CppBenchmark8Settings7threadsEv(ptr noundef nonnull align 8 dereferenceable(121) %63) #7
  store ptr %64, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #7
  %65 = load ptr, ptr %15, align 8, !tbaa !5
  %66 = call ptr @_ZNKSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %65) #7
  %67 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %16, i32 0, i32 0
  store ptr %66, ptr %67, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  %68 = load ptr, ptr %15, align 8, !tbaa !5
  %69 = call ptr @_ZNKSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %68) #7
  %70 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %17, i32 0, i32 0
  store ptr %69, ptr %70, align 8
  br label %71

71:                                               ; preds = %240, %62
  %72 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(8) %17) #7
  br i1 %72, label %74, label %73

73:                                               ; preds = %71
  store i32 5, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  br label %242

74:                                               ; preds = %71
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #7
  %75 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #7
  store ptr %75, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #7
  %76 = getelementptr inbounds %"class.CppBenchmark::BenchmarkBase", ptr %38, i32 0, i32 3
  %77 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK12CppBenchmark8Settings6paramsEv(ptr noundef nonnull align 8 dereferenceable(121) %76) #7
  store ptr %77, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #7
  %78 = load ptr, ptr %19, align 8, !tbaa !5
  %79 = call ptr @_ZNKSt6vectorISt5tupleIJiiiEESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %78) #7
  %80 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.32", ptr %20, i32 0, i32 0
  store ptr %79, ptr %80, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #7
  %81 = load ptr, ptr %19, align 8, !tbaa !5
  %82 = call ptr @_ZNKSt6vectorISt5tupleIJiiiEESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %81) #7
  %83 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.32", ptr %21, i32 0, i32 0
  store ptr %82, ptr %83, align 8
  br label %84

84:                                               ; preds = %230, %74
  %85 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKSt5tupleIJiiiEESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %20, ptr noundef nonnull align 8 dereferenceable(8) %21) #7
  br i1 %85, label %87, label %86

86:                                               ; preds = %84
  store i32 7, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  br label %239

87:                                               ; preds = %84
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #7
  %88 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKSt5tupleIJiiiEESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %20) #7
  store ptr %88, ptr %22, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 64, ptr %23) #7
  %89 = load ptr, ptr %18, align 8, !tbaa !5
  %90 = load i32, ptr %89, align 4, !tbaa !9
  %91 = load ptr, ptr %22, align 8, !tbaa !5
  %92 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm0EJiiiEERKNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERKS4_(ptr noundef nonnull align 4 dereferenceable(12) %91) #7
  %93 = load i32, ptr %92, align 4, !tbaa !9
  %94 = load ptr, ptr %22, align 8, !tbaa !5
  %95 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm1EJiiiEERKNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERKS4_(ptr noundef nonnull align 4 dereferenceable(12) %94) #7
  %96 = load i32, ptr %95, align 4, !tbaa !9
  %97 = load ptr, ptr %22, align 8, !tbaa !5
  %98 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm2EJiiiEERKNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERKS4_(ptr noundef nonnull align 4 dereferenceable(12) %97) #7
  %99 = load i32, ptr %98, align 4, !tbaa !9
  call void @_ZN12CppBenchmark14ContextThreadsC2Eiiii(ptr noundef nonnull align 8 dereferenceable(60) %23, i32 noundef %90, i32 noundef %93, i32 noundef %96, i32 noundef %99) #7
  invoke void @_ZN12CppBenchmark13BenchmarkBase20InitBenchmarkContextERNS_7ContextE(ptr noundef nonnull align 8 dereferenceable(200) %38, ptr noundef nonnull align 8 dereferenceable(56) %23)
          to label %100 unwind label %143

100:                                              ; preds = %87
  call void @llvm.lifetime.start.p0(i64 24, ptr %26) #7
  %101 = getelementptr inbounds %"class.CppBenchmark::BenchmarkBase", ptr %38, i32 0, i32 3
  %102 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK12CppBenchmark8Settings7latencyEv(ptr noundef nonnull align 8 dereferenceable(121) %101) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %26, ptr align 8 %102, i64 24, i1 false)
  call void @llvm.lifetime.start.p0(i64 1, ptr %27) #7
  %103 = getelementptr inbounds %"class.CppBenchmark::BenchmarkBase", ptr %38, i32 0, i32 3
  %104 = call noundef zeroext i1 @_ZNK12CppBenchmark8Settings12latency_autoEv(ptr noundef nonnull align 8 dereferenceable(121) %103) #7
  %105 = zext i1 %104 to i8
  store i8 %105, ptr %27, align 1, !tbaa !11
  %106 = load ptr, ptr %8, align 8, !tbaa !5
  %107 = load ptr, ptr %6, align 8, !tbaa !5
  %108 = load i32, ptr %107, align 4, !tbaa !9
  %109 = add nsw i32 %108, 1
  store i32 %109, ptr %107, align 4, !tbaa !9
  %110 = load i32, ptr %7, align 4, !tbaa !9
  %111 = load i32, ptr %9, align 4, !tbaa !9
  %112 = load ptr, ptr %106, align 8, !tbaa !13
  %113 = getelementptr inbounds ptr, ptr %112, i64 2
  %114 = load ptr, ptr %113, align 8
  invoke void %114(ptr noundef nonnull align 8 dereferenceable(8) %106, i32 noundef %109, i32 noundef %110, ptr noundef nonnull align 8 dereferenceable(200) %38, ptr noundef nonnull align 8 dereferenceable(56) %23, i32 noundef %111)
          to label %115 unwind label %147

115:                                              ; preds = %100
  %116 = load ptr, ptr %38, align 8, !tbaa !13
  %117 = getelementptr i8, ptr %116, i64 -24
  %118 = load i64, ptr %117, align 8
  %119 = getelementptr inbounds i8, ptr %38, i64 %118
  %120 = load ptr, ptr %119, align 8, !tbaa !13
  %121 = getelementptr inbounds ptr, ptr %120, i64 2
  %122 = load ptr, ptr %121, align 8
  invoke void %122(ptr noundef nonnull align 8 dereferenceable(8) %119, ptr noundef nonnull align 8 dereferenceable(60) %23)
          to label %123 unwind label %147

123:                                              ; preds = %115
  call void @llvm.lifetime.start.p0(i64 1, ptr %28) #7
  %124 = getelementptr inbounds %"class.CppBenchmark::BenchmarkBase", ptr %38, i32 0, i32 3
  %125 = call noundef zeroext i1 @_ZNK12CppBenchmark8Settings8infiniteEv(ptr noundef nonnull align 8 dereferenceable(121) %124) #7
  %126 = zext i1 %125 to i8
  store i8 %126, ptr %28, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #7
  %127 = getelementptr inbounds %"class.CppBenchmark::BenchmarkBase", ptr %38, i32 0, i32 3
  %128 = call noundef i64 @_ZNK12CppBenchmark8Settings8durationEv(ptr noundef nonnull align 8 dereferenceable(121) %127) #7
  store i64 %128, ptr %29, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #7
  %129 = getelementptr inbounds %"class.CppBenchmark::BenchmarkBase", ptr %38, i32 0, i32 3
  %130 = call noundef i64 @_ZNK12CppBenchmark8Settings10operationsEv(ptr noundef nonnull align 8 dereferenceable(121) %129) #7
  store i64 %130, ptr %30, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 104, ptr %31) #7
  %131 = load ptr, ptr %18, align 8, !tbaa !5
  %132 = load i32, ptr %131, align 4, !tbaa !9
  call void @_ZN12CppBenchmark7BarrierC1Ei(ptr noundef nonnull align 8 dereferenceable(100) %31, i32 noundef %132) #7
  %133 = getelementptr inbounds %"class.CppBenchmark::Context", ptr %23, i32 0, i32 4
  %134 = load ptr, ptr %133, align 8, !tbaa !17
  call void @_ZN12CppBenchmark9PhaseCore22StartCollectingMetricsEv(ptr noundef nonnull align 8 dereferenceable(944) %134) #7
  %135 = getelementptr inbounds %"class.CppBenchmark::Context", ptr %23, i32 0, i32 5
  %136 = load ptr, ptr %135, align 8, !tbaa !23
  call void @_ZN12CppBenchmark12PhaseMetrics13AddOperationsEl(ptr noundef nonnull align 8 dereferenceable(412) %136, i64 noundef 1) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #7
  store i32 0, ptr %32, align 4, !tbaa !9
  br label %137

137:                                              ; preds = %176, %123
  %138 = load i32, ptr %32, align 4, !tbaa !9
  %139 = load ptr, ptr %18, align 8, !tbaa !5
  %140 = load i32, ptr %139, align 4, !tbaa !9
  %141 = icmp slt i32 %138, %140
  br i1 %141, label %151, label %142

142:                                              ; preds = %137
  store i32 9, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #7
  br label %183

143:                                              ; preds = %87
  %144 = landingpad { ptr, i32 }
          cleanup
  %145 = extractvalue { ptr, i32 } %144, 0
  store ptr %145, ptr %24, align 8
  %146 = extractvalue { ptr, i32 } %144, 1
  store i32 %146, ptr %25, align 4
  br label %238

147:                                              ; preds = %115, %100
  %148 = landingpad { ptr, i32 }
          cleanup
  %149 = extractvalue { ptr, i32 } %148, 0
  store ptr %149, ptr %24, align 8
  %150 = extractvalue { ptr, i32 } %148, 1
  store i32 %150, ptr %25, align 4
  br label %237

151:                                              ; preds = %137
  %152 = getelementptr inbounds %"class.CppBenchmark::BenchmarkThreads", ptr %38, i32 0, i32 1
  call void @llvm.lifetime.start.p0(i64 88, ptr %33) #7
  %153 = getelementptr inbounds %class.anon, ptr %33, i32 0, i32 0
  store ptr %38, ptr %153, align 8, !tbaa !24
  %154 = getelementptr inbounds %class.anon, ptr %33, i32 0, i32 1
  store ptr %31, ptr %154, align 8, !tbaa !5
  %155 = getelementptr inbounds %class.anon, ptr %33, i32 0, i32 2
  store ptr %23, ptr %155, align 8, !tbaa !5
  %156 = getelementptr inbounds %class.anon, ptr %33, i32 0, i32 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %156, ptr align 8 %26, i64 24, i1 false)
  %157 = getelementptr inbounds %class.anon, ptr %33, i32 0, i32 4
  %158 = load i8, ptr %27, align 1, !tbaa !11, !range !33, !noundef !34
  %159 = trunc i8 %158 to i1
  %160 = zext i1 %159 to i8
  store i8 %160, ptr %157, align 8, !tbaa !35
  %161 = getelementptr inbounds %class.anon, ptr %33, i32 0, i32 6
  %162 = load ptr, ptr %18, align 8, !tbaa !5
  %163 = load i32, ptr %162, align 4, !tbaa !9
  store i32 %163, ptr %161, align 4, !tbaa !36
  %164 = getelementptr inbounds %class.anon, ptr %33, i32 0, i32 7
  %165 = load i8, ptr %28, align 1, !tbaa !11, !range !33, !noundef !34
  %166 = trunc i8 %165 to i1
  %167 = zext i1 %166 to i8
  store i8 %167, ptr %164, align 8, !tbaa !37
  %168 = getelementptr inbounds %class.anon, ptr %33, i32 0, i32 9
  %169 = load i64, ptr %30, align 8, !tbaa !15
  store i64 %169, ptr %168, align 8, !tbaa !38
  %170 = getelementptr inbounds %class.anon, ptr %33, i32 0, i32 10
  %171 = load i64, ptr %29, align 8, !tbaa !15
  store i64 %171, ptr %170, align 8, !tbaa !39
  %172 = getelementptr inbounds %class.anon, ptr %33, i32 0, i32 11
  %173 = load i32, ptr %32, align 4, !tbaa !9
  store i32 %173, ptr %172, align 8, !tbaa !40
  %174 = invoke noundef nonnull align 8 dereferenceable(8) ptr @"_ZNSt6vectorISt6threadSaIS0_EE12emplace_backIJZN12CppBenchmark16BenchmarkThreads6LaunchERiiRNS4_15LauncherHandlerEE3$_0EEERS0_DpOT_"(ptr noundef nonnull align 8 dereferenceable(24) %152, ptr noundef nonnull align 8 dereferenceable(84) %33)
          to label %175 unwind label %179

175:                                              ; preds = %151
  call void @llvm.lifetime.end.p0(i64 88, ptr %33) #7
  br label %176

176:                                              ; preds = %175
  %177 = load i32, ptr %32, align 4, !tbaa !9
  %178 = add nsw i32 %177, 1
  store i32 %178, ptr %32, align 4, !tbaa !9
  br label %137, !llvm.loop !41

179:                                              ; preds = %151
  %180 = landingpad { ptr, i32 }
          cleanup
  %181 = extractvalue { ptr, i32 } %180, 0
  store ptr %181, ptr %24, align 8
  %182 = extractvalue { ptr, i32 } %180, 1
  store i32 %182, ptr %25, align 4
  call void @llvm.lifetime.end.p0(i64 88, ptr %33) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #7
  br label %236

183:                                              ; preds = %142
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #7
  %184 = getelementptr inbounds %"class.CppBenchmark::BenchmarkThreads", ptr %38, i32 0, i32 1
  store ptr %184, ptr %34, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #7
  %185 = load ptr, ptr %34, align 8, !tbaa !5
  %186 = call ptr @_ZNSt6vectorISt6threadSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %185) #7
  %187 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.66", ptr %35, i32 0, i32 0
  store ptr %186, ptr %187, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #7
  %188 = load ptr, ptr %34, align 8, !tbaa !5
  %189 = call ptr @_ZNSt6vectorISt6threadSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %188) #7
  %190 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.66", ptr %36, i32 0, i32 0
  store ptr %189, ptr %190, align 8
  br label %191

191:                                              ; preds = %198, %183
  %192 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt6threadSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %35, ptr noundef nonnull align 8 dereferenceable(8) %36) #7
  br i1 %192, label %194, label %193

193:                                              ; preds = %191
  store i32 12, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #7
  br label %204

194:                                              ; preds = %191
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #7
  %195 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt6threadSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %35) #7
  store ptr %195, ptr %37, align 8, !tbaa !5
  %196 = load ptr, ptr %37, align 8, !tbaa !5
  invoke void @_ZNSt6thread4joinEv(ptr noundef nonnull align 8 dereferenceable(8) %196)
          to label %197 unwind label %200

197:                                              ; preds = %194
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #7
  br label %198

198:                                              ; preds = %197
  %199 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt6threadSt6vectorIS1_SaIS1_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %35) #7
  br label %191

200:                                              ; preds = %194
  %201 = landingpad { ptr, i32 }
          cleanup
  %202 = extractvalue { ptr, i32 } %201, 0
  store ptr %202, ptr %24, align 8
  %203 = extractvalue { ptr, i32 } %201, 1
  store i32 %203, ptr %25, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #7
  br label %236

204:                                              ; preds = %193
  %205 = getelementptr inbounds %"class.CppBenchmark::BenchmarkThreads", ptr %38, i32 0, i32 1
  call void @_ZNSt6vectorISt6threadSaIS0_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %205) #7
  %206 = getelementptr inbounds %"class.CppBenchmark::Context", ptr %23, i32 0, i32 4
  %207 = load ptr, ptr %206, align 8, !tbaa !17
  call void @_ZN12CppBenchmark9PhaseCore21StopCollectingMetricsEv(ptr noundef nonnull align 8 dereferenceable(944) %207) #7
  %208 = load ptr, ptr %38, align 8, !tbaa !13
  %209 = getelementptr i8, ptr %208, i64 -24
  %210 = load i64, ptr %209, align 8
  %211 = getelementptr inbounds i8, ptr %38, i64 %210
  %212 = load ptr, ptr %211, align 8, !tbaa !13
  %213 = getelementptr inbounds ptr, ptr %212, i64 3
  %214 = load ptr, ptr %213, align 8
  invoke void %214(ptr noundef nonnull align 8 dereferenceable(8) %211, ptr noundef nonnull align 8 dereferenceable(60) %23)
          to label %215 unwind label %232

215:                                              ; preds = %204
  %216 = load ptr, ptr %8, align 8, !tbaa !5
  %217 = load ptr, ptr %6, align 8, !tbaa !5
  %218 = load i32, ptr %217, align 4, !tbaa !9
  %219 = load i32, ptr %7, align 4, !tbaa !9
  %220 = load i32, ptr %9, align 4, !tbaa !9
  %221 = load ptr, ptr %216, align 8, !tbaa !13
  %222 = getelementptr inbounds ptr, ptr %221, i64 3
  %223 = load ptr, ptr %222, align 8
  invoke void %223(ptr noundef nonnull align 8 dereferenceable(8) %216, i32 noundef %218, i32 noundef %219, ptr noundef nonnull align 8 dereferenceable(200) %38, ptr noundef nonnull align 8 dereferenceable(56) %23, i32 noundef %220)
          to label %224 unwind label %232

224:                                              ; preds = %215
  %225 = getelementptr inbounds %"class.CppBenchmark::Context", ptr %23, i32 0, i32 4
  %226 = load ptr, ptr %225, align 8, !tbaa !17
  invoke void @_ZN12CppBenchmark9PhaseCore12MergeMetricsEv(ptr noundef nonnull align 8 dereferenceable(944) %226)
          to label %227 unwind label %232

227:                                              ; preds = %224
  %228 = getelementptr inbounds %"class.CppBenchmark::Context", ptr %23, i32 0, i32 4
  %229 = load ptr, ptr %228, align 8, !tbaa !17
  call void @_ZN12CppBenchmark9PhaseCore12ResetMetricsEv(ptr noundef nonnull align 8 dereferenceable(944) %229) #7
  call void @_ZN12CppBenchmark7BarrierD2Ev(ptr noundef nonnull align 8 dereferenceable(100) %31) #7
  call void @llvm.lifetime.end.p0(i64 104, ptr %31) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %28) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %27) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %26) #7
  call void @_ZN12CppBenchmark7ContextD2Ev(ptr noundef nonnull align 8 dereferenceable(60) %23) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #7
  br label %230

230:                                              ; preds = %227
  %231 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKSt5tupleIJiiiEESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %20) #7
  br label %84

232:                                              ; preds = %224, %215, %204
  %233 = landingpad { ptr, i32 }
          cleanup
  %234 = extractvalue { ptr, i32 } %233, 0
  store ptr %234, ptr %24, align 8
  %235 = extractvalue { ptr, i32 } %233, 1
  store i32 %235, ptr %25, align 4
  br label %236

236:                                              ; preds = %232, %200, %179
  call void @_ZN12CppBenchmark7BarrierD2Ev(ptr noundef nonnull align 8 dereferenceable(100) %31) #7
  call void @llvm.lifetime.end.p0(i64 104, ptr %31) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %28) #7
  br label %237

237:                                              ; preds = %236, %147
  call void @llvm.lifetime.end.p0(i64 1, ptr %27) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %26) #7
  br label %238

238:                                              ; preds = %237, %143
  call void @_ZN12CppBenchmark7ContextD2Ev(ptr noundef nonnull align 8 dereferenceable(60) %23) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  br label %251

239:                                              ; preds = %86
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
  br label %240

240:                                              ; preds = %239
  %241 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #7
  br label %71

242:                                              ; preds = %73
  br label %243

243:                                              ; preds = %242
  %244 = load i32, ptr %9, align 4, !tbaa !9
  %245 = add nsw i32 %244, 1
  store i32 %245, ptr %9, align 4, !tbaa !9
  br label %39, !llvm.loop !43

246:                                              ; preds = %44
  %247 = getelementptr inbounds %"class.CppBenchmark::BenchmarkBase", ptr %38, i32 0, i32 4
  call void @_ZN12CppBenchmark13BenchmarkBase22UpdateBenchmarkThreadsERSt6vectorISt10shared_ptrINS_9PhaseCoreEESaIS4_EE(ptr noundef nonnull align 8 dereferenceable(24) %247)
  %248 = getelementptr inbounds %"class.CppBenchmark::BenchmarkBase", ptr %38, i32 0, i32 4
  call void @_ZN12CppBenchmark13BenchmarkBase20UpdateBenchmarkNamesERSt6vectorISt10shared_ptrINS_9PhaseCoreEESaIS4_EE(ptr noundef nonnull align 8 dereferenceable(24) %248)
  %249 = getelementptr inbounds %"class.CppBenchmark::BenchmarkBase", ptr %38, i32 0, i32 4
  call void @_ZN12CppBenchmark13BenchmarkBase25UpdateBenchmarkOperationsERSt6vectorISt10shared_ptrINS_9PhaseCoreEESaIS4_EE(ptr noundef nonnull align 8 dereferenceable(24) %249)
  %250 = getelementptr inbounds %"class.CppBenchmark::BenchmarkBase", ptr %38, i32 0, i32 1
  store i8 1, ptr %250, align 8, !tbaa !44
  ret void

251:                                              ; preds = %238
  %252 = load ptr, ptr %24, align 8
  %253 = load i32, ptr %25, align 4
  %254 = insertvalue { ptr, i32 } poison, ptr %252, 0
  %255 = insertvalue { ptr, i32 } %254, i32 %253, 1
  resume { ptr, i32 } %255
}

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

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

declare noundef i32 @_ZN12CppBenchmark6System16CpuPhysicalCoresEv() #3

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorISt5tupleIJiiiEESaIS1_EE12emplace_backIJiiiEEERS1_DpOT_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #1 align 2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPKiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #4

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPKSt5tupleIJiiiEESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #4

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm0EJiiiEERKNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERKS4_(ptr noundef nonnull align 4 dereferenceable(12)) #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm1EJiiiEERKNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERKS4_(ptr noundef nonnull align 4 dereferenceable(12)) #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm2EJiiiEERKNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERKS4_(ptr noundef nonnull align 4 dereferenceable(12)) #0

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

declare void @_ZN12CppBenchmark13BenchmarkBase20InitBenchmarkContextERNS_7ContextE(ptr noundef nonnull align 8 dereferenceable(200), ptr noundef nonnull align 8 dereferenceable(56)) #3

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK12CppBenchmark8Settings12latency_autoEv(ptr noundef nonnull align 8 dereferenceable(121)) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK12CppBenchmark8Settings8infiniteEv(ptr noundef nonnull align 8 dereferenceable(121)) #0 align 2

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

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

; Function Attrs: nounwind
declare void @_ZN12CppBenchmark7BarrierC1Ei(ptr noundef nonnull align 8 dereferenceable(100), i32 noundef) unnamed_addr #6

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN12CppBenchmark12PhaseMetrics13AddOperationsEl(ptr noundef nonnull align 8 dereferenceable(412), i64 noundef) #0 align 2

; Function Attrs: mustprogress uwtable
declare hidden noundef nonnull align 8 dereferenceable(8) ptr @"_ZNSt6vectorISt6threadSaIS0_EE12emplace_backIJZN12CppBenchmark16BenchmarkThreads6LaunchERiiRNS4_15LauncherHandlerEE3$_0EEERS0_DpOT_"(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(84)) #1 align 2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPSt6threadSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #4

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

declare void @_ZNSt6thread4joinEv(ptr noundef nonnull align 8 dereferenceable(8)) #3

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

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

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

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

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

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

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

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

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

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

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

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

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 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 #5 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { 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 #7 = { 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 = !{!14, !14, i64 0}
!14 = !{!"vtable pointer", !8, i64 0}
!15 = !{!16, !16, i64 0}
!16 = !{!"long", !7, i64 0}
!17 = !{!18, !6, i64 24}
!18 = !{!"_ZTSN12CppBenchmark7ContextE", !19, i64 0, !10, i64 8, !10, i64 12, !10, i64 16, !6, i64 24, !6, i64 32, !20, i64 40}
!19 = !{!"_ZTSN12CppBenchmark5PhaseE"}
!20 = !{!"_ZTSSt10shared_ptrISt6atomicIbEE", !21, i64 0}
!21 = !{!"_ZTSSt12__shared_ptrISt6atomicIbELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !22, i64 8}
!22 = !{!"_ZTSSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0}
!23 = !{!18, !6, i64 32}
!24 = !{!25, !6, i64 0}
!25 = !{!"_ZTSZN12CppBenchmark16BenchmarkThreads6LaunchERiiRNS_15LauncherHandlerEE3$_0", !6, i64 0, !6, i64 8, !6, i64 16, !26, i64 24, !12, i64 48, !10, i64 52, !12, i64 56, !16, i64 64, !16, i64 72, !10, i64 80}
!26 = !{!"_ZTSSt5tupleIJlliEE", !27, i64 0}
!27 = !{!"_ZTSSt11_Tuple_implILm0EJlliEE", !28, i64 0, !32, i64 16}
!28 = !{!"_ZTSSt11_Tuple_implILm1EJliEE", !29, i64 0, !31, i64 8}
!29 = !{!"_ZTSSt11_Tuple_implILm2EJiEE", !30, i64 0}
!30 = !{!"_ZTSSt10_Head_baseILm2EiLb0EE", !10, i64 0}
!31 = !{!"_ZTSSt10_Head_baseILm1ElLb0EE", !16, i64 0}
!32 = !{!"_ZTSSt10_Head_baseILm0ElLb0EE", !16, i64 0}
!33 = !{i8 0, i8 2}
!34 = !{}
!35 = !{!25, !12, i64 48}
!36 = !{!25, !10, i64 52}
!37 = !{!25, !12, i64 56}
!38 = !{!25, !16, i64 64}
!39 = !{!25, !16, i64 72}
!40 = !{!25, !10, i64 80}
!41 = distinct !{!41, !42}
!42 = !{!"llvm.loop.mustprogress"}
!43 = distinct !{!43, !42}
!44 = !{!45, !12, i64 8}
!45 = !{!"_ZTSN12CppBenchmark13BenchmarkBaseE", !12, i64 8, !46, i64 16, !48, i64 48, !61, i64 176}
!46 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !47, i64 0, !16, i64 8, !7, i64 16}
!47 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!48 = !{!"_ZTSN12CppBenchmark8SettingsE", !10, i64 0, !12, i64 4, !16, i64 8, !16, i64 16, !49, i64 24, !53, i64 48, !57, i64 72, !26, i64 96, !12, i64 120}
!49 = !{!"_ZTSSt6vectorIiSaIiEE", !50, i64 0}
!50 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !51, i64 0}
!51 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !52, i64 0}
!52 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!53 = !{!"_ZTSSt6vectorISt5tupleIJiiEESaIS1_EE", !54, i64 0}
!54 = !{!"_ZTSSt12_Vector_baseISt5tupleIJiiEESaIS1_EE", !55, i64 0}
!55 = !{!"_ZTSNSt12_Vector_baseISt5tupleIJiiEESaIS1_EE12_Vector_implE", !56, i64 0}
!56 = !{!"_ZTSNSt12_Vector_baseISt5tupleIJiiEESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!57 = !{!"_ZTSSt6vectorISt5tupleIJiiiEESaIS1_EE", !58, i64 0}
!58 = !{!"_ZTSSt12_Vector_baseISt5tupleIJiiiEESaIS1_EE", !59, i64 0}
!59 = !{!"_ZTSNSt12_Vector_baseISt5tupleIJiiiEESaIS1_EE12_Vector_implE", !60, i64 0}
!60 = !{!"_ZTSNSt12_Vector_baseISt5tupleIJiiiEESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!61 = !{!"_ZTSSt6vectorISt10shared_ptrIN12CppBenchmark9PhaseCoreEESaIS3_EE", !62, i64 0}
!62 = !{!"_ZTSSt12_Vector_baseISt10shared_ptrIN12CppBenchmark9PhaseCoreEESaIS3_EE", !63, i64 0}
!63 = !{!"_ZTSNSt12_Vector_baseISt10shared_ptrIN12CppBenchmark9PhaseCoreEESaIS3_EE12_Vector_implE", !64, i64 0}
!64 = !{!"_ZTSNSt12_Vector_baseISt10shared_ptrIN12CppBenchmark9PhaseCoreEESaIS3_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}


; 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.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.__gnu_cxx::__normal_iterator.32" = type { ptr }
%"class.CppBenchmark::ContextThreads" = type <{ %"class.CppBenchmark::Context", i32, [4 x i8] }>
%"class.CppBenchmark::Context" = type { %"class.CppBenchmark::Phase", i32, i32, i32, ptr, ptr, %"class.std::shared_ptr" }
%"class.CppBenchmark::Phase" = type { ptr }
%"class.std::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Tuple_impl.13", %"struct.std::_Head_base.16" }
%"struct.std::_Tuple_impl.13" = type { %"struct.std::_Tuple_impl.14", %"struct.std::_Head_base.15" }
%"struct.std::_Tuple_impl.14" = type { %"struct.std::_Head_base" }
%"struct.std::_Head_base" = type { i32 }
%"struct.std::_Head_base.15" = type { i64 }
%"struct.std::_Head_base.16" = type { i64 }
%"class.CppBenchmark::Barrier" = type <{ %"class.std::mutex", %"class.std::condition_variable", i32, i32, i32, [4 x i8] }>
%"class.std::mutex" = type { %"class.std::__mutex_base" }
%"class.std::__mutex_base" = type { %union.pthread_mutex_t }
%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::condition_variable" = type { %"class.std::__condvar" }
%"class.std::__condvar" = type { %union.pthread_cond_t }
%union.pthread_cond_t = type { %struct.__pthread_cond_s }
%struct.__pthread_cond_s = type { %union.__atomic_wide_counter, %union.__atomic_wide_counter, [2 x i32], [2 x i32], i32, i32, [2 x i32] }
%union.__atomic_wide_counter = type { i64 }
%class.anon = type <{ ptr, ptr, ptr, %"class.std::tuple", i8, [3 x i8], i32, i8, [7 x i8], i64, i64, i32, [4 x i8] }>
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"class.__gnu_cxx::__normal_iterator.66" = type { ptr }

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt6vectorIiSaIiEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt6vectorISt5tupleIJiiiEESaIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN12CppBenchmark16BenchmarkThreads6LaunchERiiRNS_15LauncherHandlerE(ptr noundef nonnull align 8 dereferenceable(224) %0, ptr nocapture noundef nonnull align 4 dereferenceable(4) %1, i32 noundef %2, ptr noundef nonnull align 8 dereferenceable(8) %3) unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %10 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %11 = alloca %"class.__gnu_cxx::__normal_iterator.32", align 8
  %12 = alloca %"class.__gnu_cxx::__normal_iterator.32", align 8
  %13 = alloca %"class.CppBenchmark::ContextThreads", align 8
  %.sroa.0 = alloca %"struct.std::_Tuple_impl", align 8
  %14 = alloca %"class.CppBenchmark::Barrier", align 8
  %15 = alloca %class.anon, align 8
  %16 = alloca %"class.__gnu_cxx::__normal_iterator.66", align 8
  %17 = alloca %"class.__gnu_cxx::__normal_iterator.66", align 8
  %18 = getelementptr inbounds i8, ptr %0, i64 48
  %19 = tail call noundef i32 @_ZNK12CppBenchmark8Settings8attemptsEv(ptr noundef nonnull align 8 dereferenceable(121) %18) #7
  %.not51 = icmp slt i32 %19, 1
  br i1 %.not51, label %._crit_edge55, label %.lr.ph54

.lr.ph54:                                         ; preds = %4
  %20 = getelementptr inbounds i8, ptr %0, i64 72
  %21 = getelementptr inbounds i8, ptr %0, i64 120
  %22 = getelementptr inbounds i8, ptr %13, i64 24
  %23 = getelementptr inbounds i8, ptr %13, i64 32
  %24 = getelementptr inbounds i8, ptr %0, i64 200
  %25 = getelementptr inbounds i8, ptr %15, i64 8
  %26 = getelementptr inbounds i8, ptr %15, i64 16
  %27 = getelementptr inbounds i8, ptr %15, i64 24
  %28 = getelementptr inbounds i8, ptr %15, i64 48
  %29 = getelementptr inbounds i8, ptr %15, i64 52
  %30 = getelementptr inbounds i8, ptr %15, i64 56
  %31 = getelementptr inbounds i8, ptr %15, i64 64
  %32 = getelementptr inbounds i8, ptr %15, i64 72
  %33 = getelementptr inbounds i8, ptr %15, i64 80
  br label %36

._crit_edge55:                                    ; preds = %._crit_edge50, %4
  %34 = getelementptr inbounds i8, ptr %0, i64 176
  call void @_ZN12CppBenchmark13BenchmarkBase22UpdateBenchmarkThreadsERSt6vectorISt10shared_ptrINS_9PhaseCoreEESaIS4_EE(ptr noundef nonnull align 8 dereferenceable(24) %34)
  call void @_ZN12CppBenchmark13BenchmarkBase20UpdateBenchmarkNamesERSt6vectorISt10shared_ptrINS_9PhaseCoreEESaIS4_EE(ptr noundef nonnull align 8 dereferenceable(24) %34)
  call void @_ZN12CppBenchmark13BenchmarkBase25UpdateBenchmarkOperationsERSt6vectorISt10shared_ptrINS_9PhaseCoreEESaIS4_EE(ptr noundef nonnull align 8 dereferenceable(24) %34)
  %35 = getelementptr inbounds i8, ptr %0, i64 8
  store i8 1, ptr %35, align 8, !tbaa !5
  ret void

36:                                               ; preds = %.lr.ph54, %._crit_edge50
  %.052 = phi i32 [ 1, %.lr.ph54 ], [ %50, %._crit_edge50 ]
  %37 = call noundef zeroext i1 @_ZNKSt6vectorIiSaIiEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %20) #7
  br i1 %37, label %38, label %41

38:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #7
  %39 = call noundef i32 @_ZN12CppBenchmark6System16CpuPhysicalCoresEv()
  store i32 %39, ptr %5, align 4, !tbaa !39
  %40 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEE12emplace_backIJiEEERiDpOT_(ptr noundef nonnull align 8 dereferenceable(24) %20, ptr noundef nonnull align 4 dereferenceable(4) %5)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #7
  br label %41

41:                                               ; preds = %38, %36
  %42 = call noundef zeroext i1 @_ZNKSt6vectorISt5tupleIJiiiEESaIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %21) #7
  br i1 %42, label %43, label %45

43:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #7
  store i32 -1, ptr %6, align 4, !tbaa !39
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #7
  store i32 -1, ptr %7, align 4, !tbaa !39
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #7
  store i32 -1, ptr %8, align 4, !tbaa !39
  %44 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorISt5tupleIJiiiEESaIS1_EE12emplace_backIJiiiEEERS1_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %21, ptr noundef nonnull align 4 dereferenceable(4) %6, ptr noundef nonnull align 4 dereferenceable(4) %7, ptr noundef nonnull align 4 dereferenceable(4) %8)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #7
  br label %45

45:                                               ; preds = %43, %41
  %46 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK12CppBenchmark8Settings7threadsEv(ptr noundef nonnull align 8 dereferenceable(121) %18) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #7
  %47 = call ptr @_ZNKSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %46) #7
  store ptr %47, ptr %9, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #7
  %48 = call ptr @_ZNKSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %46) #7
  store ptr %48, ptr %10, align 8
  %49 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #7
  br i1 %49, label %.lr.ph49, label %._crit_edge50

._crit_edge50:                                    ; preds = %._crit_edge47, %45
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #7
  %50 = add nuw nsw i32 %.052, 1
  %51 = call noundef i32 @_ZNK12CppBenchmark8Settings8attemptsEv(ptr noundef nonnull align 8 dereferenceable(121) %18) #7
  %.not.not = icmp slt i32 %.052, %51
  br i1 %.not.not, label %36, label %._crit_edge55, !llvm.loop !40

.lr.ph49:                                         ; preds = %45, %._crit_edge47
  %52 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #7
  %53 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK12CppBenchmark8Settings6paramsEv(ptr noundef nonnull align 8 dereferenceable(121) %18) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #7
  %54 = call ptr @_ZNKSt6vectorISt5tupleIJiiiEESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %53) #7
  store ptr %54, ptr %11, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #7
  %55 = call ptr @_ZNKSt6vectorISt5tupleIJiiiEESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %53) #7
  store ptr %55, ptr %12, align 8
  %56 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKSt5tupleIJiiiEESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %12) #7
  br i1 %56, label %.lr.ph46, label %._crit_edge47

._crit_edge47:                                    ; preds = %130, %.lr.ph49
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #7
  %57 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #7
  %58 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #7
  br i1 %58, label %.lr.ph49, label %._crit_edge50

.lr.ph46:                                         ; preds = %.lr.ph49, %130
  %59 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKSt5tupleIJiiiEESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #7
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %13) #7
  %60 = load i32, ptr %52, align 4, !tbaa !39
  %61 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm0EJiiiEERKNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERKS4_(ptr noundef nonnull align 4 dereferenceable(12) %59) #7
  %62 = load i32, ptr %61, align 4, !tbaa !39
  %63 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm1EJiiiEERKNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERKS4_(ptr noundef nonnull align 4 dereferenceable(12) %59) #7
  %64 = load i32, ptr %63, align 4, !tbaa !39
  %65 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm2EJiiiEERKNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERKS4_(ptr noundef nonnull align 4 dereferenceable(12) %59) #7
  %66 = load i32, ptr %65, align 4, !tbaa !39
  call void @_ZN12CppBenchmark14ContextThreadsC2Eiiii(ptr noundef nonnull align 8 dereferenceable(60) %13, i32 noundef %60, i32 noundef %62, i32 noundef %64, i32 noundef %66) #7
  invoke void @_ZN12CppBenchmark13BenchmarkBase20InitBenchmarkContextERNS_7ContextE(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(56) %13)
          to label %67 unwind label %97

67:                                               ; preds = %.lr.ph46
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %.sroa.0)
  %68 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK12CppBenchmark8Settings7latencyEv(ptr noundef nonnull align 8 dereferenceable(121) %18) #7
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %.sroa.0, ptr noundef nonnull align 8 dereferenceable(24) %68, i64 24, i1 false)
  %69 = call noundef zeroext i1 @_ZNK12CppBenchmark8Settings12latency_autoEv(ptr noundef nonnull align 8 dereferenceable(121) %18) #7
  %70 = zext i1 %69 to i8
  %71 = load i32, ptr %1, align 4, !tbaa !39
  %72 = add nsw i32 %71, 1
  store i32 %72, ptr %1, align 4, !tbaa !39
  %73 = load ptr, ptr %3, align 8, !tbaa !42
  %74 = getelementptr inbounds i8, ptr %73, i64 16
  %75 = load ptr, ptr %74, align 8
  invoke void %75(ptr noundef nonnull align 8 dereferenceable(8) %3, i32 noundef %72, i32 noundef %2, ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(56) %13, i32 noundef %.052)
          to label %76 unwind label %99

76:                                               ; preds = %67
  %77 = load ptr, ptr %0, align 8, !tbaa !42
  %78 = getelementptr i8, ptr %77, i64 -24
  %79 = load i64, ptr %78, align 8
  %80 = getelementptr inbounds i8, ptr %0, i64 %79
  %81 = load ptr, ptr %80, align 8, !tbaa !42
  %82 = getelementptr inbounds i8, ptr %81, i64 16
  %83 = load ptr, ptr %82, align 8
  invoke void %83(ptr noundef nonnull align 8 dereferenceable(8) %80, ptr noundef nonnull align 8 dereferenceable(60) %13)
          to label %84 unwind label %99

84:                                               ; preds = %76
  %85 = call noundef zeroext i1 @_ZNK12CppBenchmark8Settings8infiniteEv(ptr noundef nonnull align 8 dereferenceable(121) %18) #7
  %86 = zext i1 %85 to i8
  %87 = call noundef i64 @_ZNK12CppBenchmark8Settings8durationEv(ptr noundef nonnull align 8 dereferenceable(121) %18) #7
  %88 = call noundef i64 @_ZNK12CppBenchmark8Settings10operationsEv(ptr noundef nonnull align 8 dereferenceable(121) %18) #7
  call void @llvm.lifetime.start.p0(i64 104, ptr nonnull %14) #7
  %89 = load i32, ptr %52, align 4, !tbaa !39
  call void @_ZN12CppBenchmark7BarrierC1Ei(ptr noundef nonnull align 8 dereferenceable(100) %14, i32 noundef %89) #7
  %90 = load ptr, ptr %22, align 8, !tbaa !44
  call void @_ZN12CppBenchmark9PhaseCore22StartCollectingMetricsEv(ptr noundef nonnull align 8 dereferenceable(944) %90) #7
  %91 = load ptr, ptr %23, align 8, !tbaa !50
  call void @_ZN12CppBenchmark12PhaseMetrics13AddOperationsEl(ptr noundef nonnull align 8 dereferenceable(412) %91, i64 noundef 1) #7
  %92 = load i32, ptr %52, align 4, !tbaa !39
  %93 = icmp sgt i32 %92, 0
  br i1 %93, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %103, %84
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #7
  %94 = call ptr @_ZNSt6vectorISt6threadSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %24) #7
  store ptr %94, ptr %16, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #7
  %95 = call ptr @_ZNSt6vectorISt6threadSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %24) #7
  store ptr %95, ptr %17, align 8
  %96 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt6threadSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(8) %17) #7
  br i1 %96, label %.lr.ph43, label %._crit_edge44

97:                                               ; preds = %.lr.ph46
  %98 = landingpad { ptr, i32 }
          cleanup
  br label %138

99:                                               ; preds = %76, %67
  %100 = landingpad { ptr, i32 }
          cleanup
  br label %137

.lr.ph:                                           ; preds = %84, %103
  %.03341 = phi i32 [ %104, %103 ], [ 0, %84 ]
  call void @llvm.lifetime.start.p0(i64 88, ptr nonnull %15) #7
  store ptr %0, ptr %15, align 8, !tbaa !51
  store ptr %14, ptr %25, align 8, !tbaa !53
  store ptr %13, ptr %26, align 8, !tbaa !53
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %27, ptr noundef nonnull align 8 dereferenceable(24) %.sroa.0, i64 24, i1 false)
  store i8 %70, ptr %28, align 8, !tbaa !54
  %101 = load i32, ptr %52, align 4, !tbaa !39
  store i32 %101, ptr %29, align 4, !tbaa !55
  store i8 %86, ptr %30, align 8, !tbaa !56
  store i64 %88, ptr %31, align 8, !tbaa !57
  store i64 %87, ptr %32, align 8, !tbaa !58
  store i32 %.03341, ptr %33, align 8, !tbaa !59
  %102 = invoke noundef nonnull align 8 dereferenceable(8) ptr @"_ZNSt6vectorISt6threadSaIS0_EE12emplace_backIJZN12CppBenchmark16BenchmarkThreads6LaunchERiiRNS4_15LauncherHandlerEE3$_0EEERS0_DpOT_"(ptr noundef nonnull align 8 dereferenceable(24) %24, ptr noundef nonnull align 8 dereferenceable(84) %15)
          to label %103 unwind label %107

103:                                              ; preds = %.lr.ph
  call void @llvm.lifetime.end.p0(i64 88, ptr nonnull %15) #7
  %104 = add nuw nsw i32 %.03341, 1
  %105 = load i32, ptr %52, align 4, !tbaa !39
  %106 = icmp slt i32 %104, %105
  br i1 %106, label %.lr.ph, label %._crit_edge, !llvm.loop !60

107:                                              ; preds = %.lr.ph
  %108 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 88, ptr nonnull %15) #7
  br label %136

._crit_edge44:                                    ; preds = %118, %._crit_edge
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #7
  call void @_ZNSt6vectorISt6threadSaIS0_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %24) #7
  %109 = load ptr, ptr %22, align 8, !tbaa !44
  call void @_ZN12CppBenchmark9PhaseCore21StopCollectingMetricsEv(ptr noundef nonnull align 8 dereferenceable(944) %109) #7
  %110 = load ptr, ptr %0, align 8, !tbaa !42
  %111 = getelementptr i8, ptr %110, i64 -24
  %112 = load i64, ptr %111, align 8
  %113 = getelementptr inbounds i8, ptr %0, i64 %112
  %114 = load ptr, ptr %113, align 8, !tbaa !42
  %115 = getelementptr inbounds i8, ptr %114, i64 24
  %116 = load ptr, ptr %115, align 8
  invoke void %116(ptr noundef nonnull align 8 dereferenceable(8) %113, ptr noundef nonnull align 8 dereferenceable(60) %13)
          to label %123 unwind label %134

.lr.ph43:                                         ; preds = %._crit_edge, %118
  %117 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt6threadSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #7
  invoke void @_ZNSt6thread4joinEv(ptr noundef nonnull align 8 dereferenceable(8) %117)
          to label %118 unwind label %121

118:                                              ; preds = %.lr.ph43
  %119 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt6threadSt6vectorIS1_SaIS1_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #7
  %120 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt6threadSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(8) %17) #7
  br i1 %120, label %.lr.ph43, label %._crit_edge44

121:                                              ; preds = %.lr.ph43
  %122 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #7
  br label %136

123:                                              ; preds = %._crit_edge44
  %124 = load i32, ptr %1, align 4, !tbaa !39
  %125 = load ptr, ptr %3, align 8, !tbaa !42
  %126 = getelementptr inbounds i8, ptr %125, i64 24
  %127 = load ptr, ptr %126, align 8
  invoke void %127(ptr noundef nonnull align 8 dereferenceable(8) %3, i32 noundef %124, i32 noundef %2, ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(56) %13, i32 noundef %.052)
          to label %128 unwind label %134

128:                                              ; preds = %123
  %129 = load ptr, ptr %22, align 8, !tbaa !44
  invoke void @_ZN12CppBenchmark9PhaseCore12MergeMetricsEv(ptr noundef nonnull align 8 dereferenceable(944) %129)
          to label %130 unwind label %134

130:                                              ; preds = %128
  %131 = load ptr, ptr %22, align 8, !tbaa !44
  call void @_ZN12CppBenchmark9PhaseCore12ResetMetricsEv(ptr noundef nonnull align 8 dereferenceable(944) %131) #7
  call void @_ZN12CppBenchmark7BarrierD2Ev(ptr noundef nonnull align 8 dereferenceable(100) %14) #7
  call void @llvm.lifetime.end.p0(i64 104, ptr nonnull %14) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %.sroa.0)
  call void @_ZN12CppBenchmark7ContextD2Ev(ptr noundef nonnull align 8 dereferenceable(60) %13) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %13) #7
  %132 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKSt5tupleIJiiiEESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #7
  %133 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKSt5tupleIJiiiEESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %12) #7
  br i1 %133, label %.lr.ph46, label %._crit_edge47

134:                                              ; preds = %128, %123, %._crit_edge44
  %135 = landingpad { ptr, i32 }
          cleanup
  br label %136

136:                                              ; preds = %134, %121, %107
  %.pn = phi { ptr, i32 } [ %108, %107 ], [ %122, %121 ], [ %135, %134 ]
  call void @_ZN12CppBenchmark7BarrierD2Ev(ptr noundef nonnull align 8 dereferenceable(100) %14) #7
  call void @llvm.lifetime.end.p0(i64 104, ptr nonnull %14) #7
  br label %137

137:                                              ; preds = %136, %99
  %.pn.pn = phi { ptr, i32 } [ %.pn, %136 ], [ %100, %99 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %.sroa.0)
  br label %138

138:                                              ; preds = %137, %97
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %137 ], [ %98, %97 ]
  call void @_ZN12CppBenchmark7ContextD2Ev(ptr noundef nonnull align 8 dereferenceable(60) %13) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #7
  resume { ptr, i32 } %.pn.pn.pn
}

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

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

declare noundef i32 @_ZN12CppBenchmark6System16CpuPhysicalCoresEv() local_unnamed_addr #3

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorISt5tupleIJiiiEESaIS1_EE12emplace_backIJiiiEEERS1_DpOT_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #1 align 2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPKiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #4

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPKSt5tupleIJiiiEESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #4

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm0EJiiiEERKNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERKS4_(ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm1EJiiiEERKNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERKS4_(ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm2EJiiiEERKNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERKS4_(ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #0

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

declare void @_ZN12CppBenchmark13BenchmarkBase20InitBenchmarkContextERNS_7ContextE(ptr noundef nonnull align 8 dereferenceable(200), ptr noundef nonnull align 8 dereferenceable(56)) local_unnamed_addr #3

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK12CppBenchmark8Settings12latency_autoEv(ptr noundef nonnull align 8 dereferenceable(121)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK12CppBenchmark8Settings8infiniteEv(ptr noundef nonnull align 8 dereferenceable(121)) local_unnamed_addr #0 align 2

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

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

; Function Attrs: nounwind
declare void @_ZN12CppBenchmark7BarrierC1Ei(ptr noundef nonnull align 8 dereferenceable(100), i32 noundef) unnamed_addr #6

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN12CppBenchmark12PhaseMetrics13AddOperationsEl(ptr noundef nonnull align 8 dereferenceable(412), i64 noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare hidden noundef nonnull align 8 dereferenceable(8) ptr @"_ZNSt6vectorISt6threadSaIS0_EE12emplace_backIJZN12CppBenchmark16BenchmarkThreads6LaunchERiiRNS4_15LauncherHandlerEE3$_0EEERS0_DpOT_"(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(84)) local_unnamed_addr #1 align 2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPSt6threadSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #4

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

declare void @_ZNSt6thread4joinEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3

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

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

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

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

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

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

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

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

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

declare void @_ZN12CppBenchmark13BenchmarkBase22UpdateBenchmarkThreadsERSt6vectorISt10shared_ptrINS_9PhaseCoreEESaIS4_EE(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3

declare void @_ZN12CppBenchmark13BenchmarkBase20UpdateBenchmarkNamesERSt6vectorISt10shared_ptrINS_9PhaseCoreEESaIS4_EE(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3

declare void @_ZN12CppBenchmark13BenchmarkBase25UpdateBenchmarkOperationsERSt6vectorISt10shared_ptrINS_9PhaseCoreEESaIS4_EE(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3

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 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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 #5 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { 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 #7 = { 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, !7, i64 8}
!6 = !{!"_ZTSN12CppBenchmark13BenchmarkBaseE", !7, i64 8, !10, i64 16, !14, i64 48, !35, i64 176}
!7 = !{!"bool", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !11, i64 0, !13, i64 8, !8, i64 16}
!11 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !12, i64 0}
!12 = !{!"any pointer", !8, i64 0}
!13 = !{!"long", !8, i64 0}
!14 = !{!"_ZTSN12CppBenchmark8SettingsE", !15, i64 0, !7, i64 4, !13, i64 8, !13, i64 16, !16, i64 24, !20, i64 48, !24, i64 72, !28, i64 96, !7, i64 120}
!15 = !{!"int", !8, i64 0}
!16 = !{!"_ZTSSt6vectorIiSaIiEE", !17, i64 0}
!17 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !12, i64 0, !12, i64 8, !12, i64 16}
!20 = !{!"_ZTSSt6vectorISt5tupleIJiiEESaIS1_EE", !21, i64 0}
!21 = !{!"_ZTSSt12_Vector_baseISt5tupleIJiiEESaIS1_EE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseISt5tupleIJiiEESaIS1_EE12_Vector_implE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseISt5tupleIJiiEESaIS1_EE17_Vector_impl_dataE", !12, i64 0, !12, i64 8, !12, i64 16}
!24 = !{!"_ZTSSt6vectorISt5tupleIJiiiEESaIS1_EE", !25, i64 0}
!25 = !{!"_ZTSSt12_Vector_baseISt5tupleIJiiiEESaIS1_EE", !26, i64 0}
!26 = !{!"_ZTSNSt12_Vector_baseISt5tupleIJiiiEESaIS1_EE12_Vector_implE", !27, i64 0}
!27 = !{!"_ZTSNSt12_Vector_baseISt5tupleIJiiiEESaIS1_EE17_Vector_impl_dataE", !12, i64 0, !12, i64 8, !12, i64 16}
!28 = !{!"_ZTSSt5tupleIJlliEE", !29, i64 0}
!29 = !{!"_ZTSSt11_Tuple_implILm0EJlliEE", !30, i64 0, !34, i64 16}
!30 = !{!"_ZTSSt11_Tuple_implILm1EJliEE", !31, i64 0, !33, i64 8}
!31 = !{!"_ZTSSt11_Tuple_implILm2EJiEE", !32, i64 0}
!32 = !{!"_ZTSSt10_Head_baseILm2EiLb0EE", !15, i64 0}
!33 = !{!"_ZTSSt10_Head_baseILm1ElLb0EE", !13, i64 0}
!34 = !{!"_ZTSSt10_Head_baseILm0ElLb0EE", !13, i64 0}
!35 = !{!"_ZTSSt6vectorISt10shared_ptrIN12CppBenchmark9PhaseCoreEESaIS3_EE", !36, i64 0}
!36 = !{!"_ZTSSt12_Vector_baseISt10shared_ptrIN12CppBenchmark9PhaseCoreEESaIS3_EE", !37, i64 0}
!37 = !{!"_ZTSNSt12_Vector_baseISt10shared_ptrIN12CppBenchmark9PhaseCoreEESaIS3_EE12_Vector_implE", !38, i64 0}
!38 = !{!"_ZTSNSt12_Vector_baseISt10shared_ptrIN12CppBenchmark9PhaseCoreEESaIS3_EE17_Vector_impl_dataE", !12, i64 0, !12, i64 8, !12, i64 16}
!39 = !{!15, !15, i64 0}
!40 = distinct !{!40, !41}
!41 = !{!"llvm.loop.mustprogress"}
!42 = !{!43, !43, i64 0}
!43 = !{!"vtable pointer", !9, i64 0}
!44 = !{!45, !12, i64 24}
!45 = !{!"_ZTSN12CppBenchmark7ContextE", !46, i64 0, !15, i64 8, !15, i64 12, !15, i64 16, !12, i64 24, !12, i64 32, !47, i64 40}
!46 = !{!"_ZTSN12CppBenchmark5PhaseE"}
!47 = !{!"_ZTSSt10shared_ptrISt6atomicIbEE", !48, i64 0}
!48 = !{!"_ZTSSt12__shared_ptrISt6atomicIbELN9__gnu_cxx12_Lock_policyE2EE", !12, i64 0, !49, i64 8}
!49 = !{!"_ZTSSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EE", !12, i64 0}
!50 = !{!45, !12, i64 32}
!51 = !{!52, !12, i64 0}
!52 = !{!"_ZTSZN12CppBenchmark16BenchmarkThreads6LaunchERiiRNS_15LauncherHandlerEE3$_0", !12, i64 0, !12, i64 8, !12, i64 16, !28, i64 24, !7, i64 48, !15, i64 52, !7, i64 56, !13, i64 64, !13, i64 72, !15, i64 80}
!53 = !{!12, !12, i64 0}
!54 = !{!52, !7, i64 48}
!55 = !{!52, !15, i64 52}
!56 = !{!52, !7, i64 56}
!57 = !{!52, !13, i64 64}
!58 = !{!52, !13, i64 72}
!59 = !{!52, !15, i64 80}
!60 = distinct !{!60, !41}


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