; LLVM IR from NervanaSystems/ngraph :: src/ngraph/node.ll (ZNK6ngraph4Node9get_usersEb)

; 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::shared_ptr.74" = type { %"class.std::__shared_ptr.75" }
%"class.std::__shared_ptr.75" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"class.std::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = type { %"struct.std::_Vector_base<std::shared_ptr<ngraph::Node>, std::allocator<std::shared_ptr<ngraph::Node>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::shared_ptr<ngraph::Node>, std::allocator<std::shared_ptr<ngraph::Node>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::shared_ptr<ngraph::Node>, std::allocator<std::shared_ptr<ngraph::Node>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::shared_ptr<ngraph::Node>, std::allocator<std::shared_ptr<ngraph::Node>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.139" = type { %"struct.std::_Vector_base.140" }
%"struct.std::_Vector_base.140" = type { %"struct.std::_Vector_base<ngraph::Output<const Node>, std::allocator<ngraph::Output<const Node>>>::_Vector_impl" }
%"struct.std::_Vector_base<ngraph::Output<const Node>, std::allocator<ngraph::Output<const Node>>>::_Vector_impl" = type { %"struct.std::_Vector_base<ngraph::Output<const Node>, std::allocator<ngraph::Output<const Node>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<ngraph::Output<const Node>, std::allocator<ngraph::Output<const Node>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator.144" = type { ptr }
%"class.ngraph::Output" = type { %"class.std::shared_ptr.85", i64 }
%"class.std::shared_ptr.85" = type { %"class.std::__shared_ptr.86" }
%"class.std::__shared_ptr.86" = type { ptr, %"class.std::__shared_count" }
%"class.std::set.128" = type { %"class.std::_Rb_tree.129" }
%"class.std::_Rb_tree.129" = type { %"struct.std::_Rb_tree<ngraph::Input<Node>, ngraph::Input<Node>, std::_Identity<ngraph::Input<Node>>, std::less<ngraph::Input<Node>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<ngraph::Input<Node>, ngraph::Input<Node>, std::_Identity<ngraph::Input<Node>>, std::less<ngraph::Input<Node>>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"struct.std::_Rb_tree_const_iterator.137" = type { ptr }
%"class.ngraph::Input.145" = type { ptr, i64 }

declare i32 @__gxx_personality_v0(...)

; 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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt23enable_shared_from_thisIN6ngraph4NodeEE16shared_from_thisEv(ptr dead_on_unwind noalias writable sret(%"class.std::shared_ptr.74") align 8, ptr noundef nonnull align 8 dereferenceable(16)) #2 align 2

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK6ngraph4Node9get_usersEb(ptr dead_on_unwind noalias writable sret(%"class.std::vector.5") align 8 %0, ptr noundef nonnull align 8 dereferenceable(680) %1, i1 noundef zeroext %2) #2 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i8, align 1
  %7 = alloca i1, align 1
  %8 = alloca ptr, align 8
  %9 = alloca %"class.std::vector.139", align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca %"class.__gnu_cxx::__normal_iterator.144", align 8
  %13 = alloca %"class.__gnu_cxx::__normal_iterator.144", align 8
  %14 = alloca i32, align 4
  %15 = alloca %"class.ngraph::Output", align 8
  %16 = alloca ptr, align 8
  %17 = alloca %"class.std::set.128", align 8
  %18 = alloca %"struct.std::_Rb_tree_const_iterator.137", align 8
  %19 = alloca %"struct.std::_Rb_tree_const_iterator.137", align 8
  %20 = alloca %"class.ngraph::Input.145", align 8
  %21 = alloca ptr, align 8
  %22 = alloca %"class.std::shared_ptr.74", align 8
  store ptr %0, ptr %4, align 8
  store ptr %1, ptr %5, align 8, !tbaa !5
  %23 = zext i1 %2 to i8
  store i8 %23, ptr %6, align 1, !tbaa !9
  %24 = load ptr, ptr %5, align 8
  store i1 false, ptr %7, align 1
  call void @_ZNSt6vectorISt10shared_ptrIN6ngraph4NodeEESaIS3_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr %9) #6
  invoke void @_ZNK6ngraph4Node7outputsEv(ptr dead_on_unwind writable sret(%"class.std::vector.139") align 8 %9, ptr noundef nonnull align 8 dereferenceable(680) %24)
          to label %25 unwind label %35

25:                                               ; preds = %3
  store ptr %9, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %26 = load ptr, ptr %8, align 8, !tbaa !5
  %27 = call ptr @_ZNSt6vectorIN6ngraph6OutputIKNS0_4NodeEEESaIS4_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %26) #6
  %28 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.144", ptr %12, i32 0, i32 0
  store ptr %27, ptr %28, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  %29 = load ptr, ptr %8, align 8, !tbaa !5
  %30 = call ptr @_ZNSt6vectorIN6ngraph6OutputIKNS0_4NodeEEESaIS4_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %29) #6
  %31 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.144", ptr %13, i32 0, i32 0
  store ptr %30, ptr %31, align 8
  br label %32

32:                                               ; preds = %89, %25
  %33 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN6ngraph6OutputIKNS1_4NodeEEESt6vectorIS5_SaIS5_EEEEbRKNS_17__normal_iteratorIT_T0_EESF_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %13) #6
  br i1 %33, label %39, label %34

34:                                               ; preds = %32
  store i32 2, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @_ZNSt6vectorIN6ngraph6OutputIKNS0_4NodeEEESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  br label %92

35:                                               ; preds = %3
  %36 = landingpad { ptr, i32 }
          cleanup
  %37 = extractvalue { ptr, i32 } %36, 0
  store ptr %37, ptr %10, align 8
  %38 = extractvalue { ptr, i32 } %36, 1
  store i32 %38, ptr %11, align 4
  br label %91

39:                                               ; preds = %32
  call void @llvm.lifetime.start.p0(i64 24, ptr %15) #6
  %40 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN6ngraph6OutputIKNS1_4NodeEEESt6vectorIS5_SaIS5_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #6
  call void @_ZN6ngraph6OutputIKNS_4NodeEEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %15, ptr noundef nonnull align 8 dereferenceable(24) %40) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.start.p0(i64 48, ptr %17) #6
  invoke void @_ZNK6ngraph6OutputIKNS_4NodeEE17get_target_inputsEv(ptr dead_on_unwind writable sret(%"class.std::set.128") align 8 %17, ptr noundef nonnull align 8 dereferenceable(24) %15)
          to label %41 unwind label %51

41:                                               ; preds = %39
  store ptr %17, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  %42 = load ptr, ptr %16, align 8, !tbaa !5
  %43 = call ptr @_ZNKSt3setIN6ngraph5InputINS0_4NodeEEESt4lessIS3_ESaIS3_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %42) #6
  %44 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator.137", ptr %18, i32 0, i32 0
  store ptr %43, ptr %44, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #6
  %45 = load ptr, ptr %16, align 8, !tbaa !5
  %46 = call ptr @_ZNKSt3setIN6ngraph5InputINS0_4NodeEEESt4lessIS3_ESaIS3_EE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %45) #6
  %47 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator.137", ptr %19, i32 0, i32 0
  store ptr %46, ptr %47, align 8
  br label %48

48:                                               ; preds = %84, %41
  %49 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorIN6ngraph5InputINS0_4NodeEEEES6_(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull align 8 dereferenceable(8) %19) #6
  br i1 %49, label %55, label %50

50:                                               ; preds = %48
  store i32 4, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @_ZNSt3setIN6ngraph5InputINS0_4NodeEEESt4lessIS3_ESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %17) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  br label %88

51:                                               ; preds = %39
  %52 = landingpad { ptr, i32 }
          cleanup
  %53 = extractvalue { ptr, i32 } %52, 0
  store ptr %53, ptr %10, align 8
  %54 = extractvalue { ptr, i32 } %52, 1
  store i32 %54, ptr %11, align 4
  br label %87

55:                                               ; preds = %48
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #6
  %56 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt23_Rb_tree_const_iteratorIN6ngraph5InputINS0_4NodeEEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %18) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %20, ptr align 8 %56, i64 16, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #6
  %57 = invoke noundef ptr @_ZNK6ngraph5InputINS_4NodeEE8get_nodeEv(ptr noundef nonnull align 8 dereferenceable(16) %20)
          to label %58 unwind label %70

58:                                               ; preds = %55
  store ptr %57, ptr %21, align 8, !tbaa !5
  %59 = load i8, ptr %6, align 1, !tbaa !9, !range !14, !noundef !15
  %60 = trunc i8 %59 to i1
  br i1 %60, label %61, label %65

61:                                               ; preds = %58
  %62 = load ptr, ptr %21, align 8, !tbaa !5
  %63 = invoke noundef zeroext i1 @_ZN6ngraph7is_usedEPNS_4NodeE(ptr noundef %62)
          to label %64 unwind label %70

64:                                               ; preds = %61
  br i1 %63, label %65, label %83

65:                                               ; preds = %64, %58
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #6
  %66 = load ptr, ptr %21, align 8, !tbaa !5
  %67 = getelementptr inbounds i8, ptr %66, i64 8
  invoke void @_ZNSt23enable_shared_from_thisIN6ngraph4NodeEE16shared_from_thisEv(ptr dead_on_unwind writable sret(%"class.std::shared_ptr.74") align 8 %22, ptr noundef nonnull align 8 dereferenceable(16) %67)
          to label %68 unwind label %74

68:                                               ; preds = %65
  invoke void @_ZNSt6vectorISt10shared_ptrIN6ngraph4NodeEESaIS3_EE9push_backEOS3_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(16) %22)
          to label %69 unwind label %78

69:                                               ; preds = %68
  call void @_ZNSt12__shared_ptrIN6ngraph4NodeELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %22) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #6
  br label %83

70:                                               ; preds = %61, %55
  %71 = landingpad { ptr, i32 }
          cleanup
  %72 = extractvalue { ptr, i32 } %71, 0
  store ptr %72, ptr %10, align 8
  %73 = extractvalue { ptr, i32 } %71, 1
  store i32 %73, ptr %11, align 4
  br label %86

74:                                               ; preds = %65
  %75 = landingpad { ptr, i32 }
          cleanup
  %76 = extractvalue { ptr, i32 } %75, 0
  store ptr %76, ptr %10, align 8
  %77 = extractvalue { ptr, i32 } %75, 1
  store i32 %77, ptr %11, align 4
  br label %82

78:                                               ; preds = %68
  %79 = landingpad { ptr, i32 }
          cleanup
  %80 = extractvalue { ptr, i32 } %79, 0
  store ptr %80, ptr %10, align 8
  %81 = extractvalue { ptr, i32 } %79, 1
  store i32 %81, ptr %11, align 4
  call void @_ZNSt12__shared_ptrIN6ngraph4NodeELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %22) #6
  br label %82

82:                                               ; preds = %78, %74
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #6
  br label %86

83:                                               ; preds = %69, %64
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #6
  br label %84

84:                                               ; preds = %83
  %85 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt23_Rb_tree_const_iteratorIN6ngraph5InputINS0_4NodeEEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %18) #6
  br label %48

86:                                               ; preds = %82, %70
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @_ZNSt3setIN6ngraph5InputINS0_4NodeEEESt4lessIS3_ESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %17) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr %17) #6
  br label %87

87:                                               ; preds = %86, %51
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  call void @_ZN6ngraph6OutputIKNS_4NodeEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @_ZNSt6vectorIN6ngraph6OutputIKNS0_4NodeEEESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %9) #6
  br label %91

88:                                               ; preds = %50
  call void @_ZN6ngraph6OutputIKNS_4NodeEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #6
  br label %89

89:                                               ; preds = %88
  %90 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPN6ngraph6OutputIKNS1_4NodeEEESt6vectorIS5_SaIS5_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #6
  br label %32

91:                                               ; preds = %87, %35
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  call void @_ZNSt6vectorISt10shared_ptrIN6ngraph4NodeEESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  br label %96

92:                                               ; preds = %34
  store i1 true, ptr %7, align 1
  store i32 1, ptr %14, align 4
  %93 = load i1, ptr %7, align 1
  br i1 %93, label %95, label %94

94:                                               ; preds = %92
  call void @_ZNSt6vectorISt10shared_ptrIN6ngraph4NodeEESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  br label %95

95:                                               ; preds = %94, %92
  ret void

96:                                               ; preds = %91
  %97 = load ptr, ptr %10, align 8
  %98 = load i32, ptr %11, align 4
  %99 = insertvalue { ptr, i32 } poison, ptr %97, 0
  %100 = insertvalue { ptr, i32 } %99, i32 %98, 1
  resume { ptr, i32 } %100
}

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

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

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

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

declare void @_ZNK6ngraph6OutputIKNS_4NodeEE17get_target_inputsEv(ptr dead_on_unwind writable sret(%"class.std::set.128") align 8, ptr noundef nonnull align 8 dereferenceable(24)) #4

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

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

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

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

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

declare noundef ptr @_ZNK6ngraph5InputINS_4NodeEE8get_nodeEv(ptr noundef nonnull align 8 dereferenceable(16)) #4

declare noundef zeroext i1 @_ZN6ngraph7is_usedEPNS_4NodeE(ptr noundef) #4

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt12__shared_ptrIN6ngraph4NodeELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16)) 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 = { "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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { nounwind }

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

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


; 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::shared_ptr.74" = type { %"class.std::__shared_ptr.75" }
%"class.std::__shared_ptr.75" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"class.std::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = type { %"struct.std::_Vector_base<std::shared_ptr<ngraph::Node>, std::allocator<std::shared_ptr<ngraph::Node>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::shared_ptr<ngraph::Node>, std::allocator<std::shared_ptr<ngraph::Node>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::shared_ptr<ngraph::Node>, std::allocator<std::shared_ptr<ngraph::Node>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::shared_ptr<ngraph::Node>, std::allocator<std::shared_ptr<ngraph::Node>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.139" = type { %"struct.std::_Vector_base.140" }
%"struct.std::_Vector_base.140" = type { %"struct.std::_Vector_base<ngraph::Output<const Node>, std::allocator<ngraph::Output<const Node>>>::_Vector_impl" }
%"struct.std::_Vector_base<ngraph::Output<const Node>, std::allocator<ngraph::Output<const Node>>>::_Vector_impl" = type { %"struct.std::_Vector_base<ngraph::Output<const Node>, std::allocator<ngraph::Output<const Node>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<ngraph::Output<const Node>, std::allocator<ngraph::Output<const Node>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator.144" = type { ptr }
%"class.ngraph::Output" = type { %"class.std::shared_ptr.85", i64 }
%"class.std::shared_ptr.85" = type { %"class.std::__shared_ptr.86" }
%"class.std::__shared_ptr.86" = type { ptr, %"class.std::__shared_count" }
%"class.std::set.128" = type { %"class.std::_Rb_tree.129" }
%"class.std::_Rb_tree.129" = type { %"struct.std::_Rb_tree<ngraph::Input<Node>, ngraph::Input<Node>, std::_Identity<ngraph::Input<Node>>, std::less<ngraph::Input<Node>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<ngraph::Input<Node>, ngraph::Input<Node>, std::_Identity<ngraph::Input<Node>>, std::less<ngraph::Input<Node>>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"struct.std::_Rb_tree_const_iterator.137" = type { ptr }
%"class.ngraph::Input.145" = type { ptr, i64 }

declare i32 @__gxx_personality_v0(...)

; 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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt23enable_shared_from_thisIN6ngraph4NodeEE16shared_from_thisEv(ptr dead_on_unwind noalias writable sret(%"class.std::shared_ptr.74") align 8, ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #2 align 2

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK6ngraph4Node9get_usersEb(ptr dead_on_unwind noalias nonnull writable sret(%"class.std::vector.5") align 8 %0, ptr noundef nonnull align 8 dereferenceable(680) %1, i1 noundef zeroext %2) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.std::vector.139", align 8
  %5 = alloca %"class.__gnu_cxx::__normal_iterator.144", align 8
  %6 = alloca %"class.__gnu_cxx::__normal_iterator.144", align 8
  %7 = alloca %"class.ngraph::Output", align 8
  %8 = alloca %"class.std::set.128", align 8
  %9 = alloca %"struct.std::_Rb_tree_const_iterator.137", align 8
  %10 = alloca %"struct.std::_Rb_tree_const_iterator.137", align 8
  %11 = alloca %"class.ngraph::Input.145", align 8
  %12 = alloca %"class.std::shared_ptr.74", align 8
  tail call void @_ZNSt6vectorISt10shared_ptrIN6ngraph4NodeEESaIS3_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #6
  invoke void @_ZNK6ngraph4Node7outputsEv(ptr dead_on_unwind nonnull writable sret(%"class.std::vector.139") align 8 %4, ptr noundef nonnull align 8 dereferenceable(680) %1)
          to label %13 unwind label %40

13:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #6
  %14 = call ptr @_ZNSt6vectorIN6ngraph6OutputIKNS0_4NodeEEESaIS4_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
  store ptr %14, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #6
  %15 = call ptr @_ZNSt6vectorIN6ngraph6OutputIKNS0_4NodeEEESaIS4_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
  store ptr %15, ptr %6, align 8
  %16 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN6ngraph6OutputIKNS1_4NodeEEESt6vectorIS5_SaIS5_EEEEbRKNS_17__normal_iteratorIT_T0_EESF_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6) #6
  br i1 %16, label %.lr.ph25, label %._crit_edge26

.lr.ph25:                                         ; preds = %13
  br i1 %2, label %.lr.ph25.split.us, label %.lr.ph25.split

.lr.ph25.split.us:                                ; preds = %.lr.ph25, %._crit_edge.split.us.us
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #6
  %17 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN6ngraph6OutputIKNS1_4NodeEEESt6vectorIS5_SaIS5_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #6
  call void @_ZN6ngraph6OutputIKNS_4NodeEEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 8 dereferenceable(24) %17) #6
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %8) #6
  invoke void @_ZNK6ngraph6OutputIKNS_4NodeEE17get_target_inputsEv(ptr dead_on_unwind nonnull writable sret(%"class.std::set.128") align 8 %8, ptr noundef nonnull align 8 dereferenceable(24) %7)
          to label %18 unwind label %.split28.us

18:                                               ; preds = %.lr.ph25.split.us
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #6
  %19 = call ptr @_ZNKSt3setIN6ngraph5InputINS0_4NodeEEESt4lessIS3_ESaIS3_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %8) #6
  store ptr %19, ptr %9, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #6
  %20 = call ptr @_ZNKSt3setIN6ngraph5InputINS0_4NodeEEESt4lessIS3_ESaIS3_EE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %8) #6
  store ptr %20, ptr %10, align 8
  %21 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorIN6ngraph5InputINS0_4NodeEEEES6_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #6
  br i1 %21, label %.lr.ph.us, label %._crit_edge.split.us.us

._crit_edge.split.us.us:                          ; preds = %33, %18
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  call void @_ZNSt3setIN6ngraph5InputINS0_4NodeEEESt4lessIS3_ESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %8) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %8) #6
  call void @_ZN6ngraph6OutputIKNS_4NodeEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #6
  %22 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPN6ngraph6OutputIKNS1_4NodeEEESt6vectorIS5_SaIS5_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #6
  %23 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN6ngraph6OutputIKNS1_4NodeEEESt6vectorIS5_SaIS5_EEEEbRKNS_17__normal_iteratorIT_T0_EESF_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6) #6
  br i1 %23, label %.lr.ph25.split.us, label %._crit_edge26

.lr.ph.us:                                        ; preds = %18, %33
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #6
  %24 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt23_Rb_tree_const_iteratorIN6ngraph5InputINS0_4NodeEEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #6
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef nonnull align 8 dereferenceable(16) %24, i64 16, i1 false), !tbaa.struct !5
  %25 = invoke noundef ptr @_ZNK6ngraph5InputINS_4NodeEE8get_nodeEv(ptr noundef nonnull align 8 dereferenceable(16) %11)
          to label %26 unwind label %.split.us.split.us

26:                                               ; preds = %.lr.ph.us
  %27 = invoke noundef zeroext i1 @_ZN6ngraph7is_usedEPNS_4NodeE(ptr noundef %25)
          to label %28 unwind label %.split.us.split.us

28:                                               ; preds = %26
  br i1 %27, label %29, label %33

29:                                               ; preds = %28
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #6
  %30 = getelementptr inbounds i8, ptr %25, i64 8
  invoke void @_ZNSt23enable_shared_from_thisIN6ngraph4NodeEE16shared_from_thisEv(ptr dead_on_unwind nonnull writable sret(%"class.std::shared_ptr.74") align 8 %12, ptr noundef nonnull align 8 dereferenceable(16) %30)
          to label %31 unwind label %.split19.us.split.us

31:                                               ; preds = %29
  invoke void @_ZNSt6vectorISt10shared_ptrIN6ngraph4NodeEESaIS3_EE9push_backEOS3_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(16) %12)
          to label %32 unwind label %.split22.us.split.us

32:                                               ; preds = %31
  call void @_ZNSt12__shared_ptrIN6ngraph4NodeELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %12) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #6
  br label %33

33:                                               ; preds = %32, %28
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #6
  %34 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt23_Rb_tree_const_iteratorIN6ngraph5InputINS0_4NodeEEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #6
  %35 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorIN6ngraph5InputINS0_4NodeEEEES6_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #6
  br i1 %35, label %.lr.ph.us, label %._crit_edge.split.us.us

.split28.us:                                      ; preds = %.lr.ph25.split.us
  %36 = landingpad { ptr, i32 }
          cleanup
  br label %64

.split.us.split.us:                               ; preds = %26, %.lr.ph.us
  %37 = landingpad { ptr, i32 }
          cleanup
  br label %63

.split19.us.split.us:                             ; preds = %29
  %38 = landingpad { ptr, i32 }
          cleanup
  br label %62

.split22.us.split.us:                             ; preds = %31
  %39 = landingpad { ptr, i32 }
          cleanup
  br label %61

._crit_edge26:                                    ; preds = %._crit_edge.split, %._crit_edge.split.us.us, %13
  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 @_ZNSt6vectorIN6ngraph6OutputIKNS0_4NodeEEESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #6
  ret void

40:                                               ; preds = %3
  %41 = landingpad { ptr, i32 }
          cleanup
  br label %65

.lr.ph25.split:                                   ; preds = %.lr.ph25, %._crit_edge.split
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #6
  %42 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN6ngraph6OutputIKNS1_4NodeEEESt6vectorIS5_SaIS5_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #6
  call void @_ZN6ngraph6OutputIKNS_4NodeEEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 8 dereferenceable(24) %42) #6
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %8) #6
  invoke void @_ZNK6ngraph6OutputIKNS_4NodeEE17get_target_inputsEv(ptr dead_on_unwind nonnull writable sret(%"class.std::set.128") align 8 %8, ptr noundef nonnull align 8 dereferenceable(24) %7)
          to label %43 unwind label %.split28

43:                                               ; preds = %.lr.ph25.split
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #6
  %44 = call ptr @_ZNKSt3setIN6ngraph5InputINS0_4NodeEEESt4lessIS3_ESaIS3_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %8) #6
  store ptr %44, ptr %9, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #6
  %45 = call ptr @_ZNKSt3setIN6ngraph5InputINS0_4NodeEEESt4lessIS3_ESaIS3_EE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %8) #6
  store ptr %45, ptr %10, align 8
  %46 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorIN6ngraph5InputINS0_4NodeEEEES6_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #6
  br i1 %46, label %.lr.ph, label %._crit_edge.split

._crit_edge.split:                                ; preds = %55, %43
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  call void @_ZNSt3setIN6ngraph5InputINS0_4NodeEEESt4lessIS3_ESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %8) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %8) #6
  call void @_ZN6ngraph6OutputIKNS_4NodeEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #6
  %47 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPN6ngraph6OutputIKNS1_4NodeEEESt6vectorIS5_SaIS5_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #6
  %48 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN6ngraph6OutputIKNS1_4NodeEEESt6vectorIS5_SaIS5_EEEEbRKNS_17__normal_iteratorIT_T0_EESF_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6) #6
  br i1 %48, label %.lr.ph25.split, label %._crit_edge26

.split28:                                         ; preds = %.lr.ph25.split
  %49 = landingpad { ptr, i32 }
          cleanup
  br label %64

.lr.ph:                                           ; preds = %43, %55
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #6
  %50 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt23_Rb_tree_const_iteratorIN6ngraph5InputINS0_4NodeEEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #6
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef nonnull align 8 dereferenceable(16) %50, i64 16, i1 false), !tbaa.struct !5
  %51 = invoke noundef ptr @_ZNK6ngraph5InputINS_4NodeEE8get_nodeEv(ptr noundef nonnull align 8 dereferenceable(16) %11)
          to label %52 unwind label %.split

52:                                               ; preds = %.lr.ph
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #6
  %53 = getelementptr inbounds i8, ptr %51, i64 8
  invoke void @_ZNSt23enable_shared_from_thisIN6ngraph4NodeEE16shared_from_thisEv(ptr dead_on_unwind nonnull writable sret(%"class.std::shared_ptr.74") align 8 %12, ptr noundef nonnull align 8 dereferenceable(16) %53)
          to label %54 unwind label %.split19

54:                                               ; preds = %52
  invoke void @_ZNSt6vectorISt10shared_ptrIN6ngraph4NodeEESaIS3_EE9push_backEOS3_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(16) %12)
          to label %55 unwind label %.split22

55:                                               ; preds = %54
  call void @_ZNSt12__shared_ptrIN6ngraph4NodeELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %12) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #6
  %56 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt23_Rb_tree_const_iteratorIN6ngraph5InputINS0_4NodeEEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #6
  %57 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorIN6ngraph5InputINS0_4NodeEEEES6_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #6
  br i1 %57, label %.lr.ph, label %._crit_edge.split

.split:                                           ; preds = %.lr.ph
  %58 = landingpad { ptr, i32 }
          cleanup
  br label %63

.split19:                                         ; preds = %52
  %59 = landingpad { ptr, i32 }
          cleanup
  br label %62

.split22:                                         ; preds = %54
  %60 = landingpad { ptr, i32 }
          cleanup
  br label %61

61:                                               ; preds = %.split22.us.split.us, %.split22
  %.us-phi23 = phi { ptr, i32 } [ %60, %.split22 ], [ %39, %.split22.us.split.us ]
  call void @_ZNSt12__shared_ptrIN6ngraph4NodeELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %12) #6
  br label %62

62:                                               ; preds = %.split19, %.split19.us.split.us, %61
  %.pn = phi { ptr, i32 } [ %.us-phi23, %61 ], [ %59, %.split19 ], [ %38, %.split19.us.split.us ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #6
  br label %63

63:                                               ; preds = %.split, %.split.us.split.us, %62
  %.pn.pn = phi { ptr, i32 } [ %.pn, %62 ], [ %58, %.split ], [ %37, %.split.us.split.us ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  call void @_ZNSt3setIN6ngraph5InputINS0_4NodeEEESt4lessIS3_ESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %8) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %8) #6
  br label %64

64:                                               ; preds = %.split28, %.split28.us, %63
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %63 ], [ %49, %.split28 ], [ %36, %.split28.us ]
  call void @_ZN6ngraph6OutputIKNS_4NodeEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #6
  call void @llvm.lifetime.end.p0(i64 24, 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
  call void @_ZNSt6vectorIN6ngraph6OutputIKNS0_4NodeEEESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #6
  br label %65

65:                                               ; preds = %64, %40
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %64 ], [ %41, %40 ]
  call void @_ZNSt6vectorISt10shared_ptrIN6ngraph4NodeEESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  resume { ptr, i32 } %.pn.pn.pn.pn
}

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

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

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

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

declare void @_ZNK6ngraph6OutputIKNS_4NodeEE17get_target_inputsEv(ptr dead_on_unwind writable sret(%"class.std::set.128") align 8, ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #4

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

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

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

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

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

declare noundef ptr @_ZNK6ngraph5InputINS_4NodeEE8get_nodeEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #4

declare noundef zeroext i1 @_ZN6ngraph7is_usedEPNS_4NodeE(ptr noundef) local_unnamed_addr #4

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

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

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

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{i64 0, i64 8, !6, i64 8, i64 8, !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 = !{!"long", !8, i64 0}


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