; LLVM IR from microsoft/X-Mem :: src/Benchmark.ll (ZN4xmem9Benchmark14computeMetricsEv)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.std::vector.8" = type { %"struct.std::_Vector_base.9" }
%"struct.std::_Vector_base.9" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<double, std::pair<const double, unsigned int>, std::_Select1st<std::pair<const double, unsigned int>>, std::less<double>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<double, std::pair<const double, unsigned int>, std::_Select1st<std::pair<const double, unsigned int>>, std::less<double>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"struct.std::_Rb_tree_const_iterator" = type { ptr }
%"class.xmem::Benchmark" = type <{ ptr, ptr, i64, i32, i32, i32, i32, i32, i32, i32, i32, %"class.std::vector", %"class.std::vector.3", %"class.std::vector.8", double, double, double, double, double, double, double, double, double, %"class.std::__cxx11::basic_string", %"class.std::vector.8", %"class.std::vector.8", %"class.std::__cxx11::basic_string", i8, i8, i8, [5 x i8] }>
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<xmem::PowerReader *, std::allocator<xmem::PowerReader *>>::_Vector_impl" }
%"struct.std::_Vector_base<xmem::PowerReader *, std::allocator<xmem::PowerReader *>>::_Vector_impl" = type { %"struct.std::_Vector_base<xmem::PowerReader *, std::allocator<xmem::PowerReader *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<xmem::PowerReader *, std::allocator<xmem::PowerReader *>>::_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<xmem::Thread *, std::allocator<xmem::Thread *>>::_Vector_impl" }
%"struct.std::_Vector_base<xmem::Thread *, std::allocator<xmem::Thread *>>::_Vector_impl" = type { %"struct.std::_Vector_base<xmem::Thread *, std::allocator<xmem::Thread *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<xmem::Thread *, std::allocator<xmem::Thread *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"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] }
%"struct.std::pair" = type <{ double, i32, [4 x i8] }>

declare i32 @__gxx_personality_v0(...)

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4xmem9Benchmark14computeMetricsEv(ptr noundef nonnull align 8 dereferenceable(315) %0) #2 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca %"class.std::vector.8", align 8
  %5 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %6 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca %"class.std::map", align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %13 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %14 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %15 = load ptr, ptr %2, align 8
  %16 = getelementptr inbounds %"class.xmem::Benchmark", ptr %15, i32 0, i32 28
  %17 = load i8, ptr %16, align 1, !tbaa !9, !range !32, !noundef !33
  %18 = trunc i8 %17 to i1
  br i1 %18, label %19, label %142

19:                                               ; preds = %1
  %20 = getelementptr inbounds %"class.xmem::Benchmark", ptr %15, i32 0, i32 14
  store double 0.000000e+00, ptr %20, align 8, !tbaa !34
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #4
  store i32 0, ptr %3, align 4, !tbaa !35
  br label %21

21:                                               ; preds = %36, %19
  %22 = load i32, ptr %3, align 4, !tbaa !35
  %23 = getelementptr inbounds %"class.xmem::Benchmark", ptr %15, i32 0, i32 3
  %24 = load i32, ptr %23, align 8, !tbaa !36
  %25 = icmp ult i32 %22, %24
  br i1 %25, label %27, label %26

26:                                               ; preds = %21
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #4
  br label %39

27:                                               ; preds = %21
  %28 = getelementptr inbounds %"class.xmem::Benchmark", ptr %15, i32 0, i32 13
  %29 = load i32, ptr %3, align 4, !tbaa !35
  %30 = zext i32 %29 to i64
  %31 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %28, i64 noundef %30) #4
  %32 = load double, ptr %31, align 8, !tbaa !37
  %33 = getelementptr inbounds %"class.xmem::Benchmark", ptr %15, i32 0, i32 14
  %34 = load double, ptr %33, align 8, !tbaa !34
  %35 = fadd double %34, %32
  store double %35, ptr %33, align 8, !tbaa !34
  br label %36

36:                                               ; preds = %27
  %37 = load i32, ptr %3, align 4, !tbaa !35
  %38 = add i32 %37, 1
  store i32 %38, ptr %3, align 4, !tbaa !35
  br label %21, !llvm.loop !38

39:                                               ; preds = %26
  %40 = getelementptr inbounds %"class.xmem::Benchmark", ptr %15, i32 0, i32 3
  %41 = load i32, ptr %40, align 8, !tbaa !36
  %42 = uitofp i32 %41 to double
  %43 = getelementptr inbounds %"class.xmem::Benchmark", ptr %15, i32 0, i32 14
  %44 = load double, ptr %43, align 8, !tbaa !34
  %45 = fdiv double %44, %42
  store double %45, ptr %43, align 8, !tbaa !34
  call void @llvm.lifetime.start.p0(i64 24, ptr %4) #4
  %46 = getelementptr inbounds %"class.xmem::Benchmark", ptr %15, i32 0, i32 13
  call void @_ZNSt6vectorIdSaIdEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(24) %46)
  %47 = call ptr @_ZNSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #4
  %48 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %5, i32 0, i32 0
  store ptr %47, ptr %48, align 8
  %49 = call ptr @_ZNSt6vectorIdSaIdEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #4
  %50 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %6, i32 0, i32 0
  store ptr %49, ptr %50, align 8
  %51 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %5, i32 0, i32 0
  %52 = load ptr, ptr %51, align 8
  %53 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %6, i32 0, i32 0
  %54 = load ptr, ptr %53, align 8
  invoke void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPdSt6vectorIdSaIdEEEEEvT_S7_(ptr %52, ptr %54)
          to label %55 unwind label %96

55:                                               ; preds = %39
  %56 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEE5frontEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #4
  %57 = load double, ptr %56, align 8, !tbaa !37
  %58 = getelementptr inbounds %"class.xmem::Benchmark", ptr %15, i32 0, i32 15
  store double %57, ptr %58, align 8, !tbaa !40
  %59 = call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #4
  %60 = udiv i64 %59, 4
  %61 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %60) #4
  %62 = load double, ptr %61, align 8, !tbaa !37
  %63 = getelementptr inbounds %"class.xmem::Benchmark", ptr %15, i32 0, i32 16
  store double %62, ptr %63, align 8, !tbaa !41
  %64 = call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #4
  %65 = mul i64 %64, 3
  %66 = udiv i64 %65, 4
  %67 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %66) #4
  %68 = load double, ptr %67, align 8, !tbaa !37
  %69 = getelementptr inbounds %"class.xmem::Benchmark", ptr %15, i32 0, i32 18
  store double %68, ptr %69, align 8, !tbaa !42
  %70 = call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #4
  %71 = udiv i64 %70, 2
  %72 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %71) #4
  %73 = load double, ptr %72, align 8, !tbaa !37
  %74 = getelementptr inbounds %"class.xmem::Benchmark", ptr %15, i32 0, i32 17
  store double %73, ptr %74, align 8, !tbaa !43
  %75 = call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #4
  %76 = mul i64 %75, 95
  %77 = udiv i64 %76, 100
  %78 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %77) #4
  %79 = load double, ptr %78, align 8, !tbaa !37
  %80 = getelementptr inbounds %"class.xmem::Benchmark", ptr %15, i32 0, i32 19
  store double %79, ptr %80, align 8, !tbaa !44
  %81 = call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #4
  %82 = mul i64 %81, 99
  %83 = udiv i64 %82, 100
  %84 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %83) #4
  %85 = load double, ptr %84, align 8, !tbaa !37
  %86 = getelementptr inbounds %"class.xmem::Benchmark", ptr %15, i32 0, i32 20
  store double %85, ptr %86, align 8, !tbaa !45
  %87 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #4
  %88 = load double, ptr %87, align 8, !tbaa !37
  %89 = getelementptr inbounds %"class.xmem::Benchmark", ptr %15, i32 0, i32 21
  store double %88, ptr %89, align 8, !tbaa !46
  call void @llvm.lifetime.start.p0(i64 48, ptr %9) #4
  call void @_ZNSt3mapIdjSt4lessIdESaISt4pairIKdjEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %9) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  store i32 0, ptr %10, align 4, !tbaa !35
  br label %90

90:                                               ; preds = %109, %55
  %91 = load i32, ptr %10, align 4, !tbaa !35
  %92 = getelementptr inbounds %"class.xmem::Benchmark", ptr %15, i32 0, i32 3
  %93 = load i32, ptr %92, align 8, !tbaa !36
  %94 = icmp ult i32 %91, %93
  br i1 %94, label %100, label %95

95:                                               ; preds = %90
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  br label %116

96:                                               ; preds = %39
  %97 = landingpad { ptr, i32 }
          cleanup
  %98 = extractvalue { ptr, i32 } %97, 0
  store ptr %98, ptr %7, align 8
  %99 = extractvalue { ptr, i32 } %97, 1
  store i32 %99, ptr %8, align 4
  br label %141

100:                                              ; preds = %90
  %101 = getelementptr inbounds %"class.xmem::Benchmark", ptr %15, i32 0, i32 13
  %102 = load i32, ptr %10, align 4, !tbaa !35
  %103 = zext i32 %102 to i64
  %104 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %101, i64 noundef %103) #4
  %105 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIdjSt4lessIdESaISt4pairIKdjEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %9, ptr noundef nonnull align 8 dereferenceable(8) %104)
          to label %106 unwind label %112

106:                                              ; preds = %100
  %107 = load i32, ptr %105, align 4, !tbaa !35
  %108 = add i32 %107, 1
  store i32 %108, ptr %105, align 4, !tbaa !35
  br label %109

109:                                              ; preds = %106
  %110 = load i32, ptr %10, align 4, !tbaa !35
  %111 = add i32 %110, 1
  store i32 %111, ptr %10, align 4, !tbaa !35
  br label %90, !llvm.loop !47

112:                                              ; preds = %100
  %113 = landingpad { ptr, i32 }
          cleanup
  %114 = extractvalue { ptr, i32 } %113, 0
  store ptr %114, ptr %7, align 8
  %115 = extractvalue { ptr, i32 } %113, 1
  store i32 %115, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  call void @_ZNSt3mapIdjSt4lessIdESaISt4pairIKdjEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %9) #4
  call void @llvm.lifetime.end.p0(i64 48, ptr %9) #4
  br label %141

116:                                              ; preds = %95
  %117 = getelementptr inbounds %"class.xmem::Benchmark", ptr %15, i32 0, i32 22
  store double 0.000000e+00, ptr %117, align 8, !tbaa !48
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  store i32 0, ptr %11, align 4, !tbaa !35
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  %118 = call ptr @_ZNKSt3mapIdjSt4lessIdESaISt4pairIKdjEEE6cbeginEv(ptr noundef nonnull align 8 dereferenceable(48) %9) #4
  %119 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %12, i32 0, i32 0
  store ptr %118, ptr %119, align 8
  br label %120

120:                                              ; preds = %137, %116
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  %121 = call ptr @_ZNKSt3mapIdjSt4lessIdESaISt4pairIKdjEEE4cendEv(ptr noundef nonnull align 8 dereferenceable(48) %9) #4
  %122 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %13, i32 0, i32 0
  store ptr %121, ptr %122, align 8
  %123 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorISt4pairIKdjEES5_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  br i1 %123, label %125, label %124

124:                                              ; preds = %120
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  br label %140

125:                                              ; preds = %120
  %126 = call noundef ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIKdjEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #4
  %127 = getelementptr inbounds %"struct.std::pair", ptr %126, i32 0, i32 1
  %128 = load i32, ptr %127, align 8, !tbaa !49
  %129 = load i32, ptr %11, align 4, !tbaa !35
  %130 = icmp ugt i32 %128, %129
  br i1 %130, label %131, label %136

131:                                              ; preds = %125
  %132 = call noundef ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIKdjEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #4
  %133 = getelementptr inbounds %"struct.std::pair", ptr %132, i32 0, i32 0
  %134 = load double, ptr %133, align 8, !tbaa !51
  %135 = getelementptr inbounds %"class.xmem::Benchmark", ptr %15, i32 0, i32 22
  store double %134, ptr %135, align 8, !tbaa !48
  br label %136

136:                                              ; preds = %131, %125
  br label %137

137:                                              ; preds = %136
  %138 = call ptr @_ZNSt23_Rb_tree_const_iteratorISt4pairIKdjEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %12, i32 noundef 0) #4
  %139 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %14, i32 0, i32 0
  store ptr %138, ptr %139, align 8
  br label %120, !llvm.loop !52

140:                                              ; preds = %124
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  call void @_ZNSt3mapIdjSt4lessIdESaISt4pairIKdjEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %9) #4
  call void @llvm.lifetime.end.p0(i64 48, ptr %9) #4
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %4) #4
  br label %142

141:                                              ; preds = %112, %96
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %4) #4
  br label %143

142:                                              ; preds = %140, %1
  ret void

143:                                              ; preds = %141
  %144 = load ptr, ptr %7, align 8
  %145 = load i32, ptr %8, align 4
  %146 = insertvalue { ptr, i32 } poison, ptr %144, 0
  %147 = insertvalue { ptr, i32 } %146, i32 %145, 1
  resume { ptr, i32 } %147
}

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIdSaIdEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPdSt6vectorIdSaIdEEEEEvT_S7_(ptr, ptr) #3

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

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

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

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

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

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

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

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

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

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !31, i64 313}
!10 = !{!"_ZTSN4xmem9BenchmarkE", !6, i64 8, !11, i64 16, !12, i64 24, !12, i64 28, !12, i64 32, !12, i64 36, !13, i64 40, !14, i64 44, !15, i64 48, !12, i64 52, !16, i64 56, !20, i64 80, !24, i64 104, !28, i64 128, !28, i64 136, !28, i64 144, !28, i64 152, !28, i64 160, !28, i64 168, !28, i64 176, !28, i64 184, !28, i64 192, !29, i64 200, !24, i64 232, !24, i64 256, !29, i64 280, !31, i64 312, !31, i64 313, !31, i64 314}
!11 = !{!"long", !7, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!"_ZTSN4xmem14pattern_mode_tE", !7, i64 0}
!14 = !{!"_ZTSN4xmem9rw_mode_tE", !7, i64 0}
!15 = !{!"_ZTSN4xmem12chunk_size_tE", !7, i64 0}
!16 = !{!"_ZTSSt6vectorIPN4xmem11PowerReaderESaIS2_EE", !17, i64 0}
!17 = !{!"_ZTSSt12_Vector_baseIPN4xmem11PowerReaderESaIS2_EE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIPN4xmem11PowerReaderESaIS2_EE12_Vector_implE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIPN4xmem11PowerReaderESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!20 = !{!"_ZTSSt6vectorIPN4xmem6ThreadESaIS2_EE", !21, i64 0}
!21 = !{!"_ZTSSt12_Vector_baseIPN4xmem6ThreadESaIS2_EE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseIPN4xmem6ThreadESaIS2_EE12_Vector_implE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseIPN4xmem6ThreadESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!24 = !{!"_ZTSSt6vectorIdSaIdEE", !25, i64 0}
!25 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !26, i64 0}
!26 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !27, i64 0}
!27 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!28 = !{!"double", !7, i64 0}
!29 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !30, i64 0, !11, i64 8, !7, i64 16}
!30 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!31 = !{!"bool", !7, i64 0}
!32 = !{i8 0, i8 2}
!33 = !{}
!34 = !{!10, !28, i64 128}
!35 = !{!12, !12, i64 0}
!36 = !{!10, !12, i64 24}
!37 = !{!28, !28, i64 0}
!38 = distinct !{!38, !39}
!39 = !{!"llvm.loop.mustprogress"}
!40 = !{!10, !28, i64 136}
!41 = !{!10, !28, i64 144}
!42 = !{!10, !28, i64 160}
!43 = !{!10, !28, i64 152}
!44 = !{!10, !28, i64 168}
!45 = !{!10, !28, i64 176}
!46 = !{!10, !28, i64 184}
!47 = distinct !{!47, !39}
!48 = !{!10, !28, i64 192}
!49 = !{!50, !12, i64 8}
!50 = !{!"_ZTSSt4pairIKdjE", !28, i64 0, !12, i64 8}
!51 = !{!50, !28, i64 0}
!52 = distinct !{!52, !39}


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

%"class.std::vector.8" = type { %"struct.std::_Vector_base.9" }
%"struct.std::_Vector_base.9" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<double, std::pair<const double, unsigned int>, std::_Select1st<std::pair<const double, unsigned int>>, std::less<double>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<double, std::pair<const double, unsigned int>, std::_Select1st<std::pair<const double, unsigned int>>, std::less<double>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"struct.std::_Rb_tree_const_iterator" = type { ptr }

declare i32 @__gxx_personality_v0(...)

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4xmem9Benchmark14computeMetricsEv(ptr noundef nonnull align 8 dereferenceable(315) %0) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.std::vector.8", align 8
  %3 = alloca %"class.std::map", align 8
  %4 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %5 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %6 = getelementptr inbounds i8, ptr %0, i64 313
  %7 = load i8, ptr %6, align 1, !tbaa !5, !range !31, !noundef !32
  %8 = trunc nuw i8 %7 to i1
  br i1 %8, label %9, label %91

9:                                                ; preds = %1
  %10 = getelementptr inbounds i8, ptr %0, i64 128
  store double 0.000000e+00, ptr %10, align 8, !tbaa !33
  %11 = getelementptr inbounds i8, ptr %0, i64 24
  %12 = load i32, ptr %11, align 8, !tbaa !34
  %.not25 = icmp eq i32 %12, 0
  br i1 %.not25, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %9
  %13 = getelementptr inbounds i8, ptr %0, i64 104
  br label %20

._crit_edge.loopexit:                             ; preds = %20
  %14 = uitofp i32 %25 to double
  %15 = fdiv double %24, %14
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %9
  %16 = phi double [ 0x7FF8000000000000, %9 ], [ %15, %._crit_edge.loopexit ]
  store double %16, ptr %10, align 8, !tbaa !33
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %2) #4
  %17 = getelementptr inbounds i8, ptr %0, i64 104
  call void @_ZNSt6vectorIdSaIdEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(24) %17)
  %18 = call ptr @_ZNSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #4
  %19 = call ptr @_ZNSt6vectorIdSaIdEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #4
  invoke void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPdSt6vectorIdSaIdEEEEEvT_S7_(ptr %18, ptr %19)
          to label %28 unwind label %68

20:                                               ; preds = %.lr.ph, %20
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %20 ]
  %21 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %indvars.iv) #4
  %22 = load double, ptr %21, align 8, !tbaa !35
  %23 = load double, ptr %10, align 8, !tbaa !33
  %24 = fadd double %22, %23
  store double %24, ptr %10, align 8, !tbaa !33
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %25 = load i32, ptr %11, align 8, !tbaa !34
  %26 = zext i32 %25 to i64
  %27 = icmp ult i64 %indvars.iv.next, %26
  br i1 %27, label %20, label %._crit_edge.loopexit, !llvm.loop !36

28:                                               ; preds = %._crit_edge
  %29 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEE5frontEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #4
  %30 = load double, ptr %29, align 8, !tbaa !35
  %31 = getelementptr inbounds i8, ptr %0, i64 136
  store double %30, ptr %31, align 8, !tbaa !38
  %32 = call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #4
  %33 = lshr i64 %32, 2
  %34 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %33) #4
  %35 = load double, ptr %34, align 8, !tbaa !35
  %36 = getelementptr inbounds i8, ptr %0, i64 144
  store double %35, ptr %36, align 8, !tbaa !39
  %37 = call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #4
  %38 = mul i64 %37, 3
  %39 = lshr i64 %38, 2
  %40 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %39) #4
  %41 = load double, ptr %40, align 8, !tbaa !35
  %42 = getelementptr inbounds i8, ptr %0, i64 160
  store double %41, ptr %42, align 8, !tbaa !40
  %43 = call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #4
  %44 = lshr i64 %43, 1
  %45 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %44) #4
  %46 = load double, ptr %45, align 8, !tbaa !35
  %47 = getelementptr inbounds i8, ptr %0, i64 152
  store double %46, ptr %47, align 8, !tbaa !41
  %48 = call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #4
  %49 = mul i64 %48, 95
  %50 = udiv i64 %49, 100
  %51 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %50) #4
  %52 = load double, ptr %51, align 8, !tbaa !35
  %53 = getelementptr inbounds i8, ptr %0, i64 168
  store double %52, ptr %53, align 8, !tbaa !42
  %54 = call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #4
  %55 = mul i64 %54, 99
  %56 = udiv i64 %55, 100
  %57 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %56) #4
  %58 = load double, ptr %57, align 8, !tbaa !35
  %59 = getelementptr inbounds i8, ptr %0, i64 176
  store double %58, ptr %59, align 8, !tbaa !43
  %60 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #4
  %61 = load double, ptr %60, align 8, !tbaa !35
  %62 = getelementptr inbounds i8, ptr %0, i64 184
  store double %61, ptr %62, align 8, !tbaa !44
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %3) #4
  call void @_ZNSt3mapIdjSt4lessIdESaISt4pairIKdjEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %3) #4
  %63 = load i32, ptr %11, align 8, !tbaa !34
  %.not26 = icmp eq i32 %63, 0
  br i1 %.not26, label %._crit_edge21, label %.lr.ph20

._crit_edge21:                                    ; preds = %72, %28
  %64 = getelementptr inbounds i8, ptr %0, i64 192
  store double 0.000000e+00, ptr %64, align 8, !tbaa !45
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #4
  %65 = call ptr @_ZNKSt3mapIdjSt4lessIdESaISt4pairIKdjEEE6cbeginEv(ptr noundef nonnull align 8 dereferenceable(48) %3) #4
  store ptr %65, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #4
  %66 = call ptr @_ZNKSt3mapIdjSt4lessIdESaISt4pairIKdjEEE4cendEv(ptr noundef nonnull align 8 dereferenceable(48) %3) #4
  store ptr %66, ptr %5, align 8
  %67 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorISt4pairIKdjEES5_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #4
  br i1 %67, label %.lr.ph23, label %._crit_edge24

68:                                               ; preds = %._crit_edge
  %69 = landingpad { ptr, i32 }
          cleanup
  br label %90

.lr.ph20:                                         ; preds = %28, %72
  %indvars.iv29 = phi i64 [ %indvars.iv.next30, %72 ], [ 0, %28 ]
  %70 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %17, i64 noundef %indvars.iv29) #4
  %71 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIdjSt4lessIdESaISt4pairIKdjEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %3, ptr noundef nonnull align 8 dereferenceable(8) %70)
          to label %72 unwind label %78

72:                                               ; preds = %.lr.ph20
  %73 = load i32, ptr %71, align 4, !tbaa !46
  %74 = add i32 %73, 1
  store i32 %74, ptr %71, align 4, !tbaa !46
  %indvars.iv.next30 = add nuw nsw i64 %indvars.iv29, 1
  %75 = load i32, ptr %11, align 8, !tbaa !34
  %76 = zext i32 %75 to i64
  %77 = icmp ult i64 %indvars.iv.next30, %76
  br i1 %77, label %.lr.ph20, label %._crit_edge21, !llvm.loop !47

78:                                               ; preds = %.lr.ph20
  %79 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt3mapIdjSt4lessIdESaISt4pairIKdjEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %3) #4
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %3) #4
  br label %90

._crit_edge24:                                    ; preds = %86, %._crit_edge21
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #4
  call void @_ZNSt3mapIdjSt4lessIdESaISt4pairIKdjEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %3) #4
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %3) #4
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #4
  br label %91

.lr.ph23:                                         ; preds = %._crit_edge21, %86
  %80 = call noundef ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIKdjEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #4
  %81 = getelementptr inbounds i8, ptr %80, i64 8
  %82 = load i32, ptr %81, align 8, !tbaa !48
  %.not = icmp eq i32 %82, 0
  br i1 %.not, label %86, label %83

83:                                               ; preds = %.lr.ph23
  %84 = call noundef ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIKdjEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #4
  %85 = load double, ptr %84, align 8, !tbaa !50
  store double %85, ptr %64, align 8, !tbaa !45
  br label %86

86:                                               ; preds = %.lr.ph23, %83
  %87 = call ptr @_ZNSt23_Rb_tree_const_iteratorISt4pairIKdjEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %4, i32 noundef 0) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #4
  %88 = call ptr @_ZNKSt3mapIdjSt4lessIdESaISt4pairIKdjEEE4cendEv(ptr noundef nonnull align 8 dereferenceable(48) %3) #4
  store ptr %88, ptr %5, align 8
  %89 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorISt4pairIKdjEES5_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #4
  br i1 %89, label %.lr.ph23, label %._crit_edge24, !llvm.loop !51

90:                                               ; preds = %78, %68
  %.pn = phi { ptr, i32 } [ %79, %78 ], [ %69, %68 ]
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #4
  resume { ptr, i32 } %.pn

91:                                               ; preds = %._crit_edge24, %1
  ret void
}

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIdSaIdEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPdSt6vectorIdSaIdEEEEEvT_S7_(ptr, ptr) local_unnamed_addr #3

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

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

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

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

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

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

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

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

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

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

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !30, i64 313}
!6 = !{!"_ZTSN4xmem9BenchmarkE", !7, i64 8, !10, i64 16, !11, i64 24, !11, i64 28, !11, i64 32, !11, i64 36, !12, i64 40, !13, i64 44, !14, i64 48, !11, i64 52, !15, i64 56, !19, i64 80, !23, i64 104, !27, i64 128, !27, i64 136, !27, i64 144, !27, i64 152, !27, i64 160, !27, i64 168, !27, i64 176, !27, i64 184, !27, i64 192, !28, i64 200, !23, i64 232, !23, i64 256, !28, i64 280, !30, i64 312, !30, i64 313, !30, i64 314}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"long", !8, i64 0}
!11 = !{!"int", !8, i64 0}
!12 = !{!"_ZTSN4xmem14pattern_mode_tE", !8, i64 0}
!13 = !{!"_ZTSN4xmem9rw_mode_tE", !8, i64 0}
!14 = !{!"_ZTSN4xmem12chunk_size_tE", !8, i64 0}
!15 = !{!"_ZTSSt6vectorIPN4xmem11PowerReaderESaIS2_EE", !16, i64 0}
!16 = !{!"_ZTSSt12_Vector_baseIPN4xmem11PowerReaderESaIS2_EE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIPN4xmem11PowerReaderESaIS2_EE12_Vector_implE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIPN4xmem11PowerReaderESaIS2_EE17_Vector_impl_dataE", !7, i64 0, !7, i64 8, !7, i64 16}
!19 = !{!"_ZTSSt6vectorIPN4xmem6ThreadESaIS2_EE", !20, i64 0}
!20 = !{!"_ZTSSt12_Vector_baseIPN4xmem6ThreadESaIS2_EE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseIPN4xmem6ThreadESaIS2_EE12_Vector_implE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseIPN4xmem6ThreadESaIS2_EE17_Vector_impl_dataE", !7, i64 0, !7, i64 8, !7, i64 16}
!23 = !{!"_ZTSSt6vectorIdSaIdEE", !24, i64 0}
!24 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !25, i64 0}
!25 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !26, i64 0}
!26 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !7, i64 0, !7, i64 8, !7, i64 16}
!27 = !{!"double", !8, i64 0}
!28 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !29, i64 0, !10, i64 8, !8, i64 16}
!29 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !7, i64 0}
!30 = !{!"bool", !8, i64 0}
!31 = !{i8 0, i8 2}
!32 = !{}
!33 = !{!6, !27, i64 128}
!34 = !{!6, !11, i64 24}
!35 = !{!27, !27, i64 0}
!36 = distinct !{!36, !37}
!37 = !{!"llvm.loop.mustprogress"}
!38 = !{!6, !27, i64 136}
!39 = !{!6, !27, i64 144}
!40 = !{!6, !27, i64 160}
!41 = !{!6, !27, i64 152}
!42 = !{!6, !27, i64 168}
!43 = !{!6, !27, i64 176}
!44 = !{!6, !27, i64 184}
!45 = !{!6, !27, i64 192}
!46 = !{!11, !11, i64 0}
!47 = distinct !{!47, !37}
!48 = !{!49, !11, i64 8}
!49 = !{!"_ZTSSt4pairIKdjE", !27, i64 0, !11, i64 8}
!50 = !{!49, !27, i64 0}
!51 = distinct !{!51, !37}


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