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

; 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.88" = type { %"class.std::__shared_ptr.89" }
%"class.std::__shared_ptr.89" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"class.std::shared_ptr.8" = type { %"class.std::__shared_ptr.9" }
%"class.std::__shared_ptr.9" = type { ptr, %"class.std::__shared_count" }
%class.anon = type { i8 }
%"class.std::shared_ptr.85" = type { %"class.std::__shared_ptr.86" }
%"class.std::__shared_ptr.86" = 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::__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::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.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::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 }
%"struct.dali::exec2::ExecEdge" = type <{ ptr, ptr, i32, i32, i32, i8, [3 x i8] }>

; 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 dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt10shared_ptrIN4dali7tasking4TaskEEaSEOS3_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #1 align 2

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4dali5exec28ExecNode14CreateAuxTasksEv(ptr noundef nonnull align 8 dereferenceable(472) %0) #2 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca %"class.std::shared_ptr.88", align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca %"class.std::shared_ptr.8", align 8
  %7 = alloca %class.anon, align 1
  %8 = alloca %"class.std::shared_ptr.88", align 8
  %9 = alloca %"class.std::shared_ptr.85", align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca %"class.std::shared_ptr.85", align 8
  %20 = alloca %"class.std::shared_ptr.85", align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %21 = load ptr, ptr %2, align 8
  %22 = getelementptr inbounds %"class.dali::exec2::ExecNode", ptr %21, i32 0, i32 2
  %23 = call noundef zeroext i1 @_ZNKSt12__shared_ptrIN4dali7tasking9SemaphoreELN9__gnu_cxx12_Lock_policyE2EEcvbEv(ptr noundef nonnull align 8 dereferenceable(16) %22) #4
  br i1 %23, label %24, label %34

24:                                               ; preds = %1
  %25 = getelementptr inbounds %"class.dali::exec2::ExecNode", ptr %21, i32 0, i32 12
  %26 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN4dali7tasking4TaskELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %25) #4
  %27 = getelementptr inbounds %"class.dali::exec2::ExecNode", ptr %21, i32 0, i32 2
  call void @_ZNSt10shared_ptrIN4dali7tasking10ReleasableEEC2INS1_9SemaphoreEvEERKS_IT_E(ptr noundef nonnull align 8 dereferenceable(16) %3, ptr noundef nonnull align 8 dereferenceable(16) %27) #4
  %28 = invoke noundef ptr @_ZN4dali7tasking4Task9GuardWithESt10shared_ptrINS0_10ReleasableEE(ptr noundef nonnull align 8 dereferenceable(536) %26, ptr noundef %3)
          to label %29 unwind label %30

29:                                               ; preds = %24
  call void @_ZNSt12__shared_ptrIN4dali7tasking10ReleasableELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %3) #4
  br label %34

30:                                               ; preds = %24
  %31 = landingpad { ptr, i32 }
          cleanup
  %32 = extractvalue { ptr, i32 } %31, 0
  store ptr %32, ptr %4, align 8
  %33 = extractvalue { ptr, i32 } %31, 1
  store i32 %33, ptr %5, align 4
  call void @_ZNSt12__shared_ptrIN4dali7tasking10ReleasableELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %3) #4
  br label %121

34:                                               ; preds = %29, %1
  %35 = getelementptr inbounds %"class.dali::exec2::ExecNode", ptr %21, i32 0, i32 3
  %36 = call noundef zeroext i1 @_ZNKSt12__shared_ptrIN4dali7tasking9SemaphoreELN9__gnu_cxx12_Lock_policyE2EEcvbEv(ptr noundef nonnull align 8 dereferenceable(16) %35) #4
  br i1 %36, label %37, label %120

37:                                               ; preds = %34
  call void @llvm.lifetime.start.p0(i64 16, ptr %6) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr %7) #4
  call void @"_ZN4dali7tasking4Task6CreateIZNS_5exec28ExecNode14CreateAuxTasksEvE3$_0EESt10shared_ptrIS1_EOT_d"(ptr dead_on_unwind writable sret(%"class.std::shared_ptr.8") align 8 %6, ptr noundef nonnull align 1 dereferenceable(1) %7, double noundef 0.000000e+00)
  %38 = getelementptr inbounds %"class.dali::exec2::ExecNode", ptr %21, i32 0, i32 13
  %39 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt10shared_ptrIN4dali7tasking4TaskEEaSEOS3_(ptr noundef nonnull align 8 dereferenceable(16) %38, ptr noundef nonnull align 8 dereferenceable(16) %6) #4
  call void @_ZNSt12__shared_ptrIN4dali7tasking4TaskELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %6) #4
  %40 = getelementptr inbounds %"class.dali::exec2::ExecNode", ptr %21, i32 0, i32 13
  %41 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN4dali7tasking4TaskELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %40) #4
  %42 = getelementptr inbounds %"class.dali::exec2::ExecNode", ptr %21, i32 0, i32 3
  call void @_ZNSt10shared_ptrIN4dali7tasking10ReleasableEEC2INS1_9SemaphoreEvEERKS_IT_E(ptr noundef nonnull align 8 dereferenceable(16) %8, ptr noundef nonnull align 8 dereferenceable(16) %42) #4
  %43 = invoke noundef ptr @_ZN4dali7tasking4Task15ReleaseAfterRunESt10shared_ptrINS0_10ReleasableEE(ptr noundef nonnull align 8 dereferenceable(536) %41, ptr noundef %8)
          to label %44 unwind label %60

44:                                               ; preds = %37
  call void @_ZNSt12__shared_ptrIN4dali7tasking10ReleasableELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %8) #4
  %45 = getelementptr inbounds %"class.dali::exec2::ExecNode", ptr %21, i32 0, i32 13
  %46 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN4dali7tasking4TaskELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %45) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #4
  %47 = getelementptr inbounds %"class.dali::exec2::ExecNode", ptr %21, i32 0, i32 12
  call void @_ZNSt10shared_ptrIN4dali7tasking8WaitableEEC2INS1_4TaskEvEERKS_IT_E(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull align 8 dereferenceable(16) %47) #4
  %48 = invoke noundef ptr @_ZN4dali7tasking4Task7SucceedERKSt10shared_ptrINS0_8WaitableEE(ptr noundef nonnull align 8 dereferenceable(536) %46, ptr noundef nonnull align 8 dereferenceable(16) %9)
          to label %49 unwind label %64

49:                                               ; preds = %44
  call void @_ZNSt12__shared_ptrIN4dali7tasking8WaitableELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  %50 = getelementptr inbounds %"class.dali::exec2::ExecNode", ptr %21, i32 0, i32 1
  store ptr %50, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  %51 = load ptr, ptr %10, align 8, !tbaa !5
  %52 = call noundef ptr @_ZN4dali11SmallVectorINS_5exec214ExecOutputDescELm4ESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(200) %51)
  store ptr %52, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  %53 = load ptr, ptr %10, align 8, !tbaa !5
  %54 = call noundef ptr @_ZN4dali11SmallVectorINS_5exec214ExecOutputDescELm4ESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(200) %53)
  store ptr %54, ptr %12, align 8, !tbaa !5
  br label %55

55:                                               ; preds = %107, %49
  %56 = load ptr, ptr %11, align 8, !tbaa !5
  %57 = load ptr, ptr %12, align 8, !tbaa !5
  %58 = icmp ne ptr %56, %57
  br i1 %58, label %68, label %59

59:                                               ; preds = %55
  store i32 2, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  br label %110

60:                                               ; preds = %37
  %61 = landingpad { ptr, i32 }
          cleanup
  %62 = extractvalue { ptr, i32 } %61, 0
  store ptr %62, ptr %4, align 8
  %63 = extractvalue { ptr, i32 } %61, 1
  store i32 %63, ptr %5, align 4
  call void @_ZNSt12__shared_ptrIN4dali7tasking10ReleasableELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %8) #4
  br label %121

64:                                               ; preds = %44
  %65 = landingpad { ptr, i32 }
          cleanup
  %66 = extractvalue { ptr, i32 } %65, 0
  store ptr %66, ptr %4, align 8
  %67 = extractvalue { ptr, i32 } %65, 1
  store i32 %67, ptr %5, align 4
  call void @_ZNSt12__shared_ptrIN4dali7tasking8WaitableELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #4
  br label %121

68:                                               ; preds = %55
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  %69 = load ptr, ptr %11, align 8, !tbaa !5
  store ptr %69, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  %70 = load ptr, ptr %14, align 8, !tbaa !5
  %71 = getelementptr inbounds %"struct.dali::exec2::ExecOutputDesc", ptr %70, i32 0, i32 0
  store ptr %71, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #4
  %72 = load ptr, ptr %15, align 8, !tbaa !5
  %73 = call noundef ptr @_ZN4dali11SmallVectorIPNS_5exec28ExecEdgeELm4ESaIS3_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(40) %72)
  store ptr %73, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #4
  %74 = load ptr, ptr %15, align 8, !tbaa !5
  %75 = call noundef ptr @_ZN4dali11SmallVectorIPNS_5exec28ExecEdgeELm4ESaIS3_EE3endEv(ptr noundef nonnull align 8 dereferenceable(40) %74)
  store ptr %75, ptr %17, align 8, !tbaa !5
  br label %76

76:                                               ; preds = %103, %68
  %77 = load ptr, ptr %16, align 8, !tbaa !5
  %78 = load ptr, ptr %17, align 8, !tbaa !5
  %79 = icmp ne ptr %77, %78
  br i1 %79, label %81, label %80

80:                                               ; preds = %76
  store i32 4, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  br label %106

81:                                               ; preds = %76
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #4
  %82 = load ptr, ptr %16, align 8, !tbaa !5
  %83 = load ptr, ptr %82, align 8, !tbaa !5
  store ptr %83, ptr %18, align 8, !tbaa !5
  %84 = load ptr, ptr %18, align 8, !tbaa !5
  %85 = getelementptr inbounds %"struct.dali::exec2::ExecEdge", ptr %84, i32 0, i32 1
  %86 = load ptr, ptr %85, align 8, !tbaa !9
  %87 = getelementptr inbounds %"class.dali::exec2::ExecNode", ptr %86, i32 0, i32 12
  %88 = call noundef zeroext i1 @_ZNKSt12__shared_ptrIN4dali7tasking4TaskELN9__gnu_cxx12_Lock_policyE2EEcvbEv(ptr noundef nonnull align 8 dereferenceable(16) %87) #4
  br i1 %88, label %89, label %102

89:                                               ; preds = %81
  %90 = getelementptr inbounds %"class.dali::exec2::ExecNode", ptr %21, i32 0, i32 13
  %91 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN4dali7tasking4TaskELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %90) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #4
  %92 = load ptr, ptr %18, align 8, !tbaa !5
  %93 = getelementptr inbounds %"struct.dali::exec2::ExecEdge", ptr %92, i32 0, i32 1
  %94 = load ptr, ptr %93, align 8, !tbaa !9
  %95 = getelementptr inbounds %"class.dali::exec2::ExecNode", ptr %94, i32 0, i32 12
  call void @_ZNSt10shared_ptrIN4dali7tasking8WaitableEEC2INS1_4TaskEvEERKS_IT_E(ptr noundef nonnull align 8 dereferenceable(16) %19, ptr noundef nonnull align 8 dereferenceable(16) %95) #4
  %96 = invoke noundef ptr @_ZN4dali7tasking4Task7SucceedERKSt10shared_ptrINS0_8WaitableEE(ptr noundef nonnull align 8 dereferenceable(536) %91, ptr noundef nonnull align 8 dereferenceable(16) %19)
          to label %97 unwind label %98

97:                                               ; preds = %89
  call void @_ZNSt12__shared_ptrIN4dali7tasking8WaitableELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %19) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #4
  br label %102

98:                                               ; preds = %89
  %99 = landingpad { ptr, i32 }
          cleanup
  %100 = extractvalue { ptr, i32 } %99, 0
  store ptr %100, ptr %4, align 8
  %101 = extractvalue { ptr, i32 } %99, 1
  store i32 %101, ptr %5, align 4
  call void @_ZNSt12__shared_ptrIN4dali7tasking8WaitableELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %19) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  br label %121

102:                                              ; preds = %97, %81
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  br label %103

103:                                              ; preds = %102
  %104 = load ptr, ptr %16, align 8, !tbaa !5
  %105 = getelementptr inbounds ptr, ptr %104, i32 1
  store ptr %105, ptr %16, align 8, !tbaa !5
  br label %76

106:                                              ; preds = %80
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  br label %107

107:                                              ; preds = %106
  %108 = load ptr, ptr %11, align 8, !tbaa !5
  %109 = getelementptr inbounds %"struct.dali::exec2::ExecOutputDesc", ptr %108, i32 1
  store ptr %109, ptr %11, align 8, !tbaa !5
  br label %55

110:                                              ; preds = %59
  %111 = getelementptr inbounds %"class.dali::exec2::ExecNode", ptr %21, i32 0, i32 12
  %112 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN4dali7tasking4TaskELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %111) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #4
  %113 = getelementptr inbounds %"class.dali::exec2::ExecNode", ptr %21, i32 0, i32 3
  call void @_ZNSt10shared_ptrIN4dali7tasking8WaitableEEC2INS1_9SemaphoreEvEERKS_IT_E(ptr noundef nonnull align 8 dereferenceable(16) %20, ptr noundef nonnull align 8 dereferenceable(16) %113) #4
  %114 = invoke noundef ptr @_ZN4dali7tasking4Task7SucceedERKSt10shared_ptrINS0_8WaitableEE(ptr noundef nonnull align 8 dereferenceable(536) %112, ptr noundef nonnull align 8 dereferenceable(16) %20)
          to label %115 unwind label %116

115:                                              ; preds = %110
  call void @_ZNSt12__shared_ptrIN4dali7tasking8WaitableELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %20) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #4
  br label %120

116:                                              ; preds = %110
  %117 = landingpad { ptr, i32 }
          cleanup
  %118 = extractvalue { ptr, i32 } %117, 0
  store ptr %118, ptr %4, align 8
  %119 = extractvalue { ptr, i32 } %117, 1
  store i32 %119, ptr %5, align 4
  call void @_ZNSt12__shared_ptrIN4dali7tasking8WaitableELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %20) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #4
  br label %121

120:                                              ; preds = %115, %34
  ret void

121:                                              ; preds = %116, %98, %64, %60, %30
  %122 = load ptr, ptr %4, align 8
  %123 = load i32, ptr %5, align 4
  %124 = insertvalue { ptr, i32 } poison, ptr %122, 0
  %125 = insertvalue { ptr, i32 } %124, i32 %123, 1
  resume { ptr, i32 } %125
}

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

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

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZN4dali7tasking4Task6CreateIZNS_5exec28ExecNode14CreateAuxTasksEvE3$_0EESt10shared_ptrIS1_EOT_d"(ptr dead_on_unwind noalias writable sret(%"class.std::shared_ptr.8") align 8, ptr noundef nonnull align 1 dereferenceable(1), double noundef) #2 align 2

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt12__shared_ptrIN4dali7tasking4TaskELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #1 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 = { 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 = { 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 = !{!"_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}


; 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.88" = type { %"class.std::__shared_ptr.89" }
%"class.std::__shared_ptr.89" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"class.std::shared_ptr.8" = type { %"class.std::__shared_ptr.9" }
%"class.std::__shared_ptr.9" = type { ptr, %"class.std::__shared_count" }
%class.anon = type { i8 }
%"class.std::shared_ptr.85" = type { %"class.std::__shared_ptr.86" }
%"class.std::__shared_ptr.86" = type { ptr, %"class.std::__shared_count" }

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4dali5exec28ExecNode14CreateAuxTasksEv(ptr noundef nonnull align 8 dereferenceable(472) %0) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.std::shared_ptr.88", align 8
  %3 = alloca %"class.std::shared_ptr.8", align 8
  %4 = alloca %class.anon, align 1
  %5 = alloca %"class.std::shared_ptr.88", align 8
  %6 = alloca %"class.std::shared_ptr.85", align 8
  %7 = alloca %"class.std::shared_ptr.85", align 8
  %8 = alloca %"class.std::shared_ptr.85", align 8
  %9 = getelementptr inbounds i8, ptr %0, i64 272
  %10 = tail call noundef zeroext i1 @_ZNKSt12__shared_ptrIN4dali7tasking9SemaphoreELN9__gnu_cxx12_Lock_policyE2EEcvbEv(ptr noundef nonnull align 8 dereferenceable(16) %9) #4
  br i1 %10, label %11, label %18

11:                                               ; preds = %1
  %12 = getelementptr inbounds i8, ptr %0, i64 392
  %13 = tail call noundef ptr @_ZNKSt19__shared_ptr_accessIN4dali7tasking4TaskELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %12) #4
  call void @_ZNSt10shared_ptrIN4dali7tasking10ReleasableEEC2INS1_9SemaphoreEvEERKS_IT_E(ptr noundef nonnull align 8 dereferenceable(16) %2, ptr noundef nonnull align 8 dereferenceable(16) %9) #4
  %14 = invoke noundef ptr @_ZN4dali7tasking4Task9GuardWithESt10shared_ptrINS0_10ReleasableEE(ptr noundef nonnull align 8 dereferenceable(536) %13, ptr noundef nonnull %2)
          to label %15 unwind label %16

15:                                               ; preds = %11
  call void @_ZNSt12__shared_ptrIN4dali7tasking10ReleasableELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %2) #4
  br label %18

16:                                               ; preds = %11
  %17 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt12__shared_ptrIN4dali7tasking10ReleasableELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %2) #4
  br label %62

18:                                               ; preds = %15, %1
  %19 = getelementptr inbounds i8, ptr %0, i64 288
  %20 = call noundef zeroext i1 @_ZNKSt12__shared_ptrIN4dali7tasking9SemaphoreELN9__gnu_cxx12_Lock_policyE2EEcvbEv(ptr noundef nonnull align 8 dereferenceable(16) %19) #4
  br i1 %20, label %21, label %61

21:                                               ; preds = %18
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #4
  call void @"_ZN4dali7tasking4Task6CreateIZNS_5exec28ExecNode14CreateAuxTasksEvE3$_0EESt10shared_ptrIS1_EOT_d"(ptr dead_on_unwind nonnull writable sret(%"class.std::shared_ptr.8") align 8 %3, ptr noundef nonnull align 1 dereferenceable(1) %4, double noundef 0.000000e+00)
  %22 = getelementptr inbounds i8, ptr %0, i64 408
  %23 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt10shared_ptrIN4dali7tasking4TaskEEaSEOS3_(ptr noundef nonnull align 8 dereferenceable(16) %22, ptr noundef nonnull align 8 dereferenceable(16) %3) #4
  call void @_ZNSt12__shared_ptrIN4dali7tasking4TaskELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %3) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #4
  %24 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN4dali7tasking4TaskELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %22) #4
  call void @_ZNSt10shared_ptrIN4dali7tasking10ReleasableEEC2INS1_9SemaphoreEvEERKS_IT_E(ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef nonnull align 8 dereferenceable(16) %19) #4
  %25 = invoke noundef ptr @_ZN4dali7tasking4Task15ReleaseAfterRunESt10shared_ptrINS0_10ReleasableEE(ptr noundef nonnull align 8 dereferenceable(536) %24, ptr noundef nonnull %5)
          to label %26 unwind label %36

26:                                               ; preds = %21
  call void @_ZNSt12__shared_ptrIN4dali7tasking10ReleasableELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #4
  %27 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN4dali7tasking4TaskELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %22) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #4
  %28 = getelementptr inbounds i8, ptr %0, i64 392
  call void @_ZNSt10shared_ptrIN4dali7tasking8WaitableEEC2INS1_4TaskEvEERKS_IT_E(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull align 8 dereferenceable(16) %28) #4
  %29 = invoke noundef ptr @_ZN4dali7tasking4Task7SucceedERKSt10shared_ptrINS0_8WaitableEE(ptr noundef nonnull align 8 dereferenceable(536) %27, ptr noundef nonnull align 8 dereferenceable(16) %6)
          to label %30 unwind label %38

30:                                               ; preds = %26
  call void @_ZNSt12__shared_ptrIN4dali7tasking8WaitableELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #4
  %31 = getelementptr inbounds i8, ptr %0, i64 72
  %32 = call noundef ptr @_ZN4dali11SmallVectorINS_5exec214ExecOutputDescELm4ESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(200) %31)
  %33 = call noundef ptr @_ZN4dali11SmallVectorINS_5exec214ExecOutputDescELm4ESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(200) %31)
  %.not24 = icmp eq ptr %32, %33
  br i1 %.not24, label %._crit_edge28, label %.lr.ph27

._crit_edge28:                                    ; preds = %._crit_edge, %30
  %34 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN4dali7tasking4TaskELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %28) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #4
  call void @_ZNSt10shared_ptrIN4dali7tasking8WaitableEEC2INS1_9SemaphoreEvEERKS_IT_E(ptr noundef nonnull align 8 dereferenceable(16) %8, ptr noundef nonnull align 8 dereferenceable(16) %19) #4
  %35 = invoke noundef ptr @_ZN4dali7tasking4Task7SucceedERKSt10shared_ptrINS0_8WaitableEE(ptr noundef nonnull align 8 dereferenceable(536) %34, ptr noundef nonnull align 8 dereferenceable(16) %8)
          to label %58 unwind label %59

36:                                               ; preds = %21
  %37 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt12__shared_ptrIN4dali7tasking10ReleasableELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #4
  br label %62

38:                                               ; preds = %26
  %39 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt12__shared_ptrIN4dali7tasking8WaitableELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #4
  br label %62

.lr.ph27:                                         ; preds = %30, %._crit_edge
  %.01925 = phi ptr [ %42, %._crit_edge ], [ %32, %30 ]
  %40 = call noundef ptr @_ZN4dali11SmallVectorIPNS_5exec28ExecEdgeELm4ESaIS3_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(40) %.01925)
  %41 = call noundef ptr @_ZN4dali11SmallVectorIPNS_5exec28ExecEdgeELm4ESaIS3_EE3endEv(ptr noundef nonnull align 8 dereferenceable(40) %.01925)
  %.not2022 = icmp eq ptr %40, %41
  br i1 %.not2022, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %56, %.lr.ph27
  %42 = getelementptr inbounds i8, ptr %.01925, i64 48
  %.not = icmp eq ptr %42, %33
  br i1 %.not, label %._crit_edge28, label %.lr.ph27

.lr.ph:                                           ; preds = %.lr.ph27, %56
  %.01823 = phi ptr [ %57, %56 ], [ %40, %.lr.ph27 ]
  %43 = load ptr, ptr %.01823, align 8, !tbaa !5
  %44 = getelementptr inbounds i8, ptr %43, i64 8
  %45 = load ptr, ptr %44, align 8, !tbaa !9
  %46 = getelementptr inbounds i8, ptr %45, i64 392
  %47 = call noundef zeroext i1 @_ZNKSt12__shared_ptrIN4dali7tasking4TaskELN9__gnu_cxx12_Lock_policyE2EEcvbEv(ptr noundef nonnull align 8 dereferenceable(16) %46) #4
  br i1 %47, label %48, label %56

48:                                               ; preds = %.lr.ph
  %49 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN4dali7tasking4TaskELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %22) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #4
  %50 = load ptr, ptr %44, align 8, !tbaa !9
  %51 = getelementptr inbounds i8, ptr %50, i64 392
  call void @_ZNSt10shared_ptrIN4dali7tasking8WaitableEEC2INS1_4TaskEvEERKS_IT_E(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull align 8 dereferenceable(16) %51) #4
  %52 = invoke noundef ptr @_ZN4dali7tasking4Task7SucceedERKSt10shared_ptrINS0_8WaitableEE(ptr noundef nonnull align 8 dereferenceable(536) %49, ptr noundef nonnull align 8 dereferenceable(16) %7)
          to label %53 unwind label %54

53:                                               ; preds = %48
  call void @_ZNSt12__shared_ptrIN4dali7tasking8WaitableELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %7) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #4
  br label %56

54:                                               ; preds = %48
  %55 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt12__shared_ptrIN4dali7tasking8WaitableELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %7) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #4
  br label %62

56:                                               ; preds = %53, %.lr.ph
  %57 = getelementptr inbounds i8, ptr %.01823, i64 8
  %.not20 = icmp eq ptr %57, %41
  br i1 %.not20, label %._crit_edge, label %.lr.ph

58:                                               ; preds = %._crit_edge28
  call void @_ZNSt12__shared_ptrIN4dali7tasking8WaitableELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %8) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #4
  br label %61

59:                                               ; preds = %._crit_edge28
  %60 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt12__shared_ptrIN4dali7tasking8WaitableELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %8) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #4
  br label %62

61:                                               ; preds = %58, %18
  ret void

62:                                               ; preds = %59, %54, %38, %36, %16
  %.pn = phi { ptr, i32 } [ %55, %54 ], [ %60, %59 ], [ %39, %38 ], [ %37, %36 ], [ %17, %16 ]
  resume { ptr, i32 } %.pn
}

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

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

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZN4dali7tasking4Task6CreateIZNS_5exec28ExecNode14CreateAuxTasksEvE3$_0EESt10shared_ptrIS1_EOT_d"(ptr dead_on_unwind noalias writable sret(%"class.std::shared_ptr.8") align 8, ptr noundef nonnull align 1 dereferenceable(1), double noundef) local_unnamed_addr #2 align 2

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZN4dali11SmallVectorIPNS_5exec28ExecEdgeELm4ESaIS3_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZN4dali11SmallVectorIPNS_5exec28ExecEdgeELm4ESaIS3_EE3endEv(ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #3 align 2

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

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

attributes #0 = { mustprogress 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 = { 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 = { 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 = !{!"_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}


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