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

; 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::unordered_map.33" = type { %"class.std::_Hashtable.34" }
%"class.std::_Hashtable.34" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::allocator.0" = type { i8 }
%"class.std::vector.195" = type { %"struct.std::_Vector_base.196" }
%"struct.std::_Vector_base.196" = type { %"struct.std::_Vector_base<mxnet::ext::MXTensor, std::allocator<mxnet::ext::MXTensor>>::_Vector_impl" }
%"struct.std::_Vector_base<mxnet::ext::MXTensor, std::allocator<mxnet::ext::MXTensor>>::_Vector_impl" = type { %"struct.std::_Vector_base<mxnet::ext::MXTensor, std::allocator<mxnet::ext::MXTensor>>::_Vector_impl_data" }
%"struct.std::_Vector_base<mxnet::ext::MXTensor, std::allocator<mxnet::ext::MXTensor>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.197" = type { i8 }
%"class.std::vector.200" = type { %"struct.std::_Vector_base.201" }
%"struct.std::_Vector_base.201" = type { %"struct.std::_Vector_base<mxnet::ext::MXSparse, std::allocator<mxnet::ext::MXSparse>>::_Vector_impl" }
%"struct.std::_Vector_base<mxnet::ext::MXSparse, std::allocator<mxnet::ext::MXSparse>>::_Vector_impl" = type { %"struct.std::_Vector_base<mxnet::ext::MXSparse, std::allocator<mxnet::ext::MXSparse>>::_Vector_impl_data" }
%"struct.std::_Vector_base<mxnet::ext::MXSparse, std::allocator<mxnet::ext::MXSparse>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.202" = type { i8 }
%"struct.mxnet::ext::MXContext" = type <{ %"class.std::__cxx11::basic_string", i32, [4 x i8] }>
%"class.mxnet::ext::OpResource" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, 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: mustprogress nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN5mxnet3ext8MXSparse3setEPvPKliS2_lS2_l(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef, ptr noundef, i32 noundef, ptr noundef, i64 noundef, ptr noundef, i64 noundef) #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5mxnet3ext8MXTensor9setTensorEPvNS0_7MXDTypeEPKlimNS0_9MXContextENS0_13MXStorageTypeE(ptr noundef nonnull align 8 dereferenceable(140), ptr noundef, i32 noundef, ptr noundef, i32 noundef, i64 noundef, ptr noundef, i32 noundef) #2 align 2

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local i32 @_opCallFCompute(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef %8, ptr noundef %9, ptr noundef %10, i32 noundef %11, ptr noundef %12, ptr noundef %13, ptr noundef %14, ptr noundef %15, ptr noundef %16, ptr noundef %17, ptr noundef %18, i32 noundef %19, ptr noundef %20, ptr noundef %21, ptr noundef %22, ptr noundef %23, ptr noundef %24, ptr noundef %25, ptr noundef %26, ptr noundef %27, ptr noundef %28, ptr noundef %29, ptr noundef %30, ptr noundef %31, ptr noundef %32, ptr noundef %33, ptr noundef %34, ptr noundef %35, ptr noundef %36, ptr noundef %37, ptr noundef %38) #2 personality ptr @__gxx_personality_v0 {
  %40 = alloca ptr, align 8
  %41 = alloca ptr, align 8
  %42 = alloca ptr, align 8
  %43 = alloca i32, align 4
  %44 = alloca ptr, align 8
  %45 = alloca ptr, align 8
  %46 = alloca ptr, align 8
  %47 = alloca ptr, align 8
  %48 = alloca ptr, align 8
  %49 = alloca ptr, align 8
  %50 = alloca ptr, align 8
  %51 = alloca i32, align 4
  %52 = alloca ptr, align 8
  %53 = alloca ptr, align 8
  %54 = alloca ptr, align 8
  %55 = alloca ptr, align 8
  %56 = alloca ptr, align 8
  %57 = alloca ptr, align 8
  %58 = alloca ptr, align 8
  %59 = alloca i32, align 4
  %60 = alloca ptr, align 8
  %61 = alloca ptr, align 8
  %62 = alloca ptr, align 8
  %63 = alloca ptr, align 8
  %64 = alloca ptr, align 8
  %65 = alloca ptr, align 8
  %66 = alloca ptr, align 8
  %67 = alloca ptr, align 8
  %68 = alloca ptr, align 8
  %69 = alloca ptr, align 8
  %70 = alloca ptr, align 8
  %71 = alloca ptr, align 8
  %72 = alloca ptr, align 8
  %73 = alloca ptr, align 8
  %74 = alloca ptr, align 8
  %75 = alloca ptr, align 8
  %76 = alloca ptr, align 8
  %77 = alloca ptr, align 8
  %78 = alloca ptr, align 8
  %79 = alloca %"class.std::unordered_map.33", align 8
  %80 = alloca i32, align 4
  %81 = alloca %"class.std::__cxx11::basic_string", align 8
  %82 = alloca %"class.std::allocator.0", align 1
  %83 = alloca ptr, align 8
  %84 = alloca i32, align 4
  %85 = alloca %"class.std::__cxx11::basic_string", align 8
  %86 = alloca %"class.std::allocator.0", align 1
  %87 = alloca %"class.std::vector.195", align 8
  %88 = alloca %"class.std::allocator.197", align 1
  %89 = alloca %"class.std::vector.200", align 8
  %90 = alloca %"class.std::allocator.202", align 1
  %91 = alloca i32, align 4
  %92 = alloca %"struct.mxnet::ext::MXContext", align 8
  %93 = alloca i32, align 4
  %94 = alloca %"struct.mxnet::ext::MXContext", align 8
  %95 = alloca %"class.std::vector.195", align 8
  %96 = alloca %"class.std::allocator.197", align 1
  %97 = alloca %"class.std::vector.200", align 8
  %98 = alloca %"class.std::allocator.202", align 1
  %99 = alloca i32, align 4
  %100 = alloca %"struct.mxnet::ext::MXContext", align 8
  %101 = alloca i32, align 4
  %102 = alloca %"struct.mxnet::ext::MXContext", align 8
  %103 = alloca %"class.mxnet::ext::OpResource", align 8
  store ptr %0, ptr %40, align 8, !tbaa !5
  store ptr %1, ptr %41, align 8, !tbaa !5
  store ptr %2, ptr %42, align 8, !tbaa !5
  store i32 %3, ptr %43, align 4, !tbaa !9
  store ptr %4, ptr %44, align 8, !tbaa !5
  store ptr %5, ptr %45, align 8, !tbaa !5
  store ptr %6, ptr %46, align 8, !tbaa !5
  store ptr %7, ptr %47, align 8, !tbaa !5
  store ptr %8, ptr %48, align 8, !tbaa !5
  store ptr %9, ptr %49, align 8, !tbaa !5
  store ptr %10, ptr %50, align 8, !tbaa !5
  store i32 %11, ptr %51, align 4, !tbaa !9
  store ptr %12, ptr %52, align 8, !tbaa !5
  store ptr %13, ptr %53, align 8, !tbaa !5
  store ptr %14, ptr %54, align 8, !tbaa !5
  store ptr %15, ptr %55, align 8, !tbaa !5
  store ptr %16, ptr %56, align 8, !tbaa !5
  store ptr %17, ptr %57, align 8, !tbaa !5
  store ptr %18, ptr %58, align 8, !tbaa !5
  store i32 %19, ptr %59, align 4, !tbaa !9
  store ptr %20, ptr %60, align 8, !tbaa !5
  store ptr %21, ptr %61, align 8, !tbaa !5
  store ptr %22, ptr %62, align 8, !tbaa !5
  store ptr %23, ptr %63, align 8, !tbaa !5
  store ptr %24, ptr %64, align 8, !tbaa !5
  store ptr %25, ptr %65, align 8, !tbaa !5
  store ptr %26, ptr %66, align 8, !tbaa !5
  store ptr %27, ptr %67, align 8, !tbaa !5
  store ptr %28, ptr %68, align 8, !tbaa !5
  store ptr %29, ptr %69, align 8, !tbaa !5
  store ptr %30, ptr %70, align 8, !tbaa !5
  store ptr %31, ptr %71, align 8, !tbaa !5
  store ptr %32, ptr %72, align 8, !tbaa !5
  store ptr %33, ptr %73, align 8, !tbaa !5
  store ptr %34, ptr %74, align 8, !tbaa !5
  store ptr %35, ptr %75, align 8, !tbaa !5
  store ptr %36, ptr %76, align 8, !tbaa !5
  store ptr %37, ptr %77, align 8, !tbaa !5
  store ptr %38, ptr %78, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 56, ptr %79) #4
  call void @_ZNSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_St4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_S5_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(56) %79) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %80) #4
  store i32 0, ptr %80, align 4, !tbaa !9
  br label %104

104:                                              ; preds = %125, %39
  %105 = load i32, ptr %80, align 4, !tbaa !9
  %106 = load i32, ptr %43, align 4, !tbaa !9
  %107 = icmp slt i32 %105, %106
  br i1 %107, label %109, label %108

108:                                              ; preds = %104
  call void @llvm.lifetime.end.p0(i64 4, ptr %80) #4
  br label %142

109:                                              ; preds = %104
  call void @llvm.lifetime.start.p0(i64 32, ptr %81) #4
  %110 = load ptr, ptr %42, align 8, !tbaa !5
  %111 = load i32, ptr %80, align 4, !tbaa !9
  %112 = sext i32 %111 to i64
  %113 = getelementptr inbounds ptr, ptr %110, i64 %112
  %114 = load ptr, ptr %113, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %82) #4
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %82) #4
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %81, ptr noundef %114, ptr noundef nonnull align 1 dereferenceable(1) %82)
          to label %115 unwind label %128

115:                                              ; preds = %109
  call void @llvm.lifetime.start.p0(i64 32, ptr %85) #4
  %116 = load ptr, ptr %41, align 8, !tbaa !5
  %117 = load i32, ptr %80, align 4, !tbaa !9
  %118 = sext i32 %117 to i64
  %119 = getelementptr inbounds ptr, ptr %116, i64 %118
  %120 = load ptr, ptr %119, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %86) #4
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %86) #4
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %85, ptr noundef %120, ptr noundef nonnull align 1 dereferenceable(1) %86)
          to label %121 unwind label %132

121:                                              ; preds = %115
  %122 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_St4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_S5_EEEixEOS5_(ptr noundef nonnull align 8 dereferenceable(56) %79, ptr noundef nonnull align 8 dereferenceable(32) %85)
          to label %123 unwind label %136

123:                                              ; preds = %121
  %124 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) %122, ptr noundef nonnull align 8 dereferenceable(32) %81) #4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %85) #4
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %86) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %86) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %85) #4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %81) #4
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %82) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %82) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %81) #4
  br label %125

125:                                              ; preds = %123
  %126 = load i32, ptr %80, align 4, !tbaa !9
  %127 = add nsw i32 %126, 1
  store i32 %127, ptr %80, align 4, !tbaa !9
  br label %104, !llvm.loop !11

128:                                              ; preds = %109
  %129 = landingpad { ptr, i32 }
          cleanup
  %130 = extractvalue { ptr, i32 } %129, 0
  store ptr %130, ptr %83, align 8
  %131 = extractvalue { ptr, i32 } %129, 1
  store i32 %131, ptr %84, align 4
  br label %141

132:                                              ; preds = %115
  %133 = landingpad { ptr, i32 }
          cleanup
  %134 = extractvalue { ptr, i32 } %133, 0
  store ptr %134, ptr %83, align 8
  %135 = extractvalue { ptr, i32 } %133, 1
  store i32 %135, ptr %84, align 4
  br label %140

136:                                              ; preds = %121
  %137 = landingpad { ptr, i32 }
          cleanup
  %138 = extractvalue { ptr, i32 } %137, 0
  store ptr %138, ptr %83, align 8
  %139 = extractvalue { ptr, i32 } %137, 1
  store i32 %139, ptr %84, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %85) #4
  br label %140

140:                                              ; preds = %136, %132
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %86) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %86) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %85) #4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %81) #4
  br label %141

141:                                              ; preds = %140, %128
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %82) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %82) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %81) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %80) #4
  br label %576

142:                                              ; preds = %108
  call void @llvm.lifetime.start.p0(i64 24, ptr %87) #4
  %143 = load i32, ptr %51, align 4, !tbaa !9
  %144 = sext i32 %143 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr %88) #4
  call void @_ZNSaIN5mxnet3ext8MXTensorEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %88) #4
  invoke void @_ZNSt6vectorIN5mxnet3ext8MXTensorESaIS2_EEC2EmRKS3_(ptr noundef nonnull align 8 dereferenceable(24) %87, i64 noundef %144, ptr noundef nonnull align 1 dereferenceable(1) %88)
          to label %145 unwind label %154

145:                                              ; preds = %142
  call void @_ZNSt15__new_allocatorIN5mxnet3ext8MXTensorEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %88) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %88) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr %89) #4
  %146 = load i32, ptr %51, align 4, !tbaa !9
  %147 = sext i32 %146 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr %90) #4
  call void @_ZNSaIN5mxnet3ext8MXSparseEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %90) #4
  invoke void @_ZNSt6vectorIN5mxnet3ext8MXSparseESaIS2_EEC2EmRKS3_(ptr noundef nonnull align 8 dereferenceable(24) %89, i64 noundef %147, ptr noundef nonnull align 1 dereferenceable(1) %90)
          to label %148 unwind label %158

148:                                              ; preds = %145
  call void @_ZNSt15__new_allocatorIN5mxnet3ext8MXSparseEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %90) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %90) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %91) #4
  store i32 0, ptr %91, align 4, !tbaa !9
  br label %149

149:                                              ; preds = %343, %148
  %150 = load i32, ptr %91, align 4, !tbaa !9
  %151 = load i32, ptr %51, align 4, !tbaa !9
  %152 = icmp slt i32 %150, %151
  br i1 %152, label %162, label %153

153:                                              ; preds = %149
  call void @llvm.lifetime.end.p0(i64 4, ptr %91) #4
  br label %347

154:                                              ; preds = %142
  %155 = landingpad { ptr, i32 }
          cleanup
  %156 = extractvalue { ptr, i32 } %155, 0
  store ptr %156, ptr %83, align 8
  %157 = extractvalue { ptr, i32 } %155, 1
  store i32 %157, ptr %84, align 4
  call void @_ZNSt15__new_allocatorIN5mxnet3ext8MXTensorEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %88) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %88) #4
  br label %575

158:                                              ; preds = %145
  %159 = landingpad { ptr, i32 }
          cleanup
  %160 = extractvalue { ptr, i32 } %159, 0
  store ptr %160, ptr %83, align 8
  %161 = extractvalue { ptr, i32 } %159, 1
  store i32 %161, ptr %84, align 4
  call void @_ZNSt15__new_allocatorIN5mxnet3ext8MXSparseEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %90) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %90) #4
  br label %574

162:                                              ; preds = %149
  %163 = load ptr, ptr %67, align 8, !tbaa !5
  %164 = load i32, ptr %91, align 4, !tbaa !9
  %165 = sext i32 %164 to i64
  %166 = getelementptr inbounds i32, ptr %163, i64 %165
  %167 = load i32, ptr %166, align 4, !tbaa !9
  %168 = icmp eq i32 %167, 0
  br i1 %168, label %169, label %218

169:                                              ; preds = %162
  %170 = load i32, ptr %91, align 4, !tbaa !9
  %171 = sext i32 %170 to i64
  %172 = call noundef nonnull align 8 dereferenceable(140) ptr @_ZNSt6vectorIN5mxnet3ext8MXTensorESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %87, i64 noundef %171) #4
  %173 = load ptr, ptr %46, align 8, !tbaa !5
  %174 = load i32, ptr %91, align 4, !tbaa !9
  %175 = sext i32 %174 to i64
  %176 = getelementptr inbounds ptr, ptr %173, i64 %175
  %177 = load ptr, ptr %176, align 8, !tbaa !5
  %178 = load ptr, ptr %47, align 8, !tbaa !5
  %179 = load i32, ptr %91, align 4, !tbaa !9
  %180 = sext i32 %179 to i64
  %181 = getelementptr inbounds i32, ptr %178, i64 %180
  %182 = load i32, ptr %181, align 4, !tbaa !9
  %183 = load ptr, ptr %44, align 8, !tbaa !5
  %184 = load i32, ptr %91, align 4, !tbaa !9
  %185 = sext i32 %184 to i64
  %186 = getelementptr inbounds ptr, ptr %183, i64 %185
  %187 = load ptr, ptr %186, align 8, !tbaa !5
  %188 = load ptr, ptr %45, align 8, !tbaa !5
  %189 = load i32, ptr %91, align 4, !tbaa !9
  %190 = sext i32 %189 to i64
  %191 = getelementptr inbounds i32, ptr %188, i64 %190
  %192 = load i32, ptr %191, align 4, !tbaa !9
  %193 = load ptr, ptr %48, align 8, !tbaa !5
  %194 = load i32, ptr %91, align 4, !tbaa !9
  %195 = sext i32 %194 to i64
  %196 = getelementptr inbounds i64, ptr %193, i64 %195
  %197 = load i64, ptr %196, align 8, !tbaa !13
  %198 = load ptr, ptr %49, align 8, !tbaa !5
  %199 = load i32, ptr %91, align 4, !tbaa !9
  %200 = sext i32 %199 to i64
  %201 = getelementptr inbounds ptr, ptr %198, i64 %200
  %202 = load ptr, ptr %201, align 8, !tbaa !5
  %203 = load ptr, ptr %50, align 8, !tbaa !5
  %204 = load i32, ptr %91, align 4, !tbaa !9
  %205 = sext i32 %204 to i64
  %206 = getelementptr inbounds i32, ptr %203, i64 %205
  %207 = load i32, ptr %206, align 4, !tbaa !9
  invoke void @_ZN5mxnet3ext9MXContextC1EPKci(ptr noundef nonnull align 8 dereferenceable(36) %92, ptr noundef %202, i32 noundef %207)
          to label %208 unwind label %210

208:                                              ; preds = %169
  invoke void @_ZN5mxnet3ext8MXTensor9setTensorEPvNS0_7MXDTypeEPKlimNS0_9MXContextENS0_13MXStorageTypeE(ptr noundef nonnull align 8 dereferenceable(140) %172, ptr noundef %177, i32 noundef %182, ptr noundef %187, i32 noundef %192, i64 noundef %197, ptr noundef %92, i32 noundef 0)
          to label %209 unwind label %214

209:                                              ; preds = %208
  call void @_ZN5mxnet3ext9MXContextD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %92) #4
  br label %342

210:                                              ; preds = %169
  %211 = landingpad { ptr, i32 }
          cleanup
  %212 = extractvalue { ptr, i32 } %211, 0
  store ptr %212, ptr %83, align 8
  %213 = extractvalue { ptr, i32 } %211, 1
  store i32 %213, ptr %84, align 4
  br label %346

214:                                              ; preds = %208
  %215 = landingpad { ptr, i32 }
          cleanup
  %216 = extractvalue { ptr, i32 } %215, 0
  store ptr %216, ptr %83, align 8
  %217 = extractvalue { ptr, i32 } %215, 1
  store i32 %217, ptr %84, align 4
  call void @_ZN5mxnet3ext9MXContextD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %92) #4
  br label %346

218:                                              ; preds = %162
  call void @llvm.lifetime.start.p0(i64 4, ptr %93) #4
  %219 = load ptr, ptr %67, align 8, !tbaa !5
  %220 = load i32, ptr %91, align 4, !tbaa !9
  %221 = sext i32 %220 to i64
  %222 = getelementptr inbounds i32, ptr %219, i64 %221
  %223 = load i32, ptr %222, align 4, !tbaa !9
  %224 = icmp eq i32 %223, 1
  br i1 %224, label %225, label %254

225:                                              ; preds = %218
  store i32 1, ptr %93, align 4, !tbaa !15
  %226 = load i32, ptr %91, align 4, !tbaa !9
  %227 = sext i32 %226 to i64
  %228 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorIN5mxnet3ext8MXSparseESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %89, i64 noundef %227) #4
  %229 = load ptr, ptr %46, align 8, !tbaa !5
  %230 = load i32, ptr %91, align 4, !tbaa !9
  %231 = sext i32 %230 to i64
  %232 = getelementptr inbounds ptr, ptr %229, i64 %231
  %233 = load ptr, ptr %232, align 8, !tbaa !5
  %234 = load ptr, ptr %44, align 8, !tbaa !5
  %235 = load i32, ptr %91, align 4, !tbaa !9
  %236 = sext i32 %235 to i64
  %237 = getelementptr inbounds ptr, ptr %234, i64 %236
  %238 = load ptr, ptr %237, align 8, !tbaa !5
  %239 = load ptr, ptr %45, align 8, !tbaa !5
  %240 = load i32, ptr %91, align 4, !tbaa !9
  %241 = sext i32 %240 to i64
  %242 = getelementptr inbounds i32, ptr %239, i64 %241
  %243 = load i32, ptr %242, align 4, !tbaa !9
  %244 = load ptr, ptr %69, align 8, !tbaa !5
  %245 = load i32, ptr %91, align 4, !tbaa !9
  %246 = sext i32 %245 to i64
  %247 = getelementptr inbounds ptr, ptr %244, i64 %246
  %248 = load ptr, ptr %247, align 8, !tbaa !5
  %249 = load ptr, ptr %73, align 8, !tbaa !5
  %250 = load i32, ptr %91, align 4, !tbaa !9
  %251 = sext i32 %250 to i64
  %252 = getelementptr inbounds i64, ptr %249, i64 %251
  %253 = load i64, ptr %252, align 8, !tbaa !13
  call void @_ZN5mxnet3ext8MXSparse3setEPvPKliS2_lS2_l(ptr noundef nonnull align 8 dereferenceable(48) %228, ptr noundef %233, ptr noundef %238, i32 noundef %243, ptr noundef %248, i64 noundef %253, ptr noundef null, i64 noundef 0)
  br label %293

254:                                              ; preds = %218
  store i32 2, ptr %93, align 4, !tbaa !15
  %255 = load i32, ptr %91, align 4, !tbaa !9
  %256 = sext i32 %255 to i64
  %257 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorIN5mxnet3ext8MXSparseESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %89, i64 noundef %256) #4
  %258 = load ptr, ptr %46, align 8, !tbaa !5
  %259 = load i32, ptr %91, align 4, !tbaa !9
  %260 = sext i32 %259 to i64
  %261 = getelementptr inbounds ptr, ptr %258, i64 %260
  %262 = load ptr, ptr %261, align 8, !tbaa !5
  %263 = load ptr, ptr %44, align 8, !tbaa !5
  %264 = load i32, ptr %91, align 4, !tbaa !9
  %265 = sext i32 %264 to i64
  %266 = getelementptr inbounds ptr, ptr %263, i64 %265
  %267 = load ptr, ptr %266, align 8, !tbaa !5
  %268 = load ptr, ptr %45, align 8, !tbaa !5
  %269 = load i32, ptr %91, align 4, !tbaa !9
  %270 = sext i32 %269 to i64
  %271 = getelementptr inbounds i32, ptr %268, i64 %270
  %272 = load i32, ptr %271, align 4, !tbaa !9
  %273 = load ptr, ptr %69, align 8, !tbaa !5
  %274 = load i32, ptr %91, align 4, !tbaa !9
  %275 = sext i32 %274 to i64
  %276 = getelementptr inbounds ptr, ptr %273, i64 %275
  %277 = load ptr, ptr %276, align 8, !tbaa !5
  %278 = load ptr, ptr %73, align 8, !tbaa !5
  %279 = load i32, ptr %91, align 4, !tbaa !9
  %280 = sext i32 %279 to i64
  %281 = getelementptr inbounds i64, ptr %278, i64 %280
  %282 = load i64, ptr %281, align 8, !tbaa !13
  %283 = load ptr, ptr %71, align 8, !tbaa !5
  %284 = load i32, ptr %91, align 4, !tbaa !9
  %285 = sext i32 %284 to i64
  %286 = getelementptr inbounds ptr, ptr %283, i64 %285
  %287 = load ptr, ptr %286, align 8, !tbaa !5
  %288 = load ptr, ptr %75, align 8, !tbaa !5
  %289 = load i32, ptr %91, align 4, !tbaa !9
  %290 = sext i32 %289 to i64
  %291 = getelementptr inbounds i64, ptr %288, i64 %290
  %292 = load i64, ptr %291, align 8, !tbaa !13
  call void @_ZN5mxnet3ext8MXSparse3setEPvPKliS2_lS2_l(ptr noundef nonnull align 8 dereferenceable(48) %257, ptr noundef %262, ptr noundef %267, i32 noundef %272, ptr noundef %277, i64 noundef %282, ptr noundef %287, i64 noundef %292)
  br label %293

293:                                              ; preds = %254, %225
  %294 = load i32, ptr %91, align 4, !tbaa !9
  %295 = sext i32 %294 to i64
  %296 = call noundef nonnull align 8 dereferenceable(140) ptr @_ZNSt6vectorIN5mxnet3ext8MXTensorESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %87, i64 noundef %295) #4
  %297 = load i32, ptr %91, align 4, !tbaa !9
  %298 = sext i32 %297 to i64
  %299 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorIN5mxnet3ext8MXSparseESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %89, i64 noundef %298) #4
  %300 = load ptr, ptr %47, align 8, !tbaa !5
  %301 = load i32, ptr %91, align 4, !tbaa !9
  %302 = sext i32 %301 to i64
  %303 = getelementptr inbounds i32, ptr %300, i64 %302
  %304 = load i32, ptr %303, align 4, !tbaa !9
  %305 = load ptr, ptr %44, align 8, !tbaa !5
  %306 = load i32, ptr %91, align 4, !tbaa !9
  %307 = sext i32 %306 to i64
  %308 = getelementptr inbounds ptr, ptr %305, i64 %307
  %309 = load ptr, ptr %308, align 8, !tbaa !5
  %310 = load ptr, ptr %45, align 8, !tbaa !5
  %311 = load i32, ptr %91, align 4, !tbaa !9
  %312 = sext i32 %311 to i64
  %313 = getelementptr inbounds i32, ptr %310, i64 %312
  %314 = load i32, ptr %313, align 4, !tbaa !9
  %315 = load ptr, ptr %48, align 8, !tbaa !5
  %316 = load i32, ptr %91, align 4, !tbaa !9
  %317 = sext i32 %316 to i64
  %318 = getelementptr inbounds i64, ptr %315, i64 %317
  %319 = load i64, ptr %318, align 8, !tbaa !13
  %320 = load ptr, ptr %49, align 8, !tbaa !5
  %321 = load i32, ptr %91, align 4, !tbaa !9
  %322 = sext i32 %321 to i64
  %323 = getelementptr inbounds ptr, ptr %320, i64 %322
  %324 = load ptr, ptr %323, align 8, !tbaa !5
  %325 = load ptr, ptr %50, align 8, !tbaa !5
  %326 = load i32, ptr %91, align 4, !tbaa !9
  %327 = sext i32 %326 to i64
  %328 = getelementptr inbounds i32, ptr %325, i64 %327
  %329 = load i32, ptr %328, align 4, !tbaa !9
  invoke void @_ZN5mxnet3ext9MXContextC1EPKci(ptr noundef nonnull align 8 dereferenceable(36) %94, ptr noundef %324, i32 noundef %329)
          to label %330 unwind label %333

330:                                              ; preds = %293
  %331 = load i32, ptr %93, align 4, !tbaa !15
  invoke void @_ZN5mxnet3ext8MXTensor9setTensorEPvNS0_7MXDTypeEPKlimNS0_9MXContextENS0_13MXStorageTypeE(ptr noundef nonnull align 8 dereferenceable(140) %296, ptr noundef %299, i32 noundef %304, ptr noundef %309, i32 noundef %314, i64 noundef %319, ptr noundef %94, i32 noundef %331)
          to label %332 unwind label %337

332:                                              ; preds = %330
  call void @_ZN5mxnet3ext9MXContextD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %94) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %93) #4
  br label %342

333:                                              ; preds = %293
  %334 = landingpad { ptr, i32 }
          cleanup
  %335 = extractvalue { ptr, i32 } %334, 0
  store ptr %335, ptr %83, align 8
  %336 = extractvalue { ptr, i32 } %334, 1
  store i32 %336, ptr %84, align 4
  br label %341

337:                                              ; preds = %330
  %338 = landingpad { ptr, i32 }
          cleanup
  %339 = extractvalue { ptr, i32 } %338, 0
  store ptr %339, ptr %83, align 8
  %340 = extractvalue { ptr, i32 } %338, 1
  store i32 %340, ptr %84, align 4
  call void @_ZN5mxnet3ext9MXContextD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %94) #4
  br label %341

341:                                              ; preds = %337, %333
  call void @llvm.lifetime.end.p0(i64 4, ptr %93) #4
  br label %346

342:                                              ; preds = %332, %209
  br label %343

343:                                              ; preds = %342
  %344 = load i32, ptr %91, align 4, !tbaa !9
  %345 = add nsw i32 %344, 1
  store i32 %345, ptr %91, align 4, !tbaa !9
  br label %149, !llvm.loop !17

346:                                              ; preds = %341, %214, %210
  call void @llvm.lifetime.end.p0(i64 4, ptr %91) #4
  br label %573

347:                                              ; preds = %153
  call void @llvm.lifetime.start.p0(i64 24, ptr %95) #4
  %348 = load i32, ptr %59, align 4, !tbaa !9
  %349 = sext i32 %348 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr %96) #4
  call void @_ZNSaIN5mxnet3ext8MXTensorEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %96) #4
  invoke void @_ZNSt6vectorIN5mxnet3ext8MXTensorESaIS2_EEC2EmRKS3_(ptr noundef nonnull align 8 dereferenceable(24) %95, i64 noundef %349, ptr noundef nonnull align 1 dereferenceable(1) %96)
          to label %350 unwind label %359

350:                                              ; preds = %347
  call void @_ZNSt15__new_allocatorIN5mxnet3ext8MXTensorEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %96) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %96) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr %97) #4
  %351 = load i32, ptr %59, align 4, !tbaa !9
  %352 = sext i32 %351 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr %98) #4
  call void @_ZNSaIN5mxnet3ext8MXSparseEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %98) #4
  invoke void @_ZNSt6vectorIN5mxnet3ext8MXSparseESaIS2_EEC2EmRKS3_(ptr noundef nonnull align 8 dereferenceable(24) %97, i64 noundef %352, ptr noundef nonnull align 1 dereferenceable(1) %98)
          to label %353 unwind label %363

353:                                              ; preds = %350
  call void @_ZNSt15__new_allocatorIN5mxnet3ext8MXSparseEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %98) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %98) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %99) #4
  store i32 0, ptr %99, align 4, !tbaa !9
  br label %354

354:                                              ; preds = %548, %353
  %355 = load i32, ptr %99, align 4, !tbaa !9
  %356 = load i32, ptr %59, align 4, !tbaa !9
  %357 = icmp slt i32 %355, %356
  br i1 %357, label %367, label %358

358:                                              ; preds = %354
  call void @llvm.lifetime.end.p0(i64 4, ptr %99) #4
  br label %552

359:                                              ; preds = %347
  %360 = landingpad { ptr, i32 }
          cleanup
  %361 = extractvalue { ptr, i32 } %360, 0
  store ptr %361, ptr %83, align 8
  %362 = extractvalue { ptr, i32 } %360, 1
  store i32 %362, ptr %84, align 4
  call void @_ZNSt15__new_allocatorIN5mxnet3ext8MXTensorEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %96) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %96) #4
  br label %572

363:                                              ; preds = %350
  %364 = landingpad { ptr, i32 }
          cleanup
  %365 = extractvalue { ptr, i32 } %364, 0
  store ptr %365, ptr %83, align 8
  %366 = extractvalue { ptr, i32 } %364, 1
  store i32 %366, ptr %84, align 4
  call void @_ZNSt15__new_allocatorIN5mxnet3ext8MXSparseEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %98) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %98) #4
  br label %571

367:                                              ; preds = %354
  %368 = load ptr, ptr %68, align 8, !tbaa !5
  %369 = load i32, ptr %99, align 4, !tbaa !9
  %370 = sext i32 %369 to i64
  %371 = getelementptr inbounds i32, ptr %368, i64 %370
  %372 = load i32, ptr %371, align 4, !tbaa !9
  %373 = icmp eq i32 %372, 0
  br i1 %373, label %374, label %423

374:                                              ; preds = %367
  %375 = load i32, ptr %99, align 4, !tbaa !9
  %376 = sext i32 %375 to i64
  %377 = call noundef nonnull align 8 dereferenceable(140) ptr @_ZNSt6vectorIN5mxnet3ext8MXTensorESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %95, i64 noundef %376) #4
  %378 = load ptr, ptr %54, align 8, !tbaa !5
  %379 = load i32, ptr %99, align 4, !tbaa !9
  %380 = sext i32 %379 to i64
  %381 = getelementptr inbounds ptr, ptr %378, i64 %380
  %382 = load ptr, ptr %381, align 8, !tbaa !5
  %383 = load ptr, ptr %55, align 8, !tbaa !5
  %384 = load i32, ptr %99, align 4, !tbaa !9
  %385 = sext i32 %384 to i64
  %386 = getelementptr inbounds i32, ptr %383, i64 %385
  %387 = load i32, ptr %386, align 4, !tbaa !9
  %388 = load ptr, ptr %52, align 8, !tbaa !5
  %389 = load i32, ptr %99, align 4, !tbaa !9
  %390 = sext i32 %389 to i64
  %391 = getelementptr inbounds ptr, ptr %388, i64 %390
  %392 = load ptr, ptr %391, align 8, !tbaa !5
  %393 = load ptr, ptr %53, align 8, !tbaa !5
  %394 = load i32, ptr %99, align 4, !tbaa !9
  %395 = sext i32 %394 to i64
  %396 = getelementptr inbounds i32, ptr %393, i64 %395
  %397 = load i32, ptr %396, align 4, !tbaa !9
  %398 = load ptr, ptr %56, align 8, !tbaa !5
  %399 = load i32, ptr %99, align 4, !tbaa !9
  %400 = sext i32 %399 to i64
  %401 = getelementptr inbounds i64, ptr %398, i64 %400
  %402 = load i64, ptr %401, align 8, !tbaa !13
  %403 = load ptr, ptr %57, align 8, !tbaa !5
  %404 = load i32, ptr %99, align 4, !tbaa !9
  %405 = sext i32 %404 to i64
  %406 = getelementptr inbounds ptr, ptr %403, i64 %405
  %407 = load ptr, ptr %406, align 8, !tbaa !5
  %408 = load ptr, ptr %58, align 8, !tbaa !5
  %409 = load i32, ptr %99, align 4, !tbaa !9
  %410 = sext i32 %409 to i64
  %411 = getelementptr inbounds i32, ptr %408, i64 %410
  %412 = load i32, ptr %411, align 4, !tbaa !9
  invoke void @_ZN5mxnet3ext9MXContextC1EPKci(ptr noundef nonnull align 8 dereferenceable(36) %100, ptr noundef %407, i32 noundef %412)
          to label %413 unwind label %415

413:                                              ; preds = %374
  invoke void @_ZN5mxnet3ext8MXTensor9setTensorEPvNS0_7MXDTypeEPKlimNS0_9MXContextENS0_13MXStorageTypeE(ptr noundef nonnull align 8 dereferenceable(140) %377, ptr noundef %382, i32 noundef %387, ptr noundef %392, i32 noundef %397, i64 noundef %402, ptr noundef %100, i32 noundef 0)
          to label %414 unwind label %419

414:                                              ; preds = %413
  call void @_ZN5mxnet3ext9MXContextD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %100) #4
  br label %547

415:                                              ; preds = %374
  %416 = landingpad { ptr, i32 }
          cleanup
  %417 = extractvalue { ptr, i32 } %416, 0
  store ptr %417, ptr %83, align 8
  %418 = extractvalue { ptr, i32 } %416, 1
  store i32 %418, ptr %84, align 4
  br label %551

419:                                              ; preds = %413
  %420 = landingpad { ptr, i32 }
          cleanup
  %421 = extractvalue { ptr, i32 } %420, 0
  store ptr %421, ptr %83, align 8
  %422 = extractvalue { ptr, i32 } %420, 1
  store i32 %422, ptr %84, align 4
  call void @_ZN5mxnet3ext9MXContextD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %100) #4
  br label %551

423:                                              ; preds = %367
  call void @llvm.lifetime.start.p0(i64 4, ptr %101) #4
  %424 = load ptr, ptr %68, align 8, !tbaa !5
  %425 = load i32, ptr %99, align 4, !tbaa !9
  %426 = sext i32 %425 to i64
  %427 = getelementptr inbounds i32, ptr %424, i64 %426
  %428 = load i32, ptr %427, align 4, !tbaa !9
  %429 = icmp eq i32 %428, 1
  br i1 %429, label %430, label %459

430:                                              ; preds = %423
  store i32 1, ptr %101, align 4, !tbaa !15
  %431 = load i32, ptr %99, align 4, !tbaa !9
  %432 = sext i32 %431 to i64
  %433 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorIN5mxnet3ext8MXSparseESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %97, i64 noundef %432) #4
  %434 = load ptr, ptr %54, align 8, !tbaa !5
  %435 = load i32, ptr %99, align 4, !tbaa !9
  %436 = sext i32 %435 to i64
  %437 = getelementptr inbounds ptr, ptr %434, i64 %436
  %438 = load ptr, ptr %437, align 8, !tbaa !5
  %439 = load ptr, ptr %52, align 8, !tbaa !5
  %440 = load i32, ptr %99, align 4, !tbaa !9
  %441 = sext i32 %440 to i64
  %442 = getelementptr inbounds ptr, ptr %439, i64 %441
  %443 = load ptr, ptr %442, align 8, !tbaa !5
  %444 = load ptr, ptr %53, align 8, !tbaa !5
  %445 = load i32, ptr %99, align 4, !tbaa !9
  %446 = sext i32 %445 to i64
  %447 = getelementptr inbounds i32, ptr %444, i64 %446
  %448 = load i32, ptr %447, align 4, !tbaa !9
  %449 = load ptr, ptr %70, align 8, !tbaa !5
  %450 = load i32, ptr %99, align 4, !tbaa !9
  %451 = sext i32 %450 to i64
  %452 = getelementptr inbounds ptr, ptr %449, i64 %451
  %453 = load ptr, ptr %452, align 8, !tbaa !5
  %454 = load ptr, ptr %74, align 8, !tbaa !5
  %455 = load i32, ptr %99, align 4, !tbaa !9
  %456 = sext i32 %455 to i64
  %457 = getelementptr inbounds i64, ptr %454, i64 %456
  %458 = load i64, ptr %457, align 8, !tbaa !13
  call void @_ZN5mxnet3ext8MXSparse3setEPvPKliS2_lS2_l(ptr noundef nonnull align 8 dereferenceable(48) %433, ptr noundef %438, ptr noundef %443, i32 noundef %448, ptr noundef %453, i64 noundef %458, ptr noundef null, i64 noundef 0)
  br label %498

459:                                              ; preds = %423
  store i32 2, ptr %101, align 4, !tbaa !15
  %460 = load i32, ptr %99, align 4, !tbaa !9
  %461 = sext i32 %460 to i64
  %462 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorIN5mxnet3ext8MXSparseESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %97, i64 noundef %461) #4
  %463 = load ptr, ptr %54, align 8, !tbaa !5
  %464 = load i32, ptr %99, align 4, !tbaa !9
  %465 = sext i32 %464 to i64
  %466 = getelementptr inbounds ptr, ptr %463, i64 %465
  %467 = load ptr, ptr %466, align 8, !tbaa !5
  %468 = load ptr, ptr %52, align 8, !tbaa !5
  %469 = load i32, ptr %99, align 4, !tbaa !9
  %470 = sext i32 %469 to i64
  %471 = getelementptr inbounds ptr, ptr %468, i64 %470
  %472 = load ptr, ptr %471, align 8, !tbaa !5
  %473 = load ptr, ptr %53, align 8, !tbaa !5
  %474 = load i32, ptr %99, align 4, !tbaa !9
  %475 = sext i32 %474 to i64
  %476 = getelementptr inbounds i32, ptr %473, i64 %475
  %477 = load i32, ptr %476, align 4, !tbaa !9
  %478 = load ptr, ptr %70, align 8, !tbaa !5
  %479 = load i32, ptr %99, align 4, !tbaa !9
  %480 = sext i32 %479 to i64
  %481 = getelementptr inbounds ptr, ptr %478, i64 %480
  %482 = load ptr, ptr %481, align 8, !tbaa !5
  %483 = load ptr, ptr %74, align 8, !tbaa !5
  %484 = load i32, ptr %99, align 4, !tbaa !9
  %485 = sext i32 %484 to i64
  %486 = getelementptr inbounds i64, ptr %483, i64 %485
  %487 = load i64, ptr %486, align 8, !tbaa !13
  %488 = load ptr, ptr %72, align 8, !tbaa !5
  %489 = load i32, ptr %99, align 4, !tbaa !9
  %490 = sext i32 %489 to i64
  %491 = getelementptr inbounds ptr, ptr %488, i64 %490
  %492 = load ptr, ptr %491, align 8, !tbaa !5
  %493 = load ptr, ptr %76, align 8, !tbaa !5
  %494 = load i32, ptr %99, align 4, !tbaa !9
  %495 = sext i32 %494 to i64
  %496 = getelementptr inbounds i64, ptr %493, i64 %495
  %497 = load i64, ptr %496, align 8, !tbaa !13
  call void @_ZN5mxnet3ext8MXSparse3setEPvPKliS2_lS2_l(ptr noundef nonnull align 8 dereferenceable(48) %462, ptr noundef %467, ptr noundef %472, i32 noundef %477, ptr noundef %482, i64 noundef %487, ptr noundef %492, i64 noundef %497)
  br label %498

498:                                              ; preds = %459, %430
  %499 = load i32, ptr %99, align 4, !tbaa !9
  %500 = sext i32 %499 to i64
  %501 = call noundef nonnull align 8 dereferenceable(140) ptr @_ZNSt6vectorIN5mxnet3ext8MXTensorESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %95, i64 noundef %500) #4
  %502 = load i32, ptr %99, align 4, !tbaa !9
  %503 = sext i32 %502 to i64
  %504 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorIN5mxnet3ext8MXSparseESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %97, i64 noundef %503) #4
  %505 = load ptr, ptr %55, align 8, !tbaa !5
  %506 = load i32, ptr %99, align 4, !tbaa !9
  %507 = sext i32 %506 to i64
  %508 = getelementptr inbounds i32, ptr %505, i64 %507
  %509 = load i32, ptr %508, align 4, !tbaa !9
  %510 = load ptr, ptr %52, align 8, !tbaa !5
  %511 = load i32, ptr %99, align 4, !tbaa !9
  %512 = sext i32 %511 to i64
  %513 = getelementptr inbounds ptr, ptr %510, i64 %512
  %514 = load ptr, ptr %513, align 8, !tbaa !5
  %515 = load ptr, ptr %53, align 8, !tbaa !5
  %516 = load i32, ptr %99, align 4, !tbaa !9
  %517 = sext i32 %516 to i64
  %518 = getelementptr inbounds i32, ptr %515, i64 %517
  %519 = load i32, ptr %518, align 4, !tbaa !9
  %520 = load ptr, ptr %56, align 8, !tbaa !5
  %521 = load i32, ptr %99, align 4, !tbaa !9
  %522 = sext i32 %521 to i64
  %523 = getelementptr inbounds i64, ptr %520, i64 %522
  %524 = load i64, ptr %523, align 8, !tbaa !13
  %525 = load ptr, ptr %57, align 8, !tbaa !5
  %526 = load i32, ptr %99, align 4, !tbaa !9
  %527 = sext i32 %526 to i64
  %528 = getelementptr inbounds ptr, ptr %525, i64 %527
  %529 = load ptr, ptr %528, align 8, !tbaa !5
  %530 = load ptr, ptr %58, align 8, !tbaa !5
  %531 = load i32, ptr %99, align 4, !tbaa !9
  %532 = sext i32 %531 to i64
  %533 = getelementptr inbounds i32, ptr %530, i64 %532
  %534 = load i32, ptr %533, align 4, !tbaa !9
  invoke void @_ZN5mxnet3ext9MXContextC1EPKci(ptr noundef nonnull align 8 dereferenceable(36) %102, ptr noundef %529, i32 noundef %534)
          to label %535 unwind label %538

535:                                              ; preds = %498
  %536 = load i32, ptr %101, align 4, !tbaa !15
  invoke void @_ZN5mxnet3ext8MXTensor9setTensorEPvNS0_7MXDTypeEPKlimNS0_9MXContextENS0_13MXStorageTypeE(ptr noundef nonnull align 8 dereferenceable(140) %501, ptr noundef %504, i32 noundef %509, ptr noundef %514, i32 noundef %519, i64 noundef %524, ptr noundef %102, i32 noundef %536)
          to label %537 unwind label %542

537:                                              ; preds = %535
  call void @_ZN5mxnet3ext9MXContextD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %102) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %101) #4
  br label %547

538:                                              ; preds = %498
  %539 = landingpad { ptr, i32 }
          cleanup
  %540 = extractvalue { ptr, i32 } %539, 0
  store ptr %540, ptr %83, align 8
  %541 = extractvalue { ptr, i32 } %539, 1
  store i32 %541, ptr %84, align 4
  br label %546

542:                                              ; preds = %535
  %543 = landingpad { ptr, i32 }
          cleanup
  %544 = extractvalue { ptr, i32 } %543, 0
  store ptr %544, ptr %83, align 8
  %545 = extractvalue { ptr, i32 } %543, 1
  store i32 %545, ptr %84, align 4
  call void @_ZN5mxnet3ext9MXContextD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %102) #4
  br label %546

546:                                              ; preds = %542, %538
  call void @llvm.lifetime.end.p0(i64 4, ptr %101) #4
  br label %551

547:                                              ; preds = %537, %414
  br label %548

548:                                              ; preds = %547
  %549 = load i32, ptr %99, align 4, !tbaa !9
  %550 = add nsw i32 %549, 1
  store i32 %550, ptr %99, align 4, !tbaa !9
  br label %354, !llvm.loop !18

551:                                              ; preds = %546, %419, %415
  call void @llvm.lifetime.end.p0(i64 4, ptr %99) #4
  br label %570

552:                                              ; preds = %358
  call void @llvm.lifetime.start.p0(i64 72, ptr %103) #4
  %553 = load ptr, ptr %60, align 8, !tbaa !5
  %554 = load ptr, ptr %61, align 8, !tbaa !5
  %555 = load ptr, ptr %62, align 8, !tbaa !5
  %556 = load ptr, ptr %63, align 8, !tbaa !5
  %557 = load ptr, ptr %64, align 8, !tbaa !5
  %558 = load ptr, ptr %65, align 8, !tbaa !5
  %559 = load ptr, ptr %66, align 8, !tbaa !5
  %560 = load ptr, ptr %77, align 8, !tbaa !5
  %561 = load ptr, ptr %78, align 8, !tbaa !5
  invoke void @_ZN5mxnet3ext10OpResourceC1EPFPvS2_iES2_S4_S2_S2_PFvS2_iiiPS2_PPlS7_ES2_S2_S2_(ptr noundef nonnull align 8 dereferenceable(72) %103, ptr noundef %553, ptr noundef %554, ptr noundef %555, ptr noundef %556, ptr noundef %557, ptr noundef %558, ptr noundef %559, ptr noundef %560, ptr noundef %561)
          to label %562 unwind label %566

562:                                              ; preds = %552
  %563 = load ptr, ptr %40, align 8, !tbaa !5
  %564 = invoke noundef i32 %563(ptr noundef nonnull align 8 dereferenceable(56) %79, ptr noundef %87, ptr noundef %95, ptr noundef nonnull align 8 dereferenceable(72) %103)
          to label %565 unwind label %566

565:                                              ; preds = %562
  call void @llvm.lifetime.end.p0(i64 72, ptr %103) #4
  call void @_ZNSt6vectorIN5mxnet3ext8MXSparseESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %97) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %97) #4
  call void @_ZNSt6vectorIN5mxnet3ext8MXTensorESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %95) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %95) #4
  call void @_ZNSt6vectorIN5mxnet3ext8MXSparseESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %89) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %89) #4
  call void @_ZNSt6vectorIN5mxnet3ext8MXTensorESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %87) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %87) #4
  call void @_ZNSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_St4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_S5_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %79) #4
  call void @llvm.lifetime.end.p0(i64 56, ptr %79) #4
  ret i32 %564

566:                                              ; preds = %562, %552
  %567 = landingpad { ptr, i32 }
          cleanup
  %568 = extractvalue { ptr, i32 } %567, 0
  store ptr %568, ptr %83, align 8
  %569 = extractvalue { ptr, i32 } %567, 1
  store i32 %569, ptr %84, align 4
  call void @llvm.lifetime.end.p0(i64 72, ptr %103) #4
  br label %570

570:                                              ; preds = %566, %551
  call void @_ZNSt6vectorIN5mxnet3ext8MXSparseESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %97) #4
  br label %571

571:                                              ; preds = %570, %363
  call void @llvm.lifetime.end.p0(i64 24, ptr %97) #4
  call void @_ZNSt6vectorIN5mxnet3ext8MXTensorESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %95) #4
  br label %572

572:                                              ; preds = %571, %359
  call void @llvm.lifetime.end.p0(i64 24, ptr %95) #4
  br label %573

573:                                              ; preds = %572, %346
  call void @_ZNSt6vectorIN5mxnet3ext8MXSparseESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %89) #4
  br label %574

574:                                              ; preds = %573, %158
  call void @llvm.lifetime.end.p0(i64 24, ptr %89) #4
  call void @_ZNSt6vectorIN5mxnet3ext8MXTensorESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %87) #4
  br label %575

575:                                              ; preds = %574, %154
  call void @llvm.lifetime.end.p0(i64 24, ptr %87) #4
  br label %576

576:                                              ; preds = %575, %141
  call void @_ZNSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_St4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_S5_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %79) #4
  call void @llvm.lifetime.end.p0(i64 56, ptr %79) #4
  br label %577

577:                                              ; preds = %576
  %578 = load ptr, ptr %83, align 8
  %579 = load i32, ptr %84, align 4
  %580 = insertvalue { ptr, i32 } poison, ptr %578, 0
  %581 = insertvalue { ptr, i32 } %580, i32 %579, 1
  resume { ptr, i32 } %581
}

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

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

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

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

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

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

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

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

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

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

declare void @_ZN5mxnet3ext9MXContextC1EPKci(ptr, ptr, i32)

declare void @_ZN5mxnet3ext10OpResourceC1EPFPvS2_iES2_S4_S2_S2_PFvS2_iiiPS2_PPlS7_ES2_S2_S2_(ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr)

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress 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 = { 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 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!14, !14, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = !{!16, !16, i64 0}
!16 = !{!"_ZTSN5mxnet3ext13MXStorageTypeE", !7, i64 0}
!17 = distinct !{!17, !12}
!18 = distinct !{!18, !12}


; 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::unordered_map.33" = type { %"class.std::_Hashtable.34" }
%"class.std::_Hashtable.34" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::allocator.0" = type { i8 }
%"class.std::vector.195" = type { %"struct.std::_Vector_base.196" }
%"struct.std::_Vector_base.196" = type { %"struct.std::_Vector_base<mxnet::ext::MXTensor, std::allocator<mxnet::ext::MXTensor>>::_Vector_impl" }
%"struct.std::_Vector_base<mxnet::ext::MXTensor, std::allocator<mxnet::ext::MXTensor>>::_Vector_impl" = type { %"struct.std::_Vector_base<mxnet::ext::MXTensor, std::allocator<mxnet::ext::MXTensor>>::_Vector_impl_data" }
%"struct.std::_Vector_base<mxnet::ext::MXTensor, std::allocator<mxnet::ext::MXTensor>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.197" = type { i8 }
%"class.std::vector.200" = type { %"struct.std::_Vector_base.201" }
%"struct.std::_Vector_base.201" = type { %"struct.std::_Vector_base<mxnet::ext::MXSparse, std::allocator<mxnet::ext::MXSparse>>::_Vector_impl" }
%"struct.std::_Vector_base<mxnet::ext::MXSparse, std::allocator<mxnet::ext::MXSparse>>::_Vector_impl" = type { %"struct.std::_Vector_base<mxnet::ext::MXSparse, std::allocator<mxnet::ext::MXSparse>>::_Vector_impl_data" }
%"struct.std::_Vector_base<mxnet::ext::MXSparse, std::allocator<mxnet::ext::MXSparse>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.202" = type { i8 }
%"struct.mxnet::ext::MXContext" = type <{ %"class.std::__cxx11::basic_string", i32, [4 x i8] }>
%"class.mxnet::ext::OpResource" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, 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 nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5mxnet3ext8MXTensor9setTensorEPvNS0_7MXDTypeEPKlimNS0_9MXContextENS0_13MXStorageTypeE(ptr noundef nonnull align 8 dereferenceable(140), ptr noundef, i32 noundef, ptr noundef, i32 noundef, i64 noundef, ptr noundef, i32 noundef) local_unnamed_addr #2 align 2

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_opCallFCompute(ptr nocapture noundef readonly %0, ptr nocapture noundef readonly %1, ptr nocapture noundef readonly %2, i32 noundef %3, ptr nocapture noundef readonly %4, ptr nocapture noundef readonly %5, ptr nocapture noundef readonly %6, ptr nocapture noundef readonly %7, ptr nocapture noundef readonly %8, ptr nocapture noundef readonly %9, ptr nocapture noundef readonly %10, i32 noundef %11, ptr nocapture noundef readonly %12, ptr nocapture noundef readonly %13, ptr nocapture noundef readonly %14, ptr nocapture noundef readonly %15, ptr nocapture noundef readonly %16, ptr nocapture noundef readonly %17, ptr nocapture noundef readonly %18, i32 noundef %19, ptr noundef %20, ptr noundef %21, ptr noundef %22, ptr noundef %23, ptr noundef %24, ptr noundef %25, ptr noundef %26, ptr nocapture noundef readonly %27, ptr nocapture noundef readonly %28, ptr nocapture noundef readonly %29, ptr nocapture noundef readonly %30, ptr nocapture noundef readonly %31, ptr nocapture noundef readonly %32, ptr nocapture noundef readonly %33, ptr nocapture noundef readonly %34, ptr nocapture noundef readonly %35, ptr nocapture noundef readonly %36, ptr noundef %37, ptr noundef %38) local_unnamed_addr #2 personality ptr @__gxx_personality_v0 {
  %40 = alloca %"class.std::unordered_map.33", align 8
  %41 = alloca %"class.std::__cxx11::basic_string", align 8
  %42 = alloca %"class.std::allocator.0", align 1
  %43 = alloca %"class.std::__cxx11::basic_string", align 8
  %44 = alloca %"class.std::allocator.0", align 1
  %45 = alloca %"class.std::vector.195", align 8
  %46 = alloca %"class.std::allocator.197", align 1
  %47 = alloca %"class.std::vector.200", align 8
  %48 = alloca %"class.std::allocator.202", align 1
  %49 = alloca %"struct.mxnet::ext::MXContext", align 8
  %50 = alloca %"struct.mxnet::ext::MXContext", align 8
  %51 = alloca %"class.std::vector.195", align 8
  %52 = alloca %"class.std::allocator.197", align 1
  %53 = alloca %"class.std::vector.200", align 8
  %54 = alloca %"class.std::allocator.202", align 1
  %55 = alloca %"struct.mxnet::ext::MXContext", align 8
  %56 = alloca %"struct.mxnet::ext::MXContext", align 8
  %57 = alloca %"class.mxnet::ext::OpResource", align 8
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %40) #4
  call void @_ZNSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_St4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_S5_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(56) %40) #4
  %58 = icmp sgt i32 %3, 0
  br i1 %58, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %39
  %wide.trip.count = zext nneg i32 %3 to i64
  br label %.lr.ph

._crit_edge:                                      ; preds = %67, %39
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %45) #4
  %59 = sext i32 %11 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %46) #4
  call void @_ZNSaIN5mxnet3ext8MXTensorEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %46) #4
  invoke void @_ZNSt6vectorIN5mxnet3ext8MXTensorESaIS2_EEC2EmRKS3_(ptr noundef nonnull align 8 dereferenceable(24) %45, i64 noundef %59, ptr noundef nonnull align 1 dereferenceable(1) %46)
          to label %77 unwind label %81

.lr.ph:                                           ; preds = %.lr.ph.preheader, %67
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %67 ]
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %41) #4
  %60 = getelementptr inbounds ptr, ptr %2, i64 %indvars.iv
  %61 = load ptr, ptr %60, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %42) #4
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %42) #4
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %41, ptr noundef %61, ptr noundef nonnull align 1 dereferenceable(1) %42)
          to label %62 unwind label %69

62:                                               ; preds = %.lr.ph
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %43) #4
  %63 = getelementptr inbounds ptr, ptr %1, i64 %indvars.iv
  %64 = load ptr, ptr %63, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %44) #4
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %44) #4
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %43, ptr noundef %64, ptr noundef nonnull align 1 dereferenceable(1) %44)
          to label %65 unwind label %71

65:                                               ; preds = %62
  %66 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_St4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_S5_EEEixEOS5_(ptr noundef nonnull align 8 dereferenceable(56) %40, ptr noundef nonnull align 8 dereferenceable(32) %43)
          to label %67 unwind label %73

67:                                               ; preds = %65
  %68 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) %66, ptr noundef nonnull align 8 dereferenceable(32) %41) #4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %43) #4
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %44) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %44) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %43) #4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %41) #4
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %42) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %42) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %41) #4
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !9

69:                                               ; preds = %.lr.ph
  %70 = landingpad { ptr, i32 }
          cleanup
  br label %76

71:                                               ; preds = %62
  %72 = landingpad { ptr, i32 }
          cleanup
  br label %75

73:                                               ; preds = %65
  %74 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %43) #4
  br label %75

75:                                               ; preds = %73, %71
  %.pn181 = phi { ptr, i32 } [ %74, %73 ], [ %72, %71 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %44) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %44) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %43) #4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %41) #4
  br label %76

76:                                               ; preds = %75, %69
  %.pn181.pn = phi { ptr, i32 } [ %.pn181, %75 ], [ %70, %69 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %42) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %42) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %41) #4
  br label %243

77:                                               ; preds = %._crit_edge
  call void @_ZNSt15__new_allocatorIN5mxnet3ext8MXTensorEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %46) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %46) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %47) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %48) #4
  call void @_ZNSaIN5mxnet3ext8MXSparseEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %48) #4
  invoke void @_ZNSt6vectorIN5mxnet3ext8MXSparseESaIS2_EEC2EmRKS3_(ptr noundef nonnull align 8 dereferenceable(24) %47, i64 noundef %59, ptr noundef nonnull align 1 dereferenceable(1) %48)
          to label %78 unwind label %83

78:                                               ; preds = %77
  call void @_ZNSt15__new_allocatorIN5mxnet3ext8MXSparseEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %48) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %48) #4
  %79 = icmp sgt i32 %11, 0
  br i1 %79, label %.lr.ph188.preheader, label %._crit_edge189

.lr.ph188.preheader:                              ; preds = %78
  %wide.trip.count198 = zext nneg i32 %11 to i64
  br label %.lr.ph188

._crit_edge189:                                   ; preds = %154, %78
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %51) #4
  %80 = sext i32 %19 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %52) #4
  call void @_ZNSaIN5mxnet3ext8MXTensorEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %52) #4
  invoke void @_ZNSt6vectorIN5mxnet3ext8MXTensorESaIS2_EEC2EmRKS3_(ptr noundef nonnull align 8 dereferenceable(24) %51, i64 noundef %80, ptr noundef nonnull align 1 dereferenceable(1) %52)
          to label %155 unwind label %158

81:                                               ; preds = %._crit_edge
  %82 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIN5mxnet3ext8MXTensorEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %46) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %46) #4
  br label %242

83:                                               ; preds = %77
  %84 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIN5mxnet3ext8MXSparseEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %48) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %48) #4
  br label %241

.lr.ph188:                                        ; preds = %.lr.ph188.preheader, %154
  %indvars.iv195 = phi i64 [ 0, %.lr.ph188.preheader ], [ %indvars.iv.next196, %154 ]
  %85 = getelementptr inbounds i32, ptr %27, i64 %indvars.iv195
  %86 = load i32, ptr %85, align 4, !tbaa !11
  %87 = getelementptr inbounds ptr, ptr %6, i64 %indvars.iv195
  switch i32 %86, label %119 [
    i32 0, label %88
    i32 1, label %108
  ]

88:                                               ; preds = %.lr.ph188
  %89 = call noundef nonnull align 8 dereferenceable(140) ptr @_ZNSt6vectorIN5mxnet3ext8MXTensorESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %45, i64 noundef %indvars.iv195) #4
  %90 = load ptr, ptr %87, align 8, !tbaa !5
  %91 = getelementptr inbounds i32, ptr %7, i64 %indvars.iv195
  %92 = load i32, ptr %91, align 4, !tbaa !11
  %93 = getelementptr inbounds ptr, ptr %4, i64 %indvars.iv195
  %94 = load ptr, ptr %93, align 8, !tbaa !5
  %95 = getelementptr inbounds i32, ptr %5, i64 %indvars.iv195
  %96 = load i32, ptr %95, align 4, !tbaa !11
  %97 = getelementptr inbounds i64, ptr %8, i64 %indvars.iv195
  %98 = load i64, ptr %97, align 8, !tbaa !13
  %99 = getelementptr inbounds ptr, ptr %9, i64 %indvars.iv195
  %100 = load ptr, ptr %99, align 8, !tbaa !5
  %101 = getelementptr inbounds i32, ptr %10, i64 %indvars.iv195
  %102 = load i32, ptr %101, align 4, !tbaa !11
  invoke void @_ZN5mxnet3ext9MXContextC1EPKci(ptr noundef nonnull align 8 dereferenceable(36) %49, ptr noundef %100, i32 noundef %102)
          to label %103 unwind label %104

103:                                              ; preds = %88
  invoke void @_ZN5mxnet3ext8MXTensor9setTensorEPvNS0_7MXDTypeEPKlimNS0_9MXContextENS0_13MXStorageTypeE(ptr noundef nonnull align 8 dereferenceable(140) %89, ptr noundef %90, i32 noundef %92, ptr noundef %94, i32 noundef %96, i64 noundef %98, ptr noundef nonnull %49, i32 noundef 0)
          to label %154 unwind label %106

104:                                              ; preds = %88
  %105 = landingpad { ptr, i32 }
          cleanup
  br label %240

106:                                              ; preds = %103
  %107 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN5mxnet3ext9MXContextD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %49) #4
  br label %240

108:                                              ; preds = %.lr.ph188
  %109 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorIN5mxnet3ext8MXSparseESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %47, i64 noundef %indvars.iv195) #4
  %110 = load ptr, ptr %87, align 8, !tbaa !5
  %111 = getelementptr inbounds ptr, ptr %4, i64 %indvars.iv195
  %112 = load ptr, ptr %111, align 8, !tbaa !5
  %113 = getelementptr inbounds i32, ptr %5, i64 %indvars.iv195
  %114 = load i32, ptr %113, align 4, !tbaa !11
  %115 = getelementptr inbounds ptr, ptr %29, i64 %indvars.iv195
  %116 = load ptr, ptr %115, align 8, !tbaa !5
  %117 = getelementptr inbounds i64, ptr %33, i64 %indvars.iv195
  %118 = load i64, ptr %117, align 8, !tbaa !13
  call void @_ZN5mxnet3ext8MXSparse3setEPvPKliS2_lS2_l(ptr noundef nonnull align 8 dereferenceable(48) %109, ptr noundef %110, ptr noundef %112, i32 noundef %114, ptr noundef %116, i64 noundef %118, ptr noundef null, i64 noundef 0)
  br label %134

119:                                              ; preds = %.lr.ph188
  %120 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorIN5mxnet3ext8MXSparseESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %47, i64 noundef %indvars.iv195) #4
  %121 = load ptr, ptr %87, align 8, !tbaa !5
  %122 = getelementptr inbounds ptr, ptr %4, i64 %indvars.iv195
  %123 = load ptr, ptr %122, align 8, !tbaa !5
  %124 = getelementptr inbounds i32, ptr %5, i64 %indvars.iv195
  %125 = load i32, ptr %124, align 4, !tbaa !11
  %126 = getelementptr inbounds ptr, ptr %29, i64 %indvars.iv195
  %127 = load ptr, ptr %126, align 8, !tbaa !5
  %128 = getelementptr inbounds i64, ptr %33, i64 %indvars.iv195
  %129 = load i64, ptr %128, align 8, !tbaa !13
  %130 = getelementptr inbounds ptr, ptr %31, i64 %indvars.iv195
  %131 = load ptr, ptr %130, align 8, !tbaa !5
  %132 = getelementptr inbounds i64, ptr %35, i64 %indvars.iv195
  %133 = load i64, ptr %132, align 8, !tbaa !13
  call void @_ZN5mxnet3ext8MXSparse3setEPvPKliS2_lS2_l(ptr noundef nonnull align 8 dereferenceable(48) %120, ptr noundef %121, ptr noundef %123, i32 noundef %125, ptr noundef %127, i64 noundef %129, ptr noundef %131, i64 noundef %133)
  br label %134

134:                                              ; preds = %119, %108
  %.0149 = phi i32 [ 1, %108 ], [ 2, %119 ]
  %135 = call noundef nonnull align 8 dereferenceable(140) ptr @_ZNSt6vectorIN5mxnet3ext8MXTensorESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %45, i64 noundef %indvars.iv195) #4
  %136 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorIN5mxnet3ext8MXSparseESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %47, i64 noundef %indvars.iv195) #4
  %137 = getelementptr inbounds i32, ptr %7, i64 %indvars.iv195
  %138 = load i32, ptr %137, align 4, !tbaa !11
  %139 = getelementptr inbounds ptr, ptr %4, i64 %indvars.iv195
  %140 = load ptr, ptr %139, align 8, !tbaa !5
  %141 = getelementptr inbounds i32, ptr %5, i64 %indvars.iv195
  %142 = load i32, ptr %141, align 4, !tbaa !11
  %143 = getelementptr inbounds i64, ptr %8, i64 %indvars.iv195
  %144 = load i64, ptr %143, align 8, !tbaa !13
  %145 = getelementptr inbounds ptr, ptr %9, i64 %indvars.iv195
  %146 = load ptr, ptr %145, align 8, !tbaa !5
  %147 = getelementptr inbounds i32, ptr %10, i64 %indvars.iv195
  %148 = load i32, ptr %147, align 4, !tbaa !11
  invoke void @_ZN5mxnet3ext9MXContextC1EPKci(ptr noundef nonnull align 8 dereferenceable(36) %50, ptr noundef %146, i32 noundef %148)
          to label %149 unwind label %150

149:                                              ; preds = %134
  invoke void @_ZN5mxnet3ext8MXTensor9setTensorEPvNS0_7MXDTypeEPKlimNS0_9MXContextENS0_13MXStorageTypeE(ptr noundef nonnull align 8 dereferenceable(140) %135, ptr noundef nonnull %136, i32 noundef %138, ptr noundef %140, i32 noundef %142, i64 noundef %144, ptr noundef nonnull %50, i32 noundef %.0149)
          to label %154 unwind label %152

150:                                              ; preds = %134
  %151 = landingpad { ptr, i32 }
          cleanup
  br label %240

152:                                              ; preds = %149
  %153 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN5mxnet3ext9MXContextD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %50) #4
  br label %240

154:                                              ; preds = %149, %103
  %.sink = phi ptr [ %49, %103 ], [ %50, %149 ]
  call void @_ZN5mxnet3ext9MXContextD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %.sink) #4
  %indvars.iv.next196 = add nuw nsw i64 %indvars.iv195, 1
  %exitcond199.not = icmp eq i64 %indvars.iv.next196, %wide.trip.count198
  br i1 %exitcond199.not, label %._crit_edge189, label %.lr.ph188, !llvm.loop !15

155:                                              ; preds = %._crit_edge189
  call void @_ZNSt15__new_allocatorIN5mxnet3ext8MXTensorEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %52) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %52) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %53) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %54) #4
  call void @_ZNSaIN5mxnet3ext8MXSparseEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %54) #4
  invoke void @_ZNSt6vectorIN5mxnet3ext8MXSparseESaIS2_EEC2EmRKS3_(ptr noundef nonnull align 8 dereferenceable(24) %53, i64 noundef %80, ptr noundef nonnull align 1 dereferenceable(1) %54)
          to label %156 unwind label %160

156:                                              ; preds = %155
  call void @_ZNSt15__new_allocatorIN5mxnet3ext8MXSparseEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %54) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %54) #4
  %157 = icmp sgt i32 %19, 0
  br i1 %157, label %.lr.ph192.preheader, label %._crit_edge193

.lr.ph192.preheader:                              ; preds = %156
  %wide.trip.count203 = zext nneg i32 %19 to i64
  br label %.lr.ph192

._crit_edge193:                                   ; preds = %231, %156
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %57) #4
  invoke void @_ZN5mxnet3ext10OpResourceC1EPFPvS2_iES2_S4_S2_S2_PFvS2_iiiPS2_PPlS7_ES2_S2_S2_(ptr noundef nonnull align 8 dereferenceable(72) %57, ptr noundef %20, ptr noundef %21, ptr noundef %22, ptr noundef %23, ptr noundef %24, ptr noundef %25, ptr noundef %26, ptr noundef %37, ptr noundef %38)
          to label %232 unwind label %235

158:                                              ; preds = %._crit_edge189
  %159 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIN5mxnet3ext8MXTensorEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %52) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %52) #4
  br label %239

160:                                              ; preds = %155
  %161 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIN5mxnet3ext8MXSparseEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %54) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %54) #4
  br label %238

.lr.ph192:                                        ; preds = %.lr.ph192.preheader, %231
  %indvars.iv200 = phi i64 [ 0, %.lr.ph192.preheader ], [ %indvars.iv.next201, %231 ]
  %162 = getelementptr inbounds i32, ptr %28, i64 %indvars.iv200
  %163 = load i32, ptr %162, align 4, !tbaa !11
  %164 = getelementptr inbounds ptr, ptr %14, i64 %indvars.iv200
  switch i32 %163, label %196 [
    i32 0, label %165
    i32 1, label %185
  ]

165:                                              ; preds = %.lr.ph192
  %166 = call noundef nonnull align 8 dereferenceable(140) ptr @_ZNSt6vectorIN5mxnet3ext8MXTensorESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %51, i64 noundef %indvars.iv200) #4
  %167 = load ptr, ptr %164, align 8, !tbaa !5
  %168 = getelementptr inbounds i32, ptr %15, i64 %indvars.iv200
  %169 = load i32, ptr %168, align 4, !tbaa !11
  %170 = getelementptr inbounds ptr, ptr %12, i64 %indvars.iv200
  %171 = load ptr, ptr %170, align 8, !tbaa !5
  %172 = getelementptr inbounds i32, ptr %13, i64 %indvars.iv200
  %173 = load i32, ptr %172, align 4, !tbaa !11
  %174 = getelementptr inbounds i64, ptr %16, i64 %indvars.iv200
  %175 = load i64, ptr %174, align 8, !tbaa !13
  %176 = getelementptr inbounds ptr, ptr %17, i64 %indvars.iv200
  %177 = load ptr, ptr %176, align 8, !tbaa !5
  %178 = getelementptr inbounds i32, ptr %18, i64 %indvars.iv200
  %179 = load i32, ptr %178, align 4, !tbaa !11
  invoke void @_ZN5mxnet3ext9MXContextC1EPKci(ptr noundef nonnull align 8 dereferenceable(36) %55, ptr noundef %177, i32 noundef %179)
          to label %180 unwind label %181

180:                                              ; preds = %165
  invoke void @_ZN5mxnet3ext8MXTensor9setTensorEPvNS0_7MXDTypeEPKlimNS0_9MXContextENS0_13MXStorageTypeE(ptr noundef nonnull align 8 dereferenceable(140) %166, ptr noundef %167, i32 noundef %169, ptr noundef %171, i32 noundef %173, i64 noundef %175, ptr noundef nonnull %55, i32 noundef 0)
          to label %231 unwind label %183

181:                                              ; preds = %165
  %182 = landingpad { ptr, i32 }
          cleanup
  br label %237

183:                                              ; preds = %180
  %184 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN5mxnet3ext9MXContextD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %55) #4
  br label %237

185:                                              ; preds = %.lr.ph192
  %186 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorIN5mxnet3ext8MXSparseESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %53, i64 noundef %indvars.iv200) #4
  %187 = load ptr, ptr %164, align 8, !tbaa !5
  %188 = getelementptr inbounds ptr, ptr %12, i64 %indvars.iv200
  %189 = load ptr, ptr %188, align 8, !tbaa !5
  %190 = getelementptr inbounds i32, ptr %13, i64 %indvars.iv200
  %191 = load i32, ptr %190, align 4, !tbaa !11
  %192 = getelementptr inbounds ptr, ptr %30, i64 %indvars.iv200
  %193 = load ptr, ptr %192, align 8, !tbaa !5
  %194 = getelementptr inbounds i64, ptr %34, i64 %indvars.iv200
  %195 = load i64, ptr %194, align 8, !tbaa !13
  call void @_ZN5mxnet3ext8MXSparse3setEPvPKliS2_lS2_l(ptr noundef nonnull align 8 dereferenceable(48) %186, ptr noundef %187, ptr noundef %189, i32 noundef %191, ptr noundef %193, i64 noundef %195, ptr noundef null, i64 noundef 0)
  br label %211

196:                                              ; preds = %.lr.ph192
  %197 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorIN5mxnet3ext8MXSparseESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %53, i64 noundef %indvars.iv200) #4
  %198 = load ptr, ptr %164, align 8, !tbaa !5
  %199 = getelementptr inbounds ptr, ptr %12, i64 %indvars.iv200
  %200 = load ptr, ptr %199, align 8, !tbaa !5
  %201 = getelementptr inbounds i32, ptr %13, i64 %indvars.iv200
  %202 = load i32, ptr %201, align 4, !tbaa !11
  %203 = getelementptr inbounds ptr, ptr %30, i64 %indvars.iv200
  %204 = load ptr, ptr %203, align 8, !tbaa !5
  %205 = getelementptr inbounds i64, ptr %34, i64 %indvars.iv200
  %206 = load i64, ptr %205, align 8, !tbaa !13
  %207 = getelementptr inbounds ptr, ptr %32, i64 %indvars.iv200
  %208 = load ptr, ptr %207, align 8, !tbaa !5
  %209 = getelementptr inbounds i64, ptr %36, i64 %indvars.iv200
  %210 = load i64, ptr %209, align 8, !tbaa !13
  call void @_ZN5mxnet3ext8MXSparse3setEPvPKliS2_lS2_l(ptr noundef nonnull align 8 dereferenceable(48) %197, ptr noundef %198, ptr noundef %200, i32 noundef %202, ptr noundef %204, i64 noundef %206, ptr noundef %208, i64 noundef %210)
  br label %211

211:                                              ; preds = %196, %185
  %.0 = phi i32 [ 1, %185 ], [ 2, %196 ]
  %212 = call noundef nonnull align 8 dereferenceable(140) ptr @_ZNSt6vectorIN5mxnet3ext8MXTensorESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %51, i64 noundef %indvars.iv200) #4
  %213 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorIN5mxnet3ext8MXSparseESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %53, i64 noundef %indvars.iv200) #4
  %214 = getelementptr inbounds i32, ptr %15, i64 %indvars.iv200
  %215 = load i32, ptr %214, align 4, !tbaa !11
  %216 = getelementptr inbounds ptr, ptr %12, i64 %indvars.iv200
  %217 = load ptr, ptr %216, align 8, !tbaa !5
  %218 = getelementptr inbounds i32, ptr %13, i64 %indvars.iv200
  %219 = load i32, ptr %218, align 4, !tbaa !11
  %220 = getelementptr inbounds i64, ptr %16, i64 %indvars.iv200
  %221 = load i64, ptr %220, align 8, !tbaa !13
  %222 = getelementptr inbounds ptr, ptr %17, i64 %indvars.iv200
  %223 = load ptr, ptr %222, align 8, !tbaa !5
  %224 = getelementptr inbounds i32, ptr %18, i64 %indvars.iv200
  %225 = load i32, ptr %224, align 4, !tbaa !11
  invoke void @_ZN5mxnet3ext9MXContextC1EPKci(ptr noundef nonnull align 8 dereferenceable(36) %56, ptr noundef %223, i32 noundef %225)
          to label %226 unwind label %227

226:                                              ; preds = %211
  invoke void @_ZN5mxnet3ext8MXTensor9setTensorEPvNS0_7MXDTypeEPKlimNS0_9MXContextENS0_13MXStorageTypeE(ptr noundef nonnull align 8 dereferenceable(140) %212, ptr noundef nonnull %213, i32 noundef %215, ptr noundef %217, i32 noundef %219, i64 noundef %221, ptr noundef nonnull %56, i32 noundef %.0)
          to label %231 unwind label %229

227:                                              ; preds = %211
  %228 = landingpad { ptr, i32 }
          cleanup
  br label %237

229:                                              ; preds = %226
  %230 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN5mxnet3ext9MXContextD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %56) #4
  br label %237

231:                                              ; preds = %226, %180
  %.sink205 = phi ptr [ %55, %180 ], [ %56, %226 ]
  call void @_ZN5mxnet3ext9MXContextD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %.sink205) #4
  %indvars.iv.next201 = add nuw nsw i64 %indvars.iv200, 1
  %exitcond204.not = icmp eq i64 %indvars.iv.next201, %wide.trip.count203
  br i1 %exitcond204.not, label %._crit_edge193, label %.lr.ph192, !llvm.loop !16

232:                                              ; preds = %._crit_edge193
  %233 = invoke noundef i32 %0(ptr noundef nonnull align 8 dereferenceable(56) %40, ptr noundef nonnull %45, ptr noundef nonnull %51, ptr noundef nonnull align 8 dereferenceable(72) %57)
          to label %234 unwind label %235

234:                                              ; preds = %232
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %57) #4
  call void @_ZNSt6vectorIN5mxnet3ext8MXSparseESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %53) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %53) #4
  call void @_ZNSt6vectorIN5mxnet3ext8MXTensorESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %51) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %51) #4
  call void @_ZNSt6vectorIN5mxnet3ext8MXSparseESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %47) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %47) #4
  call void @_ZNSt6vectorIN5mxnet3ext8MXTensorESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %45) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %45) #4
  call void @_ZNSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_St4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_S5_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %40) #4
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %40) #4
  ret i32 %233

235:                                              ; preds = %232, %._crit_edge193
  %236 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %57) #4
  br label %237

237:                                              ; preds = %181, %183, %229, %227, %235
  %.pn169.pn = phi { ptr, i32 } [ %236, %235 ], [ %184, %183 ], [ %182, %181 ], [ %230, %229 ], [ %228, %227 ]
  call void @_ZNSt6vectorIN5mxnet3ext8MXSparseESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %53) #4
  br label %238

238:                                              ; preds = %237, %160
  %.pn169.pn.pn = phi { ptr, i32 } [ %.pn169.pn, %237 ], [ %161, %160 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %53) #4
  call void @_ZNSt6vectorIN5mxnet3ext8MXTensorESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %51) #4
  br label %239

239:                                              ; preds = %238, %158
  %.pn169.pn.pn.pn = phi { ptr, i32 } [ %.pn169.pn.pn, %238 ], [ %159, %158 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %51) #4
  br label %240

240:                                              ; preds = %104, %106, %152, %150, %239
  %.pn176.pn = phi { ptr, i32 } [ %.pn169.pn.pn.pn, %239 ], [ %107, %106 ], [ %105, %104 ], [ %153, %152 ], [ %151, %150 ]
  call void @_ZNSt6vectorIN5mxnet3ext8MXSparseESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %47) #4
  br label %241

241:                                              ; preds = %240, %83
  %.pn176.pn.pn = phi { ptr, i32 } [ %.pn176.pn, %240 ], [ %84, %83 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %47) #4
  call void @_ZNSt6vectorIN5mxnet3ext8MXTensorESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %45) #4
  br label %242

242:                                              ; preds = %241, %81
  %.pn176.pn.pn.pn = phi { ptr, i32 } [ %.pn176.pn.pn, %241 ], [ %82, %81 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %45) #4
  br label %243

243:                                              ; preds = %242, %76
  %.pn181.pn.pn = phi { ptr, i32 } [ %.pn181.pn, %76 ], [ %.pn176.pn.pn.pn, %242 ]
  call void @_ZNSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_St4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_S5_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %40) #4
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %40) #4
  resume { ptr, i32 } %.pn181.pn.pn
}

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

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

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

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

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

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

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

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

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

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

declare void @_ZN5mxnet3ext9MXContextC1EPKci(ptr, ptr, i32) local_unnamed_addr

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress 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 = { 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 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = distinct !{!15, !10}
!16 = distinct !{!16, !10}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass