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

; 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 }
%"struct.tvm::graph::CallGraph::Call" = type { ptr, i32 }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"struct.std::_Rb_tree_iterator" = type { ptr }
%"struct.std::pair" = type { ptr, %"class.std::set.53" }
%"class.std::set.53" = type { %"class.std::_Rb_tree.54" }
%"class.std::_Rb_tree.54" = type { %"struct.std::_Rb_tree<int, int, std::_Identity<int>, std::less<int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, int, std::_Identity<int>, std::less<int>>::_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 }
%"struct.std::_Rb_tree_const_iterator" = type { ptr }
%"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" }
%"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::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" }

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3tvm5graph9CallGraph9addOutputEPNS0_8abstract7OutputsEi(ptr dead_on_unwind noalias writable sret(%"class.std::vector.59") align 8, ptr noundef nonnull align 8 dereferenceable(264), ptr noundef, i32 noundef) #2 align 2

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

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

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

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

; 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)) #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN3tvm5graph9CallGraph7addCallENS1_4CallE(ptr noundef nonnull align 8 dereferenceable(264) %0, ptr %1, i32 %2) #2 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca i32, align 4
  %5 = alloca %"struct.tvm::graph::CallGraph::Call", align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %10 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca %"struct.tvm::graph::CallGraph::Call", align 8
  %14 = alloca ptr, align 8
  %15 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %16 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %17 = alloca i32, align 4
  %18 = alloca %"struct.std::pair", align 8
  %19 = alloca ptr, align 8
  %20 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %21 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %22 = alloca i32, align 4
  %23 = alloca %"class.std::vector.59", align 8
  %24 = alloca ptr, align 8
  %25 = alloca i32, align 4
  %26 = alloca ptr, align 8
  %27 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %28 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %29 = alloca i32, align 4
  %30 = getelementptr inbounds { ptr, i32 }, ptr %5, i32 0, i32 0
  store ptr %1, ptr %30, align 8
  %31 = getelementptr inbounds { ptr, i32 }, ptr %5, i32 0, i32 1
  store i32 %2, ptr %31, align 8
  store ptr %0, ptr %6, align 8, !tbaa !5
  %32 = load ptr, ptr %6, align 8
  %33 = getelementptr inbounds %"class.tvm::graph::CallGraph", ptr %32, i32 0, i32 1
  %34 = call noundef i64 @_ZNKSt3mapIN3tvm5graph9CallGraph4CallEiNS2_11CompareCallESaISt4pairIKS3_iEEE5countERS6_(ptr noundef nonnull align 8 dereferenceable(48) %33, ptr noundef nonnull align 8 dereferenceable(16) %5)
  %35 = icmp ne i64 %34, 0
  br i1 %35, label %36, label %40

36:                                               ; preds = %3
  %37 = getelementptr inbounds %"class.tvm::graph::CallGraph", ptr %32, i32 0, i32 1
  %38 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIN3tvm5graph9CallGraph4CallEiNS2_11CompareCallESaISt4pairIKS3_iEEEixERS6_(ptr noundef nonnull align 8 dereferenceable(48) %37, ptr noundef nonnull align 8 dereferenceable(16) %5)
  %39 = load i32, ptr %38, align 4, !tbaa !9
  store i32 %39, ptr %4, align 4
  br label %171

40:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  %41 = getelementptr inbounds %"class.tvm::graph::CallGraph", ptr %32, i32 0, i32 3
  %42 = call noundef i64 @_ZN3tvm5graph8internal15DependencyGraph7addNodeEv(ptr noundef nonnull align 8 dereferenceable(96) %41)
  %43 = trunc i64 %42 to i32
  store i32 %43, ptr %7, align 4, !tbaa !9
  %44 = load i32, ptr %7, align 4, !tbaa !9
  %45 = getelementptr inbounds %"class.tvm::graph::CallGraph", ptr %32, i32 0, i32 1
  %46 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIN3tvm5graph9CallGraph4CallEiNS2_11CompareCallESaISt4pairIKS3_iEEEixERS6_(ptr noundef nonnull align 8 dereferenceable(48) %45, ptr noundef nonnull align 8 dereferenceable(16) %5)
  store i32 %44, ptr %46, align 4, !tbaa !9
  %47 = getelementptr inbounds %"class.tvm::graph::CallGraph", ptr %32, i32 0, i32 2
  call void @_ZNSt6vectorIN3tvm5graph9CallGraph4CallESaIS3_EE9push_backERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %47, ptr noundef nonnull align 8 dereferenceable(16) %5)
  %48 = getelementptr inbounds %"struct.tvm::graph::CallGraph::Call", ptr %5, i32 0, i32 0
  %49 = load ptr, ptr %48, align 8, !tbaa !11
  %50 = getelementptr inbounds %"class.tvm::graph::internal::AbstractNode", ptr %49, i32 0, i32 4
  %51 = getelementptr inbounds %"struct.tvm::graph::CallGraph::Call", ptr %5, i32 0, i32 1
  %52 = call noundef i64 @_ZNKSt3mapIiSt6vectorIiSaIiEESt4lessIiESaISt4pairIKiS2_EEE5countERS6_(ptr noundef nonnull align 8 dereferenceable(48) %50, ptr noundef nonnull align 4 dereferenceable(4) %51)
  %53 = icmp ne i64 %52, 0
  br i1 %53, label %54, label %91

54:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  %55 = getelementptr inbounds %"struct.tvm::graph::CallGraph::Call", ptr %5, i32 0, i32 0
  %56 = load ptr, ptr %55, align 8, !tbaa !11
  %57 = getelementptr inbounds %"class.tvm::graph::internal::AbstractNode", ptr %56, i32 0, i32 4
  %58 = getelementptr inbounds %"struct.tvm::graph::CallGraph::Call", ptr %5, i32 0, i32 1
  %59 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt3mapIiSt6vectorIiSaIiEESt4lessIiESaISt4pairIKiS2_EEEixERS6_(ptr noundef nonnull align 8 dereferenceable(48) %57, ptr noundef nonnull align 4 dereferenceable(4) %58)
  store ptr %59, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %60 = load ptr, ptr %8, align 8, !tbaa !5
  %61 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %60) #5
  %62 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %9, i32 0, i32 0
  store ptr %61, ptr %62, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %63 = load ptr, ptr %8, align 8, !tbaa !5
  %64 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %63) #5
  %65 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %10, i32 0, i32 0
  store ptr %64, ptr %65, align 8
  br label %66

66:                                               ; preds = %88, %54
  %67 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #5
  br i1 %67, label %69, label %68

68:                                               ; preds = %66
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  br label %90

69:                                               ; preds = %66
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  %70 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #5
  %71 = load i32, ptr %70, align 4, !tbaa !9
  store i32 %71, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  %72 = getelementptr inbounds %"struct.tvm::graph::CallGraph::Call", ptr %13, i32 0, i32 0
  %73 = getelementptr inbounds %"struct.tvm::graph::CallGraph::Call", ptr %5, i32 0, i32 0
  %74 = load ptr, ptr %73, align 8, !tbaa !11
  store ptr %74, ptr %72, align 8, !tbaa !11
  %75 = getelementptr inbounds %"struct.tvm::graph::CallGraph::Call", ptr %13, i32 0, i32 1
  %76 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %76, ptr %75, align 8, !tbaa !13
  %77 = getelementptr inbounds { ptr, i32 }, ptr %13, i32 0, i32 0
  %78 = load ptr, ptr %77, align 8
  %79 = getelementptr inbounds { ptr, i32 }, ptr %13, i32 0, i32 1
  %80 = load i32, ptr %79, align 8
  %81 = call noundef i32 @_ZN3tvm5graph9CallGraph7addCallENS1_4CallE(ptr noundef nonnull align 8 dereferenceable(264) %32, ptr %78, i32 %80)
  store i32 %81, ptr %12, align 4, !tbaa !9
  %82 = getelementptr inbounds %"class.tvm::graph::CallGraph", ptr %32, i32 0, i32 3
  %83 = load i32, ptr %7, align 4, !tbaa !9
  %84 = sext i32 %83 to i64
  %85 = load i32, ptr %12, align 4, !tbaa !9
  %86 = sext i32 %85 to i64
  %87 = call noundef zeroext i1 @_ZN3tvm5graph8internal15DependencyGraph7addEdgeEmm(ptr noundef nonnull align 8 dereferenceable(96) %82, i64 noundef %84, i64 noundef %86)
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  br label %88

88:                                               ; preds = %69
  %89 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #5
  br label %66

90:                                               ; preds = %68
  br label %91

91:                                               ; preds = %90, %40
  %92 = getelementptr inbounds %"struct.tvm::graph::CallGraph::Call", ptr %5, i32 0, i32 0
  %93 = load ptr, ptr %92, align 8, !tbaa !11
  %94 = getelementptr inbounds %"class.tvm::graph::internal::AbstractNode", ptr %93, i32 0, i32 5
  %95 = getelementptr inbounds %"struct.tvm::graph::CallGraph::Call", ptr %5, i32 0, i32 1
  %96 = call noundef i64 @_ZNKSt3mapIiS_IPN3tvm5graph8abstract7OutputsESt3setIiSt4lessIiESaIiEES6_IS4_ESaISt4pairIKS4_S9_EEES7_SaISB_IKiSF_EEE5countERSG_(ptr noundef nonnull align 8 dereferenceable(48) %94, ptr noundef nonnull align 4 dereferenceable(4) %95)
  %97 = icmp ne i64 %96, 0
  br i1 %97, label %98, label %169

98:                                               ; preds = %91
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  %99 = getelementptr inbounds %"struct.tvm::graph::CallGraph::Call", ptr %5, i32 0, i32 0
  %100 = load ptr, ptr %99, align 8, !tbaa !11
  %101 = getelementptr inbounds %"class.tvm::graph::internal::AbstractNode", ptr %100, i32 0, i32 5
  %102 = getelementptr inbounds %"struct.tvm::graph::CallGraph::Call", ptr %5, i32 0, i32 1
  %103 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt3mapIiS_IPN3tvm5graph8abstract7OutputsESt3setIiSt4lessIiESaIiEES6_IS4_ESaISt4pairIKS4_S9_EEES7_SaISB_IKiSF_EEEixERSG_(ptr noundef nonnull align 8 dereferenceable(48) %101, ptr noundef nonnull align 4 dereferenceable(4) %102)
  store ptr %103, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  %104 = load ptr, ptr %14, align 8, !tbaa !5
  %105 = call ptr @_ZNSt3mapIPN3tvm5graph8abstract7OutputsESt3setIiSt4lessIiESaIiEES6_IS4_ESaISt4pairIKS4_S9_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %104) #5
  %106 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %15, i32 0, i32 0
  store ptr %105, ptr %106, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  %107 = load ptr, ptr %14, align 8, !tbaa !5
  %108 = call ptr @_ZNSt3mapIPN3tvm5graph8abstract7OutputsESt3setIiSt4lessIiESaIiEES6_IS4_ESaISt4pairIKS4_S9_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %107) #5
  %109 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %16, i32 0, i32 0
  store ptr %108, ptr %109, align 8
  br label %110

110:                                              ; preds = %166, %98
  %111 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKPN3tvm5graph8abstract7OutputsESt3setIiSt4lessIiESaIiEEEESF_(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 8 dereferenceable(8) %16) #5
  br i1 %111, label %113, label %112

112:                                              ; preds = %110
  store i32 4, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  br label %168

113:                                              ; preds = %110
  call void @llvm.lifetime.start.p0(i64 56, ptr %18) #5
  %114 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKPN3tvm5graph8abstract7OutputsESt3setIiSt4lessIiESaIiEEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %15) #5
  call void @_ZNSt4pairIKPN3tvm5graph8abstract7OutputsESt3setIiSt4lessIiESaIiEEEC2ERKSB_(ptr noundef nonnull align 8 dereferenceable(56) %18, ptr noundef nonnull align 8 dereferenceable(56) %114)
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  %115 = getelementptr inbounds %"struct.std::pair", ptr %18, i32 0, i32 1
  store ptr %115, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  %116 = load ptr, ptr %19, align 8, !tbaa !5
  %117 = call ptr @_ZNKSt3setIiSt4lessIiESaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %116) #5
  %118 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %20, i32 0, i32 0
  store ptr %117, ptr %118, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #5
  %119 = load ptr, ptr %19, align 8, !tbaa !5
  %120 = call ptr @_ZNKSt3setIiSt4lessIiESaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %119) #5
  %121 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %21, i32 0, i32 0
  store ptr %120, ptr %121, align 8
  br label %122

122:                                              ; preds = %162, %113
  %123 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorIiES2_(ptr noundef nonnull align 8 dereferenceable(8) %20, ptr noundef nonnull align 8 dereferenceable(8) %21) #5
  br i1 %123, label %125, label %124

124:                                              ; preds = %122
  store i32 6, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  br label %165

125:                                              ; preds = %122
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #5
  %126 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt23_Rb_tree_const_iteratorIiEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %20) #5
  %127 = load i32, ptr %126, align 4, !tbaa !9
  store i32 %127, ptr %22, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 24, ptr %23) #5
  %128 = getelementptr inbounds %"struct.std::pair", ptr %18, i32 0, i32 0
  %129 = load ptr, ptr %128, align 8, !tbaa !14
  %130 = load i32, ptr %22, align 4, !tbaa !9
  invoke void @_ZN3tvm5graph9CallGraph9addOutputEPNS0_8abstract7OutputsEi(ptr dead_on_unwind writable sret(%"class.std::vector.59") align 8 %23, ptr noundef nonnull align 8 dereferenceable(264) %32, ptr noundef %129, i32 noundef %130)
          to label %131 unwind label %141

131:                                              ; preds = %125
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #5
  store ptr %23, ptr %26, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #5
  %132 = load ptr, ptr %26, align 8, !tbaa !5
  %133 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %132) #5
  %134 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %27, i32 0, i32 0
  store ptr %133, ptr %134, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #5
  %135 = load ptr, ptr %26, align 8, !tbaa !5
  %136 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %135) #5
  %137 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %28, i32 0, i32 0
  store ptr %136, ptr %137, align 8
  br label %138

138:                                              ; preds = %155, %131
  %139 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %27, ptr noundef nonnull align 8 dereferenceable(8) %28) #5
  br i1 %139, label %145, label %140

140:                                              ; preds = %138
  store i32 8, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #5
  br label %161

141:                                              ; preds = %125
  %142 = landingpad { ptr, i32 }
          cleanup
  %143 = extractvalue { ptr, i32 } %142, 0
  store ptr %143, ptr %24, align 8
  %144 = extractvalue { ptr, i32 } %142, 1
  store i32 %144, ptr %25, align 4
  br label %164

145:                                              ; preds = %138
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #5
  %146 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %27) #5
  %147 = load i32, ptr %146, align 4, !tbaa !9
  store i32 %147, ptr %29, align 4, !tbaa !9
  %148 = getelementptr inbounds %"class.tvm::graph::CallGraph", ptr %32, i32 0, i32 3
  %149 = load i32, ptr %7, align 4, !tbaa !9
  %150 = sext i32 %149 to i64
  %151 = load i32, ptr %29, align 4, !tbaa !9
  %152 = sext i32 %151 to i64
  %153 = invoke noundef zeroext i1 @_ZN3tvm5graph8internal15DependencyGraph7addEdgeEmm(ptr noundef nonnull align 8 dereferenceable(96) %148, i64 noundef %150, i64 noundef %152)
          to label %154 unwind label %157

154:                                              ; preds = %145
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #5
  br label %155

155:                                              ; preds = %154
  %156 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %27) #5
  br label %138

157:                                              ; preds = %145
  %158 = landingpad { ptr, i32 }
          cleanup
  %159 = extractvalue { ptr, i32 } %158, 0
  store ptr %159, ptr %24, align 8
  %160 = extractvalue { ptr, i32 } %158, 1
  store i32 %160, ptr %25, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #5
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %23) #5
  br label %164

161:                                              ; preds = %140
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %23) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #5
  br label %162

162:                                              ; preds = %161
  %163 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt23_Rb_tree_const_iteratorIiEppEv(ptr noundef nonnull align 8 dereferenceable(8) %20) #5
  br label %122

164:                                              ; preds = %157, %141
  call void @llvm.lifetime.end.p0(i64 24, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  call void @_ZNSt4pairIKPN3tvm5graph8abstract7OutputsESt3setIiSt4lessIiESaIiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %18) #5
  call void @llvm.lifetime.end.p0(i64 56, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  br label %173

165:                                              ; preds = %124
  call void @_ZNSt4pairIKPN3tvm5graph8abstract7OutputsESt3setIiSt4lessIiESaIiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %18) #5
  call void @llvm.lifetime.end.p0(i64 56, ptr %18) #5
  br label %166

166:                                              ; preds = %165
  %167 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKPN3tvm5graph8abstract7OutputsESt3setIiSt4lessIiESaIiEEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %15) #5
  br label %110

168:                                              ; preds = %112
  br label %169

169:                                              ; preds = %168, %91
  %170 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %170, ptr %4, align 4
  store i32 1, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  br label %171

171:                                              ; preds = %169, %36
  %172 = load i32, ptr %4, align 4
  ret i32 %172

173:                                              ; preds = %164
  %174 = load ptr, ptr %24, align 8
  %175 = load i32, ptr %25, align 4
  %176 = insertvalue { ptr, i32 } poison, ptr %174, 0
  %177 = insertvalue { ptr, i32 } %176, i32 %175, 1
  resume { ptr, i32 } %177
}

; 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)) #1 align 2

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

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

declare noundef i64 @_ZN3tvm5graph8internal15DependencyGraph7addNodeEv(ptr noundef nonnull align 8 dereferenceable(96)) #4

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

declare noundef zeroext i1 @_ZN3tvm5graph8internal15DependencyGraph7addEdgeEmm(ptr noundef nonnull align 8 dereferenceable(96), i64 noundef, i64 noundef) #4

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

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

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

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

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

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

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { "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, !6, i64 0}
!12 = !{!"_ZTSN3tvm5graph9CallGraph4CallE", !6, i64 0, !10, i64 8}
!13 = !{!12, !10, i64 8}
!14 = !{!15, !6, i64 0}
!15 = !{!"_ZTSSt4pairIKPN3tvm5graph8abstract7OutputsESt3setIiSt4lessIiESaIiEEE", !6, i64 0, !16, i64 8}
!16 = !{!"_ZTSSt3setIiSt4lessIiESaIiEE", !17, i64 0}
!17 = !{!"_ZTSSt8_Rb_treeIiiSt9_IdentityIiESt4lessIiESaIiEE", !18, i64 0}
!18 = !{!"_ZTSNSt8_Rb_treeIiiSt9_IdentityIiESt4lessIiESaIiEE13_Rb_tree_implIS3_Lb1EEE", !19, i64 0, !21, i64 8}
!19 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessIiEE", !20, i64 0}
!20 = !{!"_ZTSSt4lessIiE"}
!21 = !{!"_ZTSSt15_Rb_tree_header", !22, i64 0, !24, i64 32}
!22 = !{!"_ZTSSt18_Rb_tree_node_base", !23, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!23 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}
!24 = !{!"long", !7, i64 0}


; 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 }
%"struct.tvm::graph::CallGraph::Call" = type { ptr, i32 }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"struct.std::_Rb_tree_iterator" = type { ptr }
%"struct.std::pair" = type { ptr, %"class.std::set.53" }
%"class.std::set.53" = type { %"class.std::_Rb_tree.54" }
%"class.std::_Rb_tree.54" = type { %"struct.std::_Rb_tree<int, int, std::_Identity<int>, std::less<int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, int, std::_Identity<int>, std::less<int>>::_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 }
%"struct.std::_Rb_tree_const_iterator" = type { 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 nounwind uwtable
declare dso_local ptr @_ZNKSt3setIiSt4lessIiESaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #1 align 2

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3tvm5graph9CallGraph9addOutputEPNS0_8abstract7OutputsEi(ptr dead_on_unwind noalias writable sret(%"class.std::vector.59") align 8, ptr noundef nonnull align 8 dereferenceable(264), ptr noundef, i32 noundef) local_unnamed_addr #2 align 2

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

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

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

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

; 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 #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN3tvm5graph9CallGraph7addCallENS1_4CallE(ptr noundef nonnull align 8 dereferenceable(264) %0, ptr %1, i32 %2) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"struct.tvm::graph::CallGraph::Call", align 8
  %5 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %6 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %7 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %8 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %9 = alloca %"struct.std::pair", align 8
  %10 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %11 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %12 = alloca %"class.std::vector.59", align 8
  %13 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %14 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  store ptr %1, ptr %4, align 8
  %15 = getelementptr inbounds i8, ptr %4, i64 8
  store i32 %2, ptr %15, align 8
  %16 = getelementptr inbounds i8, ptr %0, i64 24
  %17 = call noundef i64 @_ZNKSt3mapIN3tvm5graph9CallGraph4CallEiNS2_11CompareCallESaISt4pairIKS3_iEEE5countERS6_(ptr noundef nonnull align 8 dereferenceable(48) %16, ptr noundef nonnull align 8 dereferenceable(16) %4)
  %.not = icmp eq i64 %17, 0
  br i1 %.not, label %21, label %18

18:                                               ; preds = %3
  %19 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIN3tvm5graph9CallGraph4CallEiNS2_11CompareCallESaISt4pairIKS3_iEEEixERS6_(ptr noundef nonnull align 8 dereferenceable(48) %16, ptr noundef nonnull align 8 dereferenceable(16) %4)
  %20 = load i32, ptr %19, align 4, !tbaa !5
  br label %88

21:                                               ; preds = %3
  %22 = getelementptr inbounds i8, ptr %0, i64 96
  %23 = call noundef i64 @_ZN3tvm5graph8internal15DependencyGraph7addNodeEv(ptr noundef nonnull align 8 dereferenceable(96) %22)
  %24 = trunc i64 %23 to i32
  %25 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIN3tvm5graph9CallGraph4CallEiNS2_11CompareCallESaISt4pairIKS3_iEEEixERS6_(ptr noundef nonnull align 8 dereferenceable(48) %16, ptr noundef nonnull align 8 dereferenceable(16) %4)
  store i32 %24, ptr %25, align 4, !tbaa !5
  %26 = getelementptr inbounds i8, ptr %0, i64 72
  call void @_ZNSt6vectorIN3tvm5graph9CallGraph4CallESaIS3_EE9push_backERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %26, ptr noundef nonnull align 8 dereferenceable(16) %4)
  %27 = load ptr, ptr %4, align 8, !tbaa !9
  %28 = getelementptr inbounds i8, ptr %27, i64 232
  %29 = call noundef i64 @_ZNKSt3mapIiSt6vectorIiSaIiEESt4lessIiESaISt4pairIKiS2_EEE5countERS6_(ptr noundef nonnull align 8 dereferenceable(48) %28, ptr noundef nonnull align 4 dereferenceable(4) %15)
  %.not21 = icmp eq i64 %29, 0
  br i1 %.not21, label %47, label %30

30:                                               ; preds = %21
  %31 = load ptr, ptr %4, align 8, !tbaa !9
  %32 = getelementptr inbounds i8, ptr %31, i64 232
  %33 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt3mapIiSt6vectorIiSaIiEESt4lessIiESaISt4pairIKiS2_EEEixERS6_(ptr noundef nonnull align 8 dereferenceable(48) %32, ptr noundef nonnull align 4 dereferenceable(4) %15)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #5
  %34 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %33) #5
  store ptr %34, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #5
  %35 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %33) #5
  store ptr %35, ptr %6, align 8
  %36 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6) #5
  br i1 %36, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %30
  %sext24 = shl i64 %23, 32
  %37 = ashr exact i64 %sext24, 32
  br label %38

._crit_edge:                                      ; preds = %38, %30
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  br label %47

38:                                               ; preds = %.lr.ph, %38
  %39 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #5
  %40 = load i32, ptr %39, align 4, !tbaa !5
  %41 = load ptr, ptr %4, align 8, !tbaa !9
  %42 = call noundef i32 @_ZN3tvm5graph9CallGraph7addCallENS1_4CallE(ptr noundef nonnull align 8 dereferenceable(264) %0, ptr %41, i32 %40)
  %43 = sext i32 %42 to i64
  %44 = call noundef zeroext i1 @_ZN3tvm5graph8internal15DependencyGraph7addEdgeEmm(ptr noundef nonnull align 8 dereferenceable(96) %22, i64 noundef %37, i64 noundef %43)
  %45 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #5
  %46 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6) #5
  br i1 %46, label %38, label %._crit_edge

47:                                               ; preds = %._crit_edge, %21
  %48 = load ptr, ptr %4, align 8, !tbaa !9
  %49 = getelementptr inbounds i8, ptr %48, i64 280
  %50 = call noundef i64 @_ZNKSt3mapIiS_IPN3tvm5graph8abstract7OutputsESt3setIiSt4lessIiESaIiEES6_IS4_ESaISt4pairIKS4_S9_EEES7_SaISB_IKiSF_EEE5countERSG_(ptr noundef nonnull align 8 dereferenceable(48) %49, ptr noundef nonnull align 4 dereferenceable(4) %15)
  %.not22 = icmp eq i64 %50, 0
  br i1 %.not22, label %88, label %51

51:                                               ; preds = %47
  %52 = load ptr, ptr %4, align 8, !tbaa !9
  %53 = getelementptr inbounds i8, ptr %52, i64 280
  %54 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt3mapIiS_IPN3tvm5graph8abstract7OutputsESt3setIiSt4lessIiESaIiEES6_IS4_ESaISt4pairIKS4_S9_EEES7_SaISB_IKiSF_EEEixERSG_(ptr noundef nonnull align 8 dereferenceable(48) %53, ptr noundef nonnull align 4 dereferenceable(4) %15)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #5
  %55 = call ptr @_ZNSt3mapIPN3tvm5graph8abstract7OutputsESt3setIiSt4lessIiESaIiEES6_IS4_ESaISt4pairIKS4_S9_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %54) #5
  store ptr %55, ptr %7, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #5
  %56 = call ptr @_ZNSt3mapIPN3tvm5graph8abstract7OutputsESt3setIiSt4lessIiESaIiEES6_IS4_ESaISt4pairIKS4_S9_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %54) #5
  store ptr %56, ptr %8, align 8
  %57 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKPN3tvm5graph8abstract7OutputsESt3setIiSt4lessIiESaIiEEEESF_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8) #5
  br i1 %57, label %.lr.ph32, label %._crit_edge33

.lr.ph32:                                         ; preds = %51
  %58 = getelementptr inbounds i8, ptr %9, i64 8
  %sext = shl i64 %23, 32
  %59 = ashr exact i64 %sext, 32
  br label %60

._crit_edge33:                                    ; preds = %._crit_edge30, %51
  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 %88

60:                                               ; preds = %.lr.ph32, %._crit_edge30
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %9) #5
  %61 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKPN3tvm5graph8abstract7OutputsESt3setIiSt4lessIiESaIiEEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #5
  call void @_ZNSt4pairIKPN3tvm5graph8abstract7OutputsESt3setIiSt4lessIiESaIiEEEC2ERKSB_(ptr noundef nonnull align 8 dereferenceable(56) %9, ptr noundef nonnull align 8 dereferenceable(56) %61)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #5
  %62 = call ptr @_ZNKSt3setIiSt4lessIiESaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %58) #5
  store ptr %62, ptr %10, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #5
  %63 = call ptr @_ZNKSt3setIiSt4lessIiESaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %58) #5
  store ptr %63, ptr %11, align 8
  %64 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorIiES2_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %11) #5
  br i1 %64, label %.lr.ph29, label %._crit_edge30

._crit_edge30:                                    ; preds = %._crit_edge27, %60
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #5
  call void @_ZNSt4pairIKPN3tvm5graph8abstract7OutputsESt3setIiSt4lessIiESaIiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %9) #5
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %9) #5
  %65 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKPN3tvm5graph8abstract7OutputsESt3setIiSt4lessIiESaIiEEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #5
  %66 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKPN3tvm5graph8abstract7OutputsESt3setIiSt4lessIiESaIiEEEESF_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8) #5
  br i1 %66, label %60, label %._crit_edge33

.lr.ph29:                                         ; preds = %60, %._crit_edge27
  %67 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt23_Rb_tree_const_iteratorIiEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #5
  %68 = load i32, ptr %67, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %12) #5
  %69 = load ptr, ptr %9, align 8, !tbaa !12
  invoke void @_ZN3tvm5graph9CallGraph9addOutputEPNS0_8abstract7OutputsEi(ptr dead_on_unwind nonnull writable sret(%"class.std::vector.59") align 8 %12, ptr noundef nonnull align 8 dereferenceable(264) %0, ptr noundef %69, i32 noundef %68)
          to label %70 unwind label %76

70:                                               ; preds = %.lr.ph29
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #5
  %71 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %12) #5
  store ptr %71, ptr %13, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #5
  %72 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %12) #5
  store ptr %72, ptr %14, align 8
  %73 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %14) #5
  br i1 %73, label %.lr.ph26, label %._crit_edge27

._crit_edge27:                                    ; preds = %82, %70
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #5
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %12) #5
  %74 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt23_Rb_tree_const_iteratorIiEppEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #5
  %75 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorIiES2_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %11) #5
  br i1 %75, label %.lr.ph29, label %._crit_edge30

76:                                               ; preds = %.lr.ph29
  %77 = landingpad { ptr, i32 }
          cleanup
  br label %87

.lr.ph26:                                         ; preds = %70, %82
  %78 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #5
  %79 = load i32, ptr %78, align 4, !tbaa !5
  %80 = sext i32 %79 to i64
  %81 = invoke noundef zeroext i1 @_ZN3tvm5graph8internal15DependencyGraph7addEdgeEmm(ptr noundef nonnull align 8 dereferenceable(96) %22, i64 noundef %59, i64 noundef %80)
          to label %82 unwind label %85

82:                                               ; preds = %.lr.ph26
  %83 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #5
  %84 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %14) #5
  br i1 %84, label %.lr.ph26, label %._crit_edge27

85:                                               ; preds = %.lr.ph26
  %86 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #5
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #5
  br label %87

87:                                               ; preds = %85, %76
  %.pn = phi { ptr, i32 } [ %86, %85 ], [ %77, %76 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #5
  call void @_ZNSt4pairIKPN3tvm5graph8abstract7OutputsESt3setIiSt4lessIiESaIiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %9) #5
  call void @llvm.lifetime.end.p0(i64 56, 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
  resume { ptr, i32 } %.pn

88:                                               ; preds = %47, %._crit_edge33, %18
  %.0 = phi i32 [ %20, %18 ], [ %24, %._crit_edge33 ], [ %24, %47 ]
  ret i32 %.0
}

; 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 #1 align 2

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

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

declare noundef i64 @_ZN3tvm5graph8internal15DependencyGraph7addNodeEv(ptr noundef nonnull align 8 dereferenceable(96)) local_unnamed_addr #4

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

declare noundef zeroext i1 @_ZN3tvm5graph8internal15DependencyGraph7addEdgeEmm(ptr noundef nonnull align 8 dereferenceable(96), i64 noundef, i64 noundef) local_unnamed_addr #4

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

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

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

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

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

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

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

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { "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, !11, i64 0}
!10 = !{!"_ZTSN3tvm5graph9CallGraph4CallE", !11, i64 0, !6, i64 8}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!13, !11, i64 0}
!13 = !{!"_ZTSSt4pairIKPN3tvm5graph8abstract7OutputsESt3setIiSt4lessIiESaIiEEE", !11, i64 0, !14, i64 8}
!14 = !{!"_ZTSSt3setIiSt4lessIiESaIiEE", !15, i64 0}
!15 = !{!"_ZTSSt8_Rb_treeIiiSt9_IdentityIiESt4lessIiESaIiEE", !16, i64 0}
!16 = !{!"_ZTSNSt8_Rb_treeIiiSt9_IdentityIiESt4lessIiESaIiEE13_Rb_tree_implIS3_Lb1EEE", !17, i64 0, !19, i64 8}
!17 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessIiEE", !18, i64 0}
!18 = !{!"_ZTSSt4lessIiE"}
!19 = !{!"_ZTSSt15_Rb_tree_header", !20, i64 0, !22, i64 32}
!20 = !{!"_ZTSSt18_Rb_tree_node_base", !21, i64 0, !11, i64 8, !11, i64 16, !11, i64 24}
!21 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}
!22 = !{!"long", !7, i64 0}


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