; LLVM IR from NVIDIA/DALI :: dali/core/cuda_stream_pool.ll (ZN4dali14CUDAStreamPool11GetFromPoolEi)

; 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.dali::CUDAStream" = type { %"class.dali::UniqueHandle" }
%"class.dali::UniqueHandle" = type { ptr }
%"class.std::lock_guard" = type { ptr }
%"class.dali::CUDAStreamPool" = type <{ ptr, %"struct.std::atomic", [4 x i8], %"class.std::vector", %"class.dali::yielding_spinlock", [7 x i8] }>
%"struct.std::atomic" = type { %"struct.std::__atomic_base" }
%"struct.std::__atomic_base" = type { i32 }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<dali::CUDAStreamPool::StreamEntry *, std::allocator<dali::CUDAStreamPool::StreamEntry *>>::_Vector_impl" }
%"struct.std::_Vector_base<dali::CUDAStreamPool::StreamEntry *, std::allocator<dali::CUDAStreamPool::StreamEntry *>>::_Vector_impl" = type { %"struct.std::_Vector_base<dali::CUDAStreamPool::StreamEntry *, std::allocator<dali::CUDAStreamPool::StreamEntry *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<dali::CUDAStreamPool::StreamEntry *, std::allocator<dali::CUDAStreamPool::StreamEntry *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.dali::yielding_spinlock" = type { %"struct.std::atomic_flag" }
%"struct.std::atomic_flag" = type { %"struct.std::__atomic_flag_base" }
%"struct.std::__atomic_flag_base" = type { i8 }
%"struct.dali::CUDAStreamPool::StreamEntry" = type { %"class.dali::CUDAStream", ptr }

@.str = external hidden unnamed_addr constant [68 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [75 x i8], align 1
@__PRETTY_FUNCTION__._ZN4dali14CUDAStreamPool11GetFromPoolEi = external hidden unnamed_addr constant [50 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: mustprogress uwtable
define dso_local void @_ZN4dali14CUDAStreamPool11GetFromPoolEi(ptr dead_on_unwind noalias writable sret(%"class.dali::CUDAStream") align 8 %0, ptr noundef nonnull align 8 dereferenceable(41) %1, i32 noundef %2) #1 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca %"class.std::lock_guard", align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca i1, align 1
  store ptr %0, ptr %4, align 8
  store ptr %1, ptr %5, align 8, !tbaa !5
  store i32 %2, ptr %6, align 4, !tbaa !9
  %13 = load ptr, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #7
  %14 = getelementptr inbounds %"class.dali::CUDAStreamPool", ptr %13, i32 0, i32 4
  call void @_ZNSt10lock_guardIN4dali17yielding_spinlockILi100EEEEC2ERS2_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 1 dereferenceable(1) %14)
  %15 = getelementptr inbounds %"class.dali::CUDAStreamPool", ptr %13, i32 0, i32 3
  %16 = call noundef zeroext i1 @_ZNKSt6vectorIPN4dali14CUDAStreamPool11StreamEntryESaIS3_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %15) #7
  br i1 %16, label %17, label %23

17:                                               ; preds = %3
  invoke void @_ZN4dali14CUDAStreamPool4InitEv(ptr noundef nonnull align 8 dereferenceable(41) %13)
          to label %18 unwind label %19

18:                                               ; preds = %17
  br label %23

19:                                               ; preds = %17
  %20 = landingpad { ptr, i32 }
          cleanup
  %21 = extractvalue { ptr, i32 } %20, 0
  store ptr %21, ptr %8, align 8
  %22 = extractvalue { ptr, i32 } %20, 1
  store i32 %22, ptr %9, align 4
  br label %68

23:                                               ; preds = %18, %3
  %24 = load i32, ptr %6, align 4, !tbaa !9
  %25 = icmp sge i32 %24, 0
  br i1 %25, label %26, label %32

26:                                               ; preds = %23
  %27 = load i32, ptr %6, align 4, !tbaa !9
  %28 = getelementptr inbounds %"class.dali::CUDAStreamPool", ptr %13, i32 0, i32 3
  %29 = call noundef i64 @_ZNKSt6vectorIPN4dali14CUDAStreamPool11StreamEntryESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %28) #7
  %30 = trunc i64 %29 to i32
  %31 = icmp slt i32 %27, %30
  br label %32

32:                                               ; preds = %26, %23
  %33 = phi i1 [ false, %23 ], [ %31, %26 ]
  br i1 %33, label %34, label %35

34:                                               ; preds = %32
  br label %37

35:                                               ; preds = %32
  call void @__assert_fail(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 69, ptr noundef @__PRETTY_FUNCTION__._ZN4dali14CUDAStreamPool11GetFromPoolEi) #8
  unreachable

36:                                               ; No predecessors!
  br label %37

37:                                               ; preds = %36, %34
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
  %38 = getelementptr inbounds %"class.dali::CUDAStreamPool", ptr %13, i32 0, i32 3
  %39 = load i32, ptr %6, align 4, !tbaa !9
  %40 = sext i32 %39 to i64
  %41 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPN4dali14CUDAStreamPool11StreamEntryESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %38, i64 noundef %40) #7
  %42 = invoke noundef ptr @_ZN4dali14CUDAStreamPool3PopERPNS0_11StreamEntryE(ptr noundef nonnull align 8 dereferenceable(8) %41)
          to label %43 unwind label %48

43:                                               ; preds = %37
  store ptr %42, ptr %10, align 8, !tbaa !5
  %44 = load ptr, ptr %10, align 8, !tbaa !5
  %45 = icmp ne ptr %44, null
  br i1 %45, label %52, label %46

46:                                               ; preds = %43
  call void @llvm.memset.p0.i64(ptr align 8 %0, i8 0, i64 8, i1 false)
  invoke void @_ZN4dali10CUDAStreamC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %0)
          to label %47 unwind label %48

47:                                               ; preds = %46
  store i32 1, ptr %11, align 4
  br label %66

48:                                               ; preds = %52, %46, %37
  %49 = landingpad { ptr, i32 }
          cleanup
  %50 = extractvalue { ptr, i32 } %49, 0
  store ptr %50, ptr %8, align 8
  %51 = extractvalue { ptr, i32 } %49, 1
  store i32 %51, ptr %9, align 4
  br label %67

52:                                               ; preds = %43
  store i1 false, ptr %12, align 1
  %53 = load ptr, ptr %10, align 8, !tbaa !5
  %54 = getelementptr inbounds %"struct.dali::CUDAStreamPool::StreamEntry", ptr %53, i32 0, i32 0
  invoke void @_ZN4dali10CUDAStreamC2EOS0_(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull align 8 dereferenceable(8) %54)
          to label %55 unwind label %48

55:                                               ; preds = %52
  %56 = getelementptr inbounds %"class.dali::CUDAStreamPool", ptr %13, i32 0, i32 0
  %57 = load ptr, ptr %10, align 8, !tbaa !5
  invoke void @_ZN4dali14CUDAStreamPool4PushERPNS0_11StreamEntryES2_(ptr noundef nonnull align 8 dereferenceable(8) %56, ptr noundef %57)
          to label %58 unwind label %60

58:                                               ; preds = %55
  store i1 true, ptr %12, align 1
  store i32 1, ptr %11, align 4
  %59 = load i1, ptr %12, align 1
  br i1 %59, label %65, label %64

60:                                               ; preds = %55
  %61 = landingpad { ptr, i32 }
          cleanup
  %62 = extractvalue { ptr, i32 } %61, 0
  store ptr %62, ptr %8, align 8
  %63 = extractvalue { ptr, i32 } %61, 1
  store i32 %63, ptr %9, align 4
  call void @_ZN4dali12UniqueHandleIP11CUstream_stNS_10CUDAStreamEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %0) #7
  br label %67

64:                                               ; preds = %58
  call void @_ZN4dali12UniqueHandleIP11CUstream_stNS_10CUDAStreamEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %0) #7
  br label %65

65:                                               ; preds = %64, %58
  br label %66

66:                                               ; preds = %65, %47
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  call void @_ZNSt10lock_guardIN4dali17yielding_spinlockILi100EEEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  ret void

67:                                               ; preds = %60, %48
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  br label %68

68:                                               ; preds = %67, %19
  call void @_ZNSt10lock_guardIN4dali17yielding_spinlockILi100EEEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  br label %69

69:                                               ; preds = %68
  %70 = load ptr, ptr %8, align 8
  %71 = load i32, ptr %9, align 4
  %72 = insertvalue { ptr, i32 } poison, ptr %70, 0
  %73 = insertvalue { ptr, i32 } %72, i32 %71, 1
  resume { ptr, i32 } %73
}

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt6vectorIPN4dali14CUDAStreamPool11StreamEntryESaIS3_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24)) #3 align 2

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

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

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #5

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 #3 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 #5 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #6 = { 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 #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 = !{!"int", !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.dali::CUDAStream" = type { %"class.dali::UniqueHandle" }
%"class.dali::UniqueHandle" = type { ptr }
%"class.std::lock_guard" = type { ptr }

@.str = external hidden unnamed_addr constant [68 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [75 x i8], align 1
@__PRETTY_FUNCTION__._ZN4dali14CUDAStreamPool11GetFromPoolEi = external hidden unnamed_addr constant [50 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 uwtable
define dso_local void @_ZN4dali14CUDAStreamPool11GetFromPoolEi(ptr dead_on_unwind noalias writable sret(%"class.dali::CUDAStream") align 8 %0, ptr noundef nonnull align 8 dereferenceable(41) %1, i32 noundef %2) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.std::lock_guard", align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #5
  %5 = getelementptr inbounds i8, ptr %1, i64 40
  call void @_ZNSt10lock_guardIN4dali17yielding_spinlockILi100EEEEC2ERS2_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 1 dereferenceable(1) %5)
  %6 = getelementptr inbounds i8, ptr %1, i64 16
  %7 = call noundef zeroext i1 @_ZNKSt6vectorIPN4dali14CUDAStreamPool11StreamEntryESaIS3_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #5
  br i1 %7, label %8, label %11

8:                                                ; preds = %3
  invoke void @_ZN4dali14CUDAStreamPool4InitEv(ptr noundef nonnull align 8 dereferenceable(41) %1)
          to label %11 unwind label %9

9:                                                ; preds = %8
  %10 = landingpad { ptr, i32 }
          cleanup
  br label %27

11:                                               ; preds = %8, %3
  %12 = icmp sgt i32 %2, -1
  br i1 %12, label %13, label %.critedge

13:                                               ; preds = %11
  %14 = call noundef i64 @_ZNKSt6vectorIPN4dali14CUDAStreamPool11StreamEntryESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #5
  %15 = trunc i64 %14 to i32
  %16 = icmp sgt i32 %15, %2
  br i1 %16, label %17, label %.critedge

.critedge:                                        ; preds = %11, %13
  call void @__assert_fail(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 69, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN4dali14CUDAStreamPool11GetFromPoolEi) #6
  unreachable

17:                                               ; preds = %13
  %18 = zext nneg i32 %2 to i64
  %19 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPN4dali14CUDAStreamPool11StreamEntryESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %18) #5
  %20 = call noundef ptr @_ZN4dali14CUDAStreamPool3PopERPNS0_11StreamEntryE(ptr noundef nonnull align 8 dereferenceable(8) %19)
  %.not = icmp eq ptr %20, null
  br i1 %.not, label %21, label %24

21:                                               ; preds = %17
  store i64 0, ptr %0, align 8
  invoke void @_ZN4dali10CUDAStreamC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %0)
          to label %26 unwind label %22

22:                                               ; preds = %24, %21
  %23 = landingpad { ptr, i32 }
          cleanup
  br label %27

24:                                               ; preds = %17
  invoke void @_ZN4dali10CUDAStreamC2EOS0_(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull align 8 dereferenceable(8) %20)
          to label %25 unwind label %22

25:                                               ; preds = %24
  call void @_ZN4dali14CUDAStreamPool4PushERPNS0_11StreamEntryES2_(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull %20)
  br label %26

26:                                               ; preds = %21, %25
  call void @_ZNSt10lock_guardIN4dali17yielding_spinlockILi100EEEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %4) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #5
  ret void

27:                                               ; preds = %22, %9
  %.pn = phi { ptr, i32 } [ %23, %22 ], [ %10, %9 ]
  call void @_ZNSt10lock_guardIN4dali17yielding_spinlockILi100EEEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %4) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #5
  resume { ptr, i32 } %.pn
}

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

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

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

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

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

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

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

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

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

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

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

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

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


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