; LLVM IR from intel/qpl :: sources/middle-layer/dispatcher (hw_device)

; 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.anon = type { i8 }
%class.anon.6 = type { i8 }
%"class.qpl::ml::dispatcher::queue_selector" = type { %"class.std::unordered_map", %"class.std::map" }
%"class.std::unordered_map" = type { %"class.std::_Hashtable" }
%"class.std::_Hashtable" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<unsigned long, std::pair<const unsigned long, qpl::ml::util::bitmask128>, std::_Select1st<std::pair<const unsigned long, qpl::ml::util::bitmask128>>, std::less<unsigned long>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<unsigned long, std::pair<const unsigned long, qpl::ml::util::bitmask128>, std::_Select1st<std::pair<const unsigned long, qpl::ml::util::bitmask128>>, std::less<unsigned long>>::_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 }
%"class.qpl::ml::dispatcher::hw_device" = type { %"struct.std::array", i32, i64, i64, i64, i32, i32, i64, %"class.qpl::ml::dispatcher::queue_selector" }
%"struct.std::array" = type { [100 x %"class.qpl::ml::dispatcher::hw_queue"] }
%"class.qpl::ml::dispatcher::hw_queue" = type { ptr, i8, i32, i64, ptr, %"struct.std::atomic", i8, %"struct.std::array.0", i8, i32, i64 }
%"struct.std::atomic" = type { %"struct.std::__atomic_base" }
%"struct.std::__atomic_base" = type { i64 }
%"struct.std::array.0" = type { [8 x i32] }

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: noinline noreturn nounwind uwtable
declare hidden void @__clang_call_terminate(ptr noundef) #1

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

; Function Attrs: mustprogress nounwind uwtable
define dso_local noundef i32 @_ZN3qpl2ml10dispatcher9hw_device21initialize_new_deviceEPv(ptr noundef nonnull align 8 dereferenceable(9752) %0, ptr noundef %1) #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i8, align 1
  %9 = alloca i32, align 4
  %10 = alloca i64, align 8
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca %class.anon, align 1
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca %class.anon.6, align 1
  %18 = alloca %"class.qpl::ml::dispatcher::queue_selector", align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  %19 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #9
  %20 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %20, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #9
  %21 = load ptr, ptr %6, align 8, !tbaa !5
  %22 = invoke ptr @accfg_device_get_devname(ptr noundef %21)
          to label %23 unwind label %142

23:                                               ; preds = %2
  store ptr %22, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %8) #9
  %24 = load ptr, ptr %7, align 8, !tbaa !5
  %25 = call noundef zeroext i1 @_ZL22own_search_device_namePKhjj(ptr noundef %24, i32 noundef -8887959, i32 noundef 2) #9
  %26 = zext i1 %25 to i8
  store i8 %26, ptr %8, align 1, !tbaa !9
  %27 = load ptr, ptr %6, align 8, !tbaa !5
  %28 = invoke i32 @accfg_device_get_version(ptr noundef %27)
          to label %29 unwind label %142

29:                                               ; preds = %23
  %30 = lshr i32 %28, 8
  %31 = getelementptr inbounds %"class.qpl::ml::dispatcher::hw_device", ptr %19, i32 0, i32 5
  store i32 %30, ptr %31, align 8, !tbaa !11
  %32 = load ptr, ptr %6, align 8, !tbaa !5
  %33 = invoke i32 @accfg_device_get_version(ptr noundef %32)
          to label %34 unwind label %142

34:                                               ; preds = %29
  %35 = and i32 %33, 255
  %36 = getelementptr inbounds %"class.qpl::ml::dispatcher::hw_device", ptr %19, i32 0, i32 6
  store i32 %35, ptr %36, align 4, !tbaa !30
  %37 = load i8, ptr %8, align 1, !tbaa !9, !range !31, !noundef !32
  %38 = trunc i8 %37 to i1
  br i1 %38, label %40, label %39

39:                                               ; preds = %34
  store i32 4, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %140

40:                                               ; preds = %34
  %41 = load ptr, ptr %6, align 8, !tbaa !5
  %42 = invoke i32 @accfg_device_get_state(ptr noundef %41)
          to label %43 unwind label %142

43:                                               ; preds = %40
  %44 = icmp ne i32 1, %42
  br i1 %44, label %45, label %46

45:                                               ; preds = %43
  store i32 4, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %140

46:                                               ; preds = %43
  %47 = load ptr, ptr %6, align 8, !tbaa !5
  %48 = invoke i64 @accfg_device_get_gen_cap(ptr noundef %47)
          to label %49 unwind label %142

