; LLVM IR from AdaptiveCpp/AdaptiveCpp :: src/runtime (multi_queue_executor)

; 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.hipsycl::rt::device_id" = type { %"struct.hipsycl::rt::backend_descriptor", i32 }
%"struct.hipsycl::rt::backend_descriptor" = type { i32, i32, i32 }
%"struct.hipsycl::rt::backend_execution_lane_range" = type { i64, i64 }
%"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.hipsycl::rt::multi_queue_executor" = type <{ %"class.hipsycl::rt::backend_executor", %"class.std::vector", %"class.std::vector.0", i32, [4 x i8] }>
%"class.hipsycl::rt::backend_executor" = type { ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<hipsycl::rt::multi_queue_executor::per_device_data, std::allocator<hipsycl::rt::multi_queue_executor::per_device_data>>::_Vector_impl" }
%"struct.std::_Vector_base<hipsycl::rt::multi_queue_executor::per_device_data, std::allocator<hipsycl::rt::multi_queue_executor::per_device_data>>::_Vector_impl" = type { %"struct.std::_Vector_base<hipsycl::rt::multi_queue_executor::per_device_data, std::allocator<hipsycl::rt::multi_queue_executor::per_device_data>>::_Vector_impl_data" }
%"struct.std::_Vector_base<hipsycl::rt::multi_queue_executor::per_device_data, std::allocator<hipsycl::rt::multi_queue_executor::per_device_data>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<hipsycl::rt::inorder_queue *, std::allocator<hipsycl::rt::inorder_queue *>>::_Vector_impl" }
%"struct.std::_Vector_base<hipsycl::rt::inorder_queue *, std::allocator<hipsycl::rt::inorder_queue *>>::_Vector_impl" = type { %"struct.std::_Vector_base<hipsycl::rt::inorder_queue *, std::allocator<hipsycl::rt::inorder_queue *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<hipsycl::rt::inorder_queue *, std::allocator<hipsycl::rt::inorder_queue *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.hipsycl::rt::multi_queue_executor::per_device_data" = type { %"struct.hipsycl::rt::backend_execution_lane_range", %"struct.hipsycl::rt::backend_execution_lane_range", %"class.std::vector.7", %"class.hipsycl::rt::moving_statistics" }
%"class.std::vector.7" = type { %"struct.std::_Vector_base.8" }
%"struct.std::_Vector_base.8" = type { %"struct.std::_Vector_base<std::unique_ptr<hipsycl::rt::inorder_executor>, std::allocator<std::unique_ptr<hipsycl::rt::inorder_executor>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::unique_ptr<hipsycl::rt::inorder_executor>, std::allocator<std::unique_ptr<hipsycl::rt::inorder_executor>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::unique_ptr<hipsycl::rt::inorder_executor>, std::allocator<std::unique_ptr<hipsycl::rt::inorder_executor>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::unique_ptr<hipsycl::rt::inorder_executor>, std::allocator<std::unique_ptr<hipsycl::rt::inorder_executor>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.hipsycl::rt::moving_statistics" = type { i64, i64, i64, %"class.std::vector.12" }
%"class.std::vector.12" = type { %"struct.std::_Vector_base.13" }
%"struct.std::_Vector_base.13" = type { %"struct.std::_Vector_base<hipsycl::rt::moving_statistics::submission, std::allocator<hipsycl::rt::moving_statistics::submission>>::_Vector_impl" }
%"struct.std::_Vector_base<hipsycl::rt::moving_statistics::submission, std::allocator<hipsycl::rt::moving_statistics::submission>>::_Vector_impl" = type { %"struct.std::_Vector_base<hipsycl::rt::moving_statistics::submission, std::allocator<hipsycl::rt::moving_statistics::submission>>::_Vector_impl_data" }
%"struct.std::_Vector_base<hipsycl::rt::moving_statistics::submission, std::allocator<hipsycl::rt::moving_statistics::submission>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@.str = external hidden unnamed_addr constant [30 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [94 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [22 x i8], align 1
@__PRETTY_FUNCTION__._ZN7hipsycl2rt20multi_queue_executor15submit_directlyERKSt10shared_ptrINS0_8dag_nodeEEPNS0_9operationERKN3sbo12small_vectorIS4_Lm8EEE = external hidden unnamed_addr constant [120 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [43 x i8], align 1

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 nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #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
declare dso_local noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN7hipsycl2rt20multi_queue_executor15per_device_dataESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #2 align 2

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #4

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(32)) #4

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

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #4

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

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) #3 align 2

declare noundef i32 @_ZNK7hipsycl2rt9device_id6get_idEv(ptr noundef nonnull align 4 dereferenceable(16)) #5

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #6

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7hipsycl2rt20multi_queue_executor15submit_directlyERKSt10shared_ptrINS0_8dag_nodeEEPNS0_9operationERKN3sbo12small_vectorIS4_Lm8EEE(ptr noundef nonnull align 8 dereferenceable(60) %0, ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef %2, ptr noundef nonnull align 8 dereferenceable(160) %3) unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i64, align 8
  %10 = alloca %"class.hipsycl::rt::device_id", align 4
  %11 = alloca %"struct.hipsycl::rt::backend_execution_lane_range", align 8
  %12 = alloca %"class.hipsycl::rt::device_id", align 4
  %13 = alloca %"class.hipsycl::rt::device_id", align 4
  %14 = alloca %"struct.hipsycl::rt::backend_execution_lane_range", align 8
  %15 = alloca %"class.hipsycl::rt::device_id", align 4
  %16 = alloca %"class.hipsycl::rt::device_id", align 4
  %17 = alloca ptr, align 8
  %18 = alloca %"class.hipsycl::rt::device_id", align 4
  %19 = alloca %"class.std::__cxx11::basic_string", align 8
  %20 = alloca ptr, align 8
  %21 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  store ptr %3, ptr %8, align 8, !tbaa !5
  %22 = load ptr, ptr %5, align 8
  %23 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN7hipsycl6common13output_stream3getEv()
  %24 = call noundef i32 @_ZNK7hipsycl6common13output_stream15get_debug_levelEv(ptr noundef nonnull align 8 dereferenceable(16) %23)
  %25 = icmp sgt i32 3, %24
  br i1 %25, label %26, label %27

26:                                               ; preds = %4
  br label %47

27:                                               ; preds = %4
  %28 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN7hipsycl6common13output_stream3getEv()
  %29 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK7hipsycl6common13output_stream10get_streamEv(ptr noundef nonnull align 8 dereferenceable(16) %28)
  %30 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %29, ptr noundef @.str)
  %31 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %30, ptr noundef @.str.9)
  %32 = load ptr, ptr %6, align 8, !tbaa !5
  %33 = call noundef ptr @_ZNKSt12__shared_ptrIN7hipsycl2rt8dag_nodeELN9__gnu_cxx12_Lock_policyE2EE3getEv(ptr noundef nonnull align 8 dereferenceable(16) %32) #7
  %34 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPKv(ptr noundef nonnull align 8 dereferenceable(8) %31, ptr noundef %33)
  %35 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %34, ptr noundef @.str.10)
  %36 = load ptr, ptr %8, align 8, !tbaa !5
  %37 = call noundef i64 @_ZNKSt6vectorISt10shared_ptrIN7hipsycl2rt8dag_nodeEEN3sbo29small_buffer_vector_allocatorIS4_Lm8ES4_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(160) %36) #7
  %38 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %35, i64 noundef %37)
  %39 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %38, ptr noundef @.str.11)
  %40 = load ptr, ptr %6, align 8, !tbaa !5
  %41 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN7hipsycl2rt8dag_nodeELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %40) #7
  %42 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZNK7hipsycl2rt8dag_node16get_requirementsEv(ptr noundef nonnull align 8 dereferenceable(384) %41)
  %43 = call noundef i64 @_ZNKSt6vectorISt8weak_ptrIN7hipsycl2rt8dag_nodeEEN3sbo29small_buffer_vector_allocatorIS4_Lm8ES4_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(160) %42) #7
  %44 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %39, i64 noundef %43)
  %45 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %44, ptr noundef @.str.12)
  %46 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %45, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %47

47:                                               ; preds = %27, %26
  %48 = load ptr, ptr %7, align 8, !tbaa !5
  %49 = load ptr, ptr %48, align 8, !tbaa !9
  %50 = getelementptr inbounds ptr, ptr %49, i64 3
  %51 = load ptr, ptr %50, align 8
  %52 = call noundef zeroext i1 %51(ptr noundef nonnull align 8 dereferenceable(40) %48)
  %53 = xor i1 %52, true
  br i1 %53, label %54, label %55

54:                                               ; preds = %47
  br label %57

55:                                               ; preds = %47
  call void @__assert_fail(ptr noundef @.str.13, ptr noundef @.str.8, i32 noundef 197, ptr noundef @__PRETTY_FUNCTION__._ZN7hipsycl2rt20multi_queue_executor15submit_directlyERKSt10shared_ptrINS0_8dag_nodeEEPNS0_9operationERKN3sbo12small_vectorIS4_Lm8EEE) #8
  unreachable

56:                                               ; No predecessors!
  br label %57

57:                                               ; preds = %56, %54
  %58 = load ptr, ptr %6, align 8, !tbaa !5
  %59 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN7hipsycl2rt8dag_nodeELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %58) #7
  %60 = call noundef zeroext i1 @_ZNK7hipsycl2rt8dag_node12is_submittedEv(ptr noundef nonnull align 8 dereferenceable(384) %59)
  br i1 %60, label %61, label %62

61:                                               ; preds = %57
  br label %190

62:                                               ; preds = %57
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #7
  %63 = load ptr, ptr %7, align 8, !tbaa !5
  %64 = load ptr, ptr %63, align 8, !tbaa !9
  %65 = getelementptr inbounds ptr, ptr %64, i64 4
  %66 = load ptr, ptr %65, align 8
  %67 = call noundef zeroext i1 %66(ptr noundef nonnull align 8 dereferenceable(40) %63)
  br i1 %67, label %68, label %100

68:                                               ; preds = %62
  %69 = load ptr, ptr %6, align 8, !tbaa !5
  %70 = load ptr, ptr %8, align 8, !tbaa !5
  %71 = getelementptr inbounds %"class.hipsycl::rt::multi_queue_executor", ptr %22, i32 0, i32 1
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #7
  %72 = load ptr, ptr %6, align 8, !tbaa !5
  %73 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN7hipsycl2rt8dag_nodeELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %72) #7
  %74 = call { i64, i64 } @_ZNK7hipsycl2rt8dag_node19get_assigned_deviceEv(ptr noundef nonnull align 8 dereferenceable(384) %73)
  %75 = getelementptr inbounds { i64, i64 }, ptr %10, i32 0, i32 0
  %76 = extractvalue { i64, i64 } %74, 0
  store i64 %76, ptr %75, align 4
  %77 = getelementptr inbounds { i64, i64 }, ptr %10, i32 0, i32 1
  %78 = extractvalue { i64, i64 } %74, 1
  store i64 %78, ptr %77, align 4
  %79 = call noundef i32 @_ZNK7hipsycl2rt9device_id6get_idEv(ptr noundef nonnull align 4 dereferenceable(16) %10)
  %80 = sext i32 %79 to i64
  %81 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN7hipsycl2rt20multi_queue_executor15per_device_dataESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %71, i64 noundef %80) #7
  %82 = getelementptr inbounds %"struct.hipsycl::rt::multi_queue_executor::per_device_data", ptr %81, i32 0, i32 3
  %83 = getelementptr inbounds %"class.hipsycl::rt::multi_queue_executor", ptr %22, i32 0, i32 1
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #7
  %84 = load ptr, ptr %6, align 8, !tbaa !5
  %85 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN7hipsycl2rt8dag_nodeELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %84) #7
  %86 = call { i64, i64 } @_ZNK7hipsycl2rt8dag_node19get_assigned_deviceEv(ptr noundef nonnull align 8 dereferenceable(384) %85)
  %87 = getelementptr inbounds { i64, i64 }, ptr %12, i32 0, i32 0
  %88 = extractvalue { i64, i64 } %86, 0
  store i64 %88, ptr %87, align 4
  %89 = getelementptr inbounds { i64, i64 }, ptr %12, i32 0, i32 1
  %90 = extractvalue { i64, i64 } %86, 1
  store i64 %90, ptr %89, align 4
  %91 = call noundef i32 @_ZNK7hipsycl2rt9device_id6get_idEv(ptr noundef nonnull align 4 dereferenceable(16) %12)
  %92 = sext i32 %91 to i64
  %93 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN7hipsycl2rt20multi_queue_executor15per_device_dataESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %83, i64 noundef %92) #7
  %94 = getelementptr inbounds %"struct.hipsycl::rt::multi_queue_executor::per_device_data", ptr %93, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %11, ptr align 8 %94, i64 16, i1 false), !tbaa.struct !11
  %95 = getelementptr inbounds { i64, i64 }, ptr %11, i32 0, i32 0
  %96 = load i64, ptr %95, align 8
  %97 = getelementptr inbounds { i64, i64 }, ptr %11, i32 0, i32 1
  %98 = load i64, ptr %97, align 8
  %99 = call noundef i64 @_ZN7hipsycl2rt12_GLOBAL__N_121determine_target_laneERKSt10shared_ptrINS0_8dag_nodeEERKN3sbo12small_vectorIS4_Lm8EEEPKNS0_20multi_queue_executorERKNS0_17moving_statisticsENS0_28backend_execution_lane_rangeE(ptr noundef nonnull align 8 dereferenceable(16) %69, ptr noundef nonnull align 8 dereferenceable(160) %70, ptr noundef %22, ptr noundef nonnull align 8 dereferenceable(48) %82, i64 %96, i64 %98)
  store i64 %99, ptr %9, align 8, !tbaa !12
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #7
  br label %132

100:                                              ; preds = %62
  %101 = load ptr, ptr %6, align 8, !tbaa !5
  %102 = load ptr, ptr %8, align 8, !tbaa !5
  %103 = getelementptr inbounds %"class.hipsycl::rt::multi_queue_executor", ptr %22, i32 0, i32 1
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #7
  %104 = load ptr, ptr %6, align 8, !tbaa !5
  %105 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN7hipsycl2rt8dag_nodeELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %104) #7
  %106 = call { i64, i64 } @_ZNK7hipsycl2rt8dag_node19get_assigned_deviceEv(ptr noundef nonnull align 8 dereferenceable(384) %105)
  %107 = getelementptr inbounds { i64, i64 }, ptr %13, i32 0, i32 0
  %108 = extractvalue { i64, i64 } %106, 0
  store i64 %108, ptr %107, align 4
  %109 = getelementptr inbounds { i64, i64 }, ptr %13, i32 0, i32 1
  %110 = extractvalue { i64, i64 } %106, 1
  store i64 %110, ptr %109, align 4
  %111 = call noundef i32 @_ZNK7hipsycl2rt9device_id6get_idEv(ptr noundef nonnull align 4 dereferenceable(16) %13)
  %112 = sext i32 %111 to i64
  %113 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN7hipsycl2rt20multi_queue_executor15per_device_dataESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %103, i64 noundef %112) #7
  %114 = getelementptr inbounds %"struct.hipsycl::rt::multi_queue_executor::per_device_data", ptr %113, i32 0, i32 3
  %115 = getelementptr inbounds %"class.hipsycl::rt::multi_queue_executor", ptr %22, i32 0, i32 1
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #7
  %116 = load ptr, ptr %6, align 8, !tbaa !5
  %117 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN7hipsycl2rt8dag_nodeELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %116) #7
  %118 = call { i64, i64 } @_ZNK7hipsycl2rt8dag_node19get_assigned_deviceEv(ptr noundef nonnull align 8 dereferenceable(384) %117)
  %119 = getelementptr inbounds { i64, i64 }, ptr %15, i32 0, i32 0
  %120 = extractvalue { i64, i64 } %118, 0
  store i64 %120, ptr %119, align 4
  %121 = getelementptr inbounds { i64, i64 }, ptr %15, i32 0, i32 1
  %122 = extractvalue { i64, i64 } %118, 1
  store i64 %122, ptr %121, align 4
  %123 = call noundef i32 @_ZNK7hipsycl2rt9device_id6get_idEv(ptr noundef nonnull align 4 dereferenceable(16) %15)
  %124 = sext i32 %123 to i64
  %125 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN7hipsycl2rt20multi_queue_executor15per_device_dataESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %115, i64 noundef %124) #7
  %126 = getelementptr inbounds %"struct.hipsycl::rt::multi_queue_executor::per_device_data", ptr %125, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %14, ptr align 8 %126, i64 16, i1 false), !tbaa.struct !11
  %127 = getelementptr inbounds { i64, i64 }, ptr %14, i32 0, i32 0
  %128 = load i64, ptr %127, align 8
  %129 = getelementptr inbounds { i64, i64 }, ptr %14, i32 0, i32 1
  %130 = load i64, ptr %129, align 8
  %131 = call noundef i64 @_ZN7hipsycl2rt12_GLOBAL__N_121determine_target_laneERKSt10shared_ptrINS0_8dag_nodeEERKN3sbo12small_vectorIS4_Lm8EEEPKNS0_20multi_queue_executorERKNS0_17moving_statisticsENS0_28backend_execution_lane_rangeE(ptr noundef nonnull align 8 dereferenceable(16) %101, ptr noundef nonnull align 8 dereferenceable(160) %102, ptr noundef %22, ptr noundef nonnull align 8 dereferenceable(48) %114, i64 %128, i64 %130)
  store i64 %131, ptr %9, align 8, !tbaa !12
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #7
  br label %132

