; LLVM IR from NVIDIA/DALI :: dali/operators/decoder/cache (image_cache_largest)

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

%"class.std::unique_lock" = type <{ ptr, i8, [7 x i8] }>
%"struct.std::__detail::_Node_iterator" = type { %"struct.std::__detail::_Node_iterator_base" }
%"struct.std::__detail::_Node_iterator_base" = type { ptr }
%"struct.std::pair" = type <{ %"struct.std::__detail::_Node_iterator", i8, [7 x i8] }>
%"struct.std::pair.37" = type { i64, %"class.std::__cxx11::basic_string" }
%"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::stack" = type { %"class.std::deque" }
%"class.std::deque" = type { %"class.std::_Deque_base" }
%"class.std::_Deque_base" = type { %"struct.std::_Deque_base<std::pair<unsigned long, std::__cxx11::basic_string<char>>, std::allocator<std::pair<unsigned long, std::__cxx11::basic_string<char>>>>::_Deque_impl" }
%"struct.std::_Deque_base<std::pair<unsigned long, std::__cxx11::basic_string<char>>, std::allocator<std::pair<unsigned long, std::__cxx11::basic_string<char>>>>::_Deque_impl" = type { %"struct.std::_Deque_base<std::pair<unsigned long, std::__cxx11::basic_string<char>>, std::allocator<std::pair<unsigned long, std::__cxx11::basic_string<char>>>>::_Deque_impl_data" }
%"struct.std::_Deque_base<std::pair<unsigned long, std::__cxx11::basic_string<char>>, std::allocator<std::pair<unsigned long, std::__cxx11::basic_string<char>>>>::_Deque_impl_data" = type { ptr, i64, %"struct.std::_Deque_iterator", %"struct.std::_Deque_iterator" }
%"struct.std::_Deque_iterator" = type { ptr, ptr, ptr, ptr }
%"class.dali::ImageCacheBlob" = type { %"class.dali::ImageCache", i64, i64, i8, %"class.std::unique_ptr", ptr, ptr, %"class.std::unordered_map", %"class.std::mutex", %"class.std::unordered_map.4", i8, i64, ptr, ptr, ptr }
%"class.dali::ImageCache" = type { ptr }
%"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::_Tuple_impl.0", %"struct.std::_Head_base.1" }
%"struct.std::_Tuple_impl.0" = type { %"struct.std::_Head_base" }
%"struct.std::_Head_base" = type { %"struct.dali::mm::Deleter" }
%"struct.dali::mm::Deleter" = type { ptr, i64, i64, ptr }
%"struct.std::_Head_base.1" = type { ptr }
%"class.std::unordered_map" = type { %"class.std::_Hashtable" }
%"class.std::_Hashtable" = 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::mutex" = type { %"class.std::__mutex_base" }
%"class.std::__mutex_base" = type { %union.pthread_mutex_t }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%"class.std::unordered_map.4" = type { %"class.std::_Hashtable.5" }
%"class.std::_Hashtable.5" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"class.dali::ImageCacheLargest" = type { %"class.dali::ImageCacheBlob", %"class.std::priority_queue", %"class.std::unordered_set", i8, i64 }
%"class.std::priority_queue" = type <{ %"class.std::vector", [8 x i8] }>
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::pair<unsigned long, std::__cxx11::basic_string<char>>, std::allocator<std::pair<unsigned long, std::__cxx11::basic_string<char>>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<unsigned long, std::__cxx11::basic_string<char>>, std::allocator<std::pair<unsigned long, std::__cxx11::basic_string<char>>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<unsigned long, std::__cxx11::basic_string<char>>, std::allocator<std::pair<unsigned long, std::__cxx11::basic_string<char>>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<unsigned long, std::__cxx11::basic_string<char>>, std::allocator<std::pair<unsigned long, std::__cxx11::basic_string<char>>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::unordered_set" = type { %"class.std::_Hashtable.21" }
%"class.std::_Hashtable.21" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4dali17ImageCacheLargest3AddERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKhRKNS_11TensorShapeILi3EEEP11CUstream_st(ptr noundef nonnull align 8 dereferenceable(384) %0, ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef %2, ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef %4) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i64, align 8
  %12 = alloca %"class.std::unique_lock", align 8
  %13 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %17 = alloca %"struct.std::pair", align 8
  %18 = alloca %"struct.std::pair", align 8
  %19 = alloca i8, align 1
  %20 = alloca %"struct.std::pair.37", align 8
  %21 = alloca %"class.std::stack", align 8
  %22 = alloca %"struct.std::pair.37", align 8
  %23 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %24 = alloca %"struct.std::__detail::_Node_iterator", align 8
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  store ptr %3, ptr %9, align 8, !tbaa !5
  store ptr %4, ptr %10, align 8, !tbaa !5
  %25 = load ptr, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  %26 = load ptr, ptr %9, align 8, !tbaa !5
  %27 = call noundef i64 @_ZN4dali6volumeINS_11TensorShapeILi3EEEEEDTcl6volumeclsr4daliE5beginfp_Eclsr4daliE3endfp_EEERKT_(ptr noundef nonnull align 8 dereferenceable(24) %26)
  store i64 %27, ptr %11, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #6
  %28 = getelementptr inbounds %"class.dali::ImageCacheBlob", ptr %25, i32 0, i32 8
  call void @_ZNSt11unique_lockISt5mutexEC2ERS0_(ptr noundef nonnull align 8 dereferenceable(9) %12, ptr noundef nonnull align 8 dereferenceable(40) %28)
  %29 = getelementptr inbounds %"class.dali::ImageCacheLargest", ptr %25, i32 0, i32 3
  %30 = load i8, ptr %29, align 8, !tbaa !11, !range !42, !noundef !43
  %31 = trunc i8 %30 to i1
  br i1 %31, label %245, label %32

32:                                               ; preds = %5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  %33 = getelementptr inbounds %"class.dali::ImageCacheLargest", ptr %25, i32 0, i32 2
  %34 = load ptr, ptr %7, align 8, !tbaa !5
  %35 = invoke ptr @_ZNSt13unordered_setINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4hashIS5_ESt8equal_toIS5_ESaIS5_EE4findERKS5_(ptr noundef nonnull align 8 dereferenceable(56) %33, ptr noundef nonnull align 8 dereferenceable(32) %34)
          to label %36 unwind label %73

36:                                               ; preds = %32
  %37 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %13, i32 0, i32 0
  %38 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %37, i32 0, i32 0
  store ptr %35, ptr %38, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  %39 = getelementptr inbounds %"class.dali::ImageCacheLargest", ptr %25, i32 0, i32 2
  %40 = call ptr @_ZNSt13unordered_setINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4hashIS5_ESt8equal_toIS5_ESaIS5_EE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %39) #6
  %41 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %16, i32 0, i32 0
  %42 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %41, i32 0, i32 0
  store ptr %40, ptr %42, align 8
  %43 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEELb1EEES9_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %16) #6
  %44 = getelementptr inbounds %"class.dali::ImageCacheLargest", ptr %25, i32 0, i32 3
  %45 = zext i1 %43 to i8
  store i8 %45, ptr %44, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  %46 = getelementptr inbounds %"class.dali::ImageCacheLargest", ptr %25, i32 0, i32 3
  %47 = load i8, ptr %46, align 8, !tbaa !11, !range !42, !noundef !43
  %48 = trunc i8 %47 to i1
  br i1 %48, label %49, label %82

49:                                               ; preds = %36
  %50 = getelementptr inbounds %"class.dali::ImageCacheLargest", ptr %25, i32 0, i32 2
  %51 = call noundef i64 @_ZNKSt13unordered_setINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4hashIS5_ESt8equal_toIS5_ESaIS5_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(56) %50) #6
  %52 = getelementptr inbounds %"class.dali::ImageCacheBlob", ptr %25, i32 0, i32 11
  store i64 %51, ptr %52, align 8, !tbaa !44
  %53 = getelementptr inbounds %"class.dali::ImageCacheLargest", ptr %25, i32 0, i32 2
  call void @_ZNSt13unordered_setINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4hashIS5_ESt8equal_toIS5_ESaIS5_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(56) %53) #6
  br label %54

54:                                               ; preds = %72, %49
  %55 = getelementptr inbounds %"class.dali::ImageCacheLargest", ptr %25, i32 0, i32 1
  %56 = invoke noundef zeroext i1 @_ZNKSt14priority_queueISt4pairImNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEESt6vectorIS7_SaIS7_EESt7greaterIS7_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(25) %55)
          to label %57 unwind label %77

57:                                               ; preds = %54
  %58 = xor i1 %56, true
  br i1 %58, label %59, label %81

59:                                               ; preds = %57
  %60 = getelementptr inbounds %"class.dali::ImageCacheLargest", ptr %25, i32 0, i32 2
  %61 = getelementptr inbounds %"class.dali::ImageCacheLargest", ptr %25, i32 0, i32 1
  %62 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNKSt14priority_queueISt4pairImNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEESt6vectorIS7_SaIS7_EESt7greaterIS7_EE3topEv(ptr noundef nonnull align 8 dereferenceable(25) %61)
          to label %63 unwind label %77

63:                                               ; preds = %59
  %64 = getelementptr inbounds %"struct.std::pair.37", ptr %62, i32 0, i32 1
  %65 = invoke { ptr, i8 } @_ZNSt13unordered_setINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4hashIS5_ESt8equal_toIS5_ESaIS5_EE6insertERKS5_(ptr noundef nonnull align 8 dereferenceable(56) %60, ptr noundef nonnull align 8 dereferenceable(32) %64)
          to label %66 unwind label %77

66:                                               ; preds = %63
  %67 = getelementptr inbounds { ptr, i8 }, ptr %17, i32 0, i32 0
  %68 = extractvalue { ptr, i8 } %65, 0
  store ptr %68, ptr %67, align 8
  %69 = getelementptr inbounds { ptr, i8 }, ptr %17, i32 0, i32 1
  %70 = extractvalue { ptr, i8 } %65, 1
  store i8 %70, ptr %69, align 8
  %71 = getelementptr inbounds %"class.dali::ImageCacheLargest", ptr %25, i32 0, i32 1
  invoke void @_ZNSt14priority_queueISt4pairImNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEESt6vectorIS7_SaIS7_EESt7greaterIS7_EE3popEv(ptr noundef nonnull align 8 dereferenceable(25) %71)
          to label %72 unwind label %77

72:                                               ; preds = %66
  br label %54, !llvm.loop !45

73:                                               ; preds = %32
  %74 = landingpad { ptr, i32 }
          cleanup
  %75 = extractvalue { ptr, i32 } %74, 0
  store ptr %75, ptr %14, align 8
  %76 = extractvalue { ptr, i32 } %74, 1
  store i32 %76, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  br label %275

77:                                               ; preds = %264, %245, %82, %66, %63, %59, %54
  %78 = landingpad { ptr, i32 }
          cleanup
  %79 = extractvalue { ptr, i32 } %78, 0
  store ptr %79, ptr %14, align 8
  %80 = extractvalue { ptr, i32 } %78, 1
  store i32 %80, ptr %15, align 4
  br label %275

81:                                               ; preds = %57
  br label %244

82:                                               ; preds = %36
  %83 = getelementptr inbounds %"class.dali::ImageCacheLargest", ptr %25, i32 0, i32 2
  %84 = load ptr, ptr %7, align 8, !tbaa !5
  %85 = invoke { ptr, i8 } @_ZNSt13unordered_setINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4hashIS5_ESt8equal_toIS5_ESaIS5_EE6insertERKS5_(ptr noundef nonnull align 8 dereferenceable(56) %83, ptr noundef nonnull align 8 dereferenceable(32) %84)
          to label %86 unwind label %77

86:                                               ; preds = %82
  %87 = getelementptr inbounds { ptr, i8 }, ptr %18, i32 0, i32 0
  %88 = extractvalue { ptr, i8 } %85, 0
  store ptr %88, ptr %87, align 8
  %89 = getelementptr inbounds { ptr, i8 }, ptr %18, i32 0, i32 1
  %90 = extractvalue { ptr, i8 } %85, 1
  store i8 %90, ptr %89, align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr %19) #6
  %91 = getelementptr inbounds %"class.dali::ImageCacheLargest", ptr %25, i32 0, i32 4
  %92 = load i64, ptr %91, align 8, !tbaa !47
  %93 = load i64, ptr %11, align 8, !tbaa !9
  %94 = add i64 %92, %93
  %95 = getelementptr inbounds %"class.dali::ImageCacheBlob", ptr %25, i32 0, i32 1
  %96 = load i64, ptr %95, align 8, !tbaa !48
  %97 = icmp ule i64 %94, %96
  %98 = zext i1 %97 to i8
  store i8 %98, ptr %19, align 1, !tbaa !49
  %99 = getelementptr inbounds %"class.dali::ImageCacheBlob", ptr %25, i32 0, i32 10
  %100 = load i8, ptr %99, align 8, !tbaa !50, !range !42, !noundef !43
  %101 = trunc i8 %100 to i1
  br i1 %101, label %106, label %102

102:                                              ; preds = %86
  %103 = load i8, ptr %19, align 1, !tbaa !49, !range !42, !noundef !43
  %104 = trunc i8 %103 to i1
  %105 = xor i1 %104, true
  br label %106

106:                                              ; preds = %102, %86
  %107 = phi i1 [ true, %86 ], [ %105, %102 ]
  %108 = getelementptr inbounds %"class.dali::ImageCacheBlob", ptr %25, i32 0, i32 10
  %109 = zext i1 %107 to i8
  store i8 %109, ptr %108, align 8, !tbaa !50
  %110 = load i8, ptr %19, align 1, !tbaa !49, !range !42, !noundef !43
  %111 = trunc i8 %110 to i1
  br i1 %111, label %112, label %130

112:                                              ; preds = %106
  %113 = getelementptr inbounds %"class.dali::ImageCacheLargest", ptr %25, i32 0, i32 1
  call void @llvm.lifetime.start.p0(i64 40, ptr %20) #6
  %114 = load ptr, ptr %7, align 8, !tbaa !5
  invoke void @_ZNSt4pairImNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEC2ImS5_TnNSt9enable_ifIXaaclsr5_PCCPE18_ConstructiblePairIT_T0_EEclsr5_PCCPE26_ImplicitlyConvertiblePairIS9_SA_EEEbE4typeELb1EEERKmRKS5_(ptr noundef nonnull align 8 dereferenceable(40) %20, ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(32) %114)
          to label %115 unwind label %121

115:                                              ; preds = %112
  invoke void @_ZNSt14priority_queueISt4pairImNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEESt6vectorIS7_SaIS7_EESt7greaterIS7_EE4pushEOS7_(ptr noundef nonnull align 8 dereferenceable(25) %113, ptr noundef nonnull align 8 dereferenceable(40) %20)
          to label %116 unwind label %125

116:                                              ; preds = %115
  call void @_ZNSt4pairImNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %20) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr %20) #6
  %117 = load i64, ptr %11, align 8, !tbaa !9
  %118 = getelementptr inbounds %"class.dali::ImageCacheLargest", ptr %25, i32 0, i32 4
  %119 = load i64, ptr %118, align 8, !tbaa !47
  %120 = add i64 %119, %117
  store i64 %120, ptr %118, align 8, !tbaa !47
  br label %242

121:                                              ; preds = %112
  %122 = landingpad { ptr, i32 }
          cleanup
  %123 = extractvalue { ptr, i32 } %122, 0
  store ptr %123, ptr %14, align 8
  %124 = extractvalue { ptr, i32 } %122, 1
  store i32 %124, ptr %15, align 4
  br label %129

125:                                              ; preds = %115
  %126 = landingpad { ptr, i32 }
          cleanup
  %127 = extractvalue { ptr, i32 } %126, 0
  store ptr %127, ptr %14, align 8
  %128 = extractvalue { ptr, i32 } %126, 1
  store i32 %128, ptr %15, align 4
  call void @_ZNSt4pairImNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %20) #6
  br label %129

129:                                              ; preds = %125, %121
  call void @llvm.lifetime.end.p0(i64 40, ptr %20) #6
  br label %243

130:                                              ; preds = %106
  %131 = load i64, ptr %11, align 8, !tbaa !9
  %132 = getelementptr inbounds %"class.dali::ImageCacheBlob", ptr %25, i32 0, i32 1
  %133 = load i64, ptr %132, align 8, !tbaa !48
  %134 = icmp ule i64 %131, %133
  br i1 %134, label %135, label %241

135:                                              ; preds = %130
  call void @llvm.lifetime.start.p0(i64 80, ptr %21) #6
  invoke void @_ZNSt5stackISt4pairImNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEESt5dequeIS7_SaIS7_EEEC2ISA_vEEv(ptr noundef nonnull align 8 dereferenceable(80) %21)
          to label %136 unwind label %174

136:                                              ; preds = %135
  br label %137

137:                                              ; preds = %173, %136
  %138 = getelementptr inbounds %"class.dali::ImageCacheLargest", ptr %25, i32 0, i32 1
  %139 = invoke noundef zeroext i1 @_ZNKSt14priority_queueISt4pairImNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEESt6vectorIS7_SaIS7_EESt7greaterIS7_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(25) %138)
          to label %140 unwind label %178

140:                                              ; preds = %137
  br i1 %139, label %157, label %141

141:                                              ; preds = %140
  %142 = getelementptr inbounds %"class.dali::ImageCacheLargest", ptr %25, i32 0, i32 4
  %143 = load i64, ptr %142, align 8, !tbaa !47
  %144 = load i64, ptr %11, align 8, !tbaa !9
  %145 = add i64 %143, %144
  %146 = getelementptr inbounds %"class.dali::ImageCacheBlob", ptr %25, i32 0, i32 1
  %147 = load i64, ptr %146, align 8, !tbaa !48
  %148 = icmp ugt i64 %145, %147
  br i1 %148, label %149, label %157

149:                                              ; preds = %141
  %150 = getelementptr inbounds %"class.dali::ImageCacheLargest", ptr %25, i32 0, i32 1
  %151 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNKSt14priority_queueISt4pairImNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEESt6vectorIS7_SaIS7_EESt7greaterIS7_EE3topEv(ptr noundef nonnull align 8 dereferenceable(25) %150)
          to label %152 unwind label %178

152:                                              ; preds = %149
  %153 = getelementptr inbounds %"struct.std::pair.37", ptr %151, i32 0, i32 0
  %154 = load i64, ptr %153, align 8, !tbaa !51
  %155 = load i64, ptr %11, align 8, !tbaa !9
  %156 = icmp ult i64 %154, %155
  br label %157

157:                                              ; preds = %152, %141, %140
  %158 = phi i1 [ false, %141 ], [ false, %140 ], [ %156, %152 ]
  br i1 %158, label %159, label %182

159:                                              ; preds = %157
  %160 = getelementptr inbounds %"class.dali::ImageCacheLargest", ptr %25, i32 0, i32 1
  %161 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNKSt14priority_queueISt4pairImNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEESt6vectorIS7_SaIS7_EESt7greaterIS7_EE3topEv(ptr noundef nonnull align 8 dereferenceable(25) %160)
          to label %162 unwind label %178

162:                                              ; preds = %159
  %163 = getelementptr inbounds %"struct.std::pair.37", ptr %161, i32 0, i32 0
  %164 = load i64, ptr %163, align 8, !tbaa !51
  %165 = getelementptr inbounds %"class.dali::ImageCacheLargest", ptr %25, i32 0, i32 4
  %166 = load i64, ptr %165, align 8, !tbaa !47
  %167 = sub i64 %166, %164
  store i64 %167, ptr %165, align 8, !tbaa !47
  %168 = getelementptr inbounds %"class.dali::ImageCacheLargest", ptr %25, i32 0, i32 1
  %169 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNKSt14priority_queueISt4pairImNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEESt6vectorIS7_SaIS7_EESt7greaterIS7_EE3topEv(ptr noundef nonnull align 8 dereferenceable(25) %168)
          to label %170 unwind label %178

170:                                              ; preds = %162
  invoke void @_ZNSt5stackISt4pairImNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEESt5dequeIS7_SaIS7_EEE4pushERKS7_(ptr noundef nonnull align 8 dereferenceable(80) %21, ptr noundef nonnull align 8 dereferenceable(40) %169)
          to label %171 unwind label %178

171:                                              ; preds = %170
  %172 = getelementptr inbounds %"class.dali::ImageCacheLargest", ptr %25, i32 0, i32 1
  invoke void @_ZNSt14priority_queueISt4pairImNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEESt6vectorIS7_SaIS7_EESt7greaterIS7_EE3popEv(ptr noundef nonnull align 8 dereferenceable(25) %172)
          to label %173 unwind label %178

173:                                              ; preds = %171
  br label %137, !llvm.loop !55

174:                                              ; preds = %135
  %175 = landingpad { ptr, i32 }
          cleanup
  %176 = extractvalue { ptr, i32 } %175, 0
  store ptr %176, ptr %14, align 8
  %177 = extractvalue { ptr, i32 } %175, 1
  store i32 %177, ptr %15, align 4
  br label %240

178:                                              ; preds = %236, %234, %226, %224, %213, %209, %171, %170, %162, %159, %149, %137
  %179 = landingpad { ptr, i32 }
          cleanup
  %180 = extractvalue { ptr, i32 } %179, 0
  store ptr %180, ptr %14, align 8
  %181 = extractvalue { ptr, i32 } %179, 1
  store i32 %181, ptr %15, align 4
  br label %239

182:                                              ; preds = %157
  %183 = getelementptr inbounds %"class.dali::ImageCacheLargest", ptr %25, i32 0, i32 4
  %184 = load i64, ptr %183, align 8, !tbaa !47
  %185 = load i64, ptr %11, align 8, !tbaa !9
  %186 = add i64 %184, %185
  %187 = getelementptr inbounds %"class.dali::ImageCacheBlob", ptr %25, i32 0, i32 1
  %188 = load i64, ptr %187, align 8, !tbaa !48
  %189 = icmp ule i64 %186, %188
  br i1 %189, label %190, label %208

190:                                              ; preds = %182
  %191 = getelementptr inbounds %"class.dali::ImageCacheLargest", ptr %25, i32 0, i32 1
  call void @llvm.lifetime.start.p0(i64 40, ptr %22) #6
  %192 = load ptr, ptr %7, align 8, !tbaa !5
  invoke void @_ZNSt4pairImNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEC2ImS5_TnNSt9enable_ifIXaaclsr5_PCCPE18_ConstructiblePairIT_T0_EEclsr5_PCCPE26_ImplicitlyConvertiblePairIS9_SA_EEEbE4typeELb1EEERKmRKS5_(ptr noundef nonnull align 8 dereferenceable(40) %22, ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(32) %192)
          to label %193 unwind label %199

193:                                              ; preds = %190
  invoke void @_ZNSt14priority_queueISt4pairImNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEESt6vectorIS7_SaIS7_EESt7greaterIS7_EE4pushEOS7_(ptr noundef nonnull align 8 dereferenceable(25) %191, ptr noundef nonnull align 8 dereferenceable(40) %22)
          to label %194 unwind label %203

194:                                              ; preds = %193
  call void @_ZNSt4pairImNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %22) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr %22) #6
  %195 = load i64, ptr %11, align 8, !tbaa !9
  %196 = getelementptr inbounds %"class.dali::ImageCacheLargest", ptr %25, i32 0, i32 4
  %197 = load i64, ptr %196, align 8, !tbaa !47
  %198 = add i64 %197, %195
  store i64 %198, ptr %196, align 8, !tbaa !47
  br label %208

199:                                              ; preds = %190
  %200 = landingpad { ptr, i32 }
          cleanup
  %201 = extractvalue { ptr, i32 } %200, 0
  store ptr %201, ptr %14, align 8
  %202 = extractvalue { ptr, i32 } %200, 1
  store i32 %202, ptr %15, align 4
  br label %207

203:                                              ; preds = %193
  %204 = landingpad { ptr, i32 }
          cleanup
  %205 = extractvalue { ptr, i32 } %204, 0
  store ptr %205, ptr %14, align 8
  %206 = extractvalue { ptr, i32 } %204, 1
  store i32 %206, ptr %15, align 4
  call void @_ZNSt4pairImNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %22) #6
  br label %207

207:                                              ; preds = %203, %199
  call void @llvm.lifetime.end.p0(i64 40, ptr %22) #6
  br label %239

208:                                              ; preds = %194, %182
  br label %209

209:                                              ; preds = %237, %208
  %210 = invoke noundef zeroext i1 @_ZNKSt5stackISt4pairImNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEESt5dequeIS7_SaIS7_EEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %21)
          to label %211 unwind label %178

211:                                              ; preds = %209
  %212 = xor i1 %210, true
  br i1 %212, label %213, label %238

213:                                              ; preds = %211
  %214 = getelementptr inbounds %"class.dali::ImageCacheLargest", ptr %25, i32 0, i32 4
  %215 = load i64, ptr %214, align 8, !tbaa !47
  %216 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt5stackISt4pairImNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEESt5dequeIS7_SaIS7_EEE3topEv(ptr noundef nonnull align 8 dereferenceable(80) %21)
          to label %217 unwind label %178

217:                                              ; preds = %213
  %218 = getelementptr inbounds %"struct.std::pair.37", ptr %216, i32 0, i32 0
  %219 = load i64, ptr %218, align 8, !tbaa !51
  %220 = add i64 %215, %219
  %221 = getelementptr inbounds %"class.dali::ImageCacheBlob", ptr %25, i32 0, i32 1
  %222 = load i64, ptr %221, align 8, !tbaa !48
  %223 = icmp ule i64 %220, %222
  br i1 %223, label %224, label %236

224:                                              ; preds = %217
  %225 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt5stackISt4pairImNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEESt5dequeIS7_SaIS7_EEE3topEv(ptr noundef nonnull align 8 dereferenceable(80) %21)
          to label %226 unwind label %178

226:                                              ; preds = %224
  %227 = getelementptr inbounds %"struct.std::pair.37", ptr %225, i32 0, i32 0
  %228 = load i64, ptr %227, align 8, !tbaa !51
  %229 = getelementptr inbounds %"class.dali::ImageCacheLargest", ptr %25, i32 0, i32 4
  %230 = load i64, ptr %229, align 8, !tbaa !47
  %231 = add i64 %230, %228
  store i64 %231, ptr %229, align 8, !tbaa !47
  %232 = getelementptr inbounds %"class.dali::ImageCacheLargest", ptr %25, i32 0, i32 1
  %233 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt5stackISt4pairImNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEESt5dequeIS7_SaIS7_EEE3topEv(ptr noundef nonnull align 8 dereferenceable(80) %21)
          to label %234 unwind label %178

234:                                              ; preds = %226
  invoke void @_ZNSt14priority_queueISt4pairImNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEESt6vectorIS7_SaIS7_EESt7greaterIS7_EE4pushEOS7_(ptr noundef nonnull align 8 dereferenceable(25) %232, ptr noundef nonnull align 8 dereferenceable(40) %233)
          to label %235 unwind label %178

235:                                              ; preds = %234
  br label %236

236:                                              ; preds = %235, %217
  invoke void @_ZNSt5stackISt4pairImNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEESt5dequeIS7_SaIS7_EEE3popEv(ptr noundef nonnull align 8 dereferenceable(80) %21)
          to label %237 unwind label %178

237:                                              ; preds = %236
  br label %209, !llvm.loop !56

238:                                              ; preds = %211
  call void @_ZNSt5stackISt4pairImNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEESt5dequeIS7_SaIS7_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %21) #6
  call void @llvm.lifetime.end.p0(i64 80, ptr %21) #6
  br label %241

239:                                              ; preds = %207, %178
  call void @_ZNSt5stackISt4pairImNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEESt5dequeIS7_SaIS7_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %21) #6
  br label %240

240:                                              ; preds = %239, %174
  call void @llvm.lifetime.end.p0(i64 80, ptr %21) #6
  br label %243

241:                                              ; preds = %238, %130
  br label %242

242:                                              ; preds = %241, %116
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #6
  br label %244

243:                                              ; preds = %240, %129
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #6
  br label %275

244:                                              ; preds = %242, %81
  br label %245

245:                                              ; preds = %244, %5
  invoke void @_ZNSt11unique_lockISt5mutexE6unlockEv(ptr noundef nonnull align 8 dereferenceable(9) %12)
          to label %246 unwind label %77

246:                                              ; preds = %245
  %247 = getelementptr inbounds %"class.dali::ImageCacheLargest", ptr %25, i32 0, i32 3
  %248 = load i8, ptr %247, align 8, !tbaa !11, !range !42, !noundef !43
  %249 = trunc i8 %248 to i1
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #6
  br i1 %249, label %250, label %262

250:                                              ; preds = %246
  %251 = getelementptr inbounds %"class.dali::ImageCacheLargest", ptr %25, i32 0, i32 2
  %252 = load ptr, ptr %7, align 8, !tbaa !5
  %253 = invoke ptr @_ZNSt13unordered_setINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4hashIS5_ESt8equal_toIS5_ESaIS5_EE4findERKS5_(ptr noundef nonnull align 8 dereferenceable(56) %251, ptr noundef nonnull align 8 dereferenceable(32) %252)
          to label %254 unwind label %270

254:                                              ; preds = %250
  %255 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %23, i32 0, i32 0
  %256 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %255, i32 0, i32 0
  store ptr %253, ptr %256, align 8
  %257 = getelementptr inbounds %"class.dali::ImageCacheLargest", ptr %25, i32 0, i32 2
  %258 = call ptr @_ZNSt13unordered_setINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4hashIS5_ESt8equal_toIS5_ESaIS5_EE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %257) #6
  %259 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %24, i32 0, i32 0
  %260 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %259, i32 0, i32 0
  store ptr %258, ptr %260, align 8
  %261 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEELb1EEES9_(ptr noundef nonnull align 8 dereferenceable(8) %23, ptr noundef nonnull align 8 dereferenceable(8) %24) #6
  br label %262

262:                                              ; preds = %254, %246
  %263 = phi i1 [ false, %246 ], [ %261, %254 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  br i1 %263, label %264, label %274

264:                                              ; preds = %262
  %265 = load ptr, ptr %7, align 8, !tbaa !5
  %266 = load ptr, ptr %8, align 8, !tbaa !5
  %267 = load ptr, ptr %9, align 8, !tbaa !5
  %268 = load ptr, ptr %10, align 8, !tbaa !5
  invoke void @_ZN4dali14ImageCacheBlob3AddERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKhRKNS_11TensorShapeILi3EEEP11CUstream_st(ptr noundef nonnull align 8 dereferenceable(280) %25, ptr noundef nonnull align 8 dereferenceable(32) %265, ptr noundef %266, ptr noundef nonnull align 8 dereferenceable(24) %267, ptr noundef %268)
          to label %269 unwind label %77

269:                                              ; preds = %264
  br label %274

270:                                              ; preds = %250
  %271 = landingpad { ptr, i32 }
          cleanup
  %272 = extractvalue { ptr, i32 } %271, 0
  store ptr %272, ptr %14, align 8
  %273 = extractvalue { ptr, i32 } %271, 1
  store i32 %273, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  br label %275

274:                                              ; preds = %269, %262
  call void @_ZNSt11unique_lockISt5mutexED2Ev(ptr noundef nonnull align 8 dereferenceable(9) %12) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  ret void

275:                                              ; preds = %270, %243, %77, %73
  call void @_ZNSt11unique_lockISt5mutexED2Ev(ptr noundef nonnull align 8 dereferenceable(9) %12) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  br label %276

276:                                              ; preds = %275
  %277 = load ptr, ptr %14, align 8
  %278 = load i32, ptr %15, align 4
  %279 = insertvalue { ptr, i32 } poison, ptr %277, 0
  %280 = insertvalue { ptr, i32 } %279, i32 %278, 1
  resume { ptr, i32 } %280
}

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt11unique_lockISt5mutexEC2ERS0_(ptr noundef nonnull align 8 dereferenceable(9), ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #0 align 2

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZNSt13unordered_setINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4hashIS5_ESt8equal_toIS5_ESaIS5_EE6insertERKS5_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(32)) #0 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt14priority_queueISt4pairImNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEESt6vectorIS7_SaIS7_EESt7greaterIS7_EE4pushEOS7_(ptr noundef nonnull align 8 dereferenceable(25), ptr noundef nonnull align 8 dereferenceable(40)) #0 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZNSt4pairImNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #4 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt5stackISt4pairImNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEESt5dequeIS7_SaIS7_EEE4pushERKS7_(ptr noundef nonnull align 8 dereferenceable(80), ptr noundef nonnull align 8 dereferenceable(40)) #0 align 2

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

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

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

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

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

declare void @_ZN4dali14ImageCacheBlob3AddERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKhRKNS_11TensorShapeILi3EEEP11CUstream_st(ptr noundef nonnull align 8 dereferenceable(280), ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef) unnamed_addr #5

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

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #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 = { 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 = !{!"long", !7, i64 0}
!11 = !{!12, !15, i64 368}
!12 = !{!"_ZTSN4dali17ImageCacheLargestE", !13, i64 0, !34, i64 280, !40, i64 312, !15, i64 368, !10, i64 376}
!13 = !{!"_ZTSN4dali14ImageCacheBlobE", !14, i64 0, !10, i64 8, !10, i64 16, !15, i64 24, !16, i64 32, !6, i64 72, !6, i64 80, !25, i64 88, !30, i64 144, !32, i64 184, !15, i64 240, !10, i64 248, !6, i64 256, !6, i64 264, !6, i64 272}
!14 = !{!"_ZTSN4dali10ImageCacheE"}
!15 = !{!"bool", !7, i64 0}
!16 = !{!"_ZTSSt10unique_ptrIhN4dali2mm7DeleterEE", !17, i64 0}
!17 = !{!"_ZTSSt15__uniq_ptr_dataIhN4dali2mm7DeleterELb1ELb1EE", !18, i64 0}
!18 = !{!"_ZTSSt15__uniq_ptr_implIhN4dali2mm7DeleterEE", !19, i64 0}
!19 = !{!"_ZTSSt5tupleIJPhN4dali2mm7DeleterEEE", !20, i64 0}
!20 = !{!"_ZTSSt11_Tuple_implILm0EJPhN4dali2mm7DeleterEEE", !21, i64 0, !24, i64 32}
!21 = !{!"_ZTSSt11_Tuple_implILm1EJN4dali2mm7DeleterEEE", !22, i64 0}
!22 = !{!"_ZTSSt10_Head_baseILm1EN4dali2mm7DeleterELb0EE", !23, i64 0}
!23 = !{!"_ZTSN4dali2mm7DeleterE", !6, i64 0, !10, i64 8, !10, i64 16, !6, i64 24}
!24 = !{!"_ZTSSt10_Head_baseILm0EPhLb0EE", !6, i64 0}
!25 = !{!"_ZTSSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN4dali10TensorViewINS6_10StorageGPUEhLi3EEESt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_S9_EEE", !26, i64 0}
!26 = !{!"_ZTSSt10_HashtableINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_N4dali10TensorViewINS8_10StorageGPUEhLi3EEEESaISC_ENSt8__detail10_Select1stESt8equal_toIS5_ESt4hashIS5_ENSE_18_Mod_range_hashingENSE_20_Default_ranged_hashENSE_20_Prime_rehash_policyENSE_17_Hashtable_traitsILb1ELb0ELb1EEEE", !6, i64 0, !10, i64 8, !27, i64 16, !10, i64 24, !28, i64 32, !6, i64 48}
!27 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !6, i64 0}
!28 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !29, i64 0, !10, i64 8}
!29 = !{!"float", !7, i64 0}
!30 = !{!"_ZTSSt5mutex", !31, i64 0}
!31 = !{!"_ZTSSt12__mutex_base", !7, i64 0}
!32 = !{!"_ZTSSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN4dali14ImageCacheBlob5StatsESt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_S8_EEE", !33, i64 0}
!33 = !{!"_ZTSSt10_HashtableINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_N4dali14ImageCacheBlob5StatsEESaISB_ENSt8__detail10_Select1stESt8equal_toIS5_ESt4hashIS5_ENSD_18_Mod_range_hashingENSD_20_Default_ranged_hashENSD_20_Prime_rehash_policyENSD_17_Hashtable_traitsILb1ELb0ELb1EEEE", !6, i64 0, !10, i64 8, !27, i64 16, !10, i64 24, !28, i64 32, !6, i64 48}
!34 = !{!"_ZTSSt14priority_queueISt4pairImNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEESt6vectorIS7_SaIS7_EESt7greaterIS7_EE", !35, i64 0, !39, i64 24}
!35 = !{!"_ZTSSt6vectorISt4pairImNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEESaIS7_EE", !36, i64 0}
!36 = !{!"_ZTSSt12_Vector_baseISt4pairImNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEESaIS7_EE", !37, i64 0}
!37 = !{!"_ZTSNSt12_Vector_baseISt4pairImNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEESaIS7_EE12_Vector_implE", !38, i64 0}
!38 = !{!"_ZTSNSt12_Vector_baseISt4pairImNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEESaIS7_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!39 = !{!"_ZTSSt7greaterISt4pairImNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEE"}
!40 = !{!"_ZTSSt13unordered_setINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4hashIS5_ESt8equal_toIS5_ESaIS5_EE", !41, i64 0}
!41 = !{!"_ZTSSt10_HashtableINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_SaIS5_ENSt8__detail9_IdentityESt8equal_toIS5_ESt4hashIS5_ENS7_18_Mod_range_hashingENS7_20_Default_ranged_hashENS7_20_Prime_rehash_policyENS7_17_Hashtable_traitsILb1ELb1ELb1EEEE", !6, i64 0, !10, i64 8, !27, i64 16, !10, i64 24, !28, i64 32, !6, i64 48}
!42 = !{i8 0, i8 2}
!43 = !{}
!44 = !{!13, !10, i64 248}
!45 = distinct !{!45, !46}
!46 = !{!"llvm.loop.mustprogress"}
!47 = !{!12, !10, i64 376}
!48 = !{!13, !10, i64 8}
!49 = !{!15, !15, i64 0}
!50 = !{!13, !15, i64 240}
!51 = !{!52, !10, i64 0}
!52 = !{!"_ZTSSt4pairImNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE", !10, i64 0, !53, i64 8}
!53 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !54, i64 0, !10, i64 8, !7, i64 16}
!54 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!55 = distinct !{!55, !46}
!56 = distinct !{!56, !46}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.std::unique_lock" = type <{ ptr, i8, [7 x i8] }>
%"struct.std::__detail::_Node_iterator" = type { %"struct.std::__detail::_Node_iterator_base" }
%"struct.std::__detail::_Node_iterator_base" = type { ptr }
%"struct.std::pair.37" = type { i64, %"class.std::__cxx11::basic_string" }
%"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::stack" = type { %"class.std::deque" }
%"class.std::deque" = type { %"class.std::_Deque_base" }
%"class.std::_Deque_base" = type { %"struct.std::_Deque_base<std::pair<unsigned long, std::__cxx11::basic_string<char>>, std::allocator<std::pair<unsigned long, std::__cxx11::basic_string<char>>>>::_Deque_impl" }
%"struct.std::_Deque_base<std::pair<unsigned long, std::__cxx11::basic_string<char>>, std::allocator<std::pair<unsigned long, std::__cxx11::basic_string<char>>>>::_Deque_impl" = type { %"struct.std::_Deque_base<std::pair<unsigned long, std::__cxx11::basic_string<char>>, std::allocator<std::pair<unsigned long, std::__cxx11::basic_string<char>>>>::_Deque_impl_data" }
%"struct.std::_Deque_base<std::pair<unsigned long, std::__cxx11::basic_string<char>>, std::allocator<std::pair<unsigned long, std::__cxx11::basic_string<char>>>>::_Deque_impl_data" = type { ptr, i64, %"struct.std::_Deque_iterator", %"struct.std::_Deque_iterator" }
%"struct.std::_Deque_iterator" = type { ptr, ptr, ptr, ptr }

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4dali17ImageCacheLargest3AddERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKhRKNS_11TensorShapeILi3EEEP11CUstream_st(ptr noundef nonnull align 8 dereferenceable(384) %0, ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef %2, ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef %4) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca i64, align 8
  %7 = alloca %"class.std::unique_lock", align 8
  %8 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %9 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %10 = alloca %"struct.std::pair.37", align 8
  %11 = alloca %"class.std::stack", align 8
  %12 = alloca %"struct.std::pair.37", align 8
  %13 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %14 = alloca %"struct.std::__detail::_Node_iterator", align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #6
  %15 = tail call noundef i64 @_ZN4dali6volumeINS_11TensorShapeILi3EEEEEDTcl6volumeclsr4daliE5beginfp_Eclsr4daliE3endfp_EEERKT_(ptr noundef nonnull align 8 dereferenceable(24) %3)
  store i64 %15, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #6
  %16 = getelementptr inbounds i8, ptr %0, i64 144
  call void @_ZNSt11unique_lockISt5mutexEC2ERS0_(ptr noundef nonnull align 8 dereferenceable(9) %7, ptr noundef nonnull align 8 dereferenceable(40) %16)
  %17 = getelementptr inbounds i8, ptr %0, i64 368
  %18 = load i8, ptr %17, align 8, !tbaa !9, !range !41, !noundef !42
  %19 = trunc nuw i8 %18 to i1
  br i1 %19, label %.loopexit, label %20

20:                                               ; preds = %5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #6
  %21 = getelementptr inbounds i8, ptr %0, i64 312
  %22 = invoke ptr @_ZNSt13unordered_setINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4hashIS5_ESt8equal_toIS5_ESaIS5_EE4findERKS5_(ptr noundef nonnull align 8 dereferenceable(56) %21, ptr noundef nonnull align 8 dereferenceable(32) %1)
          to label %23 unwind label %38

23:                                               ; preds = %20
  store ptr %22, ptr %8, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #6
  %24 = call ptr @_ZNSt13unordered_setINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4hashIS5_ESt8equal_toIS5_ESaIS5_EE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %21) #6
  store ptr %24, ptr %9, align 8
  %25 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEELb1EEES9_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %9) #6
  %26 = zext i1 %25 to i8
  store i8 %26, ptr %17, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
  br i1 %25, label %27, label %40

27:                                               ; preds = %23
  %28 = call noundef i64 @_ZNKSt13unordered_setINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4hashIS5_ESt8equal_toIS5_ESaIS5_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(56) %21) #6
  %29 = getelementptr inbounds i8, ptr %0, i64 248
  store i64 %28, ptr %29, align 8, !tbaa !43
  call void @_ZNSt13unordered_setINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4hashIS5_ESt8equal_toIS5_ESaIS5_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(56) %21) #6
  %30 = getelementptr inbounds i8, ptr %0, i64 280
  br label %31

31:                                               ; preds = %37, %27
  %32 = call noundef zeroext i1 @_ZNKSt14priority_queueISt4pairImNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEESt6vectorIS7_SaIS7_EESt7greaterIS7_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(25) %30)
  br i1 %32, label %.loopexit, label %33

33:                                               ; preds = %31
  %34 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNKSt14priority_queueISt4pairImNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEESt6vectorIS7_SaIS7_EESt7greaterIS7_EE3topEv(ptr noundef nonnull align 8 dereferenceable(25) %30)
  %35 = getelementptr inbounds i8, ptr %34, i64 8
  %36 = invoke { ptr, i8 } @_ZNSt13unordered_setINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4hashIS5_ESt8equal_toIS5_ESaIS5_EE6insertERKS5_(ptr noundef nonnull align 8 dereferenceable(56) %21, ptr noundef nonnull align 8 dereferenceable(32) %35)
          to label %37 unwind label %.loopexit36

37:                                               ; preds = %33
  invoke void @_ZNSt14priority_queueISt4pairImNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEESt6vectorIS7_SaIS7_EESt7greaterIS7_EE3popEv(ptr noundef nonnull align 8 dereferenceable(25) %30)
          to label %31 unwind label %.loopexit36, !llvm.loop !44

38:                                               ; preds = %20
  %39 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
  br label %134

.loopexit36:                                      ; preds = %33, %37
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %134

.loopexit.split-lp:                               ; preds = %40, %.loopexit, %130
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %134

40:                                               ; preds = %23
  %41 = invoke { ptr, i8 } @_ZNSt13unordered_setINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4hashIS5_ESt8equal_toIS5_ESaIS5_EE6insertERKS5_(ptr noundef nonnull align 8 dereferenceable(56) %21, ptr noundef nonnull align 8 dereferenceable(32) %1)
          to label %42 unwind label %.loopexit.split-lp

42:                                               ; preds = %40
  %43 = getelementptr inbounds i8, ptr %0, i64 376
  %44 = load i64, ptr %43, align 8, !tbaa !46
  %45 = load i64, ptr %6, align 8, !tbaa !5
  %46 = add i64 %45, %44
  %47 = getelementptr inbounds i8, ptr %0, i64 8
  %48 = load i64, ptr %47, align 8, !tbaa !47
  %.not = icmp ugt i64 %46, %48
  %49 = getelementptr inbounds i8, ptr %0, i64 240
  %50 = load i8, ptr %49, align 8, !tbaa !48, !range !41, !noundef !42
  %51 = trunc nuw i8 %50 to i1
  %52 = or i1 %.not, %51
  %53 = zext i1 %52 to i8
  store i8 %53, ptr %49, align 8, !tbaa !48
  br i1 %.not, label %66, label %54

54:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %10) #6
  invoke void @_ZNSt4pairImNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEC2ImS5_TnNSt9enable_ifIXaaclsr5_PCCPE18_ConstructiblePairIT_T0_EEclsr5_PCCPE26_ImplicitlyConvertiblePairIS9_SA_EEEbE4typeELb1EEERKmRKS5_(ptr noundef nonnull align 8 dereferenceable(40) %10, ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(32) %1)
          to label %55 unwind label %61

55:                                               ; preds = %54
  %56 = getelementptr inbounds i8, ptr %0, i64 280
  invoke void @_ZNSt14priority_queueISt4pairImNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEESt6vectorIS7_SaIS7_EESt7greaterIS7_EE4pushEOS7_(ptr noundef nonnull align 8 dereferenceable(25) %56, ptr noundef nonnull align 8 dereferenceable(40) %10)
          to label %57 unwind label %63

57:                                               ; preds = %55
  call void @_ZNSt4pairImNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %10) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %10) #6
  %58 = load i64, ptr %6, align 8, !tbaa !5
  %59 = load i64, ptr %43, align 8, !tbaa !46
  %60 = add i64 %59, %58
  store i64 %60, ptr %43, align 8, !tbaa !46
  br label %.loopexit

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

63:                                               ; preds = %55
  %64 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt4pairImNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %10) #6
  br label %65

65:                                               ; preds = %63, %61
  %.pn31 = phi { ptr, i32 } [ %64, %63 ], [ %62, %61 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %10) #6
  br label %134

66:                                               ; preds = %42
  %.not24 = icmp ugt i64 %45, %48
  br i1 %.not24, label %.loopexit, label %67

67:                                               ; preds = %66
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %11) #6
  invoke void @_ZNSt5stackISt4pairImNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEESt5dequeIS7_SaIS7_EEEC2ISA_vEEv(ptr noundef nonnull align 8 dereferenceable(80) %11)
          to label %.preheader unwind label %87

.preheader:                                       ; preds = %67
  %68 = getelementptr inbounds i8, ptr %0, i64 280
  br label %69

69:                                               ; preds = %.preheader, %86
  %70 = call noundef zeroext i1 @_ZNKSt14priority_queueISt4pairImNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEESt6vectorIS7_SaIS7_EESt7greaterIS7_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(25) %68)
  %.pre43 = load i64, ptr %43, align 8, !tbaa !46
  %.pre44.pre = load i64, ptr %6, align 8, !tbaa !5
  br i1 %70, label %.critedge, label %71

71:                                               ; preds = %69
  %72 = add i64 %.pre44.pre, %.pre43
  %73 = load i64, ptr %47, align 8, !tbaa !47
  %74 = icmp ugt i64 %72, %73
  br i1 %74, label %75, label %.critedge

75:                                               ; preds = %71
  %76 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNKSt14priority_queueISt4pairImNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEESt6vectorIS7_SaIS7_EESt7greaterIS7_EE3topEv(ptr noundef nonnull align 8 dereferenceable(25) %68)
  %77 = load i64, ptr %76, align 8, !tbaa !49
  %78 = load i64, ptr %6, align 8, !tbaa !5
  %79 = icmp ult i64 %77, %78
  br i1 %79, label %80, label %..critedge_crit_edge

..critedge_crit_edge:                             ; preds = %75
  %.pre = load i64, ptr %43, align 8, !tbaa !46
  br label %.critedge

80:                                               ; preds = %75
  %81 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNKSt14priority_queueISt4pairImNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEESt6vectorIS7_SaIS7_EESt7greaterIS7_EE3topEv(ptr noundef nonnull align 8 dereferenceable(25) %68)
  %82 = load i64, ptr %81, align 8, !tbaa !49
  %83 = load i64, ptr %43, align 8, !tbaa !46
  %84 = sub i64 %83, %82
  store i64 %84, ptr %43, align 8, !tbaa !46
  %85 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNKSt14priority_queueISt4pairImNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEESt6vectorIS7_SaIS7_EESt7greaterIS7_EE3topEv(ptr noundef nonnull align 8 dereferenceable(25) %68)
  invoke void @_ZNSt5stackISt4pairImNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEESt5dequeIS7_SaIS7_EEE4pushERKS7_(ptr noundef nonnull align 8 dereferenceable(80) %11, ptr noundef nonnull align 8 dereferenceable(40) %85)
          to label %86 unwind label %.loopexit.split-lp38

86:                                               ; preds = %80
  invoke void @_ZNSt14priority_queueISt4pairImNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEESt6vectorIS7_SaIS7_EESt7greaterIS7_EE3popEv(ptr noundef nonnull align 8 dereferenceable(25) %68)
          to label %69 unwind label %.loopexit.split-lp38, !llvm.loop !53

87:                                               ; preds = %67
  %88 = landingpad { ptr, i32 }
          cleanup
  br label %120

.loopexit37:                                      ; preds = %111
  %lpad.loopexit39 = landingpad { ptr, i32 }
          cleanup
  br label %119

.loopexit.split-lp38:                             ; preds = %80, %86
  %lpad.loopexit.split-lp40 = landingpad { ptr, i32 }
          cleanup
  br label %119

.critedge:                                        ; preds = %71, %69, %..critedge_crit_edge
  %89 = phi i64 [ %78, %..critedge_crit_edge ], [ %.pre44.pre, %69 ], [ %.pre44.pre, %71 ]
  %90 = phi i64 [ %.pre, %..critedge_crit_edge ], [ %.pre43, %69 ], [ %.pre43, %71 ]
  %91 = add i64 %89, %90
  %92 = load i64, ptr %47, align 8, !tbaa !47
  %.not25 = icmp ugt i64 %91, %92
  br i1 %.not25, label %104, label %93

93:                                               ; preds = %.critedge
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %12) #6
  invoke void @_ZNSt4pairImNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEC2ImS5_TnNSt9enable_ifIXaaclsr5_PCCPE18_ConstructiblePairIT_T0_EEclsr5_PCCPE26_ImplicitlyConvertiblePairIS9_SA_EEEbE4typeELb1EEERKmRKS5_(ptr noundef nonnull align 8 dereferenceable(40) %12, ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(32) %1)
          to label %94 unwind label %99

94:                                               ; preds = %93
  invoke void @_ZNSt14priority_queueISt4pairImNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEESt6vectorIS7_SaIS7_EESt7greaterIS7_EE4pushEOS7_(ptr noundef nonnull align 8 dereferenceable(25) %68, ptr noundef nonnull align 8 dereferenceable(40) %12)
          to label %95 unwind label %101

95:                                               ; preds = %94
  call void @_ZNSt4pairImNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %12) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %12) #6
  %96 = load i64, ptr %6, align 8, !tbaa !5
  %97 = load i64, ptr %43, align 8, !tbaa !46
  %98 = add i64 %97, %96
  store i64 %98, ptr %43, align 8, !tbaa !46
  br label %104

99:                                               ; preds = %93
  %100 = landingpad { ptr, i32 }
          cleanup
  br label %103

101:                                              ; preds = %94
  %102 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt4pairImNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %12) #6
  br label %103

103:                                              ; preds = %101, %99
  %.pn = phi { ptr, i32 } [ %102, %101 ], [ %100, %99 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %12) #6
  br label %119

104:                                              ; preds = %95, %.critedge
  %105 = call noundef zeroext i1 @_ZNKSt5stackISt4pairImNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEESt5dequeIS7_SaIS7_EEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %11)
  br i1 %105, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %104, %117
  %106 = load i64, ptr %43, align 8, !tbaa !46
  %107 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt5stackISt4pairImNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEESt5dequeIS7_SaIS7_EEE3topEv(ptr noundef nonnull align 8 dereferenceable(80) %11)
  %108 = load i64, ptr %107, align 8, !tbaa !49
  %109 = add i64 %108, %106
  %110 = load i64, ptr %47, align 8, !tbaa !47
  %.not27 = icmp ugt i64 %109, %110
  br i1 %.not27, label %117, label %111

111:                                              ; preds = %.lr.ph
  %112 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt5stackISt4pairImNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEESt5dequeIS7_SaIS7_EEE3topEv(ptr noundef nonnull align 8 dereferenceable(80) %11)
  %113 = load i64, ptr %112, align 8, !tbaa !49
  %114 = load i64, ptr %43, align 8, !tbaa !46
  %115 = add i64 %114, %113
  store i64 %115, ptr %43, align 8, !tbaa !46
  %116 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt5stackISt4pairImNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEESt5dequeIS7_SaIS7_EEE3topEv(ptr noundef nonnull align 8 dereferenceable(80) %11)
  invoke void @_ZNSt14priority_queueISt4pairImNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEESt6vectorIS7_SaIS7_EESt7greaterIS7_EE4pushEOS7_(ptr noundef nonnull align 8 dereferenceable(25) %68, ptr noundef nonnull align 8 dereferenceable(40) %116)
          to label %117 unwind label %.loopexit37

117:                                              ; preds = %111, %.lr.ph
  call void @_ZNSt5stackISt4pairImNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEESt5dequeIS7_SaIS7_EEE3popEv(ptr noundef nonnull align 8 dereferenceable(80) %11)
  %118 = call noundef zeroext i1 @_ZNKSt5stackISt4pairImNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEESt5dequeIS7_SaIS7_EEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %11)
  br i1 %118, label %._crit_edge, label %.lr.ph, !llvm.loop !54

._crit_edge:                                      ; preds = %117, %104
  call void @_ZNSt5stackISt4pairImNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEESt5dequeIS7_SaIS7_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %11) #6
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %11) #6
  br label %.loopexit

119:                                              ; preds = %.loopexit37, %.loopexit.split-lp38, %103
  %.pn28 = phi { ptr, i32 } [ %.pn, %103 ], [ %lpad.loopexit39, %.loopexit37 ], [ %lpad.loopexit.split-lp40, %.loopexit.split-lp38 ]
  call void @_ZNSt5stackISt4pairImNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEESt5dequeIS7_SaIS7_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %11) #6
  br label %120

120:                                              ; preds = %119, %87
  %.pn28.pn = phi { ptr, i32 } [ %.pn28, %119 ], [ %88, %87 ]
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %11) #6
  br label %134

.loopexit:                                        ; preds = %31, %57, %._crit_edge, %66, %5
  invoke void @_ZNSt11unique_lockISt5mutexE6unlockEv(ptr noundef nonnull align 8 dereferenceable(9) %7)
          to label %121 unwind label %.loopexit.split-lp

121:                                              ; preds = %.loopexit
  %122 = load i8, ptr %17, align 8, !tbaa !9, !range !41, !noundef !42
  %123 = trunc nuw i8 %122 to i1
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #6
  br i1 %123, label %124, label %.critedge2

124:                                              ; preds = %121
  %125 = getelementptr inbounds i8, ptr %0, i64 312
  %126 = invoke ptr @_ZNSt13unordered_setINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4hashIS5_ESt8equal_toIS5_ESaIS5_EE4findERKS5_(ptr noundef nonnull align 8 dereferenceable(56) %125, ptr noundef nonnull align 8 dereferenceable(32) %1)
          to label %127 unwind label %131

127:                                              ; preds = %124
  store ptr %126, ptr %13, align 8
  %128 = call ptr @_ZNSt13unordered_setINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4hashIS5_ESt8equal_toIS5_ESaIS5_EE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %125) #6
  store ptr %128, ptr %14, align 8
  %129 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEELb1EEES9_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #6
  br i1 %129, label %130, label %133

130:                                              ; preds = %127
  invoke void @_ZN4dali14ImageCacheBlob3AddERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKhRKNS_11TensorShapeILi3EEEP11CUstream_st(ptr noundef nonnull align 8 dereferenceable(280) %0, ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef %2, ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef %4)
          to label %133 unwind label %.loopexit.split-lp

131:                                              ; preds = %124
  %132 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #6
  br label %134

.critedge2:                                       ; preds = %121
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #6
  br label %133

133:                                              ; preds = %130, %.critedge2, %127
  call void @_ZNSt11unique_lockISt5mutexED2Ev(ptr noundef nonnull align 8 dereferenceable(9) %7) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  ret void

134:                                              ; preds = %.loopexit36, %.loopexit.split-lp, %65, %120, %131, %38
  %.pn34 = phi { ptr, i32 } [ %132, %131 ], [ %39, %38 ], [ %.pn31, %65 ], [ %.pn28.pn, %120 ], [ %lpad.loopexit, %.loopexit36 ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @_ZNSt11unique_lockISt5mutexED2Ev(ptr noundef nonnull align 8 dereferenceable(9) %7) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  resume { ptr, i32 } %.pn34
}

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt11unique_lockISt5mutexEC2ERS0_(ptr noundef nonnull align 8 dereferenceable(9), ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #0 align 2

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZNSt13unordered_setINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4hashIS5_ESt8equal_toIS5_ESaIS5_EE6insertERKS5_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #0 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt14priority_queueISt4pairImNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEESt6vectorIS7_SaIS7_EESt7greaterIS7_EE3popEv(ptr noundef nonnull align 8 dereferenceable(25)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt14priority_queueISt4pairImNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEESt6vectorIS7_SaIS7_EESt7greaterIS7_EE4pushEOS7_(ptr noundef nonnull align 8 dereferenceable(25), ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #0 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZNSt4pairImNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #4 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt5stackISt4pairImNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEESt5dequeIS7_SaIS7_EEE4pushERKS7_(ptr noundef nonnull align 8 dereferenceable(80), ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #0 align 2

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt11unique_lockISt5mutexE6unlockEv(ptr noundef nonnull align 8 dereferenceable(9)) local_unnamed_addr #0 align 2

declare void @_ZN4dali14ImageCacheBlob3AddERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKhRKNS_11TensorShapeILi3EEEP11CUstream_st(ptr noundef nonnull align 8 dereferenceable(280), ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef) unnamed_addr #5

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

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #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 = { 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 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !13, i64 368}
!10 = !{!"_ZTSN4dali17ImageCacheLargestE", !11, i64 0, !33, i64 280, !39, i64 312, !13, i64 368, !6, i64 376}
!11 = !{!"_ZTSN4dali14ImageCacheBlobE", !12, i64 0, !6, i64 8, !6, i64 16, !13, i64 24, !14, i64 32, !22, i64 72, !22, i64 80, !24, i64 88, !29, i64 144, !31, i64 184, !13, i64 240, !6, i64 248, !22, i64 256, !22, i64 264, !22, i64 272}
!12 = !{!"_ZTSN4dali10ImageCacheE"}
!13 = !{!"bool", !7, i64 0}
!14 = !{!"_ZTSSt10unique_ptrIhN4dali2mm7DeleterEE", !15, i64 0}
!15 = !{!"_ZTSSt15__uniq_ptr_dataIhN4dali2mm7DeleterELb1ELb1EE", !16, i64 0}
!16 = !{!"_ZTSSt15__uniq_ptr_implIhN4dali2mm7DeleterEE", !17, i64 0}
!17 = !{!"_ZTSSt5tupleIJPhN4dali2mm7DeleterEEE", !18, i64 0}
!18 = !{!"_ZTSSt11_Tuple_implILm0EJPhN4dali2mm7DeleterEEE", !19, i64 0, !23, i64 32}
!19 = !{!"_ZTSSt11_Tuple_implILm1EJN4dali2mm7DeleterEEE", !20, i64 0}
!20 = !{!"_ZTSSt10_Head_baseILm1EN4dali2mm7DeleterELb0EE", !21, i64 0}
!21 = !{!"_ZTSN4dali2mm7DeleterE", !22, i64 0, !6, i64 8, !6, i64 16, !22, i64 24}
!22 = !{!"any pointer", !7, i64 0}
!23 = !{!"_ZTSSt10_Head_baseILm0EPhLb0EE", !22, i64 0}
!24 = !{!"_ZTSSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN4dali10TensorViewINS6_10StorageGPUEhLi3EEESt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_S9_EEE", !25, i64 0}
!25 = !{!"_ZTSSt10_HashtableINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_N4dali10TensorViewINS8_10StorageGPUEhLi3EEEESaISC_ENSt8__detail10_Select1stESt8equal_toIS5_ESt4hashIS5_ENSE_18_Mod_range_hashingENSE_20_Default_ranged_hashENSE_20_Prime_rehash_policyENSE_17_Hashtable_traitsILb1ELb0ELb1EEEE", !22, i64 0, !6, i64 8, !26, i64 16, !6, i64 24, !27, i64 32, !22, i64 48}
!26 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !22, i64 0}
!27 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !28, i64 0, !6, i64 8}
!28 = !{!"float", !7, i64 0}
!29 = !{!"_ZTSSt5mutex", !30, i64 0}
!30 = !{!"_ZTSSt12__mutex_base", !7, i64 0}
!31 = !{!"_ZTSSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN4dali14ImageCacheBlob5StatsESt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_S8_EEE", !32, i64 0}
!32 = !{!"_ZTSSt10_HashtableINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_N4dali14ImageCacheBlob5StatsEESaISB_ENSt8__detail10_Select1stESt8equal_toIS5_ESt4hashIS5_ENSD_18_Mod_range_hashingENSD_20_Default_ranged_hashENSD_20_Prime_rehash_policyENSD_17_Hashtable_traitsILb1ELb0ELb1EEEE", !22, i64 0, !6, i64 8, !26, i64 16, !6, i64 24, !27, i64 32, !22, i64 48}
!33 = !{!"_ZTSSt14priority_queueISt4pairImNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEESt6vectorIS7_SaIS7_EESt7greaterIS7_EE", !34, i64 0, !38, i64 24}
!34 = !{!"_ZTSSt6vectorISt4pairImNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEESaIS7_EE", !35, i64 0}
!35 = !{!"_ZTSSt12_Vector_baseISt4pairImNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEESaIS7_EE", !36, i64 0}
!36 = !{!"_ZTSNSt12_Vector_baseISt4pairImNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEESaIS7_EE12_Vector_implE", !37, i64 0}
!37 = !{!"_ZTSNSt12_Vector_baseISt4pairImNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEESaIS7_EE17_Vector_impl_dataE", !22, i64 0, !22, i64 8, !22, i64 16}
!38 = !{!"_ZTSSt7greaterISt4pairImNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEE"}
!39 = !{!"_ZTSSt13unordered_setINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4hashIS5_ESt8equal_toIS5_ESaIS5_EE", !40, i64 0}
!40 = !{!"_ZTSSt10_HashtableINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_SaIS5_ENSt8__detail9_IdentityESt8equal_toIS5_ESt4hashIS5_ENS7_18_Mod_range_hashingENS7_20_Default_ranged_hashENS7_20_Prime_rehash_policyENS7_17_Hashtable_traitsILb1ELb1ELb1EEEE", !22, i64 0, !6, i64 8, !26, i64 16, !6, i64 24, !27, i64 32, !22, i64 48}
!41 = !{i8 0, i8 2}
!42 = !{}
!43 = !{!11, !6, i64 248}
!44 = distinct !{!44, !45}
!45 = !{!"llvm.loop.mustprogress"}
!46 = !{!10, !6, i64 376}
!47 = !{!11, !6, i64 8}
!48 = !{!11, !13, i64 240}
!49 = !{!50, !6, i64 0}
!50 = !{!"_ZTSSt4pairImNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE", !6, i64 0, !51, i64 8}
!51 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !52, i64 0, !6, i64 8, !7, i64 16}
!52 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !22, i64 0}
!53 = distinct !{!53, !45}
!54 = distinct !{!54, !45}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass