; LLVM IR from chronoxor/CppBenchmark :: source/benchmark/benchmark.ll (ZN12CppBenchmark9Benchmark6LaunchERiiRNS_15LauncherHandlerE)

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

; 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 @_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 @_ZN12CppBenchmark9Benchmark6LaunchERiiRNS_15LauncherHandlerE(ptr noundef nonnull align 8 dereferenceable(200) %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 ptr, align 8
  %15 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %16 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %17 = alloca ptr, align 8
  %18 = alloca %"class.CppBenchmark::Context", align 8
  %19 = alloca ptr, align 8
  %20 = alloca i32, align 4
  %21 = alloca %"class.std::tuple", align 8
  %22 = alloca i8, align 1
  %23 = alloca i8, align 1
  %24 = alloca i64, align 8
  %25 = alloca i64, align 8
  %26 = alloca i64, align 8
  %27 = alloca i64, align 8
  %28 = alloca i64, 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
  %29 = 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 %30

30:                                               ; preds = %212, %4
  %31 = load i32, ptr %9, align 4, !tbaa !9
  %32 = getelementptr inbounds %"class.CppBenchmark::BenchmarkBase", ptr %29, i32 0, i32 3
  %33 = call noundef i32 @_ZNK12CppBenchmark8Settings8attemptsEv(ptr noundef nonnull align 8 dereferenceable(121) %32) #7
  %34 = icmp sle i32 %31, %33
  br i1 %34, label %36, label %35

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

36:                                               ; preds = %30
  %37 = getelementptr inbounds %"class.CppBenchmark::BenchmarkBase", ptr %29, i32 0, i32 3
  %38 = getelementptr inbounds %"class.CppBenchmark::Settings", ptr %37, i32 0, i32 7
  %39 = call noundef zeroext i1 @_ZNKSt6vectorISt5tupleIJiiiEESaIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %38) #7
  br i1 %39, label %40, label %44

40:                                               ; preds = %36
  %41 = getelementptr inbounds %"class.CppBenchmark::BenchmarkBase", ptr %29, i32 0, i32 3
  %42 = getelementptr inbounds %"class.CppBenchmark::Settings", ptr %41, i32 0, i32 7
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  store i32 -1, ptr %11, align 4, !tbaa !9
  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
  %43 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorISt5tupleIJiiiEESaIS1_EE12emplace_backIJiiiEEERS1_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %42, ptr noundef nonnull align 4 dereferenceable(4) %11, ptr noundef nonnull align 4 dereferenceable(4) %12, ptr noundef nonnull align 4 dereferenceable(4) %13)
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  br label %44

44:                                               ; preds = %40, %36
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  %45 = getelementptr inbounds %"class.CppBenchmark::BenchmarkBase", ptr %29, i32 0, i32 3
  %46 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK12CppBenchmark8Settings6paramsEv(ptr noundef nonnull align 8 dereferenceable(121) %45) #7
  store ptr %46, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
  %47 = load ptr, ptr %14, align 8, !tbaa !5
  %48 = call ptr @_ZNKSt6vectorISt5tupleIJiiiEESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %47) #7
  %49 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %15, i32 0, i32 0
  store ptr %48, ptr %49, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #7
  %50 = load ptr, ptr %14, align 8, !tbaa !5
  %51 = call ptr @_ZNKSt6vectorISt5tupleIJiiiEESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %50) #7
  %52 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %16, i32 0, i32 0
  store ptr %51, ptr %52, align 8
  br label %53

53:                                               ; preds = %205, %44
  %54 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKSt5tupleIJiiiEESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 8 dereferenceable(8) %16) #7
  br i1 %54, label %56, label %55

55:                                               ; preds = %53
  store i32 5, ptr %10, align 4
  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 8, ptr %14) #7
  br label %210

56:                                               ; preds = %53
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  %57 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKSt5tupleIJiiiEESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %15) #7
  store ptr %57, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 56, ptr %18) #7
  %58 = load ptr, ptr %17, align 8, !tbaa !5
  %59 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm0EJiiiEERKNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERKS4_(ptr noundef nonnull align 4 dereferenceable(12) %58) #7
  %60 = load i32, ptr %59, align 4, !tbaa !9
  %61 = load ptr, ptr %17, align 8, !tbaa !5
  %62 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm1EJiiiEERKNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERKS4_(ptr noundef nonnull align 4 dereferenceable(12) %61) #7
  %63 = load i32, ptr %62, align 4, !tbaa !9
  %64 = load ptr, ptr %17, align 8, !tbaa !5
  %65 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm2EJiiiEERKNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERKS4_(ptr noundef nonnull align 4 dereferenceable(12) %64) #7
  %66 = load i32, ptr %65, align 4, !tbaa !9
  call void @_ZN12CppBenchmark7ContextC2Eiii(ptr noundef nonnull align 8 dereferenceable(56) %18, i32 noundef %60, i32 noundef %63, i32 noundef %66) #7
  invoke void @_ZN12CppBenchmark13BenchmarkBase20InitBenchmarkContextERNS_7ContextE(ptr noundef nonnull align 8 dereferenceable(200) %29, ptr noundef nonnull align 8 dereferenceable(56) %18)
          to label %67 unwind label %122

67:                                               ; preds = %56
  call void @llvm.lifetime.start.p0(i64 24, ptr %21) #7
  %68 = getelementptr inbounds %"class.CppBenchmark::BenchmarkBase", ptr %29, i32 0, i32 3
  %69 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK12CppBenchmark8Settings7latencyEv(ptr noundef nonnull align 8 dereferenceable(121) %68) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %21, ptr align 8 %69, i64 24, i1 false)
  call void @llvm.lifetime.start.p0(i64 1, ptr %22) #7
  %70 = getelementptr inbounds %"class.CppBenchmark::BenchmarkBase", ptr %29, i32 0, i32 3
  %71 = call noundef zeroext i1 @_ZNK12CppBenchmark8Settings12latency_autoEv(ptr noundef nonnull align 8 dereferenceable(121) %70) #7
  %72 = zext i1 %71 to i8
  store i8 %72, ptr %22, align 1, !tbaa !11
  %73 = getelementptr inbounds %"class.CppBenchmark::Context", ptr %18, i32 0, i32 4
  %74 = load ptr, ptr %73, align 8, !tbaa !13
  call void @_ZN12CppBenchmark9PhaseCore20InitLatencyHistogramERKSt5tupleIJlliEE(ptr noundef nonnull align 8 dereferenceable(944) %74, ptr noundef nonnull align 8 dereferenceable(24) %21) #7
  %75 = load ptr, ptr %8, align 8, !tbaa !5
  %76 = load ptr, ptr %6, align 8, !tbaa !5
  %77 = load i32, ptr %76, align 4, !tbaa !9
  %78 = add nsw i32 %77, 1
  store i32 %78, ptr %76, align 4, !tbaa !9
  %79 = load i32, ptr %7, align 4, !tbaa !9
  %80 = load i32, ptr %9, align 4, !tbaa !9
  %81 = load ptr, ptr %75, align 8, !tbaa !19
  %82 = getelementptr inbounds ptr, ptr %81, i64 2
  %83 = load ptr, ptr %82, align 8
  invoke void %83(ptr noundef nonnull align 8 dereferenceable(8) %75, i32 noundef %78, i32 noundef %79, ptr noundef nonnull align 8 dereferenceable(200) %29, ptr noundef nonnull align 8 dereferenceable(56) %18, i32 noundef %80)
          to label %84 unwind label %126

84:                                               ; preds = %67
  %85 = load ptr, ptr %29, align 8, !tbaa !19
  %86 = getelementptr i8, ptr %85, i64 -24
  %87 = load i64, ptr %86, align 8
  %88 = getelementptr inbounds i8, ptr %29, i64 %87
  %89 = load ptr, ptr %88, align 8, !tbaa !19
  %90 = getelementptr inbounds ptr, ptr %89, i64 2
  %91 = load ptr, ptr %90, align 8
  invoke void %91(ptr noundef nonnull align 8 dereferenceable(8) %88, ptr noundef nonnull align 8 dereferenceable(56) %18)
          to label %92 unwind label %126

92:                                               ; preds = %84
  call void @llvm.lifetime.start.p0(i64 1, ptr %23) #7
  %93 = getelementptr inbounds %"class.CppBenchmark::BenchmarkBase", ptr %29, i32 0, i32 3
  %94 = call noundef zeroext i1 @_ZNK12CppBenchmark8Settings8infiniteEv(ptr noundef nonnull align 8 dereferenceable(121) %93) #7
  %95 = zext i1 %94 to i8
  store i8 %95, ptr %23, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #7
  %96 = getelementptr inbounds %"class.CppBenchmark::BenchmarkBase", ptr %29, i32 0, i32 3
  %97 = call noundef i64 @_ZNK12CppBenchmark8Settings8durationEv(ptr noundef nonnull align 8 dereferenceable(121) %96) #7
  store i64 %97, ptr %24, align 8, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #7
  %98 = getelementptr inbounds %"class.CppBenchmark::BenchmarkBase", ptr %29, i32 0, i32 3
  %99 = call noundef i64 @_ZNK12CppBenchmark8Settings10operationsEv(ptr noundef nonnull align 8 dereferenceable(121) %98) #7
  store i64 %99, ptr %25, align 8, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #7
  store i64 0, ptr %26, align 8, !tbaa !21
  %100 = load i64, ptr %24, align 8, !tbaa !21
  %101 = icmp sgt i64 %100, 0
  br i1 %101, label %102, label %141

102:                                              ; preds = %92
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #7
  store i64 0, ptr %27, align 8, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #7
  store i64 0, ptr %28, align 8, !tbaa !21
  br label %103

103:                                              ; preds = %119, %102
  %104 = load i64, ptr %28, align 8, !tbaa !21
  %105 = icmp ult i64 %104, 1000000000
  br i1 %105, label %106, label %134

106:                                              ; preds = %103
  %107 = invoke noundef i64 @_ZN12CppBenchmark6System9TimestampEv()
          to label %108 unwind label %130

108:                                              ; preds = %106
  store i64 %107, ptr %26, align 8, !tbaa !21
  %109 = load ptr, ptr %29, align 8, !tbaa !19
  %110 = getelementptr inbounds ptr, ptr %109, i64 4
  %111 = load ptr, ptr %110, align 8
  invoke void %111(ptr noundef nonnull align 8 dereferenceable(200) %29, ptr noundef nonnull align 8 dereferenceable(56) %18)
          to label %112 unwind label %130

112:                                              ; preds = %108
  %113 = invoke noundef i64 @_ZN12CppBenchmark6System9TimestampEv()
          to label %114 unwind label %130

114:                                              ; preds = %112
  %115 = load i64, ptr %26, align 8, !tbaa !21
  %116 = sub i64 %113, %115
  %117 = load i64, ptr %28, align 8, !tbaa !21
  %118 = add i64 %117, %116
  store i64 %118, ptr %28, align 8, !tbaa !21
  br label %119

119:                                              ; preds = %114
  %120 = load i64, ptr %27, align 8, !tbaa !21
  %121 = add i64 %120, 1
  store i64 %121, ptr %27, align 8, !tbaa !21
  br label %103, !llvm.loop !23

122:                                              ; preds = %56
  %123 = landingpad { ptr, i32 }
          cleanup
  %124 = extractvalue { ptr, i32 } %123, 0
  store ptr %124, ptr %19, align 8
  %125 = extractvalue { ptr, i32 } %123, 1
  store i32 %125, ptr %20, align 4
  br label %209

126:                                              ; preds = %84, %67
  %127 = landingpad { ptr, i32 }
          cleanup
  %128 = extractvalue { ptr, i32 } %127, 0
  store ptr %128, ptr %19, align 8
  %129 = extractvalue { ptr, i32 } %127, 1
  store i32 %129, ptr %20, align 4
  br label %208

130:                                              ; preds = %112, %108, %106
  %131 = landingpad { ptr, i32 }
          cleanup
  %132 = extractvalue { ptr, i32 } %131, 0
  store ptr %132, ptr %19, align 8
  %133 = extractvalue { ptr, i32 } %131, 1
  store i32 %133, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #7
  br label %207

134:                                              ; preds = %103
  %135 = load i64, ptr %27, align 8, !tbaa !21
  %136 = mul i64 1000000000, %135
  %137 = load i64, ptr %24, align 8, !tbaa !21
  %138 = mul i64 %136, %137
  %139 = load i64, ptr %28, align 8, !tbaa !21
  %140 = udiv i64 %138, %139
  store i64 %140, ptr %25, align 8, !tbaa !21
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #7
  br label %141

141:                                              ; preds = %134, %92
  %142 = getelementptr inbounds %"class.CppBenchmark::Context", ptr %18, i32 0, i32 4
  %143 = load ptr, ptr %142, align 8, !tbaa !13
  call void @_ZN12CppBenchmark9PhaseCore22StartCollectingMetricsEv(ptr noundef nonnull align 8 dereferenceable(944) %143) #7
  br label %144

144:                                              ; preds = %182, %141
  %145 = call noundef zeroext i1 @_ZNK12CppBenchmark7Context8canceledEv(ptr noundef nonnull align 8 dereferenceable(56) %18) #7
  br i1 %145, label %154, label %146

146:                                              ; preds = %144
  %147 = load i8, ptr %23, align 1, !tbaa !11, !range !25, !noundef !26
  %148 = trunc i8 %147 to i1
  br i1 %148, label %152, label %149

149:                                              ; preds = %146
  %150 = load i64, ptr %25, align 8, !tbaa !21
  %151 = icmp sgt i64 %150, 0
  br label %152

152:                                              ; preds = %149, %146
  %153 = phi i1 [ true, %146 ], [ %151, %149 ]
  br label %154

154:                                              ; preds = %152, %144
  %155 = phi i1 [ false, %144 ], [ %153, %152 ]
  br i1 %155, label %156, label %185

156:                                              ; preds = %154
  %157 = getelementptr inbounds %"class.CppBenchmark::Context", ptr %18, i32 0, i32 5
  %158 = load ptr, ptr %157, align 8, !tbaa !27
  call void @_ZN12CppBenchmark12PhaseMetrics13AddOperationsEl(ptr noundef nonnull align 8 dereferenceable(412) %158, i64 noundef 1) #7
  %159 = load i8, ptr %22, align 1, !tbaa !11, !range !25, !noundef !26
  %160 = trunc i8 %159 to i1
  br i1 %160, label %161, label %168

161:                                              ; preds = %156
  %162 = invoke noundef i64 @_ZN12CppBenchmark6System9TimestampEv()
          to label %163 unwind label %164

163:                                              ; preds = %161
  store i64 %162, ptr %26, align 8, !tbaa !21
  br label %168

164:                                              ; preds = %195, %185, %175, %168, %161
  %165 = landingpad { ptr, i32 }
          cleanup
  %166 = extractvalue { ptr, i32 } %165, 0
  store ptr %166, ptr %19, align 8
  %167 = extractvalue { ptr, i32 } %165, 1
  store i32 %167, ptr %20, align 4
  br label %207

168:                                              ; preds = %163, %156
  %169 = load ptr, ptr %29, align 8, !tbaa !19
  %170 = getelementptr inbounds ptr, ptr %169, i64 4
  %171 = load ptr, ptr %170, align 8
  invoke void %171(ptr noundef nonnull align 8 dereferenceable(200) %29, ptr noundef nonnull align 8 dereferenceable(56) %18)
          to label %172 unwind label %164

172:                                              ; preds = %168
  %173 = load i8, ptr %22, align 1, !tbaa !11, !range !25, !noundef !26
  %174 = trunc i8 %173 to i1
  br i1 %174, label %175, label %182

175:                                              ; preds = %172
  %176 = getelementptr inbounds %"class.CppBenchmark::Context", ptr %18, i32 0, i32 5
  %177 = load ptr, ptr %176, align 8, !tbaa !27
  %178 = invoke noundef i64 @_ZN12CppBenchmark6System9TimestampEv()
          to label %179 unwind label %164

179:                                              ; preds = %175
  %180 = load i64, ptr %26, align 8, !tbaa !21
  %181 = sub i64 %178, %180
  call void @_ZN12CppBenchmark12PhaseMetrics10AddLatencyEl(ptr noundef nonnull align 8 dereferenceable(412) %177, i64 noundef %181) #7
  br label %182

182:                                              ; preds = %179, %172
  %183 = load i64, ptr %25, align 8, !tbaa !21
  %184 = sub nsw i64 %183, 1
  store i64 %184, ptr %25, align 8, !tbaa !21
  br label %144, !llvm.loop !28

185:                                              ; preds = %154
  %186 = getelementptr inbounds %"class.CppBenchmark::Context", ptr %18, i32 0, i32 4
  %187 = load ptr, ptr %186, align 8, !tbaa !13
  call void @_ZN12CppBenchmark9PhaseCore21StopCollectingMetricsEv(ptr noundef nonnull align 8 dereferenceable(944) %187) #7
  %188 = load ptr, ptr %29, align 8, !tbaa !19
  %189 = getelementptr i8, ptr %188, i64 -24
  %190 = load i64, ptr %189, align 8
  %191 = getelementptr inbounds i8, ptr %29, i64 %190
  %192 = load ptr, ptr %191, align 8, !tbaa !19
  %193 = getelementptr inbounds ptr, ptr %192, i64 3
  %194 = load ptr, ptr %193, align 8
  invoke void %194(ptr noundef nonnull align 8 dereferenceable(8) %191, ptr noundef nonnull align 8 dereferenceable(56) %18)
          to label %195 unwind label %164

195:                                              ; preds = %185
  %196 = load ptr, ptr %8, align 8, !tbaa !5
  %197 = load ptr, ptr %6, align 8, !tbaa !5
  %198 = load i32, ptr %197, align 4, !tbaa !9
  %199 = load i32, ptr %7, align 4, !tbaa !9
  %200 = load i32, ptr %9, align 4, !tbaa !9
  %201 = load ptr, ptr %196, align 8, !tbaa !19
  %202 = getelementptr inbounds ptr, ptr %201, i64 3
  %203 = load ptr, ptr %202, align 8
  invoke void %203(ptr noundef nonnull align 8 dereferenceable(8) %196, i32 noundef %198, i32 noundef %199, ptr noundef nonnull align 8 dereferenceable(200) %29, ptr noundef nonnull align 8 dereferenceable(56) %18, i32 noundef %200)
          to label %204 unwind label %164

204:                                              ; preds = %195
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %21) #7
  call void @_ZN12CppBenchmark7ContextD2Ev(ptr noundef nonnull align 8 dereferenceable(56) %18) #7
  call void @llvm.lifetime.end.p0(i64 56, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  br label %205

205:                                              ; preds = %204
  %206 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKSt5tupleIJiiiEESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %15) #7
  br label %53

207:                                              ; preds = %164, %130
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #7
  br label %208

208:                                              ; preds = %207, %126
  call void @llvm.lifetime.end.p0(i64 1, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %21) #7
  br label %209

209:                                              ; preds = %208, %122
  call void @_ZN12CppBenchmark7ContextD2Ev(ptr noundef nonnull align 8 dereferenceable(56) %18) #7
  call void @llvm.lifetime.end.p0(i64 56, 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 8, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  br label %219

210:                                              ; preds = %55
  %211 = getelementptr inbounds %"class.CppBenchmark::BenchmarkBase", ptr %29, i32 0, i32 4
  call void @_ZN12CppBenchmark13BenchmarkBase22UpdateBenchmarkMetricsERSt6vectorISt10shared_ptrINS_9PhaseCoreEESaIS4_EE(ptr noundef nonnull align 8 dereferenceable(24) %211)
  br label %212

212:                                              ; preds = %210
  %213 = load i32, ptr %9, align 4, !tbaa !9
  %214 = add nsw i32 %213, 1
  store i32 %214, ptr %9, align 4, !tbaa !9
  br label %30, !llvm.loop !29

215:                                              ; preds = %35
  %216 = getelementptr inbounds %"class.CppBenchmark::BenchmarkBase", ptr %29, i32 0, i32 4
  call void @_ZN12CppBenchmark13BenchmarkBase22UpdateBenchmarkThreadsERSt6vectorISt10shared_ptrINS_9PhaseCoreEESaIS4_EE(ptr noundef nonnull align 8 dereferenceable(24) %216)
  %217 = getelementptr inbounds %"class.CppBenchmark::BenchmarkBase", ptr %29, i32 0, i32 4
  call void @_ZN12CppBenchmark13BenchmarkBase20UpdateBenchmarkNamesERSt6vectorISt10shared_ptrINS_9PhaseCoreEESaIS4_EE(ptr noundef nonnull align 8 dereferenceable(24) %217)
  %218 = getelementptr inbounds %"class.CppBenchmark::BenchmarkBase", ptr %29, i32 0, i32 1
  store i8 1, ptr %218, align 8, !tbaa !30
  ret void

219:                                              ; preds = %209
  %220 = load ptr, ptr %19, align 8
  %221 = load i32, ptr %20, align 4
  %222 = insertvalue { ptr, i32 } poison, ptr %220, 0
  %223 = insertvalue { ptr, i32 } %222, i32 %221, 1
  resume { ptr, i32 } %223
}

; 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(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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #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)) #3

; 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 @_ZN12CppBenchmark7ContextC2Eiii(ptr noundef nonnull align 8 dereferenceable(56), 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)) #4

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 void @_ZN12CppBenchmark9PhaseCore20InitLatencyHistogramERKSt5tupleIJlliEE(ptr noundef nonnull align 8 dereferenceable(944), ptr noundef nonnull align 8 dereferenceable(24)) #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

declare noundef i64 @_ZN12CppBenchmark6System9TimestampEv() #4

; 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 noundef zeroext i1 @_ZNK12CppBenchmark7Context8canceledEv(ptr noundef nonnull align 8 dereferenceable(56)) #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: nounwind
declare void @_ZN12CppBenchmark12PhaseMetrics10AddLatencyEl(ptr noundef nonnull align 8 dereferenceable(412), i64 noundef) #6

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN12CppBenchmark9PhaseCore21StopCollectingMetricsEv(ptr noundef nonnull align 8 dereferenceable(944)) #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

declare void @_ZN12CppBenchmark13BenchmarkBase22UpdateBenchmarkMetricsERSt6vectorISt10shared_ptrINS_9PhaseCoreEESaIS4_EE(ptr noundef nonnull align 8 dereferenceable(24)) #4

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

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

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

; 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 @_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 @_ZN12CppBenchmark9Benchmark6LaunchERiiRNS_15LauncherHandlerE(ptr noundef nonnull align 8 dereferenceable(200) %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 %"class.__gnu_cxx::__normal_iterator", align 8
  %9 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %10 = alloca %"class.CppBenchmark::Context", align 8
  %11 = alloca %"class.std::tuple", align 8
  %12 = getelementptr inbounds i8, ptr %0, i64 48
  %13 = tail call noundef i32 @_ZNK12CppBenchmark8Settings8attemptsEv(ptr noundef nonnull align 8 dereferenceable(121) %12) #7
  %.not58 = icmp slt i32 %13, 1
  br i1 %.not58, label %._crit_edge62, label %.lr.ph61

.lr.ph61:                                         ; preds = %4
  %14 = getelementptr inbounds i8, ptr %0, i64 120
  %15 = getelementptr inbounds i8, ptr %10, i64 24
  %16 = getelementptr inbounds i8, ptr %10, i64 32
  %17 = getelementptr inbounds i8, ptr %0, i64 176
  br label %20

._crit_edge62:                                    ; preds = %._crit_edge, %4
  %18 = getelementptr inbounds i8, ptr %0, i64 176
  call void @_ZN12CppBenchmark13BenchmarkBase22UpdateBenchmarkThreadsERSt6vectorISt10shared_ptrINS_9PhaseCoreEESaIS4_EE(ptr noundef nonnull align 8 dereferenceable(24) %18)
  call void @_ZN12CppBenchmark13BenchmarkBase20UpdateBenchmarkNamesERSt6vectorISt10shared_ptrINS_9PhaseCoreEESaIS4_EE(ptr noundef nonnull align 8 dereferenceable(24) %18)
  %19 = getelementptr inbounds i8, ptr %0, i64 8
  store i8 1, ptr %19, align 8, !tbaa !5
  ret void

20:                                               ; preds = %.lr.ph61, %._crit_edge
  %.03559 = phi i32 [ 1, %.lr.ph61 ], [ %29, %._crit_edge ]
  %21 = call noundef zeroext i1 @_ZNKSt6vectorISt5tupleIJiiiEESaIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %14) #7
  br i1 %21, label %22, label %24

22:                                               ; preds = %20
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #7
  store i32 -1, ptr %5, align 4, !tbaa !39
  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
  %23 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorISt5tupleIJiiiEESaIS1_EE12emplace_backIJiiiEEERS1_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %14, ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 4 dereferenceable(4) %6, ptr noundef nonnull align 4 dereferenceable(4) %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
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #7
  br label %24

24:                                               ; preds = %22, %20
  %25 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK12CppBenchmark8Settings6paramsEv(ptr noundef nonnull align 8 dereferenceable(121) %12) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #7
  %26 = call ptr @_ZNKSt6vectorISt5tupleIJiiiEESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %25) #7
  store ptr %26, ptr %8, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #7
  %27 = call ptr @_ZNKSt6vectorISt5tupleIJiiiEESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %25) #7
  store ptr %27, ptr %9, align 8
  %28 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKSt5tupleIJiiiEESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %9) #7
  br i1 %28, label %.lr.ph57, label %._crit_edge

._crit_edge:                                      ; preds = %124, %24
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #7
  call void @_ZN12CppBenchmark13BenchmarkBase22UpdateBenchmarkMetricsERSt6vectorISt10shared_ptrINS_9PhaseCoreEESaIS4_EE(ptr noundef nonnull align 8 dereferenceable(24) %17)
  %29 = add nuw nsw i32 %.03559, 1
  %30 = call noundef i32 @_ZNK12CppBenchmark8Settings8attemptsEv(ptr noundef nonnull align 8 dereferenceable(121) %12) #7
  %.not.not = icmp slt i32 %.03559, %30
  br i1 %.not.not, label %20, label %._crit_edge62, !llvm.loop !40

.lr.ph57:                                         ; preds = %24, %124
  %31 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKSt5tupleIJiiiEESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #7
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %10) #7
  %32 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm0EJiiiEERKNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERKS4_(ptr noundef nonnull align 4 dereferenceable(12) %31) #7
  %33 = load i32, ptr %32, align 4, !tbaa !39
  %34 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm1EJiiiEERKNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERKS4_(ptr noundef nonnull align 4 dereferenceable(12) %31) #7
  %35 = load i32, ptr %34, align 4, !tbaa !39
  %36 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm2EJiiiEERKNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERKS4_(ptr noundef nonnull align 4 dereferenceable(12) %31) #7
  %37 = load i32, ptr %36, align 4, !tbaa !39
  call void @_ZN12CppBenchmark7ContextC2Eiii(ptr noundef nonnull align 8 dereferenceable(56) %10, i32 noundef %33, i32 noundef %35, i32 noundef %37) #7
  invoke void @_ZN12CppBenchmark13BenchmarkBase20InitBenchmarkContextERNS_7ContextE(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(56) %10)
          to label %38 unwind label %72

38:                                               ; preds = %.lr.ph57
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %11) #7
  %39 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK12CppBenchmark8Settings7latencyEv(ptr noundef nonnull align 8 dereferenceable(121) %12) #7
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 8 dereferenceable(24) %39, i64 24, i1 false)
  %40 = call noundef zeroext i1 @_ZNK12CppBenchmark8Settings12latency_autoEv(ptr noundef nonnull align 8 dereferenceable(121) %12) #7
  %41 = load ptr, ptr %15, align 8, !tbaa !42
  call void @_ZN12CppBenchmark9PhaseCore20InitLatencyHistogramERKSt5tupleIJlliEE(ptr noundef nonnull align 8 dereferenceable(944) %41, ptr noundef nonnull align 8 dereferenceable(24) %11) #7
  %42 = load i32, ptr %1, align 4, !tbaa !39
  %43 = add nsw i32 %42, 1
  store i32 %43, ptr %1, align 4, !tbaa !39
  %44 = load ptr, ptr %3, align 8, !tbaa !48
  %45 = getelementptr inbounds i8, ptr %44, i64 16
  %46 = load ptr, ptr %45, align 8
  invoke void %46(ptr noundef nonnull align 8 dereferenceable(8) %3, i32 noundef %43, i32 noundef %2, ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(56) %10, i32 noundef %.03559)
          to label %47 unwind label %74

47:                                               ; preds = %38
  %48 = load ptr, ptr %0, align 8, !tbaa !48
  %49 = getelementptr i8, ptr %48, i64 -24
  %50 = load i64, ptr %49, align 8
  %51 = getelementptr inbounds i8, ptr %0, i64 %50
  %52 = load ptr, ptr %51, align 8, !tbaa !48
  %53 = getelementptr inbounds i8, ptr %52, i64 16
  %54 = load ptr, ptr %53, align 8
  invoke void %54(ptr noundef nonnull align 8 dereferenceable(8) %51, ptr noundef nonnull align 8 dereferenceable(56) %10)
          to label %55 unwind label %74

55:                                               ; preds = %47
  %56 = call noundef zeroext i1 @_ZNK12CppBenchmark8Settings8infiniteEv(ptr noundef nonnull align 8 dereferenceable(121) %12) #7
  %57 = call noundef i64 @_ZNK12CppBenchmark8Settings8durationEv(ptr noundef nonnull align 8 dereferenceable(121) %12) #7
  %58 = call noundef i64 @_ZNK12CppBenchmark8Settings10operationsEv(ptr noundef nonnull align 8 dereferenceable(121) %12) #7
  %59 = icmp sgt i64 %57, 0
  br i1 %59, label %.preheader, label %82

.preheader:                                       ; preds = %55, %67
  %.052 = phi i64 [ %69, %67 ], [ 0, %55 ]
  %.03151 = phi i64 [ %70, %67 ], [ 0, %55 ]
  %60 = invoke noundef i64 @_ZN12CppBenchmark6System9TimestampEv()
          to label %61 unwind label %76

