; LLVM IR from NVIDIA/DALI :: dali/c_api (c_api)

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

%"struct.dali::DomainTimeRange" = type { i8 }
%"class.dali::AccessOrder" = type <{ ptr, i32, [4 x i8] }>
%"class.dali::CPUBackend" = type { i8 }
%"class.dali::GPUBackend" = type { i8 }
%struct.DALIPipeline = type { %"class.std::unique_ptr", %"class.dali::Workspace", %"class.std::unordered_map.177", %"class.std::unordered_map.197", %"class.dali::CUDAStreamLease" }
%"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.47" }
%"struct.std::_Head_base.47" = type { ptr }
%"class.dali::Workspace" = type { %"class.dali::WorkspaceBase" }
%"class.dali::WorkspaceBase" = type { %"class.dali::ArgumentWorkspace", %"class.dali::SmallVector.159", %"class.dali::SmallVector.164", %"class.dali::SmallVector.169", %"class.dali::AccessOrder", ptr, ptr, %"class.dali::SmallVector.172", %"class.std::__cxx11::basic_string", ptr, %"class.std::shared_ptr" }
%"class.dali::ArgumentWorkspace" = type { ptr, %"class.std::map.153", %"class.dali::SmallVector" }
%"class.std::map.153" = type { %"class.std::_Rb_tree.154" }
%"class.std::_Rb_tree.154" = type { %"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, int>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, int>>, std::less<void>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, int>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, int>>, std::less<void>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.dali::SmallVector" = type { %union.anon.158, i64 }
%union.anon.158 = type { %struct.anon, [176 x i8] }
%struct.anon = type { ptr, i64 }
%"class.dali::SmallVector.159" = type { %union.anon.162, i64 }
%union.anon.162 = type { %struct.anon.163 }
%struct.anon.163 = type { ptr, i64 }
%"class.dali::SmallVector.164" = type { %union.anon.167, i64 }
%union.anon.167 = type { %struct.anon.168, [144 x i8] }
%struct.anon.168 = type { ptr, i64 }
%"class.dali::SmallVector.169" = type { %union.anon.170, i64 }
%union.anon.170 = type { %struct.anon.171, [64 x i8] }
%struct.anon.171 = type { ptr, i64 }
%"class.dali::SmallVector.172" = type { %union.anon.175, i64 }
%union.anon.175 = type { %struct.anon.176, [16 x i8] }
%struct.anon.176 = type { ptr, i64 }
%"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" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"class.std::unordered_map.177" = type { %"class.std::_Hashtable.178" }
%"class.std::_Hashtable.178" = 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 }
%"class.std::unordered_map.197" = type { %"class.std::_Hashtable.198" }
%"class.std::_Hashtable.198" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"class.dali::CUDAStreamLease" = type { %"class.dali::CUDAStream", i32, ptr }
%"class.dali::CUDAStream" = type { %"class.dali::UniqueHandle" }
%"class.dali::UniqueHandle" = type { ptr }

@.str.11 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [65 x i8], align 1
@__PRETTY_FUNCTION__.daliOutputCopy = external hidden unnamed_addr constant [98 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: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @daliOutputCopy(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, ptr noundef %4, i32 noundef %5) #2 personality ptr @__gxx_personality_v0 {
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca %"struct.dali::DomainTimeRange", align 1
  %14 = alloca i8, align 1
  %15 = alloca i8, align 1
  %16 = alloca i8, align 1
  %17 = alloca i32, align 4
  %18 = alloca ptr, align 8
  %19 = alloca i32, align 4
  %20 = alloca ptr, align 8
  %21 = alloca %"class.dali::AccessOrder", align 8
  %22 = alloca { ptr, i32 }, align 8
  %23 = alloca %"class.dali::AccessOrder", align 8
  %24 = alloca { ptr, i32 }, align 8
  %25 = alloca %"class.dali::AccessOrder", align 8
  %26 = alloca { ptr, i32 }, align 8
  %27 = alloca ptr, align 8
  %28 = alloca %"class.dali::CPUBackend", align 1
  %29 = alloca %"class.dali::AccessOrder", align 8
  %30 = alloca %"class.dali::AccessOrder", align 8
  %31 = alloca { ptr, i32 }, align 8
  %32 = alloca ptr, align 8
  %33 = alloca %"class.dali::GPUBackend", align 1
  %34 = alloca %"class.dali::AccessOrder", align 8
  %35 = alloca %"class.dali::AccessOrder", align 8
  %36 = alloca %"class.dali::AccessOrder", align 8
  %37 = alloca { ptr, i32 }, align 8
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store i32 %2, ptr %9, align 4, !tbaa !9
  store i32 %3, ptr %10, align 4, !tbaa !11
  store ptr %4, ptr %11, align 8, !tbaa !5
  store i32 %5, ptr %12, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %13) #8
  call void @_ZN4dali15DomainTimeRangeC2EPKcj(ptr noundef nonnull align 1 dereferenceable(1) %13, ptr noundef @.str.11, i32 noundef 65280)
  call void @llvm.lifetime.start.p0(i64 1, ptr %14) #8
  %38 = load i32, ptr %12, align 4, !tbaa !9
  %39 = and i32 %38, 2
  %40 = icmp ne i32 %39, 0
  %41 = zext i1 %40 to i8
  store i8 %41, ptr %14, align 1, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 1, ptr %15) #8
  %42 = load i32, ptr %12, align 4, !tbaa !9
  %43 = and i32 %42, 1
  %44 = icmp ne i32 %43, 0
  %45 = zext i1 %44 to i8
  store i8 %45, ptr %15, align 1, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 1, ptr %16) #8
  %46 = load i32, ptr %12, align 4, !tbaa !9
  %47 = and i32 %46, 4
  %48 = icmp ne i32 %47, 0
  %49 = zext i1 %48 to i8
  store i8 %49, ptr %16, align 1, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #8
  %50 = load i32, ptr %10, align 4, !tbaa !11
  %51 = load i8, ptr %14, align 1, !tbaa !13, !range !15, !noundef !16
  %52 = trunc i8 %51 to i1
  %53 = invoke noundef i32 @_ZN12_GLOBAL__N_110GetMemKindE13device_type_tb(i32 noundef %50, i1 noundef zeroext %52)
          to label %54 unwind label %62

54:                                               ; preds = %6
  store i32 %53, ptr %17, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #8
  %55 = load ptr, ptr %7, align 8, !tbaa !5
  %56 = load ptr, ptr %55, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.DALIPipeline, ptr %56, i32 0, i32 1
  store ptr %57, ptr %20, align 8, !tbaa !5
  %58 = load ptr, ptr %20, align 8, !tbaa !5
  %59 = icmp ne ptr %58, null
  br i1 %59, label %60, label %61

60:                                               ; preds = %54
  br label %67

61:                                               ; preds = %54
  call void @__assert_fail(ptr noundef @.str.12, ptr noundef @.str.13, i32 noundef 637, ptr noundef @__PRETTY_FUNCTION__.daliOutputCopy) #9
  unreachable

62:                                               ; preds = %6
  %63 = landingpad { ptr, i32 }
          cleanup
  %64 = extractvalue { ptr, i32 } %63, 0
  store ptr %64, ptr %18, align 8
  %65 = extractvalue { ptr, i32 } %63, 1
  store i32 %65, ptr %19, align 4
  br label %169

66:                                               ; No predecessors!
  br label %67

67:                                               ; preds = %66, %60
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #8
  %68 = invoke { ptr, i32 } @_ZN4dali11AccessOrder4hostEv()
          to label %69 unwind label %106

69:                                               ; preds = %67
  store { ptr, i32 } %68, ptr %22, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %21, ptr align 8 %22, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 16, ptr %23) #8
  %70 = invoke { ptr, i32 } @_ZN4dali11AccessOrder4hostEv()
          to label %71 unwind label %110

71:                                               ; preds = %69
  store { ptr, i32 } %70, ptr %24, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %23, ptr align 8 %24, i64 12, i1 false)
  %72 = load ptr, ptr %20, align 8, !tbaa !5
  %73 = load i32, ptr %9, align 4, !tbaa !9
  %74 = invoke noundef zeroext i1 @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE12OutputIsTypeINS_10CPUBackendEEEbi(ptr noundef nonnull align 8 dereferenceable(664) %72, i32 noundef %73)
          to label %75 unwind label %110

75:                                               ; preds = %71
  br i1 %74, label %76, label %128

76:                                               ; preds = %75
  call void @llvm.lifetime.start.p0(i64 16, ptr %25) #8
  %77 = load i8, ptr %14, align 1, !tbaa !13, !range !15, !noundef !16
  %78 = trunc i8 %77 to i1
  br i1 %78, label %79, label %82

79:                                               ; preds = %76
  %80 = load ptr, ptr %11, align 8, !tbaa !5
  invoke void @_ZN4dali11AccessOrderC1EP11CUstream_st(ptr noundef nonnull align 8 dereferenceable(12) %25, ptr noundef %80)
          to label %81 unwind label %114

81:                                               ; preds = %79
  br label %85

82:                                               ; preds = %76
  %83 = invoke { ptr, i32 } @_ZN4dali11AccessOrder4hostEv()
          to label %84 unwind label %114

84:                                               ; preds = %82
  store { ptr, i32 } %83, ptr %26, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %25, ptr align 8 %26, i64 12, i1 false)
  br label %85

85:                                               ; preds = %84, %81
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %23, ptr align 8 %25, i64 12, i1 false), !tbaa.struct !19
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #8
  %86 = load ptr, ptr %20, align 8, !tbaa !5
  %87 = load i32, ptr %9, align 4, !tbaa !9
  %88 = invoke noundef nonnull align 8 dereferenceable(304) ptr @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE6OutputINS_10CPUBackendEEERDaiT_(ptr noundef nonnull align 8 dereferenceable(664) %86, i32 noundef %87)
          to label %89 unwind label %118

89:                                               ; preds = %85
  store ptr %88, ptr %27, align 8, !tbaa !5
  %90 = load ptr, ptr %8, align 8, !tbaa !5
  %91 = load i32, ptr %17, align 4, !tbaa !17
  %92 = load ptr, ptr %27, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %29, ptr align 8 %23, i64 16, i1 false), !tbaa.struct !19
  %93 = load i8, ptr %16, align 1, !tbaa !13, !range !15, !noundef !16
  %94 = trunc i8 %93 to i1
  %95 = getelementptr inbounds { ptr, i32 }, ptr %29, i32 0, i32 0
  %96 = load ptr, ptr %95, align 8
  %97 = getelementptr inbounds { ptr, i32 }, ptr %29, i32 0, i32 1
  %98 = load i32, ptr %97, align 8
  invoke void @_ZN4dali14CopyToExternalINS_10CPUBackendEEEvPvNS_2mm14memory_kind_idERKNS_10TensorListIT_EENS_11AccessOrderEb(ptr noundef %90, i32 noundef %91, ptr noundef nonnull align 8 dereferenceable(304) %92, ptr %96, i32 %98, i1 noundef zeroext %94)
          to label %99 unwind label %118

99:                                               ; preds = %89
  %100 = load i8, ptr %15, align 1, !tbaa !13, !range !15, !noundef !16
  %101 = trunc i8 %100 to i1
  br i1 %101, label %126, label %102

102:                                              ; preds = %99
  call void @llvm.lifetime.start.p0(i64 16, ptr %30) #8
  %103 = load ptr, ptr %27, align 8, !tbaa !5
  %104 = invoke { ptr, i32 } @_ZNK4dali10TensorListINS_10CPUBackendEE5orderEv(ptr noundef nonnull align 8 dereferenceable(304) %103)
          to label %105 unwind label %122

105:                                              ; preds = %102
  store { ptr, i32 } %104, ptr %31, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %30, ptr align 8 %31, i64 12, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %21, ptr align 8 %30, i64 12, i1 false), !tbaa.struct !19
  call void @llvm.lifetime.end.p0(i64 16, ptr %30) #8
  br label %126

106:                                              ; preds = %67
  %107 = landingpad { ptr, i32 }
          cleanup
  %108 = extractvalue { ptr, i32 } %107, 0
  store ptr %108, ptr %18, align 8
  %109 = extractvalue { ptr, i32 } %107, 1
  store i32 %109, ptr %19, align 4
  br label %168

110:                                              ; preds = %165, %71, %69
  %111 = landingpad { ptr, i32 }
          cleanup
  %112 = extractvalue { ptr, i32 } %111, 0
  store ptr %112, ptr %18, align 8
  %113 = extractvalue { ptr, i32 } %111, 1
  store i32 %113, ptr %19, align 4
  br label %167

114:                                              ; preds = %82, %79
  %115 = landingpad { ptr, i32 }
          cleanup
  %116 = extractvalue { ptr, i32 } %115, 0
  store ptr %116, ptr %18, align 8
  %117 = extractvalue { ptr, i32 } %115, 1
  store i32 %117, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #8
  br label %167

118:                                              ; preds = %89, %85
  %119 = landingpad { ptr, i32 }
          cleanup
  %120 = extractvalue { ptr, i32 } %119, 0
  store ptr %120, ptr %18, align 8
  %121 = extractvalue { ptr, i32 } %119, 1
  store i32 %121, ptr %19, align 4
  br label %127

122:                                              ; preds = %102
  %123 = landingpad { ptr, i32 }
          cleanup
  %124 = extractvalue { ptr, i32 } %123, 0
  store ptr %124, ptr %18, align 8
  %125 = extractvalue { ptr, i32 } %123, 1
  store i32 %125, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %30) #8
  br label %127

126:                                              ; preds = %105, %99
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #8
  br label %165

127:                                              ; preds = %122, %118
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #8
  br label %167

128:                                              ; preds = %75
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #8
  %129 = load ptr, ptr %20, align 8, !tbaa !5
  %130 = load i32, ptr %9, align 4, !tbaa !9
  %131 = invoke noundef nonnull align 8 dereferenceable(304) ptr @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE6OutputINS_10GPUBackendEEERDaiT_(ptr noundef nonnull align 8 dereferenceable(664) %129, i32 noundef %130)
          to label %132 unwind label %151

132:                                              ; preds = %128
  store ptr %131, ptr %32, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %34) #8
  %133 = load ptr, ptr %11, align 8, !tbaa !5
  invoke void @_ZN4dali11AccessOrderC1EP11CUstream_st(ptr noundef nonnull align 8 dereferenceable(12) %34, ptr noundef %133)
          to label %134 unwind label %155

134:                                              ; preds = %132
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %23, ptr align 8 %34, i64 12, i1 false), !tbaa.struct !19
  call void @llvm.lifetime.end.p0(i64 16, ptr %34) #8
  %135 = load ptr, ptr %8, align 8, !tbaa !5
  %136 = load i32, ptr %17, align 4, !tbaa !17
  %137 = load ptr, ptr %32, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %35, ptr align 8 %23, i64 16, i1 false), !tbaa.struct !19
  %138 = load i8, ptr %16, align 1, !tbaa !13, !range !15, !noundef !16
  %139 = trunc i8 %138 to i1
  %140 = getelementptr inbounds { ptr, i32 }, ptr %35, i32 0, i32 0
  %141 = load ptr, ptr %140, align 8
  %142 = getelementptr inbounds { ptr, i32 }, ptr %35, i32 0, i32 1
  %143 = load i32, ptr %142, align 8
  invoke void @_ZN4dali14CopyToExternalINS_10GPUBackendEEEvPvNS_2mm14memory_kind_idERKNS_10TensorListIT_EENS_11AccessOrderEb(ptr noundef %135, i32 noundef %136, ptr noundef nonnull align 8 dereferenceable(304) %137, ptr %141, i32 %143, i1 noundef zeroext %139)
          to label %144 unwind label %151

144:                                              ; preds = %134
  %145 = load i8, ptr %15, align 1, !tbaa !13, !range !15, !noundef !16
  %146 = trunc i8 %145 to i1
  br i1 %146, label %163, label %147

147:                                              ; preds = %144
  call void @llvm.lifetime.start.p0(i64 16, ptr %36) #8
  %148 = load ptr, ptr %32, align 8, !tbaa !5
  %149 = invoke { ptr, i32 } @_ZNK4dali10TensorListINS_10GPUBackendEE5orderEv(ptr noundef nonnull align 8 dereferenceable(304) %148)
          to label %150 unwind label %159

150:                                              ; preds = %147
  store { ptr, i32 } %149, ptr %37, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %36, ptr align 8 %37, i64 12, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %21, ptr align 8 %36, i64 12, i1 false), !tbaa.struct !19
  call void @llvm.lifetime.end.p0(i64 16, ptr %36) #8
  br label %163

151:                                              ; preds = %134, %128
  %152 = landingpad { ptr, i32 }
          cleanup
  %153 = extractvalue { ptr, i32 } %152, 0
  store ptr %153, ptr %18, align 8
  %154 = extractvalue { ptr, i32 } %152, 1
  store i32 %154, ptr %19, align 4
  br label %164

155:                                              ; preds = %132
  %156 = landingpad { ptr, i32 }
          cleanup
  %157 = extractvalue { ptr, i32 } %156, 0
  store ptr %157, ptr %18, align 8
  %158 = extractvalue { ptr, i32 } %156, 1
  store i32 %158, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %34) #8
  br label %164

159:                                              ; preds = %147
  %160 = landingpad { ptr, i32 }
          cleanup
  %161 = extractvalue { ptr, i32 } %160, 0
  store ptr %161, ptr %18, align 8
  %162 = extractvalue { ptr, i32 } %160, 1
  store i32 %162, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %36) #8
  br label %164

163:                                              ; preds = %150, %144
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #8
  br label %165

164:                                              ; preds = %159, %155, %151
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #8
  br label %167

165:                                              ; preds = %163, %126
  invoke void @_ZNK4dali11AccessOrder4waitERKS0_(ptr noundef nonnull align 8 dereferenceable(12) %21, ptr noundef nonnull align 8 dereferenceable(12) %23)
          to label %166 unwind label %110

166:                                              ; preds = %165
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #8
  call void @_ZN4dali15DomainTimeRangeD2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #8
  ret void

167:                                              ; preds = %164, %127, %114, %110
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #8
  br label %168

168:                                              ; preds = %167, %106
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #8
  br label %169

169:                                              ; preds = %168, %62
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #8
  call void @_ZN4dali15DomainTimeRangeD2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #8
  br label %170

170:                                              ; preds = %169
  %171 = load ptr, ptr %18, align 8
  %172 = load i32, ptr %19, align 4
  %173 = insertvalue { ptr, i32 } poison, ptr %171, 0
  %174 = insertvalue { ptr, i32 } %173, i32 %172, 1
  resume { ptr, i32 } %174
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4dali15DomainTimeRangeC2EPKcj(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef, i32 noundef) unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef i32 @_ZN12_GLOBAL__N_110GetMemKindE13device_type_tb(i32 noundef, i1 noundef zeroext) #4

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

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i32 } @_ZN4dali11AccessOrder4hostEv() #2 align 2

declare void @_ZN4dali11AccessOrderC1EP11CUstream_st(ptr noundef nonnull align 8 dereferenceable(12), ptr noundef) unnamed_addr #6

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN4dali14CopyToExternalINS_10CPUBackendEEEvPvNS_2mm14memory_kind_idERKNS_10TensorListIT_EENS_11AccessOrderEb(ptr noundef, i32 noundef, ptr noundef nonnull align 8 dereferenceable(304), ptr, i32, i1 noundef zeroext) #7

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { ptr, i32 } @_ZNK4dali10TensorListINS_10CPUBackendEE5orderEv(ptr noundef nonnull align 8 dereferenceable(304)) #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN4dali14CopyToExternalINS_10GPUBackendEEEvPvNS_2mm14memory_kind_idERKNS_10TensorListIT_EENS_11AccessOrderEb(ptr noundef, i32 noundef, ptr noundef nonnull align 8 dereferenceable(304), ptr, i32, i1 noundef zeroext) #7

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { ptr, i32 } @_ZNK4dali10TensorListINS_10GPUBackendEE5orderEv(ptr noundef nonnull align 8 dereferenceable(304)) #3 align 2

declare void @_ZNK4dali11AccessOrder4waitERKS0_(ptr noundef nonnull align 8 dereferenceable(12), ptr noundef nonnull align 8 dereferenceable(12)) #6

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = { 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 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 = { 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 #6 = { "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 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 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 = !{!"_ZTS13device_type_t", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"bool", !7, i64 0}
!15 = !{i8 0, i8 2}
!16 = !{}
!17 = !{!18, !18, i64 0}
!18 = !{!"_ZTSN4dali2mm14memory_kind_idE", !7, i64 0}
!19 = !{i64 0, i64 8, !5, i64 8, i64 4, !9}


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

%"struct.dali::DomainTimeRange" = type { i8 }
%"class.dali::AccessOrder" = type <{ ptr, i32, [4 x i8] }>

@.str.11 = external hidden unnamed_addr constant [29 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: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @daliOutputCopy(ptr nocapture noundef readonly %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, ptr noundef %4, i32 noundef %5) local_unnamed_addr #2 personality ptr @__gxx_personality_v0 {
  %7 = alloca %"struct.dali::DomainTimeRange", align 1
  %8 = alloca %"class.dali::AccessOrder", align 8
  %9 = alloca %"class.dali::AccessOrder", align 8
  %10 = alloca %"class.dali::AccessOrder", align 8
  %11 = alloca %"class.dali::AccessOrder", align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %7) #7
  call void @_ZN4dali15DomainTimeRangeC2EPKcj(ptr noundef nonnull align 1 dereferenceable(1) %7, ptr noundef nonnull @.str.11, i32 noundef 65280)
  %12 = and i32 %5, 2
  %13 = icmp ne i32 %12, 0
  %14 = and i32 %5, 1
  %.not = icmp eq i32 %14, 0
  %15 = and i32 %5, 4
  %16 = icmp ne i32 %15, 0
  %17 = call noundef i32 @_ZN12_GLOBAL__N_110GetMemKindE13device_type_tb(i32 noundef %3, i1 noundef zeroext %13)
  %18 = load ptr, ptr %0, align 8, !tbaa !5
  %19 = getelementptr inbounds i8, ptr %18, i64 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #7
  %20 = invoke { ptr, i32 } @_ZN4dali11AccessOrder4hostEv()
          to label %21 unwind label %37

21:                                               ; preds = %6
  %.fca.0.extract25 = extractvalue { ptr, i32 } %20, 0
  %.fca.1.extract26 = extractvalue { ptr, i32 } %20, 1
  store ptr %.fca.0.extract25, ptr %8, align 8
  %.sroa.228.0..sroa_idx = getelementptr inbounds i8, ptr %8, i64 8
  store i32 %.fca.1.extract26, ptr %.sroa.228.0..sroa_idx, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #7
  %22 = invoke { ptr, i32 } @_ZN4dali11AccessOrder4hostEv()
          to label %23 unwind label %39

23:                                               ; preds = %21
  %.sroa.224.0..sroa_idx = getelementptr inbounds i8, ptr %9, i64 8
  %24 = invoke noundef zeroext i1 @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE12OutputIsTypeINS_10CPUBackendEEEbi(ptr noundef nonnull align 8 dereferenceable(664) %19, i32 noundef %2)
          to label %25 unwind label %39

25:                                               ; preds = %23
  br i1 %24, label %26, label %45

26:                                               ; preds = %25
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #7
  br i1 %13, label %27, label %28

27:                                               ; preds = %26
  invoke void @_ZN4dali11AccessOrderC1EP11CUstream_st(ptr noundef nonnull align 8 dereferenceable(12) %10, ptr noundef %4)
          to label %31 unwind label %41

28:                                               ; preds = %26
  %29 = invoke { ptr, i32 } @_ZN4dali11AccessOrder4hostEv()
          to label %30 unwind label %41

30:                                               ; preds = %28
  %.fca.0.extract17 = extractvalue { ptr, i32 } %29, 0
  %.fca.1.extract18 = extractvalue { ptr, i32 } %29, 1
  store ptr %.fca.0.extract17, ptr %10, align 8
  %.sroa.220.0..sroa_idx = getelementptr inbounds i8, ptr %10, i64 8
  store i32 %.fca.1.extract18, ptr %.sroa.220.0..sroa_idx, align 8
  br label %31

31:                                               ; preds = %27, %30
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(12) %9, ptr noundef nonnull align 8 dereferenceable(12) %10, i64 12, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #7
  %32 = invoke noundef nonnull align 8 dereferenceable(304) ptr @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE6OutputINS_10CPUBackendEEERDaiT_(ptr noundef nonnull align 8 dereferenceable(664) %19, i32 noundef %2)
          to label %33 unwind label %43

33:                                               ; preds = %31
  %.sroa.012.0.copyload = load ptr, ptr %9, align 8, !tbaa !5
  %.sroa.213.0.copyload = load i32, ptr %.sroa.224.0..sroa_idx, align 8, !tbaa !10
  invoke void @_ZN4dali14CopyToExternalINS_10CPUBackendEEEvPvNS_2mm14memory_kind_idERKNS_10TensorListIT_EENS_11AccessOrderEb(ptr noundef %1, i32 noundef %17, ptr noundef nonnull align 8 dereferenceable(304) %32, ptr %.sroa.012.0.copyload, i32 %.sroa.213.0.copyload, i1 noundef zeroext %16)
          to label %34 unwind label %43

34:                                               ; preds = %33
  br i1 %.not, label %35, label %56

35:                                               ; preds = %34
  %36 = call { ptr, i32 } @_ZNK4dali10TensorListINS_10CPUBackendEE5orderEv(ptr noundef nonnull align 8 dereferenceable(304) %32)
  br label %.sink.split

37:                                               ; preds = %6
  %38 = landingpad { ptr, i32 }
          cleanup
  br label %59

39:                                               ; preds = %56, %23, %21
  %40 = landingpad { ptr, i32 }
          cleanup
  br label %58

41:                                               ; preds = %28, %27
  %42 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #7
  br label %58

43:                                               ; preds = %33, %31
  %44 = landingpad { ptr, i32 }
          cleanup
  br label %58

45:                                               ; preds = %25
  %46 = invoke noundef nonnull align 8 dereferenceable(304) ptr @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE6OutputINS_10GPUBackendEEERDaiT_(ptr noundef nonnull align 8 dereferenceable(664) %19, i32 noundef %2)
          to label %47 unwind label %52

47:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #7
  invoke void @_ZN4dali11AccessOrderC1EP11CUstream_st(ptr noundef nonnull align 8 dereferenceable(12) %11, ptr noundef %4)
          to label %48 unwind label %54

48:                                               ; preds = %47
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(12) %9, ptr noundef nonnull align 8 dereferenceable(12) %11, i64 12, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #7
  %.sroa.02.0.copyload = load ptr, ptr %9, align 8, !tbaa !5
  %.sroa.23.0.copyload = load i32, ptr %.sroa.224.0..sroa_idx, align 8, !tbaa !10
  invoke void @_ZN4dali14CopyToExternalINS_10GPUBackendEEEvPvNS_2mm14memory_kind_idERKNS_10TensorListIT_EENS_11AccessOrderEb(ptr noundef %1, i32 noundef %17, ptr noundef nonnull align 8 dereferenceable(304) %46, ptr %.sroa.02.0.copyload, i32 %.sroa.23.0.copyload, i1 noundef zeroext %16)
          to label %49 unwind label %52

49:                                               ; preds = %48
  br i1 %.not, label %50, label %56

50:                                               ; preds = %49
  %51 = call { ptr, i32 } @_ZNK4dali10TensorListINS_10GPUBackendEE5orderEv(ptr noundef nonnull align 8 dereferenceable(304) %46)
  br label %.sink.split

52:                                               ; preds = %48, %45
  %53 = landingpad { ptr, i32 }
          cleanup
  br label %58

54:                                               ; preds = %47
  %55 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #7
  br label %58

.sink.split:                                      ; preds = %35, %50
  %.pn = phi { ptr, i32 } [ %51, %50 ], [ %36, %35 ]
  %.fca.1.extract.sink = extractvalue { ptr, i32 } %.pn, 1
  %storemerge = extractvalue { ptr, i32 } %.pn, 0
  store ptr %storemerge, ptr %8, align 8, !tbaa !5
  store i32 %.fca.1.extract.sink, ptr %.sroa.228.0..sroa_idx, align 8, !tbaa !10
  br label %56

56:                                               ; preds = %.sink.split, %49, %34
  invoke void @_ZNK4dali11AccessOrder4waitERKS0_(ptr noundef nonnull align 8 dereferenceable(12) %8, ptr noundef nonnull align 8 dereferenceable(12) %9)
          to label %57 unwind label %39

57:                                               ; preds = %56
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #7
  call void @_ZN4dali15DomainTimeRangeD2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #7
  ret void

58:                                               ; preds = %52, %54, %43, %41, %39
  %.pn58 = phi { ptr, i32 } [ %40, %39 ], [ %44, %43 ], [ %42, %41 ], [ %53, %52 ], [ %55, %54 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #7
  br label %59

59:                                               ; preds = %58, %37
  %.pn58.pn = phi { ptr, i32 } [ %.pn58, %58 ], [ %38, %37 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #7
  call void @_ZN4dali15DomainTimeRangeD2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #7
  resume { ptr, i32 } %.pn58.pn
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4dali15DomainTimeRangeC2EPKcj(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef, i32 noundef) unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef i32 @_ZN12_GLOBAL__N_110GetMemKindE13device_type_tb(i32 noundef, i1 noundef zeroext) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i32 } @_ZN4dali11AccessOrder4hostEv() local_unnamed_addr #2 align 2

declare void @_ZN4dali11AccessOrderC1EP11CUstream_st(ptr noundef nonnull align 8 dereferenceable(12), ptr noundef) unnamed_addr #5

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN4dali14CopyToExternalINS_10CPUBackendEEEvPvNS_2mm14memory_kind_idERKNS_10TensorListIT_EENS_11AccessOrderEb(ptr noundef, i32 noundef, ptr noundef nonnull align 8 dereferenceable(304), ptr, i32, i1 noundef zeroext) local_unnamed_addr #6

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { ptr, i32 } @_ZNK4dali10TensorListINS_10CPUBackendEE5orderEv(ptr noundef nonnull align 8 dereferenceable(304)) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN4dali14CopyToExternalINS_10GPUBackendEEEvPvNS_2mm14memory_kind_idERKNS_10TensorListIT_EENS_11AccessOrderEb(ptr noundef, i32 noundef, ptr noundef nonnull align 8 dereferenceable(304), ptr, i32, i1 noundef zeroext) local_unnamed_addr #6

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { ptr, i32 } @_ZNK4dali10TensorListINS_10GPUBackendEE5orderEv(ptr noundef nonnull align 8 dereferenceable(304)) local_unnamed_addr #3 align 2

declare void @_ZNK4dali11AccessOrder4waitERKS0_(ptr noundef nonnull align 8 dereferenceable(12), ptr noundef nonnull align 8 dereferenceable(12)) local_unnamed_addr #5

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = { 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 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 = { "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 = { 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 = !{i64 0, i64 8, !5, i64 8, i64 4, !10}
!10 = !{!11, !11, i64 0}
!11 = !{!"int", !7, i64 0}


; Effective O3 passes: DSEPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass