; LLVM IR from jrl-umi3218/tvm :: tests (TestDisabled)

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

%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%struct.RegisterDisabledUpdate = type { %"class.tvm::graph::abstract::Node" }
%"class.tvm::graph::abstract::Node" = type { %"class.tvm::graph::internal::AbstractNode" }
%"class.tvm::graph::internal::AbstractNode" = type { %"class.tvm::graph::internal::Inputs", %"class.tvm::graph::abstract::Outputs.base", %"class.std::map", %"class.std::map.24", %"class.std::map.24", %"class.std::map.29", %"class.std::map.34" }
%"class.tvm::graph::internal::Inputs" = type { ptr, %"class.std::unordered_map", %"class.std::unordered_set" }
%"class.std::unordered_map" = type { %"class.std::_Hashtable" }
%"class.std::_Hashtable" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%"class.std::unordered_set" = type { %"class.std::_Hashtable.2" }
%"class.std::_Hashtable.2" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"class.tvm::graph::abstract::Outputs.base" = type <{ ptr, i8 }>
%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<int, std::pair<const int, std::function<void (tvm::graph::internal::AbstractNode &)>>, std::_Select1st<std::pair<const int, std::function<void (tvm::graph::internal::AbstractNode &)>>>, std::less<int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, std::pair<const int, std::function<void (tvm::graph::internal::AbstractNode &)>>, std::_Select1st<std::pair<const int, std::function<void (tvm::graph::internal::AbstractNode &)>>>, std::less<int>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"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.24" = type { %"class.std::_Rb_tree.25" }
%"class.std::_Rb_tree.25" = type { %"struct.std::_Rb_tree<int, std::pair<const int, std::vector<int>>, std::_Select1st<std::pair<const int, std::vector<int>>>, std::less<int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, std::pair<const int, std::vector<int>>, std::_Select1st<std::pair<const int, std::vector<int>>>, std::less<int>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"class.std::map.29" = type { %"class.std::_Rb_tree.30" }
%"class.std::_Rb_tree.30" = type { %"struct.std::_Rb_tree<int, std::pair<const int, std::map<tvm::graph::abstract::Outputs *, std::set<int>>>, std::_Select1st<std::pair<const int, std::map<tvm::graph::abstract::Outputs *, std::set<int>>>>, std::less<int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, std::pair<const int, std::map<tvm::graph::abstract::Outputs *, std::set<int>>>, std::_Select1st<std::pair<const int, std::map<tvm::graph::abstract::Outputs *, std::set<int>>>>, std::less<int>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"class.std::map.34" = type { %"class.std::_Rb_tree.35" }
%"class.std::_Rb_tree.35" = type { %"struct.std::_Rb_tree<int, std::pair<const int, std::pair<tvm::graph::abstract::Outputs *, int>>, std::_Select1st<std::pair<const int, std::pair<tvm::graph::abstract::Outputs *, int>>>, std::less<int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, std::pair<const int, std::pair<tvm::graph::abstract::Outputs *, int>>, std::_Select1st<std::pair<const int, std::pair<tvm::graph::abstract::Outputs *, int>>>, std::less<int>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%struct.DisabledOutputDependency = type { %"class.tvm::graph::abstract::Node.39" }
%"class.tvm::graph::abstract::Node.39" = type { %"class.tvm::graph::internal::AbstractNode" }
%struct.DisabledInternalDependency = type { %"class.tvm::graph::abstract::Node.40" }
%"class.tvm::graph::abstract::Node.40" = type { %"class.tvm::graph::internal::AbstractNode" }
%struct.DisabledUpdateInputDependency = type { %"class.tvm::graph::abstract::Node.41" }
%"class.tvm::graph::abstract::Node.41" = type { %"class.tvm::graph::internal::AbstractNode" }
%"class.std::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%struct.DisabledOutputInputDependency = type { %"class.tvm::graph::abstract::Node.42" }
%"class.tvm::graph::abstract::Node.42" = type { %"class.tvm::graph::internal::AbstractNode" }

@_ZTISt13runtime_error = external constant ptr
@_ZTI10FailedTest = external dso_local constant { ptr, ptr }, align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [45 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [52 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca %struct.RegisterDisabledUpdate, align 8
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca %struct.DisabledOutputDependency, align 8
  %7 = alloca ptr, align 8
  %8 = alloca %struct.DisabledInternalDependency, align 8
  %9 = alloca ptr, align 8
  %10 = alloca %struct.DisabledUpdateInputDependency, align 8
  %11 = alloca %"class.std::shared_ptr", align 8
  %12 = alloca ptr, align 8
  %13 = alloca %struct.DisabledOutputInputDependency, align 8
  %14 = alloca %"class.std::shared_ptr", align 8
  %15 = alloca ptr, align 8
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 376, ptr %2) #7
  invoke void @_ZN22RegisterDisabledUpdateC2Ev(ptr noundef nonnull align 8 dereferenceable(376) %2)
          to label %16 unwind label %18

16:                                               ; preds = %0
  %17 = call ptr @__cxa_allocate_exception(i64 1) #7
  invoke void @__cxa_throw(ptr %17, ptr @_ZTI10FailedTest, ptr null) #8
          to label %209 unwind label %22

18:                                               ; preds = %0
  %19 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt13runtime_error
  %20 = extractvalue { ptr, i32 } %19, 0
  store ptr %20, ptr %3, align 8
  %21 = extractvalue { ptr, i32 } %19, 1
  store i32 %21, ptr %4, align 4
  br label %26

22:                                               ; preds = %16
  %23 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt13runtime_error
  %24 = extractvalue { ptr, i32 } %23, 0
  store ptr %24, ptr %3, align 8
  %25 = extractvalue { ptr, i32 } %23, 1
  store i32 %25, ptr %4, align 4
  call void @_ZN3tvm5graph8internal12AbstractNodeD2Ev(ptr noundef nonnull align 8 dereferenceable(376) %2) #7
  br label %26

26:                                               ; preds = %22, %18
  call void @llvm.lifetime.end.p0(i64 376, ptr %2) #7
  br label %27

27:                                               ; preds = %26
  %28 = load i32, ptr %4, align 4
  %29 = call i32 @llvm.eh.typeid.for.p0(ptr @_ZTISt13runtime_error) #7
  %30 = icmp eq i32 %28, %29
  br i1 %30, label %31, label %201

31:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #7
  %32 = load ptr, ptr %3, align 8
  %33 = call ptr @__cxa_begin_catch(ptr %32) #7
  store ptr %33, ptr %5, align 8
  %34 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str)
          to label %35 unwind label %48

35:                                               ; preds = %31
  %36 = load ptr, ptr %5, align 8, !tbaa !5
  %37 = load ptr, ptr %36, align 8, !tbaa !9
  %38 = getelementptr inbounds ptr, ptr %37, i64 2
  %39 = load ptr, ptr %38, align 8
  %40 = call noundef ptr %39(ptr noundef nonnull align 8 dereferenceable(16) %36) #7
  %41 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %34, ptr noundef %40)
          to label %42 unwind label %48

42:                                               ; preds = %35
  %43 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %41, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %44 unwind label %48

44:                                               ; preds = %42
  call void @__cxa_end_catch()
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #7
  br label %45

45:                                               ; preds = %44
  call void @llvm.lifetime.start.p0(i64 376, ptr %6) #7
  invoke void @_ZN24DisabledOutputDependencyC2Ev(ptr noundef nonnull align 8 dereferenceable(376) %6)
          to label %46 unwind label %53

46:                                               ; preds = %45
  %47 = call ptr @__cxa_allocate_exception(i64 1) #7
  invoke void @__cxa_throw(ptr %47, ptr @_ZTI10FailedTest, ptr null) #8
          to label %209 unwind label %57

48:                                               ; preds = %42, %35, %31
  %49 = landingpad { ptr, i32 }
          cleanup
  %50 = extractvalue { ptr, i32 } %49, 0
  store ptr %50, ptr %3, align 8
  %51 = extractvalue { ptr, i32 } %49, 1
  store i32 %51, ptr %4, align 4
  invoke void @__cxa_end_catch()
          to label %52 unwind label %206

52:                                               ; preds = %48
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #7
  br label %201

53:                                               ; preds = %45
  %54 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt13runtime_error
  %55 = extractvalue { ptr, i32 } %54, 0
  store ptr %55, ptr %3, align 8
  %56 = extractvalue { ptr, i32 } %54, 1
  store i32 %56, ptr %4, align 4
  br label %61

57:                                               ; preds = %46
  %58 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt13runtime_error
  %59 = extractvalue { ptr, i32 } %58, 0
  store ptr %59, ptr %3, align 8
  %60 = extractvalue { ptr, i32 } %58, 1
  store i32 %60, ptr %4, align 4
  call void @_ZN3tvm5graph8internal12AbstractNodeD2Ev(ptr noundef nonnull align 8 dereferenceable(376) %6) #7
  br label %61

61:                                               ; preds = %57, %53
  call void @llvm.lifetime.end.p0(i64 376, ptr %6) #7
  br label %62

62:                                               ; preds = %61
  %63 = load i32, ptr %4, align 4
  %64 = call i32 @llvm.eh.typeid.for.p0(ptr @_ZTISt13runtime_error) #7
  %65 = icmp eq i32 %63, %64
  br i1 %65, label %66, label %201

66:                                               ; preds = %62
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #7
  %67 = load ptr, ptr %3, align 8
  %68 = call ptr @__cxa_begin_catch(ptr %67) #7
  store ptr %68, ptr %7, align 8
  %69 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.1)
          to label %70 unwind label %83

70:                                               ; preds = %66
  %71 = load ptr, ptr %7, align 8, !tbaa !5
  %72 = load ptr, ptr %71, align 8, !tbaa !9
  %73 = getelementptr inbounds ptr, ptr %72, i64 2
  %74 = load ptr, ptr %73, align 8
  %75 = call noundef ptr %74(ptr noundef nonnull align 8 dereferenceable(16) %71) #7
  %76 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %69, ptr noundef %75)
          to label %77 unwind label %83

77:                                               ; preds = %70
  %78 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %76, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %79 unwind label %83

79:                                               ; preds = %77
  call void @__cxa_end_catch()
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  br label %80

80:                                               ; preds = %79
  call void @llvm.lifetime.start.p0(i64 376, ptr %8) #7
  invoke void @_ZN26DisabledInternalDependencyC2Ev(ptr noundef nonnull align 8 dereferenceable(376) %8)
          to label %81 unwind label %88

81:                                               ; preds = %80
  %82 = call ptr @__cxa_allocate_exception(i64 1) #7
  invoke void @__cxa_throw(ptr %82, ptr @_ZTI10FailedTest, ptr null) #8
          to label %209 unwind label %92

83:                                               ; preds = %77, %70, %66
  %84 = landingpad { ptr, i32 }
          cleanup
  %85 = extractvalue { ptr, i32 } %84, 0
  store ptr %85, ptr %3, align 8
  %86 = extractvalue { ptr, i32 } %84, 1
  store i32 %86, ptr %4, align 4
  invoke void @__cxa_end_catch()
          to label %87 unwind label %206

87:                                               ; preds = %83
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  br label %201

88:                                               ; preds = %80
  %89 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt13runtime_error
  %90 = extractvalue { ptr, i32 } %89, 0
  store ptr %90, ptr %3, align 8
  %91 = extractvalue { ptr, i32 } %89, 1
  store i32 %91, ptr %4, align 4
  br label %96

92:                                               ; preds = %81
  %93 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt13runtime_error
  %94 = extractvalue { ptr, i32 } %93, 0
  store ptr %94, ptr %3, align 8
  %95 = extractvalue { ptr, i32 } %93, 1
  store i32 %95, ptr %4, align 4
  call void @_ZN3tvm5graph8internal12AbstractNodeD2Ev(ptr noundef nonnull align 8 dereferenceable(376) %8) #7
  br label %96

96:                                               ; preds = %92, %88
  call void @llvm.lifetime.end.p0(i64 376, ptr %8) #7
  br label %97

97:                                               ; preds = %96
  %98 = load i32, ptr %4, align 4
  %99 = call i32 @llvm.eh.typeid.for.p0(ptr @_ZTISt13runtime_error) #7
  %100 = icmp eq i32 %98, %99
  br i1 %100, label %101, label %201

101:                                              ; preds = %97
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #7
  %102 = load ptr, ptr %3, align 8
  %103 = call ptr @__cxa_begin_catch(ptr %102) #7
  store ptr %103, ptr %9, align 8
  %104 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.2)
          to label %105 unwind label %119

105:                                              ; preds = %101
  %106 = load ptr, ptr %9, align 8, !tbaa !5
  %107 = load ptr, ptr %106, align 8, !tbaa !9
  %108 = getelementptr inbounds ptr, ptr %107, i64 2
  %109 = load ptr, ptr %108, align 8
  %110 = call noundef ptr %109(ptr noundef nonnull align 8 dereferenceable(16) %106) #7
  %111 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %104, ptr noundef %110)
          to label %112 unwind label %119

112:                                              ; preds = %105
  %113 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %111, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %114 unwind label %119

114:                                              ; preds = %112
  call void @__cxa_end_catch()
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  br label %115

115:                                              ; preds = %114
  call void @llvm.lifetime.start.p0(i64 376, ptr %10) #7
  invoke void @_ZSt11make_sharedI14DisabledOutputJEESt10shared_ptrINSt9enable_ifIXntsr8is_arrayIT_EE5valueES3_E4typeEEDpOT0_(ptr dead_on_unwind writable sret(%"class.std::shared_ptr") align 8 %11)
          to label %116 unwind label %124

116:                                              ; preds = %115
  invoke void @_ZN29DisabledUpdateInputDependencyC2ESt10shared_ptrI14DisabledOutputE(ptr noundef nonnull align 8 dereferenceable(376) %10, ptr noundef %11)
          to label %117 unwind label %128

117:                                              ; preds = %116
  call void @_ZNSt12__shared_ptrI14DisabledOutputLN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %11) #7
  %118 = call ptr @__cxa_allocate_exception(i64 1) #7
  invoke void @__cxa_throw(ptr %118, ptr @_ZTI10FailedTest, ptr null) #8
          to label %209 unwind label %132

119:                                              ; preds = %112, %105, %101
  %120 = landingpad { ptr, i32 }
          cleanup
  %121 = extractvalue { ptr, i32 } %120, 0
  store ptr %121, ptr %3, align 8
  %122 = extractvalue { ptr, i32 } %120, 1
  store i32 %122, ptr %4, align 4
  invoke void @__cxa_end_catch()
          to label %123 unwind label %206

123:                                              ; preds = %119
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  br label %201

124:                                              ; preds = %115
  %125 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt13runtime_error
  %126 = extractvalue { ptr, i32 } %125, 0
  store ptr %126, ptr %3, align 8
  %127 = extractvalue { ptr, i32 } %125, 1
  store i32 %127, ptr %4, align 4
  br label %136

128:                                              ; preds = %116
  %129 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt13runtime_error
  %130 = extractvalue { ptr, i32 } %129, 0
  store ptr %130, ptr %3, align 8
  %131 = extractvalue { ptr, i32 } %129, 1
  store i32 %131, ptr %4, align 4
  call void @_ZNSt12__shared_ptrI14DisabledOutputLN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %11) #7
  br label %136

132:                                              ; preds = %117
  %133 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt13runtime_error
  %134 = extractvalue { ptr, i32 } %133, 0
  store ptr %134, ptr %3, align 8
  %135 = extractvalue { ptr, i32 } %133, 1
  store i32 %135, ptr %4, align 4
  call void @_ZN3tvm5graph8internal12AbstractNodeD2Ev(ptr noundef nonnull align 8 dereferenceable(376) %10) #7
  br label %136

136:                                              ; preds = %132, %128, %124
  call void @llvm.lifetime.end.p0(i64 376, ptr %10) #7
  br label %137

137:                                              ; preds = %136
  %138 = load i32, ptr %4, align 4
  %139 = call i32 @llvm.eh.typeid.for.p0(ptr @_ZTISt13runtime_error) #7
  %140 = icmp eq i32 %138, %139
  br i1 %140, label %141, label %201

141:                                              ; preds = %137
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  %142 = load ptr, ptr %3, align 8
  %143 = call ptr @__cxa_begin_catch(ptr %142) #7
  store ptr %143, ptr %12, align 8
  %144 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.3)
          to label %145 unwind label %159

145:                                              ; preds = %141
  %146 = load ptr, ptr %12, align 8, !tbaa !5
  %147 = load ptr, ptr %146, align 8, !tbaa !9
  %148 = getelementptr inbounds ptr, ptr %147, i64 2
  %149 = load ptr, ptr %148, align 8
  %150 = call noundef ptr %149(ptr noundef nonnull align 8 dereferenceable(16) %146) #7
  %151 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %144, ptr noundef %150)
          to label %152 unwind label %159

152:                                              ; preds = %145
  %153 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %151, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %154 unwind label %159

154:                                              ; preds = %152
  call void @__cxa_end_catch()
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  br label %155

155:                                              ; preds = %154
  call void @llvm.lifetime.start.p0(i64 376, ptr %13) #7
  invoke void @_ZSt11make_sharedI14DisabledOutputJEESt10shared_ptrINSt9enable_ifIXntsr8is_arrayIT_EE5valueES3_E4typeEEDpOT0_(ptr dead_on_unwind writable sret(%"class.std::shared_ptr") align 8 %14)
          to label %156 unwind label %164

156:                                              ; preds = %155
  invoke void @_ZN29DisabledOutputInputDependencyC2ESt10shared_ptrI14DisabledOutputE(ptr noundef nonnull align 8 dereferenceable(376) %13, ptr noundef %14)
          to label %157 unwind label %168

157:                                              ; preds = %156
  call void @_ZNSt12__shared_ptrI14DisabledOutputLN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %14) #7
  %158 = call ptr @__cxa_allocate_exception(i64 1) #7
  invoke void @__cxa_throw(ptr %158, ptr @_ZTI10FailedTest, ptr null) #8
          to label %209 unwind label %172

159:                                              ; preds = %152, %145, %141
  %160 = landingpad { ptr, i32 }
          cleanup
  %161 = extractvalue { ptr, i32 } %160, 0
  store ptr %161, ptr %3, align 8
  %162 = extractvalue { ptr, i32 } %160, 1
  store i32 %162, ptr %4, align 4
  invoke void @__cxa_end_catch()
          to label %163 unwind label %206

163:                                              ; preds = %159
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  br label %201

164:                                              ; preds = %155
  %165 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt13runtime_error
  %166 = extractvalue { ptr, i32 } %165, 0
  store ptr %166, ptr %3, align 8
  %167 = extractvalue { ptr, i32 } %165, 1
  store i32 %167, ptr %4, align 4
  br label %176

168:                                              ; preds = %156
  %169 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt13runtime_error
  %170 = extractvalue { ptr, i32 } %169, 0
  store ptr %170, ptr %3, align 8
  %171 = extractvalue { ptr, i32 } %169, 1
  store i32 %171, ptr %4, align 4
  call void @_ZNSt12__shared_ptrI14DisabledOutputLN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %14) #7
  br label %176

172:                                              ; preds = %157
  %173 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt13runtime_error
  %174 = extractvalue { ptr, i32 } %173, 0
  store ptr %174, ptr %3, align 8
  %175 = extractvalue { ptr, i32 } %173, 1
  store i32 %175, ptr %4, align 4
  call void @_ZN3tvm5graph8internal12AbstractNodeD2Ev(ptr noundef nonnull align 8 dereferenceable(376) %13) #7
  br label %176

176:                                              ; preds = %172, %168, %164
  call void @llvm.lifetime.end.p0(i64 376, ptr %13) #7
  br label %177

177:                                              ; preds = %176
  %178 = load i32, ptr %4, align 4
  %179 = call i32 @llvm.eh.typeid.for.p0(ptr @_ZTISt13runtime_error) #7
  %180 = icmp eq i32 %178, %179
  br i1 %180, label %181, label %201

181:                                              ; preds = %177
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
  %182 = load ptr, ptr %3, align 8
  %183 = call ptr @__cxa_begin_catch(ptr %182) #7
  store ptr %183, ptr %15, align 8
  %184 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.4)
          to label %185 unwind label %196

185:                                              ; preds = %181
  %186 = load ptr, ptr %15, align 8, !tbaa !5
  %187 = load ptr, ptr %186, align 8, !tbaa !9
  %188 = getelementptr inbounds ptr, ptr %187, i64 2
  %189 = load ptr, ptr %188, align 8
  %190 = call noundef ptr %189(ptr noundef nonnull align 8 dereferenceable(16) %186) #7
  %191 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %184, ptr noundef %190)
          to label %192 unwind label %196

192:                                              ; preds = %185
  %193 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %191, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %194 unwind label %196

194:                                              ; preds = %192
  call void @__cxa_end_catch()
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  br label %195

195:                                              ; preds = %194
  ret i32 0

196:                                              ; preds = %192, %185, %181
  %197 = landingpad { ptr, i32 }
          cleanup
  %198 = extractvalue { ptr, i32 } %197, 0
  store ptr %198, ptr %3, align 8
  %199 = extractvalue { ptr, i32 } %197, 1
  store i32 %199, ptr %4, align 4
  invoke void @__cxa_end_catch()
          to label %200 unwind label %206

200:                                              ; preds = %196
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  br label %201

201:                                              ; preds = %200, %177, %163, %137, %123, %97, %87, %62, %52, %27
  %202 = load ptr, ptr %3, align 8
  %203 = load i32, ptr %4, align 4
  %204 = insertvalue { ptr, i32 } poison, ptr %202, 0
  %205 = insertvalue { ptr, i32 } %204, i32 %203, 1
  resume { ptr, i32 } %205

206:                                              ; preds = %196, %159, %119, %83, %48
  %207 = landingpad { ptr, i32 }
          catch ptr null
  %208 = extractvalue { ptr, i32 } %207, 0
  call void @__clang_call_terminate(ptr %208) #9
  unreachable

209:                                              ; preds = %157, %117, %81, %46, %16
  unreachable
}

; 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 void @_ZN22RegisterDisabledUpdateC2Ev(ptr noundef nonnull align 8 dereferenceable(376)) unnamed_addr #2 align 2

declare i32 @__gxx_personality_v0(...)

declare ptr @__cxa_allocate_exception(i64)

declare void @__cxa_throw(ptr, ptr, ptr)

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

; Function Attrs: nounwind memory(none)
declare i32 @llvm.eh.typeid.for.p0(ptr) #3

declare ptr @__cxa_begin_catch(ptr)

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #4

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #4

declare void @__cxa_end_catch()

; Function Attrs: noinline noreturn nounwind uwtable
declare hidden void @__clang_call_terminate(ptr noundef) #5

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt11make_sharedI14DisabledOutputJEESt10shared_ptrINSt9enable_ifIXntsr8is_arrayIT_EE5valueES3_E4typeEEDpOT0_(ptr dead_on_unwind noalias writable sret(%"class.std::shared_ptr") align 8) #4

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

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

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

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

attributes #0 = { mustprogress norecurse 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 = { 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 = { nounwind memory(none) }
attributes #4 = { 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 #5 = { noinline noreturn nounwind uwtable "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 = { 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 #7 = { nounwind }
attributes #8 = { noreturn }
attributes #9 = { noreturn nounwind }

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

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


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

%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%struct.RegisterDisabledUpdate = type { %"class.tvm::graph::abstract::Node" }
%"class.tvm::graph::abstract::Node" = type { %"class.tvm::graph::internal::AbstractNode" }
%"class.tvm::graph::internal::AbstractNode" = type { %"class.tvm::graph::internal::Inputs", %"class.tvm::graph::abstract::Outputs.base", %"class.std::map", %"class.std::map.24", %"class.std::map.24", %"class.std::map.29", %"class.std::map.34" }
%"class.tvm::graph::internal::Inputs" = type { ptr, %"class.std::unordered_map", %"class.std::unordered_set" }
%"class.std::unordered_map" = type { %"class.std::_Hashtable" }
%"class.std::_Hashtable" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%"class.std::unordered_set" = type { %"class.std::_Hashtable.2" }
%"class.std::_Hashtable.2" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"class.tvm::graph::abstract::Outputs.base" = type <{ ptr, i8 }>
%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<int, std::pair<const int, std::function<void (tvm::graph::internal::AbstractNode &)>>, std::_Select1st<std::pair<const int, std::function<void (tvm::graph::internal::AbstractNode &)>>>, std::less<int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, std::pair<const int, std::function<void (tvm::graph::internal::AbstractNode &)>>, std::_Select1st<std::pair<const int, std::function<void (tvm::graph::internal::AbstractNode &)>>>, std::less<int>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"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.24" = type { %"class.std::_Rb_tree.25" }
%"class.std::_Rb_tree.25" = type { %"struct.std::_Rb_tree<int, std::pair<const int, std::vector<int>>, std::_Select1st<std::pair<const int, std::vector<int>>>, std::less<int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, std::pair<const int, std::vector<int>>, std::_Select1st<std::pair<const int, std::vector<int>>>, std::less<int>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"class.std::map.29" = type { %"class.std::_Rb_tree.30" }
%"class.std::_Rb_tree.30" = type { %"struct.std::_Rb_tree<int, std::pair<const int, std::map<tvm::graph::abstract::Outputs *, std::set<int>>>, std::_Select1st<std::pair<const int, std::map<tvm::graph::abstract::Outputs *, std::set<int>>>>, std::less<int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, std::pair<const int, std::map<tvm::graph::abstract::Outputs *, std::set<int>>>, std::_Select1st<std::pair<const int, std::map<tvm::graph::abstract::Outputs *, std::set<int>>>>, std::less<int>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"class.std::map.34" = type { %"class.std::_Rb_tree.35" }
%"class.std::_Rb_tree.35" = type { %"struct.std::_Rb_tree<int, std::pair<const int, std::pair<tvm::graph::abstract::Outputs *, int>>, std::_Select1st<std::pair<const int, std::pair<tvm::graph::abstract::Outputs *, int>>>, std::less<int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, std::pair<const int, std::pair<tvm::graph::abstract::Outputs *, int>>, std::_Select1st<std::pair<const int, std::pair<tvm::graph::abstract::Outputs *, int>>>, std::less<int>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%struct.DisabledOutputDependency = type { %"class.tvm::graph::abstract::Node.39" }
%"class.tvm::graph::abstract::Node.39" = type { %"class.tvm::graph::internal::AbstractNode" }
%struct.DisabledInternalDependency = type { %"class.tvm::graph::abstract::Node.40" }
%"class.tvm::graph::abstract::Node.40" = type { %"class.tvm::graph::internal::AbstractNode" }
%struct.DisabledUpdateInputDependency = type { %"class.tvm::graph::abstract::Node.41" }
%"class.tvm::graph::abstract::Node.41" = type { %"class.tvm::graph::internal::AbstractNode" }
%"class.std::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%struct.DisabledOutputInputDependency = type { %"class.tvm::graph::abstract::Node.42" }
%"class.tvm::graph::abstract::Node.42" = type { %"class.tvm::graph::internal::AbstractNode" }

@_ZTISt13runtime_error = external constant ptr
@_ZTI10FailedTest = external dso_local constant { ptr, ptr }, align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [45 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [52 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca %struct.RegisterDisabledUpdate, align 8
  %2 = alloca %struct.DisabledOutputDependency, align 8
  %3 = alloca %struct.DisabledInternalDependency, align 8
  %4 = alloca %struct.DisabledUpdateInputDependency, align 8
  %5 = alloca %"class.std::shared_ptr", align 8
  %6 = alloca %struct.DisabledOutputInputDependency, align 8
  %7 = alloca %"class.std::shared_ptr", align 8
  call void @llvm.lifetime.start.p0(i64 376, ptr nonnull %1) #7
  invoke void @_ZN22RegisterDisabledUpdateC2Ev(ptr noundef nonnull align 8 dereferenceable(376) %1)
          to label %8 unwind label %10

8:                                                ; preds = %0
  %9 = call ptr @__cxa_allocate_exception(i64 1) #7
  invoke void @__cxa_throw(ptr %9, ptr nonnull @_ZTI10FailedTest, ptr null) #8
          to label %129 unwind label %12

10:                                               ; preds = %0
  %11 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt13runtime_error
  br label %14

12:                                               ; preds = %8
  %13 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt13runtime_error
  call void @_ZN3tvm5graph8internal12AbstractNodeD2Ev(ptr noundef nonnull align 8 dereferenceable(376) %1) #7
  br label %14

14:                                               ; preds = %12, %10
  %.pn = phi { ptr, i32 } [ %13, %12 ], [ %11, %10 ]
  %.016 = extractvalue { ptr, i32 } %.pn, 1
  call void @llvm.lifetime.end.p0(i64 376, ptr nonnull %1) #7
  %15 = call i32 @llvm.eh.typeid.for.p0(ptr nonnull @_ZTISt13runtime_error) #7
  %16 = icmp eq i32 %.016, %15
  br i1 %16, label %17, label %125

17:                                               ; preds = %14
  %.0 = extractvalue { ptr, i32 } %.pn, 0
  %18 = call ptr @__cxa_begin_catch(ptr %.0) #7
  %19 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str)
          to label %20 unwind label %31

20:                                               ; preds = %17
  %21 = load ptr, ptr %18, align 8, !tbaa !5
  %22 = getelementptr inbounds i8, ptr %21, i64 16
  %23 = load ptr, ptr %22, align 8
  %24 = call noundef ptr %23(ptr noundef nonnull align 8 dereferenceable(16) %18) #7
  %25 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef %24)
          to label %26 unwind label %31

26:                                               ; preds = %20
  %27 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %25, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %28 unwind label %31

28:                                               ; preds = %26
  call void @__cxa_end_catch()
  call void @llvm.lifetime.start.p0(i64 376, ptr nonnull %2) #7
  invoke void @_ZN24DisabledOutputDependencyC2Ev(ptr noundef nonnull align 8 dereferenceable(376) %2)
          to label %29 unwind label %33

29:                                               ; preds = %28
  %30 = call ptr @__cxa_allocate_exception(i64 1) #7
  invoke void @__cxa_throw(ptr %30, ptr nonnull @_ZTI10FailedTest, ptr null) #8
          to label %129 unwind label %35

31:                                               ; preds = %26, %20, %17
  %32 = landingpad { ptr, i32 }
          cleanup
  invoke void @__cxa_end_catch()
          to label %125 unwind label %126

33:                                               ; preds = %28
  %34 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt13runtime_error
  br label %37

35:                                               ; preds = %29
  %36 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt13runtime_error
  call void @_ZN3tvm5graph8internal12AbstractNodeD2Ev(ptr noundef nonnull align 8 dereferenceable(376) %2) #7
  br label %37

37:                                               ; preds = %35, %33
  %.pn24 = phi { ptr, i32 } [ %36, %35 ], [ %34, %33 ]
  %.117 = extractvalue { ptr, i32 } %.pn24, 1
  call void @llvm.lifetime.end.p0(i64 376, ptr nonnull %2) #7
  %38 = icmp eq i32 %.117, %.016
  br i1 %38, label %39, label %125

39:                                               ; preds = %37
  %.1 = extractvalue { ptr, i32 } %.pn24, 0
  %40 = call ptr @__cxa_begin_catch(ptr %.1) #7
  %41 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.1)
          to label %42 unwind label %53

42:                                               ; preds = %39
  %43 = load ptr, ptr %40, align 8, !tbaa !5
  %44 = getelementptr inbounds i8, ptr %43, i64 16
  %45 = load ptr, ptr %44, align 8
  %46 = call noundef ptr %45(ptr noundef nonnull align 8 dereferenceable(16) %40) #7
  %47 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %41, ptr noundef %46)
          to label %48 unwind label %53

48:                                               ; preds = %42
  %49 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %47, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %50 unwind label %53

50:                                               ; preds = %48
  call void @__cxa_end_catch()
  call void @llvm.lifetime.start.p0(i64 376, ptr nonnull %3) #7
  invoke void @_ZN26DisabledInternalDependencyC2Ev(ptr noundef nonnull align 8 dereferenceable(376) %3)
          to label %51 unwind label %55

51:                                               ; preds = %50
  %52 = call ptr @__cxa_allocate_exception(i64 1) #7
  invoke void @__cxa_throw(ptr %52, ptr nonnull @_ZTI10FailedTest, ptr null) #8
          to label %129 unwind label %57

53:                                               ; preds = %48, %42, %39
  %54 = landingpad { ptr, i32 }
          cleanup
  invoke void @__cxa_end_catch()
          to label %125 unwind label %126

55:                                               ; preds = %50
  %56 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt13runtime_error
  br label %59

57:                                               ; preds = %51
  %58 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt13runtime_error
  call void @_ZN3tvm5graph8internal12AbstractNodeD2Ev(ptr noundef nonnull align 8 dereferenceable(376) %3) #7
  br label %59

59:                                               ; preds = %57, %55
  %.pn26 = phi { ptr, i32 } [ %58, %57 ], [ %56, %55 ]
  %.218 = extractvalue { ptr, i32 } %.pn26, 1
  call void @llvm.lifetime.end.p0(i64 376, ptr nonnull %3) #7
  %60 = icmp eq i32 %.218, %.016
  br i1 %60, label %61, label %125

61:                                               ; preds = %59
  %.2 = extractvalue { ptr, i32 } %.pn26, 0
  %62 = call ptr @__cxa_begin_catch(ptr %.2) #7
  %63 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.2)
          to label %64 unwind label %76

64:                                               ; preds = %61
  %65 = load ptr, ptr %62, align 8, !tbaa !5
  %66 = getelementptr inbounds i8, ptr %65, i64 16
  %67 = load ptr, ptr %66, align 8
  %68 = call noundef ptr %67(ptr noundef nonnull align 8 dereferenceable(16) %62) #7
  %69 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %63, ptr noundef %68)
          to label %70 unwind label %76

70:                                               ; preds = %64
  %71 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %69, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %72 unwind label %76

72:                                               ; preds = %70
  call void @__cxa_end_catch()
  call void @llvm.lifetime.start.p0(i64 376, ptr nonnull %4) #7
  invoke void @_ZSt11make_sharedI14DisabledOutputJEESt10shared_ptrINSt9enable_ifIXntsr8is_arrayIT_EE5valueES3_E4typeEEDpOT0_(ptr dead_on_unwind nonnull writable sret(%"class.std::shared_ptr") align 8 %5)
          to label %73 unwind label %78

73:                                               ; preds = %72
  invoke void @_ZN29DisabledUpdateInputDependencyC2ESt10shared_ptrI14DisabledOutputE(ptr noundef nonnull align 8 dereferenceable(376) %4, ptr noundef nonnull %5)
          to label %74 unwind label %80

74:                                               ; preds = %73
  call void @_ZNSt12__shared_ptrI14DisabledOutputLN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #7
  %75 = call ptr @__cxa_allocate_exception(i64 1) #7
  invoke void @__cxa_throw(ptr %75, ptr nonnull @_ZTI10FailedTest, ptr null) #8
          to label %129 unwind label %82

76:                                               ; preds = %70, %64, %61
  %77 = landingpad { ptr, i32 }
          cleanup
  invoke void @__cxa_end_catch()
          to label %125 unwind label %126

78:                                               ; preds = %72
  %79 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt13runtime_error
  br label %84

80:                                               ; preds = %73
  %81 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt13runtime_error
  call void @_ZNSt12__shared_ptrI14DisabledOutputLN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #7
  br label %84

82:                                               ; preds = %74
  %83 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt13runtime_error
  call void @_ZN3tvm5graph8internal12AbstractNodeD2Ev(ptr noundef nonnull align 8 dereferenceable(376) %4) #7
  br label %84

84:                                               ; preds = %82, %80, %78
  %.pn28 = phi { ptr, i32 } [ %83, %82 ], [ %81, %80 ], [ %79, %78 ]
  %.319 = extractvalue { ptr, i32 } %.pn28, 1
  call void @llvm.lifetime.end.p0(i64 376, ptr nonnull %4) #7
  %85 = icmp eq i32 %.319, %.016
  br i1 %85, label %86, label %125

86:                                               ; preds = %84
  %.3 = extractvalue { ptr, i32 } %.pn28, 0
  %87 = call ptr @__cxa_begin_catch(ptr %.3) #7
  %88 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.3)
          to label %89 unwind label %101

89:                                               ; preds = %86
  %90 = load ptr, ptr %87, align 8, !tbaa !5
  %91 = getelementptr inbounds i8, ptr %90, i64 16
  %92 = load ptr, ptr %91, align 8
  %93 = call noundef ptr %92(ptr noundef nonnull align 8 dereferenceable(16) %87) #7
  %94 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %88, ptr noundef %93)
          to label %95 unwind label %101

95:                                               ; preds = %89
  %96 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %94, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %97 unwind label %101

97:                                               ; preds = %95
  call void @__cxa_end_catch()
  call void @llvm.lifetime.start.p0(i64 376, ptr nonnull %6) #7
  invoke void @_ZSt11make_sharedI14DisabledOutputJEESt10shared_ptrINSt9enable_ifIXntsr8is_arrayIT_EE5valueES3_E4typeEEDpOT0_(ptr dead_on_unwind nonnull writable sret(%"class.std::shared_ptr") align 8 %7)
          to label %98 unwind label %103

98:                                               ; preds = %97
  invoke void @_ZN29DisabledOutputInputDependencyC2ESt10shared_ptrI14DisabledOutputE(ptr noundef nonnull align 8 dereferenceable(376) %6, ptr noundef nonnull %7)
          to label %99 unwind label %105

99:                                               ; preds = %98
  call void @_ZNSt12__shared_ptrI14DisabledOutputLN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %7) #7
  %100 = call ptr @__cxa_allocate_exception(i64 1) #7
  invoke void @__cxa_throw(ptr %100, ptr nonnull @_ZTI10FailedTest, ptr null) #8
          to label %129 unwind label %107

101:                                              ; preds = %95, %89, %86
  %102 = landingpad { ptr, i32 }
          cleanup
  invoke void @__cxa_end_catch()
          to label %125 unwind label %126

103:                                              ; preds = %97
  %104 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt13runtime_error
  br label %109

105:                                              ; preds = %98
  %106 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt13runtime_error
  call void @_ZNSt12__shared_ptrI14DisabledOutputLN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %7) #7
  br label %109

107:                                              ; preds = %99
  %108 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt13runtime_error
  call void @_ZN3tvm5graph8internal12AbstractNodeD2Ev(ptr noundef nonnull align 8 dereferenceable(376) %6) #7
  br label %109

109:                                              ; preds = %107, %105, %103
  %.pn30 = phi { ptr, i32 } [ %108, %107 ], [ %106, %105 ], [ %104, %103 ]
  %.420 = extractvalue { ptr, i32 } %.pn30, 1
  call void @llvm.lifetime.end.p0(i64 376, ptr nonnull %6) #7
  %110 = icmp eq i32 %.420, %.016
  br i1 %110, label %111, label %125

111:                                              ; preds = %109
  %.4 = extractvalue { ptr, i32 } %.pn30, 0
  %112 = call ptr @__cxa_begin_catch(ptr %.4) #7
  %113 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.4)
          to label %114 unwind label %123

114:                                              ; preds = %111
  %115 = load ptr, ptr %112, align 8, !tbaa !5
  %116 = getelementptr inbounds i8, ptr %115, i64 16
  %117 = load ptr, ptr %116, align 8
  %118 = call noundef ptr %117(ptr noundef nonnull align 8 dereferenceable(16) %112) #7
  %119 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %113, ptr noundef %118)
          to label %120 unwind label %123

120:                                              ; preds = %114
  %121 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %119, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %122 unwind label %123

122:                                              ; preds = %120
  call void @__cxa_end_catch()
  ret i32 0

123:                                              ; preds = %120, %114, %111
  %124 = landingpad { ptr, i32 }
          cleanup
  invoke void @__cxa_end_catch()
          to label %125 unwind label %126

125:                                              ; preds = %123, %101, %76, %53, %31, %109, %84, %59, %37, %14
  %.merged = phi { ptr, i32 } [ %.pn30, %109 ], [ %.pn28, %84 ], [ %.pn26, %59 ], [ %.pn24, %37 ], [ %.pn, %14 ], [ %32, %31 ], [ %54, %53 ], [ %77, %76 ], [ %102, %101 ], [ %124, %123 ]
  resume { ptr, i32 } %.merged

126:                                              ; preds = %123, %101, %76, %53, %31
  %127 = landingpad { ptr, i32 }
          catch ptr null
  %128 = extractvalue { ptr, i32 } %127, 0
  call void @__clang_call_terminate(ptr %128) #9
  unreachable

129:                                              ; preds = %99, %74, %51, %29, %8
  unreachable
}

; 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 void @_ZN22RegisterDisabledUpdateC2Ev(ptr noundef nonnull align 8 dereferenceable(376)) unnamed_addr #2 align 2

declare i32 @__gxx_personality_v0(...)

declare ptr @__cxa_allocate_exception(i64) local_unnamed_addr

declare void @__cxa_throw(ptr, ptr, ptr) local_unnamed_addr

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

; Function Attrs: nofree nosync nounwind memory(none)
declare i32 @llvm.eh.typeid.for.p0(ptr) #3

declare ptr @__cxa_begin_catch(ptr) local_unnamed_addr

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #4

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #4

declare void @__cxa_end_catch() local_unnamed_addr

; Function Attrs: noinline noreturn nounwind uwtable
declare hidden void @__clang_call_terminate(ptr noundef) local_unnamed_addr #5

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt11make_sharedI14DisabledOutputJEESt10shared_ptrINSt9enable_ifIXntsr8is_arrayIT_EE5valueES3_E4typeEEDpOT0_(ptr dead_on_unwind noalias writable sret(%"class.std::shared_ptr") align 8) local_unnamed_addr #4

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

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

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

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

attributes #0 = { mustprogress norecurse 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 = { 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 = { nofree nosync nounwind memory(none) }
attributes #4 = { 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 #5 = { noinline noreturn nounwind uwtable "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 = { 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 #7 = { nounwind }
attributes #8 = { noreturn }
attributes #9 = { noreturn 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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,SROAPass,SimplifyCFGPass