; LLVM IR from NVIDIA/DALI :: dali/operators/reader/loader (numpy_loader_gpu)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.dali::numpy::HeaderData" = type { %"struct.dali::TensorShape", ptr, i8, i64 }
%"struct.dali::TensorShape" = type { %"struct.dali::TensorShapeBase" }
%"struct.dali::TensorShapeBase" = type { %"class.dali::SmallVector" }
%"class.dali::SmallVector" = type { %union.anon.3, i64 }
%union.anon.3 = type { %struct.anon, [32 x i8] }
%struct.anon = 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::allocator.0" = type { i8 }
%"struct.dali::NumpyFileWrapperGPU" = type <{ %"class.std::__cxx11::basic_string", i8, [7 x i8], i64, %"struct.dali::TensorShape", i32, [4 x i8], %"class.dali::DALIMeta", i32, [4 x i8], %"class.std::unique_ptr", i8, [7 x i8] }>
%"class.dali::DALIMeta" = type <{ %"class.dali::TensorLayout", %"class.std::__cxx11::basic_string", i8, [7 x i8] }>
%"class.dali::TensorLayout" = type { [16 x i8] }
%"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.5" }
%"struct.std::_Head_base.5" = type { ptr }

@_ZTISt13runtime_error = external constant ptr
@.str.33 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [100 x i8], align 1
@_ZTIN4dali13DALIExceptionE = external dso_local constant { ptr, ptr, ptr }, align 8

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4dali19NumpyFileWrapperGPU10ReadHeaderERNS_6detail16NumpyHeaderCacheE(ptr noundef nonnull align 8 dereferenceable(185) %0, ptr noundef nonnull align 8 dereferenceable(96) %1) #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca %"class.dali::numpy::HeaderData", align 8
  %6 = alloca i8, align 1
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca %"class.std::__cxx11::basic_string", align 8
  %11 = alloca ptr, align 8
  %12 = alloca %"class.std::__cxx11::basic_string", align 8
  %13 = alloca %"class.std::allocator.0", align 1
  %14 = alloca %"class.std::__cxx11::basic_string", align 8
  %15 = alloca i1, align 1
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %16 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 80, ptr %5) #8
  call void @_ZN4dali5numpy10HeaderDataC2Ev(ptr noundef nonnull align 8 dereferenceable(80) %5)
  call void @llvm.lifetime.start.p0(i64 1, ptr %6) #8
  %17 = load ptr, ptr %4, align 8, !tbaa !5
  %18 = getelementptr inbounds %"struct.dali::NumpyFileWrapperGPU", ptr %16, i32 0, i32 0
  %19 = invoke noundef zeroext i1 @_ZN4dali6detail16NumpyHeaderCache12GetFromCacheERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERNS_5numpy10HeaderDataE(ptr noundef nonnull align 8 dereferenceable(96) %17, ptr noundef nonnull align 8 dereferenceable(32) %18, ptr noundef nonnull align 8 dereferenceable(80) %5)
          to label %20 unwind label %31

20:                                               ; preds = %2
  %21 = zext i1 %19 to i8
  store i8 %21, ptr %6, align 1, !tbaa !9
  %22 = load i8, ptr %6, align 1, !tbaa !9, !range !11, !noundef !12
  %23 = trunc i8 %22 to i1
  br i1 %23, label %57, label %24

24:                                               ; preds = %20
  %25 = getelementptr inbounds %"struct.dali::NumpyFileWrapperGPU", ptr %16, i32 0, i32 10
  %26 = call noundef ptr @_ZNKSt10unique_ptrIN4dali12CUFileStreamESt14default_deleteIS1_EE3getEv(ptr noundef nonnull align 8 dereferenceable(8) %25) #8
  invoke void @_ZN4dali5numpy11ParseHeaderERNS0_10HeaderDataEPNS_11InputStreamE(ptr noundef nonnull align 8 dereferenceable(80) %5, ptr noundef %26)
          to label %27 unwind label %35

27:                                               ; preds = %24
  %28 = load ptr, ptr %4, align 8, !tbaa !5
  %29 = getelementptr inbounds %"struct.dali::NumpyFileWrapperGPU", ptr %16, i32 0, i32 0
  invoke void @_ZN4dali6detail16NumpyHeaderCache11UpdateCacheERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS_5numpy10HeaderDataE(ptr noundef nonnull align 8 dereferenceable(96) %28, ptr noundef nonnull align 8 dereferenceable(32) %29, ptr noundef nonnull align 8 dereferenceable(80) %5)
          to label %30 unwind label %35

30:                                               ; preds = %27
  br label %57

31:                                               ; preds = %91, %89, %81, %2
  %32 = landingpad { ptr, i32 }
          cleanup
  %33 = extractvalue { ptr, i32 } %32, 0
  store ptr %33, ptr %7, align 8
  %34 = extractvalue { ptr, i32 } %32, 1
  store i32 %34, ptr %8, align 4
  br label %105

35:                                               ; preds = %27, %24
  %36 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt13runtime_error
  %37 = extractvalue { ptr, i32 } %36, 0
  store ptr %37, ptr %7, align 8
  %38 = extractvalue { ptr, i32 } %36, 1
  store i32 %38, ptr %8, align 4
  br label %39

39:                                               ; preds = %35
  %40 = load i32, ptr %8, align 4
  %41 = call i32 @llvm.eh.typeid.for.p0(ptr @_ZTISt13runtime_error) #8
  %42 = icmp eq i32 %40, %41
  br i1 %42, label %43, label %105

43:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #8
  %44 = load ptr, ptr %7, align 8
  %45 = call ptr @__cxa_begin_catch(ptr %44) #8
  store ptr %45, ptr %9, align 8
  store i1 true, ptr %15, align 1
  %46 = call ptr @__cxa_allocate_exception(i64 80) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr %10) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #8
  %47 = load ptr, ptr %9, align 8, !tbaa !5
  %48 = load ptr, ptr %47, align 8, !tbaa !13
  %49 = getelementptr inbounds ptr, ptr %48, i64 2
  %50 = load ptr, ptr %49, align 8
  %51 = call noundef ptr %50(ptr noundef nonnull align 8 dereferenceable(16) %47) #8
  store ptr %51, ptr %11, align 8, !tbaa !5
  %52 = getelementptr inbounds %"struct.dali::NumpyFileWrapperGPU", ptr %16, i32 0, i32 0
  invoke void @_ZN4dali11make_stringIJPKcA9_cNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEES9_DpRKT_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %10, ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 1 dereferenceable(9) @.str.33, ptr noundef nonnull align 8 dereferenceable(32) %52)
          to label %53 unwind label %58

53:                                               ; preds = %43
  call void @llvm.lifetime.start.p0(i64 1, ptr %13) #8
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #8
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %12, ptr noundef @.str.34, ptr noundef nonnull align 1 dereferenceable(1) %13)
          to label %54 unwind label %62

54:                                               ; preds = %53
  call void @llvm.lifetime.start.p0(i64 32, ptr %14) #8
  invoke void @_ZN4dali13GetStacktraceB5cxx11Ev(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %14)
          to label %55 unwind label %66

55:                                               ; preds = %54
  invoke void @_ZN4dali13DALIExceptionC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES6_S8_(ptr noundef nonnull align 8 dereferenceable(80) %46, ptr noundef nonnull align 8 dereferenceable(32) %10, ptr noundef %12, ptr noundef nonnull align 8 dereferenceable(32) %14)
          to label %56 unwind label %70

56:                                               ; preds = %55
  store i1 false, ptr %15, align 1
  invoke void @__cxa_throw(ptr %46, ptr @_ZTIN4dali13DALIExceptionE, ptr @_ZN4dali13DALIExceptionD2Ev) #9
          to label %114 unwind label %70

57:                                               ; preds = %30, %20
  br label %81

58:                                               ; preds = %43
  %59 = landingpad { ptr, i32 }
          cleanup
  %60 = extractvalue { ptr, i32 } %59, 0
  store ptr %60, ptr %7, align 8
  %61 = extractvalue { ptr, i32 } %59, 1
  store i32 %61, ptr %8, align 4
  br label %76

62:                                               ; preds = %53
  %63 = landingpad { ptr, i32 }
          cleanup
  %64 = extractvalue { ptr, i32 } %63, 0
  store ptr %64, ptr %7, align 8
  %65 = extractvalue { ptr, i32 } %63, 1
  store i32 %65, ptr %8, align 4
  br label %75

66:                                               ; preds = %54
  %67 = landingpad { ptr, i32 }
          cleanup
  %68 = extractvalue { ptr, i32 } %67, 0
  store ptr %68, ptr %7, align 8
  %69 = extractvalue { ptr, i32 } %67, 1
  store i32 %69, ptr %8, align 4
  br label %74

70:                                               ; preds = %56, %55
  %71 = landingpad { ptr, i32 }
          cleanup
  %72 = extractvalue { ptr, i32 } %71, 0
  store ptr %72, ptr %7, align 8
  %73 = extractvalue { ptr, i32 } %71, 1
  store i32 %73, ptr %8, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #8
  br label %74

74:                                               ; preds = %70, %66
  call void @llvm.lifetime.end.p0(i64 32, ptr %14) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #8
  br label %75

75:                                               ; preds = %74, %62
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #8
  br label %76

76:                                               ; preds = %75, %58
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %10) #8
  %77 = load i1, ptr %15, align 1
  br i1 %77, label %78, label %79

78:                                               ; preds = %76
  call void @__cxa_free_exception(ptr %46) #8
  br label %79

79:                                               ; preds = %78, %76
  invoke void @__cxa_end_catch()
          to label %80 unwind label %111

80:                                               ; preds = %79
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #8
  br label %105

81:                                               ; preds = %57
  %82 = getelementptr inbounds %"struct.dali::NumpyFileWrapperGPU", ptr %16, i32 0, i32 10
  %83 = call noundef ptr @_ZNKSt10unique_ptrIN4dali12CUFileStreamESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %82) #8
  %84 = getelementptr inbounds %"class.dali::numpy::HeaderData", ptr %5, i32 0, i32 3
  %85 = load i64, ptr %84, align 8, !tbaa !15
  %86 = load ptr, ptr %83, align 8, !tbaa !13
  %87 = getelementptr inbounds ptr, ptr %86, i64 3
  %88 = load ptr, ptr %87, align 8
  invoke void %88(ptr noundef nonnull align 8 dereferenceable(8) %83, i64 noundef %85, i32 noundef 0)
          to label %89 unwind label %31

89:                                               ; preds = %81
  %90 = invoke noundef i32 @_ZNK4dali5numpy10HeaderData4typeEv(ptr noundef nonnull align 8 dereferenceable(80) %5)
          to label %91 unwind label %31

91:                                               ; preds = %89
  %92 = getelementptr inbounds %"struct.dali::NumpyFileWrapperGPU", ptr %16, i32 0, i32 5
  store i32 %90, ptr %92, align 8, !tbaa !21
  %93 = getelementptr inbounds %"class.dali::numpy::HeaderData", ptr %5, i32 0, i32 0
  %94 = getelementptr inbounds %"struct.dali::NumpyFileWrapperGPU", ptr %16, i32 0, i32 4
  %95 = invoke noundef nonnull align 8 dereferenceable(56) ptr @_ZN4dali11TensorShapeILin1EEaSERKS1_(ptr noundef nonnull align 8 dereferenceable(56) %94, ptr noundef nonnull align 8 dereferenceable(56) %93)
          to label %96 unwind label %31

96:                                               ; preds = %91
  %97 = getelementptr inbounds %"class.dali::numpy::HeaderData", ptr %5, i32 0, i32 2
  %98 = load i8, ptr %97, align 8, !tbaa !35, !range !11, !noundef !12
  %99 = trunc i8 %98 to i1
  %100 = getelementptr inbounds %"struct.dali::NumpyFileWrapperGPU", ptr %16, i32 0, i32 1
  %101 = zext i1 %99 to i8
  store i8 %101, ptr %100, align 8, !tbaa !36
  %102 = getelementptr inbounds %"class.dali::numpy::HeaderData", ptr %5, i32 0, i32 3
  %103 = load i64, ptr %102, align 8, !tbaa !15
  %104 = getelementptr inbounds %"struct.dali::NumpyFileWrapperGPU", ptr %16, i32 0, i32 3
  store i64 %103, ptr %104, align 8, !tbaa !37
  call void @llvm.lifetime.end.p0(i64 1, ptr %6) #8
  call void @_ZN4dali5numpy10HeaderDataD2Ev(ptr noundef nonnull align 8 dereferenceable(80) %5) #8
  call void @llvm.lifetime.end.p0(i64 80, ptr %5) #8
  ret void

105:                                              ; preds = %80, %39, %31
  call void @llvm.lifetime.end.p0(i64 1, ptr %6) #8
  call void @_ZN4dali5numpy10HeaderDataD2Ev(ptr noundef nonnull align 8 dereferenceable(80) %5) #8
  call void @llvm.lifetime.end.p0(i64 80, ptr %5) #8
  br label %106

106:                                              ; preds = %105
  %107 = load ptr, ptr %7, align 8
  %108 = load i32, ptr %8, align 4
  %109 = insertvalue { ptr, i32 } poison, ptr %107, 0
  %110 = insertvalue { ptr, i32 } %109, i32 %108, 1
  resume { ptr, i32 } %110

111:                                              ; preds = %79
  %112 = landingpad { ptr, i32 }
          catch ptr null
  %113 = extractvalue { ptr, i32 } %112, 0
  call void @__clang_call_terminate(ptr %113) #10
  unreachable

114:                                              ; preds = %56
  unreachable
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN4dali5numpy10HeaderDataC2Ev(ptr noundef nonnull align 8 dereferenceable(80)) unnamed_addr #3 align 2

declare noundef zeroext i1 @_ZN4dali6detail16NumpyHeaderCache12GetFromCacheERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERNS_5numpy10HeaderDataE(ptr noundef nonnull align 8 dereferenceable(96), ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(80)) #4

declare void @_ZN4dali5numpy11ParseHeaderERNS0_10HeaderDataEPNS_11InputStreamE(ptr noundef nonnull align 8 dereferenceable(80), ptr noundef) #4

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

declare void @_ZN4dali6detail16NumpyHeaderCache11UpdateCacheERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS_5numpy10HeaderDataE(ptr noundef nonnull align 8 dereferenceable(96), ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(80)) #4

; Function Attrs: nounwind memory(none)
declare i32 @llvm.eh.typeid.for.p0(ptr) #5

declare ptr @__cxa_begin_catch(ptr)

declare ptr @__cxa_allocate_exception(i64)

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN4dali13GetStacktraceB5cxx11Ev(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8) #3

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN4dali13DALIExceptionD2Ev(ptr noundef nonnull align 8 dereferenceable(80)) unnamed_addr #6 align 2

declare void @__cxa_throw(ptr, ptr, ptr)

declare void @__cxa_free_exception(ptr)

declare void @__cxa_end_catch()

; Function Attrs: noinline noreturn nounwind uwtable
declare hidden void @__clang_call_terminate(ptr noundef) #7

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

declare noundef i32 @_ZNK4dali5numpy10HeaderData4typeEv(ptr noundef nonnull align 8 dereferenceable(80)) #4

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN4dali5numpy10HeaderDataD2Ev(ptr noundef nonnull align 8 dereferenceable(80)) unnamed_addr #6 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) 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 = { "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 memory(none) }
attributes #6 = { 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 #7 = { noinline noreturn nounwind uwtable "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, !10, i64 0}
!10 = !{!"bool", !7, i64 0}
!11 = !{i8 0, i8 2}
!12 = !{}
!13 = !{!14, !14, i64 0}
!14 = !{!"vtable pointer", !8, i64 0}
!15 = !{!16, !20, i64 72}
!16 = !{!"_ZTSN4dali5numpy10HeaderDataE", !17, i64 0, !6, i64 56, !10, i64 64, !20, i64 72}
!17 = !{!"_ZTSN4dali11TensorShapeILin1EEE", !18, i64 0}
!18 = !{!"_ZTSN4dali15TensorShapeBaseINS_11SmallVectorIlLm6ESaIlEEELin1EEE", !19, i64 0}
!19 = !{!"_ZTSN4dali11SmallVectorIlLm6ESaIlEEE", !7, i64 0, !20, i64 48}
!20 = !{!"long", !7, i64 0}
!21 = !{!22, !25, i64 104}
!22 = !{!"_ZTSN4dali19NumpyFileWrapperGPUE", !23, i64 0, !10, i64 32, !20, i64 40, !17, i64 48, !25, i64 104, !26, i64 112, !28, i64 168, !29, i64 176, !10, i64 184}
!23 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !24, i64 0, !20, i64 8, !7, i64 16}
!24 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!25 = !{!"_ZTS13_DALIDataType", !7, i64 0}
!26 = !{!"_ZTSN4dali8DALIMetaE", !27, i64 0, !23, i64 16, !10, i64 48}
!27 = !{!"_ZTSN4dali12TensorLayoutE", !7, i64 0}
!28 = !{!"int", !7, i64 0}
!29 = !{!"_ZTSSt10unique_ptrIN4dali12CUFileStreamESt14default_deleteIS1_EE", !30, i64 0}
!30 = !{!"_ZTSSt15__uniq_ptr_dataIN4dali12CUFileStreamESt14default_deleteIS1_ELb1ELb1EE", !31, i64 0}
!31 = !{!"_ZTSSt15__uniq_ptr_implIN4dali12CUFileStreamESt14default_deleteIS1_EE", !32, i64 0}
!32 = !{!"_ZTSSt5tupleIJPN4dali12CUFileStreamESt14default_deleteIS1_EEE", !33, i64 0}
!33 = !{!"_ZTSSt11_Tuple_implILm0EJPN4dali12CUFileStreamESt14default_deleteIS1_EEE", !34, i64 0}
!34 = !{!"_ZTSSt10_Head_baseILm0EPN4dali12CUFileStreamELb0EE", !6, i64 0}
!35 = !{!16, !10, i64 64}
!36 = !{!22, !10, i64 32}
!37 = !{!22, !20, i64 40}


; 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.dali::numpy::HeaderData" = type { %"struct.dali::TensorShape", ptr, i8, i64 }
%"struct.dali::TensorShape" = type { %"struct.dali::TensorShapeBase" }
%"struct.dali::TensorShapeBase" = type { %"class.dali::SmallVector" }
%"class.dali::SmallVector" = type { %union.anon.3, i64 }
%union.anon.3 = type { %struct.anon, [32 x i8] }
%struct.anon = 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::allocator.0" = type { i8 }

@_ZTISt13runtime_error = external constant ptr
@.str.33 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [100 x i8], align 1
@_ZTIN4dali13DALIExceptionE = external dso_local constant { ptr, ptr, ptr }, align 8

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4dali19NumpyFileWrapperGPU10ReadHeaderERNS_6detail16NumpyHeaderCacheE(ptr noundef nonnull align 8 dereferenceable(185) %0, ptr noundef nonnull align 8 dereferenceable(96) %1) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.dali::numpy::HeaderData", align 8
  %4 = alloca %"class.std::__cxx11::basic_string", align 8
  %5 = alloca ptr, align 8
  %6 = alloca %"class.std::__cxx11::basic_string", align 8
  %7 = alloca %"class.std::allocator.0", align 1
  %8 = alloca %"class.std::__cxx11::basic_string", align 8
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %3) #8
  call void @_ZN4dali5numpy10HeaderDataC2Ev(ptr noundef nonnull align 8 dereferenceable(80) %3)
  %9 = invoke noundef zeroext i1 @_ZN4dali6detail16NumpyHeaderCache12GetFromCacheERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERNS_5numpy10HeaderDataE(ptr noundef nonnull align 8 dereferenceable(96) %1, ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull align 8 dereferenceable(80) %3)
          to label %10 unwind label %15

10:                                               ; preds = %2
  br i1 %9, label %45, label %11

11:                                               ; preds = %10
  %12 = getelementptr inbounds i8, ptr %0, i64 176
  %13 = call noundef ptr @_ZNKSt10unique_ptrIN4dali12CUFileStreamESt14default_deleteIS1_EE3getEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #8
  invoke void @_ZN4dali5numpy11ParseHeaderERNS0_10HeaderDataEPNS_11InputStreamE(ptr noundef nonnull align 8 dereferenceable(80) %3, ptr noundef %13)
          to label %14 unwind label %17

14:                                               ; preds = %11
  invoke void @_ZN4dali6detail16NumpyHeaderCache11UpdateCacheERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS_5numpy10HeaderDataE(ptr noundef nonnull align 8 dereferenceable(96) %1, ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull align 8 dereferenceable(80) %3)
          to label %45 unwind label %17

15:                                               ; preds = %55, %53, %45, %2
  %16 = landingpad { ptr, i32 }
          cleanup
  br label %65

17:                                               ; preds = %14, %11
  %18 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt13runtime_error
  %19 = extractvalue { ptr, i32 } %18, 1
  %20 = call i32 @llvm.eh.typeid.for.p0(ptr nonnull @_ZTISt13runtime_error) #8
  %21 = icmp eq i32 %19, %20
  br i1 %21, label %22, label %65

22:                                               ; preds = %17
  %23 = extractvalue { ptr, i32 } %18, 0
  %24 = call ptr @__cxa_begin_catch(ptr %23) #8
  %25 = call ptr @__cxa_allocate_exception(i64 80) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #8
  %26 = load ptr, ptr %24, align 8, !tbaa !5
  %27 = getelementptr inbounds i8, ptr %26, i64 16
  %28 = load ptr, ptr %27, align 8
  %29 = call noundef ptr %28(ptr noundef nonnull align 8 dereferenceable(16) %24) #8
  store ptr %29, ptr %5, align 8, !tbaa !8
  invoke void @_ZN4dali11make_stringIJPKcA9_cNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEES9_DpRKT_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %4, ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 1 dereferenceable(9) @.str.33, ptr noundef nonnull align 8 dereferenceable(32) %0)
          to label %30 unwind label %.thread

30:                                               ; preds = %22
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %7) #8
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #8
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull @.str.34, ptr noundef nonnull align 1 dereferenceable(1) %7)
          to label %31 unwind label %35

31:                                               ; preds = %30
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #8
  invoke void @_ZN4dali13GetStacktraceB5cxx11Ev(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %8)
          to label %32 unwind label %37

32:                                               ; preds = %31
  invoke void @_ZN4dali13DALIExceptionC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES6_S8_(ptr noundef nonnull align 8 dereferenceable(80) %25, ptr noundef nonnull align 8 dereferenceable(32) %4, ptr noundef nonnull %6, ptr noundef nonnull align 8 dereferenceable(32) %8)
          to label %33 unwind label %39

33:                                               ; preds = %32
  invoke void @__cxa_throw(ptr nonnull %25, ptr nonnull @_ZTIN4dali13DALIExceptionE, ptr nonnull @_ZN4dali13DALIExceptionD2Ev) #9
          to label %69 unwind label %39

.thread:                                          ; preds = %22
  %34 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #8
  br label %43

35:                                               ; preds = %30
  %36 = landingpad { ptr, i32 }
          cleanup
  br label %42

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

39:                                               ; preds = %33, %32
  %.0 = phi i1 [ false, %33 ], [ true, %32 ]
  %40 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #8
  br label %41

41:                                               ; preds = %39, %37
  %.pn = phi { ptr, i32 } [ %40, %39 ], [ %38, %37 ]
  %.1 = phi i1 [ %.0, %39 ], [ true, %37 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #8
  br label %42

42:                                               ; preds = %35, %41
  %.pn.pn = phi { ptr, i32 } [ %.pn, %41 ], [ %36, %35 ]
  %.2 = phi i1 [ %.1, %41 ], [ true, %35 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #8
  br i1 %.2, label %43, label %44

43:                                               ; preds = %.thread, %42
  %.pn.pn.pn24 = phi { ptr, i32 } [ %34, %.thread ], [ %.pn.pn, %42 ]
  call void @__cxa_free_exception(ptr %25) #8
  br label %44

44:                                               ; preds = %43, %42
  %.pn.pn.pn23 = phi { ptr, i32 } [ %.pn.pn.pn24, %43 ], [ %.pn.pn, %42 ]
  invoke void @__cxa_end_catch()
          to label %65 unwind label %66

45:                                               ; preds = %10, %14
  %46 = getelementptr inbounds i8, ptr %0, i64 176
  %47 = call noundef ptr @_ZNKSt10unique_ptrIN4dali12CUFileStreamESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %46) #8
  %48 = getelementptr inbounds i8, ptr %3, i64 72
  %49 = load i64, ptr %48, align 8, !tbaa !11
  %50 = load ptr, ptr %47, align 8, !tbaa !5
  %51 = getelementptr inbounds i8, ptr %50, i64 24
  %52 = load ptr, ptr %51, align 8
  invoke void %52(ptr noundef nonnull align 8 dereferenceable(8) %47, i64 noundef %49, i32 noundef 0)
          to label %53 unwind label %15

53:                                               ; preds = %45
  %54 = invoke noundef i32 @_ZNK4dali5numpy10HeaderData4typeEv(ptr noundef nonnull align 8 dereferenceable(80) %3)
          to label %55 unwind label %15

55:                                               ; preds = %53
  %56 = getelementptr inbounds i8, ptr %0, i64 104
  store i32 %54, ptr %56, align 8, !tbaa !18
  %57 = getelementptr inbounds i8, ptr %0, i64 48
  %58 = invoke noundef nonnull align 8 dereferenceable(56) ptr @_ZN4dali11TensorShapeILin1EEaSERKS1_(ptr noundef nonnull align 8 dereferenceable(56) %57, ptr noundef nonnull align 8 dereferenceable(56) %3)
          to label %59 unwind label %15

59:                                               ; preds = %55
  %60 = getelementptr inbounds i8, ptr %3, i64 64
  %61 = load i8, ptr %60, align 8, !tbaa !32, !range !33, !noundef !34
  %62 = getelementptr inbounds i8, ptr %0, i64 32
  store i8 %61, ptr %62, align 8, !tbaa !35
  %63 = load i64, ptr %48, align 8, !tbaa !11
  %64 = getelementptr inbounds i8, ptr %0, i64 40
  store i64 %63, ptr %64, align 8, !tbaa !36
  call void @_ZN4dali5numpy10HeaderDataD2Ev(ptr noundef nonnull align 8 dereferenceable(80) %3) #8
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %3) #8
  ret void

65:                                               ; preds = %44, %17, %15
  %.merged = phi { ptr, i32 } [ %16, %15 ], [ %18, %17 ], [ %.pn.pn.pn23, %44 ]
  call void @_ZN4dali5numpy10HeaderDataD2Ev(ptr noundef nonnull align 8 dereferenceable(80) %3) #8
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %3) #8
  resume { ptr, i32 } %.merged

66:                                               ; preds = %44
  %67 = landingpad { ptr, i32 }
          catch ptr null
  %68 = extractvalue { ptr, i32 } %67, 0
  call void @__clang_call_terminate(ptr %68) #10
  unreachable

69:                                               ; preds = %33
  unreachable
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN4dali5numpy10HeaderDataC2Ev(ptr noundef nonnull align 8 dereferenceable(80)) unnamed_addr #3 align 2

declare noundef zeroext i1 @_ZN4dali6detail16NumpyHeaderCache12GetFromCacheERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERNS_5numpy10HeaderDataE(ptr noundef nonnull align 8 dereferenceable(96), ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(80)) local_unnamed_addr #4

declare void @_ZN4dali5numpy11ParseHeaderERNS0_10HeaderDataEPNS_11InputStreamE(ptr noundef nonnull align 8 dereferenceable(80), ptr noundef) local_unnamed_addr #4

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

declare void @_ZN4dali6detail16NumpyHeaderCache11UpdateCacheERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS_5numpy10HeaderDataE(ptr noundef nonnull align 8 dereferenceable(96), ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(80)) local_unnamed_addr #4

; Function Attrs: nofree nosync nounwind memory(none)
declare i32 @llvm.eh.typeid.for.p0(ptr) #5

declare ptr @__cxa_begin_catch(ptr) local_unnamed_addr

declare ptr @__cxa_allocate_exception(i64) local_unnamed_addr

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN4dali13GetStacktraceB5cxx11Ev(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8) local_unnamed_addr #3

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN4dali13DALIExceptionD2Ev(ptr noundef nonnull align 8 dereferenceable(80)) unnamed_addr #6 align 2

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

declare void @__cxa_free_exception(ptr) local_unnamed_addr

declare void @__cxa_end_catch() local_unnamed_addr

; Function Attrs: noinline noreturn nounwind uwtable
declare hidden void @__clang_call_terminate(ptr noundef) local_unnamed_addr #7

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

declare noundef i32 @_ZNK4dali5numpy10HeaderData4typeEv(ptr noundef nonnull align 8 dereferenceable(80)) local_unnamed_addr #4

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN4dali5numpy10HeaderDataD2Ev(ptr noundef nonnull align 8 dereferenceable(80)) unnamed_addr #6 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) 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 = { "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 = { nofree nosync nounwind memory(none) }
attributes #6 = { 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 #7 = { noinline noreturn nounwind uwtable "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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"any pointer", !10, i64 0}
!10 = !{!"omnipotent char", !7, i64 0}
!11 = !{!12, !16, i64 72}
!12 = !{!"_ZTSN4dali5numpy10HeaderDataE", !13, i64 0, !9, i64 56, !17, i64 64, !16, i64 72}
!13 = !{!"_ZTSN4dali11TensorShapeILin1EEE", !14, i64 0}
!14 = !{!"_ZTSN4dali15TensorShapeBaseINS_11SmallVectorIlLm6ESaIlEEELin1EEE", !15, i64 0}
!15 = !{!"_ZTSN4dali11SmallVectorIlLm6ESaIlEEE", !10, i64 0, !16, i64 48}
!16 = !{!"long", !10, i64 0}
!17 = !{!"bool", !10, i64 0}
!18 = !{!19, !22, i64 104}
!19 = !{!"_ZTSN4dali19NumpyFileWrapperGPUE", !20, i64 0, !17, i64 32, !16, i64 40, !13, i64 48, !22, i64 104, !23, i64 112, !25, i64 168, !26, i64 176, !17, i64 184}
!20 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !21, i64 0, !16, i64 8, !10, i64 16}
!21 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !9, i64 0}
!22 = !{!"_ZTS13_DALIDataType", !10, i64 0}
!23 = !{!"_ZTSN4dali8DALIMetaE", !24, i64 0, !20, i64 16, !17, i64 48}
!24 = !{!"_ZTSN4dali12TensorLayoutE", !10, i64 0}
!25 = !{!"int", !10, i64 0}
!26 = !{!"_ZTSSt10unique_ptrIN4dali12CUFileStreamESt14default_deleteIS1_EE", !27, i64 0}
!27 = !{!"_ZTSSt15__uniq_ptr_dataIN4dali12CUFileStreamESt14default_deleteIS1_ELb1ELb1EE", !28, i64 0}
!28 = !{!"_ZTSSt15__uniq_ptr_implIN4dali12CUFileStreamESt14default_deleteIS1_EE", !29, i64 0}
!29 = !{!"_ZTSSt5tupleIJPN4dali12CUFileStreamESt14default_deleteIS1_EEE", !30, i64 0}
!30 = !{!"_ZTSSt11_Tuple_implILm0EJPN4dali12CUFileStreamESt14default_deleteIS1_EEE", !31, i64 0}
!31 = !{!"_ZTSSt10_Head_baseILm0EPN4dali12CUFileStreamELb0EE", !9, i64 0}
!32 = !{!12, !17, i64 64}
!33 = !{i8 0, i8 2}
!34 = !{}
!35 = !{!19, !17, i64 32}
!36 = !{!19, !16, i64 40}


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