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

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

%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.std::weak_ptr" = type { %"class.std::__weak_ptr" }
%"class.std::__weak_ptr" = type { ptr, %"class.std::__weak_count" }
%"class.std::__weak_count" = type { ptr }
%"class.hipsycl::rt::dag_node" = type { %"class.hipsycl::rt::execution_hints", %"class.sbo::small_vector", %"class.hipsycl::rt::device_id", ptr, ptr, i64, %"class.std::shared_ptr.4", %"class.std::unique_ptr", %"class.std::unique_ptr", %"struct.std::atomic", %"struct.std::atomic", i8, %"struct.std::atomic", ptr }
%"class.hipsycl::rt::execution_hints" = type <{ %"class.hipsycl::rt::hints::bind_to_device", [4 x i8], %"class.hipsycl::rt::hints::bind_to_device_group", %"class.hipsycl::rt::hints::prefer_execution_lane", %"class.hipsycl::rt::hints::node_group", %"class.hipsycl::rt::hints::coarse_grained_synchronization", [7 x i8], %"class.hipsycl::rt::hints::prefer_executor", %"class.hipsycl::rt::hints::request_instrumentation_submission_timestamp", %"class.hipsycl::rt::hints::request_instrumentation_start_timestamp", %"class.hipsycl::rt::hints::request_instrumentation_finish_timestamp", %"class.hipsycl::rt::hints::instant_execution", [4 x i8] }>
%"class.hipsycl::rt::hints::bind_to_device" = type { %"class.hipsycl::rt::hints::execution_hint", %"class.hipsycl::rt::device_id" }
%"class.hipsycl::rt::hints::execution_hint" = type { i8 }
%"class.hipsycl::rt::hints::bind_to_device_group" = type { %"class.hipsycl::rt::hints::execution_hint", %"class.std::vector" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<hipsycl::rt::device_id, std::allocator<hipsycl::rt::device_id>>::_Vector_impl" }
%"struct.std::_Vector_base<hipsycl::rt::device_id, std::allocator<hipsycl::rt::device_id>>::_Vector_impl" = type { %"struct.std::_Vector_base<hipsycl::rt::device_id, std::allocator<hipsycl::rt::device_id>>::_Vector_impl_data" }
%"struct.std::_Vector_base<hipsycl::rt::device_id, std::allocator<hipsycl::rt::device_id>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.hipsycl::rt::hints::prefer_execution_lane" = type { %"class.hipsycl::rt::hints::execution_hint", i64 }
%"class.hipsycl::rt::hints::node_group" = type { %"class.hipsycl::rt::hints::execution_hint", i64 }
%"class.hipsycl::rt::hints::coarse_grained_synchronization" = type { %"class.hipsycl::rt::hints::execution_hint" }
%"class.hipsycl::rt::hints::prefer_executor" = type { %"class.hipsycl::rt::hints::execution_hint", ptr, %"class.std::shared_ptr" }
%"class.std::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"class.hipsycl::rt::hints::request_instrumentation_submission_timestamp" = type { %"class.hipsycl::rt::hints::execution_hint" }
%"class.hipsycl::rt::hints::request_instrumentation_start_timestamp" = type { %"class.hipsycl::rt::hints::execution_hint" }
%"class.hipsycl::rt::hints::request_instrumentation_finish_timestamp" = type { %"class.hipsycl::rt::hints::execution_hint" }
%"class.hipsycl::rt::hints::instant_execution" = type { %"class.hipsycl::rt::hints::execution_hint" }
%"class.sbo::small_vector" = type { %"class.std::vector.2" }
%"class.std::vector.2" = type { %"struct.std::_Vector_base.3" }
%"struct.std::_Vector_base.3" = type { %"struct.std::_Vector_base<std::weak_ptr<hipsycl::rt::dag_node>, sbo::small_buffer_vector_allocator<std::weak_ptr<hipsycl::rt::dag_node>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::weak_ptr<hipsycl::rt::dag_node>, sbo::small_buffer_vector_allocator<std::weak_ptr<hipsycl::rt::dag_node>>>::_Vector_impl" = type { %"struct.sbo::small_buffer_vector_allocator.base", %"struct.std::_Vector_base<std::weak_ptr<hipsycl::rt::dag_node>, sbo::small_buffer_vector_allocator<std::weak_ptr<hipsycl::rt::dag_node>>>::_Vector_impl_data" }
%"struct.sbo::small_buffer_vector_allocator.base" = type { [128 x i8], i8, i8 }
%"struct.std::_Vector_base<std::weak_ptr<hipsycl::rt::dag_node>, sbo::small_buffer_vector_allocator<std::weak_ptr<hipsycl::rt::dag_node>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.hipsycl::rt::device_id" = type { %"struct.hipsycl::rt::backend_descriptor", i32 }
%"struct.hipsycl::rt::backend_descriptor" = type { i32, i32, i32 }
%"class.std::shared_ptr.4" = type { %"class.std::__shared_ptr.5" }
%"class.std::__shared_ptr.5" = type { ptr, %"class.std::__shared_count" }
%"class.std::unique_ptr" = type { %"struct.std::__uniq_ptr_data" }
%"struct.std::__uniq_ptr_data" = type { %"class.std::__uniq_ptr_impl" }
%"class.std::__uniq_ptr_impl" = type { %"class.std::tuple" }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Head_base.1" }
%"struct.std::_Head_base.1" = type { ptr }
%"struct.std::atomic" = type { %"struct.std::__atomic_base" }
%"struct.std::__atomic_base" = type { i8 }

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7hipsycl2rt8dag_nodeC2ERKNS0_15execution_hintsERKN3sbo12small_vectorISt10shared_ptrIS1_ELm8EEESt10unique_ptrINS0_9operationESt14default_deleteISD_EEPNS0_7runtimeE(ptr noundef nonnull align 8 dereferenceable(384) %0, ptr noundef nonnull align 8 dereferenceable(132) %1, ptr noundef nonnull align 8 dereferenceable(160) %2, ptr noundef %3, ptr noundef %4) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %13 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %14 = alloca ptr, align 8
  %15 = alloca %"class.std::weak_ptr", align 8
  %16 = alloca ptr, align 8
  %17 = alloca i32, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  store ptr %3, ptr %9, align 8, !tbaa !5
  store ptr %4, ptr %10, align 8, !tbaa !5
  %18 = load ptr, ptr %6, align 8
  %19 = getelementptr inbounds %"class.hipsycl::rt::dag_node", ptr %18, i32 0, i32 0
  %20 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZN7hipsycl2rt15execution_hintsC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(132) %19, ptr noundef nonnull align 8 dereferenceable(132) %20)
  %21 = getelementptr inbounds %"class.hipsycl::rt::dag_node", ptr %18, i32 0, i32 1
  call void @_ZN3sbo12small_vectorISt8weak_ptrIN7hipsycl2rt8dag_nodeEELm8EEC2Ev(ptr noundef nonnull align 8 dereferenceable(160) %21) #5
  %22 = getelementptr inbounds %"class.hipsycl::rt::dag_node", ptr %18, i32 0, i32 2
  %23 = getelementptr inbounds %"class.hipsycl::rt::dag_node", ptr %18, i32 0, i32 3
  store ptr null, ptr %23, align 8, !tbaa !9
  %24 = getelementptr inbounds %"class.hipsycl::rt::dag_node", ptr %18, i32 0, i32 6
  call void @_ZNSt10shared_ptrIN7hipsycl2rt14dag_node_eventEEC2EDn(ptr noundef nonnull align 8 dereferenceable(16) %24, ptr null) #5
  %25 = getelementptr inbounds %"class.hipsycl::rt::dag_node", ptr %18, i32 0, i32 7
  call void @_ZNSt10unique_ptrIN7hipsycl2rt9operationESt14default_deleteIS2_EEC2EOS5_(ptr noundef nonnull align 8 dereferenceable(8) %25, ptr noundef nonnull align 8 dereferenceable(8) %3) #5
  %26 = getelementptr inbounds %"class.hipsycl::rt::dag_node", ptr %18, i32 0, i32 8
  call void @_ZNSt10unique_ptrIN7hipsycl2rt9operationESt14default_deleteIS2_EEC2IS4_vEEv(ptr noundef nonnull align 8 dereferenceable(8) %26) #5
  %27 = getelementptr inbounds %"class.hipsycl::rt::dag_node", ptr %18, i32 0, i32 9
  call void @_ZNSt6atomicIbEC2Eb(ptr noundef nonnull align 1 dereferenceable(1) %27, i1 noundef zeroext false) #5
  %28 = getelementptr inbounds %"class.hipsycl::rt::dag_node", ptr %18, i32 0, i32 10
  call void @_ZNSt6atomicIbEC2Eb(ptr noundef nonnull align 1 dereferenceable(1) %28, i1 noundef zeroext false) #5
  %29 = getelementptr inbounds %"class.hipsycl::rt::dag_node", ptr %18, i32 0, i32 11
  store i8 0, ptr %29, align 2, !tbaa !55
  %30 = getelementptr inbounds %"class.hipsycl::rt::dag_node", ptr %18, i32 0, i32 12
  call void @_ZNSt6atomicIbEC2Eb(ptr noundef nonnull align 1 dereferenceable(1) %30, i1 noundef zeroext false) #5
  %31 = getelementptr inbounds %"class.hipsycl::rt::dag_node", ptr %18, i32 0, i32 13
  %32 = load ptr, ptr %10, align 8, !tbaa !5
  store ptr %32, ptr %31, align 8, !tbaa !56
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %33 = load ptr, ptr %8, align 8, !tbaa !5
  store ptr %33, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %34 = load ptr, ptr %11, align 8, !tbaa !5
  %35 = call ptr @_ZNKSt6vectorISt10shared_ptrIN7hipsycl2rt8dag_nodeEEN3sbo29small_buffer_vector_allocatorIS4_Lm8ES4_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(160) %34) #5
  %36 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %12, i32 0, i32 0
  store ptr %35, ptr %36, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  %37 = load ptr, ptr %11, align 8, !tbaa !5
  %38 = call ptr @_ZNKSt6vectorISt10shared_ptrIN7hipsycl2rt8dag_nodeEEN3sbo29small_buffer_vector_allocatorIS4_Lm8ES4_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(160) %37) #5
  %39 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %13, i32 0, i32 0
  store ptr %38, ptr %39, align 8
  br label %40

40:                                               ; preds = %48, %5
  %41 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKSt10shared_ptrIN7hipsycl2rt8dag_nodeEESt6vectorIS5_N3sbo29small_buffer_vector_allocatorIS5_Lm8ES5_EEEEEbRKNS_17__normal_iteratorIT_T0_EESI_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %13) #5
  br i1 %41, label %43, label %42

42:                                               ; preds = %40
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  br label %54

43:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  %44 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKSt10shared_ptrIN7hipsycl2rt8dag_nodeEESt6vectorIS5_N3sbo29small_buffer_vector_allocatorIS5_Lm8ES5_EEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #5
  store ptr %44, ptr %14, align 8, !tbaa !5
  %45 = getelementptr inbounds %"class.hipsycl::rt::dag_node", ptr %18, i32 0, i32 1
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #5
  %46 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZNSt8weak_ptrIN7hipsycl2rt8dag_nodeEEC2IS2_vEERKSt10shared_ptrIT_E(ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef nonnull align 8 dereferenceable(16) %46) #5
  invoke void @_ZNSt6vectorISt8weak_ptrIN7hipsycl2rt8dag_nodeEEN3sbo29small_buffer_vector_allocatorIS4_Lm8ES4_EEE9push_backEOS4_(ptr noundef nonnull align 8 dereferenceable(160) %45, ptr noundef nonnull align 8 dereferenceable(16) %15)
          to label %47 unwind label %50

47:                                               ; preds = %43
  call void @_ZNSt10__weak_ptrIN7hipsycl2rt8dag_nodeELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %15) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  br label %48

48:                                               ; preds = %47
  %49 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKSt10shared_ptrIN7hipsycl2rt8dag_nodeEESt6vectorIS5_N3sbo29small_buffer_vector_allocatorIS5_Lm8ES5_EEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #5
  br label %40

50:                                               ; preds = %43
  %51 = landingpad { ptr, i32 }
          cleanup
  %52 = extractvalue { ptr, i32 } %51, 0
  store ptr %52, ptr %16, align 8
  %53 = extractvalue { ptr, i32 } %51, 1
  store i32 %53, ptr %17, align 4
  call void @_ZNSt10__weak_ptrIN7hipsycl2rt8dag_nodeELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %15) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @_ZNSt10unique_ptrIN7hipsycl2rt9operationESt14default_deleteIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %26) #5
  call void @_ZNSt10unique_ptrIN7hipsycl2rt9operationESt14default_deleteIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %25) #5
  call void @_ZNSt12__shared_ptrIN7hipsycl2rt14dag_node_eventELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %24) #5
  call void @_ZNSt6vectorISt8weak_ptrIN7hipsycl2rt8dag_nodeEEN3sbo29small_buffer_vector_allocatorIS4_Lm8ES4_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(160) %21) #5
  call void @_ZN7hipsycl2rt15execution_hintsD2Ev(ptr noundef nonnull align 8 dereferenceable(132) %19) #5
  br label %55

54:                                               ; preds = %42
  ret void

55:                                               ; preds = %50
  %56 = load ptr, ptr %16, align 8
  %57 = load i32, ptr %17, align 4
  %58 = insertvalue { ptr, i32 } poison, ptr %56, 0
  %59 = insertvalue { ptr, i32 } %58, i32 %57, 1
  resume { ptr, i32 } %59
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN7hipsycl2rt15execution_hintsC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(132), ptr noundef nonnull align 8 dereferenceable(132)) unnamed_addr #1 align 2

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6atomicIbEC2Eb(ptr noundef nonnull align 1 dereferenceable(1), i1 noundef zeroext) unnamed_addr #2 align 2

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorISt8weak_ptrIN7hipsycl2rt8dag_nodeEEN3sbo29small_buffer_vector_allocatorIS4_Lm8ES4_EEE9push_backEOS4_(ptr noundef nonnull align 8 dereferenceable(160), ptr noundef nonnull align 8 dereferenceable(16)) #0 align 2

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

attributes #0 = { 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 #1 = { 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 #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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 }

!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, !6, i64 312}
!10 = !{!"_ZTSN7hipsycl2rt8dag_nodeE", !11, i64 0, !38, i64 136, !15, i64 296, !6, i64 312, !6, i64 320, !27, i64 328, !45, i64 336, !47, i64 352, !47, i64 360, !53, i64 368, !53, i64 369, !14, i64 370, !53, i64 371, !6, i64 376}
!11 = !{!"_ZTSN7hipsycl2rt15execution_hintsE", !12, i64 0, !21, i64 24, !26, i64 56, !28, i64 72, !29, i64 88, !30, i64 96, !34, i64 128, !35, i64 129, !36, i64 130, !37, i64 131}
!12 = !{!"_ZTSN7hipsycl2rt5hints14bind_to_deviceE", !13, i64 0, !15, i64 4}
!13 = !{!"_ZTSN7hipsycl2rt5hints14execution_hintE", !14, i64 0}
!14 = !{!"bool", !7, i64 0}
!15 = !{!"_ZTSN7hipsycl2rt9device_idE", !16, i64 0, !20, i64 12}
!16 = !{!"_ZTSN7hipsycl2rt18backend_descriptorE", !17, i64 0, !18, i64 4, !19, i64 8}
!17 = !{!"_ZTSN7hipsycl2rt10backend_idE", !7, i64 0}
!18 = !{!"_ZTSN7hipsycl2rt17hardware_platformE", !7, i64 0}
!19 = !{!"_ZTSN7hipsycl2rt12api_platformE", !7, i64 0}
!20 = !{!"int", !7, i64 0}
!21 = !{!"_ZTSN7hipsycl2rt5hints20bind_to_device_groupE", !13, i64 0, !22, i64 8}
!22 = !{!"_ZTSSt6vectorIN7hipsycl2rt9device_idESaIS2_EE", !23, i64 0}
!23 = !{!"_ZTSSt12_Vector_baseIN7hipsycl2rt9device_idESaIS2_EE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseIN7hipsycl2rt9device_idESaIS2_EE12_Vector_implE", !25, i64 0}
!25 = !{!"_ZTSNSt12_Vector_baseIN7hipsycl2rt9device_idESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!26 = !{!"_ZTSN7hipsycl2rt5hints21prefer_execution_laneE", !13, i64 0, !27, i64 8}
!27 = !{!"long", !7, i64 0}
!28 = !{!"_ZTSN7hipsycl2rt5hints10node_groupE", !13, i64 0, !27, i64 8}
!29 = !{!"_ZTSN7hipsycl2rt5hints30coarse_grained_synchronizationE", !13, i64 0}
!30 = !{!"_ZTSN7hipsycl2rt5hints15prefer_executorE", !13, i64 0, !6, i64 8, !31, i64 16}
!31 = !{!"_ZTSSt10shared_ptrIN7hipsycl2rt16backend_executorEE", !32, i64 0}
!32 = !{!"_ZTSSt12__shared_ptrIN7hipsycl2rt16backend_executorELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !33, i64 8}
!33 = !{!"_ZTSSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0}
!34 = !{!"_ZTSN7hipsycl2rt5hints44request_instrumentation_submission_timestampE", !13, i64 0}
!35 = !{!"_ZTSN7hipsycl2rt5hints39request_instrumentation_start_timestampE", !13, i64 0}
!36 = !{!"_ZTSN7hipsycl2rt5hints40request_instrumentation_finish_timestampE", !13, i64 0}
!37 = !{!"_ZTSN7hipsycl2rt5hints17instant_executionE", !13, i64 0}
!38 = !{!"_ZTSN3sbo12small_vectorISt8weak_ptrIN7hipsycl2rt8dag_nodeEELm8EEE", !39, i64 0}
!39 = !{!"_ZTSSt6vectorISt8weak_ptrIN7hipsycl2rt8dag_nodeEEN3sbo29small_buffer_vector_allocatorIS4_Lm8ES4_EEE", !40, i64 0}
!40 = !{!"_ZTSSt12_Vector_baseISt8weak_ptrIN7hipsycl2rt8dag_nodeEEN3sbo29small_buffer_vector_allocatorIS4_Lm8ES4_EEE", !41, i64 0}
!41 = !{!"_ZTSNSt12_Vector_baseISt8weak_ptrIN7hipsycl2rt8dag_nodeEEN3sbo29small_buffer_vector_allocatorIS4_Lm8ES4_EEE12_Vector_implE", !42, i64 0, !44, i64 136}
!42 = !{!"_ZTSN3sbo29small_buffer_vector_allocatorISt8weak_ptrIN7hipsycl2rt8dag_nodeEELm8ES5_EE", !7, i64 0, !43, i64 128, !14, i64 129}
!43 = !{!"_ZTSSaISt8weak_ptrIN7hipsycl2rt8dag_nodeEEE"}
!44 = !{!"_ZTSNSt12_Vector_baseISt8weak_ptrIN7hipsycl2rt8dag_nodeEEN3sbo29small_buffer_vector_allocatorIS4_Lm8ES4_EEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!45 = !{!"_ZTSSt10shared_ptrIN7hipsycl2rt14dag_node_eventEE", !46, i64 0}
!46 = !{!"_ZTSSt12__shared_ptrIN7hipsycl2rt14dag_node_eventELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !33, i64 8}
!47 = !{!"_ZTSSt10unique_ptrIN7hipsycl2rt9operationESt14default_deleteIS2_EE", !48, i64 0}
!48 = !{!"_ZTSSt15__uniq_ptr_dataIN7hipsycl2rt9operationESt14default_deleteIS2_ELb1ELb1EE", !49, i64 0}
!49 = !{!"_ZTSSt15__uniq_ptr_implIN7hipsycl2rt9operationESt14default_deleteIS2_EE", !50, i64 0}
!50 = !{!"_ZTSSt5tupleIJPN7hipsycl2rt9operationESt14default_deleteIS2_EEE", !51, i64 0}
!51 = !{!"_ZTSSt11_Tuple_implILm0EJPN7hipsycl2rt9operationESt14default_deleteIS2_EEE", !52, i64 0}
!52 = !{!"_ZTSSt10_Head_baseILm0EPN7hipsycl2rt9operationELb0EE", !6, i64 0}
!53 = !{!"_ZTSSt6atomicIbE", !54, i64 0}
!54 = !{!"_ZTSSt13__atomic_baseIbE", !14, i64 0}
!55 = !{!10, !14, i64 370}
!56 = !{!10, !6, i64 376}


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

%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.std::weak_ptr" = type { %"class.std::__weak_ptr" }
%"class.std::__weak_ptr" = type { ptr, %"class.std::__weak_count" }
%"class.std::__weak_count" = type { ptr }

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7hipsycl2rt8dag_nodeC2ERKNS0_15execution_hintsERKN3sbo12small_vectorISt10shared_ptrIS1_ELm8EEESt10unique_ptrINS0_9operationESt14default_deleteISD_EEPNS0_7runtimeE(ptr noundef nonnull align 8 dereferenceable(384) %0, ptr noundef nonnull align 8 dereferenceable(132) %1, ptr noundef nonnull align 8 dereferenceable(160) %2, ptr noundef %3, ptr noundef %4) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %7 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %8 = alloca %"class.std::weak_ptr", align 8
  tail call void @_ZN7hipsycl2rt15execution_hintsC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(132) %0, ptr noundef nonnull align 8 dereferenceable(132) %1)
  %9 = getelementptr inbounds i8, ptr %0, i64 136
  tail call void @_ZN3sbo12small_vectorISt8weak_ptrIN7hipsycl2rt8dag_nodeEELm8EEC2Ev(ptr noundef nonnull align 8 dereferenceable(160) %9) #5
  %10 = getelementptr inbounds i8, ptr %0, i64 312
  store ptr null, ptr %10, align 8, !tbaa !5
  %11 = getelementptr inbounds i8, ptr %0, i64 336
  tail call void @_ZNSt10shared_ptrIN7hipsycl2rt14dag_node_eventEEC2EDn(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr null) #5
  %12 = getelementptr inbounds i8, ptr %0, i64 352
  tail call void @_ZNSt10unique_ptrIN7hipsycl2rt9operationESt14default_deleteIS2_EEC2EOS5_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %3) #5
  %13 = getelementptr inbounds i8, ptr %0, i64 360
  tail call void @_ZNSt10unique_ptrIN7hipsycl2rt9operationESt14default_deleteIS2_EEC2IS4_vEEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #5
  %14 = getelementptr inbounds i8, ptr %0, i64 368
  tail call void @_ZNSt6atomicIbEC2Eb(ptr noundef nonnull align 1 dereferenceable(1) %14, i1 noundef zeroext false) #5
  %15 = getelementptr inbounds i8, ptr %0, i64 369
  tail call void @_ZNSt6atomicIbEC2Eb(ptr noundef nonnull align 1 dereferenceable(1) %15, i1 noundef zeroext false) #5
  %16 = getelementptr inbounds i8, ptr %0, i64 370
  store i8 0, ptr %16, align 2, !tbaa !54
  %17 = getelementptr inbounds i8, ptr %0, i64 371
  tail call void @_ZNSt6atomicIbEC2Eb(ptr noundef nonnull align 1 dereferenceable(1) %17, i1 noundef zeroext false) #5
  %18 = getelementptr inbounds i8, ptr %0, i64 376
  store ptr %4, ptr %18, align 8, !tbaa !55
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #5
  %19 = tail call ptr @_ZNKSt6vectorISt10shared_ptrIN7hipsycl2rt8dag_nodeEEN3sbo29small_buffer_vector_allocatorIS4_Lm8ES4_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(160) %2) #5
  store ptr %19, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #5
  %20 = tail call ptr @_ZNKSt6vectorISt10shared_ptrIN7hipsycl2rt8dag_nodeEEN3sbo29small_buffer_vector_allocatorIS4_Lm8ES4_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(160) %2) #5
  store ptr %20, ptr %7, align 8
  %21 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKSt10shared_ptrIN7hipsycl2rt8dag_nodeEESt6vectorIS5_N3sbo29small_buffer_vector_allocatorIS5_Lm8ES5_EEEEEbRKNS_17__normal_iteratorIT_T0_EESI_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #5
  br i1 %21, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %23, %5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  ret void

.lr.ph:                                           ; preds = %5, %23
  %22 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKSt10shared_ptrIN7hipsycl2rt8dag_nodeEESt6vectorIS5_N3sbo29small_buffer_vector_allocatorIS5_Lm8ES5_EEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #5
  call void @_ZNSt8weak_ptrIN7hipsycl2rt8dag_nodeEEC2IS2_vEERKSt10shared_ptrIT_E(ptr noundef nonnull align 8 dereferenceable(16) %8, ptr noundef nonnull align 8 dereferenceable(16) %22) #5
  invoke void @_ZNSt6vectorISt8weak_ptrIN7hipsycl2rt8dag_nodeEEN3sbo29small_buffer_vector_allocatorIS4_Lm8ES4_EEE9push_backEOS4_(ptr noundef nonnull align 8 dereferenceable(160) %9, ptr noundef nonnull align 8 dereferenceable(16) %8)
          to label %23 unwind label %26

23:                                               ; preds = %.lr.ph
  call void @_ZNSt10__weak_ptrIN7hipsycl2rt8dag_nodeELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %8) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #5
  %24 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKSt10shared_ptrIN7hipsycl2rt8dag_nodeEESt6vectorIS5_N3sbo29small_buffer_vector_allocatorIS5_Lm8ES5_EEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #5
  %25 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKSt10shared_ptrIN7hipsycl2rt8dag_nodeEESt6vectorIS5_N3sbo29small_buffer_vector_allocatorIS5_Lm8ES5_EEEEEbRKNS_17__normal_iteratorIT_T0_EESI_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #5
  br i1 %25, label %.lr.ph, label %._crit_edge

26:                                               ; preds = %.lr.ph
  %27 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt10__weak_ptrIN7hipsycl2rt8dag_nodeELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %8) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  call void @_ZNSt10unique_ptrIN7hipsycl2rt9operationESt14default_deleteIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %13) #5
  call void @_ZNSt10unique_ptrIN7hipsycl2rt9operationESt14default_deleteIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %12) #5
  call void @_ZNSt12__shared_ptrIN7hipsycl2rt14dag_node_eventELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %11) #5
  call void @_ZNSt6vectorISt8weak_ptrIN7hipsycl2rt8dag_nodeEEN3sbo29small_buffer_vector_allocatorIS4_Lm8ES4_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(160) %9) #5
  call void @_ZN7hipsycl2rt15execution_hintsD2Ev(ptr noundef nonnull align 8 dereferenceable(132) %0) #5
  resume { ptr, i32 } %27
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN7hipsycl2rt15execution_hintsC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(132), ptr noundef nonnull align 8 dereferenceable(132)) unnamed_addr #1 align 2

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6atomicIbEC2Eb(ptr noundef nonnull align 1 dereferenceable(1), i1 noundef zeroext) unnamed_addr #2 align 2

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorISt8weak_ptrIN7hipsycl2rt8dag_nodeEEN3sbo29small_buffer_vector_allocatorIS4_Lm8ES4_EEE9push_backEOS4_(ptr noundef nonnull align 8 dereferenceable(160), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #0 align 2

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

attributes #0 = { 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 #1 = { 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 #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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 }

!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, !24, i64 312}
!6 = !{!"_ZTSN7hipsycl2rt8dag_nodeE", !7, i64 0, !37, i64 136, !13, i64 296, !24, i64 312, !24, i64 320, !26, i64 328, !44, i64 336, !46, i64 352, !46, i64 360, !52, i64 368, !52, i64 369, !10, i64 370, !52, i64 371, !24, i64 376}
!7 = !{!"_ZTSN7hipsycl2rt15execution_hintsE", !8, i64 0, !19, i64 24, !25, i64 56, !27, i64 72, !28, i64 88, !29, i64 96, !33, i64 128, !34, i64 129, !35, i64 130, !36, i64 131}
!8 = !{!"_ZTSN7hipsycl2rt5hints14bind_to_deviceE", !9, i64 0, !13, i64 4}
!9 = !{!"_ZTSN7hipsycl2rt5hints14execution_hintE", !10, i64 0}
!10 = !{!"bool", !11, i64 0}
!11 = !{!"omnipotent char", !12, i64 0}
!12 = !{!"Simple C++ TBAA"}
!13 = !{!"_ZTSN7hipsycl2rt9device_idE", !14, i64 0, !18, i64 12}
!14 = !{!"_ZTSN7hipsycl2rt18backend_descriptorE", !15, i64 0, !16, i64 4, !17, i64 8}
!15 = !{!"_ZTSN7hipsycl2rt10backend_idE", !11, i64 0}
!16 = !{!"_ZTSN7hipsycl2rt17hardware_platformE", !11, i64 0}
!17 = !{!"_ZTSN7hipsycl2rt12api_platformE", !11, i64 0}
!18 = !{!"int", !11, i64 0}
!19 = !{!"_ZTSN7hipsycl2rt5hints20bind_to_device_groupE", !9, i64 0, !20, i64 8}
!20 = !{!"_ZTSSt6vectorIN7hipsycl2rt9device_idESaIS2_EE", !21, i64 0}
!21 = !{!"_ZTSSt12_Vector_baseIN7hipsycl2rt9device_idESaIS2_EE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseIN7hipsycl2rt9device_idESaIS2_EE12_Vector_implE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseIN7hipsycl2rt9device_idESaIS2_EE17_Vector_impl_dataE", !24, i64 0, !24, i64 8, !24, i64 16}
!24 = !{!"any pointer", !11, i64 0}
!25 = !{!"_ZTSN7hipsycl2rt5hints21prefer_execution_laneE", !9, i64 0, !26, i64 8}
!26 = !{!"long", !11, i64 0}
!27 = !{!"_ZTSN7hipsycl2rt5hints10node_groupE", !9, i64 0, !26, i64 8}
!28 = !{!"_ZTSN7hipsycl2rt5hints30coarse_grained_synchronizationE", !9, i64 0}
!29 = !{!"_ZTSN7hipsycl2rt5hints15prefer_executorE", !9, i64 0, !24, i64 8, !30, i64 16}
!30 = !{!"_ZTSSt10shared_ptrIN7hipsycl2rt16backend_executorEE", !31, i64 0}
!31 = !{!"_ZTSSt12__shared_ptrIN7hipsycl2rt16backend_executorELN9__gnu_cxx12_Lock_policyE2EE", !24, i64 0, !32, i64 8}
!32 = !{!"_ZTSSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EE", !24, i64 0}
!33 = !{!"_ZTSN7hipsycl2rt5hints44request_instrumentation_submission_timestampE", !9, i64 0}
!34 = !{!"_ZTSN7hipsycl2rt5hints39request_instrumentation_start_timestampE", !9, i64 0}
!35 = !{!"_ZTSN7hipsycl2rt5hints40request_instrumentation_finish_timestampE", !9, i64 0}
!36 = !{!"_ZTSN7hipsycl2rt5hints17instant_executionE", !9, i64 0}
!37 = !{!"_ZTSN3sbo12small_vectorISt8weak_ptrIN7hipsycl2rt8dag_nodeEELm8EEE", !38, i64 0}
!38 = !{!"_ZTSSt6vectorISt8weak_ptrIN7hipsycl2rt8dag_nodeEEN3sbo29small_buffer_vector_allocatorIS4_Lm8ES4_EEE", !39, i64 0}
!39 = !{!"_ZTSSt12_Vector_baseISt8weak_ptrIN7hipsycl2rt8dag_nodeEEN3sbo29small_buffer_vector_allocatorIS4_Lm8ES4_EEE", !40, i64 0}
!40 = !{!"_ZTSNSt12_Vector_baseISt8weak_ptrIN7hipsycl2rt8dag_nodeEEN3sbo29small_buffer_vector_allocatorIS4_Lm8ES4_EEE12_Vector_implE", !41, i64 0, !43, i64 136}
!41 = !{!"_ZTSN3sbo29small_buffer_vector_allocatorISt8weak_ptrIN7hipsycl2rt8dag_nodeEELm8ES5_EE", !11, i64 0, !42, i64 128, !10, i64 129}
!42 = !{!"_ZTSSaISt8weak_ptrIN7hipsycl2rt8dag_nodeEEE"}
!43 = !{!"_ZTSNSt12_Vector_baseISt8weak_ptrIN7hipsycl2rt8dag_nodeEEN3sbo29small_buffer_vector_allocatorIS4_Lm8ES4_EEE17_Vector_impl_dataE", !24, i64 0, !24, i64 8, !24, i64 16}
!44 = !{!"_ZTSSt10shared_ptrIN7hipsycl2rt14dag_node_eventEE", !45, i64 0}
!45 = !{!"_ZTSSt12__shared_ptrIN7hipsycl2rt14dag_node_eventELN9__gnu_cxx12_Lock_policyE2EE", !24, i64 0, !32, i64 8}
!46 = !{!"_ZTSSt10unique_ptrIN7hipsycl2rt9operationESt14default_deleteIS2_EE", !47, i64 0}
!47 = !{!"_ZTSSt15__uniq_ptr_dataIN7hipsycl2rt9operationESt14default_deleteIS2_ELb1ELb1EE", !48, i64 0}
!48 = !{!"_ZTSSt15__uniq_ptr_implIN7hipsycl2rt9operationESt14default_deleteIS2_EE", !49, i64 0}
!49 = !{!"_ZTSSt5tupleIJPN7hipsycl2rt9operationESt14default_deleteIS2_EEE", !50, i64 0}
!50 = !{!"_ZTSSt11_Tuple_implILm0EJPN7hipsycl2rt9operationESt14default_deleteIS2_EEE", !51, i64 0}
!51 = !{!"_ZTSSt10_Head_baseILm0EPN7hipsycl2rt9operationELb0EE", !24, i64 0}
!52 = !{!"_ZTSSt6atomicIbE", !53, i64 0}
!53 = !{!"_ZTSSt13__atomic_baseIbE", !10, i64 0}
!54 = !{!6, !10, i64 370}
!55 = !{!6, !24, i64 376}


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