; 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::optional" = type { %"struct.std::_Optional_base" }
%"struct.std::_Optional_base" = type { %"struct.std::_Optional_payload" }
%"struct.std::_Optional_payload" = type { %"struct.std::_Optional_payload.base", [7 x i8] }
%"struct.std::_Optional_payload.base" = type { %"struct.std::_Optional_payload_base.base" }
%"struct.std::_Optional_payload_base.base" = type { %"union.std::_Optional_payload_base<dali::tasking::TaskFuture>::_Storage", i8 }
%"union.std::_Optional_payload_base<dali::tasking::TaskFuture>::_Storage" = type { %"class.dali::tasking::TaskFuture" }
%"class.dali::tasking::TaskFuture" = type <{ %"class.std::shared_ptr.8", %"class.dali::tasking::TaskResults", i8, [7 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.std::__shared_count" = type { ptr }
%"class.dali::tasking::TaskResults" = type <{ %"class.dali::SmallVector.70", i8, i8, [6 x i8] }>
%"class.dali::SmallVector.70" = type { %union.anon.73, i64 }
%union.anon.73 = type { %struct.anon.74, [48 x i8] }
%struct.anon.74 = type { ptr, i64 }
%"struct.std::_List_iterator.168" = type { ptr }
%"class.dali::exec2::ExecGraph" = type { %"class.std::__cxx11::list", %"class.std::__cxx11::list.134", %"class.std::unordered_map.139", i8, i8, i8, i8, %"class.std::shared_ptr.8" }
%"class.std::__cxx11::list" = type { %"class.std::__cxx11::_List_base" }
%"class.std::__cxx11::_List_base" = type { %"struct.std::__cxx11::_List_base<dali::exec2::ExecNode, std::allocator<dali::exec2::ExecNode>>::_List_impl" }
%"struct.std::__cxx11::_List_base<dali::exec2::ExecNode, std::allocator<dali::exec2::ExecNode>>::_List_impl" = type { %"struct.std::__detail::_List_node_header" }
%"struct.std::__detail::_List_node_header" = type { %"struct.std::__detail::_List_node_base", i64 }
%"struct.std::__detail::_List_node_base" = type { ptr, ptr }
%"class.std::__cxx11::list.134" = type { %"class.std::__cxx11::_List_base.135" }
%"class.std::__cxx11::_List_base.135" = type { %"struct.std::__cxx11::_List_base<dali::exec2::ExecEdge, std::allocator<dali::exec2::ExecEdge>>::_List_impl" }
%"struct.std::__cxx11::_List_base<dali::exec2::ExecEdge, std::allocator<dali::exec2::ExecEdge>>::_List_impl" = type { %"struct.std::__detail::_List_node_header" }
%"class.std::unordered_map.139" = type { %"class.std::_Hashtable.140" }
%"class.std::_Hashtable.140" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }

@.str.6 = external hidden unnamed_addr constant [92 x i8], align 1
@_ZTISt11logic_error = external constant ptr
@.str.20 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [35 x i8], align 1
@__PRETTY_FUNCTION__._ZN4dali5exec29ExecGraph6LaunchERNS_7tasking9SchedulerE = external hidden unnamed_addr constant [73 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [49 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: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #1

; 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)) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4dali5exec28ExecNode6LaunchERNS_7tasking9SchedulerE(ptr dead_on_unwind noalias writable sret(%"class.std::optional") align 8, ptr noundef nonnull align 8 dereferenceable(472), ptr noundef nonnull align 8 dereferenceable(193)) #3 align 2

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

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

declare ptr @__cxa_allocate_exception(i64)

declare void @_ZNSt11logic_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) unnamed_addr #4

declare void @__cxa_free_exception(ptr)

; Function Attrs: nounwind
declare void @_ZNSt11logic_errorD1Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #5

declare void @__cxa_throw(ptr, ptr, ptr)

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4dali5exec29ExecGraph6LaunchERNS_7tasking9SchedulerE(ptr dead_on_unwind noalias writable sret(%"class.dali::tasking::TaskFuture") align 8 %0, ptr noundef nonnull align 8 dereferenceable(128) %1, ptr noundef nonnull align 8 dereferenceable(193) %2) #3 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca %"class.std::shared_ptr.8", align 8
  %10 = alloca %"class.std::optional", align 8
  %11 = alloca ptr, align 8
  %12 = alloca %"struct.std::_List_iterator.168", align 8
  %13 = alloca %"struct.std::_List_iterator.168", align 8
  %14 = alloca ptr, align 8
  %15 = alloca %"class.std::optional", align 8
  store ptr %0, ptr %4, align 8
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  %16 = load ptr, ptr %5, align 8
  %17 = getelementptr inbounds %"class.dali::exec2::ExecGraph", ptr %16, i32 0, i32 6
  %18 = load i8, ptr %17, align 1, !tbaa !9, !range !29, !noundef !30
  %19 = trunc i8 %18 to i1
  br i1 %19, label %27, label %20

20:                                               ; preds = %3
  %21 = call ptr @__cxa_allocate_exception(i64 16) #8
  invoke void @_ZNSt11logic_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %21, ptr noundef @.str.20)
          to label %22 unwind label %23

22:                                               ; preds = %20
  call void @__cxa_throw(ptr %21, ptr @_ZTISt11logic_error, ptr @_ZNSt11logic_errorD1Ev) #9
  unreachable

23:                                               ; preds = %20
  %24 = landingpad { ptr, i32 }
          cleanup
  %25 = extractvalue { ptr, i32 } %24, 0
  store ptr %25, ptr %7, align 8
  %26 = extractvalue { ptr, i32 } %24, 1
  store i32 %26, ptr %8, align 4
  call void @__cxa_free_exception(ptr %21) #8
  br label %112

27:                                               ; preds = %3
  %28 = getelementptr inbounds %"class.dali::exec2::ExecGraph", ptr %16, i32 0, i32 6
  store i8 0, ptr %28, align 1, !tbaa !9
  %29 = getelementptr inbounds %"class.dali::exec2::ExecGraph", ptr %16, i32 0, i32 3
  %30 = load i8, ptr %29, align 8, !tbaa !31, !range !29, !noundef !30
  %31 = trunc i8 %30 to i1
  br i1 %31, label %32, label %40

32:                                               ; preds = %27
  %33 = getelementptr inbounds %"class.dali::exec2::ExecGraph", ptr %16, i32 0, i32 5
  %34 = load i8, ptr %33, align 2, !tbaa !32, !range !29, !noundef !30
  %35 = trunc i8 %34 to i1
  br i1 %35, label %36, label %40

36:                                               ; preds = %32
  %37 = getelementptr inbounds %"class.dali::exec2::ExecGraph", ptr %16, i32 0, i32 4
  %38 = load i8, ptr %37, align 1, !tbaa !33, !range !29, !noundef !30
  %39 = trunc i8 %38 to i1
  br label %40

40:                                               ; preds = %36, %32, %27
  %41 = phi i1 [ false, %32 ], [ false, %27 ], [ %39, %36 ]
  br i1 %41, label %42, label %43

42:                                               ; preds = %40
  br label %45

43:                                               ; preds = %40
  call void @__assert_fail(ptr noundef @.str.21, ptr noundef @.str.6, i32 noundef 287, ptr noundef @__PRETTY_FUNCTION__._ZN4dali5exec29ExecGraph6LaunchERNS_7tasking9SchedulerE) #10
  unreachable

44:                                               ; No predecessors!
  br label %45

45:                                               ; preds = %44, %42
  %46 = getelementptr inbounds %"class.dali::exec2::ExecGraph", ptr %16, i32 0, i32 7
  %47 = call noundef zeroext i1 @_ZNKSt12__shared_ptrIN4dali7tasking4TaskELN9__gnu_cxx12_Lock_policyE2EEcvbEv(ptr noundef nonnull align 8 dereferenceable(16) %46) #8
  br i1 %47, label %48, label %56

48:                                               ; preds = %45
  %49 = load ptr, ptr %6, align 8, !tbaa !5
  %50 = getelementptr inbounds %"class.dali::exec2::ExecGraph", ptr %16, i32 0, i32 7
  call void @_ZNSt10shared_ptrIN4dali7tasking4TaskEEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull align 8 dereferenceable(16) %50) #8
  invoke void @_ZN4dali7tasking9Scheduler13AddSilentTaskESt10shared_ptrINS0_4TaskEE(ptr noundef nonnull align 8 dereferenceable(193) %49, ptr noundef %9)
          to label %51 unwind label %52

51:                                               ; preds = %48
  call void @_ZNSt12__shared_ptrIN4dali7tasking4TaskELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #8
  br label %56

52:                                               ; preds = %48
  %53 = landingpad { ptr, i32 }
          cleanup
  %54 = extractvalue { ptr, i32 } %53, 0
  store ptr %54, ptr %7, align 8
  %55 = extractvalue { ptr, i32 } %53, 1
  store i32 %55, ptr %8, align 4
  call void @_ZNSt12__shared_ptrIN4dali7tasking4TaskELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #8
  br label %112

56:                                               ; preds = %51, %45
  call void @llvm.lifetime.start.p0(i64 112, ptr %10) #8
  call void @_ZNSt8optionalIN4dali7tasking10TaskFutureEEC2Ev(ptr noundef nonnull align 8 dereferenceable(112) %10) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #8
  %57 = getelementptr inbounds %"class.dali::exec2::ExecGraph", ptr %16, i32 0, i32 0
  store ptr %57, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #8
  %58 = load ptr, ptr %11, align 8, !tbaa !5
  %59 = call ptr @_ZNSt7__cxx114listIN4dali5exec28ExecNodeESaIS3_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %58) #8
  %60 = getelementptr inbounds %"struct.std::_List_iterator.168", ptr %12, i32 0, i32 0
  store ptr %59, ptr %60, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #8
  %61 = load ptr, ptr %11, align 8, !tbaa !5
  %62 = call ptr @_ZNSt7__cxx114listIN4dali5exec28ExecNodeESaIS3_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %61) #8
  %63 = getelementptr inbounds %"struct.std::_List_iterator.168", ptr %13, i32 0, i32 0
  store ptr %62, ptr %63, align 8
  br label %64

64:                                               ; preds = %93, %56
  %65 = call noundef zeroext i1 @_ZStneRKSt14_List_iteratorIN4dali5exec28ExecNodeEES5_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %13) #8
  br i1 %65, label %67, label %66

66:                                               ; preds = %64
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  br label %96

67:                                               ; preds = %64
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #8
  %68 = call noundef nonnull align 8 dereferenceable(472) ptr @_ZNKSt14_List_iteratorIN4dali5exec28ExecNodeEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #8
  store ptr %68, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 112, ptr %15) #8
  %69 = load ptr, ptr %14, align 8, !tbaa !5
  %70 = load ptr, ptr %6, align 8, !tbaa !5
  invoke void @_ZN4dali5exec28ExecNode6LaunchERNS_7tasking9SchedulerE(ptr dead_on_unwind writable sret(%"class.std::optional") align 8 %15, ptr noundef nonnull align 8 dereferenceable(472) %69, ptr noundef nonnull align 8 dereferenceable(193) %70)
          to label %71 unwind label %80

71:                                               ; preds = %67
  %72 = call noundef zeroext i1 @_ZNKSt8optionalIN4dali7tasking10TaskFutureEEcvbEv(ptr noundef nonnull align 8 dereferenceable(112) %15) #8
  br i1 %72, label %73, label %92

73:                                               ; preds = %71
  %74 = call noundef zeroext i1 @_ZNKSt8optionalIN4dali7tasking10TaskFutureEEcvbEv(ptr noundef nonnull align 8 dereferenceable(112) %10) #8
  br i1 %74, label %76, label %75

75:                                               ; preds = %73
  br label %76

76:                                               ; preds = %75, %73
  %77 = phi i1 [ false, %73 ], [ true, %75 ]
  br i1 %77, label %78, label %79

78:                                               ; preds = %76
  br label %85

79:                                               ; preds = %76
  call void @__assert_fail(ptr noundef @.str.23, ptr noundef @.str.6, i32 noundef 296, ptr noundef @__PRETTY_FUNCTION__._ZN4dali5exec29ExecGraph6LaunchERNS_7tasking9SchedulerE) #10
  unreachable

80:                                               ; preds = %67
  %81 = landingpad { ptr, i32 }
          cleanup
  %82 = extractvalue { ptr, i32 } %81, 0
  store ptr %82, ptr %7, align 8
  %83 = extractvalue { ptr, i32 } %81, 1
  store i32 %83, ptr %8, align 4
  br label %95

84:                                               ; No predecessors!
  br label %85

85:                                               ; preds = %84, %78
  %86 = invoke noundef nonnull align 8 dereferenceable(112) ptr @_ZNSt8optionalIN4dali7tasking10TaskFutureEEaSEOS3_(ptr noundef nonnull align 8 dereferenceable(112) %10, ptr noundef nonnull align 8 dereferenceable(112) %15)
          to label %87 unwind label %88

87:                                               ; preds = %85
  br label %92

88:                                               ; preds = %85
  %89 = landingpad { ptr, i32 }
          cleanup
  %90 = extractvalue { ptr, i32 } %89, 0
  store ptr %90, ptr %7, align 8
  %91 = extractvalue { ptr, i32 } %89, 1
  store i32 %91, ptr %8, align 4
  call void @_ZNSt14_Optional_baseIN4dali7tasking10TaskFutureELb0ELb0EED2Ev(ptr noundef nonnull align 8 dereferenceable(112) %15) #8
  br label %95

92:                                               ; preds = %87, %71
  call void @_ZNSt14_Optional_baseIN4dali7tasking10TaskFutureELb0ELb0EED2Ev(ptr noundef nonnull align 8 dereferenceable(112) %15) #8
  call void @llvm.lifetime.end.p0(i64 112, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  br label %93

93:                                               ; preds = %92
  %94 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt14_List_iteratorIN4dali5exec28ExecNodeEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #8
  br label %64

95:                                               ; preds = %88, %80
  call void @llvm.lifetime.end.p0(i64 112, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  br label %111

96:                                               ; preds = %66
  %97 = call noundef zeroext i1 @_ZNKSt8optionalIN4dali7tasking10TaskFutureEEcvbEv(ptr noundef nonnull align 8 dereferenceable(112) %10) #8
  br i1 %97, label %98, label %99

98:                                               ; preds = %96
  br label %99

99:                                               ; preds = %98, %96
  %100 = phi i1 [ false, %96 ], [ true, %98 ]
  br i1 %100, label %101, label %102

101:                                              ; preds = %99
  br label %104

102:                                              ; preds = %99
  call void @__assert_fail(ptr noundef @.str.25, ptr noundef @.str.6, i32 noundef 300, ptr noundef @__PRETTY_FUNCTION__._ZN4dali5exec29ExecGraph6LaunchERNS_7tasking9SchedulerE) #10
  unreachable

103:                                              ; No predecessors!
  br label %104

104:                                              ; preds = %103, %101
  %105 = invoke noundef nonnull align 8 dereferenceable(97) ptr @_ZNOSt8optionalIN4dali7tasking10TaskFutureEE5valueEv(ptr noundef nonnull align 8 dereferenceable(112) %10)
          to label %106 unwind label %107

106:                                              ; preds = %104
  call void @_ZN4dali7tasking10TaskFutureC2EOS1_(ptr noundef nonnull align 8 dereferenceable(97) %0, ptr noundef nonnull align 8 dereferenceable(97) %105) #8
  call void @_ZNSt14_Optional_baseIN4dali7tasking10TaskFutureELb0ELb0EED2Ev(ptr noundef nonnull align 8 dereferenceable(112) %10) #8
  call void @llvm.lifetime.end.p0(i64 112, ptr %10) #8
  ret void

107:                                              ; preds = %104
  %108 = landingpad { ptr, i32 }
          cleanup
  %109 = extractvalue { ptr, i32 } %108, 0
  store ptr %109, ptr %7, align 8
  %110 = extractvalue { ptr, i32 } %108, 1
  store i32 %110, ptr %8, align 4
  br label %111

111:                                              ; preds = %107, %95
  call void @_ZNSt14_Optional_baseIN4dali7tasking10TaskFutureELb0ELb0EED2Ev(ptr noundef nonnull align 8 dereferenceable(112) %10) #8
  call void @llvm.lifetime.end.p0(i64 112, ptr %10) #8
  br label %112

112:                                              ; preds = %111, %52, %23
  %113 = load ptr, ptr %7, align 8
  %114 = load i32, ptr %8, align 4
  %115 = insertvalue { ptr, i32 } poison, ptr %113, 0
  %116 = insertvalue { ptr, i32 } %115, i32 %114, 1
  resume { ptr, i32 } %116
}

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN4dali7tasking10TaskFutureC2EOS1_(ptr noundef nonnull align 8 dereferenceable(97), ptr noundef nonnull align 8 dereferenceable(97)) unnamed_addr #7 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 #2 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 = { "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 "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 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { 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 #8 = { nounwind }
attributes #9 = { noreturn }
attributes #10 = { 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, !25, i64 107}
!10 = !{!"_ZTSN4dali5exec29ExecGraphE", !11, i64 0, !17, i64 24, !20, i64 48, !25, i64 104, !25, i64 105, !25, i64 106, !25, i64 107, !26, i64 112}
!11 = !{!"_ZTSNSt7__cxx114listIN4dali5exec28ExecNodeESaIS3_EEE", !12, i64 0}
!12 = !{!"_ZTSNSt7__cxx1110_List_baseIN4dali5exec28ExecNodeESaIS3_EEE", !13, i64 0}
!13 = !{!"_ZTSNSt7__cxx1110_List_baseIN4dali5exec28ExecNodeESaIS3_EE10_List_implE", !14, i64 0}
!14 = !{!"_ZTSNSt8__detail17_List_node_headerE", !15, i64 0, !16, i64 16}
!15 = !{!"_ZTSNSt8__detail15_List_node_baseE", !6, i64 0, !6, i64 8}
!16 = !{!"long", !7, i64 0}
!17 = !{!"_ZTSNSt7__cxx114listIN4dali5exec28ExecEdgeESaIS3_EEE", !18, i64 0}
!18 = !{!"_ZTSNSt7__cxx1110_List_baseIN4dali5exec28ExecEdgeESaIS3_EEE", !19, i64 0}
!19 = !{!"_ZTSNSt7__cxx1110_List_baseIN4dali5exec28ExecEdgeESaIS3_EE10_List_implE", !14, i64 0}
!20 = !{!"_ZTSSt13unordered_mapISt17basic_string_viewIcSt11char_traitsIcEEPN4dali5exec28ExecNodeESt4hashIS3_ESt8equal_toIS3_ESaISt4pairIKS3_S7_EEE", !21, i64 0}
!21 = !{!"_ZTSSt10_HashtableISt17basic_string_viewIcSt11char_traitsIcEESt4pairIKS3_PN4dali5exec28ExecNodeEESaISA_ENSt8__detail10_Select1stESt8equal_toIS3_ESt4hashIS3_ENSC_18_Mod_range_hashingENSC_20_Default_ranged_hashENSC_20_Prime_rehash_policyENSC_17_Hashtable_traitsILb1ELb0ELb1EEEE", !6, i64 0, !16, i64 8, !22, i64 16, !16, i64 24, !23, i64 32, !6, i64 48}
!22 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !6, i64 0}
!23 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !24, i64 0, !16, i64 8}
!24 = !{!"float", !7, i64 0}
!25 = !{!"bool", !7, i64 0}
!26 = !{!"_ZTSSt10shared_ptrIN4dali7tasking4TaskEE", !27, i64 0}
!27 = !{!"_ZTSSt12__shared_ptrIN4dali7tasking4TaskELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !28, i64 8}
!28 = !{!"_ZTSSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0}
!29 = !{i8 0, i8 2}
!30 = !{}
!31 = !{!10, !25, i64 104}
!32 = !{!10, !25, i64 106}
!33 = !{!10, !25, i64 105}


; 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::optional" = type { %"struct.std::_Optional_base" }
%"struct.std::_Optional_base" = type { %"struct.std::_Optional_payload" }
%"struct.std::_Optional_payload" = type { %"struct.std::_Optional_payload.base", [7 x i8] }
%"struct.std::_Optional_payload.base" = type { %"struct.std::_Optional_payload_base.base" }
%"struct.std::_Optional_payload_base.base" = type { %"union.std::_Optional_payload_base<dali::tasking::TaskFuture>::_Storage", i8 }
%"union.std::_Optional_payload_base<dali::tasking::TaskFuture>::_Storage" = type { %"class.dali::tasking::TaskFuture" }
%"class.dali::tasking::TaskFuture" = type <{ %"class.std::shared_ptr.8", %"class.dali::tasking::TaskResults", i8, [7 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.std::__shared_count" = type { ptr }
%"class.dali::tasking::TaskResults" = type <{ %"class.dali::SmallVector.70", i8, i8, [6 x i8] }>
%"class.dali::SmallVector.70" = type { %union.anon.73, i64 }
%union.anon.73 = type { %struct.anon.74, [48 x i8] }
%struct.anon.74 = type { ptr, i64 }
%"struct.std::_List_iterator.168" = type { ptr }

@.str.6 = external hidden unnamed_addr constant [92 x i8], align 1
@_ZTISt11logic_error = external constant ptr
@.str.20 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [35 x i8], align 1
@__PRETTY_FUNCTION__._ZN4dali5exec29ExecGraph6LaunchERNS_7tasking9SchedulerE = external hidden unnamed_addr constant [73 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [49 x i8], align 1

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

; 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 #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4dali5exec28ExecNode6LaunchERNS_7tasking9SchedulerE(ptr dead_on_unwind noalias writable sret(%"class.std::optional") align 8, ptr noundef nonnull align 8 dereferenceable(472), ptr noundef nonnull align 8 dereferenceable(193)) local_unnamed_addr #3 align 2

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

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

declare ptr @__cxa_allocate_exception(i64) local_unnamed_addr

declare void @_ZNSt11logic_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) unnamed_addr #4

declare void @__cxa_free_exception(ptr) local_unnamed_addr

; Function Attrs: nounwind
declare void @_ZNSt11logic_errorD1Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #5

declare void @__cxa_throw(ptr, ptr, ptr) local_unnamed_addr

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4dali5exec29ExecGraph6LaunchERNS_7tasking9SchedulerE(ptr dead_on_unwind noalias writable sret(%"class.dali::tasking::TaskFuture") align 8 %0, ptr noundef nonnull align 8 dereferenceable(128) %1, ptr noundef nonnull align 8 dereferenceable(193) %2) local_unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.std::shared_ptr.8", align 8
  %5 = alloca %"class.std::optional", align 8
  %6 = alloca %"struct.std::_List_iterator.168", align 8
  %7 = alloca %"struct.std::_List_iterator.168", align 8
  %8 = alloca %"class.std::optional", align 8
  %9 = getelementptr inbounds i8, ptr %1, i64 107
  %10 = load i8, ptr %9, align 1, !tbaa !5, !range !28, !noundef !29
  %11 = trunc nuw i8 %10 to i1
  br i1 %11, label %17, label %12

12:                                               ; preds = %3
  %13 = tail call ptr @__cxa_allocate_exception(i64 16) #8
  invoke void @_ZNSt11logic_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef nonnull @.str.20)
          to label %14 unwind label %15

14:                                               ; preds = %12
  tail call void @__cxa_throw(ptr nonnull %13, ptr nonnull @_ZTISt11logic_error, ptr nonnull @_ZNSt11logic_errorD1Ev) #9
  unreachable

15:                                               ; preds = %12
  %16 = landingpad { ptr, i32 }
          cleanup
  tail call void @__cxa_free_exception(ptr %13) #8
  br label %64

17:                                               ; preds = %3
  store i8 0, ptr %9, align 1, !tbaa !5
  %18 = getelementptr inbounds i8, ptr %1, i64 104
  %19 = load i8, ptr %18, align 8, !tbaa !30, !range !28, !noundef !29
  %20 = trunc nuw i8 %19 to i1
  br i1 %20, label %21, label %.critedge

21:                                               ; preds = %17
  %22 = getelementptr inbounds i8, ptr %1, i64 106
  %23 = load i8, ptr %22, align 2, !tbaa !31, !range !28, !noundef !29
  %24 = trunc nuw i8 %23 to i1
  br i1 %24, label %25, label %.critedge

25:                                               ; preds = %21
  %26 = getelementptr inbounds i8, ptr %1, i64 105
  %27 = load i8, ptr %26, align 1, !tbaa !32, !range !28, !noundef !29
  %28 = trunc nuw i8 %27 to i1
  br i1 %28, label %29, label %.critedge

.critedge:                                        ; preds = %21, %17, %25
  tail call void @__assert_fail(ptr noundef nonnull @.str.21, ptr noundef nonnull @.str.6, i32 noundef 287, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN4dali5exec29ExecGraph6LaunchERNS_7tasking9SchedulerE) #10
  unreachable

29:                                               ; preds = %25
  %30 = getelementptr inbounds i8, ptr %1, i64 112
  %31 = tail call noundef zeroext i1 @_ZNKSt12__shared_ptrIN4dali7tasking4TaskELN9__gnu_cxx12_Lock_policyE2EEcvbEv(ptr noundef nonnull align 8 dereferenceable(16) %30) #8
  br i1 %31, label %32, label %36

32:                                               ; preds = %29
  call void @_ZNSt10shared_ptrIN4dali7tasking4TaskEEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(16) %4, ptr noundef nonnull align 8 dereferenceable(16) %30) #8
  invoke void @_ZN4dali7tasking9Scheduler13AddSilentTaskESt10shared_ptrINS0_4TaskEE(ptr noundef nonnull align 8 dereferenceable(193) %2, ptr noundef nonnull %4)
          to label %33 unwind label %34

33:                                               ; preds = %32
  call void @_ZNSt12__shared_ptrIN4dali7tasking4TaskELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %4) #8
  br label %36

34:                                               ; preds = %32
  %35 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt12__shared_ptrIN4dali7tasking4TaskELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %4) #8
  br label %64

36:                                               ; preds = %33, %29
  call void @llvm.lifetime.start.p0(i64 112, ptr nonnull %5) #8
  call void @_ZNSt8optionalIN4dali7tasking10TaskFutureEEC2Ev(ptr noundef nonnull align 8 dereferenceable(112) %5) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #8
  %37 = call ptr @_ZNSt7__cxx114listIN4dali5exec28ExecNodeESaIS3_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #8
  store ptr %37, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #8
  %38 = call ptr @_ZNSt7__cxx114listIN4dali5exec28ExecNodeESaIS3_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #8
  store ptr %38, ptr %7, align 8
  %39 = call noundef zeroext i1 @_ZStneRKSt14_List_iteratorIN4dali5exec28ExecNodeEES5_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #8
  br i1 %39, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %53, %36
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #8
  %40 = call noundef zeroext i1 @_ZNKSt8optionalIN4dali7tasking10TaskFutureEEcvbEv(ptr noundef nonnull align 8 dereferenceable(112) %5) #8
  br i1 %40, label %58, label %57

.lr.ph:                                           ; preds = %36, %53
  %41 = call noundef nonnull align 8 dereferenceable(472) ptr @_ZNKSt14_List_iteratorIN4dali5exec28ExecNodeEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #8
  call void @llvm.lifetime.start.p0(i64 112, ptr nonnull %8) #8
  invoke void @_ZN4dali5exec28ExecNode6LaunchERNS_7tasking9SchedulerE(ptr dead_on_unwind nonnull writable sret(%"class.std::optional") align 8 %8, ptr noundef nonnull align 8 dereferenceable(472) %41, ptr noundef nonnull align 8 dereferenceable(193) %2)
          to label %42 unwind label %47

42:                                               ; preds = %.lr.ph
  %43 = call noundef zeroext i1 @_ZNKSt8optionalIN4dali7tasking10TaskFutureEEcvbEv(ptr noundef nonnull align 8 dereferenceable(112) %8) #8
  br i1 %43, label %44, label %53

44:                                               ; preds = %42
  %45 = call noundef zeroext i1 @_ZNKSt8optionalIN4dali7tasking10TaskFutureEEcvbEv(ptr noundef nonnull align 8 dereferenceable(112) %5) #8
  br i1 %45, label %46, label %49

46:                                               ; preds = %44
  call void @__assert_fail(ptr noundef nonnull @.str.23, ptr noundef nonnull @.str.6, i32 noundef 296, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN4dali5exec29ExecGraph6LaunchERNS_7tasking9SchedulerE) #10
  unreachable

47:                                               ; preds = %.lr.ph
  %48 = landingpad { ptr, i32 }
          cleanup
  br label %56

49:                                               ; preds = %44
  %50 = invoke noundef nonnull align 8 dereferenceable(112) ptr @_ZNSt8optionalIN4dali7tasking10TaskFutureEEaSEOS3_(ptr noundef nonnull align 8 dereferenceable(112) %5, ptr noundef nonnull align 8 dereferenceable(112) %8)
          to label %53 unwind label %51

51:                                               ; preds = %49
  %52 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Optional_baseIN4dali7tasking10TaskFutureELb0ELb0EED2Ev(ptr noundef nonnull align 8 dereferenceable(112) %8) #8
  br label %56

53:                                               ; preds = %49, %42
  call void @_ZNSt14_Optional_baseIN4dali7tasking10TaskFutureELb0ELb0EED2Ev(ptr noundef nonnull align 8 dereferenceable(112) %8) #8
  call void @llvm.lifetime.end.p0(i64 112, ptr nonnull %8) #8
  %54 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt14_List_iteratorIN4dali5exec28ExecNodeEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #8
  %55 = call noundef zeroext i1 @_ZStneRKSt14_List_iteratorIN4dali5exec28ExecNodeEES5_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #8
  br i1 %55, label %.lr.ph, label %._crit_edge

56:                                               ; preds = %51, %47
  %.pn = phi { ptr, i32 } [ %52, %51 ], [ %48, %47 ]
  call void @llvm.lifetime.end.p0(i64 112, ptr nonnull %8) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #8
  br label %63

57:                                               ; preds = %._crit_edge
  call void @__assert_fail(ptr noundef nonnull @.str.25, ptr noundef nonnull @.str.6, i32 noundef 300, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN4dali5exec29ExecGraph6LaunchERNS_7tasking9SchedulerE) #10
  unreachable

58:                                               ; preds = %._crit_edge
  %59 = invoke noundef nonnull align 8 dereferenceable(97) ptr @_ZNOSt8optionalIN4dali7tasking10TaskFutureEE5valueEv(ptr noundef nonnull align 8 dereferenceable(112) %5)
          to label %60 unwind label %61

60:                                               ; preds = %58
  call void @_ZN4dali7tasking10TaskFutureC2EOS1_(ptr noundef nonnull align 8 dereferenceable(97) %0, ptr noundef nonnull align 8 dereferenceable(97) %59) #8
  call void @_ZNSt14_Optional_baseIN4dali7tasking10TaskFutureELb0ELb0EED2Ev(ptr noundef nonnull align 8 dereferenceable(112) %5) #8
  call void @llvm.lifetime.end.p0(i64 112, ptr nonnull %5) #8
  ret void

61:                                               ; preds = %58
  %62 = landingpad { ptr, i32 }
          cleanup
  br label %63

63:                                               ; preds = %61, %56
  %.pn.pn = phi { ptr, i32 } [ %.pn, %56 ], [ %62, %61 ]
  call void @_ZNSt14_Optional_baseIN4dali7tasking10TaskFutureELb0ELb0EED2Ev(ptr noundef nonnull align 8 dereferenceable(112) %5) #8
  call void @llvm.lifetime.end.p0(i64 112, ptr nonnull %5) #8
  br label %64

64:                                               ; preds = %63, %34, %15
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %63 ], [ %35, %34 ], [ %16, %15 ]
  resume { ptr, i32 } %.pn.pn.pn
}

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(112) ptr @_ZNSt8optionalIN4dali7tasking10TaskFutureEEaSEOS3_(ptr noundef nonnull align 8 dereferenceable(112), ptr noundef nonnull align 8 dereferenceable(112)) local_unnamed_addr #6 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(97) ptr @_ZNOSt8optionalIN4dali7tasking10TaskFutureEE5valueEv(ptr noundef nonnull align 8 dereferenceable(112)) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN4dali7tasking10TaskFutureC2EOS1_(ptr noundef nonnull align 8 dereferenceable(97), ptr noundef nonnull align 8 dereferenceable(97)) unnamed_addr #7 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 #2 align 2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 = { "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 "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 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { 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 #8 = { nounwind }
attributes #9 = { noreturn }
attributes #10 = { 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, !24, i64 107}
!6 = !{!"_ZTSN4dali5exec29ExecGraphE", !7, i64 0, !16, i64 24, !19, i64 48, !24, i64 104, !24, i64 105, !24, i64 106, !24, i64 107, !25, i64 112}
!7 = !{!"_ZTSNSt7__cxx114listIN4dali5exec28ExecNodeESaIS3_EEE", !8, i64 0}
!8 = !{!"_ZTSNSt7__cxx1110_List_baseIN4dali5exec28ExecNodeESaIS3_EEE", !9, i64 0}
!9 = !{!"_ZTSNSt7__cxx1110_List_baseIN4dali5exec28ExecNodeESaIS3_EE10_List_implE", !10, i64 0}
!10 = !{!"_ZTSNSt8__detail17_List_node_headerE", !11, i64 0, !15, i64 16}
!11 = !{!"_ZTSNSt8__detail15_List_node_baseE", !12, i64 0, !12, i64 8}
!12 = !{!"any pointer", !13, i64 0}
!13 = !{!"omnipotent char", !14, i64 0}
!14 = !{!"Simple C++ TBAA"}
!15 = !{!"long", !13, i64 0}
!16 = !{!"_ZTSNSt7__cxx114listIN4dali5exec28ExecEdgeESaIS3_EEE", !17, i64 0}
!17 = !{!"_ZTSNSt7__cxx1110_List_baseIN4dali5exec28ExecEdgeESaIS3_EEE", !18, i64 0}
!18 = !{!"_ZTSNSt7__cxx1110_List_baseIN4dali5exec28ExecEdgeESaIS3_EE10_List_implE", !10, i64 0}
!19 = !{!"_ZTSSt13unordered_mapISt17basic_string_viewIcSt11char_traitsIcEEPN4dali5exec28ExecNodeESt4hashIS3_ESt8equal_toIS3_ESaISt4pairIKS3_S7_EEE", !20, i64 0}
!20 = !{!"_ZTSSt10_HashtableISt17basic_string_viewIcSt11char_traitsIcEESt4pairIKS3_PN4dali5exec28ExecNodeEESaISA_ENSt8__detail10_Select1stESt8equal_toIS3_ESt4hashIS3_ENSC_18_Mod_range_hashingENSC_20_Default_ranged_hashENSC_20_Prime_rehash_policyENSC_17_Hashtable_traitsILb1ELb0ELb1EEEE", !12, i64 0, !15, i64 8, !21, i64 16, !15, i64 24, !22, i64 32, !12, i64 48}
!21 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !12, i64 0}
!22 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !23, i64 0, !15, i64 8}
!23 = !{!"float", !13, i64 0}
!24 = !{!"bool", !13, i64 0}
!25 = !{!"_ZTSSt10shared_ptrIN4dali7tasking4TaskEE", !26, i64 0}
!26 = !{!"_ZTSSt12__shared_ptrIN4dali7tasking4TaskELN9__gnu_cxx12_Lock_policyE2EE", !12, i64 0, !27, i64 8}
!27 = !{!"_ZTSSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EE", !12, i64 0}
!28 = !{i8 0, i8 2}
!29 = !{}
!30 = !{!6, !24, i64 104}
!31 = !{!6, !24, i64 106}
!32 = !{!6, !24, i64 105}


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