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

; 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 }
%"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] }>
%"struct.std::type_index" = type { ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"struct.tvm::graph::internal::Log::Pointer" = type { %"struct.std::type_index", i64 }
%"class.std::initializer_list" = type { ptr, i64 }
%"class.std::allocator" = type { i8 }
%"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" }

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK3tvm5graph8internal3Log8subGraphENS2_6OutputE(ptr dead_on_unwind noalias writable sret(%"struct.std::pair") align 8 %0, ptr noundef nonnull align 8 dereferenceable(264) %1, ptr noundef %2) #2 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca %"class.std::vector", align 8
  %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 ptr, align 8
  %12 = alloca %"struct.tvm::graph::internal::Log::Output", align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca %"class.std::vector", align 8
  %16 = alloca %"class.std::initializer_list", align 8
  %17 = alloca [1 x %"struct.tvm::graph::internal::Log::Output"], align 8
  %18 = alloca ptr, align 8
  %19 = alloca %"class.std::allocator", align 1
  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
  %20 = load ptr, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr %7) #6
  %21 = getelementptr inbounds %"class.tvm::graph::internal::Log", ptr %20, i32 0, i32 2
  call void @_ZNSt6vectorIN3tvm5graph8internal3Log6OutputESaIS4_EEC2ERKS6_(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 8 dereferenceable(24) %21)
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  %22 = getelementptr inbounds %"class.tvm::graph::internal::Log", ptr %20, i32 0, i32 1
  store ptr %22, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  %23 = load ptr, ptr %8, align 8, !tbaa !5
  %24 = call ptr @_ZNKSt6vectorIN3tvm5graph8internal3Log5InputESaIS4_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %23) #6
  %25 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %9, i32 0, i32 0
  store ptr %24, ptr %25, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  %26 = load ptr, ptr %8, align 8, !tbaa !5
  %27 = call ptr @_ZNKSt6vectorIN3tvm5graph8internal3Log5InputESaIS4_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %26) #6
  %28 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %10, i32 0, i32 0
  store ptr %27, ptr %28, align 8
  br label %29

29:                                               ; preds = %45, %3
  %30 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKN3tvm5graph8internal3Log5InputESt6vectorIS5_SaIS5_EEEEbRKNS_17__normal_iteratorIT_T0_EESG_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #6
  br i1 %30, label %32, label %31

31:                                               ; preds = %29
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  br label %56

32:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  %33 = call noundef nonnull align 8 dereferenceable(80) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN3tvm5graph8internal3Log5InputESt6vectorIS5_SaIS5_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #6
  store ptr %33, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 64, ptr %12) #6
  %34 = getelementptr inbounds %"struct.tvm::graph::internal::Log::Output", ptr %12, i32 0, i32 0
  %35 = load ptr, ptr %11, align 8, !tbaa !5
  %36 = getelementptr inbounds %"struct.tvm::graph::internal::Log::Input", ptr %35, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %34, ptr align 8 %36, i64 12, i1 false), !tbaa.struct !9
  %37 = getelementptr inbounds %"struct.tvm::graph::internal::Log::Output", ptr %12, i32 0, i32 1
  %38 = load ptr, ptr %11, align 8, !tbaa !5
  %39 = getelementptr inbounds %"struct.tvm::graph::internal::Log::Input", ptr %38, i32 0, i32 1
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %37, ptr noundef nonnull align 8 dereferenceable(32) %39)
          to label %40 unwind label %47

40:                                               ; preds = %32
  %41 = getelementptr inbounds %"struct.tvm::graph::internal::Log::Output", ptr %12, i32 0, i32 2
  %42 = load ptr, ptr %11, align 8, !tbaa !5
  %43 = getelementptr inbounds %"struct.tvm::graph::internal::Log::Input", ptr %42, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %41, ptr align 8 %43, i64 16, i1 false), !tbaa.struct !12
  invoke void @_ZNSt6vectorIN3tvm5graph8internal3Log6OutputESaIS4_EE9push_backEOS4_(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 8 dereferenceable(64) %12)
          to label %44 unwind label %51

44:                                               ; preds = %40
  call void @_ZN3tvm5graph8internal3Log6OutputD2Ev(ptr noundef nonnull align 8 dereferenceable(64) %12) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  br label %45

45:                                               ; preds = %44
  %46 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKN3tvm5graph8internal3Log5InputESt6vectorIS5_SaIS5_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #6
  br label %29

47:                                               ; preds = %32
  %48 = landingpad { ptr, i32 }
          cleanup
  %49 = extractvalue { ptr, i32 } %48, 0
  store ptr %49, ptr %13, align 8
  %50 = extractvalue { ptr, i32 } %48, 1
  store i32 %50, ptr %14, align 4
  br label %55

51:                                               ; preds = %40
  %52 = landingpad { ptr, i32 }
          cleanup
  %53 = extractvalue { ptr, i32 } %52, 0
  store ptr %53, ptr %13, align 8
  %54 = extractvalue { ptr, i32 } %52, 1
  store i32 %54, ptr %14, align 4
  call void @_ZN3tvm5graph8internal3Log6OutputD2Ev(ptr noundef nonnull align 8 dereferenceable(64) %12) #6
  br label %55

55:                                               ; preds = %51, %47
  call void @llvm.lifetime.end.p0(i64 64, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  br label %101

56:                                               ; preds = %31
  call void @llvm.lifetime.start.p0(i64 24, ptr %15) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr %17) #6
  store ptr %17, ptr %18, align 8
  invoke void @_ZN3tvm5graph8internal3Log6OutputC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(64) %17, ptr noundef nonnull align 8 dereferenceable(64) %2)
          to label %57 unwind label %73

57:                                               ; preds = %56
  %58 = getelementptr inbounds %"class.std::initializer_list", ptr %16, i32 0, i32 0
  store ptr %17, ptr %58, align 8, !tbaa !15
  %59 = getelementptr inbounds %"class.std::initializer_list", ptr %16, i32 0, i32 1
  store i64 1, ptr %59, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 1, ptr %19) #6
  call void @_ZNSaIN3tvm5graph8internal3Log6OutputEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #6
  %60 = getelementptr inbounds { ptr, i64 }, ptr %16, i32 0, i32 0
  %61 = load ptr, ptr %60, align 8
  %62 = getelementptr inbounds { ptr, i64 }, ptr %16, i32 0, i32 1
  %63 = load i64, ptr %62, align 8
  invoke void @_ZNSt6vectorIN3tvm5graph8internal3Log6OutputESaIS4_EEC2ESt16initializer_listIS4_ERKS5_(ptr noundef nonnull align 8 dereferenceable(24) %15, ptr %61, i64 %63, ptr noundef nonnull align 1 dereferenceable(1) %19)
          to label %64 unwind label %84

64:                                               ; preds = %57
  call void @_ZNSt15__new_allocatorIN3tvm5graph8internal3Log6OutputEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #6
  %65 = getelementptr inbounds [1 x %"struct.tvm::graph::internal::Log::Output"], ptr %17, i32 0, i32 0
  %66 = getelementptr inbounds %"struct.tvm::graph::internal::Log::Output", ptr %65, i64 1
  br label %67

67:                                               ; preds = %67, %64
  %68 = phi ptr [ %66, %64 ], [ %69, %67 ]
  %69 = getelementptr inbounds %"struct.tvm::graph::internal::Log::Output", ptr %68, i64 -1
  call void @_ZN3tvm5graph8internal3Log6OutputD2Ev(ptr noundef nonnull align 8 dereferenceable(64) %69) #6
  %70 = icmp eq ptr %69, %65
  br i1 %70, label %71, label %67

71:                                               ; preds = %67
  call void @llvm.lifetime.end.p0(i64 64, ptr %17) #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) %20, ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 8 dereferenceable(24) %15)
          to label %72 unwind label %96

72:                                               ; preds = %71
  call void @_ZNSt6vectorIN3tvm5graph8internal3Log6OutputESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #6
  call void @_ZNSt6vectorIN3tvm5graph8internal3Log6OutputESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #6
  ret void

73:                                               ; preds = %56
  %74 = landingpad { ptr, i32 }
          cleanup
  %75 = extractvalue { ptr, i32 } %74, 0
  store ptr %75, ptr %13, align 8
  %76 = extractvalue { ptr, i32 } %74, 1
  store i32 %76, ptr %14, align 4
  %77 = load ptr, ptr %18, align 8
  %78 = icmp eq ptr %17, %77
  br i1 %78, label %83, label %79

79:                                               ; preds = %79, %73
  %80 = phi ptr [ %77, %73 ], [ %81, %79 ]
  %81 = getelementptr inbounds %"struct.tvm::graph::internal::Log::Output", ptr %80, i64 -1
  call void @_ZN3tvm5graph8internal3Log6OutputD2Ev(ptr noundef nonnull align 8 dereferenceable(64) %81) #6
  %82 = icmp eq ptr %81, %17
  br i1 %82, label %83, label %79

83:                                               ; preds = %79, %73
  br label %95

84:                                               ; preds = %57
  %85 = landingpad { ptr, i32 }
          cleanup
  %86 = extractvalue { ptr, i32 } %85, 0
  store ptr %86, ptr %13, align 8
  %87 = extractvalue { ptr, i32 } %85, 1
  store i32 %87, ptr %14, align 4
  call void @_ZNSt15__new_allocatorIN3tvm5graph8internal3Log6OutputEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #6
  %88 = getelementptr inbounds [1 x %"struct.tvm::graph::internal::Log::Output"], ptr %17, i32 0, i32 0
  %89 = getelementptr inbounds %"struct.tvm::graph::internal::Log::Output", ptr %88, i64 1
  br label %90

90:                                               ; preds = %90, %84
  %91 = phi ptr [ %89, %84 ], [ %92, %90 ]
  %92 = getelementptr inbounds %"struct.tvm::graph::internal::Log::Output", ptr %91, i64 -1
  call void @_ZN3tvm5graph8internal3Log6OutputD2Ev(ptr noundef nonnull align 8 dereferenceable(64) %92) #6
  %93 = icmp eq ptr %92, %88
  br i1 %93, label %94, label %90

94:                                               ; preds = %90
  br label %95

95:                                               ; preds = %94, %83
  call void @llvm.lifetime.end.p0(i64 64, ptr %17) #6
  br label %100

96:                                               ; preds = %71
  %97 = landingpad { ptr, i32 }
          cleanup
  %98 = extractvalue { ptr, i32 } %97, 0
  store ptr %98, ptr %13, align 8
  %99 = extractvalue { ptr, i32 } %97, 1
  store i32 %99, ptr %14, align 4
  call void @_ZNSt6vectorIN3tvm5graph8internal3Log6OutputESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #6
  br label %100

100:                                              ; preds = %96, %95
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #6
  br label %101

101:                                              ; preds = %100, %55
  call void @_ZNSt6vectorIN3tvm5graph8internal3Log6OutputESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #6
  br label %102

102:                                              ; preds = %101
  %103 = load ptr, ptr %13, align 8
  %104 = load i32, ptr %14, align 4
  %105 = insertvalue { ptr, i32 } poison, ptr %103, 0
  %106 = insertvalue { ptr, i32 } %105, i32 %104, 1
  resume { ptr, i32 } %106
}

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIN3tvm5graph8internal3Log6OutputEED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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}
!15 = !{!16, !6, i64 0}
!16 = !{!"_ZTSSt16initializer_listIN3tvm5graph8internal3Log6OutputEE", !6, i64 0, !14, i64 8}
!17 = !{!16, !14, i64 8}


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

%"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 }
%"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] }>
%"struct.std::type_index" = type { ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"struct.tvm::graph::internal::Log::Pointer" = type { %"struct.std::type_index", i64 }
%"class.std::allocator" = type { i8 }

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

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

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNKSt6vectorIN3tvm5graph8internal3Log5InputESaIS4_EE3endEv(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_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 #3

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK3tvm5graph8internal3Log8subGraphENS2_6OutputE(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 #2 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.std::vector", align 8
  %5 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %6 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %7 = alloca %"struct.tvm::graph::internal::Log::Output", align 8
  %8 = alloca %"class.std::vector", align 8
  %9 = alloca [1 x %"struct.tvm::graph::internal::Log::Output"], align 8
  %10 = alloca %"class.std::allocator", align 1
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #6
  %11 = getelementptr inbounds i8, ptr %1, i64 48
  call void @_ZNSt6vectorIN3tvm5graph8internal3Log6OutputESaIS4_EEC2ERKS6_(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(24) %11)
  %12 = getelementptr inbounds i8, ptr %1, i64 24
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #6
  %13 = call ptr @_ZNKSt6vectorIN3tvm5graph8internal3Log5InputESaIS4_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %12) #6
  store ptr %13, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #6
  %14 = call ptr @_ZNKSt6vectorIN3tvm5graph8internal3Log5InputESaIS4_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %12) #6
  store ptr %14, ptr %6, align 8
  %15 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKN3tvm5graph8internal3Log5InputESt6vectorIS5_SaIS5_EEEEbRKNS_17__normal_iteratorIT_T0_EESG_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6) #6
  br i1 %15, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %3
  %16 = getelementptr inbounds i8, ptr %7, i64 16
  %17 = getelementptr inbounds i8, ptr %7, i64 48
  br label %18

._crit_edge:                                      ; preds = %23, %3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %9) #6
  invoke void @_ZN3tvm5graph8internal3Log6OutputC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(64) %9, ptr noundef nonnull align 8 dereferenceable(64) %2)
          to label %31 unwind label %34

18:                                               ; preds = %.lr.ph, %23
  %19 = call noundef nonnull align 8 dereferenceable(80) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN3tvm5graph8internal3Log5InputESt6vectorIS5_SaIS5_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %7) #6
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(12) %7, ptr noundef nonnull align 8 dereferenceable(12) %19, i64 12, i1 false), !tbaa.struct !5
  %20 = getelementptr inbounds i8, ptr %19, i64 16
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %16, ptr noundef nonnull align 8 dereferenceable(32) %20)
          to label %21 unwind label %26

21:                                               ; preds = %18
  %22 = getelementptr inbounds i8, ptr %19, i64 48
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %17, ptr noundef nonnull align 8 dereferenceable(16) %22, i64 16, i1 false), !tbaa.struct !12
  invoke void @_ZNSt6vectorIN3tvm5graph8internal3Log6OutputESaIS4_EE9push_backEOS4_(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(64) %7)
          to label %23 unwind label %28

23:                                               ; preds = %21
  call void @_ZN3tvm5graph8internal3Log6OutputD2Ev(ptr noundef nonnull align 8 dereferenceable(64) %7) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %7) #6
  %24 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKN3tvm5graph8internal3Log5InputESt6vectorIS5_SaIS5_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #6
  %25 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKN3tvm5graph8internal3Log5InputESt6vectorIS5_SaIS5_EEEEbRKNS_17__normal_iteratorIT_T0_EESG_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6) #6
  br i1 %25, label %18, label %._crit_edge

26:                                               ; preds = %18
  %27 = landingpad { ptr, i32 }
          cleanup
  br label %30

28:                                               ; preds = %21
  %29 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3tvm5graph8internal3Log6OutputD2Ev(ptr noundef nonnull align 8 dereferenceable(64) %7) #6
  br label %30

30:                                               ; preds = %28, %26
  %.pn16 = phi { ptr, i32 } [ %29, %28 ], [ %27, %26 ]
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #6
  br label %40

31:                                               ; preds = %._crit_edge
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %10) #6
  call void @_ZNSaIN3tvm5graph8internal3Log6OutputEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #6
  invoke void @_ZNSt6vectorIN3tvm5graph8internal3Log6OutputESaIS4_EEC2ESt16initializer_listIS4_ERKS5_(ptr noundef nonnull align 8 dereferenceable(24) %8, ptr nonnull %9, i64 1, ptr noundef nonnull align 1 dereferenceable(1) %10)
          to label %32 unwind label %.loopexit.loopexit

32:                                               ; preds = %31
  call void @_ZNSt15__new_allocatorIN3tvm5graph8internal3Log6OutputEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #6
  call void @_ZN3tvm5graph8internal3Log6OutputD2Ev(ptr noundef nonnull align 8 dereferenceable(64) %9) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %9) #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) %4, ptr noundef nonnull align 8 dereferenceable(24) %8)
          to label %33 unwind label %37

33:                                               ; preds = %32
  call void @_ZNSt6vectorIN3tvm5graph8internal3Log6OutputESaIS4_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) %4) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #6
  ret void

34:                                               ; preds = %._crit_edge
  %35 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit

.loopexit.loopexit:                               ; preds = %31
  %36 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIN3tvm5graph8internal3Log6OutputEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #6
  call void @_ZN3tvm5graph8internal3Log6OutputD2Ev(ptr noundef nonnull align 8 dereferenceable(64) %9) #6
  br label %.loopexit

.loopexit:                                        ; preds = %.loopexit.loopexit, %34
  %.pn = phi { ptr, i32 } [ %35, %34 ], [ %36, %.loopexit.loopexit ]
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %9) #6
  br label %39

37:                                               ; preds = %32
  %38 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIN3tvm5graph8internal3Log6OutputESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #6
  br label %39

39:                                               ; preds = %37, %.loopexit
  %.pn14 = phi { ptr, i32 } [ %38, %37 ], [ %.pn, %.loopexit ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #6
  br label %40

40:                                               ; preds = %39, %30
  %.pn16.pn = phi { ptr, i32 } [ %.pn16, %30 ], [ %.pn14, %39 ]
  call void @_ZNSt6vectorIN3tvm5graph8internal3Log6OutputESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #6
  resume { ptr, i32 } %.pn16.pn
}

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIN3tvm5graph8internal3Log6OutputEED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) 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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass