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

; 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::basic_string_view" = type { i64, ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"class.dali::CachedDecoderImpl" = type <{ %"class.std::shared_ptr", %"class.std::unique_ptr", i32, i8, [3 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.1" }
%"struct.std::_Head_base.1" = type { ptr }

@.str = external hidden unnamed_addr constant [10 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [15 x i8], align 1

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4dali17CachedDecoderImplC2ERKNS_6OpSpecE(ptr noundef nonnull align 8 dereferenceable(29) %0, ptr noundef nonnull align 8 dereferenceable(328) %1) unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca %"class.std::basic_string_view", align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca %"class.std::basic_string_view", align 8
  %9 = alloca i64, align 8
  %10 = alloca %"class.std::basic_string_view", align 8
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca %"class.std::basic_string_view", align 8
  %14 = alloca %"class.std::__cxx11::basic_string", align 8
  %15 = alloca %"class.std::basic_string_view", align 8
  %16 = alloca i8, align 1
  %17 = alloca %"class.std::basic_string_view", align 8
  %18 = alloca %"class.std::shared_ptr", align 8
  %19 = alloca %"class.std::basic_string_view", align 8
  %20 = alloca i32, align 4
  %21 = alloca %"class.std::basic_string_view", align 8
  %22 = alloca i64, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %23 = load ptr, ptr %3, align 8
  %24 = getelementptr inbounds %"class.dali::CachedDecoderImpl", ptr %23, i32 0, i32 0
  call void @_ZNSt10shared_ptrIN4dali10ImageCacheEEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %24) #6
  %25 = getelementptr inbounds %"class.dali::CachedDecoderImpl", ptr %23, i32 0, i32 1
  call void @_ZNSt10unique_ptrIN4dali7kernels16ScatterGatherGPUESt14default_deleteIS2_EEC2IS4_vEEv(ptr noundef nonnull align 8 dereferenceable(8) %25) #6
  %26 = getelementptr inbounds %"class.dali::CachedDecoderImpl", ptr %23, i32 0, i32 2
  %27 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef @.str) #6
  %28 = getelementptr inbounds { i64, ptr }, ptr %5, i32 0, i32 0
  %29 = load i64, ptr %28, align 8
  %30 = getelementptr inbounds { i64, ptr }, ptr %5, i32 0, i32 1
  %31 = load ptr, ptr %30, align 8
  %32 = invoke noundef i32 @_ZNK4dali6OpSpec11GetArgumentIiEET_St17basic_string_viewIcSt11char_traitsIcEEPKNS_17ArgumentWorkspaceEl(ptr noundef nonnull align 8 dereferenceable(328) %27, i64 %29, ptr %31, ptr noundef null, i64 noundef 0)
          to label %33 unwind label %114

33:                                               ; preds = %2
  store i32 %32, ptr %26, align 8, !tbaa !9
  %34 = getelementptr inbounds %"class.dali::CachedDecoderImpl", ptr %23, i32 0, i32 3
  store i8 1, ptr %34, align 4, !tbaa !22
  %35 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %8, ptr noundef @.str.1) #6
  %36 = getelementptr inbounds { i64, ptr }, ptr %8, i32 0, i32 0
  %37 = load i64, ptr %36, align 8
  %38 = getelementptr inbounds { i64, ptr }, ptr %8, i32 0, i32 1
  %39 = load ptr, ptr %38, align 8
  %40 = invoke noundef zeroext i1 @_ZNK4dali6OpSpec11HasArgumentESt17basic_string_viewIcSt11char_traitsIcEE(ptr noundef nonnull align 8 dereferenceable(328) %35, i64 %37, ptr %39)
          to label %41 unwind label %114

41:                                               ; preds = %33
  br i1 %40, label %42, label %157

42:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  %43 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %10, ptr noundef @.str.1) #6
  %44 = getelementptr inbounds { i64, ptr }, ptr %10, i32 0, i32 0
  %45 = load i64, ptr %44, align 8
  %46 = getelementptr inbounds { i64, ptr }, ptr %10, i32 0, i32 1
  %47 = load ptr, ptr %46, align 8
  %48 = invoke noundef i32 @_ZNK4dali6OpSpec11GetArgumentIiEET_St17basic_string_viewIcSt11char_traitsIcEEPKNS_17ArgumentWorkspaceEl(ptr noundef nonnull align 8 dereferenceable(328) %43, i64 %45, ptr %47, ptr noundef null, i64 noundef 0)
          to label %49 unwind label %118

49:                                               ; preds = %42
  %50 = sext i32 %48 to i64
  store i64 %50, ptr %9, align 8, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  %51 = load i64, ptr %9, align 8, !tbaa !23
  %52 = mul i64 %51, 1024
  %53 = mul i64 %52, 1024
  store i64 %53, ptr %11, align 8, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %54 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef @.str.2) #6
  %55 = getelementptr inbounds { i64, ptr }, ptr %13, i32 0, i32 0
  %56 = load i64, ptr %55, align 8
  %57 = getelementptr inbounds { i64, ptr }, ptr %13, i32 0, i32 1
  %58 = load ptr, ptr %57, align 8
  %59 = invoke noundef i32 @_ZNK4dali6OpSpec11GetArgumentIiEET_St17basic_string_viewIcSt11char_traitsIcEEPKNS_17ArgumentWorkspaceEl(ptr noundef nonnull align 8 dereferenceable(328) %54, i64 %56, ptr %58, ptr noundef null, i64 noundef 0)
          to label %60 unwind label %122

60:                                               ; preds = %49
  %61 = sext i32 %59 to i64
  store i64 %61, ptr %12, align 8, !tbaa !23
  %62 = load i64, ptr %11, align 8, !tbaa !23
  %63 = icmp ugt i64 %62, 0
  br i1 %63, label %64, label %154

64:                                               ; preds = %60
  %65 = load i64, ptr %11, align 8, !tbaa !23
  %66 = load i64, ptr %12, align 8, !tbaa !23
  %67 = icmp uge i64 %65, %66
  br i1 %67, label %68, label %154

68:                                               ; preds = %64
  call void @llvm.lifetime.start.p0(i64 32, ptr %14) #6
  %69 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef @.str.3) #6
  %70 = getelementptr inbounds { i64, ptr }, ptr %15, i32 0, i32 0
  %71 = load i64, ptr %70, align 8
  %72 = getelementptr inbounds { i64, ptr }, ptr %15, i32 0, i32 1
  %73 = load ptr, ptr %72, align 8
  invoke void @_ZNK4dali6OpSpec11GetArgumentINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEET_St17basic_string_viewIcS5_EPKNS_17ArgumentWorkspaceEl(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %14, ptr noundef nonnull align 8 dereferenceable(328) %69, i64 %71, ptr %73, ptr noundef null, i64 noundef 0)
          to label %74 unwind label %126

74:                                               ; preds = %68
  call void @llvm.lifetime.start.p0(i64 1, ptr %16) #6
  %75 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %17, ptr noundef @.str.4) #6
  %76 = getelementptr inbounds { i64, ptr }, ptr %17, i32 0, i32 0
  %77 = load i64, ptr %76, align 8
  %78 = getelementptr inbounds { i64, ptr }, ptr %17, i32 0, i32 1
  %79 = load ptr, ptr %78, align 8
  %80 = invoke noundef zeroext i1 @_ZNK4dali6OpSpec11GetArgumentIbEET_St17basic_string_viewIcSt11char_traitsIcEEPKNS_17ArgumentWorkspaceEl(ptr noundef nonnull align 8 dereferenceable(328) %75, i64 %77, ptr %79, ptr noundef null, i64 noundef 0)
          to label %81 unwind label %130

81:                                               ; preds = %74
  %82 = zext i1 %80 to i8
  store i8 %82, ptr %16, align 1, !tbaa !25
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #6
  %83 = invoke noundef nonnull align 8 dereferenceable(88) ptr @_ZN4dali17ImageCacheFactory8InstanceEv()
          to label %84 unwind label %134

84:                                               ; preds = %81
  %85 = getelementptr inbounds %"class.dali::CachedDecoderImpl", ptr %23, i32 0, i32 2
  %86 = load i32, ptr %85, align 8, !tbaa !9
  %87 = load i64, ptr %11, align 8, !tbaa !23
  %88 = load i8, ptr %16, align 1, !tbaa !25, !range !26, !noundef !27
  %89 = trunc i8 %88 to i1
  %90 = load i64, ptr %12, align 8, !tbaa !23
  invoke void @_ZN4dali17ImageCacheFactory3GetEiRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmbm(ptr dead_on_unwind writable sret(%"class.std::shared_ptr") align 8 %18, ptr noundef nonnull align 8 dereferenceable(88) %83, i32 noundef %86, ptr noundef nonnull align 8 dereferenceable(32) %14, i64 noundef %87, i1 noundef zeroext %89, i64 noundef %90)
          to label %91 unwind label %134

91:                                               ; preds = %84
  %92 = getelementptr inbounds %"class.dali::CachedDecoderImpl", ptr %23, i32 0, i32 0
  %93 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt10shared_ptrIN4dali10ImageCacheEEaSEOS2_(ptr noundef nonnull align 8 dereferenceable(16) %92, ptr noundef nonnull align 8 dereferenceable(16) %18) #6
  call void @_ZNSt12__shared_ptrIN4dali10ImageCacheELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %18) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #6
  %94 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %19, ptr noundef @.str.5) #6
  %95 = getelementptr inbounds { i64, ptr }, ptr %19, i32 0, i32 0
  %96 = load i64, ptr %95, align 8
  %97 = getelementptr inbounds { i64, ptr }, ptr %19, i32 0, i32 1
  %98 = load ptr, ptr %97, align 8
  %99 = invoke noundef zeroext i1 @_ZNK4dali6OpSpec11GetArgumentIbEET_St17basic_string_viewIcSt11char_traitsIcEEPKNS_17ArgumentWorkspaceEl(ptr noundef nonnull align 8 dereferenceable(328) %94, i64 %96, ptr %98, ptr noundef null, i64 noundef 0)
          to label %100 unwind label %130

100:                                              ; preds = %91
  %101 = getelementptr inbounds %"class.dali::CachedDecoderImpl", ptr %23, i32 0, i32 3
  %102 = zext i1 %99 to i8
  store i8 %102, ptr %101, align 4, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #6
  %103 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %21, ptr noundef @.str.6) #6
  %104 = getelementptr inbounds { i64, ptr }, ptr %21, i32 0, i32 0
  %105 = load i64, ptr %104, align 8
  %106 = getelementptr inbounds { i64, ptr }, ptr %21, i32 0, i32 1
  %107 = load ptr, ptr %106, align 8
  %108 = invoke noundef i32 @_ZNK4dali6OpSpec11GetArgumentIiEET_St17basic_string_viewIcSt11char_traitsIcEEPKNS_17ArgumentWorkspaceEl(ptr noundef nonnull align 8 dereferenceable(328) %103, i64 %105, ptr %107, ptr noundef null, i64 noundef 0)
          to label %109 unwind label %138

109:                                              ; preds = %100
  store i32 %108, ptr %20, align 4, !tbaa !28
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #6
  store i64 262144, ptr %22, align 8, !tbaa !23
  %110 = getelementptr inbounds %"class.dali::CachedDecoderImpl", ptr %23, i32 0, i32 1
  %111 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 32) #7
          to label %112 unwind label %142

112:                                              ; preds = %109
  invoke void @_ZN4dali7kernels16ScatterGatherGPUC2Em(ptr noundef nonnull align 8 dereferenceable(32) %111, i64 noundef 262144)
          to label %113 unwind label %146

113:                                              ; preds = %112
  call void @_ZNSt10unique_ptrIN4dali7kernels16ScatterGatherGPUESt14default_deleteIS2_EE5resetEPS2_(ptr noundef nonnull align 8 dereferenceable(8) %110, ptr noundef %111) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %14) #6
  br label %154

114:                                              ; preds = %33, %2
  %115 = landingpad { ptr, i32 }
          cleanup
  %116 = extractvalue { ptr, i32 } %115, 0
  store ptr %116, ptr %6, align 8
  %117 = extractvalue { ptr, i32 } %115, 1
  store i32 %117, ptr %7, align 4
  br label %158

118:                                              ; preds = %42
  %119 = landingpad { ptr, i32 }
          cleanup
  %120 = extractvalue { ptr, i32 } %119, 0
  store ptr %120, ptr %6, align 8
  %121 = extractvalue { ptr, i32 } %119, 1
  store i32 %121, ptr %7, align 4
  br label %156

122:                                              ; preds = %49
  %123 = landingpad { ptr, i32 }
          cleanup
  %124 = extractvalue { ptr, i32 } %123, 0
  store ptr %124, ptr %6, align 8
  %125 = extractvalue { ptr, i32 } %123, 1
  store i32 %125, ptr %7, align 4
  br label %155

126:                                              ; preds = %68
  %127 = landingpad { ptr, i32 }
          cleanup
  %128 = extractvalue { ptr, i32 } %127, 0
  store ptr %128, ptr %6, align 8
  %129 = extractvalue { ptr, i32 } %127, 1
  store i32 %129, ptr %7, align 4
  br label %153

130:                                              ; preds = %91, %74
  %131 = landingpad { ptr, i32 }
          cleanup
  %132 = extractvalue { ptr, i32 } %131, 0
  store ptr %132, ptr %6, align 8
  %133 = extractvalue { ptr, i32 } %131, 1
  store i32 %133, ptr %7, align 4
  br label %152

134:                                              ; preds = %84, %81
  %135 = landingpad { ptr, i32 }
          cleanup
  %136 = extractvalue { ptr, i32 } %135, 0
  store ptr %136, ptr %6, align 8
  %137 = extractvalue { ptr, i32 } %135, 1
  store i32 %137, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #6
  br label %152

138:                                              ; preds = %100
  %139 = landingpad { ptr, i32 }
          cleanup
  %140 = extractvalue { ptr, i32 } %139, 0
  store ptr %140, ptr %6, align 8
  %141 = extractvalue { ptr, i32 } %139, 1
  store i32 %141, ptr %7, align 4
  br label %151

142:                                              ; preds = %109
  %143 = landingpad { ptr, i32 }
          cleanup
  %144 = extractvalue { ptr, i32 } %143, 0
  store ptr %144, ptr %6, align 8
  %145 = extractvalue { ptr, i32 } %143, 1
  store i32 %145, ptr %7, align 4
  br label %150

146:                                              ; preds = %112
  %147 = landingpad { ptr, i32 }
          cleanup
  %148 = extractvalue { ptr, i32 } %147, 0
  store ptr %148, ptr %6, align 8
  %149 = extractvalue { ptr, i32 } %147, 1
  store i32 %149, ptr %7, align 4
  call void @_ZdlPvm(ptr noundef %111, i64 noundef 32) #8
  br label %150

150:                                              ; preds = %146, %142
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  br label %151

151:                                              ; preds = %150, %138
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  br label %152

152:                                              ; preds = %151, %134, %130
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #6
  br label %153

153:                                              ; preds = %152, %126
  call void @llvm.lifetime.end.p0(i64 32, ptr %14) #6
  br label %155

154:                                              ; preds = %113, %64, %60
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  br label %157

155:                                              ; preds = %153, %122
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  br label %156

156:                                              ; preds = %155, %118
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  br label %158

157:                                              ; preds = %154, %41
  ret void

158:                                              ; preds = %156, %114
  call void @_ZNSt10unique_ptrIN4dali7kernels16ScatterGatherGPUESt14default_deleteIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %25) #6
  call void @_ZNSt12__shared_ptrIN4dali10ImageCacheELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %24) #6
  br label %159

159:                                              ; preds = %158
  %160 = load ptr, ptr %6, align 8
  %161 = load i32, ptr %7, align 4
  %162 = insertvalue { ptr, i32 } poison, ptr %160, 0
  %163 = insertvalue { ptr, i32 } %162, i32 %161, 1
  resume { ptr, i32 } %163
}

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNK4dali6OpSpec11GetArgumentIiEET_St17basic_string_viewIcSt11char_traitsIcEEPKNS_17ArgumentWorkspaceEl(ptr noundef nonnull align 8 dereferenceable(328), i64, ptr, ptr noundef, i64 noundef) #1 align 2

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK4dali6OpSpec11HasArgumentESt17basic_string_viewIcSt11char_traitsIcEE(ptr noundef nonnull align 8 dereferenceable(328), i64, ptr) #1 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK4dali6OpSpec11GetArgumentIbEET_St17basic_string_viewIcSt11char_traitsIcEEPKNS_17ArgumentWorkspaceEl(ptr noundef nonnull align 8 dereferenceable(328), i64, ptr, ptr noundef, i64 noundef) #1 align 2

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

declare void @_ZN4dali17ImageCacheFactory3GetEiRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmbm(ptr dead_on_unwind writable sret(%"class.std::shared_ptr") align 8, ptr noundef nonnull align 8 dereferenceable(88), i32 noundef, ptr noundef nonnull align 8 dereferenceable(32), i64 noundef, i1 noundef zeroext, i64 noundef) #3

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

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

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

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) #4

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

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) #5

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

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

attributes #0 = { 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 #1 = { 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 #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { "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 = { nobuiltin allocsize(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 = { nobuiltin nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind }
attributes #7 = { builtin allocsize(0) }
attributes #8 = { builtin 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, !20, i64 24}
!10 = !{!"_ZTSN4dali17CachedDecoderImplE", !11, i64 0, !14, i64 16, !20, i64 24, !21, i64 28}
!11 = !{!"_ZTSSt10shared_ptrIN4dali10ImageCacheEE", !12, i64 0}
!12 = !{!"_ZTSSt12__shared_ptrIN4dali10ImageCacheELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !13, i64 8}
!13 = !{!"_ZTSSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0}
!14 = !{!"_ZTSSt10unique_ptrIN4dali7kernels16ScatterGatherGPUESt14default_deleteIS2_EE", !15, i64 0}
!15 = !{!"_ZTSSt15__uniq_ptr_dataIN4dali7kernels16ScatterGatherGPUESt14default_deleteIS2_ELb1ELb1EE", !16, i64 0}
!16 = !{!"_ZTSSt15__uniq_ptr_implIN4dali7kernels16ScatterGatherGPUESt14default_deleteIS2_EE", !17, i64 0}
!17 = !{!"_ZTSSt5tupleIJPN4dali7kernels16ScatterGatherGPUESt14default_deleteIS2_EEE", !18, i64 0}
!18 = !{!"_ZTSSt11_Tuple_implILm0EJPN4dali7kernels16ScatterGatherGPUESt14default_deleteIS2_EEE", !19, i64 0}
!19 = !{!"_ZTSSt10_Head_baseILm0EPN4dali7kernels16ScatterGatherGPUELb0EE", !6, i64 0}
!20 = !{!"int", !7, i64 0}
!21 = !{!"bool", !7, i64 0}
!22 = !{!10, !21, i64 28}
!23 = !{!24, !24, i64 0}
!24 = !{!"long", !7, i64 0}
!25 = !{!21, !21, i64 0}
!26 = !{i8 0, i8 2}
!27 = !{}
!28 = !{!20, !20, i64 0}


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

%"class.std::basic_string_view" = type { i64, ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }

@.str = external hidden unnamed_addr constant [10 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [15 x i8], align 1

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4dali17CachedDecoderImplC2ERKNS_6OpSpecE(ptr noundef nonnull align 8 dereferenceable(29) %0, ptr noundef nonnull align 8 dereferenceable(328) %1) unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.std::basic_string_view", align 8
  %4 = alloca %"class.std::basic_string_view", align 8
  %5 = alloca %"class.std::basic_string_view", align 8
  %6 = alloca %"class.std::basic_string_view", align 8
  %7 = alloca %"class.std::__cxx11::basic_string", align 8
  %8 = alloca %"class.std::basic_string_view", align 8
  %9 = alloca %"class.std::basic_string_view", align 8
  %10 = alloca %"class.std::shared_ptr", align 8
  %11 = alloca %"class.std::basic_string_view", align 8
  %12 = alloca %"class.std::basic_string_view", align 8
  tail call void @_ZNSt10shared_ptrIN4dali10ImageCacheEEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %0) #6
  %13 = getelementptr inbounds i8, ptr %0, i64 16
  tail call void @_ZNSt10unique_ptrIN4dali7kernels16ScatterGatherGPUESt14default_deleteIS2_EEC2IS4_vEEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #6
  %14 = getelementptr inbounds i8, ptr %0, i64 24
  call void @_ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %3, ptr noundef @.str) #6
  %15 = load i64, ptr %3, align 8
  %16 = getelementptr inbounds i8, ptr %3, i64 8
  %17 = load ptr, ptr %16, align 8
  %18 = invoke noundef i32 @_ZNK4dali6OpSpec11GetArgumentIiEET_St17basic_string_viewIcSt11char_traitsIcEEPKNS_17ArgumentWorkspaceEl(ptr noundef nonnull align 8 dereferenceable(328) %1, i64 %15, ptr %17, ptr noundef null, i64 noundef 0)
          to label %19 unwind label %68

19:                                               ; preds = %2
  store i32 %18, ptr %14, align 8, !tbaa !5
  %20 = getelementptr inbounds i8, ptr %0, i64 28
  store i8 1, ptr %20, align 4, !tbaa !21
  call void @_ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %4, ptr noundef @.str.1) #6
  %21 = load i64, ptr %4, align 8
  %22 = getelementptr inbounds i8, ptr %4, i64 8
  %23 = load ptr, ptr %22, align 8
  %24 = invoke noundef zeroext i1 @_ZNK4dali6OpSpec11HasArgumentESt17basic_string_viewIcSt11char_traitsIcEE(ptr noundef nonnull align 8 dereferenceable(328) %1, i64 %21, ptr %23)
          to label %25 unwind label %68

25:                                               ; preds = %19
  br i1 %24, label %26, label %88

26:                                               ; preds = %25
  call void @_ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef @.str.1) #6
  %27 = load i64, ptr %5, align 8
  %28 = getelementptr inbounds i8, ptr %5, i64 8
  %29 = load ptr, ptr %28, align 8
  %30 = invoke noundef i32 @_ZNK4dali6OpSpec11GetArgumentIiEET_St17basic_string_viewIcSt11char_traitsIcEEPKNS_17ArgumentWorkspaceEl(ptr noundef nonnull align 8 dereferenceable(328) %1, i64 %27, ptr %29, ptr noundef null, i64 noundef 0)
          to label %31 unwind label %70

31:                                               ; preds = %26
  %32 = sext i32 %30 to i64
  %33 = shl nsw i64 %32, 20
  call void @_ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef @.str.2) #6
  %34 = load i64, ptr %6, align 8
  %35 = getelementptr inbounds i8, ptr %6, i64 8
  %36 = load ptr, ptr %35, align 8
  %37 = invoke noundef i32 @_ZNK4dali6OpSpec11GetArgumentIiEET_St17basic_string_viewIcSt11char_traitsIcEEPKNS_17ArgumentWorkspaceEl(ptr noundef nonnull align 8 dereferenceable(328) %1, i64 %34, ptr %36, ptr noundef null, i64 noundef 0)
          to label %38 unwind label %72

38:                                               ; preds = %31
  %39 = sext i32 %37 to i64
  %.not = icmp eq i32 %30, 0
  %.not26 = icmp ult i64 %33, %39
  %or.cond = select i1 %.not, i1 true, i1 %.not26
  br i1 %or.cond, label %88, label %40

40:                                               ; preds = %38
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %7) #6
  call void @_ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %8, ptr noundef @.str.3) #6
  %41 = load i64, ptr %8, align 8
  %42 = getelementptr inbounds i8, ptr %8, i64 8
  %43 = load ptr, ptr %42, align 8
  invoke void @_ZNK4dali6OpSpec11GetArgumentINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEET_St17basic_string_viewIcS5_EPKNS_17ArgumentWorkspaceEl(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %7, ptr noundef nonnull align 8 dereferenceable(328) %1, i64 %41, ptr %43, ptr noundef null, i64 noundef 0)
          to label %44 unwind label %74

44:                                               ; preds = %40
  call void @_ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef @.str.4) #6
  %45 = load i64, ptr %9, align 8
  %46 = getelementptr inbounds i8, ptr %9, i64 8
  %47 = load ptr, ptr %46, align 8
  %48 = invoke noundef zeroext i1 @_ZNK4dali6OpSpec11GetArgumentIbEET_St17basic_string_viewIcSt11char_traitsIcEEPKNS_17ArgumentWorkspaceEl(ptr noundef nonnull align 8 dereferenceable(328) %1, i64 %45, ptr %47, ptr noundef null, i64 noundef 0)
          to label %49 unwind label %76

49:                                               ; preds = %44
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #6
  %50 = call noundef nonnull align 8 dereferenceable(88) ptr @_ZN4dali17ImageCacheFactory8InstanceEv()
  %51 = load i32, ptr %14, align 8, !tbaa !5
  invoke void @_ZN4dali17ImageCacheFactory3GetEiRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmbm(ptr dead_on_unwind nonnull writable sret(%"class.std::shared_ptr") align 8 %10, ptr noundef nonnull align 8 dereferenceable(88) %50, i32 noundef %51, ptr noundef nonnull align 8 dereferenceable(32) %7, i64 noundef %33, i1 noundef zeroext %48, i64 noundef %39)
          to label %52 unwind label %78

52:                                               ; preds = %49
  %53 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt10shared_ptrIN4dali10ImageCacheEEaSEOS2_(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef nonnull align 8 dereferenceable(16) %10) #6
  call void @_ZNSt12__shared_ptrIN4dali10ImageCacheELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %10) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #6
  call void @_ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef @.str.5) #6
  %54 = load i64, ptr %11, align 8
  %55 = getelementptr inbounds i8, ptr %11, i64 8
  %56 = load ptr, ptr %55, align 8
  %57 = invoke noundef zeroext i1 @_ZNK4dali6OpSpec11GetArgumentIbEET_St17basic_string_viewIcSt11char_traitsIcEEPKNS_17ArgumentWorkspaceEl(ptr noundef nonnull align 8 dereferenceable(328) %1, i64 %54, ptr %56, ptr noundef null, i64 noundef 0)
          to label %58 unwind label %76

58:                                               ; preds = %52
  %59 = zext i1 %57 to i8
  store i8 %59, ptr %20, align 4, !tbaa !21
  call void @_ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef @.str.6) #6
  %60 = load i64, ptr %12, align 8
  %61 = getelementptr inbounds i8, ptr %12, i64 8
  %62 = load ptr, ptr %61, align 8
  %63 = invoke noundef i32 @_ZNK4dali6OpSpec11GetArgumentIiEET_St17basic_string_viewIcSt11char_traitsIcEEPKNS_17ArgumentWorkspaceEl(ptr noundef nonnull align 8 dereferenceable(328) %1, i64 %60, ptr %62, ptr noundef null, i64 noundef 0)
          to label %64 unwind label %80

64:                                               ; preds = %58
  %65 = invoke noalias noundef nonnull dereferenceable(32) ptr @_Znwm(i64 noundef 32) #7
          to label %66 unwind label %82

66:                                               ; preds = %64
  invoke void @_ZN4dali7kernels16ScatterGatherGPUC2Em(ptr noundef nonnull align 8 dereferenceable(32) %65, i64 noundef 262144)
          to label %67 unwind label %84

67:                                               ; preds = %66
  call void @_ZNSt10unique_ptrIN4dali7kernels16ScatterGatherGPUESt14default_deleteIS2_EE5resetEPS2_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull %65) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #6
  br label %88

68:                                               ; preds = %19, %2
  %69 = landingpad { ptr, i32 }
          cleanup
  br label %89

70:                                               ; preds = %26
  %71 = landingpad { ptr, i32 }
          cleanup
  br label %89

72:                                               ; preds = %31
  %73 = landingpad { ptr, i32 }
          cleanup
  br label %89

74:                                               ; preds = %40
  %75 = landingpad { ptr, i32 }
          cleanup
  br label %87

76:                                               ; preds = %52, %44
  %77 = landingpad { ptr, i32 }
          cleanup
  br label %86

78:                                               ; preds = %49
  %79 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #6
  br label %86

80:                                               ; preds = %58
  %81 = landingpad { ptr, i32 }
          cleanup
  br label %86

82:                                               ; preds = %64
  %83 = landingpad { ptr, i32 }
          cleanup
  br label %86

84:                                               ; preds = %66
  %85 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %65, i64 noundef 32) #8
  br label %86

86:                                               ; preds = %80, %84, %82, %78, %76
  %.pn.pn.pn = phi { ptr, i32 } [ %77, %76 ], [ %79, %78 ], [ %81, %80 ], [ %85, %84 ], [ %83, %82 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #6
  br label %87

87:                                               ; preds = %86, %74
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %86 ], [ %75, %74 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #6
  br label %89

88:                                               ; preds = %38, %67, %25
  ret void

89:                                               ; preds = %70, %87, %72, %68
  %.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %69, %68 ], [ %71, %70 ], [ %.pn.pn.pn.pn, %87 ], [ %73, %72 ]
  call void @_ZNSt10unique_ptrIN4dali7kernels16ScatterGatherGPUESt14default_deleteIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %13) #6
  call void @_ZNSt12__shared_ptrIN4dali10ImageCacheELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %0) #6
  resume { ptr, i32 } %.pn.pn.pn.pn.pn.pn.pn
}

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNK4dali6OpSpec11GetArgumentIiEET_St17basic_string_viewIcSt11char_traitsIcEEPKNS_17ArgumentWorkspaceEl(ptr noundef nonnull align 8 dereferenceable(328), i64, ptr, ptr noundef, i64 noundef) local_unnamed_addr #1 align 2

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK4dali6OpSpec11HasArgumentESt17basic_string_viewIcSt11char_traitsIcEE(ptr noundef nonnull align 8 dereferenceable(328), i64, ptr) local_unnamed_addr #1 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK4dali6OpSpec11GetArgumentIbEET_St17basic_string_viewIcSt11char_traitsIcEEPKNS_17ArgumentWorkspaceEl(ptr noundef nonnull align 8 dereferenceable(328), i64, ptr, ptr noundef, i64 noundef) local_unnamed_addr #1 align 2

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

declare void @_ZN4dali17ImageCacheFactory3GetEiRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmbm(ptr dead_on_unwind writable sret(%"class.std::shared_ptr") align 8, ptr noundef nonnull align 8 dereferenceable(88), i32 noundef, ptr noundef nonnull align 8 dereferenceable(32), i64 noundef, i1 noundef zeroext, i64 noundef) local_unnamed_addr #3

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

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

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

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) local_unnamed_addr #4

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

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) local_unnamed_addr #5

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

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

attributes #0 = { 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 #1 = { 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 #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { "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 = { nobuiltin allocsize(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 = { nobuiltin nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind }
attributes #7 = { builtin allocsize(0) }
attributes #8 = { builtin 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, !19, i64 24}
!6 = !{!"_ZTSN4dali17CachedDecoderImplE", !7, i64 0, !13, i64 16, !19, i64 24, !20, i64 28}
!7 = !{!"_ZTSSt10shared_ptrIN4dali10ImageCacheEE", !8, i64 0}
!8 = !{!"_ZTSSt12__shared_ptrIN4dali10ImageCacheELN9__gnu_cxx12_Lock_policyE2EE", !9, i64 0, !12, i64 8}
!9 = !{!"any pointer", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C++ TBAA"}
!12 = !{!"_ZTSSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EE", !9, i64 0}
!13 = !{!"_ZTSSt10unique_ptrIN4dali7kernels16ScatterGatherGPUESt14default_deleteIS2_EE", !14, i64 0}
!14 = !{!"_ZTSSt15__uniq_ptr_dataIN4dali7kernels16ScatterGatherGPUESt14default_deleteIS2_ELb1ELb1EE", !15, i64 0}
!15 = !{!"_ZTSSt15__uniq_ptr_implIN4dali7kernels16ScatterGatherGPUESt14default_deleteIS2_EE", !16, i64 0}
!16 = !{!"_ZTSSt5tupleIJPN4dali7kernels16ScatterGatherGPUESt14default_deleteIS2_EEE", !17, i64 0}
!17 = !{!"_ZTSSt11_Tuple_implILm0EJPN4dali7kernels16ScatterGatherGPUESt14default_deleteIS2_EEE", !18, i64 0}
!18 = !{!"_ZTSSt10_Head_baseILm0EPN4dali7kernels16ScatterGatherGPUELb0EE", !9, i64 0}
!19 = !{!"int", !10, i64 0}
!20 = !{!"bool", !10, i64 0}
!21 = !{!6, !20, i64 28}


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