; LLVM IR from apache/mxnet :: example/extensions/lib_subgraph (subgraph_lib)

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

%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::vector.16" = type { %"struct.std::_Vector_base.17" }
%"struct.std::_Vector_base.17" = 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::vector.21" = type { %"struct.std::_Vector_base.22" }
%"struct.std::_Vector_base.22" = type { %"struct.std::_Vector_base<void *, std::allocator<void *>>::_Vector_impl" }
%"struct.std::_Vector_base<void *, std::allocator<void *>>::_Vector_impl" = type { %"struct.std::_Vector_base<void *, std::allocator<void *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<void *, std::allocator<void *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.mxnet::ext::MXTensor" = type <{ ptr, %"class.std::vector", i32, [4 x i8], i64, %"struct.mxnet::ext::MXContext", %struct.DLTensor, i32, [4 x i8] }>
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<long, std::allocator<long>>::_Vector_impl" }
%"struct.std::_Vector_base<long, std::allocator<long>>::_Vector_impl" = type { %"struct.std::_Vector_base<long, std::allocator<long>>::_Vector_impl_data" }
%"struct.std::_Vector_base<long, std::allocator<long>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.mxnet::ext::MXContext" = type <{ %"class.std::__cxx11::basic_string", i32, [4 x i8] }>
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%struct.DLTensor = type { ptr, %struct.DLContext, i32, %struct.DLDataType, ptr, ptr, i64 }
%struct.DLContext = type { i32, i32 }
%struct.DLDataType = type { i8, i8, i16 }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.mxnet::ext::Node" = type { %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", ptr, %"class.std::vector.8", %"class.std::vector.8", %"class.std::vector.26", %"class.std::unordered_map", ptr }
%"class.std::vector.8" = type { %"struct.std::_Vector_base.9" }
%"struct.std::_Vector_base.9" = type { %"struct.std::_Vector_base<mxnet::ext::NodeEntry, std::allocator<mxnet::ext::NodeEntry>>::_Vector_impl" }
%"struct.std::_Vector_base<mxnet::ext::NodeEntry, std::allocator<mxnet::ext::NodeEntry>>::_Vector_impl" = type { %"struct.std::_Vector_base<mxnet::ext::NodeEntry, std::allocator<mxnet::ext::NodeEntry>>::_Vector_impl_data" }
%"struct.std::_Vector_base<mxnet::ext::NodeEntry, std::allocator<mxnet::ext::NodeEntry>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.26" = type { %"struct.std::_Vector_base.27" }
%"struct.std::_Vector_base.27" = type { %"struct.std::_Vector_base<mxnet::ext::Graph *, std::allocator<mxnet::ext::Graph *>>::_Vector_impl" }
%"struct.std::_Vector_base<mxnet::ext::Graph *, std::allocator<mxnet::ext::Graph *>>::_Vector_impl" = type { %"struct.std::_Vector_base<mxnet::ext::Graph *, std::allocator<mxnet::ext::Graph *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<mxnet::ext::Graph *, std::allocator<mxnet::ext::Graph *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::unordered_map" = type { %"class.std::_Hashtable" }
%"class.std::_Hashtable" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%"struct.mxnet::ext::NodeEntry" = type { ptr, i32 }
%"class.mxnet::ext::Graph" = type { %"class.std::vector.3", %"class.std::vector.8", %"class.std::map", %"class.std::vector.3", ptr }
%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, mxnet::ext::JsonVal>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, mxnet::ext::JsonVal>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, mxnet::ext::JsonVal>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, mxnet::ext::JsonVal>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.std::vector.3" = type { %"struct.std::_Vector_base.4" }
%"struct.std::_Vector_base.4" = type { %"struct.std::_Vector_base<mxnet::ext::Node *, std::allocator<mxnet::ext::Node *>>::_Vector_impl" }
%"struct.std::_Vector_base<mxnet::ext::Node *, std::allocator<mxnet::ext::Node *>>::_Vector_impl" = type { %"struct.std::_Vector_base<mxnet::ext::Node *, std::allocator<mxnet::ext::Node *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<mxnet::ext::Node *, std::allocator<mxnet::ext::Node *>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [20 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [94 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [22 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z5myLogPN5mxnet3ext8MXTensorES2_(ptr noundef, ptr noundef) #0

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

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

declare noundef i64 @_ZNK5mxnet3ext8MXTensor4sizeEv(ptr noundef nonnull align 8 dereferenceable(140)) #3

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z5myExpPN5mxnet3ext8MXTensorES2_(ptr noundef, ptr noundef) #0

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z10myExecutorPSt6vectorIN5mxnet3ext8MXTensorESaIS2_EES5_PNS1_5GraphE(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 personality ptr @__gxx_personality_v0 {
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca %"class.std::vector.16", align 8
  %10 = alloca %"class.std::vector.21", align 8
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca %"struct.mxnet::ext::MXTensor", align 8
  %18 = alloca %"class.std::vector", align 8
  %19 = alloca %"struct.mxnet::ext::MXContext", align 8
  %20 = alloca ptr, align 8
  %21 = alloca %"struct.mxnet::ext::MXTensor", align 8
  %22 = alloca %"class.std::vector", align 8
  %23 = alloca %"struct.mxnet::ext::MXContext", align 8
  %24 = alloca ptr, align 8
  %25 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %26 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %27 = alloca ptr, align 8
  %28 = alloca i32, align 4
  %29 = alloca ptr, align 8
  %30 = alloca ptr, align 8
  %31 = alloca ptr, align 8
  %32 = alloca ptr, align 8
  %33 = alloca i64, align 8
  %34 = alloca ptr, align 8
  %35 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %36 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %37 = alloca ptr, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  %38 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str)
  %39 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %38, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %40 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZNK5mxnet3ext5Graph5printEi(ptr noundef nonnull align 8 dereferenceable(128) %40, i32 noundef 0)
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #8
  store i32 0, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 24, ptr %9) #8
  call void @_ZNSt6vectorIN5mxnet3ext8MXTensorESaIS2_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %10) #8
  call void @_ZNSt6vectorIPvSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #8
  store i32 0, ptr %11, align 4, !tbaa !9
  br label %41

41:                                               ; preds = %228, %3
  %42 = load i32, ptr %11, align 4, !tbaa !9
  %43 = sext i32 %42 to i64
  %44 = load ptr, ptr %7, align 8, !tbaa !5
  %45 = invoke noundef i64 @_ZNK5mxnet3ext5Graph4sizeEv(ptr noundef nonnull align 8 dereferenceable(128) %44)
          to label %46 unwind label %49

46:                                               ; preds = %41
  %47 = icmp ult i64 %43, %45
  br i1 %47, label %53, label %48

48:                                               ; preds = %46
  store i32 2, ptr %14, align 4
  br label %232

49:                                               ; preds = %41
  %50 = landingpad { ptr, i32 }
          cleanup
  %51 = extractvalue { ptr, i32 } %50, 0
  store ptr %51, ptr %12, align 8
  %52 = extractvalue { ptr, i32 } %50, 1
  store i32 %52, ptr %13, align 4
  br label %234

53:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #8
  %54 = load ptr, ptr %7, align 8, !tbaa !5
  %55 = load i32, ptr %11, align 4, !tbaa !9
  %56 = sext i32 %55 to i64
  %57 = invoke noundef ptr @_ZN5mxnet3ext5Graph7getNodeEm(ptr noundef nonnull align 8 dereferenceable(128) %54, i64 noundef %56)
          to label %58 unwind label %72

58:                                               ; preds = %53
  store ptr %57, ptr %15, align 8, !tbaa !5
  %59 = load ptr, ptr %15, align 8, !tbaa !5
  %60 = getelementptr inbounds %"class.mxnet::ext::Node", ptr %59, i32 0, i32 0
  %61 = call noundef i32 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc(ptr noundef nonnull align 8 dereferenceable(32) %60, ptr noundef @.str.1) #8
  %62 = icmp eq i32 %61, 0
  br i1 %62, label %63, label %76

63:                                               ; preds = %58
  %64 = load ptr, ptr %5, align 8, !tbaa !5
  %65 = load i32, ptr %8, align 4, !tbaa !9
  %66 = add nsw i32 %65, 1
  store i32 %66, ptr %8, align 4, !tbaa !9
  %67 = sext i32 %65 to i64
  %68 = invoke noundef nonnull align 8 dereferenceable(140) ptr @_ZNSt6vectorIN5mxnet3ext8MXTensorESaIS2_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %64, i64 noundef %67)
          to label %69 unwind label %72

69:                                               ; preds = %63
  %70 = load ptr, ptr %15, align 8, !tbaa !5
  %71 = getelementptr inbounds %"class.mxnet::ext::Node", ptr %70, i32 0, i32 2
  store ptr %68, ptr %71, align 8, !tbaa !11
  br label %224

72:                                               ; preds = %203, %199, %196, %194, %192, %63, %53
  %73 = landingpad { ptr, i32 }
          cleanup
  %74 = extractvalue { ptr, i32 } %73, 0
  store ptr %74, ptr %12, align 8
  %75 = extractvalue { ptr, i32 } %73, 1
  store i32 %75, ptr %13, align 4
  br label %231

76:                                               ; preds = %58
  %77 = load ptr, ptr %15, align 8, !tbaa !5
  %78 = getelementptr inbounds %"class.mxnet::ext::Node", ptr %77, i32 0, i32 0
  %79 = call noundef i32 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc(ptr noundef nonnull align 8 dereferenceable(32) %78, ptr noundef @.str.2) #8
  %80 = icmp eq i32 %79, 0
  br i1 %80, label %81, label %134

81:                                               ; preds = %76
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #8
  %82 = load ptr, ptr %15, align 8, !tbaa !5
  %83 = getelementptr inbounds %"class.mxnet::ext::Node", ptr %82, i32 0, i32 3
  %84 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN5mxnet3ext9NodeEntryESaIS2_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %83, i64 noundef 0)
          to label %85 unwind label %111

85:                                               ; preds = %81
  %86 = getelementptr inbounds %"struct.mxnet::ext::NodeEntry", ptr %84, i32 0, i32 0
  %87 = load ptr, ptr %86, align 8, !tbaa !29
  %88 = getelementptr inbounds %"class.mxnet::ext::Node", ptr %87, i32 0, i32 2
  %89 = load ptr, ptr %88, align 8, !tbaa !11
  store ptr %89, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 144, ptr %17) #8
  %90 = load ptr, ptr %16, align 8, !tbaa !5
  %91 = invoke noundef i64 @_ZNK5mxnet3ext8MXTensor4sizeEv(ptr noundef nonnull align 8 dereferenceable(140) %90)
          to label %92 unwind label %115

92:                                               ; preds = %85
  %93 = mul nsw i64 %91, 4
  %94 = call noalias ptr @malloc(i64 noundef %93) #9
  %95 = load ptr, ptr %16, align 8, !tbaa !5
  %96 = getelementptr inbounds %"struct.mxnet::ext::MXTensor", ptr %95, i32 0, i32 1
  invoke void @_ZNSt6vectorIlSaIlEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %18, ptr noundef nonnull align 8 dereferenceable(24) %96)
          to label %97 unwind label %115

97:                                               ; preds = %92
  %98 = load ptr, ptr %16, align 8, !tbaa !5
  %99 = getelementptr inbounds %"struct.mxnet::ext::MXTensor", ptr %98, i32 0, i32 2
  %100 = load i32, ptr %99, align 8, !tbaa !31
  invoke void @_ZN5mxnet3ext9MXContext3CPUEi(ptr dead_on_unwind writable sret(%"struct.mxnet::ext::MXContext") align 8 %19, i32 noundef 0)
          to label %101 unwind label %119

101:                                              ; preds = %97
  invoke void @_ZN5mxnet3ext8MXTensorC1EPvSt6vectorIlSaIlEENS0_7MXDTypeEmNS0_9MXContextENS0_13MXStorageTypeE(ptr noundef nonnull align 8 dereferenceable(140) %17, ptr noundef %94, ptr noundef %18, i32 noundef %100, i64 noundef 0, ptr noundef %19, i32 noundef 0)
          to label %102 unwind label %123

102:                                              ; preds = %101
  call void @_ZN5mxnet3ext9MXContextD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %19) #8
  call void @_ZNSt6vectorIlSaIlEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #8
  %103 = getelementptr inbounds %"struct.mxnet::ext::MXTensor", ptr %17, i32 0, i32 0
  invoke void @_ZNSt6vectorIPvSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef nonnull align 8 dereferenceable(8) %103)
          to label %104 unwind label %128

104:                                              ; preds = %102
  %105 = load ptr, ptr %16, align 8, !tbaa !5
  invoke void @_Z5myLogPN5mxnet3ext8MXTensorES2_(ptr noundef %105, ptr noundef %17)
          to label %106 unwind label %128

106:                                              ; preds = %104
  invoke void @_ZNSt6vectorIN5mxnet3ext8MXTensorESaIS2_EE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull align 8 dereferenceable(140) %17)
          to label %107 unwind label %128

107:                                              ; preds = %106
  %108 = call noundef nonnull align 8 dereferenceable(140) ptr @_ZNSt6vectorIN5mxnet3ext8MXTensorESaIS2_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #8
  %109 = load ptr, ptr %15, align 8, !tbaa !5
  %110 = getelementptr inbounds %"class.mxnet::ext::Node", ptr %109, i32 0, i32 2
  store ptr %108, ptr %110, align 8, !tbaa !11
  call void @_ZN5mxnet3ext8MXTensorD2Ev(ptr noundef nonnull align 8 dereferenceable(140) %17) #8
  call void @llvm.lifetime.end.p0(i64 144, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  br label %223

111:                                              ; preds = %81
  %112 = landingpad { ptr, i32 }
          cleanup
  %113 = extractvalue { ptr, i32 } %112, 0
  store ptr %113, ptr %12, align 8
  %114 = extractvalue { ptr, i32 } %112, 1
  store i32 %114, ptr %13, align 4
  br label %133

115:                                              ; preds = %92, %85
  %116 = landingpad { ptr, i32 }
          cleanup
  %117 = extractvalue { ptr, i32 } %116, 0
  store ptr %117, ptr %12, align 8
  %118 = extractvalue { ptr, i32 } %116, 1
  store i32 %118, ptr %13, align 4
  br label %132

119:                                              ; preds = %97
  %120 = landingpad { ptr, i32 }
          cleanup
  %121 = extractvalue { ptr, i32 } %120, 0
  store ptr %121, ptr %12, align 8
  %122 = extractvalue { ptr, i32 } %120, 1
  store i32 %122, ptr %13, align 4
  br label %127

123:                                              ; preds = %101
  %124 = landingpad { ptr, i32 }
          cleanup
  %125 = extractvalue { ptr, i32 } %124, 0
  store ptr %125, ptr %12, align 8
  %126 = extractvalue { ptr, i32 } %124, 1
  store i32 %126, ptr %13, align 4
  call void @_ZN5mxnet3ext9MXContextD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %19) #8
  br label %127

127:                                              ; preds = %123, %119
  call void @_ZNSt6vectorIlSaIlEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #8
  br label %132

128:                                              ; preds = %106, %104, %102
  %129 = landingpad { ptr, i32 }
          cleanup
  %130 = extractvalue { ptr, i32 } %129, 0
  store ptr %130, ptr %12, align 8
  %131 = extractvalue { ptr, i32 } %129, 1
  store i32 %131, ptr %13, align 4
  call void @_ZN5mxnet3ext8MXTensorD2Ev(ptr noundef nonnull align 8 dereferenceable(140) %17) #8
  br label %132

132:                                              ; preds = %128, %127, %115
  call void @llvm.lifetime.end.p0(i64 144, ptr %17) #8
  br label %133

133:                                              ; preds = %132, %111
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  br label %231

134:                                              ; preds = %76
  %135 = load ptr, ptr %15, align 8, !tbaa !5
  %136 = getelementptr inbounds %"class.mxnet::ext::Node", ptr %135, i32 0, i32 0
  %137 = call noundef i32 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc(ptr noundef nonnull align 8 dereferenceable(32) %136, ptr noundef @.str.3) #8
  %138 = icmp eq i32 %137, 0
  br i1 %138, label %139, label %192

139:                                              ; preds = %134
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #8
  %140 = load ptr, ptr %15, align 8, !tbaa !5
  %141 = getelementptr inbounds %"class.mxnet::ext::Node", ptr %140, i32 0, i32 3
  %142 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN5mxnet3ext9NodeEntryESaIS2_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %141, i64 noundef 0)
          to label %143 unwind label %169

