; LLVM IR from apache/mxnet :: src/lib_api.ll (ZN5mxnet3ext8MXTensor11setDLTensorEv)

; 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::__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] }
%"struct.mxnet::ext::MXTensor" = type <{ ptr, %"class.std::vector.3", i32, [4 x i8], i64, %"struct.mxnet::ext::MXContext", %struct.DLTensor, i32, [4 x i8] }>
%"class.std::vector.3" = type { %"struct.std::_Vector_base.4" }
%"struct.std::_Vector_base.4" = type { %"struct.std::_Vector_base<long, std::allocator<long>>::_Vector_impl" }
%"struct.std::_Vector_base<long, std::allocator<long>>::_Vector_impl" = type { %"struct.std::_Vector_base<long, std::allocator<long>>::_Vector_impl_data" }
%"struct.std::_Vector_base<long, std::allocator<long>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.mxnet::ext::MXContext" = type <{ %"class.std::__cxx11::basic_string", i32, [4 x i8] }>
%struct.DLTensor = type { ptr, %struct.DLContext, i32, %struct.DLDataType, ptr, ptr, i64 }
%struct.DLContext = type { i32, i32 }
%struct.DLDataType = type { i8, i8, i16 }

@.str.3 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [28 x i8], align 1
@_ZTISt13runtime_error = external constant ptr

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5mxnet3ext8MXTensor11setDLTensorEv(ptr noundef nonnull align 8 dereferenceable(140) %0) #1 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca %"class.std::__cxx11::basic_string", align 8
  %4 = alloca %"class.std::__cxx11::basic_string", align 8
  %5 = alloca %"class.std::__cxx11::basic_string", align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i1, align 1
  store ptr %0, ptr %2, align 8, !tbaa !5
  %9 = load ptr, ptr %2, align 8
  %10 = getelementptr inbounds %"struct.mxnet::ext::MXTensor", ptr %9, i32 0, i32 0
  %11 = load ptr, ptr %10, align 8, !tbaa !9
  %12 = getelementptr inbounds %"struct.mxnet::ext::MXTensor", ptr %9, i32 0, i32 6
  %13 = getelementptr inbounds %struct.DLTensor, ptr %12, i32 0, i32 0
  store ptr %11, ptr %13, align 8, !tbaa !27
  %14 = getelementptr inbounds %"struct.mxnet::ext::MXTensor", ptr %9, i32 0, i32 1
  %15 = call noundef i64 @_ZNKSt6vectorIlSaIlEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %14) #7
  %16 = trunc i64 %15 to i32
  %17 = getelementptr inbounds %"struct.mxnet::ext::MXTensor", ptr %9, i32 0, i32 6
  %18 = getelementptr inbounds %struct.DLTensor, ptr %17, i32 0, i32 2
  store i32 %16, ptr %18, align 8, !tbaa !28
  %19 = getelementptr inbounds %"struct.mxnet::ext::MXTensor", ptr %9, i32 0, i32 1
  %20 = call noundef ptr @_ZNSt6vectorIlSaIlEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %19) #7
  %21 = getelementptr inbounds %"struct.mxnet::ext::MXTensor", ptr %9, i32 0, i32 6
  %22 = getelementptr inbounds %struct.DLTensor, ptr %21, i32 0, i32 4
  store ptr %20, ptr %22, align 8, !tbaa !29
  %23 = getelementptr inbounds %"struct.mxnet::ext::MXTensor", ptr %9, i32 0, i32 6
  %24 = getelementptr inbounds %struct.DLTensor, ptr %23, i32 0, i32 5
  store ptr null, ptr %24, align 8, !tbaa !30
  %25 = getelementptr inbounds %"struct.mxnet::ext::MXTensor", ptr %9, i32 0, i32 6
  %26 = getelementptr inbounds %struct.DLTensor, ptr %25, i32 0, i32 6
  store i64 0, ptr %26, align 8, !tbaa !31
  %27 = getelementptr inbounds %"struct.mxnet::ext::MXTensor", ptr %9, i32 0, i32 6
  %28 = getelementptr inbounds %struct.DLTensor, ptr %27, i32 0, i32 3
  %29 = getelementptr inbounds %struct.DLDataType, ptr %28, i32 0, i32 2
  store i16 1, ptr %29, align 2, !tbaa !32
  %30 = getelementptr inbounds %"struct.mxnet::ext::MXTensor", ptr %9, i32 0, i32 5
  %31 = getelementptr inbounds %"struct.mxnet::ext::MXContext", ptr %30, i32 0, i32 1
  %32 = load i32, ptr %31, align 8, !tbaa !33
  %33 = getelementptr inbounds %"struct.mxnet::ext::MXTensor", ptr %9, i32 0, i32 6
  %34 = getelementptr inbounds %struct.DLTensor, ptr %33, i32 0, i32 1
  %35 = getelementptr inbounds %struct.DLContext, ptr %34, i32 0, i32 1
  store i32 %32, ptr %35, align 4, !tbaa !34
  %36 = getelementptr inbounds %"struct.mxnet::ext::MXTensor", ptr %9, i32 0, i32 5
  %37 = getelementptr inbounds %"struct.mxnet::ext::MXContext", ptr %36, i32 0, i32 0
  %38 = call noundef zeroext i1 @_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_(ptr noundef nonnull align 8 dereferenceable(32) %37, ptr noundef @.str.3)
  br i1 %38, label %39, label %43

39:                                               ; preds = %1
  %40 = getelementptr inbounds %"struct.mxnet::ext::MXTensor", ptr %9, i32 0, i32 6
  %41 = getelementptr inbounds %struct.DLTensor, ptr %40, i32 0, i32 1
  %42 = getelementptr inbounds %struct.DLContext, ptr %41, i32 0, i32 0
  store i32 1, ptr %42, align 8, !tbaa !35
  br label %101

43:                                               ; preds = %1
  %44 = getelementptr inbounds %"struct.mxnet::ext::MXTensor", ptr %9, i32 0, i32 5
  %45 = getelementptr inbounds %"struct.mxnet::ext::MXContext", ptr %44, i32 0, i32 0
  %46 = call noundef zeroext i1 @_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_(ptr noundef nonnull align 8 dereferenceable(32) %45, ptr noundef @.str.4)
  br i1 %46, label %47, label %51

47:                                               ; preds = %43
  %48 = getelementptr inbounds %"struct.mxnet::ext::MXTensor", ptr %9, i32 0, i32 6
  %49 = getelementptr inbounds %struct.DLTensor, ptr %48, i32 0, i32 1
  %50 = getelementptr inbounds %struct.DLContext, ptr %49, i32 0, i32 0
  store i32 2, ptr %50, align 8, !tbaa !35
  br label %100

51:                                               ; preds = %43
  %52 = getelementptr inbounds %"struct.mxnet::ext::MXTensor", ptr %9, i32 0, i32 5
  %53 = getelementptr inbounds %"struct.mxnet::ext::MXContext", ptr %52, i32 0, i32 0
  %54 = call noundef zeroext i1 @_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_(ptr noundef nonnull align 8 dereferenceable(32) %53, ptr noundef @.str.5)
  br i1 %54, label %55, label %59

55:                                               ; preds = %51
  %56 = getelementptr inbounds %"struct.mxnet::ext::MXTensor", ptr %9, i32 0, i32 6
  %57 = getelementptr inbounds %struct.DLTensor, ptr %56, i32 0, i32 1
  %58 = getelementptr inbounds %struct.DLContext, ptr %57, i32 0, i32 0
  store i32 4, ptr %58, align 8, !tbaa !35
  br label %99

59:                                               ; preds = %51
  %60 = getelementptr inbounds %"struct.mxnet::ext::MXTensor", ptr %9, i32 0, i32 5
  %61 = getelementptr inbounds %"struct.mxnet::ext::MXContext", ptr %60, i32 0, i32 0
  %62 = call noundef zeroext i1 @_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_(ptr noundef nonnull align 8 dereferenceable(32) %61, ptr noundef @.str.6)
  br i1 %62, label %63, label %67

63:                                               ; preds = %59
  %64 = getelementptr inbounds %"struct.mxnet::ext::MXTensor", ptr %9, i32 0, i32 6
  %65 = getelementptr inbounds %struct.DLTensor, ptr %64, i32 0, i32 1
  %66 = getelementptr inbounds %struct.DLContext, ptr %65, i32 0, i32 0
  store i32 7, ptr %66, align 8, !tbaa !35
  br label %98

67:                                               ; preds = %59
  %68 = getelementptr inbounds %"struct.mxnet::ext::MXTensor", ptr %9, i32 0, i32 5
  %69 = getelementptr inbounds %"struct.mxnet::ext::MXContext", ptr %68, i32 0, i32 0
  %70 = call noundef zeroext i1 @_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_(ptr noundef nonnull align 8 dereferenceable(32) %69, ptr noundef @.str.7)
  br i1 %70, label %71, label %75

71:                                               ; preds = %67
  %72 = getelementptr inbounds %"struct.mxnet::ext::MXTensor", ptr %9, i32 0, i32 6
  %73 = getelementptr inbounds %struct.DLTensor, ptr %72, i32 0, i32 1
  %74 = getelementptr inbounds %struct.DLContext, ptr %73, i32 0, i32 0
  store i32 8, ptr %74, align 8, !tbaa !35
  br label %97

75:                                               ; preds = %67
  %76 = getelementptr inbounds %"struct.mxnet::ext::MXTensor", ptr %9, i32 0, i32 5
  %77 = getelementptr inbounds %"struct.mxnet::ext::MXContext", ptr %76, i32 0, i32 0
  %78 = call noundef zeroext i1 @_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_(ptr noundef nonnull align 8 dereferenceable(32) %77, ptr noundef @.str.8)
  br i1 %78, label %79, label %83

79:                                               ; preds = %75
  %80 = getelementptr inbounds %"struct.mxnet::ext::MXTensor", ptr %9, i32 0, i32 6
  %81 = getelementptr inbounds %struct.DLTensor, ptr %80, i32 0, i32 1
  %82 = getelementptr inbounds %struct.DLContext, ptr %81, i32 0, i32 0
  store i32 9, ptr %82, align 8, !tbaa !35
  br label %96

83:                                               ; preds = %75
  %84 = getelementptr inbounds %"struct.mxnet::ext::MXTensor", ptr %9, i32 0, i32 5
  %85 = getelementptr inbounds %"struct.mxnet::ext::MXContext", ptr %84, i32 0, i32 0
  %86 = call noundef zeroext i1 @_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_(ptr noundef nonnull align 8 dereferenceable(32) %85, ptr noundef @.str.9)
  br i1 %86, label %87, label %91

87:                                               ; preds = %83
  %88 = getelementptr inbounds %"struct.mxnet::ext::MXTensor", ptr %9, i32 0, i32 6
  %89 = getelementptr inbounds %struct.DLTensor, ptr %88, i32 0, i32 1
  %90 = getelementptr inbounds %struct.DLContext, ptr %89, i32 0, i32 0
  store i32 10, ptr %90, align 8, !tbaa !35
  br label %95

91:                                               ; preds = %83
  %92 = getelementptr inbounds %"struct.mxnet::ext::MXTensor", ptr %9, i32 0, i32 6
  %93 = getelementptr inbounds %struct.DLTensor, ptr %92, i32 0, i32 1
  %94 = getelementptr inbounds %struct.DLContext, ptr %93, i32 0, i32 0
  store i32 12, ptr %94, align 8, !tbaa !35
  br label %95

95:                                               ; preds = %91, %87
  br label %96

96:                                               ; preds = %95, %79
  br label %97

97:                                               ; preds = %96, %71
  br label %98

98:                                               ; preds = %97, %63
  br label %99

99:                                               ; preds = %98, %55
  br label %100

100:                                              ; preds = %99, %47
  br label %101

101:                                              ; preds = %100, %39
  %102 = getelementptr inbounds %"struct.mxnet::ext::MXTensor", ptr %9, i32 0, i32 2
  %103 = load i32, ptr %102, align 8, !tbaa !36
  switch i32 %103, label %153 [
    i32 0, label %104
    i32 1, label %111
    i32 2, label %118
    i32 3, label %125
    i32 4, label %132
    i32 5, label %139
    i32 6, label %146
  ]

104:                                              ; preds = %101
  %105 = getelementptr inbounds %"struct.mxnet::ext::MXTensor", ptr %9, i32 0, i32 6
  %106 = getelementptr inbounds %struct.DLTensor, ptr %105, i32 0, i32 3
  %107 = getelementptr inbounds %struct.DLDataType, ptr %106, i32 0, i32 0
  store i8 2, ptr %107, align 4, !tbaa !37
  %108 = getelementptr inbounds %"struct.mxnet::ext::MXTensor", ptr %9, i32 0, i32 6
  %109 = getelementptr inbounds %struct.DLTensor, ptr %108, i32 0, i32 3
  %110 = getelementptr inbounds %struct.DLDataType, ptr %109, i32 0, i32 1
  store i8 32, ptr %110, align 1, !tbaa !38
  br label %183

111:                                              ; preds = %101
  %112 = getelementptr inbounds %"struct.mxnet::ext::MXTensor", ptr %9, i32 0, i32 6
  %113 = getelementptr inbounds %struct.DLTensor, ptr %112, i32 0, i32 3
  %114 = getelementptr inbounds %struct.DLDataType, ptr %113, i32 0, i32 0
  store i8 2, ptr %114, align 4, !tbaa !37
  %115 = getelementptr inbounds %"struct.mxnet::ext::MXTensor", ptr %9, i32 0, i32 6
  %116 = getelementptr inbounds %struct.DLTensor, ptr %115, i32 0, i32 3
  %117 = getelementptr inbounds %struct.DLDataType, ptr %116, i32 0, i32 1
  store i8 64, ptr %117, align 1, !tbaa !38
  br label %183

118:                                              ; preds = %101
  %119 = getelementptr inbounds %"struct.mxnet::ext::MXTensor", ptr %9, i32 0, i32 6
  %120 = getelementptr inbounds %struct.DLTensor, ptr %119, i32 0, i32 3
  %121 = getelementptr inbounds %struct.DLDataType, ptr %120, i32 0, i32 0
  store i8 2, ptr %121, align 4, !tbaa !37
  %122 = getelementptr inbounds %"struct.mxnet::ext::MXTensor", ptr %9, i32 0, i32 6
  %123 = getelementptr inbounds %struct.DLTensor, ptr %122, i32 0, i32 3
  %124 = getelementptr inbounds %struct.DLDataType, ptr %123, i32 0, i32 1
  store i8 16, ptr %124, align 1, !tbaa !38
  br label %183

125:                                              ; preds = %101
  %126 = getelementptr inbounds %"struct.mxnet::ext::MXTensor", ptr %9, i32 0, i32 6
  %127 = getelementptr inbounds %struct.DLTensor, ptr %126, i32 0, i32 3
  %128 = getelementptr inbounds %struct.DLDataType, ptr %127, i32 0, i32 0
  store i8 1, ptr %128, align 4, !tbaa !37
  %129 = getelementptr inbounds %"struct.mxnet::ext::MXTensor", ptr %9, i32 0, i32 6
  %130 = getelementptr inbounds %struct.DLTensor, ptr %129, i32 0, i32 3
  %131 = getelementptr inbounds %struct.DLDataType, ptr %130, i32 0, i32 1
  store i8 8, ptr %131, align 1, !tbaa !38
  br label %183

132:                                              ; preds = %101
  %133 = getelementptr inbounds %"struct.mxnet::ext::MXTensor", ptr %9, i32 0, i32 6
  %134 = getelementptr inbounds %struct.DLTensor, ptr %133, i32 0, i32 3
  %135 = getelementptr inbounds %struct.DLDataType, ptr %134, i32 0, i32 0
  store i8 0, ptr %135, align 4, !tbaa !37
  %136 = getelementptr inbounds %"struct.mxnet::ext::MXTensor", ptr %9, i32 0, i32 6
  %137 = getelementptr inbounds %struct.DLTensor, ptr %136, i32 0, i32 3
  %138 = getelementptr inbounds %struct.DLDataType, ptr %137, i32 0, i32 1
  store i8 32, ptr %138, align 1, !tbaa !38
  br label %183

139:                                              ; preds = %101
  %140 = getelementptr inbounds %"struct.mxnet::ext::MXTensor", ptr %9, i32 0, i32 6
  %141 = getelementptr inbounds %struct.DLTensor, ptr %140, i32 0, i32 3
  %142 = getelementptr inbounds %struct.DLDataType, ptr %141, i32 0, i32 0
  store i8 0, ptr %142, align 4, !tbaa !37
  %143 = getelementptr inbounds %"struct.mxnet::ext::MXTensor", ptr %9, i32 0, i32 6
  %144 = getelementptr inbounds %struct.DLTensor, ptr %143, i32 0, i32 3
  %145 = getelementptr inbounds %struct.DLDataType, ptr %144, i32 0, i32 1
  store i8 8, ptr %145, align 1, !tbaa !38
  br label %183

146:                                              ; preds = %101
  %147 = getelementptr inbounds %"struct.mxnet::ext::MXTensor", ptr %9, i32 0, i32 6
  %148 = getelementptr inbounds %struct.DLTensor, ptr %147, i32 0, i32 3
  %149 = getelementptr inbounds %struct.DLDataType, ptr %148, i32 0, i32 0
  store i8 0, ptr %149, align 4, !tbaa !37
  %150 = getelementptr inbounds %"struct.mxnet::ext::MXTensor", ptr %9, i32 0, i32 6
  %151 = getelementptr inbounds %struct.DLTensor, ptr %150, i32 0, i32 3
  %152 = getelementptr inbounds %struct.DLDataType, ptr %151, i32 0, i32 1
  store i8 64, ptr %152, align 1, !tbaa !38
  br label %183

153:                                              ; preds = %101
  %154 = getelementptr inbounds %"struct.mxnet::ext::MXTensor", ptr %9, i32 0, i32 6
  %155 = getelementptr inbounds %struct.DLTensor, ptr %154, i32 0, i32 3
  %156 = getelementptr inbounds %struct.DLDataType, ptr %155, i32 0, i32 0
  store i8 0, ptr %156, align 4, !tbaa !37
  %157 = getelementptr inbounds %"struct.mxnet::ext::MXTensor", ptr %9, i32 0, i32 6
  %158 = getelementptr inbounds %struct.DLTensor, ptr %157, i32 0, i32 3
  %159 = getelementptr inbounds %struct.DLDataType, ptr %158, i32 0, i32 1
  store i8 0, ptr %159, align 1, !tbaa !38
  store i1 true, ptr %8, align 1
  %160 = call ptr @__cxa_allocate_exception(i64 16) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr %3) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr %4) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr %5) #7
  %161 = getelementptr inbounds %"struct.mxnet::ext::MXTensor", ptr %9, i32 0, i32 2
  %162 = load i32, ptr %161, align 8, !tbaa !36
  call void @_ZNSt7__cxx119to_stringEi(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %5, i32 noundef %162) #7
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %4, ptr noundef @.str.10, ptr noundef nonnull align 8 dereferenceable(32) %5)
          to label %163 unwind label %166

163:                                              ; preds = %153
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %3, ptr noundef nonnull align 8 dereferenceable(32) %4, ptr noundef @.str.11)
          to label %164 unwind label %170

164:                                              ; preds = %163
  invoke void @_ZNSt13runtime_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(16) %160, ptr noundef nonnull align 8 dereferenceable(32) %3)
          to label %165 unwind label %174

165:                                              ; preds = %164
  store i1 false, ptr %8, align 1
  invoke void @__cxa_throw(ptr %160, ptr @_ZTISt13runtime_error, ptr @_ZNSt13runtime_errorD1Ev) #8
          to label %189 unwind label %174

166:                                              ; preds = %153
  %167 = landingpad { ptr, i32 }
          cleanup
  %168 = extractvalue { ptr, i32 } %167, 0
  store ptr %168, ptr %6, align 8
  %169 = extractvalue { ptr, i32 } %167, 1
  store i32 %169, ptr %7, align 4
  br label %179

170:                                              ; preds = %163
  %171 = landingpad { ptr, i32 }
          cleanup
  %172 = extractvalue { ptr, i32 } %171, 0
  store ptr %172, ptr %6, align 8
  %173 = extractvalue { ptr, i32 } %171, 1
  store i32 %173, ptr %7, align 4
  br label %178

174:                                              ; preds = %165, %164
  %175 = landingpad { ptr, i32 }
          cleanup
  %176 = extractvalue { ptr, i32 } %175, 0
  store ptr %176, ptr %6, align 8
  %177 = extractvalue { ptr, i32 } %175, 1
  store i32 %177, ptr %7, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #7
  br label %178

178:                                              ; preds = %174, %170
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #7
  br label %179

179:                                              ; preds = %178, %166
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %5) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %4) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %3) #7
  %180 = load i1, ptr %8, align 1
  br i1 %180, label %181, label %182

181:                                              ; preds = %179
  call void @__cxa_free_exception(ptr %160) #7
  br label %182

182:                                              ; preds = %181, %179
  br label %184

183:                                              ; preds = %146, %139, %132, %125, %118, %111, %104
  ret void

184:                                              ; preds = %182
  %185 = load ptr, ptr %6, align 8
  %186 = load i32, ptr %7, align 4
  %187 = insertvalue { ptr, i32 } poison, ptr %185, 0
  %188 = insertvalue { ptr, i32 } %187, i32 %186, 1
  resume { ptr, i32 } %188

189:                                              ; preds = %165
  unreachable
}

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

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

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

declare ptr @__cxa_allocate_exception(i64)

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

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

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

declare void @_ZNSt13runtime_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #5

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

declare void @__cxa_throw(ptr, ptr, ptr)

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

declare void @__cxa_free_exception(ptr)

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 #4 = { 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 #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 "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nounwind }
attributes #8 = { noreturn }

!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, !6, i64 0}
!10 = !{!"_ZTSN5mxnet3ext8MXTensorE", !6, i64 0, !11, i64 8, !15, i64 32, !16, i64 40, !17, i64 48, !21, i64 88, !26, i64 136}
!11 = !{!"_ZTSSt6vectorIlSaIlEE", !12, i64 0}
!12 = !{!"_ZTSSt12_Vector_baseIlSaIlEE", !13, i64 0}
!13 = !{!"_ZTSNSt12_Vector_baseIlSaIlEE12_Vector_implE", !14, i64 0}
!14 = !{!"_ZTSNSt12_Vector_baseIlSaIlEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!15 = !{!"_ZTSN5mxnet3ext7MXDTypeE", !7, i64 0}
!16 = !{!"long", !7, i64 0}
!17 = !{!"_ZTSN5mxnet3ext9MXContextE", !18, i64 0, !20, i64 32}
!18 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !19, i64 0, !16, i64 8, !7, i64 16}
!19 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!20 = !{!"int", !7, i64 0}
!21 = !{!"_ZTS8DLTensor", !6, i64 0, !22, i64 8, !20, i64 16, !24, i64 20, !6, i64 24, !6, i64 32, !16, i64 40}
!22 = !{!"_ZTS9DLContext", !23, i64 0, !20, i64 4}
!23 = !{!"_ZTS12DLDeviceType", !7, i64 0}
!24 = !{!"_ZTS10DLDataType", !7, i64 0, !7, i64 1, !25, i64 2}
!25 = !{!"short", !7, i64 0}
!26 = !{!"_ZTSN5mxnet3ext13MXStorageTypeE", !7, i64 0}
!27 = !{!10, !6, i64 88}
!28 = !{!10, !20, i64 104}
!29 = !{!10, !6, i64 112}
!30 = !{!10, !6, i64 120}
!31 = !{!10, !16, i64 128}
!32 = !{!10, !25, i64 110}
!33 = !{!10, !20, i64 80}
!34 = !{!10, !20, i64 100}
!35 = !{!10, !23, i64 96}
!36 = !{!10, !15, i64 32}
!37 = !{!10, !7, i64 108}
!38 = !{!10, !7, i64 109}


; 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::__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] }

@.str.3 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [28 x i8], align 1
@_ZTISt13runtime_error = external constant ptr

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5mxnet3ext8MXTensor11setDLTensorEv(ptr noundef nonnull align 8 dereferenceable(140) %0) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.std::__cxx11::basic_string", align 8
  %3 = alloca %"class.std::__cxx11::basic_string", align 8
  %4 = alloca %"class.std::__cxx11::basic_string", align 8
  %5 = load ptr, ptr %0, align 8, !tbaa !5
  %6 = getelementptr inbounds i8, ptr %0, i64 88
  store ptr %5, ptr %6, align 8, !tbaa !26
  %7 = getelementptr inbounds i8, ptr %0, i64 8
  %8 = tail call noundef i64 @_ZNKSt6vectorIlSaIlEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #8
  %9 = trunc i64 %8 to i32
  %10 = getelementptr inbounds i8, ptr %0, i64 104
  store i32 %9, ptr %10, align 8, !tbaa !27
  %11 = tail call noundef ptr @_ZNSt6vectorIlSaIlEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #8
  %12 = getelementptr inbounds i8, ptr %0, i64 112
  store ptr %11, ptr %12, align 8, !tbaa !28
  %13 = getelementptr inbounds i8, ptr %0, i64 120
  %14 = getelementptr inbounds i8, ptr %0, i64 108
  %15 = getelementptr inbounds i8, ptr %0, i64 110
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %13, i8 0, i64 16, i1 false)
  store i16 1, ptr %15, align 2, !tbaa !29
  %16 = getelementptr inbounds i8, ptr %0, i64 48
  %17 = getelementptr inbounds i8, ptr %0, i64 80
  %18 = load i32, ptr %17, align 8, !tbaa !30
  %19 = getelementptr inbounds i8, ptr %0, i64 96
  %20 = getelementptr inbounds i8, ptr %0, i64 100
  store i32 %18, ptr %20, align 4, !tbaa !31
  %21 = tail call noundef zeroext i1 @_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_(ptr noundef nonnull align 8 dereferenceable(32) %16, ptr noundef nonnull @.str.3)
  br i1 %21, label %34, label %22

22:                                               ; preds = %1
  %23 = tail call noundef zeroext i1 @_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_(ptr noundef nonnull align 8 dereferenceable(32) %16, ptr noundef nonnull @.str.4)
  br i1 %23, label %34, label %24

24:                                               ; preds = %22
  %25 = tail call noundef zeroext i1 @_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_(ptr noundef nonnull align 8 dereferenceable(32) %16, ptr noundef nonnull @.str.5)
  br i1 %25, label %34, label %26

26:                                               ; preds = %24
  %27 = tail call noundef zeroext i1 @_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_(ptr noundef nonnull align 8 dereferenceable(32) %16, ptr noundef nonnull @.str.6)
  br i1 %27, label %34, label %28

28:                                               ; preds = %26
  %29 = tail call noundef zeroext i1 @_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_(ptr noundef nonnull align 8 dereferenceable(32) %16, ptr noundef nonnull @.str.7)
  br i1 %29, label %34, label %30

30:                                               ; preds = %28
  %31 = tail call noundef zeroext i1 @_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_(ptr noundef nonnull align 8 dereferenceable(32) %16, ptr noundef nonnull @.str.8)
  br i1 %31, label %34, label %32

32:                                               ; preds = %30
  %33 = tail call noundef zeroext i1 @_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_(ptr noundef nonnull align 8 dereferenceable(32) %16, ptr noundef nonnull @.str.9)
  %. = select i1 %33, i32 10, i32 12
  br label %34

34:                                               ; preds = %32, %30, %28, %26, %24, %22, %1
  %.sink = phi i32 [ 1, %1 ], [ 2, %22 ], [ 4, %24 ], [ 7, %26 ], [ 8, %28 ], [ 9, %30 ], [ %., %32 ]
  store i32 %.sink, ptr %19, align 8, !tbaa !32
  %35 = getelementptr inbounds i8, ptr %0, i64 32
  %36 = load i32, ptr %35, align 8, !tbaa !33
  %37 = icmp ult i32 %36, 7
  br i1 %37, label %switch.lookup, label %38

38:                                               ; preds = %34
  store i8 0, ptr %14, align 4, !tbaa !34
  %39 = getelementptr inbounds i8, ptr %0, i64 109
  store i8 0, ptr %39, align 1, !tbaa !35
  %40 = tail call ptr @__cxa_allocate_exception(i64 16) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %2) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #8
  %41 = load i32, ptr %35, align 8, !tbaa !33
  call void @_ZNSt7__cxx119to_stringEi(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %4, i32 noundef %41) #8
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %3, ptr noundef nonnull @.str.10, ptr noundef nonnull align 8 dereferenceable(32) %4)
          to label %42 unwind label %.thread

42:                                               ; preds = %38
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %2, ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef nonnull @.str.11)
          to label %43 unwind label %46

43:                                               ; preds = %42
  invoke void @_ZNSt13runtime_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(16) %40, ptr noundef nonnull align 8 dereferenceable(32) %2)
          to label %44 unwind label %48

44:                                               ; preds = %43
  invoke void @__cxa_throw(ptr nonnull %40, ptr nonnull @_ZTISt13runtime_error, ptr nonnull @_ZNSt13runtime_errorD1Ev) #9
          to label %56 unwind label %48

.thread:                                          ; preds = %38
  %45 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #8
  br label %51

46:                                               ; preds = %42
  %47 = landingpad { ptr, i32 }
          cleanup
  br label %50

48:                                               ; preds = %44, %43
  %.0 = phi i1 [ false, %44 ], [ true, %43 ]
  %49 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #8
  br label %50

50:                                               ; preds = %46, %48
  %.pn = phi { ptr, i32 } [ %49, %48 ], [ %47, %46 ]
  %.1 = phi i1 [ %.0, %48 ], [ true, %46 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #8
  br i1 %.1, label %51, label %55

51:                                               ; preds = %.thread, %50
  %.pn.pn12 = phi { ptr, i32 } [ %45, %.thread ], [ %.pn, %50 ]
  call void @__cxa_free_exception(ptr %40) #8
  br label %55

switch.lookup:                                    ; preds = %34
  %52 = shl nuw nsw i32 %36, 3
  %switch.shiftamt = zext nneg i32 %52 to i56
  %switch.downshift = lshr i56 16908802, %switch.shiftamt
  %switch.masked = trunc i56 %switch.downshift to i8
  %53 = shl nuw nsw i32 %36, 3
  %switch.shiftamt17 = zext nneg i32 %53 to i56
  %switch.downshift18 = lshr i56 18023332176740384, %switch.shiftamt17
  %switch.masked19 = trunc i56 %switch.downshift18 to i8
  store i8 %switch.masked, ptr %14, align 4, !tbaa !34
  %54 = getelementptr inbounds i8, ptr %0, i64 109
  store i8 %switch.masked19, ptr %54, align 1, !tbaa !35
  ret void

55:                                               ; preds = %50, %51
  %.pn.pn11 = phi { ptr, i32 } [ %.pn, %50 ], [ %.pn.pn12, %51 ]
  resume { ptr, i32 } %.pn.pn11

56:                                               ; preds = %44
  unreachable
}

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

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

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

declare ptr @__cxa_allocate_exception(i64) local_unnamed_addr

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

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

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

declare void @_ZNSt13runtime_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #5

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

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

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

declare void @__cxa_free_exception(ptr) local_unnamed_addr

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #7

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 #4 = { 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 #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 "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #8 = { nounwind }
attributes #9 = { noreturn }

!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, !7, i64 0}
!6 = !{!"_ZTSN5mxnet3ext8MXTensorE", !7, i64 0, !10, i64 8, !14, i64 32, !15, i64 40, !16, i64 48, !20, i64 88, !25, i64 136}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTSSt6vectorIlSaIlEE", !11, i64 0}
!11 = !{!"_ZTSSt12_Vector_baseIlSaIlEE", !12, i64 0}
!12 = !{!"_ZTSNSt12_Vector_baseIlSaIlEE12_Vector_implE", !13, i64 0}
!13 = !{!"_ZTSNSt12_Vector_baseIlSaIlEE17_Vector_impl_dataE", !7, i64 0, !7, i64 8, !7, i64 16}
!14 = !{!"_ZTSN5mxnet3ext7MXDTypeE", !8, i64 0}
!15 = !{!"long", !8, i64 0}
!16 = !{!"_ZTSN5mxnet3ext9MXContextE", !17, i64 0, !19, i64 32}
!17 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !18, i64 0, !15, i64 8, !8, i64 16}
!18 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !7, i64 0}
!19 = !{!"int", !8, i64 0}
!20 = !{!"_ZTS8DLTensor", !7, i64 0, !21, i64 8, !19, i64 16, !23, i64 20, !7, i64 24, !7, i64 32, !15, i64 40}
!21 = !{!"_ZTS9DLContext", !22, i64 0, !19, i64 4}
!22 = !{!"_ZTS12DLDeviceType", !8, i64 0}
!23 = !{!"_ZTS10DLDataType", !8, i64 0, !8, i64 1, !24, i64 2}
!24 = !{!"short", !8, i64 0}
!25 = !{!"_ZTSN5mxnet3ext13MXStorageTypeE", !8, i64 0}
!26 = !{!6, !7, i64 88}
!27 = !{!6, !19, i64 104}
!28 = !{!6, !7, i64 112}
!29 = !{!6, !24, i64 110}
!30 = !{!6, !19, i64 80}
!31 = !{!6, !19, i64 100}
!32 = !{!6, !22, i64 96}
!33 = !{!6, !14, i64 32}
!34 = !{!6, !8, i64 108}
!35 = !{!6, !8, i64 109}


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