; LLVM IR from jrl-umi3218/tvm :: src/graph/CallGraph.ll (ZN3tvm5graph9CallGraph9addOutputEPNS0_8abstract7OutputsEi)

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

%"class.std::vector.59" = type { %"struct.std::_Vector_base.60" }
%"struct.std::_Vector_base.60" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"struct.tvm::graph::CallGraph::Call" = type { ptr, i32 }
%"class.std::initializer_list" = type { ptr, i64 }
%"class.tvm::graph::CallGraph" = type { %"class.std::vector", %"class.std::map", %"class.std::vector.3", %"class.tvm::graph::internal::DependencyGraph", %"class.std::map.23", %"struct.tvm::graph::CallGraph::Plan" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::shared_ptr<tvm::graph::internal::Inputs>, std::allocator<std::shared_ptr<tvm::graph::internal::Inputs>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::shared_ptr<tvm::graph::internal::Inputs>, std::allocator<std::shared_ptr<tvm::graph::internal::Inputs>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::shared_ptr<tvm::graph::internal::Inputs>, std::allocator<std::shared_ptr<tvm::graph::internal::Inputs>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::shared_ptr<tvm::graph::internal::Inputs>, std::allocator<std::shared_ptr<tvm::graph::internal::Inputs>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<tvm::graph::CallGraph::Call, std::pair<const tvm::graph::CallGraph::Call, int>, std::_Select1st<std::pair<const tvm::graph::CallGraph::Call, int>>, tvm::graph::CallGraph::CompareCall>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<tvm::graph::CallGraph::Call, std::pair<const tvm::graph::CallGraph::Call, int>, std::_Select1st<std::pair<const tvm::graph::CallGraph::Call, int>>, tvm::graph::CallGraph::CompareCall>::_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<tvm::graph::CallGraph::Call, std::allocator<tvm::graph::CallGraph::Call>>::_Vector_impl" }
%"struct.std::_Vector_base<tvm::graph::CallGraph::Call, std::allocator<tvm::graph::CallGraph::Call>>::_Vector_impl" = type { %"struct.std::_Vector_base<tvm::graph::CallGraph::Call, std::allocator<tvm::graph::CallGraph::Call>>::_Vector_impl_data" }
%"struct.std::_Vector_base<tvm::graph::CallGraph::Call, std::allocator<tvm::graph::CallGraph::Call>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.tvm::graph::internal::DependencyGraph" = type { %"class.std::vector.8", %"class.std::vector.13", %"class.std::set" }
%"class.std::vector.8" = type { %"struct.std::_Vector_base.9" }
%"struct.std::_Vector_base.9" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.13" = type { %"struct.std::_Vector_base.14" }
%"struct.std::_Vector_base.14" = type { %"struct.std::_Vector_base<std::vector<unsigned long>, std::allocator<std::vector<unsigned long>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<unsigned long>, std::allocator<std::vector<unsigned long>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<unsigned long>, std::allocator<std::vector<unsigned long>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<unsigned long>, std::allocator<std::vector<unsigned long>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::set" = type { %"class.std::_Rb_tree.18" }
%"class.std::_Rb_tree.18" = type { %"struct.std::_Rb_tree<std::pair<unsigned long, unsigned long>, std::pair<unsigned long, unsigned long>, std::_Identity<std::pair<unsigned long, unsigned long>>, std::less<std::pair<unsigned long, unsigned long>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::pair<unsigned long, unsigned long>, std::pair<unsigned long, unsigned long>, std::_Identity<std::pair<unsigned long, unsigned long>>, std::less<std::pair<unsigned long, unsigned long>>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"class.std::map.23" = type { %"class.std::_Rb_tree.24" }
%"class.std::_Rb_tree.24" = type { %"struct.std::_Rb_tree<long, std::pair<const long, std::map<int, std::vector<int>>>, std::_Select1st<std::pair<const long, std::map<int, std::vector<int>>>>, std::less<long>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<long, std::pair<const long, std::map<int, std::vector<int>>>, std::_Select1st<std::pair<const long, std::map<int, std::vector<int>>>>, std::less<long>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.tvm::graph::CallGraph::Plan" = type { %"class.std::vector.3" }
%"class.tvm::graph::abstract::Outputs" = type <{ ptr, i8, [7 x i8] }>
%"class.tvm::graph::internal::AbstractNode" = type { %"class.tvm::graph::internal::Inputs", %"class.tvm::graph::abstract::Outputs.base", %"class.std::map.116", %"class.std::map.111", %"class.std::map.111", %"class.std::map.121", %"class.std::map.126" }
%"class.tvm::graph::internal::Inputs" = type { ptr, %"class.std::unordered_map", %"class.std::unordered_set" }
%"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 }
%"class.std::unordered_set" = type { %"class.std::_Hashtable.34" }
%"class.std::_Hashtable.34" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"class.tvm::graph::abstract::Outputs.base" = type <{ ptr, i8 }>
%"class.std::map.116" = type { %"class.std::_Rb_tree.117" }
%"class.std::_Rb_tree.117" = type { %"struct.std::_Rb_tree<int, std::pair<const int, std::function<void (tvm::graph::internal::AbstractNode &)>>, std::_Select1st<std::pair<const int, std::function<void (tvm::graph::internal::AbstractNode &)>>>, std::less<int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, std::pair<const int, std::function<void (tvm::graph::internal::AbstractNode &)>>, std::_Select1st<std::pair<const int, std::function<void (tvm::graph::internal::AbstractNode &)>>>, std::less<int>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"class.std::map.111" = type { %"class.std::_Rb_tree.112" }
%"class.std::_Rb_tree.112" = type { %"struct.std::_Rb_tree<int, std::pair<const int, std::vector<int>>, std::_Select1st<std::pair<const int, std::vector<int>>>, std::less<int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, std::pair<const int, std::vector<int>>, std::_Select1st<std::pair<const int, std::vector<int>>>, std::less<int>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"class.std::map.121" = type { %"class.std::_Rb_tree.122" }
%"class.std::_Rb_tree.122" = type { %"struct.std::_Rb_tree<int, std::pair<const int, std::map<tvm::graph::abstract::Outputs *, std::set<int>>>, std::_Select1st<std::pair<const int, std::map<tvm::graph::abstract::Outputs *, std::set<int>>>>, std::less<int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, std::pair<const int, std::map<tvm::graph::abstract::Outputs *, std::set<int>>>, std::_Select1st<std::pair<const int, std::map<tvm::graph::abstract::Outputs *, std::set<int>>>>, std::less<int>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"class.std::map.126" = type { %"class.std::_Rb_tree.127" }
%"class.std::_Rb_tree.127" = type { %"struct.std::_Rb_tree<int, std::pair<const int, std::pair<tvm::graph::abstract::Outputs *, int>>, std::_Select1st<std::pair<const int, std::pair<tvm::graph::abstract::Outputs *, int>>>, std::less<int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, std::pair<const int, std::pair<tvm::graph::abstract::Outputs *, int>>, std::_Select1st<std::pair<const int, std::pair<tvm::graph::abstract::Outputs *, int>>>, std::less<int>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::pair.131" = type <{ ptr, i32, [4 x i8] }>

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3tvm5graph9CallGraph9addOutputEPNS0_8abstract7OutputsEi(ptr dead_on_unwind noalias writable sret(%"class.std::vector.59") align 8 %0, ptr noundef nonnull align 8 dereferenceable(264) %1, ptr noundef %2, i32 noundef %3) #1 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i64, align 8
  %10 = alloca i32, align 4
  %11 = alloca i1, align 1
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca ptr, align 8
  %16 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %17 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %18 = alloca ptr, align 8
  %19 = alloca i32, align 4
  %20 = alloca %"struct.tvm::graph::CallGraph::Call", align 8
  %21 = alloca ptr, align 8
  %22 = alloca %"class.std::vector.59", align 8
  %23 = alloca %"class.std::initializer_list", align 8
  store ptr %0, ptr %5, align 8
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  store i32 %3, ptr %8, align 4, !tbaa !9
  %24 = load ptr, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %25 = load ptr, ptr %7, align 8, !tbaa !5
  %26 = ptrtoint ptr %25 to i64
  store i64 %26, ptr %9, align 8, !tbaa !11
  %27 = getelementptr inbounds %"class.tvm::graph::CallGraph", ptr %24, i32 0, i32 4
  %28 = call noundef i64 @_ZNKSt3mapIlS_IiSt6vectorIiSaIiEESt4lessIiESaISt4pairIKiS2_EEES3_IlESaIS5_IKlS9_EEE5countERSB_(ptr noundef nonnull align 8 dereferenceable(48) %27, ptr noundef nonnull align 8 dereferenceable(8) %9)
  %29 = icmp ne i64 %28, 0
  br i1 %29, label %30, label %39

30:                                               ; preds = %4
  %31 = getelementptr inbounds %"class.tvm::graph::CallGraph", ptr %24, i32 0, i32 4
  %32 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt3mapIlS_IiSt6vectorIiSaIiEESt4lessIiESaISt4pairIKiS2_EEES3_IlESaIS5_IKlS9_EEEixERSB_(ptr noundef nonnull align 8 dereferenceable(48) %31, ptr noundef nonnull align 8 dereferenceable(8) %9)
  %33 = call noundef i64 @_ZNKSt3mapIiSt6vectorIiSaIiEESt4lessIiESaISt4pairIKiS2_EEE5countERS6_(ptr noundef nonnull align 8 dereferenceable(48) %32, ptr noundef nonnull align 4 dereferenceable(4) %8)
  %34 = icmp ne i64 %33, 0
  br i1 %34, label %35, label %39

35:                                               ; preds = %30
  %36 = getelementptr inbounds %"class.tvm::graph::CallGraph", ptr %24, i32 0, i32 4
  %37 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt3mapIlS_IiSt6vectorIiSaIiEESt4lessIiESaISt4pairIKiS2_EEES3_IlESaIS5_IKlS9_EEEixERSB_(ptr noundef nonnull align 8 dereferenceable(48) %36, ptr noundef nonnull align 8 dereferenceable(8) %9)
  %38 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt3mapIiSt6vectorIiSaIiEESt4lessIiESaISt4pairIKiS2_EEEixERS6_(ptr noundef nonnull align 8 dereferenceable(48) %37, ptr noundef nonnull align 4 dereferenceable(4) %8)
  call void @_ZNSt6vectorIiSaIiEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(24) %38)
  store i32 1, ptr %10, align 4
  br label %163

39:                                               ; preds = %30, %4
  store i1 false, ptr %11, align 1
  call void @llvm.memset.p0.i64(ptr align 8 %0, i8 0, i64 24, i1 false)
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  %40 = load ptr, ptr %7, align 8, !tbaa !5
  %41 = getelementptr inbounds %"class.tvm::graph::abstract::Outputs", ptr %40, i32 0, i32 1
  %42 = load i8, ptr %41, align 8, !tbaa !13, !range !16, !noundef !17
  %43 = trunc i8 %42 to i1
  br i1 %43, label %44, label %132

44:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %45 = load ptr, ptr %7, align 8, !tbaa !5
  %46 = icmp eq ptr %45, null
  br i1 %46, label %49, label %47

47:                                               ; preds = %44
  %48 = getelementptr inbounds i8, ptr %45, i64 -120
  br label %50

49:                                               ; preds = %44
  br label %50

50:                                               ; preds = %49, %47
  %51 = phi ptr [ %48, %47 ], [ null, %49 ]
  store ptr %51, ptr %12, align 8, !tbaa !5
  %52 = load ptr, ptr %12, align 8, !tbaa !5
  %53 = getelementptr inbounds %"class.tvm::graph::internal::AbstractNode", ptr %52, i32 0, i32 3
  %54 = invoke noundef i64 @_ZNKSt3mapIiSt6vectorIiSaIiEESt4lessIiESaISt4pairIKiS2_EEE5countERS6_(ptr noundef nonnull align 8 dereferenceable(48) %53, ptr noundef nonnull align 4 dereferenceable(4) %8)
          to label %55 unwind label %71

55:                                               ; preds = %50
  %56 = icmp ne i64 %54, 0
  br i1 %56, label %57, label %101

57:                                               ; preds = %55
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  %58 = load ptr, ptr %12, align 8, !tbaa !5
  %59 = getelementptr inbounds %"class.tvm::graph::internal::AbstractNode", ptr %58, i32 0, i32 3
  %60 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt3mapIiSt6vectorIiSaIiEESt4lessIiESaISt4pairIKiS2_EEEixERS6_(ptr noundef nonnull align 8 dereferenceable(48) %59, ptr noundef nonnull align 4 dereferenceable(4) %8)
          to label %61 unwind label %75

61:                                               ; preds = %57
  store ptr %60, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  %62 = load ptr, ptr %15, align 8, !tbaa !5
  %63 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %62) #5
  %64 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %16, i32 0, i32 0
  store ptr %63, ptr %64, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  %65 = load ptr, ptr %15, align 8, !tbaa !5
  %66 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %65) #5
  %67 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %17, i32 0, i32 0
  store ptr %66, ptr %67, align 8
  br label %68

68:                                               ; preds = %93, %61
  %69 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(8) %17) #5
  br i1 %69, label %79, label %70

70:                                               ; preds = %68
  store i32 2, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  br label %100

71:                                               ; preds = %101, %50
  %72 = landingpad { ptr, i32 }
          cleanup
  %73 = extractvalue { ptr, i32 } %72, 0
  store ptr %73, ptr %13, align 8
  %74 = extractvalue { ptr, i32 } %72, 1
  store i32 %74, ptr %14, align 4
  br label %131

75:                                               ; preds = %57
  %76 = landingpad { ptr, i32 }
          cleanup
  %77 = extractvalue { ptr, i32 } %76, 0
  store ptr %77, ptr %13, align 8
  %78 = extractvalue { ptr, i32 } %76, 1
  store i32 %78, ptr %14, align 4
  br label %99

79:                                               ; preds = %68
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  %80 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #5
  store ptr %80, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #5
  %81 = getelementptr inbounds %"struct.tvm::graph::CallGraph::Call", ptr %20, i32 0, i32 0
  %82 = load ptr, ptr %12, align 8, !tbaa !5
  store ptr %82, ptr %81, align 8, !tbaa !18
  %83 = getelementptr inbounds %"struct.tvm::graph::CallGraph::Call", ptr %20, i32 0, i32 1
  %84 = load ptr, ptr %18, align 8, !tbaa !5
  %85 = load i32, ptr %84, align 4, !tbaa !9
  store i32 %85, ptr %83, align 8, !tbaa !20
  %86 = getelementptr inbounds { ptr, i32 }, ptr %20, i32 0, i32 0
  %87 = load ptr, ptr %86, align 8
  %88 = getelementptr inbounds { ptr, i32 }, ptr %20, i32 0, i32 1
  %89 = load i32, ptr %88, align 8
  %90 = invoke noundef i32 @_ZN3tvm5graph9CallGraph7addCallENS1_4CallE(ptr noundef nonnull align 8 dereferenceable(264) %24, ptr %87, i32 %89)
          to label %91 unwind label %95

91:                                               ; preds = %79
  store i32 %90, ptr %19, align 4, !tbaa !9
  invoke void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 4 dereferenceable(4) %19)
          to label %92 unwind label %95

92:                                               ; preds = %91
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  br label %93

93:                                               ; preds = %92
  %94 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #5
  br label %68

95:                                               ; preds = %91, %79
  %96 = landingpad { ptr, i32 }
          cleanup
  %97 = extractvalue { ptr, i32 } %96, 0
  store ptr %97, ptr %13, align 8
  %98 = extractvalue { ptr, i32 } %96, 1
  store i32 %98, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  br label %99

99:                                               ; preds = %95, %75
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  br label %131

100:                                              ; preds = %70
  br label %130

101:                                              ; preds = %55
  %102 = load ptr, ptr %12, align 8, !tbaa !5
  %103 = getelementptr inbounds %"class.tvm::graph::internal::AbstractNode", ptr %102, i32 0, i32 6
  %104 = invoke noundef i64 @_ZNKSt3mapIiSt4pairIPN3tvm5graph8abstract7OutputsEiESt4lessIiESaIS0_IKiS6_EEE5countERS9_(ptr noundef nonnull align 8 dereferenceable(48) %103, ptr noundef nonnull align 4 dereferenceable(4) %8)
          to label %105 unwind label %71

105:                                              ; preds = %101
  %106 = icmp ne i64 %104, 0
  br i1 %106, label %107, label %129

107:                                              ; preds = %105
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #5
  %108 = load ptr, ptr %12, align 8, !tbaa !5
  %109 = getelementptr inbounds %"class.tvm::graph::internal::AbstractNode", ptr %108, i32 0, i32 6
  %110 = invoke noundef nonnull align 8 dereferenceable(12) ptr @_ZNSt3mapIiSt4pairIPN3tvm5graph8abstract7OutputsEiESt4lessIiESaIS0_IKiS6_EEEixERS9_(ptr noundef nonnull align 8 dereferenceable(48) %109, ptr noundef nonnull align 4 dereferenceable(4) %8)
          to label %111 unwind label %120

111:                                              ; preds = %107
  store ptr %110, ptr %21, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %22) #5
  %112 = load ptr, ptr %21, align 8, !tbaa !5
  %113 = getelementptr inbounds %"struct.std::pair.131", ptr %112, i32 0, i32 0
  %114 = load ptr, ptr %113, align 8, !tbaa !21
  %115 = load ptr, ptr %21, align 8, !tbaa !5
  %116 = getelementptr inbounds %"struct.std::pair.131", ptr %115, i32 0, i32 1
  %117 = load i32, ptr %116, align 8, !tbaa !23
  invoke void @_ZN3tvm5graph9CallGraph9addOutputEPNS0_8abstract7OutputsEi(ptr dead_on_unwind writable sret(%"class.std::vector.59") align 8 %22, ptr noundef nonnull align 8 dereferenceable(264) %24, ptr noundef %114, i32 noundef %117)
          to label %118 unwind label %124

118:                                              ; preds = %111
  %119 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIiSaIiEEaSEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(24) %22) #5
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %22) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  br label %129

120:                                              ; preds = %107
  %121 = landingpad { ptr, i32 }
          cleanup
  %122 = extractvalue { ptr, i32 } %121, 0
  store ptr %122, ptr %13, align 8
  %123 = extractvalue { ptr, i32 } %121, 1
  store i32 %123, ptr %14, align 4
  br label %128

124:                                              ; preds = %111
  %125 = landingpad { ptr, i32 }
          cleanup
  %126 = extractvalue { ptr, i32 } %125, 0
  store ptr %126, ptr %13, align 8
  %127 = extractvalue { ptr, i32 } %125, 1
  store i32 %127, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 24, ptr %22) #5
  br label %128

128:                                              ; preds = %124, %120
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  br label %131

129:                                              ; preds = %118, %105
  br label %130

130:                                              ; preds = %129, %100
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  br label %132

131:                                              ; preds = %128, %99, %71
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  br label %162

132:                                              ; preds = %130, %39
  %133 = getelementptr inbounds %"class.tvm::graph::CallGraph", ptr %24, i32 0, i32 4
  %134 = invoke noundef i64 @_ZNKSt3mapIlS_IiSt6vectorIiSaIiEESt4lessIiESaISt4pairIKiS2_EEES3_IlESaIS5_IKlS9_EEE5countERSB_(ptr noundef nonnull align 8 dereferenceable(48) %133, ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %135 unwind label %147

135:                                              ; preds = %132
  %136 = icmp ne i64 %134, 0
  br i1 %136, label %151, label %137

137:                                              ; preds = %135
  call void @_ZNSt16initializer_listISt4pairIKiSt6vectorIiSaIiEEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %23) #5
  %138 = getelementptr inbounds %"class.tvm::graph::CallGraph", ptr %24, i32 0, i32 4
  %139 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt3mapIlS_IiSt6vectorIiSaIiEESt4lessIiESaISt4pairIKiS2_EEES3_IlESaIS5_IKlS9_EEEixERSB_(ptr noundef nonnull align 8 dereferenceable(48) %138, ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %140 unwind label %147

140:                                              ; preds = %137
  %141 = getelementptr inbounds { ptr, i64 }, ptr %23, i32 0, i32 0
  %142 = load ptr, ptr %141, align 8
  %143 = getelementptr inbounds { ptr, i64 }, ptr %23, i32 0, i32 1
  %144 = load i64, ptr %143, align 8
  %145 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt3mapIiSt6vectorIiSaIiEESt4lessIiESaISt4pairIKiS2_EEEaSESt16initializer_listIS7_E(ptr noundef nonnull align 8 dereferenceable(48) %139, ptr %142, i64 %144)
          to label %146 unwind label %147

146:                                              ; preds = %140
  br label %151

147:                                              ; preds = %156, %154, %151, %140, %137, %132
  %148 = landingpad { ptr, i32 }
          cleanup
  %149 = extractvalue { ptr, i32 } %148, 0
  store ptr %149, ptr %13, align 8
  %150 = extractvalue { ptr, i32 } %148, 1
  store i32 %150, ptr %14, align 4
  br label %162

151:                                              ; preds = %146, %135
  %152 = getelementptr inbounds %"class.tvm::graph::CallGraph", ptr %24, i32 0, i32 4
  %153 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt3mapIlS_IiSt6vectorIiSaIiEESt4lessIiESaISt4pairIKiS2_EEES3_IlESaIS5_IKlS9_EEEixERSB_(ptr noundef nonnull align 8 dereferenceable(48) %152, ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %154 unwind label %147

154:                                              ; preds = %151
  %155 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt3mapIiSt6vectorIiSaIiEESt4lessIiESaISt4pairIKiS2_EEEixERS6_(ptr noundef nonnull align 8 dereferenceable(48) %153, ptr noundef nonnull align 4 dereferenceable(4) %8)
          to label %156 unwind label %147

156:                                              ; preds = %154
  %157 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIiSaIiEEaSERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %155, ptr noundef nonnull align 8 dereferenceable(24) %0)
          to label %158 unwind label %147

158:                                              ; preds = %156
  store i1 true, ptr %11, align 1
  store i32 1, ptr %10, align 4
  %159 = load i1, ptr %11, align 1
  br i1 %159, label %161, label %160

160:                                              ; preds = %158
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  br label %161

161:                                              ; preds = %160, %158
  br label %163

162:                                              ; preds = %147, %131
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  br label %164

163:                                              ; preds = %161, %35
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  ret void

164:                                              ; preds = %162
  %165 = load ptr, ptr %13, align 8
  %166 = load i32, ptr %14, align 4
  %167 = insertvalue { ptr, i32 } poison, ptr %165, 0
  %168 = insertvalue { ptr, i32 } %167, i32 %166, 1
  resume { ptr, i32 } %168
}

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

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

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

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

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

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

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN3tvm5graph9CallGraph7addCallENS1_4CallE(ptr noundef nonnull align 8 dereferenceable(264), ptr, i32) #1 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(12) ptr @_ZNSt3mapIiSt4pairIPN3tvm5graph8abstract7OutputsEiESt4lessIiESaIS0_IKiS6_EEEixERS9_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(4)) #1 align 2

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIiSaIiEEaSERKS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #1 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: write) }
attributes #4 = { 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 #5 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!14, !15, i64 8}
!14 = !{!"_ZTSN3tvm5graph8abstract7OutputsE", !15, i64 8}
!15 = !{!"bool", !7, i64 0}
!16 = !{i8 0, i8 2}
!17 = !{}
!18 = !{!19, !6, i64 0}
!19 = !{!"_ZTSN3tvm5graph9CallGraph4CallE", !6, i64 0, !10, i64 8}
!20 = !{!19, !10, i64 8}
!21 = !{!22, !6, i64 0}
!22 = !{!"_ZTSSt4pairIPN3tvm5graph8abstract7OutputsEiE", !6, i64 0, !10, i64 8}
!23 = !{!22, !10, i64 8}


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

%"class.std::vector.59" = type { %"struct.std::_Vector_base.60" }
%"struct.std::_Vector_base.60" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.std::initializer_list" = type { ptr, i64 }

; 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 uwtable
define dso_local void @_ZN3tvm5graph9CallGraph9addOutputEPNS0_8abstract7OutputsEi(ptr dead_on_unwind noalias writable sret(%"class.std::vector.59") align 8 %0, ptr noundef nonnull align 8 dereferenceable(264) %1, ptr noundef %2, i32 noundef %3) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca i32, align 4
  %6 = alloca i64, align 8
  %7 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %8 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %9 = alloca i32, align 4
  %10 = alloca %"class.std::vector.59", align 8
  %11 = alloca %"class.std::initializer_list", align 8
  store i32 %3, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #5
  %12 = ptrtoint ptr %2 to i64
  store i64 %12, ptr %6, align 8, !tbaa !9
  %13 = getelementptr inbounds i8, ptr %1, i64 192
  %14 = call noundef i64 @_ZNKSt3mapIlS_IiSt6vectorIiSaIiEESt4lessIiESaISt4pairIKiS2_EEES3_IlESaIS5_IKlS9_EEE5countERSB_(ptr noundef nonnull align 8 dereferenceable(48) %13, ptr noundef nonnull align 8 dereferenceable(8) %6)
  %.not = icmp eq i64 %14, 0
  br i1 %.not, label %21, label %15

15:                                               ; preds = %4
  %16 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt3mapIlS_IiSt6vectorIiSaIiEESt4lessIiESaISt4pairIKiS2_EEES3_IlESaIS5_IKlS9_EEEixERSB_(ptr noundef nonnull align 8 dereferenceable(48) %13, ptr noundef nonnull align 8 dereferenceable(8) %6)
  %17 = call noundef i64 @_ZNKSt3mapIiSt6vectorIiSaIiEESt4lessIiESaISt4pairIKiS2_EEE5countERS6_(ptr noundef nonnull align 8 dereferenceable(48) %16, ptr noundef nonnull align 4 dereferenceable(4) %5)
  %.not20 = icmp eq i64 %17, 0
  br i1 %.not20, label %21, label %18

18:                                               ; preds = %15
  %19 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt3mapIlS_IiSt6vectorIiSaIiEESt4lessIiESaISt4pairIKiS2_EEES3_IlESaIS5_IKlS9_EEEixERSB_(ptr noundef nonnull align 8 dereferenceable(48) %13, ptr noundef nonnull align 8 dereferenceable(8) %6)
  %20 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt3mapIiSt6vectorIiSaIiEESt4lessIiESaISt4pairIKiS2_EEEixERS6_(ptr noundef nonnull align 8 dereferenceable(48) %19, ptr noundef nonnull align 4 dereferenceable(4) %5)
  call void @_ZNSt6vectorIiSaIiEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(24) %20)
  br label %84

21:                                               ; preds = %15, %4
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %0, i8 0, i64 24, i1 false)
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  %22 = getelementptr inbounds i8, ptr %2, i64 8
  %23 = load i8, ptr %22, align 8, !tbaa !11, !range !14, !noundef !15
  %24 = trunc nuw i8 %23 to i1
  br i1 %24, label %25, label %65

25:                                               ; preds = %21
  %26 = getelementptr inbounds i8, ptr %2, i64 -120
  %27 = getelementptr inbounds i8, ptr %2, i64 64
  %28 = invoke noundef i64 @_ZNKSt3mapIiSt6vectorIiSaIiEESt4lessIiESaISt4pairIKiS2_EEE5countERS6_(ptr noundef nonnull align 8 dereferenceable(48) %27, ptr noundef nonnull align 4 dereferenceable(4) %5)
          to label %29 unwind label %36

29:                                               ; preds = %25
  %.not21 = icmp eq i64 %28, 0
  br i1 %.not21, label %49, label %30

30:                                               ; preds = %29
  %31 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt3mapIiSt6vectorIiSaIiEESt4lessIiESaISt4pairIKiS2_EEEixERS6_(ptr noundef nonnull align 8 dereferenceable(48) %27, ptr noundef nonnull align 4 dereferenceable(4) %5)
          to label %32 unwind label %38

32:                                               ; preds = %30
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #5
  %33 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %31) #5
  store ptr %33, ptr %7, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #5
  %34 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %31) #5
  store ptr %34, ptr %8, align 8
  %35 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8) #5
  br i1 %35, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %44, %32
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  br label %65

36:                                               ; preds = %49, %25
  %37 = landingpad { ptr, i32 }
          cleanup
  br label %83

38:                                               ; preds = %30
  %39 = landingpad { ptr, i32 }
          cleanup
  br label %83

.lr.ph:                                           ; preds = %32, %44
  %40 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #5
  %41 = load i32, ptr %40, align 4, !tbaa !5
  %42 = invoke noundef i32 @_ZN3tvm5graph9CallGraph7addCallENS1_4CallE(ptr noundef nonnull align 8 dereferenceable(264) %1, ptr nonnull %26, i32 %41)
          to label %43 unwind label %47

43:                                               ; preds = %.lr.ph
  store i32 %42, ptr %9, align 4, !tbaa !5
  invoke void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 4 dereferenceable(4) %9)
          to label %44 unwind label %47

44:                                               ; preds = %43
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #5
  %45 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #5
  %46 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8) #5
  br i1 %46, label %.lr.ph, label %._crit_edge

47:                                               ; preds = %43, %.lr.ph
  %48 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  br label %83

49:                                               ; preds = %29
  %50 = getelementptr inbounds i8, ptr %2, i64 208
  %51 = invoke noundef i64 @_ZNKSt3mapIiSt4pairIPN3tvm5graph8abstract7OutputsEiESt4lessIiESaIS0_IKiS6_EEE5countERS9_(ptr noundef nonnull align 8 dereferenceable(48) %50, ptr noundef nonnull align 4 dereferenceable(4) %5)
          to label %52 unwind label %36

52:                                               ; preds = %49
  %.not22 = icmp eq i64 %51, 0
  br i1 %.not22, label %65, label %53

53:                                               ; preds = %52
  %54 = invoke noundef nonnull align 8 dereferenceable(12) ptr @_ZNSt3mapIiSt4pairIPN3tvm5graph8abstract7OutputsEiESt4lessIiESaIS0_IKiS6_EEEixERS9_(ptr noundef nonnull align 8 dereferenceable(48) %50, ptr noundef nonnull align 4 dereferenceable(4) %5)
          to label %55 unwind label %61

55:                                               ; preds = %53
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %10) #5
  %56 = load ptr, ptr %54, align 8, !tbaa !16
  %57 = getelementptr inbounds i8, ptr %54, i64 8
  %58 = load i32, ptr %57, align 8, !tbaa !19
  invoke void @_ZN3tvm5graph9CallGraph9addOutputEPNS0_8abstract7OutputsEi(ptr dead_on_unwind nonnull writable sret(%"class.std::vector.59") align 8 %10, ptr noundef nonnull align 8 dereferenceable(264) %1, ptr noundef %56, i32 noundef %58)
          to label %59 unwind label %63

59:                                               ; preds = %55
  %60 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIiSaIiEEaSEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(24) %10) #5
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #5
  br label %65

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

63:                                               ; preds = %55
  %64 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #5
  br label %83

65:                                               ; preds = %._crit_edge, %59, %52, %21
  %66 = invoke noundef i64 @_ZNKSt3mapIlS_IiSt6vectorIiSaIiEESt4lessIiESaISt4pairIKiS2_EEES3_IlESaIS5_IKlS9_EEE5countERSB_(ptr noundef nonnull align 8 dereferenceable(48) %13, ptr noundef nonnull align 8 dereferenceable(8) %6)
          to label %67 unwind label %75

67:                                               ; preds = %65
  %.not24 = icmp eq i64 %66, 0
  br i1 %.not24, label %68, label %77

68:                                               ; preds = %67
  call void @_ZNSt16initializer_listISt4pairIKiSt6vectorIiSaIiEEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %11) #5
  %69 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt3mapIlS_IiSt6vectorIiSaIiEESt4lessIiESaISt4pairIKiS2_EEES3_IlESaIS5_IKlS9_EEEixERSB_(ptr noundef nonnull align 8 dereferenceable(48) %13, ptr noundef nonnull align 8 dereferenceable(8) %6)
          to label %70 unwind label %75

70:                                               ; preds = %68
  %71 = load ptr, ptr %11, align 8
  %72 = getelementptr inbounds i8, ptr %11, i64 8
  %73 = load i64, ptr %72, align 8
  %74 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt3mapIiSt6vectorIiSaIiEESt4lessIiESaISt4pairIKiS2_EEEaSESt16initializer_listIS7_E(ptr noundef nonnull align 8 dereferenceable(48) %69, ptr %71, i64 %73)
          to label %77 unwind label %75

75:                                               ; preds = %81, %79, %77, %70, %68, %65
  %76 = landingpad { ptr, i32 }
          cleanup
  br label %83

77:                                               ; preds = %70, %67
  %78 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt3mapIlS_IiSt6vectorIiSaIiEESt4lessIiESaISt4pairIKiS2_EEES3_IlESaIS5_IKlS9_EEEixERSB_(ptr noundef nonnull align 8 dereferenceable(48) %13, ptr noundef nonnull align 8 dereferenceable(8) %6)
          to label %79 unwind label %75

79:                                               ; preds = %77
  %80 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt3mapIiSt6vectorIiSaIiEESt4lessIiESaISt4pairIKiS2_EEEixERS6_(ptr noundef nonnull align 8 dereferenceable(48) %78, ptr noundef nonnull align 4 dereferenceable(4) %5)
          to label %81 unwind label %75

81:                                               ; preds = %79
  %82 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIiSaIiEEaSERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %80, ptr noundef nonnull align 8 dereferenceable(24) %0)
          to label %84 unwind label %75

83:                                               ; preds = %36, %47, %38, %63, %61, %75
  %.pn25.pn.pn = phi { ptr, i32 } [ %76, %75 ], [ %37, %36 ], [ %48, %47 ], [ %39, %38 ], [ %64, %63 ], [ %62, %61 ]
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  resume { ptr, i32 } %.pn25.pn.pn

84:                                               ; preds = %81, %18
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  ret void
}

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

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

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

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

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

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

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN3tvm5graph9CallGraph7addCallENS1_4CallE(ptr noundef nonnull align 8 dereferenceable(264), ptr, i32) local_unnamed_addr #1 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(12) ptr @_ZNSt3mapIiSt4pairIPN3tvm5graph8abstract7OutputsEiESt4lessIiESaIS0_IKiS6_EEEixERS9_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #1 align 2

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIiSaIiEEaSERKS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 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: write) }
attributes #4 = { 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 #5 = { 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !13, i64 8}
!12 = !{!"_ZTSN3tvm5graph8abstract7OutputsE", !13, i64 8}
!13 = !{!"bool", !7, i64 0}
!14 = !{i8 0, i8 2}
!15 = !{}
!16 = !{!17, !18, i64 0}
!17 = !{!"_ZTSSt4pairIPN3tvm5graph8abstract7OutputsEiE", !18, i64 0, !6, i64 8}
!18 = !{!"any pointer", !7, i64 0}
!19 = !{!17, !6, i64 8}


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