143:                                              ; preds = %139
  %144 = getelementptr inbounds %"struct.mxnet::ext::NodeEntry", ptr %142, i32 0, i32 0
  %145 = load ptr, ptr %144, align 8, !tbaa !29
  %146 = getelementptr inbounds %"class.mxnet::ext::Node", ptr %145, i32 0, i32 2
  %147 = load ptr, ptr %146, align 8, !tbaa !11
  store ptr %147, ptr %20, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 144, ptr %21) #8
  %148 = load ptr, ptr %20, align 8, !tbaa !5
  %149 = invoke noundef i64 @_ZNK5mxnet3ext8MXTensor4sizeEv(ptr noundef nonnull align 8 dereferenceable(140) %148)
          to label %150 unwind label %173

150:                                              ; preds = %143
  %151 = mul nsw i64 %149, 4
  %152 = call noalias ptr @malloc(i64 noundef %151) #9
  %153 = load ptr, ptr %20, align 8, !tbaa !5
  %154 = getelementptr inbounds %"struct.mxnet::ext::MXTensor", ptr %153, i32 0, i32 1
  invoke void @_ZNSt6vectorIlSaIlEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %22, ptr noundef nonnull align 8 dereferenceable(24) %154)
          to label %155 unwind label %173

155:                                              ; preds = %150
  %156 = load ptr, ptr %20, align 8, !tbaa !5
  %157 = getelementptr inbounds %"struct.mxnet::ext::MXTensor", ptr %156, i32 0, i32 2
  %158 = load i32, ptr %157, align 8, !tbaa !31
  invoke void @_ZN5mxnet3ext9MXContext3CPUEi(ptr dead_on_unwind writable sret(%"struct.mxnet::ext::MXContext") align 8 %23, i32 noundef 0)
          to label %159 unwind label %177

159:                                              ; preds = %155
  invoke void @_ZN5mxnet3ext8MXTensorC1EPvSt6vectorIlSaIlEENS0_7MXDTypeEmNS0_9MXContextENS0_13MXStorageTypeE(ptr noundef nonnull align 8 dereferenceable(140) %21, ptr noundef %152, ptr noundef %22, i32 noundef %158, i64 noundef 0, ptr noundef %23, i32 noundef 0)
          to label %160 unwind label %181

160:                                              ; preds = %159
  call void @_ZN5mxnet3ext9MXContextD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %23) #8
  call void @_ZNSt6vectorIlSaIlEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %22) #8
  %161 = getelementptr inbounds %"struct.mxnet::ext::MXTensor", ptr %21, i32 0, i32 0
  invoke void @_ZNSt6vectorIPvSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef nonnull align 8 dereferenceable(8) %161)
          to label %162 unwind label %186

162:                                              ; preds = %160
  %163 = load ptr, ptr %20, align 8, !tbaa !5
  invoke void @_Z5myExpPN5mxnet3ext8MXTensorES2_(ptr noundef %163, ptr noundef %21)
          to label %164 unwind label %186

164:                                              ; preds = %162
  invoke void @_ZNSt6vectorIN5mxnet3ext8MXTensorESaIS2_EE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull align 8 dereferenceable(140) %21)
          to label %165 unwind label %186

165:                                              ; preds = %164
  %166 = call noundef nonnull align 8 dereferenceable(140) ptr @_ZNSt6vectorIN5mxnet3ext8MXTensorESaIS2_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #8
  %167 = load ptr, ptr %15, align 8, !tbaa !5
  %168 = getelementptr inbounds %"class.mxnet::ext::Node", ptr %167, i32 0, i32 2
  store ptr %166, ptr %168, align 8, !tbaa !11
  call void @_ZN5mxnet3ext8MXTensorD2Ev(ptr noundef nonnull align 8 dereferenceable(140) %21) #8
  call void @llvm.lifetime.end.p0(i64 144, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #8
  br label %222

169:                                              ; preds = %139
  %170 = landingpad { ptr, i32 }
          cleanup
  %171 = extractvalue { ptr, i32 } %170, 0
  store ptr %171, ptr %12, align 8
  %172 = extractvalue { ptr, i32 } %170, 1
  store i32 %172, ptr %13, align 4
  br label %191

173:                                              ; preds = %150, %143
  %174 = landingpad { ptr, i32 }
          cleanup
  %175 = extractvalue { ptr, i32 } %174, 0
  store ptr %175, ptr %12, align 8
  %176 = extractvalue { ptr, i32 } %174, 1
  store i32 %176, ptr %13, align 4
  br label %190

177:                                              ; preds = %155
  %178 = landingpad { ptr, i32 }
          cleanup
  %179 = extractvalue { ptr, i32 } %178, 0
  store ptr %179, ptr %12, align 8
  %180 = extractvalue { ptr, i32 } %178, 1
  store i32 %180, ptr %13, align 4
  br label %185

181:                                              ; preds = %159
  %182 = landingpad { ptr, i32 }
          cleanup
  %183 = extractvalue { ptr, i32 } %182, 0
  store ptr %183, ptr %12, align 8
  %184 = extractvalue { ptr, i32 } %182, 1
  store i32 %184, ptr %13, align 4
  call void @_ZN5mxnet3ext9MXContextD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %23) #8
  br label %185

185:                                              ; preds = %181, %177
  call void @_ZNSt6vectorIlSaIlEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %22) #8
  br label %190

186:                                              ; preds = %164, %162, %160
  %187 = landingpad { ptr, i32 }
          cleanup
  %188 = extractvalue { ptr, i32 } %187, 0
  store ptr %188, ptr %12, align 8
  %189 = extractvalue { ptr, i32 } %187, 1
  store i32 %189, ptr %13, align 4
  call void @_ZN5mxnet3ext8MXTensorD2Ev(ptr noundef nonnull align 8 dereferenceable(140) %21) #8
  br label %190

190:                                              ; preds = %186, %185, %173
  call void @llvm.lifetime.end.p0(i64 144, ptr %21) #8
  br label %191

191:                                              ; preds = %190, %169
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #8
  br label %231

192:                                              ; preds = %134
  %193 = invoke noundef ptr @_ZN5mxnet3ext11MXerrorMsgs3getEv()
          to label %194 unwind label %72

194:                                              ; preds = %192
  %195 = invoke noundef nonnull align 8 dereferenceable(128) ptr @_ZN5mxnet3ext11MXerrorMsgs3addB5cxx11EPKci(ptr noundef nonnull align 8 dereferenceable(24) %193, ptr noundef @.str.4, i32 noundef 112)
          to label %196 unwind label %72

196:                                              ; preds = %194
  %197 = getelementptr inbounds i8, ptr %195, i64 16
  %198 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %197, ptr noundef @.str.5)
          to label %199 unwind label %72

199:                                              ; preds = %196
  %200 = load ptr, ptr %15, align 8, !tbaa !5
  %201 = getelementptr inbounds %"class.mxnet::ext::Node", ptr %200, i32 0, i32 0
  %202 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) %198, ptr noundef nonnull align 8 dereferenceable(32) %201)
          to label %203 unwind label %72

203:                                              ; preds = %199
  %204 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %202, ptr noundef @.str.6)
          to label %205 unwind label %72

205:                                              ; preds = %203
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #8
  store ptr %10, ptr %24, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #8
  %206 = load ptr, ptr %24, align 8, !tbaa !5
  %207 = call ptr @_ZNSt6vectorIPvSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %206) #8
  %208 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %25, i32 0, i32 0
  store ptr %207, ptr %208, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #8
  %209 = load ptr, ptr %24, align 8, !tbaa !5
  %210 = call ptr @_ZNSt6vectorIPvSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %209) #8
  %211 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %26, i32 0, i32 0
  store ptr %210, ptr %211, align 8
  br label %212

212:                                              ; preds = %219, %205
  %213 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPPvSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %25, ptr noundef nonnull align 8 dereferenceable(8) %26) #8
  br i1 %213, label %215, label %214

214:                                              ; preds = %212
  store i32 5, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #8
  br label %221

215:                                              ; preds = %212
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #8
  %216 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPPvSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %25) #8
  %217 = load ptr, ptr %216, align 8, !tbaa !5
  store ptr %217, ptr %27, align 8, !tbaa !5
  %218 = load ptr, ptr %27, align 8, !tbaa !5
  call void @free(ptr noundef %218) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #8
  br label %219

219:                                              ; preds = %215
  %220 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPPvSt6vectorIS1_SaIS1_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %25) #8
  br label %212

221:                                              ; preds = %214
  store i32 0, ptr %4, align 4
  store i32 1, ptr %14, align 4
  br label %225

222:                                              ; preds = %165
  br label %223

223:                                              ; preds = %222, %107
  br label %224

224:                                              ; preds = %223, %69
  store i32 0, ptr %14, align 4
  br label %225

225:                                              ; preds = %224, %221
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  %226 = load i32, ptr %14, align 4
  switch i32 %226, label %232 [
    i32 0, label %227
  ]

227:                                              ; preds = %225
  br label %228

228:                                              ; preds = %227
  %229 = load i32, ptr %11, align 4, !tbaa !9
  %230 = add nsw i32 %229, 1
  store i32 %230, ptr %11, align 4, !tbaa !9
  br label %41, !llvm.loop !45

231:                                              ; preds = %191, %133, %72
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  br label %234

232:                                              ; preds = %225, %48
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #8
  %233 = load i32, ptr %14, align 4
  switch i32 %233, label %323 [
    i32 2, label %235
  ]

234:                                              ; preds = %231, %49
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #8
  br label %325

235:                                              ; preds = %232
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #8
  store i32 0, ptr %28, align 4, !tbaa !9
  br label %236

236:                                              ; preds = %300, %235
  %237 = load i32, ptr %28, align 4, !tbaa !9
  %238 = sext i32 %237 to i64
  %239 = load ptr, ptr %7, align 8, !tbaa !5
  %240 = getelementptr inbounds %"class.mxnet::ext::Graph", ptr %239, i32 0, i32 1
  %241 = call noundef i64 @_ZNKSt6vectorIN5mxnet3ext9NodeEntryESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %240) #8
  %242 = icmp ult i64 %238, %241
  br i1 %242, label %244, label %243

243:                                              ; preds = %236
  store i32 7, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #8
  br label %306

244:                                              ; preds = %236
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #8
  %245 = load ptr, ptr %7, align 8, !tbaa !5
  %246 = getelementptr inbounds %"class.mxnet::ext::Graph", ptr %245, i32 0, i32 1
  %247 = load i32, ptr %28, align 4, !tbaa !9
  %248 = sext i32 %247 to i64
  %249 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN5mxnet3ext9NodeEntryESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %246, i64 noundef %248) #8
  %250 = getelementptr inbounds %"struct.mxnet::ext::NodeEntry", ptr %249, i32 0, i32 0
  %251 = load ptr, ptr %250, align 8, !tbaa !29
  %252 = getelementptr inbounds %"class.mxnet::ext::Node", ptr %251, i32 0, i32 2
  %253 = load ptr, ptr %252, align 8, !tbaa !11
  store ptr %253, ptr %29, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #8
  %254 = load ptr, ptr %6, align 8, !tbaa !5
  %255 = load i32, ptr %28, align 4, !tbaa !9
  %256 = sext i32 %255 to i64
  %257 = invoke noundef nonnull align 8 dereferenceable(140) ptr @_ZNSt6vectorIN5mxnet3ext8MXTensorESaIS2_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %254, i64 noundef %256)
          to label %258 unwind label %272

258:                                              ; preds = %244
  store ptr %257, ptr %30, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #8
  %259 = load ptr, ptr %30, align 8, !tbaa !5
  %260 = invoke noundef ptr @_ZN5mxnet3ext8MXTensor4dataIfEEPT_v(ptr noundef nonnull align 8 dereferenceable(140) %259)
          to label %261 unwind label %276

261:                                              ; preds = %258
  store ptr %260, ptr %31, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #8
  %262 = load ptr, ptr %29, align 8, !tbaa !5
  %263 = invoke noundef ptr @_ZN5mxnet3ext8MXTensor4dataIfEEPT_v(ptr noundef nonnull align 8 dereferenceable(140) %262)
          to label %264 unwind label %280

264:                                              ; preds = %261
  store ptr %263, ptr %32, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #8
  store i64 0, ptr %33, align 8, !tbaa !47
  br label %265

265:                                              ; preds = %296, %264
  %266 = load i64, ptr %33, align 8, !tbaa !47
  %267 = load ptr, ptr %29, align 8, !tbaa !5
  %268 = invoke noundef i64 @_ZNK5mxnet3ext8MXTensor4sizeEv(ptr noundef nonnull align 8 dereferenceable(140) %267)
          to label %269 unwind label %284

269:                                              ; preds = %265
  %270 = icmp slt i64 %266, %268
  br i1 %270, label %288, label %271

271:                                              ; preds = %269
  store i32 10, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #8
  br label %299

272:                                              ; preds = %244
  %273 = landingpad { ptr, i32 }
          cleanup
  %274 = extractvalue { ptr, i32 } %273, 0
  store ptr %274, ptr %12, align 8
  %275 = extractvalue { ptr, i32 } %273, 1
  store i32 %275, ptr %13, align 4
  br label %305

276:                                              ; preds = %258
  %277 = landingpad { ptr, i32 }
          cleanup
  %278 = extractvalue { ptr, i32 } %277, 0
  store ptr %278, ptr %12, align 8
  %279 = extractvalue { ptr, i32 } %277, 1
  store i32 %279, ptr %13, align 4
  br label %304

280:                                              ; preds = %261
  %281 = landingpad { ptr, i32 }
          cleanup
  %282 = extractvalue { ptr, i32 } %281, 0
  store ptr %282, ptr %12, align 8
  %283 = extractvalue { ptr, i32 } %281, 1
  store i32 %283, ptr %13, align 4
  br label %303

284:                                              ; preds = %265
  %285 = landingpad { ptr, i32 }
          cleanup
  %286 = extractvalue { ptr, i32 } %285, 0
  store ptr %286, ptr %12, align 8
  %287 = extractvalue { ptr, i32 } %285, 1
  store i32 %287, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #8
  br label %303

288:                                              ; preds = %269
  %289 = load ptr, ptr %32, align 8, !tbaa !5
  %290 = load i64, ptr %33, align 8, !tbaa !47
  %291 = getelementptr inbounds float, ptr %289, i64 %290
  %292 = load float, ptr %291, align 4, !tbaa !48
  %293 = load ptr, ptr %31, align 8, !tbaa !5
  %294 = load i64, ptr %33, align 8, !tbaa !47
  %295 = getelementptr inbounds float, ptr %293, i64 %294
  store float %292, ptr %295, align 4, !tbaa !48
  br label %296

296:                                              ; preds = %288
  %297 = load i64, ptr %33, align 8, !tbaa !47
  %298 = add nsw i64 %297, 1
  store i64 %298, ptr %33, align 8, !tbaa !47
  br label %265, !llvm.loop !49

299:                                              ; preds = %271
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #8
  br label %300

300:                                              ; preds = %299
  %301 = load i32, ptr %28, align 4, !tbaa !9
  %302 = add nsw i32 %301, 1
  store i32 %302, ptr %28, align 4, !tbaa !9
  br label %236, !llvm.loop !50

303:                                              ; preds = %284, %280
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #8
  br label %304

304:                                              ; preds = %303, %276
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #8
  br label %305

305:                                              ; preds = %304, %272
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #8
  br label %325

306:                                              ; preds = %243
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #8
  store ptr %10, ptr %34, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #8
  %307 = load ptr, ptr %34, align 8, !tbaa !5
  %308 = call ptr @_ZNSt6vectorIPvSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %307) #8
  %309 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %35, i32 0, i32 0
  store ptr %308, ptr %309, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #8
  %310 = load ptr, ptr %34, align 8, !tbaa !5
  %311 = call ptr @_ZNSt6vectorIPvSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %310) #8
  %312 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %36, i32 0, i32 0
  store ptr %311, ptr %312, align 8
  br label %313

313:                                              ; preds = %320, %306
  %314 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPPvSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %35, ptr noundef nonnull align 8 dereferenceable(8) %36) #8
  br i1 %314, label %316, label %315

315:                                              ; preds = %313
  store i32 13, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #8
  br label %322

316:                                              ; preds = %313
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #8
  %317 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPPvSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %35) #8
  %318 = load ptr, ptr %317, align 8, !tbaa !5
  store ptr %318, ptr %37, align 8, !tbaa !5
  %319 = load ptr, ptr %37, align 8, !tbaa !5
  call void @free(ptr noundef %319) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #8
  br label %320

320:                                              ; preds = %316
  %321 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPPvSt6vectorIS1_SaIS1_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %35) #8
  br label %313

322:                                              ; preds = %315
  store i32 1, ptr %4, align 4
  store i32 1, ptr %14, align 4
  br label %323

323:                                              ; preds = %322, %232
  call void @_ZNSt6vectorIPvSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #8
  call void @_ZNSt6vectorIN5mxnet3ext8MXTensorESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #8
  %324 = load i32, ptr %4, align 4
  ret i32 %324

325:                                              ; preds = %305, %234
  call void @_ZNSt6vectorIPvSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #8
  call void @_ZNSt6vectorIN5mxnet3ext8MXTensorESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #8
  br label %326

326:                                              ; preds = %325
  %327 = load ptr, ptr %12, align 8
  %328 = load i32, ptr %13, align 4
  %329 = insertvalue { ptr, i32 } poison, ptr %327, 0
  %330 = insertvalue { ptr, i32 } %329, i32 %328, 1
  resume { ptr, i32 } %330
}

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #4

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #4

declare void @_ZNK5mxnet3ext5Graph5printEi(ptr noundef nonnull align 8 dereferenceable(128), i32 noundef) #3

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

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

declare noundef i64 @_ZNK5mxnet3ext5Graph4sizeEv(ptr noundef nonnull align 8 dereferenceable(128)) #3

declare i32 @__gxx_personality_v0(...)

declare noundef ptr @_ZN5mxnet3ext5Graph7getNodeEm(ptr noundef nonnull align 8 dereferenceable(128), i64 noundef) #3

; Function Attrs: nounwind
declare noundef i32 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) #6

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

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

; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #7

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

declare void @_ZN5mxnet3ext9MXContext3CPUEi(ptr dead_on_unwind writable sret(%"struct.mxnet::ext::MXContext") align 8, i32 noundef) #3

declare void @_ZN5mxnet3ext8MXTensorC1EPvSt6vectorIlSaIlEENS0_7MXDTypeEmNS0_9MXContextENS0_13MXStorageTypeE(ptr noundef nonnull align 8 dereferenceable(140), ptr noundef, ptr noundef, i32 noundef, i64 noundef, ptr noundef, i32 noundef) unnamed_addr #3

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(32)) #4

declare noundef ptr @_ZN5mxnet3ext11MXerrorMsgs3getEv() #3

declare noundef nonnull align 8 dereferenceable(128) ptr @_ZN5mxnet3ext11MXerrorMsgs3addB5cxx11EPKci(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef, i32 noundef) #3

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

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

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

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

; Function Attrs: nounwind
declare void @free(ptr noundef) #6

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

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

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

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

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

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

!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 = !{!12, !6, i64 64}
!12 = !{!"_ZTSN5mxnet3ext4NodeE", !13, i64 0, !13, i64 32, !6, i64 64, !16, i64 72, !16, i64 96, !20, i64 120, !24, i64 144, !6, i64 200}
!13 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !14, i64 0, !15, i64 8, !7, i64 16}
!14 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!15 = !{!"long", !7, i64 0}
!16 = !{!"_ZTSSt6vectorIN5mxnet3ext9NodeEntryESaIS2_EE", !17, i64 0}
!17 = !{!"_ZTSSt12_Vector_baseIN5mxnet3ext9NodeEntryESaIS2_EE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIN5mxnet3ext9NodeEntryESaIS2_EE12_Vector_implE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIN5mxnet3ext9NodeEntryESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!20 = !{!"_ZTSSt6vectorIPN5mxnet3ext5GraphESaIS3_EE", !21, i64 0}
!21 = !{!"_ZTSSt12_Vector_baseIPN5mxnet3ext5GraphESaIS3_EE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseIPN5mxnet3ext5GraphESaIS3_EE12_Vector_implE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseIPN5mxnet3ext5GraphESaIS3_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!24 = !{!"_ZTSSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_St4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_S5_EEE", !25, i64 0}
!25 = !{!"_ZTSSt10_HashtableINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_S5_ESaIS8_ENSt8__detail10_Select1stESt8equal_toIS5_ESt4hashIS5_ENSA_18_Mod_range_hashingENSA_20_Default_ranged_hashENSA_20_Prime_rehash_policyENSA_17_Hashtable_traitsILb1ELb0ELb1EEEE", !6, i64 0, !15, i64 8, !26, i64 16, !15, i64 24, !27, i64 32, !6, i64 48}
!26 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !6, i64 0}
!27 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !28, i64 0, !15, i64 8}
!28 = !{!"float", !7, i64 0}
!29 = !{!30, !6, i64 0}
!30 = !{!"_ZTSN5mxnet3ext9NodeEntryE", !6, i64 0, !10, i64 8}
!31 = !{!32, !37, i64 32}
!32 = !{!"_ZTSN5mxnet3ext8MXTensorE", !6, i64 0, !33, i64 8, !37, i64 32, !15, i64 40, !38, i64 48, !39, i64 88, !44, i64 136}
!33 = !{!"_ZTSSt6vectorIlSaIlEE", !34, i64 0}
!34 = !{!"_ZTSSt12_Vector_baseIlSaIlEE", !35, i64 0}
!35 = !{!"_ZTSNSt12_Vector_baseIlSaIlEE12_Vector_implE", !36, i64 0}
!36 = !{!"_ZTSNSt12_Vector_baseIlSaIlEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!37 = !{!"_ZTSN5mxnet3ext7MXDTypeE", !7, i64 0}
!38 = !{!"_ZTSN5mxnet3ext9MXContextE", !13, i64 0, !10, i64 32}
!39 = !{!"_ZTS8DLTensor", !6, i64 0, !40, i64 8, !10, i64 16, !42, i64 20, !6, i64 24, !6, i64 32, !15, i64 40}
!40 = !{!"_ZTS9DLContext", !41, i64 0, !10, i64 4}
!41 = !{!"_ZTS12DLDeviceType", !7, i64 0}
!42 = !{!"_ZTS10DLDataType", !7, i64 0, !7, i64 1, !43, i64 2}
!43 = !{!"short", !7, i64 0}
!44 = !{!"_ZTSN5mxnet3ext13MXStorageTypeE", !7, i64 0}
!45 = distinct !{!45, !46}
!46 = !{!"llvm.loop.mustprogress"}
!47 = !{!15, !15, i64 0}
!48 = !{!28, !28, i64 0}
!49 = distinct !{!49, !46}
!50 = distinct !{!50, !46}


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

%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::vector.16" = type { %"struct.std::_Vector_base.17" }
%"struct.std::_Vector_base.17" = 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::vector.21" = type { %"struct.std::_Vector_base.22" }
%"struct.std::_Vector_base.22" = type { %"struct.std::_Vector_base<void *, std::allocator<void *>>::_Vector_impl" }
%"struct.std::_Vector_base<void *, std::allocator<void *>>::_Vector_impl" = type { %"struct.std::_Vector_base<void *, std::allocator<void *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<void *, std::allocator<void *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.mxnet::ext::MXTensor" = type <{ ptr, %"class.std::vector", i32, [4 x i8], i64, %"struct.mxnet::ext::MXContext", %struct.DLTensor, i32, [4 x i8] }>
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<long, std::allocator<long>>::_Vector_impl" }
%"struct.std::_Vector_base<long, std::allocator<long>>::_Vector_impl" = type { %"struct.std::_Vector_base<long, std::allocator<long>>::_Vector_impl_data" }
%"struct.std::_Vector_base<long, std::allocator<long>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.mxnet::ext::MXContext" = type <{ %"class.std::__cxx11::basic_string", i32, [4 x i8] }>
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%struct.DLTensor = type { ptr, %struct.DLContext, i32, %struct.DLDataType, ptr, ptr, i64 }
%struct.DLContext = type { i32, i32 }
%struct.DLDataType = type { i8, i8, i16 }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [20 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [94 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [22 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z5myLogPN5mxnet3ext8MXTensorES2_(ptr noundef, ptr noundef) local_unnamed_addr #0

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

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

declare noundef i64 @_ZNK5mxnet3ext8MXTensor4sizeEv(ptr noundef nonnull align 8 dereferenceable(140)) local_unnamed_addr #3

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z5myExpPN5mxnet3ext8MXTensorES2_(ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z10myExecutorPSt6vectorIN5mxnet3ext8MXTensorESaIS2_EES5_PNS1_5GraphE(ptr noundef %0, ptr noundef %1, ptr noundef %2) local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.std::vector.16", align 8
  %5 = alloca %"class.std::vector.21", align 8
  %6 = alloca %"struct.mxnet::ext::MXTensor", align 8
  %7 = alloca %"class.std::vector", align 8
  %8 = alloca %"struct.mxnet::ext::MXContext", align 8
  %9 = alloca %"struct.mxnet::ext::MXTensor", align 8
  %10 = alloca %"class.std::vector", align 8
  %11 = alloca %"struct.mxnet::ext::MXContext", align 8
  %12 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %13 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %14 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %15 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %16 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str)
  %17 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  tail call void @_ZNK5mxnet3ext5Graph5printEi(ptr noundef nonnull align 8 dereferenceable(128) %2, i32 noundef 0)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #9
  call void @_ZNSt6vectorIN5mxnet3ext8MXTensorESaIS2_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #9
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #9
  call void @_ZNSt6vectorIPvSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #9
  br label %18

18:                                               ; preds = %129, %3
  %indvars.iv = phi i64 [ %indvars.iv.next, %129 ], [ 0, %3 ]
  %.052 = phi i32 [ %.254.ph, %129 ], [ 0, %3 ]
  %19 = invoke noundef i64 @_ZNK5mxnet3ext5Graph4sizeEv(ptr noundef nonnull align 8 dereferenceable(128) %2)
          to label %20 unwind label %23

20:                                               ; preds = %18
  %.not = icmp ugt i64 %19, %indvars.iv
  br i1 %.not, label %25, label %.critedge.preheader

.critedge.preheader:                              ; preds = %20
  %21 = getelementptr inbounds i8, ptr %2, i64 24
  %22 = call noundef i64 @_ZNKSt6vectorIN5mxnet3ext9NodeEntryESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %21) #9
  %.not109 = icmp eq i64 %22, 0
  br i1 %.not109, label %.critedge._crit_edge, label %.lr.ph

23:                                               ; preds = %18
  %24 = landingpad { ptr, i32 }
          cleanup
  br label %161

25:                                               ; preds = %20
  %26 = invoke noundef ptr @_ZN5mxnet3ext5Graph7getNodeEm(ptr noundef nonnull align 8 dereferenceable(128) %2, i64 noundef %indvars.iv)
          to label %27 unwind label %.loopexit

27:                                               ; preds = %25
  %28 = call noundef i32 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc(ptr noundef nonnull align 8 dereferenceable(32) %26, ptr noundef nonnull @.str.1) #9
  %29 = icmp eq i32 %28, 0
  br i1 %29, label %30, label %36

30:                                               ; preds = %27
  %31 = sext i32 %.052 to i64
  %32 = invoke noundef nonnull align 8 dereferenceable(140) ptr @_ZNSt6vectorIN5mxnet3ext8MXTensorESaIS2_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %31)
          to label %33 unwind label %.loopexit

33:                                               ; preds = %30
  %34 = add nsw i32 %.052, 1
  %35 = getelementptr inbounds i8, ptr %26, i64 64
  store ptr %32, ptr %35, align 8, !tbaa !5
  br label %129

.loopexit:                                        ; preds = %25, %30
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %161

.loopexit.split-lp:                               ; preds = %110, %112, %114, %117, %119
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %161

36:                                               ; preds = %27
  %37 = call noundef i32 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc(ptr noundef nonnull align 8 dereferenceable(32) %26, ptr noundef nonnull @.str.2) #9
  %38 = icmp eq i32 %37, 0
  br i1 %38, label %39, label %73

39:                                               ; preds = %36
  %40 = getelementptr inbounds i8, ptr %26, i64 72
  %41 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN5mxnet3ext9NodeEntryESaIS2_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %40, i64 noundef 0)
          to label %42 unwind label %61

42:                                               ; preds = %39
  %43 = load ptr, ptr %41, align 8, !tbaa !26
  %44 = getelementptr inbounds i8, ptr %43, i64 64
  %45 = load ptr, ptr %44, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 144, ptr nonnull %6) #9
  %46 = invoke noundef i64 @_ZNK5mxnet3ext8MXTensor4sizeEv(ptr noundef nonnull align 8 dereferenceable(140) %45)
          to label %47 unwind label %63

47:                                               ; preds = %42
  %48 = shl nsw i64 %46, 2
  %49 = call noalias ptr @malloc(i64 noundef %48) #10
  %50 = getelementptr inbounds i8, ptr %45, i64 8
  invoke void @_ZNSt6vectorIlSaIlEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 8 dereferenceable(24) %50)
          to label %51 unwind label %63

51:                                               ; preds = %47
  %52 = getelementptr inbounds i8, ptr %45, i64 32
  %53 = load i32, ptr %52, align 8, !tbaa !29
  invoke void @_ZN5mxnet3ext9MXContext3CPUEi(ptr dead_on_unwind nonnull writable sret(%"struct.mxnet::ext::MXContext") align 8 %8, i32 noundef 0)
          to label %54 unwind label %65

54:                                               ; preds = %51
  invoke void @_ZN5mxnet3ext8MXTensorC1EPvSt6vectorIlSaIlEENS0_7MXDTypeEmNS0_9MXContextENS0_13MXStorageTypeE(ptr noundef nonnull align 8 dereferenceable(140) %6, ptr noundef %49, ptr noundef nonnull %7, i32 noundef %53, i64 noundef 0, ptr noundef nonnull %8, i32 noundef 0)
          to label %55 unwind label %67

55:                                               ; preds = %54
  call void @_ZN5mxnet3ext9MXContextD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %8) #9
  call void @_ZNSt6vectorIlSaIlEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #9
  invoke void @_ZNSt6vectorIPvSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(8) %6)
          to label %56 unwind label %70

56:                                               ; preds = %55
  invoke void @_Z5myLogPN5mxnet3ext8MXTensorES2_(ptr noundef nonnull %45, ptr noundef nonnull %6)
          to label %57 unwind label %70

57:                                               ; preds = %56
  invoke void @_ZNSt6vectorIN5mxnet3ext8MXTensorESaIS2_EE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(140) %6)
          to label %58 unwind label %70

58:                                               ; preds = %57
  %59 = call noundef nonnull align 8 dereferenceable(140) ptr @_ZNSt6vectorIN5mxnet3ext8MXTensorESaIS2_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #9
  %60 = getelementptr inbounds i8, ptr %26, i64 64
  store ptr %59, ptr %60, align 8, !tbaa !5
  call void @_ZN5mxnet3ext8MXTensorD2Ev(ptr noundef nonnull align 8 dereferenceable(140) %6) #9
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %6) #9
  br label %129

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

63:                                               ; preds = %47, %42
  %64 = landingpad { ptr, i32 }
          cleanup
  br label %72

65:                                               ; preds = %51
  %66 = landingpad { ptr, i32 }
          cleanup
  br label %69

67:                                               ; preds = %54
  %68 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN5mxnet3ext9MXContextD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %8) #9
  br label %69

69:                                               ; preds = %67, %65
  %.pn80 = phi { ptr, i32 } [ %68, %67 ], [ %66, %65 ]
  call void @_ZNSt6vectorIlSaIlEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #9
  br label %72

70:                                               ; preds = %57, %56, %55
  %71 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN5mxnet3ext8MXTensorD2Ev(ptr noundef nonnull align 8 dereferenceable(140) %6) #9
  br label %72

72:                                               ; preds = %70, %69, %63
  %.pn82 = phi { ptr, i32 } [ %71, %70 ], [ %.pn80, %69 ], [ %64, %63 ]
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %6) #9
  br label %161

73:                                               ; preds = %36
  %74 = call noundef i32 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc(ptr noundef nonnull align 8 dereferenceable(32) %26, ptr noundef nonnull @.str.3) #9
  %75 = icmp eq i32 %74, 0
  br i1 %75, label %76, label %110

76:                                               ; preds = %73
  %77 = getelementptr inbounds i8, ptr %26, i64 72
  %78 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN5mxnet3ext9NodeEntryESaIS2_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %77, i64 noundef 0)
          to label %79 unwind label %98

79:                                               ; preds = %76
  %80 = load ptr, ptr %78, align 8, !tbaa !26
  %81 = getelementptr inbounds i8, ptr %80, i64 64
  %82 = load ptr, ptr %81, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 144, ptr nonnull %9) #9
  %83 = invoke noundef i64 @_ZNK5mxnet3ext8MXTensor4sizeEv(ptr noundef nonnull align 8 dereferenceable(140) %82)
          to label %84 unwind label %100

84:                                               ; preds = %79
  %85 = shl nsw i64 %83, 2
  %86 = call noalias ptr @malloc(i64 noundef %85) #10
  %87 = getelementptr inbounds i8, ptr %82, i64 8
  invoke void @_ZNSt6vectorIlSaIlEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef nonnull align 8 dereferenceable(24) %87)
          to label %88 unwind label %100

88:                                               ; preds = %84
  %89 = getelementptr inbounds i8, ptr %82, i64 32
  %90 = load i32, ptr %89, align 8, !tbaa !29
  invoke void @_ZN5mxnet3ext9MXContext3CPUEi(ptr dead_on_unwind nonnull writable sret(%"struct.mxnet::ext::MXContext") align 8 %11, i32 noundef 0)
          to label %91 unwind label %102

91:                                               ; preds = %88
  invoke void @_ZN5mxnet3ext8MXTensorC1EPvSt6vectorIlSaIlEENS0_7MXDTypeEmNS0_9MXContextENS0_13MXStorageTypeE(ptr noundef nonnull align 8 dereferenceable(140) %9, ptr noundef %86, ptr noundef nonnull %10, i32 noundef %90, i64 noundef 0, ptr noundef nonnull %11, i32 noundef 0)
          to label %92 unwind label %104

92:                                               ; preds = %91
  call void @_ZN5mxnet3ext9MXContextD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %11) #9
  call void @_ZNSt6vectorIlSaIlEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #9
  invoke void @_ZNSt6vectorIPvSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %93 unwind label %107

93:                                               ; preds = %92
  invoke void @_Z5myExpPN5mxnet3ext8MXTensorES2_(ptr noundef nonnull %82, ptr noundef nonnull %9)
          to label %94 unwind label %107

94:                                               ; preds = %93
  invoke void @_ZNSt6vectorIN5mxnet3ext8MXTensorESaIS2_EE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(140) %9)
          to label %95 unwind label %107

95:                                               ; preds = %94
  %96 = call noundef nonnull align 8 dereferenceable(140) ptr @_ZNSt6vectorIN5mxnet3ext8MXTensorESaIS2_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #9
  %97 = getelementptr inbounds i8, ptr %26, i64 64
  store ptr %96, ptr %97, align 8, !tbaa !5
  call void @_ZN5mxnet3ext8MXTensorD2Ev(ptr noundef nonnull align 8 dereferenceable(140) %9) #9
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %9) #9
  br label %129

98:                                               ; preds = %76
  %99 = landingpad { ptr, i32 }
          cleanup
  br label %161

100:                                              ; preds = %84, %79
  %101 = landingpad { ptr, i32 }
          cleanup
  br label %109

102:                                              ; preds = %88
  %103 = landingpad { ptr, i32 }
          cleanup
  br label %106

104:                                              ; preds = %91
  %105 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN5mxnet3ext9MXContextD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %11) #9
  br label %106

106:                                              ; preds = %104, %102
  %.pn = phi { ptr, i32 } [ %105, %104 ], [ %103, %102 ]
  call void @_ZNSt6vectorIlSaIlEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #9
  br label %109

107:                                              ; preds = %94, %93, %92
  %108 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN5mxnet3ext8MXTensorD2Ev(ptr noundef nonnull align 8 dereferenceable(140) %9) #9
  br label %109

109:                                              ; preds = %107, %106, %100
  %.pn77 = phi { ptr, i32 } [ %108, %107 ], [ %.pn, %106 ], [ %101, %100 ]
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %9) #9
  br label %161

110:                                              ; preds = %73
  %111 = invoke noundef ptr @_ZN5mxnet3ext11MXerrorMsgs3getEv()
          to label %112 unwind label %.loopexit.split-lp

112:                                              ; preds = %110
  %113 = invoke noundef nonnull align 8 dereferenceable(128) ptr @_ZN5mxnet3ext11MXerrorMsgs3addB5cxx11EPKci(ptr noundef nonnull align 8 dereferenceable(24) %111, ptr noundef nonnull @.str.4, i32 noundef 112)
          to label %114 unwind label %.loopexit.split-lp

114:                                              ; preds = %112
  %115 = getelementptr inbounds i8, ptr %113, i64 16
  %116 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %115, ptr noundef nonnull @.str.5)
          to label %117 unwind label %.loopexit.split-lp

117:                                              ; preds = %114
  %118 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) %116, ptr noundef nonnull align 8 dereferenceable(32) %26)
          to label %119 unwind label %.loopexit.split-lp

119:                                              ; preds = %117
  %120 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %118, ptr noundef nonnull @.str.6)
          to label %121 unwind label %.loopexit.split-lp

121:                                              ; preds = %119
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #9
  %122 = call ptr @_ZNSt6vectorIPvSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #9
  store ptr %122, ptr %12, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #9
  %123 = call ptr @_ZNSt6vectorIPvSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #9
  store ptr %123, ptr %13, align 8
  %124 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPPvSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %13) #9
  br i1 %124, label %.lr.ph107, label %._crit_edge108

.lr.ph107:                                        ; preds = %121, %.lr.ph107
  %125 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPPvSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #9
  %126 = load ptr, ptr %125, align 8, !tbaa !43
  call void @free(ptr noundef %126) #9
  %127 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPPvSt6vectorIS1_SaIS1_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #9
  %128 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPPvSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %13) #9
  br i1 %128, label %.lr.ph107, label %._crit_edge108

129:                                              ; preds = %58, %95, %33
  %.254.ph = phi i32 [ %.052, %95 ], [ %.052, %58 ], [ %34, %33 ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  br label %18, !llvm.loop !44

._crit_edge108:                                   ; preds = %.lr.ph107, %121
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #9
  br label %160

.critedge._crit_edge:                             ; preds = %.critedge, %.critedge.preheader
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #9
  %130 = call ptr @_ZNSt6vectorIPvSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #9
  store ptr %130, ptr %14, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #9
  %131 = call ptr @_ZNSt6vectorIPvSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #9
  store ptr %131, ptr %15, align 8
  %132 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPPvSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 8 dereferenceable(8) %15) #9
  br i1 %132, label %.lr.ph105, label %._crit_edge

.lr.ph:                                           ; preds = %.critedge.preheader, %.critedge
  %indvars.iv121 = phi i64 [ %indvars.iv.next122, %.critedge ], [ 0, %.critedge.preheader ]
  %133 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN5mxnet3ext9NodeEntryESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %21, i64 noundef %indvars.iv121) #9
  %134 = load ptr, ptr %133, align 8, !tbaa !26
  %135 = getelementptr inbounds i8, ptr %134, i64 64
  %136 = load ptr, ptr %135, align 8, !tbaa !5
  %137 = invoke noundef nonnull align 8 dereferenceable(140) ptr @_ZNSt6vectorIN5mxnet3ext8MXTensorESaIS2_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %indvars.iv121)
          to label %138 unwind label %147

138:                                              ; preds = %.lr.ph
  %139 = call noundef ptr @_ZN5mxnet3ext8MXTensor4dataIfEEPT_v(ptr noundef nonnull align 8 dereferenceable(140) %137)
  %140 = call noundef ptr @_ZN5mxnet3ext8MXTensor4dataIfEEPT_v(ptr noundef nonnull align 8 dereferenceable(140) %136)
  br label %141

141:                                              ; preds = %151, %138
  %.055 = phi i64 [ 0, %138 ], [ %155, %151 ]
  %142 = invoke noundef i64 @_ZNK5mxnet3ext8MXTensor4sizeEv(ptr noundef nonnull align 8 dereferenceable(140) %136)
          to label %143 unwind label %149

143:                                              ; preds = %141
  %144 = icmp slt i64 %.055, %142
  br i1 %144, label %151, label %.critedge

.critedge:                                        ; preds = %143
  %indvars.iv.next122 = add nuw nsw i64 %indvars.iv121, 1
  %145 = call noundef i64 @_ZNKSt6vectorIN5mxnet3ext9NodeEntryESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %21) #9
  %146 = icmp ugt i64 %145, %indvars.iv.next122
  br i1 %146, label %.lr.ph, label %.critedge._crit_edge, !llvm.loop !46

147:                                              ; preds = %.lr.ph
  %148 = landingpad { ptr, i32 }
          cleanup
  br label %161

149:                                              ; preds = %141
  %150 = landingpad { ptr, i32 }
          cleanup
  br label %161

151:                                              ; preds = %143
  %152 = getelementptr inbounds float, ptr %140, i64 %.055
  %153 = load float, ptr %152, align 4, !tbaa !47
  %154 = getelementptr inbounds float, ptr %139, i64 %.055
  store float %153, ptr %154, align 4, !tbaa !47
  %155 = add nuw nsw i64 %.055, 1
  br label %141, !llvm.loop !48

._crit_edge:                                      ; preds = %.lr.ph105, %.critedge._crit_edge
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #9
  br label %160

.lr.ph105:                                        ; preds = %.critedge._crit_edge, %.lr.ph105
  %156 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPPvSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %14) #9
  %157 = load ptr, ptr %156, align 8, !tbaa !43
  call void @free(ptr noundef %157) #9
  %158 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPPvSt6vectorIS1_SaIS1_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %14) #9
  %159 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPPvSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 8 dereferenceable(8) %15) #9
  br i1 %159, label %.lr.ph105, label %._crit_edge

160:                                              ; preds = %._crit_edge108, %._crit_edge
  %.3 = phi i32 [ 1, %._crit_edge ], [ 0, %._crit_edge108 ]
  call void @_ZNSt6vectorIPvSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #9
  call void @_ZNSt6vectorIN5mxnet3ext8MXTensorESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #9
  ret i32 %.3

161:                                              ; preds = %.loopexit, %.loopexit.split-lp, %147, %149, %23, %98, %109, %61, %72
  %.pn88.pn = phi { ptr, i32 } [ %24, %23 ], [ %.pn82, %72 ], [ %62, %61 ], [ %.pn77, %109 ], [ %99, %98 ], [ %150, %149 ], [ %148, %147 ], [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @_ZNSt6vectorIPvSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #9
  call void @_ZNSt6vectorIN5mxnet3ext8MXTensorESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #9
  resume { ptr, i32 } %.pn88.pn
}

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #4

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #4

declare void @_ZNK5mxnet3ext5Graph5printEi(ptr noundef nonnull align 8 dereferenceable(128), i32 noundef) local_unnamed_addr #3

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

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

declare noundef i64 @_ZNK5mxnet3ext5Graph4sizeEv(ptr noundef nonnull align 8 dereferenceable(128)) local_unnamed_addr #3

declare i32 @__gxx_personality_v0(...)

declare noundef ptr @_ZN5mxnet3ext5Graph7getNodeEm(ptr noundef nonnull align 8 dereferenceable(128), i64 noundef) local_unnamed_addr #3

; Function Attrs: nounwind
declare noundef i32 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) local_unnamed_addr #6

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

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

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #7

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

declare void @_ZN5mxnet3ext9MXContext3CPUEi(ptr dead_on_unwind writable sret(%"struct.mxnet::ext::MXContext") align 8, i32 noundef) local_unnamed_addr #3

declare void @_ZN5mxnet3ext8MXTensorC1EPvSt6vectorIlSaIlEENS0_7MXDTypeEmNS0_9MXContextENS0_13MXStorageTypeE(ptr noundef nonnull align 8 dereferenceable(140), ptr noundef, ptr noundef, i32 noundef, i64 noundef, ptr noundef, i32 noundef) unnamed_addr #3

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #4

declare noundef ptr @_ZN5mxnet3ext11MXerrorMsgs3getEv() local_unnamed_addr #3

declare noundef nonnull align 8 dereferenceable(128) ptr @_ZN5mxnet3ext11MXerrorMsgs3addB5cxx11EPKci(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef, i32 noundef) local_unnamed_addr #3

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

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

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

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

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #8

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

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

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

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

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

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 #6 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "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 #8 = { mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "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 #9 = { nounwind }
attributes #10 = { nounwind allocsize(0) }

!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, !9, i64 64}
!6 = !{!"_ZTSN5mxnet3ext4NodeE", !7, i64 0, !7, i64 32, !9, i64 64, !13, i64 72, !13, i64 96, !17, i64 120, !21, i64 144, !9, i64 200}
!7 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !8, i64 0, !12, i64 8, !10, i64 16}
!8 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !9, i64 0}
!9 = !{!"any pointer", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C++ TBAA"}
!12 = !{!"long", !10, i64 0}
!13 = !{!"_ZTSSt6vectorIN5mxnet3ext9NodeEntryESaIS2_EE", !14, i64 0}
!14 = !{!"_ZTSSt12_Vector_baseIN5mxnet3ext9NodeEntryESaIS2_EE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseIN5mxnet3ext9NodeEntryESaIS2_EE12_Vector_implE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseIN5mxnet3ext9NodeEntryESaIS2_EE17_Vector_impl_dataE", !9, i64 0, !9, i64 8, !9, i64 16}
!17 = !{!"_ZTSSt6vectorIPN5mxnet3ext5GraphESaIS3_EE", !18, i64 0}
!18 = !{!"_ZTSSt12_Vector_baseIPN5mxnet3ext5GraphESaIS3_EE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIPN5mxnet3ext5GraphESaIS3_EE12_Vector_implE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseIPN5mxnet3ext5GraphESaIS3_EE17_Vector_impl_dataE", !9, i64 0, !9, i64 8, !9, i64 16}
!21 = !{!"_ZTSSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_St4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_S5_EEE", !22, i64 0}
!22 = !{!"_ZTSSt10_HashtableINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_S5_ESaIS8_ENSt8__detail10_Select1stESt8equal_toIS5_ESt4hashIS5_ENSA_18_Mod_range_hashingENSA_20_Default_ranged_hashENSA_20_Prime_rehash_policyENSA_17_Hashtable_traitsILb1ELb0ELb1EEEE", !9, i64 0, !12, i64 8, !23, i64 16, !12, i64 24, !24, i64 32, !9, i64 48}
!23 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !9, i64 0}
!24 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !25, i64 0, !12, i64 8}
!25 = !{!"float", !10, i64 0}
!26 = !{!27, !9, i64 0}
!27 = !{!"_ZTSN5mxnet3ext9NodeEntryE", !9, i64 0, !28, i64 8}
!28 = !{!"int", !10, i64 0}
!29 = !{!30, !35, i64 32}
!30 = !{!"_ZTSN5mxnet3ext8MXTensorE", !9, i64 0, !31, i64 8, !35, i64 32, !12, i64 40, !36, i64 48, !37, i64 88, !42, i64 136}
!31 = !{!"_ZTSSt6vectorIlSaIlEE", !32, i64 0}
!32 = !{!"_ZTSSt12_Vector_baseIlSaIlEE", !33, i64 0}
!33 = !{!"_ZTSNSt12_Vector_baseIlSaIlEE12_Vector_implE", !34, i64 0}
!34 = !{!"_ZTSNSt12_Vector_baseIlSaIlEE17_Vector_impl_dataE", !9, i64 0, !9, i64 8, !9, i64 16}
!35 = !{!"_ZTSN5mxnet3ext7MXDTypeE", !10, i64 0}
!36 = !{!"_ZTSN5mxnet3ext9MXContextE", !7, i64 0, !28, i64 32}
!37 = !{!"_ZTS8DLTensor", !9, i64 0, !38, i64 8, !28, i64 16, !40, i64 20, !9, i64 24, !9, i64 32, !12, i64 40}
!38 = !{!"_ZTS9DLContext", !39, i64 0, !28, i64 4}
!39 = !{!"_ZTS12DLDeviceType", !10, i64 0}
!40 = !{!"_ZTS10DLDataType", !10, i64 0, !10, i64 1, !41, i64 2}
!41 = !{!"short", !10, i64 0}
!42 = !{!"_ZTSN5mxnet3ext13MXStorageTypeE", !10, i64 0}
!43 = !{!9, !9, i64 0}
!44 = distinct !{!44, !45}
!45 = !{!"llvm.loop.mustprogress"}
!46 = distinct !{!46, !45}
!47 = !{!25, !25, i64 0}
!48 = distinct !{!48, !45}


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