132:                                              ; preds = %100, %68
  %133 = getelementptr inbounds %"class.hipsycl::rt::multi_queue_executor", ptr %22, i32 0, i32 1
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #7
  %134 = load ptr, ptr %6, align 8, !tbaa !5
  %135 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN7hipsycl2rt8dag_nodeELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %134) #7
  %136 = call { i64, i64 } @_ZNK7hipsycl2rt8dag_node19get_assigned_deviceEv(ptr noundef nonnull align 8 dereferenceable(384) %135)
  %137 = getelementptr inbounds { i64, i64 }, ptr %16, i32 0, i32 0
  %138 = extractvalue { i64, i64 } %136, 0
  store i64 %138, ptr %137, align 4
  %139 = getelementptr inbounds { i64, i64 }, ptr %16, i32 0, i32 1
  %140 = extractvalue { i64, i64 } %136, 1
  store i64 %140, ptr %139, align 4
  %141 = call noundef i32 @_ZNK7hipsycl2rt9device_id6get_idEv(ptr noundef nonnull align 4 dereferenceable(16) %16)
  %142 = sext i32 %141 to i64
  %143 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN7hipsycl2rt20multi_queue_executor15per_device_dataESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %133, i64 noundef %142) #7
  %144 = getelementptr inbounds %"struct.hipsycl::rt::multi_queue_executor::per_device_data", ptr %143, i32 0, i32 3
  %145 = load i64, ptr %9, align 8, !tbaa !12
  call void @_ZN7hipsycl2rt17moving_statistics6insertEm(ptr noundef nonnull align 8 dereferenceable(48) %144, i64 noundef %145)
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  %146 = getelementptr inbounds %"class.hipsycl::rt::multi_queue_executor", ptr %22, i32 0, i32 1
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #7
  %147 = load ptr, ptr %6, align 8, !tbaa !5
  %148 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN7hipsycl2rt8dag_nodeELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %147) #7
  %149 = call { i64, i64 } @_ZNK7hipsycl2rt8dag_node19get_assigned_deviceEv(ptr noundef nonnull align 8 dereferenceable(384) %148)
  %150 = getelementptr inbounds { i64, i64 }, ptr %18, i32 0, i32 0
  %151 = extractvalue { i64, i64 } %149, 0
  store i64 %151, ptr %150, align 4
  %152 = getelementptr inbounds { i64, i64 }, ptr %18, i32 0, i32 1
  %153 = extractvalue { i64, i64 } %149, 1
  store i64 %153, ptr %152, align 4
  %154 = call noundef i32 @_ZNK7hipsycl2rt9device_id6get_idEv(ptr noundef nonnull align 4 dereferenceable(16) %18)
  %155 = sext i32 %154 to i64
  %156 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN7hipsycl2rt20multi_queue_executor15per_device_dataESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %146, i64 noundef %155) #7
  %157 = getelementptr inbounds %"struct.hipsycl::rt::multi_queue_executor::per_device_data", ptr %156, i32 0, i32 2
  %158 = load i64, ptr %9, align 8, !tbaa !12
  %159 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorISt10unique_ptrIN7hipsycl2rt16inorder_executorESt14default_deleteIS3_EESaIS6_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %157, i64 noundef %158) #7
  %160 = call noundef ptr @_ZNKSt10unique_ptrIN7hipsycl2rt16inorder_executorESt14default_deleteIS2_EE3getEv(ptr noundef nonnull align 8 dereferenceable(8) %159) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #7
  store ptr %160, ptr %17, align 8, !tbaa !5
  %161 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN7hipsycl6common13output_stream3getEv()
  %162 = call noundef i32 @_ZNK7hipsycl6common13output_stream15get_debug_levelEv(ptr noundef nonnull align 8 dereferenceable(16) %161)
  %163 = icmp sgt i32 3, %162
  br i1 %163, label %164, label %165

164:                                              ; preds = %132
  br label %182

165:                                              ; preds = %132
  %166 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN7hipsycl6common13output_stream3getEv()
  %167 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK7hipsycl6common13output_stream10get_streamEv(ptr noundef nonnull align 8 dereferenceable(16) %166)
  %168 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %167, ptr noundef @.str)
  %169 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %168, ptr noundef @.str.14)
  %170 = load i64, ptr %9, align 8, !tbaa !12
  %171 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %169, i64 noundef %170)
  %172 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %171, ptr noundef @.str.4)
  call void @llvm.lifetime.start.p0(i64 32, ptr %19) #7
  %173 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZN7hipsycl2rt4dumpINS0_9operationEEENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPT_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %19, ptr noundef %173)
  %174 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) %172, ptr noundef nonnull align 8 dereferenceable(32) %19)
          to label %175 unwind label %178

175:                                              ; preds = %165
  %176 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %174, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %177 unwind label %178

177:                                              ; preds = %175
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %19) #7
  br label %182

178:                                              ; preds = %175, %165
  %179 = landingpad { ptr, i32 }
          cleanup
  %180 = extractvalue { ptr, i32 } %179, 0
  store ptr %180, ptr %20, align 8
  %181 = extractvalue { ptr, i32 } %179, 1
  store i32 %181, ptr %21, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  br label %191

182:                                              ; preds = %177, %164
  %183 = load ptr, ptr %17, align 8, !tbaa !5
  %184 = load ptr, ptr %6, align 8, !tbaa !5
  %185 = load ptr, ptr %7, align 8, !tbaa !5
  %186 = load ptr, ptr %8, align 8, !tbaa !5
  %187 = load ptr, ptr %183, align 8, !tbaa !9
  %188 = getelementptr inbounds ptr, ptr %187, i64 3
  %189 = load ptr, ptr %188, align 8
  call void %189(ptr noundef nonnull align 8 dereferenceable(24) %183, ptr noundef nonnull align 8 dereferenceable(16) %184, ptr noundef %185, ptr noundef nonnull align 8 dereferenceable(160) %186)
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  br label %190

190:                                              ; preds = %182, %61
  ret void

191:                                              ; preds = %178
  %192 = load ptr, ptr %20, align 8
  %193 = load i32, ptr %21, align 4
  %194 = insertvalue { ptr, i32 } poison, ptr %192, 0
  %195 = insertvalue { ptr, i32 } %194, i32 %193, 1
  resume { ptr, i32 } %195
}

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPKv(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #3 align 2

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

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

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

declare noundef nonnull align 8 dereferenceable(160) ptr @_ZNK7hipsycl2rt8dag_node16get_requirementsEv(ptr noundef nonnull align 8 dereferenceable(384)) #5

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

declare noundef zeroext i1 @_ZNK7hipsycl2rt8dag_node12is_submittedEv(ptr noundef nonnull align 8 dereferenceable(384)) #5

; Function Attrs: mustprogress uwtable
declare hidden noundef i64 @_ZN7hipsycl2rt12_GLOBAL__N_121determine_target_laneERKSt10shared_ptrINS0_8dag_nodeEERKN3sbo12small_vectorIS4_Lm8EEEPKNS0_20multi_queue_executorERKNS0_17moving_statisticsENS0_28backend_execution_lane_rangeE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(160), ptr noundef, ptr noundef nonnull align 8 dereferenceable(48), i64, i64) #3

declare { i64, i64 } @_ZNK7hipsycl2rt8dag_node19get_assigned_deviceEv(ptr noundef nonnull align 8 dereferenceable(384)) #5

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7hipsycl2rt17moving_statistics6insertEm(ptr noundef nonnull align 8 dereferenceable(48), i64 noundef) #3 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7hipsycl2rt4dumpINS0_9operationEEENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPT_(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef) #3

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = { 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 = { 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 #5 = { "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 = { noreturn 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 }
attributes #8 = { 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 = !{!"vtable pointer", !8, i64 0}
!11 = !{i64 0, i64 8, !12, i64 8, i64 8, !12}
!12 = !{!13, !13, i64 0}
!13 = !{!"long", !7, i64 0}


; 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.hipsycl::rt::device_id" = type { %"struct.hipsycl::rt::backend_descriptor", i32 }
%"struct.hipsycl::rt::backend_descriptor" = type { i32, i32, i32 }
%"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] }

@.str = external hidden unnamed_addr constant [30 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [94 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [22 x i8], align 1
@__PRETTY_FUNCTION__._ZN7hipsycl2rt20multi_queue_executor15submit_directlyERKSt10shared_ptrINS0_8dag_nodeEEPNS0_9operationERKN3sbo12small_vectorIS4_Lm8EEE = external hidden unnamed_addr constant [120 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [43 x i8], align 1

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 noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN7hipsycl2rt20multi_queue_executor15per_device_dataESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #1 align 2

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #3

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #3

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

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

declare noundef i32 @_ZNK7hipsycl2rt9device_id6get_idEv(ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #4

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #5

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7hipsycl2rt20multi_queue_executor15submit_directlyERKSt10shared_ptrINS0_8dag_nodeEEPNS0_9operationERKN3sbo12small_vectorIS4_Lm8EEE(ptr noundef nonnull align 8 dereferenceable(60) %0, ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef %2, ptr noundef nonnull align 8 dereferenceable(160) %3) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca %"class.hipsycl::rt::device_id", align 8
  %6 = alloca %"class.hipsycl::rt::device_id", align 8
  %7 = alloca %"class.hipsycl::rt::device_id", align 8
  %8 = alloca %"class.hipsycl::rt::device_id", align 8
  %9 = alloca %"class.hipsycl::rt::device_id", align 8
  %10 = alloca %"class.hipsycl::rt::device_id", align 8
  %11 = alloca %"class.std::__cxx11::basic_string", align 8
  %12 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZN7hipsycl6common13output_stream3getEv()
  %13 = tail call noundef i32 @_ZNK7hipsycl6common13output_stream15get_debug_levelEv(ptr noundef nonnull align 8 dereferenceable(16) %12)
  %14 = icmp slt i32 %13, 3
  br i1 %14, label %32, label %15

15:                                               ; preds = %4
  %16 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZN7hipsycl6common13output_stream3getEv()
  %17 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK7hipsycl6common13output_stream10get_streamEv(ptr noundef nonnull align 8 dereferenceable(16) %16)
  %18 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull @.str)
  %19 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull @.str.9)
  %20 = tail call noundef ptr @_ZNKSt12__shared_ptrIN7hipsycl2rt8dag_nodeELN9__gnu_cxx12_Lock_policyE2EE3getEv(ptr noundef nonnull align 8 dereferenceable(16) %1) #6
  %21 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPKv(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef %20)
  %22 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %21, ptr noundef nonnull @.str.10)
  %23 = tail call noundef i64 @_ZNKSt6vectorISt10shared_ptrIN7hipsycl2rt8dag_nodeEEN3sbo29small_buffer_vector_allocatorIS4_Lm8ES4_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(160) %3) #6
  %24 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %22, i64 noundef %23)
  %25 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %24, ptr noundef nonnull @.str.11)
  %26 = tail call noundef ptr @_ZNKSt19__shared_ptr_accessIN7hipsycl2rt8dag_nodeELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %1) #6
  %27 = tail call noundef nonnull align 8 dereferenceable(160) ptr @_ZNK7hipsycl2rt8dag_node16get_requirementsEv(ptr noundef nonnull align 8 dereferenceable(384) %26)
  %28 = tail call noundef i64 @_ZNKSt6vectorISt8weak_ptrIN7hipsycl2rt8dag_nodeEEN3sbo29small_buffer_vector_allocatorIS4_Lm8ES4_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(160) %27) #6
  %29 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %25, i64 noundef %28)
  %30 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %29, ptr noundef nonnull @.str.12)
  %31 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %30, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %32

32:                                               ; preds = %4, %15
  %33 = load ptr, ptr %2, align 8, !tbaa !5
  %34 = getelementptr inbounds i8, ptr %33, i64 24
  %35 = load ptr, ptr %34, align 8
  %36 = tail call noundef zeroext i1 %35(ptr noundef nonnull align 8 dereferenceable(40) %2)
  br i1 %36, label %37, label %38

37:                                               ; preds = %32
  tail call void @__assert_fail(ptr noundef nonnull @.str.13, ptr noundef nonnull @.str.8, i32 noundef 197, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN7hipsycl2rt20multi_queue_executor15submit_directlyERKSt10shared_ptrINS0_8dag_nodeEEPNS0_9operationERKN3sbo12small_vectorIS4_Lm8EEE) #7
  unreachable

38:                                               ; preds = %32
  %39 = tail call noundef ptr @_ZNKSt19__shared_ptr_accessIN7hipsycl2rt8dag_nodeELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %1) #6
  %40 = tail call noundef zeroext i1 @_ZNK7hipsycl2rt8dag_node12is_submittedEv(ptr noundef nonnull align 8 dereferenceable(384) %39)
  br i1 %40, label %128, label %41

41:                                               ; preds = %38
  %42 = load ptr, ptr %2, align 8, !tbaa !5
  %43 = getelementptr inbounds i8, ptr %42, i64 32
  %44 = load ptr, ptr %43, align 8
  %45 = tail call noundef zeroext i1 %44(ptr noundef nonnull align 8 dereferenceable(40) %2)
  %46 = getelementptr inbounds i8, ptr %0, i64 8
  br i1 %45, label %47, label %66

47:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #6
  %48 = tail call noundef ptr @_ZNKSt19__shared_ptr_accessIN7hipsycl2rt8dag_nodeELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %1) #6
  %49 = tail call { i64, i64 } @_ZNK7hipsycl2rt8dag_node19get_assigned_deviceEv(ptr noundef nonnull align 8 dereferenceable(384) %48)
  %50 = extractvalue { i64, i64 } %49, 0
  store i64 %50, ptr %5, align 8
  %51 = getelementptr inbounds i8, ptr %5, i64 8
  %52 = extractvalue { i64, i64 } %49, 1
  store i64 %52, ptr %51, align 8
  %53 = call noundef i32 @_ZNK7hipsycl2rt9device_id6get_idEv(ptr noundef nonnull align 4 dereferenceable(16) %5)
  %54 = sext i32 %53 to i64
  %55 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN7hipsycl2rt20multi_queue_executor15per_device_dataESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %46, i64 noundef %54) #6
  %56 = getelementptr inbounds i8, ptr %55, i64 56
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #6
  %57 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN7hipsycl2rt8dag_nodeELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %1) #6
  %58 = call { i64, i64 } @_ZNK7hipsycl2rt8dag_node19get_assigned_deviceEv(ptr noundef nonnull align 8 dereferenceable(384) %57)
  %59 = extractvalue { i64, i64 } %58, 0
  store i64 %59, ptr %6, align 8
  %60 = getelementptr inbounds i8, ptr %6, i64 8
  %61 = extractvalue { i64, i64 } %58, 1
  store i64 %61, ptr %60, align 8
  %62 = call noundef i32 @_ZNK7hipsycl2rt9device_id6get_idEv(ptr noundef nonnull align 4 dereferenceable(16) %6)
  %63 = sext i32 %62 to i64
  %64 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN7hipsycl2rt20multi_queue_executor15per_device_dataESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %46, i64 noundef %63) #6
  %.sroa.02.0.copyload = load i64, ptr %64, align 8, !tbaa !8
  %.sroa.23.0..sroa_idx = getelementptr inbounds i8, ptr %64, i64 8
  %.sroa.23.0.copyload = load i64, ptr %.sroa.23.0..sroa_idx, align 8, !tbaa !8
  %65 = call noundef i64 @_ZN7hipsycl2rt12_GLOBAL__N_121determine_target_laneERKSt10shared_ptrINS0_8dag_nodeEERKN3sbo12small_vectorIS4_Lm8EEEPKNS0_20multi_queue_executorERKNS0_17moving_statisticsENS0_28backend_execution_lane_rangeE(ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef nonnull align 8 dereferenceable(160) %3, ptr noundef nonnull %0, ptr noundef nonnull align 8 dereferenceable(48) %56, i64 %.sroa.02.0.copyload, i64 %.sroa.23.0.copyload)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #6
  br label %86

66:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #6
  %67 = tail call noundef ptr @_ZNKSt19__shared_ptr_accessIN7hipsycl2rt8dag_nodeELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %1) #6
  %68 = tail call { i64, i64 } @_ZNK7hipsycl2rt8dag_node19get_assigned_deviceEv(ptr noundef nonnull align 8 dereferenceable(384) %67)
  %69 = extractvalue { i64, i64 } %68, 0
  store i64 %69, ptr %7, align 8
  %70 = getelementptr inbounds i8, ptr %7, i64 8
  %71 = extractvalue { i64, i64 } %68, 1
  store i64 %71, ptr %70, align 8
  %72 = call noundef i32 @_ZNK7hipsycl2rt9device_id6get_idEv(ptr noundef nonnull align 4 dereferenceable(16) %7)
  %73 = sext i32 %72 to i64
  %74 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN7hipsycl2rt20multi_queue_executor15per_device_dataESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %46, i64 noundef %73) #6
  %75 = getelementptr inbounds i8, ptr %74, i64 56
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #6
  %76 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN7hipsycl2rt8dag_nodeELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %1) #6
  %77 = call { i64, i64 } @_ZNK7hipsycl2rt8dag_node19get_assigned_deviceEv(ptr noundef nonnull align 8 dereferenceable(384) %76)
  %78 = extractvalue { i64, i64 } %77, 0
  store i64 %78, ptr %8, align 8
  %79 = getelementptr inbounds i8, ptr %8, i64 8
  %80 = extractvalue { i64, i64 } %77, 1
  store i64 %80, ptr %79, align 8
  %81 = call noundef i32 @_ZNK7hipsycl2rt9device_id6get_idEv(ptr noundef nonnull align 4 dereferenceable(16) %8)
  %82 = sext i32 %81 to i64
  %83 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN7hipsycl2rt20multi_queue_executor15per_device_dataESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %46, i64 noundef %82) #6
  %84 = getelementptr inbounds i8, ptr %83, i64 16
  %.sroa.0.0.copyload = load i64, ptr %84, align 8, !tbaa !8
  %.sroa.2.0..sroa_idx = getelementptr inbounds i8, ptr %83, i64 24
  %.sroa.2.0.copyload = load i64, ptr %.sroa.2.0..sroa_idx, align 8, !tbaa !8
  %85 = call noundef i64 @_ZN7hipsycl2rt12_GLOBAL__N_121determine_target_laneERKSt10shared_ptrINS0_8dag_nodeEERKN3sbo12small_vectorIS4_Lm8EEEPKNS0_20multi_queue_executorERKNS0_17moving_statisticsENS0_28backend_execution_lane_rangeE(ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef nonnull align 8 dereferenceable(160) %3, ptr noundef nonnull %0, ptr noundef nonnull align 8 dereferenceable(48) %75, i64 %.sroa.0.0.copyload, i64 %.sroa.2.0.copyload)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #6
  br label %86

86:                                               ; preds = %66, %47
  %.0 = phi i64 [ %65, %47 ], [ %85, %66 ]
  %87 = getelementptr inbounds i8, ptr %0, i64 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #6
  %88 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN7hipsycl2rt8dag_nodeELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %1) #6
  %89 = call { i64, i64 } @_ZNK7hipsycl2rt8dag_node19get_assigned_deviceEv(ptr noundef nonnull align 8 dereferenceable(384) %88)
  %90 = extractvalue { i64, i64 } %89, 0
  store i64 %90, ptr %9, align 8
  %91 = getelementptr inbounds i8, ptr %9, i64 8
  %92 = extractvalue { i64, i64 } %89, 1
  store i64 %92, ptr %91, align 8
  %93 = call noundef i32 @_ZNK7hipsycl2rt9device_id6get_idEv(ptr noundef nonnull align 4 dereferenceable(16) %9)
  %94 = sext i32 %93 to i64
  %95 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN7hipsycl2rt20multi_queue_executor15per_device_dataESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %87, i64 noundef %94) #6
  %96 = getelementptr inbounds i8, ptr %95, i64 56
  call void @_ZN7hipsycl2rt17moving_statistics6insertEm(ptr noundef nonnull align 8 dereferenceable(48) %96, i64 noundef %.0)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #6
  %97 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN7hipsycl2rt8dag_nodeELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %1) #6
  %98 = call { i64, i64 } @_ZNK7hipsycl2rt8dag_node19get_assigned_deviceEv(ptr noundef nonnull align 8 dereferenceable(384) %97)
  %99 = extractvalue { i64, i64 } %98, 0
  store i64 %99, ptr %10, align 8
  %100 = getelementptr inbounds i8, ptr %10, i64 8
  %101 = extractvalue { i64, i64 } %98, 1
  store i64 %101, ptr %100, align 8
  %102 = call noundef i32 @_ZNK7hipsycl2rt9device_id6get_idEv(ptr noundef nonnull align 4 dereferenceable(16) %10)
  %103 = sext i32 %102 to i64
  %104 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN7hipsycl2rt20multi_queue_executor15per_device_dataESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %87, i64 noundef %103) #6
  %105 = getelementptr inbounds i8, ptr %104, i64 32
  %106 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorISt10unique_ptrIN7hipsycl2rt16inorder_executorESt14default_deleteIS3_EESaIS6_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %105, i64 noundef %.0) #6
  %107 = call noundef ptr @_ZNKSt10unique_ptrIN7hipsycl2rt16inorder_executorESt14default_deleteIS2_EE3getEv(ptr noundef nonnull align 8 dereferenceable(8) %106) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #6
  %108 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN7hipsycl6common13output_stream3getEv()
  %109 = call noundef i32 @_ZNK7hipsycl6common13output_stream15get_debug_levelEv(ptr noundef nonnull align 8 dereferenceable(16) %108)
  %110 = icmp slt i32 %109, 3
  br i1 %110, label %124, label %111

111:                                              ; preds = %86
  %112 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN7hipsycl6common13output_stream3getEv()
  %113 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK7hipsycl6common13output_stream10get_streamEv(ptr noundef nonnull align 8 dereferenceable(16) %112)
  %114 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %113, ptr noundef nonnull @.str)
  %115 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %114, ptr noundef nonnull @.str.14)
  %116 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %115, i64 noundef %.0)
  %117 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %116, ptr noundef nonnull @.str.4)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %11) #6
  call void @_ZN7hipsycl2rt4dumpINS0_9operationEEENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPT_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %11, ptr noundef nonnull %2)
  %118 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) %117, ptr noundef nonnull align 8 dereferenceable(32) %11)
          to label %119 unwind label %122

119:                                              ; preds = %111
  %120 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %118, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %121 unwind label %122

121:                                              ; preds = %119
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %11) #6
  br label %124

122:                                              ; preds = %119, %111
  %123 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %11) #6
  resume { ptr, i32 } %123

124:                                              ; preds = %86, %121
  %125 = load ptr, ptr %107, align 8, !tbaa !5
  %126 = getelementptr inbounds i8, ptr %125, i64 24
  %127 = load ptr, ptr %126, align 8
  call void %127(ptr noundef nonnull align 8 dereferenceable(24) %107, ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef nonnull %2, ptr noundef nonnull align 8 dereferenceable(160) %3)
  br label %128

128:                                              ; preds = %38, %124
  ret void
}

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

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

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

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

declare noundef nonnull align 8 dereferenceable(160) ptr @_ZNK7hipsycl2rt8dag_node16get_requirementsEv(ptr noundef nonnull align 8 dereferenceable(384)) local_unnamed_addr #4

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

declare noundef zeroext i1 @_ZNK7hipsycl2rt8dag_node12is_submittedEv(ptr noundef nonnull align 8 dereferenceable(384)) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare hidden noundef i64 @_ZN7hipsycl2rt12_GLOBAL__N_121determine_target_laneERKSt10shared_ptrINS0_8dag_nodeEERKN3sbo12small_vectorIS4_Lm8EEEPKNS0_20multi_queue_executorERKNS0_17moving_statisticsENS0_28backend_execution_lane_rangeE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(160), ptr noundef, ptr noundef nonnull align 8 dereferenceable(48), i64, i64) local_unnamed_addr #2

declare { i64, i64 } @_ZNK7hipsycl2rt8dag_node19get_assigned_deviceEv(ptr noundef nonnull align 8 dereferenceable(384)) local_unnamed_addr #4

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7hipsycl2rt4dumpINS0_9operationEEENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPT_(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef) local_unnamed_addr #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 = { "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 = { noreturn 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 = { nounwind }
attributes #7 = { 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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"long", !10, i64 0}
!10 = !{!"omnipotent char", !7, i64 0}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,SROAPass,SimplifyCFGPass,TailCallElimPass