; 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.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::__shared_count" = type { ptr }
%"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.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::shared_ptr.34" = type { %"class.std::__shared_ptr.35" }
%"class.std::__shared_ptr.35" = type { ptr, %"class.std::__shared_count" }
%"class.std::any" = type { ptr, %"union.std::any::_Storage" }
%"union.std::any::_Storage" = type { ptr }

@.str.7 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [96 x i8], align 1
@__PRETTY_FUNCTION__._ZN4dali5exec26OpTask19ApplyDefaultLayoutsEv = external hidden unnamed_addr constant [48 x i8], align 1

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE11InputIsTypeINS_10CPUBackendEEEbi(ptr noundef nonnull align 8 dereferenceable(664), i32 noundef) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE11InputIsTypeINS_10GPUBackendEEEbi(ptr noundef nonnull align 8 dereferenceable(664), i32 noundef) #3 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4dali5exec26OpTask19ApplyDefaultLayoutsEv(ptr noundef nonnull align 8 dereferenceable(112) %0) #3 align 2 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  %5 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #5
  %6 = getelementptr inbounds %"class.dali::exec2::ExecNodeTask", ptr %5, i32 0, i32 1
  %7 = load ptr, ptr %6, align 8, !tbaa !9
  %8 = getelementptr inbounds %"class.dali::exec2::ExecNode", ptr %7, i32 0, i32 4
  %9 = call noundef ptr @_ZNKSt10unique_ptrIN4dali12OperatorBaseESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #5
  %10 = call noundef nonnull align 8 dereferenceable(328) ptr @_ZNK4dali12OperatorBase7GetSpecEv(ptr noundef nonnull align 8 dereferenceable(400) %9)
  %11 = call noundef nonnull align 8 dereferenceable(608) ptr @_ZNK4dali6OpSpec9GetSchemaEv(ptr noundef nonnull align 8 dereferenceable(328) %10)
  store ptr %11, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
  store i32 0, ptr %4, align 4, !tbaa !25
  br label %12

12:                                               ; preds = %39, %1
  %13 = load i32, ptr %4, align 4, !tbaa !25
  %14 = getelementptr inbounds %"class.dali::exec2::ExecNodeTask", ptr %5, i32 0, i32 3
  %15 = call noundef ptr @_ZNKSt10unique_ptrIN4dali9WorkspaceESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %14) #5
  %16 = call noundef i32 @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE8NumInputEv(ptr noundef nonnull align 8 dereferenceable(664) %15)
  %17 = icmp slt i32 %13, %16
  br i1 %17, label %19, label %18

18:                                               ; preds = %12
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
  br label %42

19:                                               ; preds = %12
  %20 = getelementptr inbounds %"class.dali::exec2::ExecNodeTask", ptr %5, i32 0, i32 3
  %21 = call noundef ptr @_ZNKSt10unique_ptrIN4dali9WorkspaceESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %20) #5
  %22 = load i32, ptr %4, align 4, !tbaa !25
  %23 = call noundef zeroext i1 @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE11InputIsTypeINS_10CPUBackendEEEbi(ptr noundef nonnull align 8 dereferenceable(664) %21, i32 noundef %22)
  br i1 %23, label %24, label %27

24:                                               ; preds = %19
  %25 = load i32, ptr %4, align 4, !tbaa !25
  %26 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN4dali5exec26OpTask18ApplyDefaultLayoutINS_10CPUBackendEEEviRKNS_8OpSchemaE(ptr noundef nonnull align 8 dereferenceable(112) %5, i32 noundef %25, ptr noundef nonnull align 8 dereferenceable(608) %26)
  br label %38

27:                                               ; preds = %19
  %28 = getelementptr inbounds %"class.dali::exec2::ExecNodeTask", ptr %5, i32 0, i32 3
  %29 = call noundef ptr @_ZNKSt10unique_ptrIN4dali9WorkspaceESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %28) #5
  %30 = load i32, ptr %4, align 4, !tbaa !25
  %31 = call noundef zeroext i1 @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE11InputIsTypeINS_10GPUBackendEEEbi(ptr noundef nonnull align 8 dereferenceable(664) %29, i32 noundef %30)
  br i1 %31, label %32, label %33

32:                                               ; preds = %27
  br label %35

33:                                               ; preds = %27
  call void @__assert_fail(ptr noundef @.str.7, ptr noundef @.str.8, i32 noundef 240, ptr noundef @__PRETTY_FUNCTION__._ZN4dali5exec26OpTask19ApplyDefaultLayoutsEv) #6
  unreachable

34:                                               ; No predecessors!
  br label %35

35:                                               ; preds = %34, %32
  %36 = load i32, ptr %4, align 4, !tbaa !25
  %37 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN4dali5exec26OpTask18ApplyDefaultLayoutINS_10GPUBackendEEEviRKNS_8OpSchemaE(ptr noundef nonnull align 8 dereferenceable(112) %5, i32 noundef %36, ptr noundef nonnull align 8 dereferenceable(608) %37)
  br label %38

38:                                               ; preds = %35, %24
  br label %39

39:                                               ; preds = %38
  %40 = load i32, ptr %4, align 4, !tbaa !25
  %41 = add nsw i32 %40, 1
  store i32 %41, ptr %4, align 4, !tbaa !25
  br label %12, !llvm.loop !26

42:                                               ; preds = %18
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #5
  ret void
}

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4dali5exec26OpTask18ApplyDefaultLayoutINS_10CPUBackendEEEviRKNS_8OpSchemaE(ptr noundef nonnull align 8 dereferenceable(112), i32 noundef, ptr noundef nonnull align 8 dereferenceable(608)) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4dali5exec26OpTask18ApplyDefaultLayoutINS_10GPUBackendEEEviRKNS_8OpSchemaE(ptr noundef nonnull align 8 dereferenceable(112), i32 noundef, ptr noundef nonnull align 8 dereferenceable(608)) #3 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 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 = { 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)"}
!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 8}
!10 = !{!"_ZTSN4dali5exec212ExecNodeTaskE", !6, i64 0, !6, i64 8, !11, i64 16, !16, i64 48, !22, i64 56}
!11 = !{!"_ZTSN4dali5exec215WorkspaceParamsE", !6, i64 0, !12, i64 8, !15, i64 24}
!12 = !{!"_ZTSSt10shared_ptrIN4dali13IterationDataEE", !13, i64 0}
!13 = !{!"_ZTSSt12__shared_ptrIN4dali13IterationDataELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !14, i64 8}
!14 = !{!"_ZTSSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0}
!15 = !{!"int", !7, i64 0}
!16 = !{!"_ZTSSt10unique_ptrIN4dali9WorkspaceESt14default_deleteIS1_EE", !17, i64 0}
!17 = !{!"_ZTSSt15__uniq_ptr_dataIN4dali9WorkspaceESt14default_deleteIS1_ELb1ELb1EE", !18, i64 0}
!18 = !{!"_ZTSSt15__uniq_ptr_implIN4dali9WorkspaceESt14default_deleteIS1_EE", !19, i64 0}
!19 = !{!"_ZTSSt5tupleIJPN4dali9WorkspaceESt14default_deleteIS1_EEE", !20, i64 0}
!20 = !{!"_ZTSSt11_Tuple_implILm0EJPN4dali9WorkspaceESt14default_deleteIS1_EEE", !21, i64 0}
!21 = !{!"_ZTSSt10_Head_baseILm0EPN4dali9WorkspaceELb0EE", !6, i64 0}
!22 = !{!"_ZTSN4dali15CUDASharedEventE", !23, i64 0}
!23 = !{!"_ZTSSt10shared_ptrIvE", !24, i64 0}
!24 = !{!"_ZTSSt12__shared_ptrIvLN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !14, i64 8}
!25 = !{!15, !15, i64 0}
!26 = distinct !{!26, !27}
!27 = !{!"llvm.loop.mustprogress"}


; 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"

@.str.7 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [96 x i8], align 1
@__PRETTY_FUNCTION__._ZN4dali5exec26OpTask19ApplyDefaultLayoutsEv = external hidden unnamed_addr constant [48 x i8], align 1

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE11InputIsTypeINS_10CPUBackendEEEbi(ptr noundef nonnull align 8 dereferenceable(664), i32 noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE11InputIsTypeINS_10GPUBackendEEEbi(ptr noundef nonnull align 8 dereferenceable(664), i32 noundef) 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 uwtable
define dso_local void @_ZN4dali5exec26OpTask19ApplyDefaultLayoutsEv(ptr noundef nonnull align 8 dereferenceable(112) %0) local_unnamed_addr #2 align 2 {
  %2 = getelementptr inbounds i8, ptr %0, i64 8
  %3 = load ptr, ptr %2, align 8, !tbaa !5
  %4 = getelementptr inbounds i8, ptr %3, i64 304
  %5 = tail call noundef ptr @_ZNKSt10unique_ptrIN4dali12OperatorBaseESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #4
  %6 = tail call noundef nonnull align 8 dereferenceable(328) ptr @_ZNK4dali12OperatorBase7GetSpecEv(ptr noundef nonnull align 8 dereferenceable(400) %5)
  %7 = tail call noundef nonnull align 8 dereferenceable(608) ptr @_ZNK4dali6OpSpec9GetSchemaEv(ptr noundef nonnull align 8 dereferenceable(328) %6)
  %8 = getelementptr inbounds i8, ptr %0, i64 48
  %9 = tail call noundef ptr @_ZNKSt10unique_ptrIN4dali9WorkspaceESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #4
  %10 = tail call noundef i32 @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE8NumInputEv(ptr noundef nonnull align 8 dereferenceable(664) %9)
  %11 = icmp sgt i32 %10, 0
  br i1 %11, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %20, %1
  ret void

.lr.ph:                                           ; preds = %1, %20
  %.08 = phi i32 [ %21, %20 ], [ 0, %1 ]
  %12 = tail call noundef ptr @_ZNKSt10unique_ptrIN4dali9WorkspaceESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #4
  %13 = tail call noundef zeroext i1 @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE11InputIsTypeINS_10CPUBackendEEEbi(ptr noundef nonnull align 8 dereferenceable(664) %12, i32 noundef %.08)
  br i1 %13, label %14, label %15

14:                                               ; preds = %.lr.ph
  tail call void @_ZN4dali5exec26OpTask18ApplyDefaultLayoutINS_10CPUBackendEEEviRKNS_8OpSchemaE(ptr noundef nonnull align 8 dereferenceable(112) %0, i32 noundef %.08, ptr noundef nonnull align 8 dereferenceable(608) %7)
  br label %20

15:                                               ; preds = %.lr.ph
  %16 = tail call noundef ptr @_ZNKSt10unique_ptrIN4dali9WorkspaceESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #4
  %17 = tail call noundef zeroext i1 @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE11InputIsTypeINS_10GPUBackendEEEbi(ptr noundef nonnull align 8 dereferenceable(664) %16, i32 noundef %.08)
  br i1 %17, label %19, label %18

18:                                               ; preds = %15
  tail call void @__assert_fail(ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.8, i32 noundef 240, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN4dali5exec26OpTask19ApplyDefaultLayoutsEv) #5
  unreachable

19:                                               ; preds = %15
  tail call void @_ZN4dali5exec26OpTask18ApplyDefaultLayoutINS_10GPUBackendEEEviRKNS_8OpSchemaE(ptr noundef nonnull align 8 dereferenceable(112) %0, i32 noundef %.08, ptr noundef nonnull align 8 dereferenceable(608) %7)
  br label %20

20:                                               ; preds = %14, %19
  %21 = add nuw nsw i32 %.08, 1
  %22 = tail call noundef ptr @_ZNKSt10unique_ptrIN4dali9WorkspaceESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #4
  %23 = tail call noundef i32 @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE8NumInputEv(ptr noundef nonnull align 8 dereferenceable(664) %22)
  %24 = icmp slt i32 %21, %23
  br i1 %24, label %.lr.ph, label %._crit_edge, !llvm.loop !24
}

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4dali5exec26OpTask18ApplyDefaultLayoutINS_10CPUBackendEEEviRKNS_8OpSchemaE(ptr noundef nonnull align 8 dereferenceable(112), i32 noundef, ptr noundef nonnull align 8 dereferenceable(608)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4dali5exec26OpTask18ApplyDefaultLayoutINS_10GPUBackendEEEviRKNS_8OpSchemaE(ptr noundef nonnull align 8 dereferenceable(112), i32 noundef, ptr noundef nonnull align 8 dereferenceable(608)) local_unnamed_addr #2 align 2

attributes #0 = { 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 #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 = { 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 = { nounwind }
attributes #5 = { 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, !7, i64 8}
!6 = !{!"_ZTSN4dali5exec212ExecNodeTaskE", !7, i64 0, !7, i64 8, !10, i64 16, !15, i64 48, !21, i64 56}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTSN4dali5exec215WorkspaceParamsE", !7, i64 0, !11, i64 8, !14, i64 24}
!11 = !{!"_ZTSSt10shared_ptrIN4dali13IterationDataEE", !12, i64 0}
!12 = !{!"_ZTSSt12__shared_ptrIN4dali13IterationDataELN9__gnu_cxx12_Lock_policyE2EE", !7, i64 0, !13, i64 8}
!13 = !{!"_ZTSSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EE", !7, i64 0}
!14 = !{!"int", !8, i64 0}
!15 = !{!"_ZTSSt10unique_ptrIN4dali9WorkspaceESt14default_deleteIS1_EE", !16, i64 0}
!16 = !{!"_ZTSSt15__uniq_ptr_dataIN4dali9WorkspaceESt14default_deleteIS1_ELb1ELb1EE", !17, i64 0}
!17 = !{!"_ZTSSt15__uniq_ptr_implIN4dali9WorkspaceESt14default_deleteIS1_EE", !18, i64 0}
!18 = !{!"_ZTSSt5tupleIJPN4dali9WorkspaceESt14default_deleteIS1_EEE", !19, i64 0}
!19 = !{!"_ZTSSt11_Tuple_implILm0EJPN4dali9WorkspaceESt14default_deleteIS1_EEE", !20, i64 0}
!20 = !{!"_ZTSSt10_Head_baseILm0EPN4dali9WorkspaceELb0EE", !7, i64 0}
!21 = !{!"_ZTSN4dali15CUDASharedEventE", !22, i64 0}
!22 = !{!"_ZTSSt10shared_ptrIvE", !23, i64 0}
!23 = !{!"_ZTSSt12__shared_ptrIvLN9__gnu_cxx12_Lock_policyE2EE", !7, i64 0, !13, i64 8}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"}


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