49:                                               ; preds = %46
  %50 = getelementptr inbounds %"class.qpl::ml::dispatcher::hw_device", ptr %19, i32 0, i32 2
  store i64 %48, ptr %50, align 8, !tbaa !33
  %51 = load ptr, ptr %6, align 8, !tbaa !5
  %52 = invoke i32 @accfg_device_get_numa_node(ptr noundef %51)
          to label %53 unwind label %142

53:                                               ; preds = %49
  %54 = sext i32 %52 to i64
  %55 = getelementptr inbounds %"class.qpl::ml::dispatcher::hw_device", ptr %19, i32 0, i32 4
  store i64 %54, ptr %55, align 8, !tbaa !34
  %56 = getelementptr inbounds %"class.qpl::ml::dispatcher::hw_device", ptr %19, i32 0, i32 4
  %57 = load i64, ptr %56, align 8, !tbaa !34
  %58 = trunc i64 %57 to i32
  %59 = call noundef i64 @_ZN3qpl2ml4util13get_socket_idEi(i32 noundef %58) #9
  %60 = getelementptr inbounds %"class.qpl::ml::dispatcher::hw_device", ptr %19, i32 0, i32 7
  store i64 %59, ptr %60, align 8, !tbaa !35
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #9
  store i64 0, ptr %10, align 8, !tbaa !36
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #9
  %61 = load ptr, ptr %6, align 8, !tbaa !5
  %62 = invoke i32 @accfg_device_get_iaa_cap(ptr noundef %61, ptr noundef %10)
          to label %63 unwind label %142

63:                                               ; preds = %53
  store i32 %62, ptr %11, align 4, !tbaa !37
  %64 = load i32, ptr %11, align 4, !tbaa !37
  %65 = icmp ne i32 %64, 0
  br i1 %65, label %66, label %76

66:                                               ; preds = %63
  %67 = getelementptr inbounds %"class.qpl::ml::dispatcher::hw_device", ptr %19, i32 0, i32 5
  %68 = load i32, ptr %67, align 8, !tbaa !11
  %69 = icmp uge i32 %68, 2
  br i1 %69, label %70, label %75

70:                                               ; preds = %66
  %71 = load i32, ptr %11, align 4, !tbaa !37
  %72 = icmp eq i32 %71, 1
  br i1 %72, label %73, label %74

73:                                               ; preds = %70
  store i32 2, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %139

74:                                               ; preds = %70
  store i32 1, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %139

75:                                               ; preds = %66
  br label %76

76:                                               ; preds = %75, %63
  %77 = load i64, ptr %10, align 8, !tbaa !36
  %78 = getelementptr inbounds %"class.qpl::ml::dispatcher::hw_device", ptr %19, i32 0, i32 3
  store i64 %77, ptr %78, align 8, !tbaa !38
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #9
  %79 = load ptr, ptr %6, align 8, !tbaa !5
  %80 = invoke ptr @accfg_wq_get_first(ptr noundef %79)
          to label %81 unwind label %142

81:                                               ; preds = %76
  store ptr %80, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #9
  %82 = getelementptr inbounds %"class.qpl::ml::dispatcher::hw_device", ptr %19, i32 0, i32 0
  %83 = call noundef ptr @_ZNSt5arrayIN3qpl2ml10dispatcher8hw_queueELm100EE5beginEv(ptr noundef nonnull align 8 dereferenceable(9600) %82) #10
  store ptr %83, ptr %13, align 8, !tbaa !5
  br label %84

84:                                               ; preds = %102, %81
  %85 = load ptr, ptr %12, align 8, !tbaa !5
  %86 = icmp ne ptr null, %85
  br i1 %86, label %87, label %103

87:                                               ; preds = %84
  %88 = load ptr, ptr %13, align 8, !tbaa !5
  %89 = load ptr, ptr %12, align 8, !tbaa !5
  %90 = call noundef i32 @_ZN3qpl2ml10dispatcher8hw_queue20initialize_new_queueEPv(ptr noundef nonnull align 8 dereferenceable(96) %88, ptr noundef %89) #9
  %91 = icmp eq i32 0, %90
  br i1 %91, label %92, label %99

92:                                               ; preds = %87
  %93 = load ptr, ptr %13, align 8, !tbaa !5
  %94 = getelementptr inbounds %"class.qpl::ml::dispatcher::hw_queue", ptr %93, i32 1
  store ptr %94, ptr %13, align 8, !tbaa !5
  %95 = getelementptr inbounds %"class.qpl::ml::dispatcher::hw_device", ptr %19, i32 0, i32 0
  %96 = call noundef ptr @_ZNSt5arrayIN3qpl2ml10dispatcher8hw_queueELm100EE5beginEv(ptr noundef nonnull align 8 dereferenceable(9600) %95) #10
  %97 = load ptr, ptr %13, align 8, !tbaa !5
  invoke void @"_ZSt9push_heapIPN3qpl2ml10dispatcher8hw_queueEZNS2_9hw_device21initialize_new_deviceEPvE3$_0EvT_S8_T0_"(ptr noundef %96, ptr noundef %97)
          to label %98 unwind label %142

98:                                               ; preds = %92
  br label %99

99:                                               ; preds = %98, %87
  %100 = load ptr, ptr %12, align 8, !tbaa !5
  %101 = invoke ptr @accfg_wq_get_next(ptr noundef %100)
          to label %102 unwind label %142

102:                                              ; preds = %99
  store ptr %101, ptr %12, align 8, !tbaa !5
  br label %84, !llvm.loop !39

103:                                              ; preds = %84
  %104 = getelementptr inbounds %"class.qpl::ml::dispatcher::hw_device", ptr %19, i32 0, i32 0
  %105 = call noundef ptr @_ZNSt5arrayIN3qpl2ml10dispatcher8hw_queueELm100EE5beginEv(ptr noundef nonnull align 8 dereferenceable(9600) %104) #10
  %106 = load ptr, ptr %13, align 8, !tbaa !5
  %107 = invoke noundef i64 @_ZSt8distanceIPN3qpl2ml10dispatcher8hw_queueEENSt15iterator_traitsIT_E15difference_typeES6_S6_(ptr noundef %105, ptr noundef %106)
          to label %108 unwind label %142

108:                                              ; preds = %103
  %109 = trunc i64 %107 to i32
  %110 = getelementptr inbounds %"class.qpl::ml::dispatcher::hw_device", ptr %19, i32 0, i32 1
  store i32 %109, ptr %110, align 8, !tbaa !41
  %111 = getelementptr inbounds %"class.qpl::ml::dispatcher::hw_device", ptr %19, i32 0, i32 1
  %112 = load i32, ptr %111, align 8, !tbaa !41
  %113 = icmp ugt i32 %112, 1
  br i1 %113, label %114, label %125

114:                                              ; preds = %108
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #9
  %115 = getelementptr inbounds %"class.qpl::ml::dispatcher::hw_device", ptr %19, i32 0, i32 0
  %116 = call noundef ptr @_ZNSt5arrayIN3qpl2ml10dispatcher8hw_queueELm100EE5beginEv(ptr noundef nonnull align 8 dereferenceable(9600) %115) #10
  store ptr %116, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #9
  %117 = load ptr, ptr %15, align 8, !tbaa !5
  %118 = getelementptr inbounds %"class.qpl::ml::dispatcher::hw_device", ptr %19, i32 0, i32 1
  %119 = load i32, ptr %118, align 8, !tbaa !41
  %120 = zext i32 %119 to i64
  %121 = getelementptr inbounds %"class.qpl::ml::dispatcher::hw_queue", ptr %117, i64 %120
  store ptr %121, ptr %16, align 8, !tbaa !5
  %122 = load ptr, ptr %15, align 8, !tbaa !5
  %123 = load ptr, ptr %16, align 8, !tbaa !5
  invoke void @"_ZSt9sort_heapIPN3qpl2ml10dispatcher8hw_queueEZNS2_9hw_device21initialize_new_deviceEPvE3$_1EvT_S8_T0_"(ptr noundef %122, ptr noundef %123)
          to label %124 unwind label %142

124:                                              ; preds = %114
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #9
  br label %125

125:                                              ; preds = %124, %108
  %126 = getelementptr inbounds %"class.qpl::ml::dispatcher::hw_device", ptr %19, i32 0, i32 1
  %127 = load i32, ptr %126, align 8, !tbaa !41
  %128 = icmp eq i32 %127, 0
  br i1 %128, label %129, label %130

129:                                              ; preds = %125
  store i32 4, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %138

130:                                              ; preds = %125
  call void @llvm.lifetime.start.p0(i64 104, ptr %18) #9
  %131 = getelementptr inbounds %"class.qpl::ml::dispatcher::hw_device", ptr %19, i32 0, i32 0
  %132 = getelementptr inbounds %"class.qpl::ml::dispatcher::hw_device", ptr %19, i32 0, i32 1
  %133 = load i32, ptr %132, align 8, !tbaa !41
  %134 = trunc i32 %133 to i8
  invoke void @_ZN3qpl2ml10dispatcher14queue_selectorC2ERKSt5arrayINS1_8hw_queueELm100EEh(ptr noundef nonnull align 8 dereferenceable(104) %18, ptr noundef nonnull align 8 dereferenceable(9600) %131, i8 noundef zeroext %134)
          to label %135 unwind label %142

135:                                              ; preds = %130
  %136 = getelementptr inbounds %"class.qpl::ml::dispatcher::hw_device", ptr %19, i32 0, i32 8
  %137 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZN3qpl2ml10dispatcher14queue_selectoraSEOS2_(ptr noundef nonnull align 8 dereferenceable(104) %136, ptr noundef nonnull align 8 dereferenceable(104) %18) #9
  call void @_ZN3qpl2ml10dispatcher14queue_selectorD2Ev(ptr noundef nonnull align 8 dereferenceable(104) %18) #9
  call void @llvm.lifetime.end.p0(i64 104, ptr %18) #9
  store i32 0, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %138

138:                                              ; preds = %135, %129
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #9
  br label %139

139:                                              ; preds = %138, %74, %73
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #9
  br label %140

140:                                              ; preds = %139, %45, %39
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #9
  %141 = load i32, ptr %3, align 4
  ret i32 %141

142:                                              ; preds = %130, %114, %103, %99, %92, %76, %53, %49, %46, %40, %29, %23, %2
  %143 = landingpad { ptr, i32 }
          catch ptr null
  %144 = extractvalue { ptr, i32 } %143, 0
  call void @__clang_call_terminate(ptr %144) #11
  unreachable
}

declare ptr @accfg_device_get_devname(ptr noundef) #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef zeroext i1 @_ZL22own_search_device_namePKhjj(ptr noundef, i32 noundef, i32 noundef) #4

declare i32 @accfg_device_get_version(ptr noundef) #3

declare i32 @accfg_device_get_state(ptr noundef) #3

declare i64 @accfg_device_get_gen_cap(ptr noundef) #3

declare i32 @accfg_device_get_numa_node(ptr noundef) #3

; Function Attrs: nounwind
declare noundef i64 @_ZN3qpl2ml4util13get_socket_idEi(i32 noundef) #5

declare i32 @accfg_device_get_iaa_cap(ptr noundef, ptr noundef) #3

declare ptr @accfg_wq_get_first(ptr noundef) #3

; Function Attrs: mustprogress nounwind willreturn memory(none) uwtable
declare dso_local noundef ptr @_ZNSt5arrayIN3qpl2ml10dispatcher8hw_queueELm100EE5beginEv(ptr noundef nonnull align 8 dereferenceable(9600)) #6 align 2

; Function Attrs: nounwind
declare noundef i32 @_ZN3qpl2ml10dispatcher8hw_queue20initialize_new_queueEPv(ptr noundef nonnull align 8 dereferenceable(96), ptr noundef) #5

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @"_ZSt9push_heapIPN3qpl2ml10dispatcher8hw_queueEZNS2_9hw_device21initialize_new_deviceEPvE3$_0EvT_S8_T0_"(ptr noundef, ptr noundef) #7

declare ptr @accfg_wq_get_next(ptr noundef) #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i64 @_ZSt8distanceIPN3qpl2ml10dispatcher8hw_queueEENSt15iterator_traitsIT_E15difference_typeES6_S6_(ptr noundef, ptr noundef) #7

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @"_ZSt9sort_heapIPN3qpl2ml10dispatcher8hw_queueEZNS2_9hw_device21initialize_new_deviceEPvE3$_1EvT_S8_T0_"(ptr noundef, ptr noundef) #7

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3qpl2ml10dispatcher14queue_selectorC2ERKSt5arrayINS1_8hw_queueELm100EEh(ptr noundef nonnull align 8 dereferenceable(104), ptr noundef nonnull align 8 dereferenceable(9600), i8 noundef zeroext) unnamed_addr #8 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(104) ptr @_ZN3qpl2ml10dispatcher14queue_selectoraSEOS2_(ptr noundef nonnull align 8 dereferenceable(104), ptr noundef nonnull align 8 dereferenceable(104)) #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3qpl2ml10dispatcher14queue_selectorD2Ev(ptr noundef nonnull align 8 dereferenceable(104)) unnamed_addr #4 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { noinline noreturn nounwind uwtable "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 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 #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 #6 = { mustprogress nounwind willreturn memory(none) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { 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 #9 = { nounwind }
attributes #10 = { nounwind willreturn memory(none) }
attributes #11 = { noreturn 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 = !{!"bool", !7, i64 0}
!11 = !{!12, !14, i64 9632}
!12 = !{!"_ZTSN3qpl2ml10dispatcher9hw_deviceE", !13, i64 0, !14, i64 9600, !15, i64 9608, !15, i64 9616, !15, i64 9624, !14, i64 9632, !14, i64 9636, !15, i64 9640, !16, i64 9648}
!13 = !{!"_ZTSSt5arrayIN3qpl2ml10dispatcher8hw_queueELm100EE", !7, i64 0}
!14 = !{!"int", !7, i64 0}
!15 = !{!"long", !7, i64 0}
!16 = !{!"_ZTSN3qpl2ml10dispatcher14queue_selectorE", !17, i64 0, !22, i64 56}
!17 = !{!"_ZTSSt13unordered_mapIjN3qpl2ml4util10bitmask128ESt4hashIjESt8equal_toIjESaISt4pairIKjS3_EEE", !18, i64 0}
!18 = !{!"_ZTSSt10_HashtableIjSt4pairIKjN3qpl2ml4util10bitmask128EESaIS6_ENSt8__detail10_Select1stESt8equal_toIjESt4hashIjENS8_18_Mod_range_hashingENS8_20_Default_ranged_hashENS8_20_Prime_rehash_policyENS8_17_Hashtable_traitsILb0ELb0ELb1EEEE", !6, i64 0, !15, i64 8, !19, i64 16, !15, i64 24, !20, i64 32, !6, i64 48}
!19 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !6, i64 0}
!20 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !21, i64 0, !15, i64 8}
!21 = !{!"float", !7, i64 0}
!22 = !{!"_ZTSSt3mapImN3qpl2ml4util10bitmask128ESt4lessImESaISt4pairIKmS3_EEE", !23, i64 0}
!23 = !{!"_ZTSSt8_Rb_treeImSt4pairIKmN3qpl2ml4util10bitmask128EESt10_Select1stIS6_ESt4lessImESaIS6_EE", !24, i64 0}
!24 = !{!"_ZTSNSt8_Rb_treeImSt4pairIKmN3qpl2ml4util10bitmask128EESt10_Select1stIS6_ESt4lessImESaIS6_EE13_Rb_tree_implISA_Lb1EEE", !25, i64 0, !27, i64 8}
!25 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessImEE", !26, i64 0}
!26 = !{!"_ZTSSt4lessImE"}
!27 = !{!"_ZTSSt15_Rb_tree_header", !28, i64 0, !15, i64 32}
!28 = !{!"_ZTSSt18_Rb_tree_node_base", !29, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!29 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}
!30 = !{!12, !14, i64 9636}
!31 = !{i8 0, i8 2}
!32 = !{}
!33 = !{!12, !15, i64 9608}
!34 = !{!12, !15, i64 9624}
!35 = !{!12, !15, i64 9640}
!36 = !{!15, !15, i64 0}
!37 = !{!14, !14, i64 0}
!38 = !{!12, !15, i64 9616}
!39 = distinct !{!39, !40}
!40 = !{!"llvm.loop.mustprogress"}
!41 = !{!12, !14, i64 9600}


; 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.qpl::ml::dispatcher::queue_selector" = type { %"class.std::unordered_map", %"class.std::map" }
%"class.std::unordered_map" = type { %"class.std::_Hashtable" }
%"class.std::_Hashtable" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<unsigned long, std::pair<const unsigned long, qpl::ml::util::bitmask128>, std::_Select1st<std::pair<const unsigned long, qpl::ml::util::bitmask128>>, std::less<unsigned long>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<unsigned long, std::pair<const unsigned long, qpl::ml::util::bitmask128>, std::_Select1st<std::pair<const unsigned long, qpl::ml::util::bitmask128>>, std::less<unsigned long>>::_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 }
%"class.qpl::ml::dispatcher::hw_queue" = type { ptr, i8, i32, i64, ptr, %"struct.std::atomic", i8, %"struct.std::array.0", i8, i32, i64 }
%"struct.std::atomic" = type { %"struct.std::__atomic_base" }
%"struct.std::__atomic_base" = type { i64 }
%"struct.std::array.0" = type { [8 x i32] }

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: noinline noreturn nounwind uwtable
declare hidden void @__clang_call_terminate(ptr noundef) local_unnamed_addr #1

; 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
define dso_local noundef range(i32 0, 5) i32 @_ZN3qpl2ml10dispatcher9hw_device21initialize_new_deviceEPv(ptr noundef nonnull align 8 dereferenceable(9752) %0, ptr noundef %1) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca i64, align 8
  %4 = alloca %"class.qpl::ml::dispatcher::queue_selector", align 8
  %5 = invoke ptr @accfg_device_get_devname(ptr noundef %1)
          to label %6 unwind label %.loopexit.split-lp

6:                                                ; preds = %2
  %7 = tail call noundef zeroext i1 @_ZL22own_search_device_namePKhjj(ptr noundef %5, i32 noundef -8887959, i32 noundef 2) #9
  %8 = invoke i32 @accfg_device_get_version(ptr noundef %1)
          to label %9 unwind label %.loopexit.split-lp

9:                                                ; preds = %6
  %10 = lshr i32 %8, 8
  %11 = getelementptr inbounds i8, ptr %0, i64 9632
  store i32 %10, ptr %11, align 8, !tbaa !5
  %12 = invoke i32 @accfg_device_get_version(ptr noundef %1)
          to label %13 unwind label %.loopexit.split-lp

13:                                               ; preds = %9
  %14 = and i32 %12, 255
  %15 = getelementptr inbounds i8, ptr %0, i64 9636
  store i32 %14, ptr %15, align 4, !tbaa !27
  br i1 %7, label %16, label %67

16:                                               ; preds = %13
  %17 = invoke i32 @accfg_device_get_state(ptr noundef %1)
          to label %18 unwind label %.loopexit.split-lp

18:                                               ; preds = %16
  %.not = icmp eq i32 %17, 1
  br i1 %.not, label %19, label %67

19:                                               ; preds = %18
  %20 = invoke i64 @accfg_device_get_gen_cap(ptr noundef %1)
          to label %21 unwind label %.loopexit.split-lp

21:                                               ; preds = %19
  %22 = getelementptr inbounds i8, ptr %0, i64 9608
  store i64 %20, ptr %22, align 8, !tbaa !28
  %23 = invoke i32 @accfg_device_get_numa_node(ptr noundef %1)
          to label %24 unwind label %.loopexit.split-lp

24:                                               ; preds = %21
  %25 = sext i32 %23 to i64
  %26 = getelementptr inbounds i8, ptr %0, i64 9624
  store i64 %25, ptr %26, align 8, !tbaa !29
  %27 = tail call noundef i64 @_ZN3qpl2ml4util13get_socket_idEi(i32 noundef %23) #9
  %28 = getelementptr inbounds i8, ptr %0, i64 9640
  store i64 %27, ptr %28, align 8, !tbaa !30
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #9
  store i64 0, ptr %3, align 8, !tbaa !31
  %29 = invoke i32 @accfg_device_get_iaa_cap(ptr noundef %1, ptr noundef nonnull %3)
          to label %30 unwind label %.loopexit.split-lp

30:                                               ; preds = %24
  %.not29 = icmp ne i32 %29, 0
  %31 = load i32, ptr %11, align 8
  %32 = icmp ugt i32 %31, 1
  %or.cond = select i1 %.not29, i1 %32, i1 false
  br i1 %or.cond, label %33, label %35

33:                                               ; preds = %30
  %34 = icmp eq i32 %29, 1
  %. = select i1 %34, i32 2, i32 1
  br label %66

35:                                               ; preds = %30
  %36 = load i64, ptr %3, align 8, !tbaa !31
  %37 = getelementptr inbounds i8, ptr %0, i64 9616
  store i64 %36, ptr %37, align 8, !tbaa !32
  %38 = invoke ptr @accfg_wq_get_first(ptr noundef %1)
          to label %39 unwind label %.loopexit.split-lp

39:                                               ; preds = %35
  %40 = call noundef ptr @_ZNSt5arrayIN3qpl2ml10dispatcher8hw_queueELm100EE5beginEv(ptr noundef nonnull align 8 dereferenceable(9600) %0) #10
  br label %41

41:                                               ; preds = %47, %39
  %.026 = phi ptr [ %38, %39 ], [ %48, %47 ]
  %.024 = phi ptr [ %40, %39 ], [ %.125, %47 ]
  %.not30 = icmp eq ptr %.026, null
  br i1 %.not30, label %49, label %42

42:                                               ; preds = %41
  %43 = call noundef i32 @_ZN3qpl2ml10dispatcher8hw_queue20initialize_new_queueEPv(ptr noundef nonnull align 8 dereferenceable(96) %.024, ptr noundef nonnull %.026) #9
  %44 = icmp eq i32 %43, 0
  br i1 %44, label %45, label %47

45:                                               ; preds = %42
  %46 = getelementptr inbounds i8, ptr %.024, i64 96
  invoke void @"_ZSt9push_heapIPN3qpl2ml10dispatcher8hw_queueEZNS2_9hw_device21initialize_new_deviceEPvE3$_0EvT_S8_T0_"(ptr noundef %40, ptr noundef nonnull %46)
          to label %47 unwind label %.loopexit

47:                                               ; preds = %45, %42
  %.125 = phi ptr [ %46, %45 ], [ %.024, %42 ]
  %48 = invoke ptr @accfg_wq_get_next(ptr noundef nonnull %.026)
          to label %41 unwind label %.loopexit, !llvm.loop !33

49:                                               ; preds = %41
  %50 = invoke noundef i64 @_ZSt8distanceIPN3qpl2ml10dispatcher8hw_queueEENSt15iterator_traitsIT_E15difference_typeES6_S6_(ptr noundef %40, ptr noundef %.024)
          to label %51 unwind label %.loopexit.split-lp

51:                                               ; preds = %49
  %52 = trunc i64 %50 to i32
  %53 = getelementptr inbounds i8, ptr %0, i64 9600
  store i32 %52, ptr %53, align 8, !tbaa !35
  %54 = icmp ugt i32 %52, 1
  br i1 %54, label %55, label %58

55:                                               ; preds = %51
  %56 = and i64 %50, 4294967295
  %57 = getelementptr inbounds %"class.qpl::ml::dispatcher::hw_queue", ptr %40, i64 %56
  invoke void @"_ZSt9sort_heapIPN3qpl2ml10dispatcher8hw_queueEZNS2_9hw_device21initialize_new_deviceEPvE3$_1EvT_S8_T0_"(ptr noundef %40, ptr noundef %57)
          to label %thread-pre-split unwind label %.loopexit.split-lp

thread-pre-split:                                 ; preds = %55
  %.pr = load i32, ptr %53, align 8, !tbaa !35
  br label %58

58:                                               ; preds = %thread-pre-split, %51
  %59 = phi i32 [ %.pr, %thread-pre-split ], [ %52, %51 ]
  %60 = icmp eq i32 %59, 0
  br i1 %60, label %66, label %61

61:                                               ; preds = %58
  call void @llvm.lifetime.start.p0(i64 104, ptr nonnull %4) #9
  %62 = trunc i32 %59 to i8
  invoke void @_ZN3qpl2ml10dispatcher14queue_selectorC2ERKSt5arrayINS1_8hw_queueELm100EEh(ptr noundef nonnull align 8 dereferenceable(104) %4, ptr noundef nonnull align 8 dereferenceable(9600) %0, i8 noundef zeroext %62)
          to label %63 unwind label %.loopexit.split-lp

63:                                               ; preds = %61
  %64 = getelementptr inbounds i8, ptr %0, i64 9648
  %65 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZN3qpl2ml10dispatcher14queue_selectoraSEOS2_(ptr noundef nonnull align 8 dereferenceable(104) %64, ptr noundef nonnull align 8 dereferenceable(104) %4) #9
  call void @_ZN3qpl2ml10dispatcher14queue_selectorD2Ev(ptr noundef nonnull align 8 dereferenceable(104) %4) #9
  call void @llvm.lifetime.end.p0(i64 104, ptr nonnull %4) #9
  br label %66

66:                                               ; preds = %63, %58, %33
  %.1 = phi i32 [ %., %33 ], [ 0, %63 ], [ 4, %58 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #9
  br label %67

67:                                               ; preds = %18, %13, %66
  %.2 = phi i32 [ %.1, %66 ], [ 4, %13 ], [ 4, %18 ]
  ret i32 %.2

.loopexit:                                        ; preds = %45, %47
  %lpad.loopexit = landingpad { ptr, i32 }
          catch ptr null
  br label %68

.loopexit.split-lp:                               ; preds = %2, %6, %9, %16, %19, %21, %24, %35, %49, %55, %61
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          catch ptr null
  br label %68

68:                                               ; preds = %.loopexit.split-lp, %.loopexit
  %lpad.phi = phi { ptr, i32 } [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  %69 = extractvalue { ptr, i32 } %lpad.phi, 0
  call void @__clang_call_terminate(ptr %69) #11
  unreachable
}

declare ptr @accfg_device_get_devname(ptr noundef) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef zeroext i1 @_ZL22own_search_device_namePKhjj(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #4

declare i32 @accfg_device_get_version(ptr noundef) local_unnamed_addr #3

declare i32 @accfg_device_get_state(ptr noundef) local_unnamed_addr #3

declare i64 @accfg_device_get_gen_cap(ptr noundef) local_unnamed_addr #3

declare i32 @accfg_device_get_numa_node(ptr noundef) local_unnamed_addr #3

; Function Attrs: nounwind
declare noundef i64 @_ZN3qpl2ml4util13get_socket_idEi(i32 noundef) local_unnamed_addr #5

declare i32 @accfg_device_get_iaa_cap(ptr noundef, ptr noundef) local_unnamed_addr #3

declare ptr @accfg_wq_get_first(ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nofree nosync nounwind willreturn memory(none) uwtable
declare dso_local noundef ptr @_ZNSt5arrayIN3qpl2ml10dispatcher8hw_queueELm100EE5beginEv(ptr noundef nonnull align 8 dereferenceable(9600)) local_unnamed_addr #6 align 2

; Function Attrs: nounwind
declare noundef i32 @_ZN3qpl2ml10dispatcher8hw_queue20initialize_new_queueEPv(ptr noundef nonnull align 8 dereferenceable(96), ptr noundef) local_unnamed_addr #5

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @"_ZSt9push_heapIPN3qpl2ml10dispatcher8hw_queueEZNS2_9hw_device21initialize_new_deviceEPvE3$_0EvT_S8_T0_"(ptr noundef, ptr noundef) local_unnamed_addr #7

declare ptr @accfg_wq_get_next(ptr noundef) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i64 @_ZSt8distanceIPN3qpl2ml10dispatcher8hw_queueEENSt15iterator_traitsIT_E15difference_typeES6_S6_(ptr noundef, ptr noundef) local_unnamed_addr #7

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @"_ZSt9sort_heapIPN3qpl2ml10dispatcher8hw_queueEZNS2_9hw_device21initialize_new_deviceEPvE3$_1EvT_S8_T0_"(ptr noundef, ptr noundef) local_unnamed_addr #7

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3qpl2ml10dispatcher14queue_selectorC2ERKSt5arrayINS1_8hw_queueELm100EEh(ptr noundef nonnull align 8 dereferenceable(104), ptr noundef nonnull align 8 dereferenceable(9600), i8 noundef zeroext) unnamed_addr #8 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(104) ptr @_ZN3qpl2ml10dispatcher14queue_selectoraSEOS2_(ptr noundef nonnull align 8 dereferenceable(104), ptr noundef nonnull align 8 dereferenceable(104)) local_unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3qpl2ml10dispatcher14queue_selectorD2Ev(ptr noundef nonnull align 8 dereferenceable(104)) unnamed_addr #4 align 2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { noinline noreturn nounwind uwtable "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 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 #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 #6 = { mustprogress nofree nosync nounwind willreturn memory(none) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { 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 #9 = { nounwind }
attributes #10 = { nounwind willreturn memory(none) }
attributes #11 = { noreturn 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, !10, i64 9632}
!6 = !{!"_ZTSN3qpl2ml10dispatcher9hw_deviceE", !7, i64 0, !10, i64 9600, !11, i64 9608, !11, i64 9616, !11, i64 9624, !10, i64 9632, !10, i64 9636, !11, i64 9640, !12, i64 9648}
!7 = !{!"_ZTSSt5arrayIN3qpl2ml10dispatcher8hw_queueELm100EE", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"long", !8, i64 0}
!12 = !{!"_ZTSN3qpl2ml10dispatcher14queue_selectorE", !13, i64 0, !19, i64 56}
!13 = !{!"_ZTSSt13unordered_mapIjN3qpl2ml4util10bitmask128ESt4hashIjESt8equal_toIjESaISt4pairIKjS3_EEE", !14, i64 0}
!14 = !{!"_ZTSSt10_HashtableIjSt4pairIKjN3qpl2ml4util10bitmask128EESaIS6_ENSt8__detail10_Select1stESt8equal_toIjESt4hashIjENS8_18_Mod_range_hashingENS8_20_Default_ranged_hashENS8_20_Prime_rehash_policyENS8_17_Hashtable_traitsILb0ELb0ELb1EEEE", !15, i64 0, !11, i64 8, !16, i64 16, !11, i64 24, !17, i64 32, !15, i64 48}
!15 = !{!"any pointer", !8, i64 0}
!16 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !15, i64 0}
!17 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !18, i64 0, !11, i64 8}
!18 = !{!"float", !8, i64 0}
!19 = !{!"_ZTSSt3mapImN3qpl2ml4util10bitmask128ESt4lessImESaISt4pairIKmS3_EEE", !20, i64 0}
!20 = !{!"_ZTSSt8_Rb_treeImSt4pairIKmN3qpl2ml4util10bitmask128EESt10_Select1stIS6_ESt4lessImESaIS6_EE", !21, i64 0}
!21 = !{!"_ZTSNSt8_Rb_treeImSt4pairIKmN3qpl2ml4util10bitmask128EESt10_Select1stIS6_ESt4lessImESaIS6_EE13_Rb_tree_implISA_Lb1EEE", !22, i64 0, !24, i64 8}
!22 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessImEE", !23, i64 0}
!23 = !{!"_ZTSSt4lessImE"}
!24 = !{!"_ZTSSt15_Rb_tree_header", !25, i64 0, !11, i64 32}
!25 = !{!"_ZTSSt18_Rb_tree_node_base", !26, i64 0, !15, i64 8, !15, i64 16, !15, i64 24}
!26 = !{!"_ZTSSt14_Rb_tree_color", !8, i64 0}
!27 = !{!6, !10, i64 9636}
!28 = !{!6, !11, i64 9608}
!29 = !{!6, !11, i64 9624}
!30 = !{!6, !11, i64 9640}
!31 = !{!11, !11, i64 0}
!32 = !{!6, !11, i64 9616}
!33 = distinct !{!33, !34}
!34 = !{!"llvm.loop.mustprogress"}
!35 = !{!6, !10, i64 9600}


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