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

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

%"struct.std::pair" = type { %"class.std::vector", %"class.std::vector.0" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<tvm::graph::internal::Log::Output, std::allocator<tvm::graph::internal::Log::Output>>::_Vector_impl" }
%"struct.std::_Vector_base<tvm::graph::internal::Log::Output, std::allocator<tvm::graph::internal::Log::Output>>::_Vector_impl" = type { %"struct.std::_Vector_base<tvm::graph::internal::Log::Output, std::allocator<tvm::graph::internal::Log::Output>>::_Vector_impl_data" }
%"struct.std::_Vector_base<tvm::graph::internal::Log::Output, std::allocator<tvm::graph::internal::Log::Output>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<tvm::graph::internal::Log::Update, std::allocator<tvm::graph::internal::Log::Update>>::_Vector_impl" }
%"struct.std::_Vector_base<tvm::graph::internal::Log::Update, std::allocator<tvm::graph::internal::Log::Update>>::_Vector_impl" = type { %"struct.std::_Vector_base<tvm::graph::internal::Log::Update, std::allocator<tvm::graph::internal::Log::Update>>::_Vector_impl_data" }
%"struct.std::_Vector_base<tvm::graph::internal::Log::Update, std::allocator<tvm::graph::internal::Log::Update>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::_Rb_tree_const_iterator" = type { ptr }
%"struct.tvm::graph::internal::Log::Pointer" = type { %"struct.std::type_index", i64 }
%"struct.std::type_index" = type { ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"struct.tvm::graph::internal::Log::Output" = type { %"struct.tvm::graph::internal::Log::EnumValue", %"class.std::__cxx11::basic_string", %"struct.tvm::graph::internal::Log::Pointer" }
%"struct.tvm::graph::internal::Log::EnumValue" = type <{ %"struct.std::type_index", i32, [4 x i8] }>
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.__gnu_cxx::__normal_iterator.49" = type { ptr }
%"class.tvm::graph::internal::Log" = type { %"class.std::vector.0", %"class.std::vector.5", %"class.std::vector", %"class.std::vector.10", %"class.std::vector.15", %"class.std::vector.20", %"class.std::vector.25", %"class.std::map", %"class.std::map.33" }
%"class.std::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = type { %"struct.std::_Vector_base<tvm::graph::internal::Log::Input, std::allocator<tvm::graph::internal::Log::Input>>::_Vector_impl" }
%"struct.std::_Vector_base<tvm::graph::internal::Log::Input, std::allocator<tvm::graph::internal::Log::Input>>::_Vector_impl" = type { %"struct.std::_Vector_base<tvm::graph::internal::Log::Input, std::allocator<tvm::graph::internal::Log::Input>>::_Vector_impl_data" }
%"struct.std::_Vector_base<tvm::graph::internal::Log::Input, std::allocator<tvm::graph::internal::Log::Input>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.10" = type { %"struct.std::_Vector_base.11" }
%"struct.std::_Vector_base.11" = type { %"struct.std::_Vector_base<tvm::graph::internal::Log::InputDependency, std::allocator<tvm::graph::internal::Log::InputDependency>>::_Vector_impl" }
%"struct.std::_Vector_base<tvm::graph::internal::Log::InputDependency, std::allocator<tvm::graph::internal::Log::InputDependency>>::_Vector_impl" = type { %"struct.std::_Vector_base<tvm::graph::internal::Log::InputDependency, std::allocator<tvm::graph::internal::Log::InputDependency>>::_Vector_impl_data" }
%"struct.std::_Vector_base<tvm::graph::internal::Log::InputDependency, std::allocator<tvm::graph::internal::Log::InputDependency>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.15" = type { %"struct.std::_Vector_base.16" }
%"struct.std::_Vector_base.16" = type { %"struct.std::_Vector_base<tvm::graph::internal::Log::OutputDependency, std::allocator<tvm::graph::internal::Log::OutputDependency>>::_Vector_impl" }
%"struct.std::_Vector_base<tvm::graph::internal::Log::OutputDependency, std::allocator<tvm::graph::internal::Log::OutputDependency>>::_Vector_impl" = type { %"struct.std::_Vector_base<tvm::graph::internal::Log::OutputDependency, std::allocator<tvm::graph::internal::Log::OutputDependency>>::_Vector_impl_data" }
%"struct.std::_Vector_base<tvm::graph::internal::Log::OutputDependency, std::allocator<tvm::graph::internal::Log::OutputDependency>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.20" = type { %"struct.std::_Vector_base.21" }
%"struct.std::_Vector_base.21" = type { %"struct.std::_Vector_base<tvm::graph::internal::Log::InternalDependency, std::allocator<tvm::graph::internal::Log::InternalDependency>>::_Vector_impl" }
%"struct.std::_Vector_base<tvm::graph::internal::Log::InternalDependency, std::allocator<tvm::graph::internal::Log::InternalDependency>>::_Vector_impl" = type { %"struct.std::_Vector_base<tvm::graph::internal::Log::InternalDependency, std::allocator<tvm::graph::internal::Log::InternalDependency>>::_Vector_impl_data" }
%"struct.std::_Vector_base<tvm::graph::internal::Log::InternalDependency, std::allocator<tvm::graph::internal::Log::InternalDependency>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.25" = type { %"struct.std::_Vector_base.26" }
%"struct.std::_Vector_base.26" = type { %"struct.std::_Vector_base<tvm::graph::internal::Log::DirectDependency, std::allocator<tvm::graph::internal::Log::DirectDependency>>::_Vector_impl" }
%"struct.std::_Vector_base<tvm::graph::internal::Log::DirectDependency, std::allocator<tvm::graph::internal::Log::DirectDependency>>::_Vector_impl" = type { %"struct.std::_Vector_base<tvm::graph::internal::Log::DirectDependency, std::allocator<tvm::graph::internal::Log::DirectDependency>>::_Vector_impl_data" }
%"struct.std::_Vector_base<tvm::graph::internal::Log::DirectDependency, std::allocator<tvm::graph::internal::Log::DirectDependency>>::_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::internal::Log::Pointer, std::pair<const tvm::graph::internal::Log::Pointer, std::vector<tvm::graph::internal::Log::Pointer>>, std::_Select1st<std::pair<const tvm::graph::internal::Log::Pointer, std::vector<tvm::graph::internal::Log::Pointer>>>, std::less<tvm::graph::internal::Log::Pointer>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<tvm::graph::internal::Log::Pointer, std::pair<const tvm::graph::internal::Log::Pointer, std::vector<tvm::graph::internal::Log::Pointer>>, std::_Select1st<std::pair<const tvm::graph::internal::Log::Pointer, std::vector<tvm::graph::internal::Log::Pointer>>>, std::less<tvm::graph::internal::Log::Pointer>>::_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::map.33" = type { %"class.std::_Rb_tree.34" }
%"class.std::_Rb_tree.34" = type { %"struct.std::_Rb_tree<unsigned long, std::pair<const unsigned long, std::vector<std::type_index>>, std::_Select1st<std::pair<const unsigned long, std::vector<std::type_index>>>, std::less<unsigned long>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<unsigned long, std::pair<const unsigned long, std::vector<std::type_index>>, std::_Select1st<std::pair<const unsigned long, std::vector<std::type_index>>>, std::less<unsigned long>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.tvm::graph::internal::Log::Input" = type { %"struct.tvm::graph::internal::Log::EnumValue", %"class.std::__cxx11::basic_string", %"struct.tvm::graph::internal::Log::Pointer", %"struct.tvm::graph::internal::Log::Pointer" }
%"struct.std::pair.42" = type { %"struct.tvm::graph::internal::Log::Pointer", %"class.std::vector.44" }
%"class.std::vector.44" = type { %"struct.std::_Vector_base.45" }
%"struct.std::_Vector_base.45" = type { %"struct.std::_Vector_base<tvm::graph::internal::Log::Pointer, std::allocator<tvm::graph::internal::Log::Pointer>>::_Vector_impl" }
%"struct.std::_Vector_base<tvm::graph::internal::Log::Pointer, std::allocator<tvm::graph::internal::Log::Pointer>>::_Vector_impl" = type { %"struct.std::_Vector_base<tvm::graph::internal::Log::Pointer, std::allocator<tvm::graph::internal::Log::Pointer>>::_Vector_impl_data" }
%"struct.std::_Vector_base<tvm::graph::internal::Log::Pointer, std::allocator<tvm::graph::internal::Log::Pointer>>::_Vector_impl_data" = type { ptr, ptr, ptr }

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK3tvm5graph8internal3Log8subGraphEPKNS0_9CallGraphE(ptr dead_on_unwind noalias writable sret(%"struct.std::pair") align 8 %0, ptr noundef nonnull align 8 dereferenceable(264) %1, ptr noundef %2) #0 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %8 = alloca %"struct.tvm::graph::internal::Log::Pointer", align 8
  %9 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %10 = alloca %"class.std::vector", align 8
  %11 = alloca %"class.std::vector.0", align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca %"class.std::vector", align 8
  %16 = alloca ptr, align 8
  %17 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %18 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %19 = alloca ptr, align 8
  %20 = alloca %"struct.tvm::graph::internal::Log::Output", align 8
  %21 = alloca %"class.std::vector", align 8
  %22 = alloca ptr, align 8
  %23 = alloca %"class.__gnu_cxx::__normal_iterator.49", align 8
  %24 = alloca %"class.__gnu_cxx::__normal_iterator.49", align 8
  %25 = alloca ptr, align 8
  %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 ptr, align 8
  store ptr %0, ptr %4, align 8
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  %30 = load ptr, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  %31 = getelementptr inbounds %"class.tvm::graph::internal::Log", ptr %30, i32 0, i32 7
  call void @llvm.lifetime.start.p0(i64 16, ptr %8) #6
  %32 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN3tvm5graph8internal3Log7PointerC2IKNS0_9CallGraphEEEPT_(ptr noundef nonnull align 8 dereferenceable(16) %8, ptr noundef %32)
  %33 = call ptr @_ZNKSt3mapIN3tvm5graph8internal3Log7PointerESt6vectorIS4_SaIS4_EESt4lessIS4_ESaISt4pairIKS4_S7_EEE4findERSB_(ptr noundef nonnull align 8 dereferenceable(48) %31, ptr noundef nonnull align 8 dereferenceable(16) %8)
  %34 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %7, i32 0, i32 0
  store ptr %33, ptr %34, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  %35 = getelementptr inbounds %"class.tvm::graph::internal::Log", ptr %30, i32 0, i32 7
  %36 = call ptr @_ZNKSt3mapIN3tvm5graph8internal3Log7PointerESt6vectorIS4_SaIS4_EESt4lessIS4_ESaISt4pairIKS4_S7_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %35) #6
  %37 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %9, i32 0, i32 0
  store ptr %36, ptr %37, align 8
  %38 = call noundef zeroext i1 @_ZSteqRKSt23_Rb_tree_const_iteratorISt4pairIKN3tvm5graph8internal3Log7PointerESt6vectorIS5_SaIS5_EEEESD_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  br i1 %38, label %39, label %45

39:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 24, ptr %10) #6
  call void @llvm.memset.p0.i64(ptr align 8 %10, i8 0, i64 24, i1 false)
  call void @_ZNSt6vectorIN3tvm5graph8internal3Log6OutputESaIS4_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr %11) #6
  call void @llvm.memset.p0.i64(ptr align 8 %11, i8 0, i64 24, i1 false)
  call void @_ZNSt6vectorIN3tvm5graph8internal3Log6UpdateESaIS4_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #6
  invoke void @_ZNSt4pairISt6vectorIN3tvm5graph8internal3Log6OutputESaIS5_EES0_INS4_6UpdateESaIS8_EEEC2IS7_SA_TnNSt9enable_ifIXaaclsr5_PCCPE18_ConstructiblePairIT_T0_EEclsr5_PCCPE26_ImplicitlyConvertiblePairISE_SF_EEEbE4typeELb1EEERKS7_RKSA_(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef nonnull align 8 dereferenceable(24) %11)
          to label %40 unwind label %41

40:                                               ; preds = %39
  call void @_ZNSt6vectorIN3tvm5graph8internal3Log6UpdateESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #6
  call void @_ZNSt6vectorIN3tvm5graph8internal3Log6OutputESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #6
  store i32 1, ptr %14, align 4
  br label %135

41:                                               ; preds = %39
  %42 = landingpad { ptr, i32 }
          cleanup
  %43 = extractvalue { ptr, i32 } %42, 0
  store ptr %43, ptr %12, align 8
  %44 = extractvalue { ptr, i32 } %42, 1
  store i32 %44, ptr %13, align 4
  call void @_ZNSt6vectorIN3tvm5graph8internal3Log6UpdateESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #6
  call void @_ZNSt6vectorIN3tvm5graph8internal3Log6OutputESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #6
  br label %136

45:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 24, ptr %15) #6
  %46 = getelementptr inbounds %"class.tvm::graph::internal::Log", ptr %30, i32 0, i32 2
  call void @_ZNSt6vectorIN3tvm5graph8internal3Log6OutputESaIS4_EEC2ERKS6_(ptr noundef nonnull align 8 dereferenceable(24) %15, ptr noundef nonnull align 8 dereferenceable(24) %46)
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  %47 = getelementptr inbounds %"class.tvm::graph::internal::Log", ptr %30, i32 0, i32 1
  store ptr %47, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  %48 = load ptr, ptr %16, align 8, !tbaa !5
  %49 = call ptr @_ZNKSt6vectorIN3tvm5graph8internal3Log5InputESaIS4_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %48) #6
  %50 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %17, i32 0, i32 0
  store ptr %49, ptr %50, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  %51 = load ptr, ptr %16, align 8, !tbaa !5
  %52 = call ptr @_ZNKSt6vectorIN3tvm5graph8internal3Log5InputESaIS4_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %51) #6
  %53 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %18, i32 0, i32 0
  store ptr %52, ptr %53, align 8
  br label %54

54:                                               ; preds = %70, %45
  %55 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKN3tvm5graph8internal3Log5InputESt6vectorIS5_SaIS5_EEEEbRKNS_17__normal_iteratorIT_T0_EESG_(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull align 8 dereferenceable(8) %18) #6
  br i1 %55, label %57, label %56

56:                                               ; preds = %54
  store i32 2, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  br label %81

57:                                               ; preds = %54
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #6
  %58 = call noundef nonnull align 8 dereferenceable(80) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN3tvm5graph8internal3Log5InputESt6vectorIS5_SaIS5_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %17) #6
  store ptr %58, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 64, ptr %20) #6
  %59 = getelementptr inbounds %"struct.tvm::graph::internal::Log::Output", ptr %20, i32 0, i32 0
  %60 = load ptr, ptr %19, align 8, !tbaa !5
  %61 = getelementptr inbounds %"struct.tvm::graph::internal::Log::Input", ptr %60, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %59, ptr align 8 %61, i64 12, i1 false), !tbaa.struct !9
  %62 = getelementptr inbounds %"struct.tvm::graph::internal::Log::Output", ptr %20, i32 0, i32 1
  %63 = load ptr, ptr %19, align 8, !tbaa !5
  %64 = getelementptr inbounds %"struct.tvm::graph::internal::Log::Input", ptr %63, i32 0, i32 1
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %62, ptr noundef nonnull align 8 dereferenceable(32) %64)
          to label %65 unwind label %72

65:                                               ; preds = %57
  %66 = getelementptr inbounds %"struct.tvm::graph::internal::Log::Output", ptr %20, i32 0, i32 2
  %67 = load ptr, ptr %19, align 8, !tbaa !5
  %68 = getelementptr inbounds %"struct.tvm::graph::internal::Log::Input", ptr %67, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %66, ptr align 8 %68, i64 16, i1 false), !tbaa.struct !12
  invoke void @_ZNSt6vectorIN3tvm5graph8internal3Log6OutputESaIS4_EE9push_backEOS4_(ptr noundef nonnull align 8 dereferenceable(24) %15, ptr noundef nonnull align 8 dereferenceable(64) %20)
          to label %69 unwind label %76

69:                                               ; preds = %65
  call void @_ZN3tvm5graph8internal3Log6OutputD2Ev(ptr noundef nonnull align 8 dereferenceable(64) %20) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  br label %70

70:                                               ; preds = %69
  %71 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKN3tvm5graph8internal3Log5InputESt6vectorIS5_SaIS5_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %17) #6
  br label %54

72:                                               ; preds = %57
  %73 = landingpad { ptr, i32 }
          cleanup
  %74 = extractvalue { ptr, i32 } %73, 0
  store ptr %74, ptr %12, align 8
  %75 = extractvalue { ptr, i32 } %73, 1
  store i32 %75, ptr %13, align 4
  br label %80

76:                                               ; preds = %65
  %77 = landingpad { ptr, i32 }
          cleanup
  %78 = extractvalue { ptr, i32 } %77, 0
  store ptr %78, ptr %12, align 8
  %79 = extractvalue { ptr, i32 } %77, 1
  store i32 %79, ptr %13, align 4
  call void @_ZN3tvm5graph8internal3Log6OutputD2Ev(ptr noundef nonnull align 8 dereferenceable(64) %20) #6
  br label %80

80:                                               ; preds = %76, %72
  call void @llvm.lifetime.end.p0(i64 64, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  br label %134

81:                                               ; preds = %56
  call void @llvm.lifetime.start.p0(i64 24, ptr %21) #6
  call void @_ZNSt6vectorIN3tvm5graph8internal3Log6OutputESaIS4_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %21) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #6
  %82 = call noundef ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIKN3tvm5graph8internal3Log7PointerESt6vectorIS5_SaIS5_EEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #6
  %83 = getelementptr inbounds %"struct.std::pair.42", ptr %82, i32 0, i32 1
  store ptr %83, ptr %22, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #6
  %84 = load ptr, ptr %22, align 8, !tbaa !5
  %85 = call ptr @_ZNKSt6vectorIN3tvm5graph8internal3Log7PointerESaIS4_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %84) #6
  %86 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.49", ptr %23, i32 0, i32 0
  store ptr %85, ptr %86, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #6
  %87 = load ptr, ptr %22, align 8, !tbaa !5
  %88 = call ptr @_ZNKSt6vectorIN3tvm5graph8internal3Log7PointerESaIS4_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %87) #6
  %89 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.49", ptr %24, i32 0, i32 0
  store ptr %88, ptr %89, align 8
  br label %90

90:                                               ; preds = %125, %81
  %91 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKN3tvm5graph8internal3Log7PointerESt6vectorIS5_SaIS5_EEEEbRKNS_17__normal_iteratorIT_T0_EESG_(ptr noundef nonnull align 8 dereferenceable(8) %23, ptr noundef nonnull align 8 dereferenceable(8) %24) #6
  br i1 %91, label %93, label %92

92:                                               ; preds = %90
  store i32 4, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  br label %127

93:                                               ; preds = %90
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #6
  %94 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN3tvm5graph8internal3Log7PointerESt6vectorIS5_SaIS5_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %23) #6
  store ptr %94, ptr %25, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #6
  %95 = getelementptr inbounds %"class.tvm::graph::internal::Log", ptr %30, i32 0, i32 1
  store ptr %95, ptr %26, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #6
  %96 = load ptr, ptr %26, align 8, !tbaa !5
  %97 = call ptr @_ZNKSt6vectorIN3tvm5graph8internal3Log5InputESaIS4_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %96) #6
  %98 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %27, i32 0, i32 0
  store ptr %97, ptr %98, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #6
  %99 = load ptr, ptr %26, align 8, !tbaa !5
  %100 = call ptr @_ZNKSt6vectorIN3tvm5graph8internal3Log5InputESaIS4_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %99) #6
  %101 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %28, i32 0, i32 0
  store ptr %100, ptr %101, align 8
  br label %102

102:                                              ; preds = %122, %93
  %103 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKN3tvm5graph8internal3Log5InputESt6vectorIS5_SaIS5_EEEEbRKNS_17__normal_iteratorIT_T0_EESG_(ptr noundef nonnull align 8 dereferenceable(8) %27, ptr noundef nonnull align 8 dereferenceable(8) %28) #6
  br i1 %103, label %105, label %104

104:                                              ; preds = %102
  store i32 6, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #6
  br label %124

105:                                              ; preds = %102
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #6
  %106 = call noundef nonnull align 8 dereferenceable(80) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN3tvm5graph8internal3Log5InputESt6vectorIS5_SaIS5_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %27) #6
  store ptr %106, ptr %29, align 8, !tbaa !5
  %107 = load ptr, ptr %29, align 8, !tbaa !5
  %108 = getelementptr inbounds %"struct.tvm::graph::internal::Log::Input", ptr %107, i32 0, i32 3
  %109 = load ptr, ptr %25, align 8, !tbaa !5
  %110 = invoke noundef zeroext i1 @_ZNK3tvm5graph8internal3Log7PointereqERKS3_(ptr noundef nonnull align 8 dereferenceable(16) %108, ptr noundef nonnull align 8 dereferenceable(16) %109)
          to label %111 unwind label %117

111:                                              ; preds = %105
  br i1 %110, label %112, label %121

112:                                              ; preds = %111
  %113 = load ptr, ptr %29, align 8, !tbaa !5
  %114 = invoke noundef nonnull align 8 dereferenceable(64) ptr @_ZN12_GLOBAL__N_110findOutputERKSt6vectorIN3tvm5graph8internal3Log6OutputESaIS5_EERKNS4_5InputE(ptr noundef nonnull align 8 dereferenceable(24) %15, ptr noundef nonnull align 8 dereferenceable(80) %113)
          to label %115 unwind label %117

115:                                              ; preds = %112
  invoke void @_ZNSt6vectorIN3tvm5graph8internal3Log6OutputESaIS4_EE9push_backERKS4_(ptr noundef nonnull align 8 dereferenceable(24) %21, ptr noundef nonnull align 8 dereferenceable(64) %114)
          to label %116 unwind label %117

116:                                              ; preds = %115
  br label %121

117:                                              ; preds = %115, %112, %105
  %118 = landingpad { ptr, i32 }
          cleanup
  %119 = extractvalue { ptr, i32 } %118, 0
  store ptr %119, ptr %12, align 8
  %120 = extractvalue { ptr, i32 } %118, 1
  store i32 %120, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  br label %133

121:                                              ; preds = %116, %111
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #6
  br label %122

122:                                              ; preds = %121
  %123 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKN3tvm5graph8internal3Log5InputESt6vectorIS5_SaIS5_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %27) #6
  br label %102

124:                                              ; preds = %104
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #6
  br label %125

125:                                              ; preds = %124
  %126 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKN3tvm5graph8internal3Log7PointerESt6vectorIS5_SaIS5_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %23) #6
  br label %90

127:                                              ; preds = %92
  invoke void @_ZNK3tvm5graph8internal3Log18followUpDependencyERKSt6vectorINS2_6OutputESaIS4_EES8_(ptr dead_on_unwind writable sret(%"struct.std::pair") align 8 %0, ptr noundef nonnull align 8 dereferenceable(264) %30, ptr noundef nonnull align 8 dereferenceable(24) %15, ptr noundef nonnull align 8 dereferenceable(24) %21)
          to label %128 unwind label %129

128:                                              ; preds = %127
  store i32 1, ptr %14, align 4
  call void @_ZNSt6vectorIN3tvm5graph8internal3Log6OutputESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %21) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %21) #6
  call void @_ZNSt6vectorIN3tvm5graph8internal3Log6OutputESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #6
  br label %135

129:                                              ; preds = %127
  %130 = landingpad { ptr, i32 }
          cleanup
  %131 = extractvalue { ptr, i32 } %130, 0
  store ptr %131, ptr %12, align 8
  %132 = extractvalue { ptr, i32 } %130, 1
  store i32 %132, ptr %13, align 4
  br label %133

133:                                              ; preds = %129, %117
  call void @_ZNSt6vectorIN3tvm5graph8internal3Log6OutputESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %21) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %21) #6
  br label %134

134:                                              ; preds = %133, %80
  call void @_ZNSt6vectorIN3tvm5graph8internal3Log6OutputESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #6
  br label %136

135:                                              ; preds = %128, %40
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  ret void

136:                                              ; preds = %134, %41
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  br label %137

137:                                              ; preds = %136
  %138 = load ptr, ptr %12, align 8
  %139 = load i32, ptr %13, align 4
  %140 = insertvalue { ptr, i32 } poison, ptr %138, 0
  %141 = insertvalue { ptr, i32 } %140, i32 %139, 1
  resume { ptr, i32 } %141
}

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

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

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

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

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

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

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK3tvm5graph8internal3Log7PointereqERKS3_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #0 align 2

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

; Function Attrs: mustprogress uwtable
declare hidden noundef nonnull align 8 dereferenceable(64) ptr @_ZN12_GLOBAL__N_110findOutputERKSt6vectorIN3tvm5graph8internal3Log6OutputESaIS5_EERKNS4_5InputE(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(80)) #0

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3tvm5graph8internal3Log18followUpDependencyERKSt6vectorINS2_6OutputESaIS4_EES8_(ptr dead_on_unwind noalias writable sret(%"struct.std::pair") align 8, ptr noundef nonnull align 8 dereferenceable(264), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #0 align 2

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

%"struct.std::pair" = type { %"class.std::vector", %"class.std::vector.0" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<tvm::graph::internal::Log::Output, std::allocator<tvm::graph::internal::Log::Output>>::_Vector_impl" }
%"struct.std::_Vector_base<tvm::graph::internal::Log::Output, std::allocator<tvm::graph::internal::Log::Output>>::_Vector_impl" = type { %"struct.std::_Vector_base<tvm::graph::internal::Log::Output, std::allocator<tvm::graph::internal::Log::Output>>::_Vector_impl_data" }
%"struct.std::_Vector_base<tvm::graph::internal::Log::Output, std::allocator<tvm::graph::internal::Log::Output>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<tvm::graph::internal::Log::Update, std::allocator<tvm::graph::internal::Log::Update>>::_Vector_impl" }
%"struct.std::_Vector_base<tvm::graph::internal::Log::Update, std::allocator<tvm::graph::internal::Log::Update>>::_Vector_impl" = type { %"struct.std::_Vector_base<tvm::graph::internal::Log::Update, std::allocator<tvm::graph::internal::Log::Update>>::_Vector_impl_data" }
%"struct.std::_Vector_base<tvm::graph::internal::Log::Update, std::allocator<tvm::graph::internal::Log::Update>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::_Rb_tree_const_iterator" = type { ptr }
%"struct.tvm::graph::internal::Log::Pointer" = type { %"struct.std::type_index", i64 }
%"struct.std::type_index" = type { ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"struct.tvm::graph::internal::Log::Output" = type { %"struct.tvm::graph::internal::Log::EnumValue", %"class.std::__cxx11::basic_string", %"struct.tvm::graph::internal::Log::Pointer" }
%"struct.tvm::graph::internal::Log::EnumValue" = type <{ %"struct.std::type_index", i32, [4 x i8] }>
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.__gnu_cxx::__normal_iterator.49" = type { ptr }

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK3tvm5graph8internal3Log8subGraphEPKNS0_9CallGraphE(ptr dead_on_unwind noalias writable sret(%"struct.std::pair") align 8 %0, ptr noundef nonnull align 8 dereferenceable(264) %1, ptr noundef %2) local_unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %5 = alloca %"struct.tvm::graph::internal::Log::Pointer", align 8
  %6 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %7 = alloca %"class.std::vector", align 8
  %8 = alloca %"class.std::vector.0", align 8
  %9 = alloca %"class.std::vector", align 8
  %10 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %11 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %12 = alloca %"struct.tvm::graph::internal::Log::Output", align 8
  %13 = alloca %"class.std::vector", align 8
  %14 = alloca %"class.__gnu_cxx::__normal_iterator.49", align 8
  %15 = alloca %"class.__gnu_cxx::__normal_iterator.49", align 8
  %16 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %17 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #6
  %18 = getelementptr inbounds i8, ptr %1, i64 168
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #6
  call void @_ZN3tvm5graph8internal3Log7PointerC2IKNS0_9CallGraphEEEPT_(ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef %2)
  %19 = call ptr @_ZNKSt3mapIN3tvm5graph8internal3Log7PointerESt6vectorIS4_SaIS4_EESt4lessIS4_ESaISt4pairIKS4_S7_EEE4findERSB_(ptr noundef nonnull align 8 dereferenceable(48) %18, ptr noundef nonnull align 8 dereferenceable(16) %5)
  store ptr %19, ptr %4, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #6
  %20 = call ptr @_ZNKSt3mapIN3tvm5graph8internal3Log7PointerESt6vectorIS4_SaIS4_EESt4lessIS4_ESaISt4pairIKS4_S7_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %18) #6
  store ptr %20, ptr %6, align 8
  %21 = call noundef zeroext i1 @_ZSteqRKSt23_Rb_tree_const_iteratorISt4pairIKN3tvm5graph8internal3Log7PointerESt6vectorIS5_SaIS5_EEEESD_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  br i1 %21, label %22, label %26

22:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #6
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %7, i8 0, i64 24, i1 false)
  call void @_ZNSt6vectorIN3tvm5graph8internal3Log6OutputESaIS4_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #6
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %8, i8 0, i64 24, i1 false)
  call void @_ZNSt6vectorIN3tvm5graph8internal3Log6UpdateESaIS4_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #6
  invoke void @_ZNSt4pairISt6vectorIN3tvm5graph8internal3Log6OutputESaIS5_EES0_INS4_6UpdateESaIS8_EEEC2IS7_SA_TnNSt9enable_ifIXaaclsr5_PCCPE18_ConstructiblePairIT_T0_EEclsr5_PCCPE26_ImplicitlyConvertiblePairISE_SF_EEEbE4typeELb1EEERKS7_RKSA_(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 8 dereferenceable(24) %8)
          to label %23 unwind label %24

23:                                               ; preds = %22
  call void @_ZNSt6vectorIN3tvm5graph8internal3Log6UpdateESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #6
  call void @_ZNSt6vectorIN3tvm5graph8internal3Log6OutputESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #6
  br label %75

24:                                               ; preds = %22
  %25 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIN3tvm5graph8internal3Log6UpdateESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #6
  call void @_ZNSt6vectorIN3tvm5graph8internal3Log6OutputESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #6
  br label %76

26:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %9) #6
  %27 = getelementptr inbounds i8, ptr %1, i64 48
  call void @_ZNSt6vectorIN3tvm5graph8internal3Log6OutputESaIS4_EEC2ERKS6_(ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull align 8 dereferenceable(24) %27)
  %28 = getelementptr inbounds i8, ptr %1, i64 24
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #6
  %29 = call ptr @_ZNKSt6vectorIN3tvm5graph8internal3Log5InputESaIS4_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %28) #6
  store ptr %29, ptr %10, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #6
  %30 = call ptr @_ZNKSt6vectorIN3tvm5graph8internal3Log5InputESaIS4_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %28) #6
  store ptr %30, ptr %11, align 8
  %31 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKN3tvm5graph8internal3Log5InputESt6vectorIS5_SaIS5_EEEEbRKNS_17__normal_iteratorIT_T0_EESG_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %11) #6
  br i1 %31, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %26
  %32 = getelementptr inbounds i8, ptr %12, i64 16
  %33 = getelementptr inbounds i8, ptr %12, i64 48
  br label %39

._crit_edge:                                      ; preds = %44, %26
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %13) #6
  call void @_ZNSt6vectorIN3tvm5graph8internal3Log6OutputESaIS4_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #6
  %34 = call noundef ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIKN3tvm5graph8internal3Log7PointerESt6vectorIS5_SaIS5_EEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #6
  %35 = getelementptr inbounds i8, ptr %34, i64 16
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #6
  %36 = call ptr @_ZNKSt6vectorIN3tvm5graph8internal3Log7PointerESaIS4_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %35) #6
  store ptr %36, ptr %14, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #6
  %37 = call ptr @_ZNKSt6vectorIN3tvm5graph8internal3Log7PointerESaIS4_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %35) #6
  store ptr %37, ptr %15, align 8
  %38 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKN3tvm5graph8internal3Log7PointerESt6vectorIS5_SaIS5_EEEEbRKNS_17__normal_iteratorIT_T0_EESG_(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 8 dereferenceable(8) %15) #6
  br i1 %38, label %.lr.ph29, label %._crit_edge30

39:                                               ; preds = %.lr.ph, %44
  %40 = call noundef nonnull align 8 dereferenceable(80) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN3tvm5graph8internal3Log5InputESt6vectorIS5_SaIS5_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %12) #6
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(12) %12, ptr noundef nonnull align 8 dereferenceable(12) %40, i64 12, i1 false), !tbaa.struct !5
  %41 = getelementptr inbounds i8, ptr %40, i64 16
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %32, ptr noundef nonnull align 8 dereferenceable(32) %41)
          to label %42 unwind label %47

42:                                               ; preds = %39
  %43 = getelementptr inbounds i8, ptr %40, i64 48
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %33, ptr noundef nonnull align 8 dereferenceable(16) %43, i64 16, i1 false), !tbaa.struct !12
  invoke void @_ZNSt6vectorIN3tvm5graph8internal3Log6OutputESaIS4_EE9push_backEOS4_(ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull align 8 dereferenceable(64) %12)
          to label %44 unwind label %49

44:                                               ; preds = %42
  call void @_ZN3tvm5graph8internal3Log6OutputD2Ev(ptr noundef nonnull align 8 dereferenceable(64) %12) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %12) #6
  %45 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKN3tvm5graph8internal3Log5InputESt6vectorIS5_SaIS5_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #6
  %46 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKN3tvm5graph8internal3Log5InputESt6vectorIS5_SaIS5_EEEEbRKNS_17__normal_iteratorIT_T0_EESG_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %11) #6
  br i1 %46, label %39, label %._crit_edge

47:                                               ; preds = %39
  %48 = landingpad { ptr, i32 }
          cleanup
  br label %51

49:                                               ; preds = %42
  %50 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3tvm5graph8internal3Log6OutputD2Ev(ptr noundef nonnull align 8 dereferenceable(64) %12) #6
  br label %51

51:                                               ; preds = %49, %47
  %.pn20 = phi { ptr, i32 } [ %50, %49 ], [ %48, %47 ]
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #6
  br label %74

._crit_edge30:                                    ; preds = %._crit_edge27, %._crit_edge
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #6
  invoke void @_ZNK3tvm5graph8internal3Log18followUpDependencyERKSt6vectorINS2_6OutputESaIS4_EES8_(ptr dead_on_unwind writable sret(%"struct.std::pair") align 8 %0, ptr noundef nonnull align 8 dereferenceable(264) %1, ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull align 8 dereferenceable(24) %13)
          to label %70 unwind label %71

.lr.ph29:                                         ; preds = %._crit_edge, %._crit_edge27
  %52 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN3tvm5graph8internal3Log7PointerESt6vectorIS5_SaIS5_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %14) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #6
  %53 = call ptr @_ZNKSt6vectorIN3tvm5graph8internal3Log5InputESaIS4_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %28) #6
  store ptr %53, ptr %16, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #6
  %54 = call ptr @_ZNKSt6vectorIN3tvm5graph8internal3Log5InputESaIS4_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %28) #6
  store ptr %54, ptr %17, align 8
  %55 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKN3tvm5graph8internal3Log5InputESt6vectorIS5_SaIS5_EEEEbRKNS_17__normal_iteratorIT_T0_EESG_(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(8) %17) #6
  br i1 %55, label %.lr.ph26, label %._crit_edge27

._crit_edge27:                                    ; preds = %67, %.lr.ph29
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #6
  %56 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKN3tvm5graph8internal3Log7PointerESt6vectorIS5_SaIS5_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %14) #6
  %57 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKN3tvm5graph8internal3Log7PointerESt6vectorIS5_SaIS5_EEEEbRKNS_17__normal_iteratorIT_T0_EESG_(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 8 dereferenceable(8) %15) #6
  br i1 %57, label %.lr.ph29, label %._crit_edge30

.lr.ph26:                                         ; preds = %.lr.ph29, %67
  %58 = call noundef nonnull align 8 dereferenceable(80) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN3tvm5graph8internal3Log5InputESt6vectorIS5_SaIS5_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #6
  %59 = getelementptr inbounds i8, ptr %58, i64 64
  %60 = invoke noundef zeroext i1 @_ZNK3tvm5graph8internal3Log7PointereqERKS3_(ptr noundef nonnull align 8 dereferenceable(16) %59, ptr noundef nonnull align 8 dereferenceable(16) %52)
          to label %61 unwind label %65

61:                                               ; preds = %.lr.ph26
  br i1 %60, label %62, label %67

62:                                               ; preds = %61
  %63 = invoke noundef nonnull align 8 dereferenceable(64) ptr @_ZN12_GLOBAL__N_110findOutputERKSt6vectorIN3tvm5graph8internal3Log6OutputESaIS5_EERKNS4_5InputE(ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull align 8 dereferenceable(80) %58)
          to label %64 unwind label %65

64:                                               ; preds = %62
  invoke void @_ZNSt6vectorIN3tvm5graph8internal3Log6OutputESaIS4_EE9push_backERKS4_(ptr noundef nonnull align 8 dereferenceable(24) %13, ptr noundef nonnull align 8 dereferenceable(64) %63)
          to label %67 unwind label %65

65:                                               ; preds = %64, %62, %.lr.ph26
  %66 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #6
  br label %73

67:                                               ; preds = %64, %61
  %68 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKN3tvm5graph8internal3Log5InputESt6vectorIS5_SaIS5_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #6
  %69 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKN3tvm5graph8internal3Log5InputESt6vectorIS5_SaIS5_EEEEbRKNS_17__normal_iteratorIT_T0_EESG_(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(8) %17) #6
  br i1 %69, label %.lr.ph26, label %._crit_edge27

70:                                               ; preds = %._crit_edge30
  call void @_ZNSt6vectorIN3tvm5graph8internal3Log6OutputESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %13) #6
  call void @_ZNSt6vectorIN3tvm5graph8internal3Log6OutputESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #6
  br label %75

71:                                               ; preds = %._crit_edge30
  %72 = landingpad { ptr, i32 }
          cleanup
  br label %73

73:                                               ; preds = %71, %65
  %.pn = phi { ptr, i32 } [ %66, %65 ], [ %72, %71 ]
  call void @_ZNSt6vectorIN3tvm5graph8internal3Log6OutputESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %13) #6
  br label %74

74:                                               ; preds = %73, %51
  %.pn20.pn = phi { ptr, i32 } [ %.pn20, %51 ], [ %.pn, %73 ]
  call void @_ZNSt6vectorIN3tvm5graph8internal3Log6OutputESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #6
  br label %76

75:                                               ; preds = %70, %23
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  ret void

76:                                               ; preds = %74, %24
  %.pn23 = phi { ptr, i32 } [ %25, %24 ], [ %.pn20.pn, %74 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  resume { ptr, i32 } %.pn23
}

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZSteqRKSt23_Rb_tree_const_iteratorISt4pairIKN3tvm5graph8internal3Log7PointerESt6vectorIS5_SaIS5_EEEESD_(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 ptr @_ZNKSt3mapIN3tvm5graph8internal3Log7PointerESt6vectorIS4_SaIS4_EESt4lessIS4_ESaISt4pairIKS4_S7_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #3 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) #4

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK3tvm5graph8internal3Log7PointereqERKS3_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #0 align 2

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

; Function Attrs: mustprogress uwtable
declare hidden noundef nonnull align 8 dereferenceable(64) ptr @_ZN12_GLOBAL__N_110findOutputERKSt6vectorIN3tvm5graph8internal3Log6OutputESaIS5_EERKNS4_5InputE(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(80)) local_unnamed_addr #0

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3tvm5graph8internal3Log18followUpDependencyERKSt6vectorINS2_6OutputESaIS4_EES8_(ptr dead_on_unwind noalias writable sret(%"struct.std::pair") align 8, ptr noundef nonnull align 8 dereferenceable(264), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0 align 2

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


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