61:                                               ; preds = %.preheader
  %62 = load ptr, ptr %0, align 8, !tbaa !48
  %63 = getelementptr inbounds i8, ptr %62, i64 32
  %64 = load ptr, ptr %63, align 8
  invoke void %64(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(56) %10)
          to label %65 unwind label %76

65:                                               ; preds = %61
  %66 = invoke noundef i64 @_ZN12CppBenchmark6System9TimestampEv()
          to label %67 unwind label %76

67:                                               ; preds = %65
  %68 = sub i64 %.052, %60
  %69 = add i64 %68, %66
  %70 = add i64 %.03151, 1
  %71 = icmp ult i64 %69, 1000000000
  br i1 %71, label %.preheader, label %78, !llvm.loop !50

72:                                               ; preds = %.lr.ph57
  %73 = landingpad { ptr, i32 }
          cleanup
  br label %127

74:                                               ; preds = %47, %38
  %75 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit

76:                                               ; preds = %65, %61, %.preheader
  %77 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit

78:                                               ; preds = %67
  %79 = mul i64 %57, 1000000000
  %80 = mul i64 %79, %70
  %81 = udiv i64 %80, %69
  br label %82

82:                                               ; preds = %78, %55
  %.033 = phi i64 [ %81, %78 ], [ %58, %55 ]
  %83 = load ptr, ptr %15, align 8, !tbaa !42
  call void @_ZN12CppBenchmark9PhaseCore22StartCollectingMetricsEv(ptr noundef nonnull align 8 dereferenceable(944) %83) #7
  %84 = call noundef zeroext i1 @_ZNK12CppBenchmark7Context8canceledEv(ptr noundef nonnull align 8 dereferenceable(56) %10) #7
  %.not4653 = xor i1 %84, true
  %85 = icmp sgt i64 %.033, 0
  %86 = select i1 %56, i1 true, i1 %85
  %or.cond54 = select i1 %.not4653, i1 %86, i1 false
  br i1 %or.cond54, label %.lr.ph, label %.critedge

.lr.ph:                                           ; preds = %82
  br i1 %40, label %.lr.ph.split.us, label %.lr.ph.split

.lr.ph.split.us:                                  ; preds = %.lr.ph, %96
  %.13455.us = phi i64 [ %98, %96 ], [ %.033, %.lr.ph ]
  %87 = load ptr, ptr %16, align 8, !tbaa !51
  call void @_ZN12CppBenchmark12PhaseMetrics13AddOperationsEl(ptr noundef nonnull align 8 dereferenceable(412) %87, i64 noundef 1) #7
  %88 = invoke noundef i64 @_ZN12CppBenchmark6System9TimestampEv()
          to label %89 unwind label %.loopexit.split.us

89:                                               ; preds = %.lr.ph.split.us
  %90 = load ptr, ptr %0, align 8, !tbaa !48
  %91 = getelementptr inbounds i8, ptr %90, i64 32
  %92 = load ptr, ptr %91, align 8
  invoke void %92(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(56) %10)
          to label %93 unwind label %.loopexit.split.us

93:                                               ; preds = %89
  %94 = load ptr, ptr %16, align 8, !tbaa !51
  %95 = invoke noundef i64 @_ZN12CppBenchmark6System9TimestampEv()
          to label %96 unwind label %.loopexit.split.us

96:                                               ; preds = %93
  %97 = sub i64 %95, %88
  call void @_ZN12CppBenchmark12PhaseMetrics10AddLatencyEl(ptr noundef nonnull align 8 dereferenceable(412) %94, i64 noundef %97) #7
  %98 = add nsw i64 %.13455.us, -1
  %99 = call noundef zeroext i1 @_ZNK12CppBenchmark7Context8canceledEv(ptr noundef nonnull align 8 dereferenceable(56) %10) #7
  %.not46.us = xor i1 %99, true
  %100 = icmp sgt i64 %.13455.us, 1
  %101 = select i1 %56, i1 true, i1 %100
  %or.cond.us = select i1 %.not46.us, i1 %101, i1 false
  br i1 %or.cond.us, label %.lr.ph.split.us, label %.critedge, !llvm.loop !52

.loopexit.split.us:                               ; preds = %93, %89, %.lr.ph.split.us
  %lpad.loopexit.us = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit

.lr.ph.split:                                     ; preds = %.lr.ph, %106
  %.13455 = phi i64 [ %107, %106 ], [ %.033, %.lr.ph ]
  %102 = load ptr, ptr %16, align 8, !tbaa !51
  call void @_ZN12CppBenchmark12PhaseMetrics13AddOperationsEl(ptr noundef nonnull align 8 dereferenceable(412) %102, i64 noundef 1) #7
  %103 = load ptr, ptr %0, align 8, !tbaa !48
  %104 = getelementptr inbounds i8, ptr %103, i64 32
  %105 = load ptr, ptr %104, align 8
  invoke void %105(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(56) %10)
          to label %106 unwind label %.loopexit.split

.loopexit.split:                                  ; preds = %.lr.ph.split
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit

.loopexit.split-lp:                               ; preds = %.critedge, %119
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit

106:                                              ; preds = %.lr.ph.split
  %107 = add nsw i64 %.13455, -1
  %108 = call noundef zeroext i1 @_ZNK12CppBenchmark7Context8canceledEv(ptr noundef nonnull align 8 dereferenceable(56) %10) #7
  %.not46 = xor i1 %108, true
  %109 = icmp sgt i64 %.13455, 1
  %110 = select i1 %56, i1 true, i1 %109
  %or.cond = select i1 %.not46, i1 %110, i1 false
  br i1 %or.cond, label %.lr.ph.split, label %.critedge, !llvm.loop !52

.critedge:                                        ; preds = %106, %96, %82
  %111 = load ptr, ptr %15, align 8, !tbaa !42
  call void @_ZN12CppBenchmark9PhaseCore21StopCollectingMetricsEv(ptr noundef nonnull align 8 dereferenceable(944) %111) #7
  %112 = load ptr, ptr %0, align 8, !tbaa !48
  %113 = getelementptr i8, ptr %112, i64 -24
  %114 = load i64, ptr %113, align 8
  %115 = getelementptr inbounds i8, ptr %0, i64 %114
  %116 = load ptr, ptr %115, align 8, !tbaa !48
  %117 = getelementptr inbounds i8, ptr %116, i64 24
  %118 = load ptr, ptr %117, align 8
  invoke void %118(ptr noundef nonnull align 8 dereferenceable(8) %115, ptr noundef nonnull align 8 dereferenceable(56) %10)
          to label %119 unwind label %.loopexit.split-lp

119:                                              ; preds = %.critedge
  %120 = load i32, ptr %1, align 4, !tbaa !39
  %121 = load ptr, ptr %3, align 8, !tbaa !48
  %122 = getelementptr inbounds i8, ptr %121, i64 24
  %123 = load ptr, ptr %122, align 8
  invoke void %123(ptr noundef nonnull align 8 dereferenceable(8) %3, i32 noundef %120, i32 noundef %2, ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(56) %10, i32 noundef %.03559)
          to label %124 unwind label %.loopexit.split-lp

124:                                              ; preds = %119
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #7
  call void @_ZN12CppBenchmark7ContextD2Ev(ptr noundef nonnull align 8 dereferenceable(56) %10) #7
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %10) #7
  %125 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKSt5tupleIJiiiEESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #7
  %126 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKSt5tupleIJiiiEESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %9) #7
  br i1 %126, label %.lr.ph57, label %._crit_edge

.loopexit:                                        ; preds = %.loopexit.split-lp, %.loopexit.split.us, %.loopexit.split, %76, %74
  %.pn.pn = phi { ptr, i32 } [ %75, %74 ], [ %77, %76 ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ], [ %lpad.loopexit, %.loopexit.split ], [ %lpad.loopexit.us, %.loopexit.split.us ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #7
  br label %127

127:                                              ; preds = %.loopexit, %72
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %.loopexit ], [ %73, %72 ]
  call void @_ZN12CppBenchmark7ContextD2Ev(ptr noundef nonnull align 8 dereferenceable(56) %10) #7
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #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(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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #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 #3

; 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 @_ZN12CppBenchmark7ContextC2Eiii(ptr noundef nonnull align 8 dereferenceable(56), 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 #4

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 void @_ZN12CppBenchmark9PhaseCore20InitLatencyHistogramERKSt5tupleIJlliEE(ptr noundef nonnull align 8 dereferenceable(944), ptr noundef nonnull align 8 dereferenceable(24)) 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

declare noundef i64 @_ZN12CppBenchmark6System9TimestampEv() local_unnamed_addr #4

; 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 noundef zeroext i1 @_ZNK12CppBenchmark7Context8canceledEv(ptr noundef nonnull align 8 dereferenceable(56)) 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: nounwind
declare void @_ZN12CppBenchmark12PhaseMetrics10AddLatencyEl(ptr noundef nonnull align 8 dereferenceable(412), i64 noundef) local_unnamed_addr #6

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

declare void @_ZN12CppBenchmark13BenchmarkBase22UpdateBenchmarkMetricsERSt6vectorISt10shared_ptrINS_9PhaseCoreEESaIS4_EE(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #4

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

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

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 = { 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 #4 = { "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, !12, i64 24}
!43 = !{!"_ZTSN12CppBenchmark7ContextE", !44, i64 0, !15, i64 8, !15, i64 12, !15, i64 16, !12, i64 24, !12, i64 32, !45, i64 40}
!44 = !{!"_ZTSN12CppBenchmark5PhaseE"}
!45 = !{!"_ZTSSt10shared_ptrISt6atomicIbEE", !46, i64 0}
!46 = !{!"_ZTSSt12__shared_ptrISt6atomicIbELN9__gnu_cxx12_Lock_policyE2EE", !12, i64 0, !47, i64 8}
!47 = !{!"_ZTSSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EE", !12, i64 0}
!48 = !{!49, !49, i64 0}
!49 = !{!"vtable pointer", !9, i64 0}
!50 = distinct !{!50, !41}
!51 = !{!43, !12, i64 32}
!52 = distinct !{!52, !41}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass