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

; 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"

%"struct.std::__detail::_Node_iterator.152" = type { %"struct.std::__detail::_Node_iterator_base.153" }
%"struct.std::__detail::_Node_iterator_base.153" = type { ptr }
%"struct.std::pair.154" = type { ptr, ptr }
%"struct.std::__detail::_Node_iterator.156" = type { %"struct.std::__detail::_Node_iterator_base.157" }
%"struct.std::__detail::_Node_iterator_base.157" = type { ptr }
%"struct.std::pair.158" = type { ptr, ptr }
%"class.mxnet::ext::CustomOp" = type { ptr, ptr, ptr, ptr, ptr, ptr, i8, %"class.std::vector.103", %"class.std::vector.103", %"class.std::vector.103", %"class.std::vector.108", %"class.std::vector.108", %"class.std::vector.113", %"class.std::unordered_map.118", %"class.std::unordered_map.118", %"class.std::unordered_map.138" }
%"class.std::vector.103" = type { %"struct.std::_Vector_base.104" }
%"struct.std::_Vector_base.104" = type { %"struct.std::_Vector_base<const char *, std::allocator<const char *>>::_Vector_impl" }
%"struct.std::_Vector_base<const char *, std::allocator<const char *>>::_Vector_impl" = type { %"struct.std::_Vector_base<const char *, std::allocator<const char *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<const char *, std::allocator<const char *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.108" = type { %"struct.std::_Vector_base.109" }
%"struct.std::_Vector_base.109" = type { %"struct.std::_Vector_base<mxnet::ext::MXReturnValue (*)(const std::unordered_map<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>> &, std::vector<mxnet::ext::MXTensor> *, std::vector<mxnet::ext::MXTensor> *, const mxnet::ext::OpResource &), std::allocator<mxnet::ext::MXReturnValue (*)(const std::unordered_map<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>> &, std::vector<mxnet::ext::MXTensor> *, std::vector<mxnet::ext::MXTensor> *, const mxnet::ext::OpResource &)>>::_Vector_impl" }
%"struct.std::_Vector_base<mxnet::ext::MXReturnValue (*)(const std::unordered_map<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>> &, std::vector<mxnet::ext::MXTensor> *, std::vector<mxnet::ext::MXTensor> *, const mxnet::ext::OpResource &), std::allocator<mxnet::ext::MXReturnValue (*)(const std::unordered_map<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>> &, std::vector<mxnet::ext::MXTensor> *, std::vector<mxnet::ext::MXTensor> *, const mxnet::ext::OpResource &)>>::_Vector_impl" = type { %"struct.std::_Vector_base<mxnet::ext::MXReturnValue (*)(const std::unordered_map<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>> &, std::vector<mxnet::ext::MXTensor> *, std::vector<mxnet::ext::MXTensor> *, const mxnet::ext::OpResource &), std::allocator<mxnet::ext::MXReturnValue (*)(const std::unordered_map<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>> &, std::vector<mxnet::ext::MXTensor> *, std::vector<mxnet::ext::MXTensor> *, const mxnet::ext::OpResource &)>>::_Vector_impl_data" }
%"struct.std::_Vector_base<mxnet::ext::MXReturnValue (*)(const std::unordered_map<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>> &, std::vector<mxnet::ext::MXTensor> *, std::vector<mxnet::ext::MXTensor> *, const mxnet::ext::OpResource &), std::allocator<mxnet::ext::MXReturnValue (*)(const std::unordered_map<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>> &, std::vector<mxnet::ext::MXTensor> *, std::vector<mxnet::ext::MXTensor> *, const mxnet::ext::OpResource &)>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.113" = type { %"struct.std::_Vector_base.114" }
%"struct.std::_Vector_base.114" = type { %"struct.std::_Vector_base<mxnet::ext::MXReturnValue (*)(const std::unordered_map<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>> &, const mxnet::ext::MXContext &, const std::vector<std::vector<unsigned int>> &, std::vector<int>, mxnet::ext::CustomStatefulOp **), std::allocator<mxnet::ext::MXReturnValue (*)(const std::unordered_map<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>> &, const mxnet::ext::MXContext &, const std::vector<std::vector<unsigned int>> &, std::vector<int>, mxnet::ext::CustomStatefulOp **)>>::_Vector_impl" }
%"struct.std::_Vector_base<mxnet::ext::MXReturnValue (*)(const std::unordered_map<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>> &, const mxnet::ext::MXContext &, const std::vector<std::vector<unsigned int>> &, std::vector<int>, mxnet::ext::CustomStatefulOp **), std::allocator<mxnet::ext::MXReturnValue (*)(const std::unordered_map<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>> &, const mxnet::ext::MXContext &, const std::vector<std::vector<unsigned int>> &, std::vector<int>, mxnet::ext::CustomStatefulOp **)>>::_Vector_impl" = type { %"struct.std::_Vector_base<mxnet::ext::MXReturnValue (*)(const std::unordered_map<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>> &, const mxnet::ext::MXContext &, const std::vector<std::vector<unsigned int>> &, std::vector<int>, mxnet::ext::CustomStatefulOp **), std::allocator<mxnet::ext::MXReturnValue (*)(const std::unordered_map<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>> &, const mxnet::ext::MXContext &, const std::vector<std::vector<unsigned int>> &, std::vector<int>, mxnet::ext::CustomStatefulOp **)>>::_Vector_impl_data" }
%"struct.std::_Vector_base<mxnet::ext::MXReturnValue (*)(const std::unordered_map<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>> &, const mxnet::ext::MXContext &, const std::vector<std::vector<unsigned int>> &, std::vector<int>, mxnet::ext::CustomStatefulOp **), std::allocator<mxnet::ext::MXReturnValue (*)(const std::unordered_map<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>> &, const mxnet::ext::MXContext &, const std::vector<std::vector<unsigned int>> &, std::vector<int>, mxnet::ext::CustomStatefulOp **)>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::unordered_map.118" = type { %"class.std::_Hashtable.119" }
%"class.std::_Hashtable.119" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%"class.std::unordered_map.138" = type { %"class.std::_Hashtable.139" }
%"class.std::_Hashtable.139" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5mxnet3ext8CustomOp11mapToVectorEv(ptr noundef nonnull align 8 dereferenceable(368) %0) #1 align 2 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca %"struct.std::__detail::_Node_iterator.152", align 8
  %5 = alloca %"struct.std::__detail::_Node_iterator.152", align 8
  %6 = alloca %"struct.std::pair.154", align 8
  %7 = alloca ptr, align 8
  %8 = alloca %"struct.std::__detail::_Node_iterator.152", align 8
  %9 = alloca %"struct.std::__detail::_Node_iterator.152", align 8
  %10 = alloca %"struct.std::pair.154", align 8
  %11 = alloca ptr, align 8
  %12 = alloca %"struct.std::__detail::_Node_iterator.156", align 8
  %13 = alloca %"struct.std::__detail::_Node_iterator.156", align 8
  %14 = alloca %"struct.std::pair.158", align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %15 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #4
  %16 = getelementptr inbounds %"class.mxnet::ext::CustomOp", ptr %15, i32 0, i32 13
  store ptr %16, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #4
  %17 = load ptr, ptr %3, align 8, !tbaa !5
  %18 = call ptr @_ZNSt13unordered_mapIPKcPFN5mxnet3ext13MXReturnValueERKS_INSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESA_St4hashISA_ESt8equal_toISA_ESaISt4pairIKSA_SA_EEEPSt6vectorINS3_8MXTensorESaISN_EESQ_RKNS3_10OpResourceEESB_IS1_ESD_IS1_ESaISF_IKS1_SV_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(56) %17) #4
  %19 = getelementptr inbounds %"struct.std::__detail::_Node_iterator.152", ptr %4, i32 0, i32 0
  %20 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base.153", ptr %19, i32 0, i32 0
  store ptr %18, ptr %20, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
  %21 = load ptr, ptr %3, align 8, !tbaa !5
  %22 = call ptr @_ZNSt13unordered_mapIPKcPFN5mxnet3ext13MXReturnValueERKS_INSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESA_St4hashISA_ESt8equal_toISA_ESaISt4pairIKSA_SA_EEEPSt6vectorINS3_8MXTensorESaISN_EESQ_RKNS3_10OpResourceEESB_IS1_ESD_IS1_ESaISF_IKS1_SV_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %21) #4
  %23 = getelementptr inbounds %"struct.std::__detail::_Node_iterator.152", ptr %5, i32 0, i32 0
  %24 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base.153", ptr %23, i32 0, i32 0
  store ptr %22, ptr %24, align 8
  br label %25

25:                                               ; preds = %34, %1
  %26 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKPKcPFN5mxnet3ext13MXReturnValueERKSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESE_St4hashISE_ESt8equal_toISE_ESaIS1_IKSE_SE_EEEPSt6vectorINS6_8MXTensorESaISQ_EEST_RKNS6_10OpResourceEEELb0EEES12_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #4
  br i1 %26, label %28, label %27

27:                                               ; preds = %25
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #4
  br label %36

28:                                               ; preds = %25
  call void @llvm.lifetime.start.p0(i64 16, ptr %6) #4
  %29 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKPKcPFN5mxnet3ext13MXReturnValueERKSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESE_St4hashISE_ESt8equal_toISE_ESaIS1_IKSE_SE_EEEPSt6vectorINS6_8MXTensorESaISQ_EEST_RKNS6_10OpResourceEEELb0ELb0EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %6, ptr align 8 %29, i64 16, i1 false)
  %30 = getelementptr inbounds %"class.mxnet::ext::CustomOp", ptr %15, i32 0, i32 7
  %31 = getelementptr inbounds %"struct.std::pair.154", ptr %6, i32 0, i32 0
  call void @_ZNSt6vectorIPKcSaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %30, ptr noundef nonnull align 8 dereferenceable(8) %31)
  %32 = getelementptr inbounds %"class.mxnet::ext::CustomOp", ptr %15, i32 0, i32 10
  %33 = getelementptr inbounds %"struct.std::pair.154", ptr %6, i32 0, i32 1
  call void @_ZNSt6vectorIPFN5mxnet3ext13MXReturnValueERKSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES9_St4hashIS9_ESt8equal_toIS9_ESaISt4pairIKS9_S9_EEEPS_INS1_8MXTensorESaISL_EESO_RKNS1_10OpResourceEESaIST_EE9push_backERKST_(ptr noundef nonnull align 8 dereferenceable(24) %32, ptr noundef nonnull align 8 dereferenceable(8) %33)
  call void @llvm.lifetime.end.p0(i64 16, ptr %6) #4
  br label %34

34:                                               ; preds = %28
  %35 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8__detail14_Node_iteratorISt4pairIKPKcPFN5mxnet3ext13MXReturnValueERKSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESE_St4hashISE_ESt8equal_toISE_ESaIS1_IKSE_SE_EEEPSt6vectorINS6_8MXTensorESaISQ_EEST_RKNS6_10OpResourceEEELb0ELb0EEppEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #4
  br label %25

36:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  %37 = getelementptr inbounds %"class.mxnet::ext::CustomOp", ptr %15, i32 0, i32 14
  store ptr %37, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  %38 = load ptr, ptr %7, align 8, !tbaa !5
  %39 = call ptr @_ZNSt13unordered_mapIPKcPFN5mxnet3ext13MXReturnValueERKS_INSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESA_St4hashISA_ESt8equal_toISA_ESaISt4pairIKSA_SA_EEEPSt6vectorINS3_8MXTensorESaISN_EESQ_RKNS3_10OpResourceEESB_IS1_ESD_IS1_ESaISF_IKS1_SV_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(56) %38) #4
  %40 = getelementptr inbounds %"struct.std::__detail::_Node_iterator.152", ptr %8, i32 0, i32 0
  %41 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base.153", ptr %40, i32 0, i32 0
  store ptr %39, ptr %41, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  %42 = load ptr, ptr %7, align 8, !tbaa !5
  %43 = call ptr @_ZNSt13unordered_mapIPKcPFN5mxnet3ext13MXReturnValueERKS_INSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESA_St4hashISA_ESt8equal_toISA_ESaISt4pairIKSA_SA_EEEPSt6vectorINS3_8MXTensorESaISN_EESQ_RKNS3_10OpResourceEESB_IS1_ESD_IS1_ESaISF_IKS1_SV_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %42) #4
  %44 = getelementptr inbounds %"struct.std::__detail::_Node_iterator.152", ptr %9, i32 0, i32 0
  %45 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base.153", ptr %44, i32 0, i32 0
  store ptr %43, ptr %45, align 8
  br label %46

46:                                               ; preds = %55, %36
  %47 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKPKcPFN5mxnet3ext13MXReturnValueERKSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESE_St4hashISE_ESt8equal_toISE_ESaIS1_IKSE_SE_EEEPSt6vectorINS6_8MXTensorESaISQ_EEST_RKNS6_10OpResourceEEELb0EEES12_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %9) #4
  br i1 %47, label %49, label %48

48:                                               ; preds = %46
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  br label %57

49:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #4
  %50 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKPKcPFN5mxnet3ext13MXReturnValueERKSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESE_St4hashISE_ESt8equal_toISE_ESaIS1_IKSE_SE_EEEPSt6vectorINS6_8MXTensorESaISQ_EEST_RKNS6_10OpResourceEEELb0ELb0EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %10, ptr align 8 %50, i64 16, i1 false)
  %51 = getelementptr inbounds %"class.mxnet::ext::CustomOp", ptr %15, i32 0, i32 8
  %52 = getelementptr inbounds %"struct.std::pair.154", ptr %10, i32 0, i32 0
  call void @_ZNSt6vectorIPKcSaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %51, ptr noundef nonnull align 8 dereferenceable(8) %52)
  %53 = getelementptr inbounds %"class.mxnet::ext::CustomOp", ptr %15, i32 0, i32 11
  %54 = getelementptr inbounds %"struct.std::pair.154", ptr %10, i32 0, i32 1
  call void @_ZNSt6vectorIPFN5mxnet3ext13MXReturnValueERKSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES9_St4hashIS9_ESt8equal_toIS9_ESaISt4pairIKS9_S9_EEEPS_INS1_8MXTensorESaISL_EESO_RKNS1_10OpResourceEESaIST_EE9push_backERKST_(ptr noundef nonnull align 8 dereferenceable(24) %53, ptr noundef nonnull align 8 dereferenceable(8) %54)
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #4
  br label %55

55:                                               ; preds = %49
  %56 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8__detail14_Node_iteratorISt4pairIKPKcPFN5mxnet3ext13MXReturnValueERKSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESE_St4hashISE_ESt8equal_toISE_ESaIS1_IKSE_SE_EEEPSt6vectorINS6_8MXTensorESaISQ_EEST_RKNS6_10OpResourceEEELb0ELb0EEppEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #4
  br label %46

57:                                               ; preds = %48
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  %58 = getelementptr inbounds %"class.mxnet::ext::CustomOp", ptr %15, i32 0, i32 15
  store ptr %58, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  %59 = load ptr, ptr %11, align 8, !tbaa !5
  %60 = call ptr @_ZNSt13unordered_mapIPKcPFN5mxnet3ext13MXReturnValueERKS_INSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESA_St4hashISA_ESt8equal_toISA_ESaISt4pairIKSA_SA_EEERKNS3_9MXContextERKSt6vectorISP_IjSaIjEESaISR_EESP_IiSaIiEEPPNS3_16CustomStatefulOpEESB_IS1_ESD_IS1_ESaISF_IKS1_S12_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(56) %59) #4
  %61 = getelementptr inbounds %"struct.std::__detail::_Node_iterator.156", ptr %12, i32 0, i32 0
  %62 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base.157", ptr %61, i32 0, i32 0
  store ptr %60, ptr %62, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  %63 = load ptr, ptr %11, align 8, !tbaa !5
  %64 = call ptr @_ZNSt13unordered_mapIPKcPFN5mxnet3ext13MXReturnValueERKS_INSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESA_St4hashISA_ESt8equal_toISA_ESaISt4pairIKSA_SA_EEERKNS3_9MXContextERKSt6vectorISP_IjSaIjEESaISR_EESP_IiSaIiEEPPNS3_16CustomStatefulOpEESB_IS1_ESD_IS1_ESaISF_IKS1_S12_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %63) #4
  %65 = getelementptr inbounds %"struct.std::__detail::_Node_iterator.156", ptr %13, i32 0, i32 0
  %66 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base.157", ptr %65, i32 0, i32 0
  store ptr %64, ptr %66, align 8
  br label %67

67:                                               ; preds = %76, %57
  %68 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKPKcPFN5mxnet3ext13MXReturnValueERKSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESE_St4hashISE_ESt8equal_toISE_ESaIS1_IKSE_SE_EEERKNS6_9MXContextERKSt6vectorISS_IjSaIjEESaISU_EESS_IiSaIiEEPPNS6_16CustomStatefulOpEEELb0EEES19_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %13) #4
  br i1 %68, label %70, label %69

69:                                               ; preds = %67
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  br label %78

70:                                               ; preds = %67
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #4
  %71 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKPKcPFN5mxnet3ext13MXReturnValueERKSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESE_St4hashISE_ESt8equal_toISE_ESaIS1_IKSE_SE_EEERKNS6_9MXContextERKSt6vectorISS_IjSaIjEESaISU_EESS_IiSaIiEEPPNS6_16CustomStatefulOpEEELb0ELb0EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %14, ptr align 8 %71, i64 16, i1 false)
  %72 = getelementptr inbounds %"class.mxnet::ext::CustomOp", ptr %15, i32 0, i32 9
  %73 = getelementptr inbounds %"struct.std::pair.158", ptr %14, i32 0, i32 0
  call void @_ZNSt6vectorIPKcSaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %72, ptr noundef nonnull align 8 dereferenceable(8) %73)
  %74 = getelementptr inbounds %"class.mxnet::ext::CustomOp", ptr %15, i32 0, i32 12
  %75 = getelementptr inbounds %"struct.std::pair.158", ptr %14, i32 0, i32 1
  call void @_ZNSt6vectorIPFN5mxnet3ext13MXReturnValueERKSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES9_St4hashIS9_ESt8equal_toIS9_ESaISt4pairIKS9_S9_EEERKNS1_9MXContextERKS_IS_IjSaIjEESaISP_EES_IiSaIiEEPPNS1_16CustomStatefulOpEESaIS10_EE9push_backERKS10_(ptr noundef nonnull align 8 dereferenceable(24) %74, ptr noundef nonnull align 8 dereferenceable(8) %75)
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #4
  br label %76

76:                                               ; preds = %70
  %77 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8__detail14_Node_iteratorISt4pairIKPKcPFN5mxnet3ext13MXReturnValueERKSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESE_St4hashISE_ESt8equal_toISE_ESaIS1_IKSE_SE_EEERKNS6_9MXContextERKSt6vectorISS_IjSaIjEESaISU_EESS_IiSaIiEEPPNS6_16CustomStatefulOpEEELb0ELb0EEppEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #4
  br label %67

78:                                               ; preds = %69
  ret void
}

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKPKcPFN5mxnet3ext13MXReturnValueERKSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESE_St4hashISE_ESt8equal_toISE_ESaIS1_IKSE_SE_EEEPSt6vectorINS6_8MXTensorESaISQ_EEST_RKNS6_10OpResourceEEELb0EEES12_(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(16) ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKPKcPFN5mxnet3ext13MXReturnValueERKSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESE_St4hashISE_ESt8equal_toISE_ESaIS1_IKSE_SE_EEEPSt6vectorINS6_8MXTensorESaISQ_EEST_RKNS6_10OpResourceEEELb0ELb0EEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) #2 align 2

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKPKcPFN5mxnet3ext13MXReturnValueERKSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESE_St4hashISE_ESt8equal_toISE_ESaIS1_IKSE_SE_EEERKNS6_9MXContextERKSt6vectorISS_IjSaIjEESaISU_EESS_IiSaIiEEPPNS6_16CustomStatefulOpEEELb0EEES19_(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(16) ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKPKcPFN5mxnet3ext13MXReturnValueERKSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESE_St4hashISE_ESt8equal_toISE_ESaIS1_IKSE_SE_EEERKNS6_9MXContextERKSt6vectorISS_IjSaIjEESaISU_EESS_IiSaIiEEPPNS6_16CustomStatefulOpEEELb0ELb0EEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) #2 align 2

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

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

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

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}


; 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"

%"struct.std::__detail::_Node_iterator.152" = type { %"struct.std::__detail::_Node_iterator_base.153" }
%"struct.std::__detail::_Node_iterator_base.153" = type { ptr }
%"struct.std::pair.154" = type { ptr, ptr }
%"struct.std::__detail::_Node_iterator.156" = type { %"struct.std::__detail::_Node_iterator_base.157" }
%"struct.std::__detail::_Node_iterator_base.157" = type { ptr }
%"struct.std::pair.158" = type { ptr, ptr }

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5mxnet3ext8CustomOp11mapToVectorEv(ptr noundef nonnull align 8 dereferenceable(368) %0) local_unnamed_addr #1 align 2 {
  %2 = alloca %"struct.std::__detail::_Node_iterator.152", align 8
  %3 = alloca %"struct.std::__detail::_Node_iterator.152", align 8
  %4 = alloca %"struct.std::pair.154", align 8
  %5 = alloca %"struct.std::__detail::_Node_iterator.152", align 8
  %6 = alloca %"struct.std::__detail::_Node_iterator.152", align 8
  %7 = alloca %"struct.std::pair.154", align 8
  %8 = alloca %"struct.std::__detail::_Node_iterator.156", align 8
  %9 = alloca %"struct.std::__detail::_Node_iterator.156", align 8
  %10 = alloca %"struct.std::pair.158", align 8
  %11 = getelementptr inbounds i8, ptr %0, i64 200
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #4
  %12 = tail call ptr @_ZNSt13unordered_mapIPKcPFN5mxnet3ext13MXReturnValueERKS_INSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESA_St4hashISA_ESt8equal_toISA_ESaISt4pairIKSA_SA_EEEPSt6vectorINS3_8MXTensorESaISN_EESQ_RKNS3_10OpResourceEESB_IS1_ESD_IS1_ESaISF_IKS1_SV_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(56) %11) #4
  store ptr %12, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #4
  %13 = tail call ptr @_ZNSt13unordered_mapIPKcPFN5mxnet3ext13MXReturnValueERKS_INSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESA_St4hashISA_ESt8equal_toISA_ESaISt4pairIKSA_SA_EEEPSt6vectorINS3_8MXTensorESaISN_EESQ_RKNS3_10OpResourceEESB_IS1_ESD_IS1_ESaISF_IKS1_SV_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %11) #4
  store ptr %13, ptr %3, align 8
  %14 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKPKcPFN5mxnet3ext13MXReturnValueERKSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESE_St4hashISE_ESt8equal_toISE_ESaIS1_IKSE_SE_EEEPSt6vectorINS6_8MXTensorESaISQ_EEST_RKNS6_10OpResourceEEELb0EEES12_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %3) #4
  br i1 %14, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %1
  %15 = getelementptr inbounds i8, ptr %0, i64 56
  %16 = getelementptr inbounds i8, ptr %0, i64 128
  %17 = getelementptr inbounds i8, ptr %4, i64 8
  br label %25

._crit_edge:                                      ; preds = %25, %1
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #4
  %18 = getelementptr inbounds i8, ptr %0, i64 256
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #4
  %19 = call ptr @_ZNSt13unordered_mapIPKcPFN5mxnet3ext13MXReturnValueERKS_INSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESA_St4hashISA_ESt8equal_toISA_ESaISt4pairIKSA_SA_EEEPSt6vectorINS3_8MXTensorESaISN_EESQ_RKNS3_10OpResourceEESB_IS1_ESD_IS1_ESaISF_IKS1_SV_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(56) %18) #4
  store ptr %19, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #4
  %20 = call ptr @_ZNSt13unordered_mapIPKcPFN5mxnet3ext13MXReturnValueERKS_INSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESA_St4hashISA_ESt8equal_toISA_ESaISt4pairIKSA_SA_EEEPSt6vectorINS3_8MXTensorESaISN_EESQ_RKNS3_10OpResourceEESB_IS1_ESD_IS1_ESaISF_IKS1_SV_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %18) #4
  store ptr %20, ptr %6, align 8
  %21 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKPKcPFN5mxnet3ext13MXReturnValueERKSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESE_St4hashISE_ESt8equal_toISE_ESaIS1_IKSE_SE_EEEPSt6vectorINS6_8MXTensorESaISQ_EEST_RKNS6_10OpResourceEEELb0EEES12_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6) #4
  br i1 %21, label %.lr.ph8, label %._crit_edge9

.lr.ph8:                                          ; preds = %._crit_edge
  %22 = getelementptr inbounds i8, ptr %0, i64 80
  %23 = getelementptr inbounds i8, ptr %0, i64 152
  %24 = getelementptr inbounds i8, ptr %7, i64 8
  br label %36

25:                                               ; preds = %.lr.ph, %25
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #4
  %26 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKPKcPFN5mxnet3ext13MXReturnValueERKSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESE_St4hashISE_ESt8equal_toISE_ESaIS1_IKSE_SE_EEEPSt6vectorINS6_8MXTensorESaISQ_EEST_RKNS6_10OpResourceEEELb0ELb0EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #4
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %4, ptr noundef nonnull align 8 dereferenceable(16) %26, i64 16, i1 false)
  call void @_ZNSt6vectorIPKcSaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %15, ptr noundef nonnull align 8 dereferenceable(8) %4)
  call void @_ZNSt6vectorIPFN5mxnet3ext13MXReturnValueERKSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES9_St4hashIS9_ESt8equal_toIS9_ESaISt4pairIKS9_S9_EEEPS_INS1_8MXTensorESaISL_EESO_RKNS1_10OpResourceEESaIST_EE9push_backERKST_(ptr noundef nonnull align 8 dereferenceable(24) %16, ptr noundef nonnull align 8 dereferenceable(8) %17)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #4
  %27 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8__detail14_Node_iteratorISt4pairIKPKcPFN5mxnet3ext13MXReturnValueERKSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESE_St4hashISE_ESt8equal_toISE_ESaIS1_IKSE_SE_EEEPSt6vectorINS6_8MXTensorESaISQ_EEST_RKNS6_10OpResourceEEELb0ELb0EEppEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #4
  %28 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKPKcPFN5mxnet3ext13MXReturnValueERKSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESE_St4hashISE_ESt8equal_toISE_ESaIS1_IKSE_SE_EEEPSt6vectorINS6_8MXTensorESaISQ_EEST_RKNS6_10OpResourceEEELb0EEES12_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %3) #4
  br i1 %28, label %25, label %._crit_edge

._crit_edge9:                                     ; preds = %36, %._crit_edge
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #4
  %29 = getelementptr inbounds i8, ptr %0, i64 312
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #4
  %30 = call ptr @_ZNSt13unordered_mapIPKcPFN5mxnet3ext13MXReturnValueERKS_INSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESA_St4hashISA_ESt8equal_toISA_ESaISt4pairIKSA_SA_EEERKNS3_9MXContextERKSt6vectorISP_IjSaIjEESaISR_EESP_IiSaIiEEPPNS3_16CustomStatefulOpEESB_IS1_ESD_IS1_ESaISF_IKS1_S12_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(56) %29) #4
  store ptr %30, ptr %8, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #4
  %31 = call ptr @_ZNSt13unordered_mapIPKcPFN5mxnet3ext13MXReturnValueERKS_INSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESA_St4hashISA_ESt8equal_toISA_ESaISt4pairIKSA_SA_EEERKNS3_9MXContextERKSt6vectorISP_IjSaIjEESaISR_EESP_IiSaIiEEPPNS3_16CustomStatefulOpEESB_IS1_ESD_IS1_ESaISF_IKS1_S12_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %29) #4
  store ptr %31, ptr %9, align 8
  %32 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKPKcPFN5mxnet3ext13MXReturnValueERKSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESE_St4hashISE_ESt8equal_toISE_ESaIS1_IKSE_SE_EEERKNS6_9MXContextERKSt6vectorISS_IjSaIjEESaISU_EESS_IiSaIiEEPPNS6_16CustomStatefulOpEEELb0EEES19_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %9) #4
  br i1 %32, label %.lr.ph11, label %._crit_edge12

.lr.ph11:                                         ; preds = %._crit_edge9
  %33 = getelementptr inbounds i8, ptr %0, i64 104
  %34 = getelementptr inbounds i8, ptr %0, i64 176
  %35 = getelementptr inbounds i8, ptr %10, i64 8
  br label %40

36:                                               ; preds = %.lr.ph8, %36
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #4
  %37 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKPKcPFN5mxnet3ext13MXReturnValueERKSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESE_St4hashISE_ESt8equal_toISE_ESaIS1_IKSE_SE_EEEPSt6vectorINS6_8MXTensorESaISQ_EEST_RKNS6_10OpResourceEEELb0ELb0EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #4
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull align 8 dereferenceable(16) %37, i64 16, i1 false)
  call void @_ZNSt6vectorIPKcSaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %22, ptr noundef nonnull align 8 dereferenceable(8) %7)
  call void @_ZNSt6vectorIPFN5mxnet3ext13MXReturnValueERKSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES9_St4hashIS9_ESt8equal_toIS9_ESaISt4pairIKS9_S9_EEEPS_INS1_8MXTensorESaISL_EESO_RKNS1_10OpResourceEESaIST_EE9push_backERKST_(ptr noundef nonnull align 8 dereferenceable(24) %23, ptr noundef nonnull align 8 dereferenceable(8) %24)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #4
  %38 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8__detail14_Node_iteratorISt4pairIKPKcPFN5mxnet3ext13MXReturnValueERKSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESE_St4hashISE_ESt8equal_toISE_ESaIS1_IKSE_SE_EEEPSt6vectorINS6_8MXTensorESaISQ_EEST_RKNS6_10OpResourceEEELb0ELb0EEppEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #4
  %39 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKPKcPFN5mxnet3ext13MXReturnValueERKSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESE_St4hashISE_ESt8equal_toISE_ESaIS1_IKSE_SE_EEEPSt6vectorINS6_8MXTensorESaISQ_EEST_RKNS6_10OpResourceEEELb0EEES12_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6) #4
  br i1 %39, label %36, label %._crit_edge9

._crit_edge12:                                    ; preds = %40, %._crit_edge9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #4
  ret void

40:                                               ; preds = %.lr.ph11, %40
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #4
  %41 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKPKcPFN5mxnet3ext13MXReturnValueERKSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESE_St4hashISE_ESt8equal_toISE_ESaIS1_IKSE_SE_EEERKNS6_9MXContextERKSt6vectorISS_IjSaIjEESaISU_EESS_IiSaIiEEPPNS6_16CustomStatefulOpEEELb0ELb0EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #4
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %10, ptr noundef nonnull align 8 dereferenceable(16) %41, i64 16, i1 false)
  call void @_ZNSt6vectorIPKcSaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %33, ptr noundef nonnull align 8 dereferenceable(8) %10)
  call void @_ZNSt6vectorIPFN5mxnet3ext13MXReturnValueERKSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES9_St4hashIS9_ESt8equal_toIS9_ESaISt4pairIKS9_S9_EEERKNS1_9MXContextERKS_IS_IjSaIjEESaISP_EES_IiSaIiEEPPNS1_16CustomStatefulOpEESaIS10_EE9push_backERKS10_(ptr noundef nonnull align 8 dereferenceable(24) %34, ptr noundef nonnull align 8 dereferenceable(8) %35)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #4
  %42 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8__detail14_Node_iteratorISt4pairIKPKcPFN5mxnet3ext13MXReturnValueERKSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESE_St4hashISE_ESt8equal_toISE_ESaIS1_IKSE_SE_EEERKNS6_9MXContextERKSt6vectorISS_IjSaIjEESaISU_EESS_IiSaIiEEPPNS6_16CustomStatefulOpEEELb0ELb0EEppEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #4
  %43 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKPKcPFN5mxnet3ext13MXReturnValueERKSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESE_St4hashISE_ESt8equal_toISE_ESaIS1_IKSE_SE_EEERKNS6_9MXContextERKSt6vectorISS_IjSaIjEESaISU_EESS_IiSaIiEEPPNS6_16CustomStatefulOpEEELb0EEES19_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %9) #4
  br i1 %43, label %40, label %._crit_edge12
}

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKPKcPFN5mxnet3ext13MXReturnValueERKSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESE_St4hashISE_ESt8equal_toISE_ESaIS1_IKSE_SE_EEEPSt6vectorINS6_8MXTensorESaISQ_EEST_RKNS6_10OpResourceEEELb0EEES12_(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(16) ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKPKcPFN5mxnet3ext13MXReturnValueERKSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESE_St4hashISE_ESt8equal_toISE_ESaIS1_IKSE_SE_EEEPSt6vectorINS6_8MXTensorESaISQ_EEST_RKNS6_10OpResourceEEELb0ELb0EEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2 align 2

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKPKcPFN5mxnet3ext13MXReturnValueERKSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESE_St4hashISE_ESt8equal_toISE_ESaIS1_IKSE_SE_EEERKNS6_9MXContextERKSt6vectorISS_IjSaIjEESaISU_EESS_IiSaIiEEPPNS6_16CustomStatefulOpEEELb0EEES19_(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(16) ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKPKcPFN5mxnet3ext13MXReturnValueERKSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESE_St4hashISE_ESt8equal_toISE_ESaIS1_IKSE_SE_EEERKNS6_9MXContextERKSt6vectorISS_IjSaIjEESaISU_EESS_IiSaIiEEPPNS6_16CustomStatefulOpEEELb0ELb0EEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2 align 2

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

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

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

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}


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