; LLVM IR from NVIDIA/DALI :: dali/pipeline/executor/executor2 (exec_node_task)

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

%"class.std::shared_ptr.34" = type { %"class.std::__shared_ptr.35" }
%"class.std::__shared_ptr.35" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%class.anon.232 = type { %"class.dali::exec2::OutputTask" }
%"class.dali::exec2::OutputTask" = type { %"class.dali::exec2::ExecNodeTask" }
%"class.dali::exec2::ExecNodeTask" = type { ptr, ptr, %"struct.dali::exec2::WorkspaceParams", %"class.std::unique_ptr", %"class.dali::CUDASharedEvent" }
%"struct.dali::exec2::WorkspaceParams" = type <{ ptr, %"class.std::shared_ptr", i32, [4 x i8] }>
%"class.std::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = 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.2" }
%"struct.std::_Head_base.2" = type { ptr }
%"class.dali::CUDASharedEvent" = type { %"class.std::shared_ptr.3" }
%"class.std::shared_ptr.3" = type { %"class.std::__shared_ptr.4" }
%"class.std::__shared_ptr.4" = type { ptr, %"class.std::__shared_count" }
%class.anon.233 = type { %"class.dali::exec2::OpTask" }
%"class.dali::exec2::OpTask" = type { %"class.dali::exec2::ExecNodeTask", i8, ptr, %"class.dali::SmallVector.6" }
%"class.dali::SmallVector.6" = type { %union.anon.9, i64 }
%union.anon.9 = type { %struct.anon.10 }
%struct.anon.10 = type { ptr, i64 }
%"class.dali::exec2::ExecNode" = type { %"class.dali::SmallVector.13", %"class.dali::SmallVector.18", %"class.std::shared_ptr.23", %"class.std::shared_ptr.23", %"class.std::unique_ptr.26", %"struct.dali::exec2::ExecEnv", %"class.std::__cxx11::basic_string", i32, i8, i8, i8, %"class.std::shared_ptr.34", %"class.std::shared_ptr.34", %"class.std::shared_ptr.34", %"class.std::unique_ptr", i8, %"class.dali::CUDASharedEvent", %"class.std::any" }
%"class.dali::SmallVector.13" = type { %union.anon.16, i64 }
%union.anon.16 = type { %struct.anon.17, [48 x i8] }
%struct.anon.17 = type { ptr, i64 }
%"class.dali::SmallVector.18" = type { %union.anon.21, i64 }
%union.anon.21 = type { %struct.anon.22, [176 x i8] }
%struct.anon.22 = type { ptr, i64 }
%"class.std::shared_ptr.23" = type { %"class.std::__shared_ptr.24" }
%"class.std::__shared_ptr.24" = type { ptr, %"class.std::__shared_count" }
%"class.std::unique_ptr.26" = type { %"struct.std::__uniq_ptr_data.27" }
%"struct.std::__uniq_ptr_data.27" = type { %"class.std::__uniq_ptr_impl.28" }
%"class.std::__uniq_ptr_impl.28" = type { %"class.std::tuple.29" }
%"class.std::tuple.29" = type { %"struct.std::_Tuple_impl.30" }
%"struct.std::_Tuple_impl.30" = type { %"struct.std::_Head_base.33" }
%"struct.std::_Head_base.33" = type { ptr }
%"struct.dali::exec2::ExecEnv" = type { ptr, %"class.dali::AccessOrder" }
%"class.dali::AccessOrder" = type <{ ptr, i32, [4 x i8] }>
%"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.std::any" = type { ptr, %"union.std::any::_Storage" }
%"union.std::any::_Storage" = type { ptr }

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

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4dali5exec212ExecNodeTask10CreateTaskEPNS0_8ExecNodeERKNS0_15WorkspaceParamsE(ptr dead_on_unwind noalias writable sret(%"class.std::shared_ptr.34") align 8 %0, ptr noundef %1, ptr noundef nonnull align 8 dereferenceable(28) %2) #2 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca %class.anon.232, align 8
  %8 = alloca %"class.dali::exec2::OutputTask", align 8
  %9 = alloca %"struct.dali::exec2::WorkspaceParams", align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca %class.anon.233, align 8
  %14 = alloca %"class.dali::exec2::OpTask", align 8
  %15 = alloca %"struct.dali::exec2::WorkspaceParams", align 8
  store ptr %0, ptr %4, align 8
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  %16 = load ptr, ptr %5, align 8, !tbaa !5
  %17 = getelementptr inbounds %"class.dali::exec2::ExecNode", ptr %16, i32 0, i32 8
  %18 = load i8, ptr %17, align 4, !tbaa !9, !range !42, !noundef !43
  %19 = trunc i8 %18 to i1
  br i1 %19, label %20, label %40

20:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 72, ptr %7) #5
  call void @llvm.lifetime.start.p0(i64 72, ptr %8) #5
  %21 = load ptr, ptr %5, align 8, !tbaa !5
  %22 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN4dali5exec215WorkspaceParamsC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(28) %9, ptr noundef nonnull align 8 dereferenceable(28) %22) #5
  invoke void @_ZN4dali5exec210OutputTaskCI2NS0_12ExecNodeTaskEEPNS0_8ExecNodeENS0_15WorkspaceParamsE(ptr noundef nonnull align 8 dereferenceable(72) %8, ptr noundef %21, ptr noundef %9)
          to label %23 unwind label %26

23:                                               ; preds = %20
  invoke void @_ZNO4dali5exec210OutputTask11GetRunnableEv(ptr dead_on_unwind writable sret(%class.anon.232) align 8 %7, ptr noundef nonnull align 8 dereferenceable(72) %8)
          to label %24 unwind label %30

24:                                               ; preds = %23
  invoke void @_ZN4dali7tasking4Task6CreateIZNOS_5exec210OutputTask11GetRunnableEvEUlPS1_E_EESt10shared_ptrIS1_EOT_d(ptr dead_on_unwind writable sret(%"class.std::shared_ptr.34") align 8 %0, ptr noundef nonnull align 8 dereferenceable(72) %7, double noundef 0.000000e+00)
          to label %25 unwind label %34

25:                                               ; preds = %24
  call void @_ZZNO4dali5exec210OutputTask11GetRunnableEvENUlPNS_7tasking4TaskEE_D2Ev(ptr noundef nonnull align 8 dereferenceable(72) %7) #5
  call void @_ZN4dali5exec212ExecNodeTaskD2Ev(ptr noundef nonnull align 8 dereferenceable(72) %8) #5
  call void @_ZN4dali5exec215WorkspaceParamsD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %9) #5
  call void @llvm.lifetime.end.p0(i64 72, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 72, ptr %7) #5
  br label %65

26:                                               ; preds = %20
  %27 = landingpad { ptr, i32 }
          cleanup
  %28 = extractvalue { ptr, i32 } %27, 0
  store ptr %28, ptr %10, align 8
  %29 = extractvalue { ptr, i32 } %27, 1
  store i32 %29, ptr %11, align 4
  br label %39

30:                                               ; preds = %23
  %31 = landingpad { ptr, i32 }
          cleanup
  %32 = extractvalue { ptr, i32 } %31, 0
  store ptr %32, ptr %10, align 8
  %33 = extractvalue { ptr, i32 } %31, 1
  store i32 %33, ptr %11, align 4
  br label %38

34:                                               ; preds = %24
  %35 = landingpad { ptr, i32 }
          cleanup
  %36 = extractvalue { ptr, i32 } %35, 0
  store ptr %36, ptr %10, align 8
  %37 = extractvalue { ptr, i32 } %35, 1
  store i32 %37, ptr %11, align 4
  call void @_ZZNO4dali5exec210OutputTask11GetRunnableEvENUlPNS_7tasking4TaskEE_D2Ev(ptr noundef nonnull align 8 dereferenceable(72) %7) #5
  br label %38

38:                                               ; preds = %34, %30
  call void @_ZN4dali5exec212ExecNodeTaskD2Ev(ptr noundef nonnull align 8 dereferenceable(72) %8) #5
  br label %39

39:                                               ; preds = %38, %26
  call void @_ZN4dali5exec215WorkspaceParamsD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %9) #5
  call void @llvm.lifetime.end.p0(i64 72, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 72, ptr %7) #5
  br label %66

40:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  %41 = load ptr, ptr %5, align 8, !tbaa !5
  %42 = getelementptr inbounds %"class.dali::exec2::ExecNode", ptr %41, i32 0, i32 1
  %43 = call noundef i64 @_ZNK4dali11SmallVectorINS_5exec214ExecOutputDescELm4ESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(200) %42)
  %44 = trunc i64 %43 to i32
  store i32 %44, ptr %12, align 4, !tbaa !44
  %45 = load i32, ptr %12, align 4, !tbaa !44
  call void @llvm.lifetime.start.p0(i64 112, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 112, ptr %14) #5
  %46 = load ptr, ptr %5, align 8, !tbaa !5
  %47 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN4dali5exec215WorkspaceParamsC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(28) %15, ptr noundef nonnull align 8 dereferenceable(28) %47) #5
  invoke void @_ZN4dali5exec26OpTaskCI2NS0_12ExecNodeTaskEEPNS0_8ExecNodeENS0_15WorkspaceParamsE(ptr noundef nonnull align 8 dereferenceable(112) %14, ptr noundef %46, ptr noundef %15)
          to label %48 unwind label %51

48:                                               ; preds = %40
  invoke void @_ZNO4dali5exec26OpTask11GetRunnableEv(ptr dead_on_unwind writable sret(%class.anon.233) align 8 %13, ptr noundef nonnull align 8 dereferenceable(112) %14)
          to label %49 unwind label %55

49:                                               ; preds = %48
  invoke void @_ZN4dali7tasking4Task6CreateIZNOS_5exec26OpTask11GetRunnableEvEUlPS1_E_EESt10shared_ptrIS1_EiOT_d(ptr dead_on_unwind writable sret(%"class.std::shared_ptr.34") align 8 %0, i32 noundef %45, ptr noundef nonnull align 8 dereferenceable(112) %13, double noundef 0.000000e+00)
          to label %50 unwind label %59

50:                                               ; preds = %49
  call void @_ZZNO4dali5exec26OpTask11GetRunnableEvENUlPNS_7tasking4TaskEE_D2Ev(ptr noundef nonnull align 8 dereferenceable(112) %13) #5
  call void @_ZN4dali5exec26OpTaskD2Ev(ptr noundef nonnull align 8 dereferenceable(112) %14) #5
  call void @_ZN4dali5exec215WorkspaceParamsD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %15) #5
  call void @llvm.lifetime.end.p0(i64 112, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 112, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  br label %65

51:                                               ; preds = %40
  %52 = landingpad { ptr, i32 }
          cleanup
  %53 = extractvalue { ptr, i32 } %52, 0
  store ptr %53, ptr %10, align 8
  %54 = extractvalue { ptr, i32 } %52, 1
  store i32 %54, ptr %11, align 4
  br label %64

55:                                               ; preds = %48
  %56 = landingpad { ptr, i32 }
          cleanup
  %57 = extractvalue { ptr, i32 } %56, 0
  store ptr %57, ptr %10, align 8
  %58 = extractvalue { ptr, i32 } %56, 1
  store i32 %58, ptr %11, align 4
  br label %63

59:                                               ; preds = %49
  %60 = landingpad { ptr, i32 }
          cleanup
  %61 = extractvalue { ptr, i32 } %60, 0
  store ptr %61, ptr %10, align 8
  %62 = extractvalue { ptr, i32 } %60, 1
  store i32 %62, ptr %11, align 4
  call void @_ZZNO4dali5exec26OpTask11GetRunnableEvENUlPNS_7tasking4TaskEE_D2Ev(ptr noundef nonnull align 8 dereferenceable(112) %13) #5
  br label %63

63:                                               ; preds = %59, %55
  call void @_ZN4dali5exec26OpTaskD2Ev(ptr noundef nonnull align 8 dereferenceable(112) %14) #5
  br label %64

64:                                               ; preds = %63, %51
  call void @_ZN4dali5exec215WorkspaceParamsD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %15) #5
  call void @llvm.lifetime.end.p0(i64 112, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 112, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  br label %66

65:                                               ; preds = %50, %25
  ret void

66:                                               ; preds = %64, %39
  %67 = load ptr, ptr %10, align 8
  %68 = load i32, ptr %11, align 4
  %69 = insertvalue { ptr, i32 } poison, ptr %67, 0
  %70 = insertvalue { ptr, i32 } %69, i32 %68, 1
  resume { ptr, i32 } %70
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4dali7tasking4Task6CreateIZNOS_5exec210OutputTask11GetRunnableEvEUlPS1_E_EESt10shared_ptrIS1_EOT_d(ptr dead_on_unwind noalias writable sret(%"class.std::shared_ptr.34") align 8, ptr noundef nonnull align 8 dereferenceable(72), double noundef) #2 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNO4dali5exec210OutputTask11GetRunnableEv(ptr dead_on_unwind noalias writable sret(%class.anon.232) align 8, ptr noundef nonnull align 8 dereferenceable(72)) #4 align 2

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4dali7tasking4Task6CreateIZNOS_5exec26OpTask11GetRunnableEvEUlPS1_E_EESt10shared_ptrIS1_EiOT_d(ptr dead_on_unwind noalias writable sret(%"class.std::shared_ptr.34") align 8, i32 noundef, ptr noundef nonnull align 8 dereferenceable(112), double noundef) #2 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNO4dali5exec26OpTask11GetRunnableEv(ptr dead_on_unwind noalias writable sret(%class.anon.233) align 8, ptr noundef nonnull align 8 dereferenceable(112)) #4 align 2

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { 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, !29, i64 372}
!10 = !{!"_ZTSN4dali5exec28ExecNodeE", !11, i64 0, !13, i64 72, !14, i64 272, !14, i64 288, !17, i64 304, !23, i64 312, !26, i64 336, !28, i64 368, !29, i64 372, !29, i64 373, !29, i64 374, !30, i64 376, !30, i64 392, !30, i64 408, !32, i64 424, !29, i64 432, !38, i64 440, !41, i64 456}
!11 = !{!"_ZTSN4dali11SmallVectorIPNS_5exec28ExecEdgeELm8ESaIS3_EEE", !7, i64 0, !12, i64 64}
!12 = !{!"long", !7, i64 0}
!13 = !{!"_ZTSN4dali11SmallVectorINS_5exec214ExecOutputDescELm4ESaIS2_EEE", !7, i64 0, !12, i64 192}
!14 = !{!"_ZTSSt10shared_ptrIN4dali7tasking9SemaphoreEE", !15, i64 0}
!15 = !{!"_ZTSSt12__shared_ptrIN4dali7tasking9SemaphoreELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !16, i64 8}
!16 = !{!"_ZTSSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0}
!17 = !{!"_ZTSSt10unique_ptrIN4dali12OperatorBaseESt14default_deleteIS1_EE", !18, i64 0}
!18 = !{!"_ZTSSt15__uniq_ptr_dataIN4dali12OperatorBaseESt14default_deleteIS1_ELb1ELb1EE", !19, i64 0}
!19 = !{!"_ZTSSt15__uniq_ptr_implIN4dali12OperatorBaseESt14default_deleteIS1_EE", !20, i64 0}
!20 = !{!"_ZTSSt5tupleIJPN4dali12OperatorBaseESt14default_deleteIS1_EEE", !21, i64 0}
!21 = !{!"_ZTSSt11_Tuple_implILm0EJPN4dali12OperatorBaseESt14default_deleteIS1_EEE", !22, i64 0}
!22 = !{!"_ZTSSt10_Head_baseILm0EPN4dali12OperatorBaseELb0EE", !6, i64 0}
!23 = !{!"_ZTSN4dali5exec27ExecEnvE", !6, i64 0, !24, i64 8}
!24 = !{!"_ZTSN4dali11AccessOrderE", !6, i64 0, !25, i64 8}
!25 = !{!"int", !7, i64 0}
!26 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !27, i64 0, !12, i64 8, !7, i64 16}
!27 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!28 = !{!"_ZTSN4dali6OpTypeE", !7, i64 0}
!29 = !{!"bool", !7, i64 0}
!30 = !{!"_ZTSSt10shared_ptrIN4dali7tasking4TaskEE", !31, i64 0}
!31 = !{!"_ZTSSt12__shared_ptrIN4dali7tasking4TaskELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !16, i64 8}
!32 = !{!"_ZTSSt10unique_ptrIN4dali9WorkspaceESt14default_deleteIS1_EE", !33, i64 0}
!33 = !{!"_ZTSSt15__uniq_ptr_dataIN4dali9WorkspaceESt14default_deleteIS1_ELb1ELb1EE", !34, i64 0}
!34 = !{!"_ZTSSt15__uniq_ptr_implIN4dali9WorkspaceESt14default_deleteIS1_EE", !35, i64 0}
!35 = !{!"_ZTSSt5tupleIJPN4dali9WorkspaceESt14default_deleteIS1_EEE", !36, i64 0}
!36 = !{!"_ZTSSt11_Tuple_implILm0EJPN4dali9WorkspaceESt14default_deleteIS1_EEE", !37, i64 0}
!37 = !{!"_ZTSSt10_Head_baseILm0EPN4dali9WorkspaceELb0EE", !6, i64 0}
!38 = !{!"_ZTSN4dali15CUDASharedEventE", !39, i64 0}
!39 = !{!"_ZTSSt10shared_ptrIvE", !40, i64 0}
!40 = !{!"_ZTSSt12__shared_ptrIvLN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !16, i64 8}
!41 = !{!"_ZTSSt3any", !6, i64 0, !7, i64 8}
!42 = !{i8 0, i8 2}
!43 = !{}
!44 = !{!25, !25, 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.std::shared_ptr.34" = type { %"class.std::__shared_ptr.35" }
%"class.std::__shared_ptr.35" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%class.anon.232 = type { %"class.dali::exec2::OutputTask" }
%"class.dali::exec2::OutputTask" = type { %"class.dali::exec2::ExecNodeTask" }
%"class.dali::exec2::ExecNodeTask" = type { ptr, ptr, %"struct.dali::exec2::WorkspaceParams", %"class.std::unique_ptr", %"class.dali::CUDASharedEvent" }
%"struct.dali::exec2::WorkspaceParams" = type <{ ptr, %"class.std::shared_ptr", i32, [4 x i8] }>
%"class.std::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = 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.2" }
%"struct.std::_Head_base.2" = type { ptr }
%"class.dali::CUDASharedEvent" = type { %"class.std::shared_ptr.3" }
%"class.std::shared_ptr.3" = type { %"class.std::__shared_ptr.4" }
%"class.std::__shared_ptr.4" = type { ptr, %"class.std::__shared_count" }
%class.anon.233 = type { %"class.dali::exec2::OpTask" }
%"class.dali::exec2::OpTask" = type { %"class.dali::exec2::ExecNodeTask", i8, ptr, %"class.dali::SmallVector.6" }
%"class.dali::SmallVector.6" = type { %union.anon.9, i64 }
%union.anon.9 = type { %struct.anon.10 }
%struct.anon.10 = type { ptr, i64 }

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

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4dali5exec212ExecNodeTask10CreateTaskEPNS0_8ExecNodeERKNS0_15WorkspaceParamsE(ptr dead_on_unwind noalias writable sret(%"class.std::shared_ptr.34") align 8 %0, ptr noundef %1, ptr noundef nonnull align 8 dereferenceable(28) %2) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %class.anon.232, align 8
  %5 = alloca %"class.dali::exec2::OutputTask", align 8
  %6 = alloca %"struct.dali::exec2::WorkspaceParams", align 8
  %7 = alloca %class.anon.233, align 8
  %8 = alloca %"class.dali::exec2::OpTask", align 8
  %9 = alloca %"struct.dali::exec2::WorkspaceParams", align 8
  %10 = getelementptr inbounds i8, ptr %1, i64 372
  %11 = load i8, ptr %10, align 4, !tbaa !5, !range !41, !noundef !42
  %12 = trunc nuw i8 %11 to i1
  br i1 %12, label %13, label %21

13:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %4) #5
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %5) #5
  call void @_ZN4dali5exec215WorkspaceParamsC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(28) %6, ptr noundef nonnull align 8 dereferenceable(28) %2) #5
  invoke void @_ZN4dali5exec210OutputTaskCI2NS0_12ExecNodeTaskEEPNS0_8ExecNodeENS0_15WorkspaceParamsE(ptr noundef nonnull align 8 dereferenceable(72) %5, ptr noundef nonnull %1, ptr noundef nonnull %6)
          to label %14 unwind label %16

14:                                               ; preds = %13
  call void @_ZNO4dali5exec210OutputTask11GetRunnableEv(ptr dead_on_unwind nonnull writable sret(%class.anon.232) align 8 %4, ptr noundef nonnull align 8 dereferenceable(72) %5)
  invoke void @_ZN4dali7tasking4Task6CreateIZNOS_5exec210OutputTask11GetRunnableEvEUlPS1_E_EESt10shared_ptrIS1_EOT_d(ptr dead_on_unwind writable sret(%"class.std::shared_ptr.34") align 8 %0, ptr noundef nonnull align 8 dereferenceable(72) %4, double noundef 0.000000e+00)
          to label %15 unwind label %18

15:                                               ; preds = %14
  call void @_ZZNO4dali5exec210OutputTask11GetRunnableEvENUlPNS_7tasking4TaskEE_D2Ev(ptr noundef nonnull align 8 dereferenceable(72) %4) #5
  call void @_ZN4dali5exec212ExecNodeTaskD2Ev(ptr noundef nonnull align 8 dereferenceable(72) %5) #5
  call void @_ZN4dali5exec215WorkspaceParamsD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %6) #5
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %4) #5
  br label %32

16:                                               ; preds = %13
  %17 = landingpad { ptr, i32 }
          cleanup
  br label %20

18:                                               ; preds = %14
  %19 = landingpad { ptr, i32 }
          cleanup
  call void @_ZZNO4dali5exec210OutputTask11GetRunnableEvENUlPNS_7tasking4TaskEE_D2Ev(ptr noundef nonnull align 8 dereferenceable(72) %4) #5
  call void @_ZN4dali5exec212ExecNodeTaskD2Ev(ptr noundef nonnull align 8 dereferenceable(72) %5) #5
  br label %20

20:                                               ; preds = %18, %16
  %.pn12 = phi { ptr, i32 } [ %19, %18 ], [ %17, %16 ]
  call void @_ZN4dali5exec215WorkspaceParamsD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %6) #5
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %4) #5
  br label %33

21:                                               ; preds = %3
  %22 = getelementptr inbounds i8, ptr %1, i64 72
  %23 = tail call noundef i64 @_ZNK4dali11SmallVectorINS_5exec214ExecOutputDescELm4ESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(200) %22)
  call void @llvm.lifetime.start.p0(i64 112, ptr nonnull %7) #5
  call void @llvm.lifetime.start.p0(i64 112, ptr nonnull %8) #5
  call void @_ZN4dali5exec215WorkspaceParamsC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(28) %9, ptr noundef nonnull align 8 dereferenceable(28) %2) #5
  invoke void @_ZN4dali5exec26OpTaskCI2NS0_12ExecNodeTaskEEPNS0_8ExecNodeENS0_15WorkspaceParamsE(ptr noundef nonnull align 8 dereferenceable(112) %8, ptr noundef nonnull %1, ptr noundef nonnull %9)
          to label %24 unwind label %27

24:                                               ; preds = %21
  %25 = trunc i64 %23 to i32
  call void @_ZNO4dali5exec26OpTask11GetRunnableEv(ptr dead_on_unwind nonnull writable sret(%class.anon.233) align 8 %7, ptr noundef nonnull align 8 dereferenceable(112) %8)
  invoke void @_ZN4dali7tasking4Task6CreateIZNOS_5exec26OpTask11GetRunnableEvEUlPS1_E_EESt10shared_ptrIS1_EiOT_d(ptr dead_on_unwind writable sret(%"class.std::shared_ptr.34") align 8 %0, i32 noundef %25, ptr noundef nonnull align 8 dereferenceable(112) %7, double noundef 0.000000e+00)
          to label %26 unwind label %29

26:                                               ; preds = %24
  call void @_ZZNO4dali5exec26OpTask11GetRunnableEvENUlPNS_7tasking4TaskEE_D2Ev(ptr noundef nonnull align 8 dereferenceable(112) %7) #5
  call void @_ZN4dali5exec26OpTaskD2Ev(ptr noundef nonnull align 8 dereferenceable(112) %8) #5
  call void @_ZN4dali5exec215WorkspaceParamsD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %9) #5
  call void @llvm.lifetime.end.p0(i64 112, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 112, ptr nonnull %7) #5
  br label %32

27:                                               ; preds = %21
  %28 = landingpad { ptr, i32 }
          cleanup
  br label %31

29:                                               ; preds = %24
  %30 = landingpad { ptr, i32 }
          cleanup
  call void @_ZZNO4dali5exec26OpTask11GetRunnableEvENUlPNS_7tasking4TaskEE_D2Ev(ptr noundef nonnull align 8 dereferenceable(112) %7) #5
  call void @_ZN4dali5exec26OpTaskD2Ev(ptr noundef nonnull align 8 dereferenceable(112) %8) #5
  br label %31

31:                                               ; preds = %29, %27
  %.pn = phi { ptr, i32 } [ %30, %29 ], [ %28, %27 ]
  call void @_ZN4dali5exec215WorkspaceParamsD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %9) #5
  call void @llvm.lifetime.end.p0(i64 112, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 112, ptr nonnull %7) #5
  br label %33

32:                                               ; preds = %26, %15
  ret void

33:                                               ; preds = %31, %20
  %.pn12.pn = phi { ptr, i32 } [ %.pn12, %20 ], [ %.pn, %31 ]
  resume { ptr, i32 } %.pn12.pn
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4dali7tasking4Task6CreateIZNOS_5exec210OutputTask11GetRunnableEvEUlPS1_E_EESt10shared_ptrIS1_EOT_d(ptr dead_on_unwind noalias writable sret(%"class.std::shared_ptr.34") align 8, ptr noundef nonnull align 8 dereferenceable(72), double noundef) local_unnamed_addr #2 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNO4dali5exec210OutputTask11GetRunnableEv(ptr dead_on_unwind noalias writable sret(%class.anon.232) align 8, ptr noundef nonnull align 8 dereferenceable(72)) local_unnamed_addr #4 align 2

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4dali7tasking4Task6CreateIZNOS_5exec26OpTask11GetRunnableEvEUlPS1_E_EESt10shared_ptrIS1_EiOT_d(ptr dead_on_unwind noalias writable sret(%"class.std::shared_ptr.34") align 8, i32 noundef, ptr noundef nonnull align 8 dereferenceable(112), double noundef) local_unnamed_addr #2 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNO4dali5exec26OpTask11GetRunnableEv(ptr dead_on_unwind noalias writable sret(%class.anon.233) align 8, ptr noundef nonnull align 8 dereferenceable(112)) local_unnamed_addr #4 align 2

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { 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, !28, i64 372}
!6 = !{!"_ZTSN4dali5exec28ExecNodeE", !7, i64 0, !11, i64 72, !12, i64 272, !12, i64 288, !16, i64 304, !22, i64 312, !25, i64 336, !27, i64 368, !28, i64 372, !28, i64 373, !28, i64 374, !29, i64 376, !29, i64 392, !29, i64 408, !31, i64 424, !28, i64 432, !37, i64 440, !40, i64 456}
!7 = !{!"_ZTSN4dali11SmallVectorIPNS_5exec28ExecEdgeELm8ESaIS3_EEE", !8, i64 0, !10, i64 64}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"long", !8, i64 0}
!11 = !{!"_ZTSN4dali11SmallVectorINS_5exec214ExecOutputDescELm4ESaIS2_EEE", !8, i64 0, !10, i64 192}
!12 = !{!"_ZTSSt10shared_ptrIN4dali7tasking9SemaphoreEE", !13, i64 0}
!13 = !{!"_ZTSSt12__shared_ptrIN4dali7tasking9SemaphoreELN9__gnu_cxx12_Lock_policyE2EE", !14, i64 0, !15, i64 8}
!14 = !{!"any pointer", !8, i64 0}
!15 = !{!"_ZTSSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EE", !14, i64 0}
!16 = !{!"_ZTSSt10unique_ptrIN4dali12OperatorBaseESt14default_deleteIS1_EE", !17, i64 0}
!17 = !{!"_ZTSSt15__uniq_ptr_dataIN4dali12OperatorBaseESt14default_deleteIS1_ELb1ELb1EE", !18, i64 0}
!18 = !{!"_ZTSSt15__uniq_ptr_implIN4dali12OperatorBaseESt14default_deleteIS1_EE", !19, i64 0}
!19 = !{!"_ZTSSt5tupleIJPN4dali12OperatorBaseESt14default_deleteIS1_EEE", !20, i64 0}
!20 = !{!"_ZTSSt11_Tuple_implILm0EJPN4dali12OperatorBaseESt14default_deleteIS1_EEE", !21, i64 0}
!21 = !{!"_ZTSSt10_Head_baseILm0EPN4dali12OperatorBaseELb0EE", !14, i64 0}
!22 = !{!"_ZTSN4dali5exec27ExecEnvE", !14, i64 0, !23, i64 8}
!23 = !{!"_ZTSN4dali11AccessOrderE", !14, i64 0, !24, i64 8}
!24 = !{!"int", !8, i64 0}
!25 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !26, i64 0, !10, i64 8, !8, i64 16}
!26 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !14, i64 0}
!27 = !{!"_ZTSN4dali6OpTypeE", !8, i64 0}
!28 = !{!"bool", !8, i64 0}
!29 = !{!"_ZTSSt10shared_ptrIN4dali7tasking4TaskEE", !30, i64 0}
!30 = !{!"_ZTSSt12__shared_ptrIN4dali7tasking4TaskELN9__gnu_cxx12_Lock_policyE2EE", !14, i64 0, !15, i64 8}
!31 = !{!"_ZTSSt10unique_ptrIN4dali9WorkspaceESt14default_deleteIS1_EE", !32, i64 0}
!32 = !{!"_ZTSSt15__uniq_ptr_dataIN4dali9WorkspaceESt14default_deleteIS1_ELb1ELb1EE", !33, i64 0}
!33 = !{!"_ZTSSt15__uniq_ptr_implIN4dali9WorkspaceESt14default_deleteIS1_EE", !34, i64 0}
!34 = !{!"_ZTSSt5tupleIJPN4dali9WorkspaceESt14default_deleteIS1_EEE", !35, i64 0}
!35 = !{!"_ZTSSt11_Tuple_implILm0EJPN4dali9WorkspaceESt14default_deleteIS1_EEE", !36, i64 0}
!36 = !{!"_ZTSSt10_Head_baseILm0EPN4dali9WorkspaceELb0EE", !14, i64 0}
!37 = !{!"_ZTSN4dali15CUDASharedEventE", !38, i64 0}
!38 = !{!"_ZTSSt10shared_ptrIvE", !39, i64 0}
!39 = !{!"_ZTSSt12__shared_ptrIvLN9__gnu_cxx12_Lock_policyE2EE", !14, i64 0, !15, i64 8}
!40 = !{!"_ZTSSt3any", !14, i64 0, !8, i64 8}
!41 = !{i8 0, i8 2}
!42 = !{}


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