; LLVM IR from NervanaSystems/ngraph :: src/ngraph/pass (graph_rewrite)

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

%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<ngraph::pass::GraphRewriteBase::MatchClosure, std::allocator<ngraph::pass::GraphRewriteBase::MatchClosure>>::_Vector_impl" }
%"struct.std::_Vector_base<ngraph::pass::GraphRewriteBase::MatchClosure, std::allocator<ngraph::pass::GraphRewriteBase::MatchClosure>>::_Vector_impl" = type { %"struct.std::_Vector_base<ngraph::pass::GraphRewriteBase::MatchClosure, std::allocator<ngraph::pass::GraphRewriteBase::MatchClosure>>::_Vector_impl_data" }
%"struct.std::_Vector_base<ngraph::pass::GraphRewriteBase::MatchClosure, std::allocator<ngraph::pass::GraphRewriteBase::MatchClosure>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.13" = type { %"struct.std::_Vector_base.14" }
%"struct.std::_Vector_base.14" = type { %"struct.std::_Vector_base<std::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.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.std::shared_ptr.18" = type { %"class.std::__shared_ptr.19" }
%"class.std::__shared_ptr.19" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"class.__gnu_cxx::__normal_iterator.90" = type { ptr }
%"class.ngraph::EnumMask" = type { i32 }
%"struct.ngraph::NullLogger" = type { i8 }
%"class.ngraph::pass::FunctionPass" = type { %"class.ngraph::pass::PassBase", %"class.std::shared_ptr" }
%"class.ngraph::pass::PassBase" = type { ptr, %"class.ngraph::EnumMask", ptr }
%"class.std::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"class.ngraph::pass::GraphRewriteBase" = type { %"class.ngraph::pass::FunctionPass", %"class.std::vector" }
%"class.ngraph::pass::GraphRewrite" = type <{ %"class.ngraph::pass::GraphRewriteBase", i8, [7 x i8] }>
%"struct.ngraph::pass::GraphRewriteBase::MatchClosure" = type <{ %"class.std::__cxx11::basic_string", %"class.std::function.91", %"class.ngraph::EnumMask", [4 x i8] }>
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::function.91" = type { %"class.std::_Function_base", ptr }
%"class.std::_Function_base" = type { %"union.std::_Any_data", ptr }
%"union.std::_Any_data" = type { %"union.std::_Nocopy_types" }
%"union.std::_Nocopy_types" = type { { i64, i64 } }

@_ZZN6ngraph4pass12GraphRewrite15run_on_functionESt10shared_ptrINS_8FunctionEEE21s_rerun_dynamic_check = external hidden global i8, align 1
@_ZGVZN6ngraph4pass12GraphRewrite15run_on_functionESt10shared_ptrINS_8FunctionEEE21s_rerun_dynamic_check = external hidden global i64, align 8
@.str = external hidden unnamed_addr constant [41 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [134 x i8], align 1

; 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 noundef zeroext i1 @_ZNK6ngraph8EnumMaskINS_4pass12PassPropertyEE6is_setERKS3_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #1 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN6ngraph4pass12GraphRewrite15run_on_functionESt10shared_ptrINS_8FunctionEE(ptr noundef nonnull align 8 dereferenceable(65) %0, ptr noundef %1) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i8, align 1
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca %"class.std::vector", align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i8, align 1
  %12 = alloca %"class.std::vector", align 8
  %13 = alloca ptr, align 8
  %14 = alloca %"class.std::vector.13", align 8
  %15 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %16 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %17 = alloca i32, align 4
  %18 = alloca %"class.std::shared_ptr.18", align 8
  %19 = alloca ptr, align 8
  %20 = alloca %"class.__gnu_cxx::__normal_iterator.90", align 8
  %21 = alloca %"class.__gnu_cxx::__normal_iterator.90", align 8
  %22 = alloca ptr, align 8
  %23 = alloca %"class.ngraph::EnumMask", align 4
  %24 = alloca i32, align 4
  %25 = alloca %"struct.ngraph::NullLogger", align 1
  %26 = alloca %"class.ngraph::EnumMask", align 4
  %27 = alloca i32, align 4
  %28 = alloca %"class.__gnu_cxx::__normal_iterator.90", align 8
  %29 = alloca %"class.__gnu_cxx::__normal_iterator.90", align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %30 = load ptr, ptr %3, align 8
  %31 = getelementptr inbounds %"class.ngraph::pass::FunctionPass", ptr %30, i32 0, i32 1
  %32 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt10shared_ptrIN6ngraph8FunctionEEaSERKS2_(ptr noundef nonnull align 8 dereferenceable(16) %31, ptr noundef nonnull align 8 dereferenceable(16) %1) #3
  call void @llvm.lifetime.start.p0(i64 1, ptr %5) #3
  store i8 0, ptr %5, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #3
  store i64 10, ptr %6, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #3
  store i64 10, ptr %7, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 24, ptr %8) #3
  %33 = getelementptr inbounds %"class.ngraph::pass::GraphRewriteBase", ptr %30, i32 0, i32 1
  call void @_ZNSt6vectorIN6ngraph4pass16GraphRewriteBase12MatchClosureESaIS3_EEC2ERKS5_(ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 8 dereferenceable(24) %33)
  %34 = load atomic i8, ptr @_ZGVZN6ngraph4pass12GraphRewrite15run_on_functionESt10shared_ptrINS_8FunctionEEE21s_rerun_dynamic_check acquire, align 8
  %35 = icmp eq i8 %34, 0
  br i1 %35, label %36, label %43, !prof !13

36:                                               ; preds = %2
  %37 = call i32 @__cxa_guard_acquire(ptr @_ZGVZN6ngraph4pass12GraphRewrite15run_on_functionESt10shared_ptrINS_8FunctionEEE21s_rerun_dynamic_check) #3
  %38 = icmp ne i32 %37, 0
  br i1 %38, label %39, label %43

39:                                               ; preds = %36
  %40 = invoke noundef zeroext i1 @_ZN6ngraph11getenv_boolEPKcb(ptr noundef @.str, i1 noundef zeroext false)
          to label %41 unwind label %68

41:                                               ; preds = %39
  %42 = zext i1 %40 to i8
  store i8 %42, ptr @_ZZN6ngraph4pass12GraphRewrite15run_on_functionESt10shared_ptrINS_8FunctionEEE21s_rerun_dynamic_check, align 1, !tbaa !9
  call void @__cxa_guard_release(ptr @_ZGVZN6ngraph4pass12GraphRewrite15run_on_functionESt10shared_ptrINS_8FunctionEEE21s_rerun_dynamic_check) #3
  br label %43

43:                                               ; preds = %41, %36, %2
  call void @llvm.lifetime.start.p0(i64 1, ptr %11) #3
  %44 = load i8, ptr @_ZZN6ngraph4pass12GraphRewrite15run_on_functionESt10shared_ptrINS_8FunctionEEE21s_rerun_dynamic_check, align 1, !tbaa !9, !range !14, !noundef !15
  %45 = trunc i8 %44 to i1
  br i1 %45, label %46, label %50

46:                                               ; preds = %43
  %47 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN6ngraph8FunctionELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %1) #3
  %48 = invoke noundef zeroext i1 @_ZNK6ngraph8Function10is_dynamicEv(ptr noundef nonnull align 8 dereferenceable(176) %47)
          to label %49 unwind label %72

49:                                               ; preds = %46
  br label %50

50:                                               ; preds = %49, %43
  %51 = phi i1 [ false, %43 ], [ %48, %49 ]
  %52 = zext i1 %51 to i8
  store i8 %52, ptr %11, align 1, !tbaa !9
  br label %53

53:                                               ; preds = %183, %50
  store i8 0, ptr %5, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 24, ptr %12) #3
  %54 = getelementptr inbounds %"class.ngraph::pass::GraphRewriteBase", ptr %30, i32 0, i32 1
  invoke void @_ZNSt6vectorIN6ngraph4pass16GraphRewriteBase12MatchClosureESaIS3_EEC2ERKS5_(ptr noundef nonnull align 8 dereferenceable(24) %12, ptr noundef nonnull align 8 dereferenceable(24) %54)
          to label %55 unwind label %76

55:                                               ; preds = %53
  %56 = getelementptr inbounds %"class.ngraph::pass::GraphRewriteBase", ptr %30, i32 0, i32 1
  call void @_ZNSt6vectorIN6ngraph4pass16GraphRewriteBase12MatchClosureESaIS3_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %56) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #3
  call void @llvm.lifetime.start.p0(i64 24, ptr %14) #3
  %57 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN6ngraph8FunctionELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %1) #3
  invoke void @_ZNK6ngraph8Function15get_ordered_opsEv(ptr dead_on_unwind writable sret(%"class.std::vector.13") align 8 %14, ptr noundef nonnull align 8 dereferenceable(176) %57)
          to label %58 unwind label %80

58:                                               ; preds = %55
  store ptr %14, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #3
  %59 = load ptr, ptr %13, align 8, !tbaa !5
  %60 = call ptr @_ZNSt6vectorISt10shared_ptrIN6ngraph4NodeEESaIS3_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %59) #3
  %61 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %15, i32 0, i32 0
  store ptr %60, ptr %61, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #3
  %62 = load ptr, ptr %13, align 8, !tbaa !5
  %63 = call ptr @_ZNSt6vectorISt10shared_ptrIN6ngraph4NodeEESaIS3_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %62) #3
  %64 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %16, i32 0, i32 0
  store ptr %63, ptr %64, align 8
  br label %65

65:                                               ; preds = %167, %58
  %66 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt10shared_ptrIN6ngraph4NodeEESt6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 8 dereferenceable(8) %16) #3
  br i1 %66, label %84, label %67

67:                                               ; preds = %65
  store i32 4, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #3
  call void @_ZNSt6vectorISt10shared_ptrIN6ngraph4NodeEESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #3
  br label %171

68:                                               ; preds = %39
  %69 = landingpad { ptr, i32 }
          cleanup
  %70 = extractvalue { ptr, i32 } %69, 0
  store ptr %70, ptr %9, align 8
  %71 = extractvalue { ptr, i32 } %69, 1
  store i32 %71, ptr %10, align 4
  call void @__cxa_guard_abort(ptr @_ZGVZN6ngraph4pass12GraphRewrite15run_on_functionESt10shared_ptrINS_8FunctionEEE21s_rerun_dynamic_check) #3
  br label %201

72:                                               ; preds = %185, %46
  %73 = landingpad { ptr, i32 }
          cleanup
  %74 = extractvalue { ptr, i32 } %73, 0
  store ptr %74, ptr %9, align 8
  %75 = extractvalue { ptr, i32 } %73, 1
  store i32 %75, ptr %10, align 4
  br label %200

76:                                               ; preds = %53
  %77 = landingpad { ptr, i32 }
          cleanup
  %78 = extractvalue { ptr, i32 } %77, 0
  store ptr %78, ptr %9, align 8
  %79 = extractvalue { ptr, i32 } %77, 1
  store i32 %79, ptr %10, align 4
  br label %199

80:                                               ; preds = %55
  %81 = landingpad { ptr, i32 }
          cleanup
  %82 = extractvalue { ptr, i32 } %81, 0
  store ptr %82, ptr %9, align 8
  %83 = extractvalue { ptr, i32 } %81, 1
  store i32 %83, ptr %10, align 4
  br label %170

84:                                               ; preds = %65
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #3
  %85 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt10shared_ptrIN6ngraph4NodeEESt6vectorIS4_SaIS4_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %15) #3
  call void @_ZNSt10shared_ptrIN6ngraph4NodeEEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(16) %18, ptr noundef nonnull align 8 dereferenceable(16) %85) #3
  %86 = getelementptr inbounds %"class.ngraph::pass::GraphRewrite", ptr %30, i32 0, i32 1
  %87 = load i8, ptr %86, align 8, !tbaa !16, !range !14, !noundef !15
  %88 = trunc i8 %87 to i1
  br i1 %88, label %89, label %96

89:                                               ; preds = %84
  %90 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN6ngraph4NodeELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %18) #3
  invoke void @_ZN6ngraph4Node26revalidate_and_infer_typesEv(ptr noundef nonnull align 8 dereferenceable(680) %90)
          to label %91 unwind label %92

91:                                               ; preds = %89
  br label %96

92:                                               ; preds = %89
  %93 = landingpad { ptr, i32 }
          cleanup
  %94 = extractvalue { ptr, i32 } %93, 0
  store ptr %94, ptr %9, align 8
  %95 = extractvalue { ptr, i32 } %93, 1
  store i32 %95, ptr %10, align 4
  br label %169

96:                                               ; preds = %91, %84
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #3
  store ptr %12, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #3
  %97 = load ptr, ptr %19, align 8, !tbaa !5
  %98 = call ptr @_ZNSt6vectorIN6ngraph4pass16GraphRewriteBase12MatchClosureESaIS3_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %97) #3
  %99 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.90", ptr %20, i32 0, i32 0
  store ptr %98, ptr %99, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #3
  %100 = load ptr, ptr %19, align 8, !tbaa !5
  %101 = call ptr @_ZNSt6vectorIN6ngraph4pass16GraphRewriteBase12MatchClosureESaIS3_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %100) #3
  %102 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.90", ptr %21, i32 0, i32 0
  store ptr %101, ptr %102, align 8
  br label %103

103:                                              ; preds = %162, %96
  %104 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN6ngraph4pass16GraphRewriteBase12MatchClosureESt6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8) %20, ptr noundef nonnull align 8 dereferenceable(8) %21) #3
  br i1 %104, label %106, label %105

105:                                              ; preds = %103
  store i32 6, ptr %17, align 4
  br label %165

106:                                              ; preds = %103
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #3
  %107 = call noundef nonnull align 8 dereferenceable(68) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN6ngraph4pass16GraphRewriteBase12MatchClosureESt6vectorIS4_SaIS4_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %20) #3
  store ptr %107, ptr %22, align 8, !tbaa !5
  %108 = load i8, ptr %11, align 1, !tbaa !9, !range !14, !noundef !15
  %109 = trunc i8 %108 to i1
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #3
  br i1 %109, label %110, label %115

110:                                              ; preds = %106
  %111 = load ptr, ptr %22, align 8, !tbaa !5
  %112 = getelementptr inbounds %"struct.ngraph::pass::GraphRewriteBase::MatchClosure", ptr %111, i32 0, i32 2
  store i32 1, ptr %24, align 4, !tbaa !30
  invoke void @_ZN6ngraph8EnumMaskINS_4pass12PassPropertyEEC1ERKS2_(ptr noundef nonnull align 4 dereferenceable(4) %23, ptr noundef nonnull align 4 dereferenceable(4) %24)
          to label %113 unwind label %120

113:                                              ; preds = %110
  %114 = call noundef zeroext i1 @_ZNK6ngraph8EnumMaskINS_4pass12PassPropertyEEixERKS3_(ptr noundef nonnull align 4 dereferenceable(4) %112, ptr noundef nonnull align 4 dereferenceable(4) %23)
  br label %115

115:                                              ; preds = %113, %106
  %116 = phi i1 [ false, %106 ], [ %114, %113 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #3
  br i1 %116, label %117, label %128

117:                                              ; preds = %115
  call void @llvm.lifetime.start.p0(i64 1, ptr %25) #3
  %118 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZN6ngraphlsIA134_cEEONS_10NullLoggerES3_RKT_(ptr noundef nonnull align 1 dereferenceable(1) %25, ptr noundef nonnull align 1 dereferenceable(134) @.str.1)
          to label %119 unwind label %124

119:                                              ; preds = %117
  call void @llvm.lifetime.end.p0(i64 1, ptr %25) #3
  br label %158

120:                                              ; preds = %110
  %121 = landingpad { ptr, i32 }
          cleanup
  %122 = extractvalue { ptr, i32 } %121, 0
  store ptr %122, ptr %9, align 8
  %123 = extractvalue { ptr, i32 } %121, 1
  store i32 %123, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #3
  br label %164

124:                                              ; preds = %117
  %125 = landingpad { ptr, i32 }
          cleanup
  %126 = extractvalue { ptr, i32 } %125, 0
  store ptr %126, ptr %9, align 8
  %127 = extractvalue { ptr, i32 } %125, 1
  store i32 %127, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %25) #3
  br label %164

128:                                              ; preds = %115
  %129 = load ptr, ptr %22, align 8, !tbaa !5
  %130 = getelementptr inbounds %"struct.ngraph::pass::GraphRewriteBase::MatchClosure", ptr %129, i32 0, i32 1
  %131 = invoke noundef zeroext i1 @_ZNKSt8functionIFbRKSt10shared_ptrIN6ngraph4NodeEEEEclES5_(ptr noundef nonnull align 8 dereferenceable(32) %130, ptr noundef nonnull align 8 dereferenceable(16) %18)
          to label %132 unwind label %148

132:                                              ; preds = %128
  br i1 %131, label %133, label %157

133:                                              ; preds = %132
  store i8 1, ptr %5, align 1, !tbaa !9
  %134 = load ptr, ptr %22, align 8, !tbaa !5
  %135 = getelementptr inbounds %"struct.ngraph::pass::GraphRewriteBase::MatchClosure", ptr %134, i32 0, i32 2
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #3
  store i32 2, ptr %27, align 4, !tbaa !30
  invoke void @_ZN6ngraph8EnumMaskINS_4pass12PassPropertyEEC1ERKS2_(ptr noundef nonnull align 4 dereferenceable(4) %26, ptr noundef nonnull align 4 dereferenceable(4) %27)
          to label %136 unwind label %152

136:                                              ; preds = %133
  %137 = call noundef zeroext i1 @_ZNK6ngraph8EnumMaskINS_4pass12PassPropertyEE6is_setERKS3_(ptr noundef nonnull align 4 dereferenceable(4) %135, ptr noundef nonnull align 4 dereferenceable(4) %26)
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #3
  br i1 %137, label %138, label %156

138:                                              ; preds = %136
  %139 = load i8, ptr @_ZZN6ngraph4pass12GraphRewrite15run_on_functionESt10shared_ptrINS_8FunctionEEE21s_rerun_dynamic_check, align 1, !tbaa !9, !range !14, !noundef !15
  %140 = trunc i8 %139 to i1
  br i1 %140, label %141, label %145

141:                                              ; preds = %138
  %142 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN6ngraph8FunctionELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %1) #3
  %143 = invoke noundef zeroext i1 @_ZNK6ngraph8Function10is_dynamicEv(ptr noundef nonnull align 8 dereferenceable(176) %142)
          to label %144 unwind label %148

144:                                              ; preds = %141
  br label %145

145:                                              ; preds = %144, %138
  %146 = phi i1 [ false, %138 ], [ %143, %144 ]
  %147 = zext i1 %146 to i8
  store i8 %147, ptr %11, align 1, !tbaa !9
  br label %156

148:                                              ; preds = %141, %128
  %149 = landingpad { ptr, i32 }
          cleanup
  %150 = extractvalue { ptr, i32 } %149, 0
  store ptr %150, ptr %9, align 8
  %151 = extractvalue { ptr, i32 } %149, 1
  store i32 %151, ptr %10, align 4
  br label %164

152:                                              ; preds = %133
  %153 = landingpad { ptr, i32 }
          cleanup
  %154 = extractvalue { ptr, i32 } %153, 0
  store ptr %154, ptr %9, align 8
  %155 = extractvalue { ptr, i32 } %153, 1
  store i32 %155, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #3
  br label %164

156:                                              ; preds = %145, %136
  store i32 6, ptr %17, align 4
  br label %159

157:                                              ; preds = %132
  br label %158

158:                                              ; preds = %157, %119
  store i32 0, ptr %17, align 4
  br label %159

159:                                              ; preds = %158, %156
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #3
  %160 = load i32, ptr %17, align 4
  switch i32 %160, label %165 [
    i32 0, label %161
  ]

161:                                              ; preds = %159
  br label %162

162:                                              ; preds = %161
  %163 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPN6ngraph4pass16GraphRewriteBase12MatchClosureESt6vectorIS4_SaIS4_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %20) #3
  br label %103

164:                                              ; preds = %152, %148, %124, %120
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #3
  br label %169

165:                                              ; preds = %159, %105
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #3
  br label %166

166:                                              ; preds = %165
  call void @_ZNSt12__shared_ptrIN6ngraph4NodeELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %18) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #3
  br label %167

167:                                              ; preds = %166
  %168 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt10shared_ptrIN6ngraph4NodeEESt6vectorIS4_SaIS4_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %15) #3
  br label %65

169:                                              ; preds = %164, %92
  call void @_ZNSt12__shared_ptrIN6ngraph4NodeELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %18) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #3
  call void @_ZNSt6vectorISt10shared_ptrIN6ngraph4NodeEESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #3
  br label %170

170:                                              ; preds = %169, %80
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #3
  call void @_ZNSt6vectorIN6ngraph4pass16GraphRewriteBase12MatchClosureESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #3
  br label %199

171:                                              ; preds = %67
  call void @_ZNSt6vectorIN6ngraph4pass16GraphRewriteBase12MatchClosureESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #3
  br label %172

172:                                              ; preds = %171
  %173 = load i8, ptr %5, align 1, !tbaa !9, !range !14, !noundef !15
  %174 = trunc i8 %173 to i1
  br i1 %174, label %175, label %183

175:                                              ; preds = %172
  %176 = getelementptr inbounds %"class.ngraph::pass::GraphRewriteBase", ptr %30, i32 0, i32 1
  %177 = call noundef i64 @_ZNKSt6vectorIN6ngraph4pass16GraphRewriteBase12MatchClosureESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %176) #3
  %178 = icmp ugt i64 %177, 0
  br i1 %178, label %179, label %183

179:                                              ; preds = %175
  %180 = load i64, ptr %7, align 8, !tbaa !11
  %181 = add i64 %180, -1
  store i64 %181, ptr %7, align 8, !tbaa !11
  %182 = icmp ne i64 %180, 0
  br label %183

183:                                              ; preds = %179, %175, %172
  %184 = phi i1 [ false, %175 ], [ false, %172 ], [ %182, %179 ]
  br i1 %184, label %53, label %185, !llvm.loop !32

185:                                              ; preds = %183
  %186 = getelementptr inbounds %"class.ngraph::pass::GraphRewriteBase", ptr %30, i32 0, i32 1
  %187 = call ptr @_ZNSt6vectorIN6ngraph4pass16GraphRewriteBase12MatchClosureESaIS3_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #3
  %188 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.90", ptr %28, i32 0, i32 0
  store ptr %187, ptr %188, align 8
  %189 = call ptr @_ZNSt6vectorIN6ngraph4pass16GraphRewriteBase12MatchClosureESaIS3_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #3
  %190 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.90", ptr %29, i32 0, i32 0
  store ptr %189, ptr %190, align 8
  %191 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.90", ptr %28, i32 0, i32 0
  %192 = load ptr, ptr %191, align 8
  %193 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.90", ptr %29, i32 0, i32 0
  %194 = load ptr, ptr %193, align 8
  invoke void @_ZNSt6vectorIN6ngraph4pass16GraphRewriteBase12MatchClosureESaIS3_EE6assignIN9__gnu_cxx17__normal_iteratorIPS3_S5_EEvEEvT_SB_(ptr noundef nonnull align 8 dereferenceable(24) %186, ptr %192, ptr %194)
          to label %195 unwind label %72

195:                                              ; preds = %185
  %196 = load i64, ptr %7, align 8, !tbaa !11
  %197 = sub i64 10, %196
  %198 = icmp ugt i64 %197, 1
  store i32 1, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #3
  call void @_ZNSt6vectorIN6ngraph4pass16GraphRewriteBase12MatchClosureESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr %5) #3
  ret i1 %198

199:                                              ; preds = %170, %76
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #3
  br label %200

200:                                              ; preds = %199, %72
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #3
  br label %201

201:                                              ; preds = %200, %68
  call void @_ZNSt6vectorIN6ngraph4pass16GraphRewriteBase12MatchClosureESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr %5) #3
  br label %202

202:                                              ; preds = %201
  %203 = load ptr, ptr %9, align 8
  %204 = load i32, ptr %10, align 4
  %205 = insertvalue { ptr, i32 } poison, ptr %203, 0
  %206 = insertvalue { ptr, i32 } %205, i32 %204, 1
  resume { ptr, i32 } %206
}

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

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

; Function Attrs: nounwind
declare i32 @__cxa_guard_acquire(ptr) #3

declare noundef zeroext i1 @_ZN6ngraph11getenv_boolEPKcb(ptr noundef, i1 noundef zeroext) #4

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nounwind
declare void @__cxa_guard_abort(ptr) #3

; Function Attrs: nounwind
declare void @__cxa_guard_release(ptr) #3

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

declare noundef zeroext i1 @_ZNK6ngraph8Function10is_dynamicEv(ptr noundef nonnull align 8 dereferenceable(176)) #4

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

declare void @_ZNK6ngraph8Function15get_ordered_opsEv(ptr dead_on_unwind writable sret(%"class.std::vector.13") align 8, ptr noundef nonnull align 8 dereferenceable(176)) #4

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorISt10shared_ptrIN6ngraph4NodeEESaIS3_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_cxxneIPSt10shared_ptrIN6ngraph4NodeEESt6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #5

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIN6ngraph4pass16GraphRewriteBase12MatchClosureESaIS3_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_cxxneIPN6ngraph4pass16GraphRewriteBase12MatchClosureESt6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #5

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 1 dereferenceable(1) ptr @_ZN6ngraphlsIA134_cEEONS_10NullLoggerES3_RKT_(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 1 dereferenceable(134)) #1

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

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

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

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

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

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

declare void @_ZN6ngraph8EnumMaskINS_4pass12PassPropertyEEC1ERKS2_(ptr, ptr)

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 = { nounwind }
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 = { 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" }

!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 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!"branch_weights", i32 1, i32 1048575}
!14 = !{i8 0, i8 2}
!15 = !{}
!16 = !{!17, !10, i64 64}
!17 = !{!"_ZTSN6ngraph4pass12GraphRewriteE", !18, i64 0, !10, i64 64}
!18 = !{!"_ZTSN6ngraph4pass16GraphRewriteBaseE", !19, i64 0, !26, i64 40}
!19 = !{!"_ZTSN6ngraph4pass12FunctionPassE", !20, i64 0, !23, i64 24}
!20 = !{!"_ZTSN6ngraph4pass8PassBaseE", !21, i64 8, !6, i64 16}
!21 = !{!"_ZTSN6ngraph8EnumMaskINS_4pass12PassPropertyEEE", !22, i64 0}
!22 = !{!"int", !7, i64 0}
!23 = !{!"_ZTSSt10shared_ptrIN6ngraph8FunctionEE", !24, i64 0}
!24 = !{!"_ZTSSt12__shared_ptrIN6ngraph8FunctionELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !25, i64 8}
!25 = !{!"_ZTSSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0}
!26 = !{!"_ZTSSt6vectorIN6ngraph4pass16GraphRewriteBase12MatchClosureESaIS3_EE", !27, i64 0}
!27 = !{!"_ZTSSt12_Vector_baseIN6ngraph4pass16GraphRewriteBase12MatchClosureESaIS3_EE", !28, i64 0}
!28 = !{!"_ZTSNSt12_Vector_baseIN6ngraph4pass16GraphRewriteBase12MatchClosureESaIS3_EE12_Vector_implE", !29, i64 0}
!29 = !{!"_ZTSNSt12_Vector_baseIN6ngraph4pass16GraphRewriteBase12MatchClosureESaIS3_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!30 = !{!31, !31, i64 0}
!31 = !{!"_ZTSN6ngraph4pass12PassPropertyE", !7, i64 0}
!32 = distinct !{!32, !33}
!33 = !{!"llvm.loop.mustprogress"}


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

%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<ngraph::pass::GraphRewriteBase::MatchClosure, std::allocator<ngraph::pass::GraphRewriteBase::MatchClosure>>::_Vector_impl" }
%"struct.std::_Vector_base<ngraph::pass::GraphRewriteBase::MatchClosure, std::allocator<ngraph::pass::GraphRewriteBase::MatchClosure>>::_Vector_impl" = type { %"struct.std::_Vector_base<ngraph::pass::GraphRewriteBase::MatchClosure, std::allocator<ngraph::pass::GraphRewriteBase::MatchClosure>>::_Vector_impl_data" }
%"struct.std::_Vector_base<ngraph::pass::GraphRewriteBase::MatchClosure, std::allocator<ngraph::pass::GraphRewriteBase::MatchClosure>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.13" = type { %"struct.std::_Vector_base.14" }
%"struct.std::_Vector_base.14" = type { %"struct.std::_Vector_base<std::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.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.std::shared_ptr.18" = type { %"class.std::__shared_ptr.19" }
%"class.std::__shared_ptr.19" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"class.__gnu_cxx::__normal_iterator.90" = type { ptr }
%"class.ngraph::EnumMask" = type { i32 }
%"struct.ngraph::NullLogger" = type { i8 }

@_ZZN6ngraph4pass12GraphRewrite15run_on_functionESt10shared_ptrINS_8FunctionEEE21s_rerun_dynamic_check = external hidden local_unnamed_addr global i8, align 1
@_ZGVZN6ngraph4pass12GraphRewrite15run_on_functionESt10shared_ptrINS_8FunctionEEE21s_rerun_dynamic_check = external hidden global i64, align 8
@.str = external hidden unnamed_addr constant [41 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [134 x i8], align 1

; 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 noundef zeroext i1 @_ZNK6ngraph8EnumMaskINS_4pass12PassPropertyEE6is_setERKS3_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN6ngraph4pass12GraphRewrite15run_on_functionESt10shared_ptrINS_8FunctionEE(ptr noundef nonnull align 8 dereferenceable(65) %0, ptr noundef nonnull %1) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.std::vector", align 8
  %4 = alloca %"class.std::vector", align 8
  %5 = alloca %"class.std::vector.13", align 8
  %6 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %7 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %8 = alloca %"class.std::shared_ptr.18", align 8
  %9 = alloca %"class.__gnu_cxx::__normal_iterator.90", align 8
  %10 = alloca %"class.__gnu_cxx::__normal_iterator.90", align 8
  %11 = alloca %"class.ngraph::EnumMask", align 4
  %12 = alloca i32, align 4
  %13 = alloca %"struct.ngraph::NullLogger", align 1
  %14 = alloca %"class.ngraph::EnumMask", align 4
  %15 = alloca i32, align 4
  %16 = getelementptr inbounds i8, ptr %0, i64 24
  %17 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt10shared_ptrIN6ngraph8FunctionEEaSERKS2_(ptr noundef nonnull align 8 dereferenceable(16) %16, ptr noundef nonnull align 8 dereferenceable(16) %1) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #6
  %18 = getelementptr inbounds i8, ptr %0, i64 40
  call void @_ZNSt6vectorIN6ngraph4pass16GraphRewriteBase12MatchClosureESaIS3_EEC2ERKS5_(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(24) %18)
  %19 = load atomic i8, ptr @_ZGVZN6ngraph4pass12GraphRewrite15run_on_functionESt10shared_ptrINS_8FunctionEEE21s_rerun_dynamic_check acquire, align 8
  %20 = icmp eq i8 %19, 0
  br i1 %20, label %21, label %27, !prof !5

21:                                               ; preds = %2
  %22 = call i32 @__cxa_guard_acquire(ptr nonnull @_ZGVZN6ngraph4pass12GraphRewrite15run_on_functionESt10shared_ptrINS_8FunctionEEE21s_rerun_dynamic_check) #6
  %.not = icmp eq i32 %22, 0
  br i1 %.not, label %27, label %23

23:                                               ; preds = %21
  %24 = invoke noundef zeroext i1 @_ZN6ngraph11getenv_boolEPKcb(ptr noundef nonnull @.str, i1 noundef zeroext false)
          to label %25 unwind label %43

25:                                               ; preds = %23
  %26 = zext i1 %24 to i8
  store i8 %26, ptr @_ZZN6ngraph4pass12GraphRewrite15run_on_functionESt10shared_ptrINS_8FunctionEEE21s_rerun_dynamic_check, align 1, !tbaa !6
  call void @__cxa_guard_release(ptr nonnull @_ZGVZN6ngraph4pass12GraphRewrite15run_on_functionESt10shared_ptrINS_8FunctionEEE21s_rerun_dynamic_check) #6
  br label %27

27:                                               ; preds = %25, %21, %2
  %28 = load i8, ptr @_ZZN6ngraph4pass12GraphRewrite15run_on_functionESt10shared_ptrINS_8FunctionEEE21s_rerun_dynamic_check, align 1, !tbaa !6, !range !10, !noundef !11
  %29 = trunc nuw i8 %28 to i1
  br i1 %29, label %30, label %33

30:                                               ; preds = %27
  %31 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN6ngraph8FunctionELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %1) #6
  %32 = invoke noundef zeroext i1 @_ZNK6ngraph8Function10is_dynamicEv(ptr noundef nonnull align 8 dereferenceable(176) %31)
          to label %33 unwind label %45

33:                                               ; preds = %30, %27
  %34 = phi i1 [ false, %27 ], [ %32, %30 ]
  %35 = getelementptr inbounds i8, ptr %0, i64 64
  br label %36

36:                                               ; preds = %100, %33
  %.030 = phi i1 [ %34, %33 ], [ %.131.lcssa, %100 ]
  %.017 = phi i64 [ 10, %33 ], [ %101, %100 ]
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #6
  invoke void @_ZNSt6vectorIN6ngraph4pass16GraphRewriteBase12MatchClosureESaIS3_EEC2ERKS5_(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(24) %18)
          to label %37 unwind label %47

37:                                               ; preds = %36
  call void @_ZNSt6vectorIN6ngraph4pass16GraphRewriteBase12MatchClosureESaIS3_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %18) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #6
  %38 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN6ngraph8FunctionELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %1) #6
  invoke void @_ZNK6ngraph8Function15get_ordered_opsEv(ptr dead_on_unwind nonnull writable sret(%"class.std::vector.13") align 8 %5, ptr noundef nonnull align 8 dereferenceable(176) %38)
          to label %39 unwind label %49

39:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #6
  %40 = call ptr @_ZNSt6vectorISt10shared_ptrIN6ngraph4NodeEESaIS3_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  store ptr %40, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #6
  %41 = call ptr @_ZNSt6vectorISt10shared_ptrIN6ngraph4NodeEESaIS3_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  store ptr %41, ptr %7, align 8
  %42 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt10shared_ptrIN6ngraph4NodeEESt6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #6
  br i1 %42, label %.lr.ph68, label %._crit_edge

._crit_edge:                                      ; preds = %.loopexit, %39
  %.131.lcssa = phi i1 [ %.030, %39 ], [ %.535, %.loopexit ]
  %.0.lcssa = phi i1 [ false, %39 ], [ %.3, %.loopexit ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  call void @_ZNSt6vectorISt10shared_ptrIN6ngraph4NodeEESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #6
  call void @_ZNSt6vectorIN6ngraph4pass16GraphRewriteBase12MatchClosureESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #6
  br i1 %.0.lcssa, label %98, label %.critedge2

43:                                               ; preds = %23
  %44 = landingpad { ptr, i32 }
          cleanup
  call void @__cxa_guard_abort(ptr nonnull @_ZGVZN6ngraph4pass12GraphRewrite15run_on_functionESt10shared_ptrINS_8FunctionEEE21s_rerun_dynamic_check) #6
  br label %107

45:                                               ; preds = %.critedge2, %30
  %46 = landingpad { ptr, i32 }
          cleanup
  br label %107

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

49:                                               ; preds = %37
  %50 = landingpad { ptr, i32 }
          cleanup
  br label %97

.lr.ph68:                                         ; preds = %39, %.loopexit
  %.067 = phi i1 [ %.3, %.loopexit ], [ false, %39 ]
  %.13166 = phi i1 [ %.535, %.loopexit ], [ %.030, %39 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #6
  %51 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt10shared_ptrIN6ngraph4NodeEESt6vectorIS4_SaIS4_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #6
  call void @_ZNSt10shared_ptrIN6ngraph4NodeEEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(16) %8, ptr noundef nonnull align 8 dereferenceable(16) %51) #6
  %52 = load i8, ptr %35, align 8, !tbaa !12, !range !10, !noundef !11
  %53 = trunc nuw i8 %52 to i1
  br i1 %53, label %54, label %58

54:                                               ; preds = %.lr.ph68
  %55 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN6ngraph4NodeELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %8) #6
  invoke void @_ZN6ngraph4Node26revalidate_and_infer_typesEv(ptr noundef nonnull align 8 dereferenceable(680) %55)
          to label %58 unwind label %56

56:                                               ; preds = %54
  %57 = landingpad { ptr, i32 }
          cleanup
  br label %96

58:                                               ; preds = %54, %.lr.ph68
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #6
  %59 = call ptr @_ZNSt6vectorIN6ngraph4pass16GraphRewriteBase12MatchClosureESaIS3_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
  store ptr %59, ptr %9, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #6
  %60 = call ptr @_ZNSt6vectorIN6ngraph4pass16GraphRewriteBase12MatchClosureESaIS3_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
  store ptr %60, ptr %10, align 8
  %61 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN6ngraph4pass16GraphRewriteBase12MatchClosureESt6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #6
  br i1 %61, label %.lr.ph, label %.loopexit

.lr.ph:                                           ; preds = %58
  br i1 %.13166, label %.lr.ph.split.us, label %.critedge

.lr.ph.split.us:                                  ; preds = %.lr.ph, %72
  %62 = call noundef nonnull align 8 dereferenceable(68) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN6ngraph4pass16GraphRewriteBase12MatchClosureESt6vectorIS4_SaIS4_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #6
  store i32 1, ptr %12, align 4, !tbaa !27
  invoke void @_ZN6ngraph8EnumMaskINS_4pass12PassPropertyEEC1ERKS2_(ptr noundef nonnull align 4 dereferenceable(4) %11, ptr noundef nonnull align 4 dereferenceable(4) %12)
          to label %63 unwind label %.split.us

63:                                               ; preds = %.lr.ph.split.us
  %64 = getelementptr inbounds i8, ptr %62, i64 64
  %65 = call noundef zeroext i1 @_ZNK6ngraph8EnumMaskINS_4pass12PassPropertyEEixERKS3_(ptr noundef nonnull align 4 dereferenceable(4) %64, ptr noundef nonnull align 4 dereferenceable(4) %11)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #6
  br i1 %65, label %70, label %66

66:                                               ; preds = %63
  %67 = getelementptr inbounds i8, ptr %62, i64 32
  %68 = invoke noundef zeroext i1 @_ZNKSt8functionIFbRKSt10shared_ptrIN6ngraph4NodeEEEEclES5_(ptr noundef nonnull align 8 dereferenceable(32) %67, ptr noundef nonnull align 8 dereferenceable(16) %8)
          to label %69 unwind label %.loopexit49.split.us

69:                                               ; preds = %66
  br i1 %68, label %.split64.us, label %72

70:                                               ; preds = %63
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %13) #6
  %71 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6ngraphlsIA134_cEEONS_10NullLoggerES3_RKT_(ptr noundef nonnull align 1 dereferenceable(1) %13, ptr noundef nonnull align 1 dereferenceable(134) @.str.1)
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %13) #6
  br label %72

72:                                               ; preds = %70, %69
  %73 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPN6ngraph4pass16GraphRewriteBase12MatchClosureESt6vectorIS4_SaIS4_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #6
  %74 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN6ngraph4pass16GraphRewriteBase12MatchClosureESt6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #6
  br i1 %74, label %.lr.ph.split.us, label %.loopexit

.split.us:                                        ; preds = %.lr.ph.split.us
  %75 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #6
  br label %.loopexit49

.loopexit49.split.us:                             ; preds = %66
  %lpad.loopexit.us = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit49

.critedge:                                        ; preds = %.lr.ph, %91
  %76 = call noundef nonnull align 8 dereferenceable(68) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN6ngraph4pass16GraphRewriteBase12MatchClosureESt6vectorIS4_SaIS4_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #6
  %77 = getelementptr inbounds i8, ptr %76, i64 32
  %78 = invoke noundef zeroext i1 @_ZNKSt8functionIFbRKSt10shared_ptrIN6ngraph4NodeEEEEclES5_(ptr noundef nonnull align 8 dereferenceable(32) %77, ptr noundef nonnull align 8 dereferenceable(16) %8)
          to label %79 unwind label %.loopexit49.split

79:                                               ; preds = %.critedge
  br i1 %78, label %.split64.us, label %91

.split64.us:                                      ; preds = %79, %69
  %.us-phi65 = phi ptr [ %62, %69 ], [ %76, %79 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %14) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %15) #6
  store i32 2, ptr %15, align 4, !tbaa !27
  invoke void @_ZN6ngraph8EnumMaskINS_4pass12PassPropertyEEC1ERKS2_(ptr noundef nonnull align 4 dereferenceable(4) %14, ptr noundef nonnull align 4 dereferenceable(4) %15)
          to label %80 unwind label %89

80:                                               ; preds = %.split64.us
  %81 = getelementptr inbounds i8, ptr %.us-phi65, i64 64
  %82 = call noundef zeroext i1 @_ZNK6ngraph8EnumMaskINS_4pass12PassPropertyEE6is_setERKS3_(ptr noundef nonnull align 4 dereferenceable(4) %81, ptr noundef nonnull align 4 dereferenceable(4) %14)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #6
  br i1 %82, label %83, label %.loopexit

83:                                               ; preds = %80
  %84 = load i8, ptr @_ZZN6ngraph4pass12GraphRewrite15run_on_functionESt10shared_ptrINS_8FunctionEEE21s_rerun_dynamic_check, align 1, !tbaa !6, !range !10, !noundef !11
  %85 = trunc nuw i8 %84 to i1
  br i1 %85, label %86, label %.loopexit

86:                                               ; preds = %83
  %87 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN6ngraph8FunctionELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %1) #6
  %88 = invoke noundef zeroext i1 @_ZNK6ngraph8Function10is_dynamicEv(ptr noundef nonnull align 8 dereferenceable(176) %87)
          to label %.loopexit unwind label %.loopexit.split-lp

.loopexit49.split:                                ; preds = %.critedge
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit49

.loopexit.split-lp:                               ; preds = %86
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit49

89:                                               ; preds = %.split64.us
  %90 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #6
  br label %.loopexit49

91:                                               ; preds = %79
  %92 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPN6ngraph4pass16GraphRewriteBase12MatchClosureESt6vectorIS4_SaIS4_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #6
  %93 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN6ngraph4pass16GraphRewriteBase12MatchClosureESt6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #6
  br i1 %93, label %.critedge, label %.loopexit

.loopexit49:                                      ; preds = %.loopexit.split-lp, %.loopexit49.split.us, %.loopexit49.split, %89, %.split.us
  %.pn = phi { ptr, i32 } [ %90, %89 ], [ %75, %.split.us ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ], [ %lpad.loopexit, %.loopexit49.split ], [ %lpad.loopexit.us, %.loopexit49.split.us ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  br label %96

.loopexit:                                        ; preds = %91, %72, %58, %83, %86, %80
  %.535 = phi i1 [ %.13166, %80 ], [ false, %83 ], [ %88, %86 ], [ %.13166, %58 ], [ true, %72 ], [ false, %91 ]
  %.3 = phi i1 [ true, %80 ], [ true, %83 ], [ true, %86 ], [ %.067, %58 ], [ %.067, %72 ], [ %.067, %91 ]
  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 @_ZNSt12__shared_ptrIN6ngraph4NodeELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %8) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #6
  %94 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt10shared_ptrIN6ngraph4NodeEESt6vectorIS4_SaIS4_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #6
  %95 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt10shared_ptrIN6ngraph4NodeEESt6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #6
  br i1 %95, label %.lr.ph68, label %._crit_edge

96:                                               ; preds = %.loopexit49, %56
  %.pn.pn = phi { ptr, i32 } [ %.pn, %.loopexit49 ], [ %57, %56 ]
  call void @_ZNSt12__shared_ptrIN6ngraph4NodeELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %8) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  call void @_ZNSt6vectorISt10shared_ptrIN6ngraph4NodeEESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #6
  br label %97

97:                                               ; preds = %96, %49
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %96 ], [ %50, %49 ]
  call void @_ZNSt6vectorIN6ngraph4pass16GraphRewriteBase12MatchClosureESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
  br label %106

98:                                               ; preds = %._crit_edge
  %99 = call noundef i64 @_ZNKSt6vectorIN6ngraph4pass16GraphRewriteBase12MatchClosureESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %18) #6
  %.not36 = icmp eq i64 %99, 0
  br i1 %.not36, label %.critedge2, label %100

100:                                              ; preds = %98
  %101 = add nsw i64 %.017, -1
  %.not37 = icmp eq i64 %.017, 0
  br i1 %.not37, label %.critedge2, label %36, !llvm.loop !29

.critedge2:                                       ; preds = %98, %._crit_edge, %100
  %.118 = phi i64 [ -1, %100 ], [ %.017, %98 ], [ %.017, %._crit_edge ]
  %102 = call ptr @_ZNSt6vectorIN6ngraph4pass16GraphRewriteBase12MatchClosureESaIS3_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  %103 = call ptr @_ZNSt6vectorIN6ngraph4pass16GraphRewriteBase12MatchClosureESaIS3_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  invoke void @_ZNSt6vectorIN6ngraph4pass16GraphRewriteBase12MatchClosureESaIS3_EE6assignIN9__gnu_cxx17__normal_iteratorIPS3_S5_EEvEEvT_SB_(ptr noundef nonnull align 8 dereferenceable(24) %18, ptr %102, ptr %103)
          to label %104 unwind label %45

104:                                              ; preds = %.critedge2
  %notsub = add i64 %.118, -11
  %105 = icmp ult i64 %notsub, -2
  call void @_ZNSt6vectorIN6ngraph4pass16GraphRewriteBase12MatchClosureESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #6
  ret i1 %105

106:                                              ; preds = %97, %47
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %97 ], [ %48, %47 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #6
  br label %107

107:                                              ; preds = %45, %106, %43
  %.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %44, %43 ], [ %.pn.pn.pn.pn, %106 ], [ %46, %45 ]
  call void @_ZNSt6vectorIN6ngraph4pass16GraphRewriteBase12MatchClosureESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #6
  resume { ptr, i32 } %.pn.pn.pn.pn.pn.pn
}

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

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

; Function Attrs: nofree nounwind
declare i32 @__cxa_guard_acquire(ptr) local_unnamed_addr #3

declare noundef zeroext i1 @_ZN6ngraph11getenv_boolEPKcb(ptr noundef, i1 noundef zeroext) local_unnamed_addr #4

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nofree nounwind
declare void @__cxa_guard_abort(ptr) local_unnamed_addr #3

; Function Attrs: nofree nounwind
declare void @__cxa_guard_release(ptr) local_unnamed_addr #3

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

declare noundef zeroext i1 @_ZNK6ngraph8Function10is_dynamicEv(ptr noundef nonnull align 8 dereferenceable(176)) local_unnamed_addr #4

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

declare void @_ZNK6ngraph8Function15get_ordered_opsEv(ptr dead_on_unwind writable sret(%"class.std::vector.13") align 8, ptr noundef nonnull align 8 dereferenceable(176)) local_unnamed_addr #4

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorISt10shared_ptrIN6ngraph4NodeEESaIS3_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_cxxneIPSt10shared_ptrIN6ngraph4NodeEESt6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #5

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6ngraph4Node26revalidate_and_infer_typesEv(ptr noundef nonnull align 8 dereferenceable(680)) local_unnamed_addr #2 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIN6ngraph4pass16GraphRewriteBase12MatchClosureESaIS3_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_cxxneIPN6ngraph4pass16GraphRewriteBase12MatchClosureESt6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #5

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 1 dereferenceable(1) ptr @_ZN6ngraphlsIA134_cEEONS_10NullLoggerES3_RKT_(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 1 dereferenceable(134)) local_unnamed_addr #1

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

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

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

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

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

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

declare void @_ZN6ngraph8EnumMaskINS_4pass12PassPropertyEEC1ERKS2_(ptr, ptr) local_unnamed_addr

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 = { nofree nounwind }
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 = { 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 #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 = !{!"branch_weights", i32 1, i32 1048575}
!6 = !{!7, !7, i64 0}
!7 = !{!"bool", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{i8 0, i8 2}
!11 = !{}
!12 = !{!13, !7, i64 64}
!13 = !{!"_ZTSN6ngraph4pass12GraphRewriteE", !14, i64 0, !7, i64 64}
!14 = !{!"_ZTSN6ngraph4pass16GraphRewriteBaseE", !15, i64 0, !23, i64 40}
!15 = !{!"_ZTSN6ngraph4pass12FunctionPassE", !16, i64 0, !20, i64 24}
!16 = !{!"_ZTSN6ngraph4pass8PassBaseE", !17, i64 8, !19, i64 16}
!17 = !{!"_ZTSN6ngraph8EnumMaskINS_4pass12PassPropertyEEE", !18, i64 0}
!18 = !{!"int", !8, i64 0}
!19 = !{!"any pointer", !8, i64 0}
!20 = !{!"_ZTSSt10shared_ptrIN6ngraph8FunctionEE", !21, i64 0}
!21 = !{!"_ZTSSt12__shared_ptrIN6ngraph8FunctionELN9__gnu_cxx12_Lock_policyE2EE", !19, i64 0, !22, i64 8}
!22 = !{!"_ZTSSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EE", !19, i64 0}
!23 = !{!"_ZTSSt6vectorIN6ngraph4pass16GraphRewriteBase12MatchClosureESaIS3_EE", !24, i64 0}
!24 = !{!"_ZTSSt12_Vector_baseIN6ngraph4pass16GraphRewriteBase12MatchClosureESaIS3_EE", !25, i64 0}
!25 = !{!"_ZTSNSt12_Vector_baseIN6ngraph4pass16GraphRewriteBase12MatchClosureESaIS3_EE12_Vector_implE", !26, i64 0}
!26 = !{!"_ZTSNSt12_Vector_baseIN6ngraph4pass16GraphRewriteBase12MatchClosureESaIS3_EE17_Vector_impl_dataE", !19, i64 0, !19, i64 8, !19, i64 16}
!27 = !{!28, !28, i64 0}
!28 = !{!"_ZTSN6ngraph4pass12PassPropertyE", !8, i64 0}
!29 = distinct !{!29, !30}
!30 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: AggressiveInstCombinePass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass