; LLVM IR from apache/mxnet :: example/extensions/lib_custom_op (transposecsr_lib)

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z9transposeRN5mxnet3ext8MXTensorES2_RKNS0_10OpResourceE(ptr noundef nonnull align 8 dereferenceable(140) %0, ptr noundef nonnull align 8 dereferenceable(140) %1, ptr noundef nonnull align 8 dereferenceable(72) %2) #0 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca %"class.std::vector", align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca ptr, align 8
  %13 = alloca %"class.std::vector", align 8
  %14 = alloca i64, align 8
  %15 = alloca %"class.std::allocator", align 1
  %16 = alloca ptr, align 8
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca ptr, align 8
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  %25 = load ptr, ptr %4, align 8, !tbaa !5
  %26 = call noundef ptr @_ZN5mxnet3ext8MXTensor4dataINS0_8MXSparseEEEPT_v(ptr noundef nonnull align 8 dereferenceable(140) %25)
  store ptr %26, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  %27 = load ptr, ptr %5, align 8, !tbaa !5
  %28 = call noundef ptr @_ZN5mxnet3ext8MXTensor4dataINS0_8MXSparseEEEPT_v(ptr noundef nonnull align 8 dereferenceable(140) %27)
  store ptr %28, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %9) #6
  %29 = load ptr, ptr %4, align 8, !tbaa !5
  %30 = getelementptr inbounds %"struct.mxnet::ext::MXTensor", ptr %29, i32 0, i32 1
  call void @_ZNSt6vectorIlSaIlEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull align 8 dereferenceable(24) %30)
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  %31 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef 0) #6
  %32 = load i64, ptr %31, align 8, !tbaa !9
  store i64 %32, ptr %10, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  %33 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef 1) #6
  %34 = load i64, ptr %33, align 8, !tbaa !9
  store i64 %34, ptr %11, align 8, !tbaa !9
  %35 = load ptr, ptr %4, align 8, !tbaa !5
  %36 = getelementptr inbounds %"struct.mxnet::ext::MXTensor", ptr %35, i32 0, i32 7
  %37 = load i32, ptr %36, align 8, !tbaa !11
  %38 = icmp eq i32 %37, 2
  br i1 %38, label %39, label %186

39:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %40 = load ptr, ptr %7, align 8, !tbaa !5
  %41 = getelementptr inbounds %"struct.mxnet::ext::MXSparse", ptr %40, i32 0, i32 0
  %42 = load ptr, ptr %41, align 8, !tbaa !28
  store ptr %42, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %13) #6
  %43 = load i64, ptr %11, align 8, !tbaa !9
  %44 = add nsw i64 %43, 2
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  store i64 0, ptr %14, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %15) #6
  call void @_ZNSaIlEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #6
  invoke void @_ZNSt6vectorIlSaIlEEC2EmRKlRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %44, ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 1 dereferenceable(1) %15)
          to label %45 unwind label %54

45:                                               ; preds = %39
  call void @_ZNSt15__new_allocatorIlED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  store i32 0, ptr %18, align 4, !tbaa !30
  br label %46

46:                                               ; preds = %70, %45
  %47 = load i32, ptr %18, align 4, !tbaa !30
  %48 = sext i32 %47 to i64
  %49 = load ptr, ptr %7, align 8, !tbaa !5
  %50 = getelementptr inbounds %"struct.mxnet::ext::MXSparse", ptr %49, i32 0, i32 1
  %51 = load i64, ptr %50, align 8, !tbaa !31
  %52 = icmp slt i64 %48, %51
  br i1 %52, label %58, label %53

53:                                               ; preds = %46
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  br label %73

54:                                               ; preds = %39
  %55 = landingpad { ptr, i32 }
          cleanup
  %56 = extractvalue { ptr, i32 } %55, 0
  store ptr %56, ptr %16, align 8
  %57 = extractvalue { ptr, i32 } %55, 1
  store i32 %57, ptr %17, align 4
  call void @_ZNSt15__new_allocatorIlED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  br label %185

58:                                               ; preds = %46
  %59 = load ptr, ptr %7, align 8, !tbaa !5
  %60 = getelementptr inbounds %"struct.mxnet::ext::MXSparse", ptr %59, i32 0, i32 2
  %61 = load ptr, ptr %60, align 8, !tbaa !32
  %62 = load i32, ptr %18, align 4, !tbaa !30
  %63 = sext i32 %62 to i64
  %64 = getelementptr inbounds i64, ptr %61, i64 %63
  %65 = load i64, ptr %64, align 8, !tbaa !9
  %66 = add nsw i64 %65, 2
  %67 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %66) #6
  %68 = load i64, ptr %67, align 8, !tbaa !9
  %69 = add nsw i64 %68, 1
  store i64 %69, ptr %67, align 8, !tbaa !9
  br label %70

70:                                               ; preds = %58
  %71 = load i32, ptr %18, align 4, !tbaa !30
  %72 = add nsw i32 %71, 1
  store i32 %72, ptr %18, align 4, !tbaa !30
  br label %46, !llvm.loop !33

73:                                               ; preds = %53
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #6
  store i32 2, ptr %19, align 4, !tbaa !30
  br label %74

74:                                               ; preds = %91, %73
  %75 = load i32, ptr %19, align 4, !tbaa !30
  %76 = sext i32 %75 to i64
  %77 = call noundef i64 @_ZNKSt6vectorIlSaIlEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #6
  %78 = icmp ult i64 %76, %77
  br i1 %78, label %80, label %79

79:                                               ; preds = %74
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  br label %94

80:                                               ; preds = %74
  %81 = load i32, ptr %19, align 4, !tbaa !30
  %82 = sub nsw i32 %81, 1
  %83 = sext i32 %82 to i64
  %84 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %83) #6
  %85 = load i64, ptr %84, align 8, !tbaa !9
  %86 = load i32, ptr %19, align 4, !tbaa !30
  %87 = sext i32 %86 to i64
  %88 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %87) #6
  %89 = load i64, ptr %88, align 8, !tbaa !9
  %90 = add nsw i64 %89, %85
  store i64 %90, ptr %88, align 8, !tbaa !9
  br label %91

91:                                               ; preds = %80
  %92 = load i32, ptr %19, align 4, !tbaa !30
  %93 = add nsw i32 %92, 1
  store i32 %93, ptr %19, align 4, !tbaa !30
  br label %74, !llvm.loop !35

94:                                               ; preds = %79
  %95 = load ptr, ptr %6, align 8, !tbaa !5
  %96 = load ptr, ptr %8, align 8, !tbaa !5
  %97 = load ptr, ptr %7, align 8, !tbaa !5
  %98 = getelementptr inbounds %"struct.mxnet::ext::MXSparse", ptr %97, i32 0, i32 1
  %99 = load i64, ptr %98, align 8, !tbaa !31
  %100 = trunc i64 %99 to i32
  %101 = load i64, ptr %11, align 8, !tbaa !9
  %102 = add nsw i64 %101, 1
  %103 = trunc i64 %102 to i32
  invoke void @_ZNK5mxnet3ext10OpResource12alloc_sparseEPNS0_8MXSparseEiii(ptr noundef nonnull align 8 dereferenceable(72) %95, ptr noundef %96, i32 noundef 0, i32 noundef %100, i32 noundef %103)
          to label %104 unwind label %114

104:                                              ; preds = %94
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #6
  %105 = load ptr, ptr %8, align 8, !tbaa !5
  %106 = getelementptr inbounds %"struct.mxnet::ext::MXSparse", ptr %105, i32 0, i32 0
  %107 = load ptr, ptr %106, align 8, !tbaa !28
  store ptr %107, ptr %20, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #6
  store i32 0, ptr %21, align 4, !tbaa !30
  br label %108

108:                                              ; preds = %174, %104
  %109 = load i32, ptr %21, align 4, !tbaa !30
  %110 = sext i32 %109 to i64
  %111 = load i64, ptr %10, align 8, !tbaa !9
  %112 = icmp slt i64 %110, %111
  br i1 %112, label %118, label %113

113:                                              ; preds = %108
  store i32 8, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  br label %177

114:                                              ; preds = %94
  %115 = landingpad { ptr, i32 }
          cleanup
  %116 = extractvalue { ptr, i32 } %115, 0
  store ptr %116, ptr %16, align 8
  %117 = extractvalue { ptr, i32 } %115, 1
  store i32 %117, ptr %17, align 4
  call void @_ZNSt6vectorIlSaIlEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #6
  br label %185

118:                                              ; preds = %108
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #6
  %119 = load ptr, ptr %7, align 8, !tbaa !5
  %120 = getelementptr inbounds %"struct.mxnet::ext::MXSparse", ptr %119, i32 0, i32 4
  %121 = load ptr, ptr %120, align 8, !tbaa !36
  %122 = load i32, ptr %21, align 4, !tbaa !30
  %123 = sext i32 %122 to i64
  %124 = getelementptr inbounds i64, ptr %121, i64 %123
  %125 = load i64, ptr %124, align 8, !tbaa !9
  %126 = trunc i64 %125 to i32
  store i32 %126, ptr %23, align 4, !tbaa !30
  br label %127

127:                                              ; preds = %170, %118
  %128 = load i32, ptr %23, align 4, !tbaa !30
  %129 = sext i32 %128 to i64
  %130 = load ptr, ptr %7, align 8, !tbaa !5
  %131 = getelementptr inbounds %"struct.mxnet::ext::MXSparse", ptr %130, i32 0, i32 4
  %132 = load ptr, ptr %131, align 8, !tbaa !36
  %133 = load i32, ptr %21, align 4, !tbaa !30
  %134 = add nsw i32 %133, 1
  %135 = sext i32 %134 to i64
  %136 = getelementptr inbounds i64, ptr %132, i64 %135
  %137 = load i64, ptr %136, align 8, !tbaa !9
  %138 = icmp slt i64 %129, %137
  br i1 %138, label %140, label %139

139:                                              ; preds = %127
  store i32 11, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #6
  br label %173

140:                                              ; preds = %127
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #6
  %141 = load ptr, ptr %7, align 8, !tbaa !5
  %142 = getelementptr inbounds %"struct.mxnet::ext::MXSparse", ptr %141, i32 0, i32 2
  %143 = load ptr, ptr %142, align 8, !tbaa !32
  %144 = load i32, ptr %23, align 4, !tbaa !30
  %145 = sext i32 %144 to i64
  %146 = getelementptr inbounds i64, ptr %143, i64 %145
  %147 = load i64, ptr %146, align 8, !tbaa !9
  %148 = add nsw i64 %147, 1
  %149 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %148) #6
  %150 = load i64, ptr %149, align 8, !tbaa !9
  %151 = add nsw i64 %150, 1
  store i64 %151, ptr %149, align 8, !tbaa !9
  %152 = trunc i64 %150 to i32
  store i32 %152, ptr %24, align 4, !tbaa !30
  %153 = load ptr, ptr %12, align 8, !tbaa !5
  %154 = load i32, ptr %23, align 4, !tbaa !30
  %155 = sext i32 %154 to i64
  %156 = getelementptr inbounds float, ptr %153, i64 %155
  %157 = load float, ptr %156, align 4, !tbaa !37
  %158 = load ptr, ptr %20, align 8, !tbaa !5
  %159 = load i32, ptr %24, align 4, !tbaa !30
  %160 = sext i32 %159 to i64
  %161 = getelementptr inbounds float, ptr %158, i64 %160
  store float %157, ptr %161, align 4, !tbaa !37
  %162 = load i32, ptr %21, align 4, !tbaa !30
  %163 = sext i32 %162 to i64
  %164 = load ptr, ptr %8, align 8, !tbaa !5
  %165 = getelementptr inbounds %"struct.mxnet::ext::MXSparse", ptr %164, i32 0, i32 2
  %166 = load ptr, ptr %165, align 8, !tbaa !32
  %167 = load i32, ptr %24, align 4, !tbaa !30
  %168 = sext i32 %167 to i64
  %169 = getelementptr inbounds i64, ptr %166, i64 %168
  store i64 %163, ptr %169, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #6
  br label %170

170:                                              ; preds = %140
  %171 = load i32, ptr %23, align 4, !tbaa !30
  %172 = add nsw i32 %171, 1
  store i32 %172, ptr %23, align 4, !tbaa !30
  br label %127, !llvm.loop !39

173:                                              ; preds = %139
  br label %174

174:                                              ; preds = %173
  %175 = load i32, ptr %21, align 4, !tbaa !30
  %176 = add nsw i32 %175, 1
  store i32 %176, ptr %21, align 4, !tbaa !30
  br label %108, !llvm.loop !40

177:                                              ; preds = %113
  %178 = load ptr, ptr %8, align 8, !tbaa !5
  %179 = getelementptr inbounds %"struct.mxnet::ext::MXSparse", ptr %178, i32 0, i32 4
  %180 = load ptr, ptr %179, align 8, !tbaa !36
  %181 = call noundef ptr @_ZNSt6vectorIlSaIlEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #6
  %182 = load i64, ptr %11, align 8, !tbaa !9
  %183 = add nsw i64 %182, 1
  %184 = mul i64 8, %183
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %180, ptr align 8 %181, i64 %184, i1 false)
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  call void @_ZNSt6vectorIlSaIlEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  br label %186

185:                                              ; preds = %114, %54
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #6
  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 %10) #6
  call void @_ZNSt6vectorIlSaIlEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  br label %187

186:                                              ; preds = %177, %3
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @_ZNSt6vectorIlSaIlEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  ret void

187:                                              ; preds = %185
  %188 = load ptr, ptr %16, align 8
  %189 = load i32, ptr %17, align 4
  %190 = insertvalue { ptr, i32 } poison, ptr %188, 0
  %191 = insertvalue { ptr, i32 } %190, i32 %189, 1
  resume { ptr, i32 } %191
}

; 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 nounwind uwtable
declare dso_local noundef ptr @_ZN5mxnet3ext8MXTensor4dataINS0_8MXSparseEEEPT_v(ptr noundef nonnull align 8 dereferenceable(140)) #2 align 2

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

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

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIlED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #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 @_ZNKSt6vectorIlSaIlEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #3 align 2

declare void @_ZNK5mxnet3ext10OpResource12alloc_sparseEPNS0_8MXSparseEiii(ptr noundef nonnull align 8 dereferenceable(72), ptr noundef, i32 noundef, i32 noundef, i32 noundef) #4

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIlSaIlEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) 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 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 = { 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 = { "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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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, !27, i64 136}
!12 = !{!"_ZTSN5mxnet3ext8MXTensorE", !6, i64 0, !13, i64 8, !17, i64 32, !10, i64 40, !18, i64 48, !22, i64 88, !27, i64 136}
!13 = !{!"_ZTSSt6vectorIlSaIlEE", !14, i64 0}
!14 = !{!"_ZTSSt12_Vector_baseIlSaIlEE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseIlSaIlEE12_Vector_implE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseIlSaIlEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!17 = !{!"_ZTSN5mxnet3ext7MXDTypeE", !7, i64 0}
!18 = !{!"_ZTSN5mxnet3ext9MXContextE", !19, i64 0, !21, i64 32}
!19 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !20, i64 0, !10, i64 8, !7, i64 16}
!20 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!21 = !{!"int", !7, i64 0}
!22 = !{!"_ZTS8DLTensor", !6, i64 0, !23, i64 8, !21, i64 16, !25, i64 20, !6, i64 24, !6, i64 32, !10, i64 40}
!23 = !{!"_ZTS9DLContext", !24, i64 0, !21, i64 4}
!24 = !{!"_ZTS12DLDeviceType", !7, i64 0}
!25 = !{!"_ZTS10DLDataType", !7, i64 0, !7, i64 1, !26, i64 2}
!26 = !{!"short", !7, i64 0}
!27 = !{!"_ZTSN5mxnet3ext13MXStorageTypeE", !7, i64 0}
!28 = !{!29, !6, i64 0}
!29 = !{!"_ZTSN5mxnet3ext8MXSparseE", !6, i64 0, !10, i64 8, !6, i64 16, !10, i64 24, !6, i64 32, !10, i64 40}
!30 = !{!21, !21, i64 0}
!31 = !{!29, !10, i64 8}
!32 = !{!29, !6, i64 16}
!33 = distinct !{!33, !34}
!34 = !{!"llvm.loop.mustprogress"}
!35 = distinct !{!35, !34}
!36 = !{!29, !6, i64 32}
!37 = !{!38, !38, i64 0}
!38 = !{!"float", !7, i64 0}
!39 = distinct !{!39, !34}
!40 = distinct !{!40, !34}


; 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::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = 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 }
%"class.std::allocator" = type { i8 }

; Function Attrs: mustprogress uwtable
define dso_local void @_Z9transposeRN5mxnet3ext8MXTensorES2_RKNS0_10OpResourceE(ptr noundef nonnull align 8 dereferenceable(140) %0, ptr noundef nonnull align 8 dereferenceable(140) %1, ptr noundef nonnull align 8 dereferenceable(72) %2) local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.std::vector", align 8
  %5 = alloca %"class.std::vector", align 8
  %6 = alloca i64, align 8
  %7 = alloca %"class.std::allocator", align 1
  %8 = tail call noundef ptr @_ZN5mxnet3ext8MXTensor4dataINS0_8MXSparseEEEPT_v(ptr noundef nonnull align 8 dereferenceable(140) %0)
  %9 = tail call noundef ptr @_ZN5mxnet3ext8MXTensor4dataINS0_8MXSparseEEEPT_v(ptr noundef nonnull align 8 dereferenceable(140) %1)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #6
  %10 = getelementptr inbounds i8, ptr %0, i64 8
  call void @_ZNSt6vectorIlSaIlEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(24) %10)
  %11 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef 0) #6
  %12 = load i64, ptr %11, align 8, !tbaa !5
  %13 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef 1) #6
  %14 = load i64, ptr %13, align 8, !tbaa !5
  %15 = getelementptr inbounds i8, ptr %0, i64 136
  %16 = load i32, ptr %15, align 8, !tbaa !9
  %17 = icmp eq i32 %16, 2
  br i1 %17, label %18, label %91

18:                                               ; preds = %3
  %19 = load ptr, ptr %8, align 8, !tbaa !27
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #6
  %20 = add nsw i64 %14, 2
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #6
  store i64 0, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %7) #6
  call void @_ZNSaIlEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #6
  invoke void @_ZNSt6vectorIlSaIlEEC2EmRKlRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %20, ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 1 dereferenceable(1) %7)
          to label %21 unwind label %28

21:                                               ; preds = %18
  call void @_ZNSt15__new_allocatorIlED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  %22 = getelementptr inbounds i8, ptr %8, i64 8
  %23 = load i64, ptr %22, align 8, !tbaa !29
  %24 = icmp sgt i64 %23, 0
  br i1 %24, label %.lr.ph, label %.preheader

.lr.ph:                                           ; preds = %21
  %25 = getelementptr inbounds i8, ptr %8, i64 16
  br label %30

.preheader:                                       ; preds = %30, %21
  %26 = call noundef i64 @_ZNKSt6vectorIlSaIlEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  %27 = icmp ugt i64 %26, 2
  br i1 %27, label %.lr.ph54, label %._crit_edge

28:                                               ; preds = %18
  %29 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIlED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  br label %90

30:                                               ; preds = %.lr.ph, %30
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %30 ]
  %31 = load ptr, ptr %25, align 8, !tbaa !30
  %32 = getelementptr inbounds i64, ptr %31, i64 %indvars.iv
  %33 = load i64, ptr %32, align 8, !tbaa !5
  %34 = add nsw i64 %33, 2
  %35 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %34) #6
  %36 = load i64, ptr %35, align 8, !tbaa !5
  %37 = add nsw i64 %36, 1
  store i64 %37, ptr %35, align 8, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %38 = load i64, ptr %22, align 8, !tbaa !29
  %39 = icmp sgt i64 %38, %indvars.iv.next
  br i1 %39, label %30, label %.preheader, !llvm.loop !31

._crit_edge:                                      ; preds = %.lr.ph54, %.preheader
  %40 = load i64, ptr %22, align 8, !tbaa !29
  %41 = trunc i64 %40 to i32
  %42 = add nsw i64 %14, 1
  %43 = trunc i64 %42 to i32
  invoke void @_ZNK5mxnet3ext10OpResource12alloc_sparseEPNS0_8MXSparseEiii(ptr noundef nonnull align 8 dereferenceable(72) %2, ptr noundef %9, i32 noundef 0, i32 noundef %41, i32 noundef %43)
          to label %52 unwind label %63

.lr.ph54:                                         ; preds = %.preheader, %.lr.ph54
  %indvars.iv64 = phi i64 [ %indvars.iv.next65, %.lr.ph54 ], [ 2, %.preheader ]
  %44 = add nsw i64 %indvars.iv64, -1
  %45 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %44) #6
  %46 = load i64, ptr %45, align 8, !tbaa !5
  %47 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %indvars.iv64) #6
  %48 = load i64, ptr %47, align 8, !tbaa !5
  %49 = add nsw i64 %48, %46
  store i64 %49, ptr %47, align 8, !tbaa !5
  %indvars.iv.next65 = add nuw nsw i64 %indvars.iv64, 1
  %50 = call noundef i64 @_ZNKSt6vectorIlSaIlEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  %51 = icmp ugt i64 %50, %indvars.iv.next65
  br i1 %51, label %.lr.ph54, label %._crit_edge, !llvm.loop !33

52:                                               ; preds = %._crit_edge
  %53 = load ptr, ptr %9, align 8, !tbaa !27
  %54 = icmp sgt i64 %12, 0
  br i1 %54, label %.lr.ph60, label %._crit_edge61

.lr.ph60:                                         ; preds = %52
  %55 = getelementptr inbounds i8, ptr %8, i64 32
  %56 = getelementptr inbounds i8, ptr %8, i64 16
  %57 = getelementptr inbounds i8, ptr %9, i64 16
  %.pre = load ptr, ptr %55, align 8, !tbaa !34
  br label %65

.loopexit:                                        ; preds = %.lr.ph57, %65
  %58 = phi ptr [ %66, %65 ], [ %86, %.lr.ph57 ]
  %exitcond.not = icmp eq i64 %indvars.iv.next71, %12
  br i1 %exitcond.not, label %._crit_edge61, label %65, !llvm.loop !35

._crit_edge61:                                    ; preds = %.loopexit, %52
  %59 = getelementptr inbounds i8, ptr %9, i64 32
  %60 = load ptr, ptr %59, align 8, !tbaa !34
  %61 = call noundef ptr @_ZNSt6vectorIlSaIlEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  %62 = shl i64 %42, 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %60, ptr align 8 %61, i64 %62, i1 false)
  call void @_ZNSt6vectorIlSaIlEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #6
  br label %91

63:                                               ; preds = %._crit_edge
  %64 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIlSaIlEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  br label %90

65:                                               ; preds = %.lr.ph60, %.loopexit
  %66 = phi ptr [ %.pre, %.lr.ph60 ], [ %58, %.loopexit ]
  %indvars.iv70 = phi i64 [ 0, %.lr.ph60 ], [ %indvars.iv.next71, %.loopexit ]
  %67 = getelementptr inbounds i64, ptr %66, i64 %indvars.iv70
  %68 = load i64, ptr %67, align 8, !tbaa !5
  %indvars.iv.next71 = add nuw nsw i64 %indvars.iv70, 1
  %sext62 = shl i64 %68, 32
  %69 = ashr exact i64 %sext62, 32
  %70 = getelementptr inbounds i64, ptr %66, i64 %indvars.iv.next71
  %71 = load i64, ptr %70, align 8, !tbaa !5
  %72 = icmp sgt i64 %71, %69
  br i1 %72, label %.lr.ph57, label %.loopexit

.lr.ph57:                                         ; preds = %65, %.lr.ph57
  %indvars.iv67 = phi i64 [ %indvars.iv.next68, %.lr.ph57 ], [ %69, %65 ]
  %73 = load ptr, ptr %56, align 8, !tbaa !30
  %74 = getelementptr inbounds i64, ptr %73, i64 %indvars.iv67
  %75 = load i64, ptr %74, align 8, !tbaa !5
  %76 = add nsw i64 %75, 1
  %77 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %76) #6
  %78 = load i64, ptr %77, align 8, !tbaa !5
  %79 = add nsw i64 %78, 1
  store i64 %79, ptr %77, align 8, !tbaa !5
  %80 = getelementptr inbounds float, ptr %19, i64 %indvars.iv67
  %81 = load float, ptr %80, align 4, !tbaa !36
  %sext = shl i64 %78, 32
  %82 = ashr exact i64 %sext, 32
  %83 = getelementptr inbounds float, ptr %53, i64 %82
  store float %81, ptr %83, align 4, !tbaa !36
  %84 = load ptr, ptr %57, align 8, !tbaa !30
  %85 = getelementptr inbounds i64, ptr %84, i64 %82
  store i64 %indvars.iv70, ptr %85, align 8, !tbaa !5
  %indvars.iv.next68 = add nsw i64 %indvars.iv67, 1
  %86 = load ptr, ptr %55, align 8, !tbaa !34
  %87 = getelementptr inbounds i64, ptr %86, i64 %indvars.iv.next71
  %88 = load i64, ptr %87, align 8, !tbaa !5
  %89 = icmp sgt i64 %88, %indvars.iv.next68
  br i1 %89, label %.lr.ph57, label %.loopexit, !llvm.loop !38

90:                                               ; preds = %63, %28
  %.pn = phi { ptr, i32 } [ %64, %63 ], [ %29, %28 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #6
  call void @_ZNSt6vectorIlSaIlEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #6
  resume { ptr, i32 } %.pn

91:                                               ; preds = %._crit_edge61, %3
  call void @_ZNSt6vectorIlSaIlEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #6
  ret void
}

; 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 nounwind uwtable
declare dso_local noundef ptr @_ZN5mxnet3ext8MXTensor4dataINS0_8MXSparseEEEPT_v(ptr noundef nonnull align 8 dereferenceable(140)) local_unnamed_addr #2 align 2

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

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

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIlED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) 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 @_ZNKSt6vectorIlSaIlEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3 align 2

declare void @_ZNK5mxnet3ext10OpResource12alloc_sparseEPNS0_8MXSparseEiii(ptr noundef nonnull align 8 dereferenceable(72), ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #4

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

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIlSaIlEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) 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 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 = { 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 = { "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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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, !26, i64 136}
!10 = !{!"_ZTSN5mxnet3ext8MXTensorE", !11, i64 0, !12, i64 8, !16, i64 32, !6, i64 40, !17, i64 48, !21, i64 88, !26, i64 136}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!"_ZTSSt6vectorIlSaIlEE", !13, i64 0}
!13 = !{!"_ZTSSt12_Vector_baseIlSaIlEE", !14, i64 0}
!14 = !{!"_ZTSNSt12_Vector_baseIlSaIlEE12_Vector_implE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseIlSaIlEE17_Vector_impl_dataE", !11, i64 0, !11, i64 8, !11, i64 16}
!16 = !{!"_ZTSN5mxnet3ext7MXDTypeE", !7, i64 0}
!17 = !{!"_ZTSN5mxnet3ext9MXContextE", !18, i64 0, !20, i64 32}
!18 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !19, i64 0, !6, i64 8, !7, i64 16}
!19 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !11, i64 0}
!20 = !{!"int", !7, i64 0}
!21 = !{!"_ZTS8DLTensor", !11, i64 0, !22, i64 8, !20, i64 16, !24, i64 20, !11, i64 24, !11, i64 32, !6, 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 = !{!28, !11, i64 0}
!28 = !{!"_ZTSN5mxnet3ext8MXSparseE", !11, i64 0, !6, i64 8, !11, i64 16, !6, i64 24, !11, i64 32, !6, i64 40}
!29 = !{!28, !6, i64 8}
!30 = !{!28, !11, i64 16}
!31 = distinct !{!31, !32}
!32 = !{!"llvm.loop.mustprogress"}
!33 = distinct !{!33, !32}
!34 = !{!28, !11, i64 32}
!35 = distinct !{!35, !32}
!36 = !{!37, !37, i64 0}
!37 = !{!"float", !7, i64 0}
!38 = distinct !{!38, !32}


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