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

; 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::unique_ptr.11" = type { %"struct.std::__uniq_ptr_data.12" }
%"struct.std::__uniq_ptr_data.12" = type { %"class.std::__uniq_ptr_impl.13" }
%"class.std::__uniq_ptr_impl.13" = type { %"class.std::tuple.14" }
%"class.std::tuple.14" = type { %"struct.std::_Tuple_impl.15" }
%"struct.std::_Tuple_impl.15" = type { %"struct.std::_Head_base.18" }
%"struct.std::_Head_base.18" = type { ptr }
%"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.128" = type { %"class.std::__shared_ptr.129" }
%"class.std::__shared_ptr.129" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"class.std::shared_ptr.125" = type { %"class.std::__shared_ptr.126" }
%"class.std::__shared_ptr.126" = type { ptr, %"class.std::__shared_count" }
%"class.dali::exec2::ExecNode" = type { %"class.dali::SmallVector", %"class.dali::SmallVector.3", %"class.std::shared_ptr", %"class.std::shared_ptr", %"class.std::unique_ptr", %"struct.dali::exec2::ExecEnv", %"class.std::__cxx11::basic_string", i32, i8, i8, i8, %"class.std::shared_ptr.8", %"class.std::shared_ptr.8", %"class.std::shared_ptr.8", %"class.std::unique_ptr.11", i8, %"class.dali::CUDASharedEvent", %"class.std::any" }
%"class.dali::SmallVector" = type { %union.anon.2, i64 }
%union.anon.2 = type { %struct.anon, [48 x i8] }
%struct.anon = type { ptr, i64 }
%"class.dali::SmallVector.3" = type { %union.anon.6, i64 }
%union.anon.6 = type { %struct.anon.7, [176 x i8] }
%struct.anon.7 = type { ptr, i64 }
%"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.1" }
%"struct.std::_Head_base.1" = type { ptr }
%"struct.dali::exec2::ExecEnv" = type { ptr, %"class.dali::AccessOrder" }
%"class.dali::AccessOrder" = type <{ ptr, i32, [4 x i8] }>
%"class.std::shared_ptr.8" = type { %"class.std::__shared_ptr.9" }
%"class.std::__shared_ptr.9" = type { ptr, %"class.std::__shared_count" }
%"class.dali::CUDASharedEvent" = type { %"class.std::shared_ptr.19" }
%"class.std::shared_ptr.19" = type { %"class.std::__shared_ptr.20" }
%"class.std::__shared_ptr.20" = type { ptr, %"class.std::__shared_count" }
%"class.std::any" = type { ptr, %"union.std::any::_Storage" }
%"union.std::any::_Storage" = type { ptr }
%"struct.dali::exec2::ExecEdge" = type <{ ptr, ptr, i32, i32, i32, i8, [3 x i8] }>
%"struct.dali::exec2::ExecOutputDesc" = type <{ %"class.dali::SmallVector.91", i32, i8, i8, [2 x i8] }>
%"class.dali::SmallVector.91" = type { %union.anon.92, i64 }
%union.anon.92 = type { %struct.anon.93, [16 x i8] }
%struct.anon.93 = type { ptr, i64 }

@.str.6 = external hidden unnamed_addr constant [92 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [3 x i8], align 1
@__PRETTY_FUNCTION__._ZN4dali5exec28ExecNode17CreateOpWorkspaceEv = external hidden unnamed_addr constant [70 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

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: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #1 align 2

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

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

; 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: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #3

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK4dali11SmallVectorIPNS_5exec28ExecEdgeELm8ESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(72)) #4 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt11make_uniqueIN4dali9WorkspaceEJEENSt8__detail9_MakeUniqIT_E15__single_objectEDpOT0_(ptr dead_on_unwind noalias writable sret(%"class.std::unique_ptr.11") align 8) #5

; 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: mustprogress nounwind uwtable
declare dso_local void @_ZNSt10shared_ptrIN4dali10TensorListINS0_10GPUBackendEEEEC2EDn(ptr noundef nonnull align 8 dereferenceable(16), ptr) unnamed_addr #1 align 2

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4dali5exec28ExecNode17CreateOpWorkspaceEv(ptr dead_on_unwind noalias writable sret(%"class.std::unique_ptr.11") align 8 %0, ptr noundef nonnull align 8 dereferenceable(472) %1) #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i1, align 1
  %7 = alloca %"class.std::__cxx11::basic_string", align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i8, align 1
  %13 = alloca i8, align 1
  %14 = alloca %"class.std::__cxx11::basic_string", align 8
  %15 = alloca %"class.std::shared_ptr.128", align 8
  %16 = alloca %"class.std::shared_ptr.125", align 8
  %17 = alloca %"class.std::shared_ptr.128", align 8
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i8, align 1
  %21 = alloca %"class.std::shared_ptr.125", align 8
  %22 = alloca %"class.std::shared_ptr.128", align 8
  store ptr %0, ptr %3, align 8
  store ptr %1, ptr %4, align 8, !tbaa !5
  %23 = load ptr, ptr %4, align 8
  %24 = getelementptr inbounds %"class.dali::exec2::ExecNode", ptr %23, i32 0, i32 4
  %25 = call noundef zeroext i1 @_ZNKSt10unique_ptrIN4dali12OperatorBaseESt14default_deleteIS1_EEcvbEv(ptr noundef nonnull align 8 dereferenceable(8) %24) #6
  br i1 %25, label %26, label %27

26:                                               ; preds = %2
  br label %29

27:                                               ; preds = %2
  call void @__assert_fail(ptr noundef @.str.10, ptr noundef @.str.6, i32 noundef 120, ptr noundef @__PRETTY_FUNCTION__._ZN4dali5exec28ExecNode17CreateOpWorkspaceEv) #7
  unreachable

28:                                               ; No predecessors!
  br label %29

29:                                               ; preds = %28, %26
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  %30 = getelementptr inbounds %"class.dali::exec2::ExecNode", ptr %23, i32 0, i32 4
  %31 = call noundef ptr @_ZNKSt10unique_ptrIN4dali12OperatorBaseESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %30) #6
  %32 = call noundef nonnull align 8 dereferenceable(328) ptr @_ZNK4dali12OperatorBase7GetSpecEv(ptr noundef nonnull align 8 dereferenceable(400) %31)
  store ptr %32, ptr %5, align 8, !tbaa !5
  store i1 false, ptr %6, align 1
  call void @_ZSt11make_uniqueIN4dali9WorkspaceEJEENSt8__detail9_MakeUniqIT_E15__single_objectEDpOT0_(ptr dead_on_unwind writable sret(%"class.std::unique_ptr.11") align 8 %0)
  %33 = call noundef ptr @_ZNKSt10unique_ptrIN4dali9WorkspaceESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %0) #6
  %34 = getelementptr inbounds %"class.dali::exec2::ExecNode", ptr %23, i32 0, i32 6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %7, ptr noundef nonnull align 8 dereferenceable(32) %34)
          to label %35 unwind label %46

35:                                               ; preds = %29
  invoke void @_ZN4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE23SetOperatorInstanceNameENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(664) %33, ptr noundef %7)
          to label %36 unwind label %50

36:                                               ; preds = %35
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  store i32 0, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  %37 = getelementptr inbounds %"class.dali::exec2::ExecNode", ptr %23, i32 0, i32 0
  %38 = invoke noundef i64 @_ZNK4dali11SmallVectorIPNS_5exec28ExecEdgeELm8ESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(72) %37)
          to label %39 unwind label %54

39:                                               ; preds = %36
  %40 = trunc i64 %38 to i32
  store i32 %40, ptr %11, align 4, !tbaa !9
  br label %41

41:                                               ; preds = %114, %39
  %42 = load i32, ptr %10, align 4, !tbaa !9
  %43 = load i32, ptr %11, align 4, !tbaa !9
  %44 = icmp slt i32 %42, %43
  br i1 %44, label %58, label %45

45:                                               ; preds = %41
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  br label %120

46:                                               ; preds = %29
  %47 = landingpad { ptr, i32 }
          cleanup
  %48 = extractvalue { ptr, i32 } %47, 0
  store ptr %48, ptr %8, align 8
  %49 = extractvalue { ptr, i32 } %47, 1
  store i32 %49, ptr %9, align 4
  br label %174

50:                                               ; preds = %35
  %51 = landingpad { ptr, i32 }
          cleanup
  %52 = extractvalue { ptr, i32 } %51, 0
  store ptr %52, ptr %8, align 8
  %53 = extractvalue { ptr, i32 } %51, 1
  store i32 %53, ptr %9, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #6
  br label %174

54:                                               ; preds = %36
  %55 = landingpad { ptr, i32 }
          cleanup
  %56 = extractvalue { ptr, i32 } %55, 0
  store ptr %56, ptr %8, align 8
  %57 = extractvalue { ptr, i32 } %55, 1
  store i32 %57, ptr %9, align 4
  br label %119

58:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 1, ptr %12) #6
  %59 = load ptr, ptr %5, align 8, !tbaa !5
  %60 = load i32, ptr %10, align 4, !tbaa !9
  %61 = invoke noundef zeroext i1 @_ZNK4dali6OpSpec15IsArgumentInputEi(ptr noundef nonnull align 8 dereferenceable(328) %59, i32 noundef %60)
          to label %62 unwind label %83

62:                                               ; preds = %58
  %63 = zext i1 %61 to i8
  store i8 %63, ptr %12, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 1, ptr %13) #6
  %64 = getelementptr inbounds %"class.dali::exec2::ExecNode", ptr %23, i32 0, i32 0
  %65 = load i32, ptr %10, align 4, !tbaa !9
  %66 = sext i32 %65 to i64
  %67 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN4dali11SmallVectorIPNS_5exec28ExecEdgeELm8ESaIS3_EEixEl(ptr noundef nonnull align 8 dereferenceable(72) %64, i64 noundef %66)
          to label %68 unwind label %87

68:                                               ; preds = %62
  %69 = load ptr, ptr %67, align 8, !tbaa !5
  %70 = getelementptr inbounds %"struct.dali::exec2::ExecEdge", ptr %69, i32 0, i32 4
  %71 = load i32, ptr %70, align 8, !tbaa !13
  %72 = icmp eq i32 %71, 1
  %73 = zext i1 %72 to i8
  store i8 %73, ptr %13, align 1, !tbaa !11
  %74 = load i8, ptr %12, align 1, !tbaa !11, !range !16, !noundef !17
  %75 = trunc i8 %74 to i1
  br i1 %75, label %76, label %95

76:                                               ; preds = %68
  %77 = call noundef ptr @_ZNKSt10unique_ptrIN4dali9WorkspaceESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %0) #6
  %78 = load ptr, ptr %5, align 8, !tbaa !5
  %79 = load i32, ptr %10, align 4, !tbaa !9
  invoke void @_ZNK4dali6OpSpec17ArgumentInputNameB5cxx11Ei(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %14, ptr noundef nonnull align 8 dereferenceable(328) %78, i32 noundef %79)
          to label %80 unwind label %87

80:                                               ; preds = %76
  call void @_ZNSt10shared_ptrIN4dali10TensorListINS0_10CPUBackendEEEEC2EDn(ptr noundef nonnull align 8 dereferenceable(16) %15, ptr null) #6
  %81 = invoke noundef i32 @_ZN4dali17ArgumentWorkspace16AddArgumentInputENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrINS_10TensorListINS_10CPUBackendEEEE(ptr noundef nonnull align 8 dereferenceable(256) %77, ptr noundef %14, ptr noundef %15)
          to label %82 unwind label %91

82:                                               ; preds = %80
  call void @_ZNSt12__shared_ptrIN4dali10TensorListINS0_10CPUBackendEEELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %15) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #6
  br label %113

83:                                               ; preds = %58
  %84 = landingpad { ptr, i32 }
          cleanup
  %85 = extractvalue { ptr, i32 } %84, 0
  store ptr %85, ptr %8, align 8
  %86 = extractvalue { ptr, i32 } %84, 1
  store i32 %86, ptr %9, align 4
  br label %118

87:                                               ; preds = %76, %62
  %88 = landingpad { ptr, i32 }
          cleanup
  %89 = extractvalue { ptr, i32 } %88, 0
  store ptr %89, ptr %8, align 8
  %90 = extractvalue { ptr, i32 } %88, 1
  store i32 %90, ptr %9, align 4
  br label %117

91:                                               ; preds = %80
  %92 = landingpad { ptr, i32 }
          cleanup
  %93 = extractvalue { ptr, i32 } %92, 0
  store ptr %93, ptr %8, align 8
  %94 = extractvalue { ptr, i32 } %92, 1
  store i32 %94, ptr %9, align 4
  call void @_ZNSt12__shared_ptrIN4dali10TensorListINS0_10CPUBackendEEELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %15) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #6
  br label %117

95:                                               ; preds = %68
  %96 = load i8, ptr %13, align 1, !tbaa !11, !range !16, !noundef !17
  %97 = trunc i8 %96 to i1
  br i1 %97, label %98, label %105

98:                                               ; preds = %95
  %99 = call noundef ptr @_ZNKSt10unique_ptrIN4dali9WorkspaceESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %0) #6
  call void @_ZNSt10shared_ptrIN4dali10TensorListINS0_10GPUBackendEEEEC2EDn(ptr noundef nonnull align 8 dereferenceable(16) %16, ptr null) #6
  invoke void @_ZN4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE8AddInputES2_INS1_INS_10GPUBackendEEEE(ptr noundef nonnull align 8 dereferenceable(664) %99, ptr noundef %16)
          to label %100 unwind label %101

100:                                              ; preds = %98
  call void @_ZNSt12__shared_ptrIN4dali10TensorListINS0_10GPUBackendEEELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %16) #6
  br label %112

101:                                              ; preds = %98
  %102 = landingpad { ptr, i32 }
          cleanup
  %103 = extractvalue { ptr, i32 } %102, 0
  store ptr %103, ptr %8, align 8
  %104 = extractvalue { ptr, i32 } %102, 1
  store i32 %104, ptr %9, align 4
  call void @_ZNSt12__shared_ptrIN4dali10TensorListINS0_10GPUBackendEEELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %16) #6
  br label %117

105:                                              ; preds = %95
  %106 = call noundef ptr @_ZNKSt10unique_ptrIN4dali9WorkspaceESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %0) #6
  call void @_ZNSt10shared_ptrIN4dali10TensorListINS0_10CPUBackendEEEEC2EDn(ptr noundef nonnull align 8 dereferenceable(16) %17, ptr null) #6
  invoke void @_ZN4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE8AddInputES2_INS1_INS_10CPUBackendEEEE(ptr noundef nonnull align 8 dereferenceable(664) %106, ptr noundef %17)
          to label %107 unwind label %108

107:                                              ; preds = %105
  call void @_ZNSt12__shared_ptrIN4dali10TensorListINS0_10CPUBackendEEELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %17) #6
  br label %112

108:                                              ; preds = %105
  %109 = landingpad { ptr, i32 }
          cleanup
  %110 = extractvalue { ptr, i32 } %109, 0
  store ptr %110, ptr %8, align 8
  %111 = extractvalue { ptr, i32 } %109, 1
  store i32 %111, ptr %9, align 4
  call void @_ZNSt12__shared_ptrIN4dali10TensorListINS0_10CPUBackendEEELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %17) #6
  br label %117

112:                                              ; preds = %107, %100
  br label %113

113:                                              ; preds = %112, %82
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #6
  br label %114

114:                                              ; preds = %113
  %115 = load i32, ptr %10, align 4, !tbaa !9
  %116 = add nsw i32 %115, 1
  store i32 %116, ptr %10, align 4, !tbaa !9
  br label %41, !llvm.loop !18

117:                                              ; preds = %108, %101, %91, %87
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #6
  br label %118

118:                                              ; preds = %117, %83
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #6
  br label %119

119:                                              ; preds = %118, %54
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  br label %174

120:                                              ; preds = %45
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  store i32 0, ptr %18, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #6
  %121 = getelementptr inbounds %"class.dali::exec2::ExecNode", ptr %23, i32 0, i32 1
  %122 = invoke noundef i64 @_ZNK4dali11SmallVectorINS_5exec214ExecOutputDescELm4ESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(200) %121)
          to label %123 unwind label %130

123:                                              ; preds = %120
  %124 = trunc i64 %122 to i32
  store i32 %124, ptr %19, align 4, !tbaa !9
  br label %125

125:                                              ; preds = %165, %123
  %126 = load i32, ptr %18, align 4, !tbaa !9
  %127 = load i32, ptr %19, align 4, !tbaa !9
  %128 = icmp slt i32 %126, %127
  br i1 %128, label %134, label %129

129:                                              ; preds = %125
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  br label %170

130:                                              ; preds = %120
  %131 = landingpad { ptr, i32 }
          cleanup
  %132 = extractvalue { ptr, i32 } %131, 0
  store ptr %132, ptr %8, align 8
  %133 = extractvalue { ptr, i32 } %131, 1
  store i32 %133, ptr %9, align 4
  br label %169

134:                                              ; preds = %125
  call void @llvm.lifetime.start.p0(i64 1, ptr %20) #6
  %135 = getelementptr inbounds %"class.dali::exec2::ExecNode", ptr %23, i32 0, i32 1
  %136 = load i32, ptr %18, align 4, !tbaa !9
  %137 = sext i32 %136 to i64
  %138 = invoke noundef nonnull align 8 dereferenceable(46) ptr @_ZN4dali11SmallVectorINS_5exec214ExecOutputDescELm4ESaIS2_EEixEl(ptr noundef nonnull align 8 dereferenceable(200) %135, i64 noundef %137)
          to label %139 unwind label %149

139:                                              ; preds = %134
  %140 = getelementptr inbounds %"struct.dali::exec2::ExecOutputDesc", ptr %138, i32 0, i32 1
  %141 = load i32, ptr %140, align 8, !tbaa !20
  %142 = icmp eq i32 %141, 1
  %143 = zext i1 %142 to i8
  store i8 %143, ptr %20, align 1, !tbaa !11
  %144 = load i8, ptr %20, align 1, !tbaa !11, !range !16, !noundef !17
  %145 = trunc i8 %144 to i1
  br i1 %145, label %146, label %157

146:                                              ; preds = %139
  %147 = call noundef ptr @_ZNKSt10unique_ptrIN4dali9WorkspaceESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %0) #6
  call void @_ZNSt10shared_ptrIN4dali10TensorListINS0_10GPUBackendEEEEC2EDn(ptr noundef nonnull align 8 dereferenceable(16) %21, ptr null) #6
  invoke void @_ZN4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE9AddOutputES2_INS1_INS_10GPUBackendEEEE(ptr noundef nonnull align 8 dereferenceable(664) %147, ptr noundef %21)
          to label %148 unwind label %153

148:                                              ; preds = %146
  call void @_ZNSt12__shared_ptrIN4dali10TensorListINS0_10GPUBackendEEELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %21) #6
  br label %164

149:                                              ; preds = %134
  %150 = landingpad { ptr, i32 }
          cleanup
  %151 = extractvalue { ptr, i32 } %150, 0
  store ptr %151, ptr %8, align 8
  %152 = extractvalue { ptr, i32 } %150, 1
  store i32 %152, ptr %9, align 4
  br label %168

153:                                              ; preds = %146
  %154 = landingpad { ptr, i32 }
          cleanup
  %155 = extractvalue { ptr, i32 } %154, 0
  store ptr %155, ptr %8, align 8
  %156 = extractvalue { ptr, i32 } %154, 1
  store i32 %156, ptr %9, align 4
  call void @_ZNSt12__shared_ptrIN4dali10TensorListINS0_10GPUBackendEEELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %21) #6
  br label %168

157:                                              ; preds = %139
  %158 = call noundef ptr @_ZNKSt10unique_ptrIN4dali9WorkspaceESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %0) #6
  call void @_ZNSt10shared_ptrIN4dali10TensorListINS0_10CPUBackendEEEEC2EDn(ptr noundef nonnull align 8 dereferenceable(16) %22, ptr null) #6
  invoke void @_ZN4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE9AddOutputES2_INS1_INS_10CPUBackendEEEE(ptr noundef nonnull align 8 dereferenceable(664) %158, ptr noundef %22)
          to label %159 unwind label %160

159:                                              ; preds = %157
  call void @_ZNSt12__shared_ptrIN4dali10TensorListINS0_10CPUBackendEEELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %22) #6
  br label %164

160:                                              ; preds = %157
  %161 = landingpad { ptr, i32 }
          cleanup
  %162 = extractvalue { ptr, i32 } %161, 0
  store ptr %162, ptr %8, align 8
  %163 = extractvalue { ptr, i32 } %161, 1
  store i32 %163, ptr %9, align 4
  call void @_ZNSt12__shared_ptrIN4dali10TensorListINS0_10CPUBackendEEELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %22) #6
  br label %168

164:                                              ; preds = %159, %148
  call void @llvm.lifetime.end.p0(i64 1, ptr %20) #6
  br label %165

165:                                              ; preds = %164
  %166 = load i32, ptr %18, align 4, !tbaa !9
  %167 = add nsw i32 %166, 1
  store i32 %167, ptr %18, align 4, !tbaa !9
  br label %125, !llvm.loop !24

168:                                              ; preds = %160, %153, %149
  call void @llvm.lifetime.end.p0(i64 1, ptr %20) #6
  br label %169

169:                                              ; preds = %168, %130
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  br label %174

170:                                              ; preds = %129
  store i1 true, ptr %6, align 1
  %171 = load i1, ptr %6, align 1
  br i1 %171, label %173, label %172

172:                                              ; preds = %170
  call void @_ZNSt10unique_ptrIN4dali9WorkspaceESt14default_deleteIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %0) #6
  br label %173

173:                                              ; preds = %172, %170
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  ret void

174:                                              ; preds = %169, %119, %50, %46
  call void @_ZNSt10unique_ptrIN4dali9WorkspaceESt14default_deleteIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %0) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  br label %175

175:                                              ; preds = %174
  %176 = load ptr, ptr %8, align 8
  %177 = load i32, ptr %9, align 4
  %178 = insertvalue { ptr, i32 } poison, ptr %176, 0
  %179 = insertvalue { ptr, i32 } %178, i32 %177, 1
  resume { ptr, i32 } %179
}

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN4dali11SmallVectorIPNS_5exec28ExecEdgeELm8ESaIS3_EEixEl(ptr noundef nonnull align 8 dereferenceable(72), i64 noundef) #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN4dali17ArgumentWorkspace16AddArgumentInputENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrINS_10TensorListINS_10CPUBackendEEEE(ptr noundef nonnull align 8 dereferenceable(256), ptr noundef, ptr noundef) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK4dali6OpSpec17ArgumentInputNameB5cxx11Ei(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(328), i32 noundef) #2 align 2

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(46) ptr @_ZN4dali11SmallVectorINS_5exec214ExecOutputDescELm4ESaIS2_EEixEl(ptr noundef nonnull align 8 dereferenceable(200), i64 noundef) #5 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE9AddOutputES2_INS1_INS_10CPUBackendEEEE(ptr noundef nonnull align 8 dereferenceable(664), ptr noundef) #2 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 = { 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 = { 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 = { 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 #6 = { nounwind }
attributes #7 = { noreturn nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"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}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{!14, !15, i64 24}
!14 = !{!"_ZTSN4dali5exec28ExecEdgeE", !6, i64 0, !6, i64 8, !10, i64 16, !10, i64 20, !15, i64 24, !12, i64 28}
!15 = !{!"_ZTSN4dali13StorageDeviceE", !7, i64 0}
!16 = !{i8 0, i8 2}
!17 = !{}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = !{!21, !15, i64 40}
!21 = !{!"_ZTSN4dali5exec214ExecOutputDescE", !22, i64 0, !15, i64 40, !12, i64 44, !12, i64 45}
!22 = !{!"_ZTSN4dali11SmallVectorIPNS_5exec28ExecEdgeELm4ESaIS3_EEE", !7, i64 0, !23, i64 32}
!23 = !{!"long", !7, i64 0}
!24 = distinct !{!24, !19}


; 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::unique_ptr.11" = type { %"struct.std::__uniq_ptr_data.12" }
%"struct.std::__uniq_ptr_data.12" = type { %"class.std::__uniq_ptr_impl.13" }
%"class.std::__uniq_ptr_impl.13" = type { %"class.std::tuple.14" }
%"class.std::tuple.14" = type { %"struct.std::_Tuple_impl.15" }
%"struct.std::_Tuple_impl.15" = type { %"struct.std::_Head_base.18" }
%"struct.std::_Head_base.18" = type { ptr }
%"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.128" = type { %"class.std::__shared_ptr.129" }
%"class.std::__shared_ptr.129" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"class.std::shared_ptr.125" = type { %"class.std::__shared_ptr.126" }
%"class.std::__shared_ptr.126" = type { ptr, %"class.std::__shared_count" }

@.str.6 = external hidden unnamed_addr constant [92 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [3 x i8], align 1
@__PRETTY_FUNCTION__._ZN4dali5exec28ExecNode17CreateOpWorkspaceEv = external hidden unnamed_addr constant [70 x i8], align 1

declare i32 @__gxx_personality_v0(...)

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

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

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

; 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: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK4dali11SmallVectorIPNS_5exec28ExecEdgeELm8ESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(72)) local_unnamed_addr #3 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt11make_uniqueIN4dali9WorkspaceEJEENSt8__detail9_MakeUniqIT_E15__single_objectEDpOT0_(ptr dead_on_unwind noalias writable sret(%"class.std::unique_ptr.11") align 8) local_unnamed_addr #4

; 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: mustprogress nounwind uwtable
declare dso_local void @_ZNSt10shared_ptrIN4dali10TensorListINS0_10GPUBackendEEEEC2EDn(ptr noundef nonnull align 8 dereferenceable(16), ptr) unnamed_addr #0 align 2

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4dali5exec28ExecNode17CreateOpWorkspaceEv(ptr dead_on_unwind noalias writable sret(%"class.std::unique_ptr.11") align 8 %0, ptr noundef nonnull align 8 dereferenceable(472) %1) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.std::__cxx11::basic_string", align 8
  %4 = alloca %"class.std::__cxx11::basic_string", align 8
  %5 = alloca %"class.std::shared_ptr.128", align 8
  %6 = alloca %"class.std::shared_ptr.125", align 8
  %7 = alloca %"class.std::shared_ptr.128", align 8
  %8 = alloca %"class.std::shared_ptr.125", align 8
  %9 = alloca %"class.std::shared_ptr.128", align 8
  %10 = getelementptr inbounds i8, ptr %1, i64 304
  %11 = tail call noundef zeroext i1 @_ZNKSt10unique_ptrIN4dali12OperatorBaseESt14default_deleteIS1_EEcvbEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #5
  br i1 %11, label %13, label %12

12:                                               ; preds = %2
  tail call void @__assert_fail(ptr noundef nonnull @.str.10, ptr noundef nonnull @.str.6, i32 noundef 120, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN4dali5exec28ExecNode17CreateOpWorkspaceEv) #6
  unreachable

13:                                               ; preds = %2
  %14 = tail call noundef ptr @_ZNKSt10unique_ptrIN4dali12OperatorBaseESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #5
  %15 = tail call noundef nonnull align 8 dereferenceable(328) ptr @_ZNK4dali12OperatorBase7GetSpecEv(ptr noundef nonnull align 8 dereferenceable(400) %14)
  tail call void @_ZSt11make_uniqueIN4dali9WorkspaceEJEENSt8__detail9_MakeUniqIT_E15__single_objectEDpOT0_(ptr dead_on_unwind writable sret(%"class.std::unique_ptr.11") align 8 %0)
  %16 = tail call noundef ptr @_ZNKSt10unique_ptrIN4dali9WorkspaceESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %0) #5
  %17 = getelementptr inbounds i8, ptr %1, i64 336
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef nonnull align 8 dereferenceable(32) %17)
          to label %18 unwind label %26

18:                                               ; preds = %13
  call void @_ZN4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE23SetOperatorInstanceNameENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(664) %16, ptr noundef nonnull %3)
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #5
  %19 = call noundef i64 @_ZNK4dali11SmallVectorIPNS_5exec28ExecEdgeELm8ESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(72) %1)
  %20 = trunc i64 %19 to i32
  %21 = icmp sgt i32 %20, 0
  br i1 %21, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %18
  %wide.trip.count = and i64 %19, 2147483647
  br label %.lr.ph

._crit_edge:                                      ; preds = %58, %18
  %22 = getelementptr inbounds i8, ptr %1, i64 72
  %23 = call noundef i64 @_ZNK4dali11SmallVectorINS_5exec214ExecOutputDescELm4ESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(200) %22)
  %24 = trunc i64 %23 to i32
  %25 = icmp sgt i32 %24, 0
  br i1 %25, label %.lr.ph32.preheader, label %._crit_edge33

.lr.ph32.preheader:                               ; preds = %._crit_edge
  %wide.trip.count38 = and i64 %23, 2147483647
  br label %.lr.ph32

26:                                               ; preds = %13
  %27 = landingpad { ptr, i32 }
          cleanup
  br label %76

.lr.ph:                                           ; preds = %.lr.ph.preheader, %58
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %58 ]
  %28 = trunc nuw nsw i64 %indvars.iv to i32
  %29 = invoke noundef zeroext i1 @_ZNK4dali6OpSpec15IsArgumentInputEi(ptr noundef nonnull align 8 dereferenceable(328) %15, i32 noundef %28)
          to label %30 unwind label %38

30:                                               ; preds = %.lr.ph
  %31 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN4dali11SmallVectorIPNS_5exec28ExecEdgeELm8ESaIS3_EEixEl(ptr noundef nonnull align 8 dereferenceable(72) %1, i64 noundef %indvars.iv)
          to label %32 unwind label %40

32:                                               ; preds = %30
  br i1 %29, label %33, label %44

33:                                               ; preds = %32
  %34 = call noundef ptr @_ZNKSt10unique_ptrIN4dali9WorkspaceESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %0) #5
  invoke void @_ZNK4dali6OpSpec17ArgumentInputNameB5cxx11Ei(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %4, ptr noundef nonnull align 8 dereferenceable(328) %15, i32 noundef %28)
          to label %35 unwind label %40

35:                                               ; preds = %33
  call void @_ZNSt10shared_ptrIN4dali10TensorListINS0_10CPUBackendEEEEC2EDn(ptr noundef nonnull align 8 dereferenceable(16) %5, ptr null) #5
  %36 = invoke noundef i32 @_ZN4dali17ArgumentWorkspace16AddArgumentInputENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrINS_10TensorListINS_10CPUBackendEEEE(ptr noundef nonnull align 8 dereferenceable(256) %34, ptr noundef nonnull %4, ptr noundef nonnull %5)
          to label %37 unwind label %42

37:                                               ; preds = %35
  call void @_ZNSt12__shared_ptrIN4dali10TensorListINS0_10CPUBackendEEELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #5
  br label %58

38:                                               ; preds = %.lr.ph
  %39 = landingpad { ptr, i32 }
          cleanup
  br label %76

40:                                               ; preds = %33, %30
  %41 = landingpad { ptr, i32 }
          cleanup
  br label %76

42:                                               ; preds = %35
  %43 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt12__shared_ptrIN4dali10TensorListINS0_10CPUBackendEEELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #5
  br label %76

44:                                               ; preds = %32
  %45 = load ptr, ptr %31, align 8, !tbaa !5
  %46 = getelementptr inbounds i8, ptr %45, i64 24
  %47 = load i32, ptr %46, align 8, !tbaa !9
  %48 = icmp eq i32 %47, 1
  %49 = call noundef ptr @_ZNKSt10unique_ptrIN4dali9WorkspaceESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %0) #5
  br i1 %48, label %50, label %54

50:                                               ; preds = %44
  call void @_ZNSt10shared_ptrIN4dali10TensorListINS0_10GPUBackendEEEEC2EDn(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr null) #5
  invoke void @_ZN4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE8AddInputES2_INS1_INS_10GPUBackendEEEE(ptr noundef nonnull align 8 dereferenceable(664) %49, ptr noundef nonnull %6)
          to label %51 unwind label %52

51:                                               ; preds = %50
  call void @_ZNSt12__shared_ptrIN4dali10TensorListINS0_10GPUBackendEEELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #5
  br label %58

52:                                               ; preds = %50
  %53 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt12__shared_ptrIN4dali10TensorListINS0_10GPUBackendEEELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #5
  br label %76

54:                                               ; preds = %44
  call void @_ZNSt10shared_ptrIN4dali10TensorListINS0_10CPUBackendEEEEC2EDn(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr null) #5
  invoke void @_ZN4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE8AddInputES2_INS1_INS_10CPUBackendEEEE(ptr noundef nonnull align 8 dereferenceable(664) %49, ptr noundef nonnull %7)
          to label %55 unwind label %56

55:                                               ; preds = %54
  call void @_ZNSt12__shared_ptrIN4dali10TensorListINS0_10CPUBackendEEELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %7) #5
  br label %58

56:                                               ; preds = %54
  %57 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt12__shared_ptrIN4dali10TensorListINS0_10CPUBackendEEELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %7) #5
  br label %76

58:                                               ; preds = %51, %55, %37
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !14

.lr.ph32:                                         ; preds = %.lr.ph32.preheader, %75
  %indvars.iv35 = phi i64 [ 0, %.lr.ph32.preheader ], [ %indvars.iv.next36, %75 ]
  %59 = invoke noundef nonnull align 8 dereferenceable(46) ptr @_ZN4dali11SmallVectorINS_5exec214ExecOutputDescELm4ESaIS2_EEixEl(ptr noundef nonnull align 8 dereferenceable(200) %22, i64 noundef %indvars.iv35)
          to label %60 unwind label %67

60:                                               ; preds = %.lr.ph32
  %61 = getelementptr inbounds i8, ptr %59, i64 40
  %62 = load i32, ptr %61, align 8, !tbaa !16
  %63 = icmp eq i32 %62, 1
  %64 = call noundef ptr @_ZNKSt10unique_ptrIN4dali9WorkspaceESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %0) #5
  br i1 %63, label %65, label %71

65:                                               ; preds = %60
  call void @_ZNSt10shared_ptrIN4dali10TensorListINS0_10GPUBackendEEEEC2EDn(ptr noundef nonnull align 8 dereferenceable(16) %8, ptr null) #5
  invoke void @_ZN4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE9AddOutputES2_INS1_INS_10GPUBackendEEEE(ptr noundef nonnull align 8 dereferenceable(664) %64, ptr noundef nonnull %8)
          to label %66 unwind label %69

66:                                               ; preds = %65
  call void @_ZNSt12__shared_ptrIN4dali10TensorListINS0_10GPUBackendEEELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %8) #5
  br label %75

67:                                               ; preds = %.lr.ph32
  %68 = landingpad { ptr, i32 }
          cleanup
  br label %76

69:                                               ; preds = %65
  %70 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt12__shared_ptrIN4dali10TensorListINS0_10GPUBackendEEELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %8) #5
  br label %76

71:                                               ; preds = %60
  call void @_ZNSt10shared_ptrIN4dali10TensorListINS0_10CPUBackendEEEEC2EDn(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr null) #5
  invoke void @_ZN4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE9AddOutputES2_INS1_INS_10CPUBackendEEEE(ptr noundef nonnull align 8 dereferenceable(664) %64, ptr noundef nonnull %9)
          to label %72 unwind label %73

72:                                               ; preds = %71
  call void @_ZNSt12__shared_ptrIN4dali10TensorListINS0_10CPUBackendEEELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #5
  br label %75

73:                                               ; preds = %71
  %74 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt12__shared_ptrIN4dali10TensorListINS0_10CPUBackendEEELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #5
  br label %76

75:                                               ; preds = %72, %66
  %indvars.iv.next36 = add nuw nsw i64 %indvars.iv35, 1
  %exitcond39.not = icmp eq i64 %indvars.iv.next36, %wide.trip.count38
  br i1 %exitcond39.not, label %._crit_edge33, label %.lr.ph32, !llvm.loop !20

._crit_edge33:                                    ; preds = %75, %._crit_edge
  ret void

76:                                               ; preds = %67, %69, %73, %38, %56, %52, %42, %40, %26
  %.pn25.pn.pn = phi { ptr, i32 } [ %27, %26 ], [ %39, %38 ], [ %43, %42 ], [ %41, %40 ], [ %53, %52 ], [ %57, %56 ], [ %70, %69 ], [ %74, %73 ], [ %68, %67 ]
  call void @_ZNSt10unique_ptrIN4dali9WorkspaceESt14default_deleteIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %0) #5
  resume { ptr, i32 } %.pn25.pn.pn
}

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN4dali11SmallVectorIPNS_5exec28ExecEdgeELm8ESaIS3_EEixEl(ptr noundef nonnull align 8 dereferenceable(72), i64 noundef) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN4dali17ArgumentWorkspace16AddArgumentInputENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrINS_10TensorListINS_10CPUBackendEEEE(ptr noundef nonnull align 8 dereferenceable(256), ptr noundef, ptr noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK4dali6OpSpec17ArgumentInputNameB5cxx11Ei(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(328), i32 noundef) local_unnamed_addr #1 align 2

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(46) ptr @_ZN4dali11SmallVectorINS_5exec214ExecOutputDescELm4ESaIS2_EEixEl(ptr noundef nonnull align 8 dereferenceable(200), i64 noundef) local_unnamed_addr #4 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE9AddOutputES2_INS1_INS_10CPUBackendEEEE(ptr noundef nonnull align 8 dereferenceable(664), ptr noundef) local_unnamed_addr #1 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 = { 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 = { 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 #3 = { 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 #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)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !12, i64 24}
!10 = !{!"_ZTSN4dali5exec28ExecEdgeE", !6, i64 0, !6, i64 8, !11, i64 16, !11, i64 20, !12, i64 24, !13, i64 28}
!11 = !{!"int", !7, i64 0}
!12 = !{!"_ZTSN4dali13StorageDeviceE", !7, i64 0}
!13 = !{!"bool", !7, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = !{!17, !12, i64 40}
!17 = !{!"_ZTSN4dali5exec214ExecOutputDescE", !18, i64 0, !12, i64 40, !13, i64 44, !13, i64 45}
!18 = !{!"_ZTSN4dali11SmallVectorIPNS_5exec28ExecEdgeELm4ESaIS3_EEE", !7, i64 0, !19, i64 32}
!19 = !{!"long", !7, i64 0}
!20 = distinct !{!20, !15}


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