; LLVM IR from NervanaSystems/ngraph :: src/ngraph/pattern (matcher)

; 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.ngraph::pattern::Matcher" = type <{ ptr, %"class.ngraph::Output", %"class.ngraph::Output", %"class.std::map", %"class.std::vector", %"class.std::vector.3", %"class.std::__cxx11::basic_string", i8, [7 x i8] }>
%"class.ngraph::Output" = type { %"class.std::shared_ptr", i64 }
%"class.std::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<std::shared_ptr<ngraph::Node>, std::pair<const std::shared_ptr<ngraph::Node>, ngraph::Output<Node>>, std::_Select1st<std::pair<const std::shared_ptr<ngraph::Node>, ngraph::Output<Node>>>, std::less<std::shared_ptr<ngraph::Node>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::shared_ptr<ngraph::Node>, std::pair<const std::shared_ptr<ngraph::Node>, ngraph::Output<Node>>, std::_Select1st<std::pair<const std::shared_ptr<ngraph::Node>, ngraph::Output<Node>>>, std::less<std::shared_ptr<ngraph::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 }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::map<std::shared_ptr<ngraph::Node>, ngraph::Output<Node>>, std::allocator<std::map<std::shared_ptr<ngraph::Node>, ngraph::Output<Node>>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::map<std::shared_ptr<ngraph::Node>, ngraph::Output<Node>>, std::allocator<std::map<std::shared_ptr<ngraph::Node>, ngraph::Output<Node>>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::map<std::shared_ptr<ngraph::Node>, ngraph::Output<Node>>, std::allocator<std::map<std::shared_ptr<ngraph::Node>, ngraph::Output<Node>>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::map<std::shared_ptr<ngraph::Node>, ngraph::Output<Node>>, std::allocator<std::map<std::shared_ptr<ngraph::Node>, ngraph::Output<Node>>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.3" = type { %"struct.std::_Vector_base.4" }
%"struct.std::_Vector_base.4" = type { %"struct.std::_Vector_base<ngraph::Output<Node>, std::allocator<ngraph::Output<Node>>>::_Vector_impl" }
%"struct.std::_Vector_base<ngraph::Output<Node>, std::allocator<ngraph::Output<Node>>>::_Vector_impl" = type { %"struct.std::_Vector_base<ngraph::Output<Node>, std::allocator<ngraph::Output<Node>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<ngraph::Output<Node>, std::allocator<ngraph::Output<Node>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"struct.std::_Rb_tree_iterator" = type { ptr }
%"struct.std::pair" = type { %"class.std::shared_ptr", %"class.ngraph::Output" }
%"struct.std::_Rb_tree_const_iterator.120" = type { ptr }
%"class.ngraph::pattern::RecurrentMatcher" = type { %"class.ngraph::Output", %"class.ngraph::Output", %"class.std::shared_ptr", %"class.std::set", %"class.std::map.122", %"class.ngraph::Output" }
%"class.std::set" = type { %"class.std::_Rb_tree.46" }
%"class.std::_Rb_tree.46" = type { %"struct.std::_Rb_tree<std::shared_ptr<ngraph::Node>, std::shared_ptr<ngraph::Node>, std::_Identity<std::shared_ptr<ngraph::Node>>, std::less<std::shared_ptr<ngraph::Node>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::shared_ptr<ngraph::Node>, std::shared_ptr<ngraph::Node>, std::_Identity<std::shared_ptr<ngraph::Node>>, std::less<std::shared_ptr<ngraph::Node>>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"class.std::map.122" = type { %"class.std::_Rb_tree.123" }
%"class.std::_Rb_tree.123" = type { %"struct.std::_Rb_tree<std::shared_ptr<ngraph::Node>, std::pair<const std::shared_ptr<ngraph::Node>, std::vector<ngraph::Output<Node>>>, std::_Select1st<std::pair<const std::shared_ptr<ngraph::Node>, std::vector<ngraph::Output<Node>>>>, std::less<std::shared_ptr<ngraph::Node>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::shared_ptr<ngraph::Node>, std::pair<const std::shared_ptr<ngraph::Node>, std::vector<ngraph::Output<Node>>>, std::_Select1st<std::pair<const std::shared_ptr<ngraph::Node>, std::vector<ngraph::Output<Node>>>>, std::less<std::shared_ptr<ngraph::Node>>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN6ngraph7pattern7Matcher5matchERKNS_6OutputINS_4NodeEEERKSt3mapISt10shared_ptrIS3_ES4_St4lessIS9_ESaISt4pairIKS9_S4_EEE(ptr noundef nonnull align 8 dereferenceable(185), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(48)) #2 align 2

declare void @_ZN6ngraph6OutputINS_4NodeEE5resetEv(ptr noundef nonnull align 8 dereferenceable(24)) #4

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN6ngraph7pattern16RecurrentMatcher5matchENS_6OutputINS_4NodeEEE(ptr noundef nonnull align 8 dereferenceable(184) %0, ptr noundef %1) #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 %"class.ngraph::pattern::Matcher", align 8
  %7 = alloca %"class.ngraph::pattern::Matcher", align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca %"class.std::map", align 8
  %12 = alloca ptr, align 8
  %13 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %14 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %15 = alloca %"struct.std::pair", align 8
  %16 = alloca ptr, align 8
  %17 = alloca %"struct.std::_Rb_tree_const_iterator.120", align 8
  %18 = alloca %"struct.std::_Rb_tree_const_iterator.120", align 8
  %19 = alloca %"class.std::shared_ptr", align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %20 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr %5) #6
  store i8 0, ptr %5, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 192, ptr %6) #6
  %21 = getelementptr inbounds %"class.ngraph::pattern::RecurrentMatcher", ptr %20, i32 0, i32 0
  call void @_ZN6ngraph7pattern7MatcherC1ERNS_6OutputINS_4NodeEEE(ptr noundef nonnull align 8 dereferenceable(185) %6, ptr noundef nonnull align 8 dereferenceable(24) %21)
  call void @llvm.lifetime.start.p0(i64 192, ptr %7) #6
  %22 = getelementptr inbounds %"class.ngraph::pattern::RecurrentMatcher", ptr %20, i32 0, i32 1
  invoke void @_ZN6ngraph7pattern7MatcherC1ERNS_6OutputINS_4NodeEEE(ptr noundef nonnull align 8 dereferenceable(185) %7, ptr noundef nonnull align 8 dereferenceable(24) %22)
          to label %23 unwind label %51

23:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  store ptr %6, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 48, ptr %11) #6
  call void @_ZNSt3mapISt10shared_ptrIN6ngraph4NodeEENS1_6OutputIS2_EESt4lessIS3_ESaISt4pairIKS3_S5_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %11) #6
  %24 = getelementptr inbounds %"class.ngraph::pattern::RecurrentMatcher", ptr %20, i32 0, i32 4
  call void @_ZNSt3mapISt10shared_ptrIN6ngraph4NodeEESt6vectorINS1_6OutputIS2_EESaIS6_EESt4lessIS3_ESaISt4pairIKS3_S8_EEE5clearEv(ptr noundef nonnull align 8 dereferenceable(48) %24) #6
  %25 = getelementptr inbounds %"class.ngraph::pattern::RecurrentMatcher", ptr %20, i32 0, i32 5
  %26 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN6ngraph6OutputINS_4NodeEEaSERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %25, ptr noundef nonnull align 8 dereferenceable(24) %1) #6
  br label %27

27:                                               ; preds = %108, %23
  %28 = load ptr, ptr %10, align 8, !tbaa !5
  %29 = invoke noundef zeroext i1 @_ZN6ngraph7pattern7Matcher5matchERKNS_6OutputINS_4NodeEEERKSt3mapISt10shared_ptrIS3_ES4_St4lessIS9_ESaISt4pairIKS9_S4_EEE(ptr noundef nonnull align 8 dereferenceable(185) %28, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(48) %11)
          to label %30 unwind label %55

30:                                               ; preds = %27
  br i1 %29, label %31, label %109

31:                                               ; preds = %30
  store i8 1, ptr %5, align 1, !tbaa !9
  %32 = load ptr, ptr %10, align 8, !tbaa !5
  %33 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZN6ngraph7pattern7Matcher21get_pattern_value_mapEv(ptr noundef nonnull align 8 dereferenceable(185) %32)
          to label %34 unwind label %55

34:                                               ; preds = %31
  %35 = getelementptr inbounds %"class.ngraph::pattern::RecurrentMatcher", ptr %20, i32 0, i32 2
  %36 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt3mapISt10shared_ptrIN6ngraph4NodeEENS1_6OutputIS2_EESt4lessIS3_ESaISt4pairIKS3_S5_EEEixERS9_(ptr noundef nonnull align 8 dereferenceable(48) %33, ptr noundef nonnull align 8 dereferenceable(16) %35)
          to label %37 unwind label %55

37:                                               ; preds = %34
  %38 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN6ngraph6OutputINS_4NodeEEaSERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(24) %36) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %39 = load ptr, ptr %10, align 8, !tbaa !5
  %40 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZN6ngraph7pattern7Matcher21get_pattern_value_mapEv(ptr noundef nonnull align 8 dereferenceable(185) %39)
          to label %41 unwind label %59

41:                                               ; preds = %37
  store ptr %40, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  %42 = load ptr, ptr %12, align 8, !tbaa !5
  %43 = call ptr @_ZNSt3mapISt10shared_ptrIN6ngraph4NodeEENS1_6OutputIS2_EESt4lessIS3_ESaISt4pairIKS3_S5_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %42) #6
  %44 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %13, i32 0, i32 0
  store ptr %43, ptr %44, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  %45 = load ptr, ptr %12, align 8, !tbaa !5
  %46 = call ptr @_ZNSt3mapISt10shared_ptrIN6ngraph4NodeEENS1_6OutputIS2_EESt4lessIS3_ESaISt4pairIKS3_S5_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %45) #6
  %47 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %14, i32 0, i32 0
  store ptr %46, ptr %47, align 8
  br label %48

48:                                               ; preds = %71, %41
  %49 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKSt10shared_ptrIN6ngraph4NodeEENS2_6OutputIS3_EEEESB_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %14) #6
  br i1 %49, label %63, label %50

50:                                               ; preds = %48
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  br label %78

51:                                               ; preds = %2
  %52 = landingpad { ptr, i32 }
          cleanup
  %53 = extractvalue { ptr, i32 } %52, 0
  store ptr %53, ptr %8, align 8
  %54 = extractvalue { ptr, i32 } %52, 1
  store i32 %54, ptr %9, align 4
  br label %119

55:                                               ; preds = %112, %105, %34, %31, %27
  %56 = landingpad { ptr, i32 }
          cleanup
  %57 = extractvalue { ptr, i32 } %56, 0
  store ptr %57, ptr %8, align 8
  %58 = extractvalue { ptr, i32 } %56, 1
  store i32 %58, ptr %9, align 4
  br label %118

59:                                               ; preds = %37
  %60 = landingpad { ptr, i32 }
          cleanup
  %61 = extractvalue { ptr, i32 } %60, 0
  store ptr %61, ptr %8, align 8
  %62 = extractvalue { ptr, i32 } %60, 1
  store i32 %62, ptr %9, align 4
  br label %77

63:                                               ; preds = %48
  call void @llvm.lifetime.start.p0(i64 40, ptr %15) #6
  %64 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKSt10shared_ptrIN6ngraph4NodeEENS2_6OutputIS3_EEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #6
  call void @_ZNSt4pairIKSt10shared_ptrIN6ngraph4NodeEENS1_6OutputIS2_EEEC2ERKS7_(ptr noundef nonnull align 8 dereferenceable(40) %15, ptr noundef nonnull align 8 dereferenceable(40) %64) #6
  %65 = getelementptr inbounds %"class.ngraph::pattern::RecurrentMatcher", ptr %20, i32 0, i32 4
  %66 = getelementptr inbounds %"struct.std::pair", ptr %15, i32 0, i32 0
  %67 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt3mapISt10shared_ptrIN6ngraph4NodeEESt6vectorINS1_6OutputIS2_EESaIS6_EESt4lessIS3_ESaISt4pairIKS3_S8_EEEixERSC_(ptr noundef nonnull align 8 dereferenceable(48) %65, ptr noundef nonnull align 8 dereferenceable(16) %66)
          to label %68 unwind label %73

68:                                               ; preds = %63
  %69 = getelementptr inbounds %"struct.std::pair", ptr %15, i32 0, i32 1
  invoke void @_ZNSt6vectorIN6ngraph6OutputINS0_4NodeEEESaIS3_EE9push_backERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %67, ptr noundef nonnull align 8 dereferenceable(24) %69)
          to label %70 unwind label %73

70:                                               ; preds = %68
  call void @_ZNSt4pairIKSt10shared_ptrIN6ngraph4NodeEENS1_6OutputIS2_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %15) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr %15) #6
  br label %71

71:                                               ; preds = %70
  %72 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKSt10shared_ptrIN6ngraph4NodeEENS2_6OutputIS3_EEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #6
  br label %48

73:                                               ; preds = %68, %63
  %74 = landingpad { ptr, i32 }
          cleanup
  %75 = extractvalue { ptr, i32 } %74, 0
  store ptr %75, ptr %8, align 8
  %76 = extractvalue { ptr, i32 } %74, 1
  store i32 %76, ptr %9, align 4
  call void @_ZNSt4pairIKSt10shared_ptrIN6ngraph4NodeEENS1_6OutputIS2_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %15) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  br label %77

77:                                               ; preds = %73, %59
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  br label %118

78:                                               ; preds = %50
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  %79 = getelementptr inbounds %"class.ngraph::pattern::RecurrentMatcher", ptr %20, i32 0, i32 3
  store ptr %79, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  %80 = load ptr, ptr %16, align 8, !tbaa !5
  %81 = call ptr @_ZNKSt3setISt10shared_ptrIN6ngraph4NodeEESt4lessIS3_ESaIS3_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %80) #6
  %82 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator.120", ptr %17, i32 0, i32 0
  store ptr %81, ptr %82, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  %83 = load ptr, ptr %16, align 8, !tbaa !5
  %84 = call ptr @_ZNKSt3setISt10shared_ptrIN6ngraph4NodeEESt4lessIS3_ESaIS3_EE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %83) #6
  %85 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator.120", ptr %18, i32 0, i32 0
  store ptr %84, ptr %85, align 8
  br label %86

86:                                               ; preds = %99, %78
  %87 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorISt10shared_ptrIN6ngraph4NodeEEES6_(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull align 8 dereferenceable(8) %18) #6
  br i1 %87, label %89, label %88

88:                                               ; preds = %86
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  br label %105

89:                                               ; preds = %86
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #6
  %90 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt23_Rb_tree_const_iteratorISt10shared_ptrIN6ngraph4NodeEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %17) #6
  call void @_ZNSt10shared_ptrIN6ngraph4NodeEEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(16) %19, ptr noundef nonnull align 8 dereferenceable(16) %90) #6
  %91 = load ptr, ptr %10, align 8, !tbaa !5
  %92 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZN6ngraph7pattern7Matcher21get_pattern_value_mapEv(ptr noundef nonnull align 8 dereferenceable(185) %91)
          to label %93 unwind label %101

93:                                               ; preds = %89
  %94 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt3mapISt10shared_ptrIN6ngraph4NodeEENS1_6OutputIS2_EESt4lessIS3_ESaISt4pairIKS3_S5_EEEixERS9_(ptr noundef nonnull align 8 dereferenceable(48) %92, ptr noundef nonnull align 8 dereferenceable(16) %19)
          to label %95 unwind label %101

95:                                               ; preds = %93
  %96 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt3mapISt10shared_ptrIN6ngraph4NodeEENS1_6OutputIS2_EESt4lessIS3_ESaISt4pairIKS3_S5_EEEixERS9_(ptr noundef nonnull align 8 dereferenceable(48) %11, ptr noundef nonnull align 8 dereferenceable(16) %19)
          to label %97 unwind label %101

97:                                               ; preds = %95
  %98 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN6ngraph6OutputINS_4NodeEEaSERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %96, ptr noundef nonnull align 8 dereferenceable(24) %94) #6
  call void @_ZNSt12__shared_ptrIN6ngraph4NodeELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %19) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #6
  br label %99

99:                                               ; preds = %97
  %100 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt23_Rb_tree_const_iteratorISt10shared_ptrIN6ngraph4NodeEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %17) #6
  br label %86

101:                                              ; preds = %95, %93, %89
  %102 = landingpad { ptr, i32 }
          cleanup
  %103 = extractvalue { ptr, i32 } %102, 0
  store ptr %103, ptr %8, align 8
  %104 = extractvalue { ptr, i32 } %102, 1
  store i32 %104, ptr %9, align 4
  call void @_ZNSt12__shared_ptrIN6ngraph4NodeELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %19) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  br label %118

105:                                              ; preds = %88
  %106 = load ptr, ptr %10, align 8, !tbaa !5
  %107 = invoke noundef nonnull align 8 dereferenceable(185) ptr @_ZN6ngraph7pattern7MatcheraSERKS1_(ptr noundef nonnull align 8 dereferenceable(185) %106, ptr noundef nonnull align 8 dereferenceable(185) %7)
          to label %108 unwind label %55

108:                                              ; preds = %105
  br label %27, !llvm.loop !11

109:                                              ; preds = %30
  %110 = load i8, ptr %5, align 1, !tbaa !9, !range !13, !noundef !14
  %111 = trunc i8 %110 to i1
  br i1 %111, label %115, label %112

112:                                              ; preds = %109
  %113 = getelementptr inbounds %"class.ngraph::pattern::RecurrentMatcher", ptr %20, i32 0, i32 5
  invoke void @_ZN6ngraph6OutputINS_4NodeEE5resetEv(ptr noundef nonnull align 8 dereferenceable(24) %113)
          to label %114 unwind label %55

114:                                              ; preds = %112
  br label %115

115:                                              ; preds = %114, %109
  %116 = load i8, ptr %5, align 1, !tbaa !9, !range !13, !noundef !14
  %117 = trunc i8 %116 to i1
  call void @_ZNSt3mapISt10shared_ptrIN6ngraph4NodeEENS1_6OutputIS2_EESt4lessIS3_ESaISt4pairIKS3_S5_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %11) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @_ZN6ngraph7pattern7MatcherD2Ev(ptr noundef nonnull align 8 dereferenceable(185) %7) #6
  call void @llvm.lifetime.end.p0(i64 192, ptr %7) #6
  call void @_ZN6ngraph7pattern7MatcherD2Ev(ptr noundef nonnull align 8 dereferenceable(185) %6) #6
  call void @llvm.lifetime.end.p0(i64 192, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %5) #6
  ret i1 %117

118:                                              ; preds = %101, %77, %55
  call void @_ZNSt3mapISt10shared_ptrIN6ngraph4NodeEENS1_6OutputIS2_EESt4lessIS3_ESaISt4pairIKS3_S5_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %11) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @_ZN6ngraph7pattern7MatcherD2Ev(ptr noundef nonnull align 8 dereferenceable(185) %7) #6
  br label %119

119:                                              ; preds = %118, %51
  call void @llvm.lifetime.end.p0(i64 192, ptr %7) #6
  call void @_ZN6ngraph7pattern7MatcherD2Ev(ptr noundef nonnull align 8 dereferenceable(185) %6) #6
  call void @llvm.lifetime.end.p0(i64 192, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %5) #6
  br label %120

120:                                              ; preds = %119
  %121 = load ptr, ptr %8, align 8
  %122 = load i32, ptr %9, align 4
  %123 = insertvalue { ptr, i32 } poison, ptr %121, 0
  %124 = insertvalue { ptr, i32 } %123, i32 %122, 1
  resume { ptr, i32 } %124
}

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

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

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

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(185) ptr @_ZN6ngraph7pattern7MatcheraSERKS1_(ptr noundef nonnull align 8 dereferenceable(185), ptr noundef nonnull align 8 dereferenceable(185)) #5 align 2

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

declare void @_ZN6ngraph7pattern7MatcherC1ERNS_6OutputINS_4NodeEEE(ptr, ptr)

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

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

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


; 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.ngraph::pattern::Matcher" = type <{ ptr, %"class.ngraph::Output", %"class.ngraph::Output", %"class.std::map", %"class.std::vector", %"class.std::vector.3", %"class.std::__cxx11::basic_string", i8, [7 x i8] }>
%"class.ngraph::Output" = type { %"class.std::shared_ptr", i64 }
%"class.std::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<std::shared_ptr<ngraph::Node>, std::pair<const std::shared_ptr<ngraph::Node>, ngraph::Output<Node>>, std::_Select1st<std::pair<const std::shared_ptr<ngraph::Node>, ngraph::Output<Node>>>, std::less<std::shared_ptr<ngraph::Node>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::shared_ptr<ngraph::Node>, std::pair<const std::shared_ptr<ngraph::Node>, ngraph::Output<Node>>, std::_Select1st<std::pair<const std::shared_ptr<ngraph::Node>, ngraph::Output<Node>>>, std::less<std::shared_ptr<ngraph::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 }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::map<std::shared_ptr<ngraph::Node>, ngraph::Output<Node>>, std::allocator<std::map<std::shared_ptr<ngraph::Node>, ngraph::Output<Node>>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::map<std::shared_ptr<ngraph::Node>, ngraph::Output<Node>>, std::allocator<std::map<std::shared_ptr<ngraph::Node>, ngraph::Output<Node>>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::map<std::shared_ptr<ngraph::Node>, ngraph::Output<Node>>, std::allocator<std::map<std::shared_ptr<ngraph::Node>, ngraph::Output<Node>>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::map<std::shared_ptr<ngraph::Node>, ngraph::Output<Node>>, std::allocator<std::map<std::shared_ptr<ngraph::Node>, ngraph::Output<Node>>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.3" = type { %"struct.std::_Vector_base.4" }
%"struct.std::_Vector_base.4" = type { %"struct.std::_Vector_base<ngraph::Output<Node>, std::allocator<ngraph::Output<Node>>>::_Vector_impl" }
%"struct.std::_Vector_base<ngraph::Output<Node>, std::allocator<ngraph::Output<Node>>>::_Vector_impl" = type { %"struct.std::_Vector_base<ngraph::Output<Node>, std::allocator<ngraph::Output<Node>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<ngraph::Output<Node>, std::allocator<ngraph::Output<Node>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"struct.std::_Rb_tree_iterator" = type { ptr }
%"struct.std::pair" = type { %"class.std::shared_ptr", %"class.ngraph::Output" }
%"struct.std::_Rb_tree_const_iterator.120" = type { ptr }

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN6ngraph7pattern7Matcher5matchERKNS_6OutputINS_4NodeEEERKSt3mapISt10shared_ptrIS3_ES4_St4lessIS9_ESaISt4pairIKS9_S4_EEE(ptr noundef nonnull align 8 dereferenceable(185), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #2 align 2

declare void @_ZN6ngraph6OutputINS_4NodeEE5resetEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZN6ngraph6OutputINS_4NodeEEaSERKS2_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3 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 #0 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN6ngraph7pattern16RecurrentMatcher5matchENS_6OutputINS_4NodeEEE(ptr noundef nonnull align 8 dereferenceable(184) %0, ptr noundef %1) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.ngraph::pattern::Matcher", align 8
  %4 = alloca %"class.ngraph::pattern::Matcher", align 8
  %5 = alloca %"class.std::map", align 8
  %6 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %7 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %8 = alloca %"struct.std::pair", align 8
  %9 = alloca %"struct.std::_Rb_tree_const_iterator.120", align 8
  %10 = alloca %"struct.std::_Rb_tree_const_iterator.120", align 8
  %11 = alloca %"class.std::shared_ptr", align 8
  call void @llvm.lifetime.start.p0(i64 192, ptr nonnull %3) #6
  call void @_ZN6ngraph7pattern7MatcherC1ERNS_6OutputINS_4NodeEEE(ptr noundef nonnull align 8 dereferenceable(185) %3, ptr noundef nonnull align 8 dereferenceable(24) %0)
  call void @llvm.lifetime.start.p0(i64 192, ptr nonnull %4) #6
  %12 = getelementptr inbounds i8, ptr %0, i64 24
  invoke void @_ZN6ngraph7pattern7MatcherC1ERNS_6OutputINS_4NodeEEE(ptr noundef nonnull align 8 dereferenceable(185) %4, ptr noundef nonnull align 8 dereferenceable(24) %12)
          to label %13 unwind label %35

13:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %5) #6
  call void @_ZNSt3mapISt10shared_ptrIN6ngraph4NodeEENS1_6OutputIS2_EESt4lessIS3_ESaISt4pairIKS3_S5_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %5) #6
  %14 = getelementptr inbounds i8, ptr %0, i64 112
  call void @_ZNSt3mapISt10shared_ptrIN6ngraph4NodeEESt6vectorINS1_6OutputIS2_EESaIS6_EESt4lessIS3_ESaISt4pairIKS3_S8_EEE5clearEv(ptr noundef nonnull align 8 dereferenceable(48) %14) #6
  %15 = getelementptr inbounds i8, ptr %0, i64 160
  %16 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN6ngraph6OutputINS_4NodeEEaSERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %15, ptr noundef nonnull align 8 dereferenceable(24) %1) #6
  %17 = getelementptr inbounds i8, ptr %0, i64 48
  %18 = getelementptr inbounds i8, ptr %8, i64 16
  %19 = getelementptr inbounds i8, ptr %0, i64 64
  br label %20

20:                                               ; preds = %._crit_edge23, %13
  %.0 = phi i1 [ false, %13 ], [ true, %._crit_edge23 ]
  %21 = invoke noundef zeroext i1 @_ZN6ngraph7pattern7Matcher5matchERKNS_6OutputINS_4NodeEEERKSt3mapISt10shared_ptrIS3_ES4_St4lessIS9_ESaISt4pairIKS9_S4_EEE(ptr noundef nonnull align 8 dereferenceable(185) %3, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(48) %5)
          to label %22 unwind label %.loopexit

22:                                               ; preds = %20
  br i1 %21, label %23, label %57

23:                                               ; preds = %22
  %24 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZN6ngraph7pattern7Matcher21get_pattern_value_mapEv(ptr noundef nonnull align 8 dereferenceable(185) %3)
  %25 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt3mapISt10shared_ptrIN6ngraph4NodeEENS1_6OutputIS2_EESt4lessIS3_ESaISt4pairIKS3_S5_EEEixERS9_(ptr noundef nonnull align 8 dereferenceable(48) %24, ptr noundef nonnull align 8 dereferenceable(16) %17)
          to label %26 unwind label %.loopexit

26:                                               ; preds = %23
  %27 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN6ngraph6OutputINS_4NodeEEaSERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(24) %25) #6
  %28 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZN6ngraph7pattern7Matcher21get_pattern_value_mapEv(ptr noundef nonnull align 8 dereferenceable(185) %3)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #6
  %29 = call ptr @_ZNSt3mapISt10shared_ptrIN6ngraph4NodeEENS1_6OutputIS2_EESt4lessIS3_ESaISt4pairIKS3_S5_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %28) #6
  store ptr %29, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #6
  %30 = call ptr @_ZNSt3mapISt10shared_ptrIN6ngraph4NodeEENS1_6OutputIS2_EESt4lessIS3_ESaISt4pairIKS3_S5_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %28) #6
  store ptr %30, ptr %7, align 8
  %31 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKSt10shared_ptrIN6ngraph4NodeEENS2_6OutputIS3_EEEESB_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #6
  br i1 %31, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %40, %26
  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 @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #6
  %32 = call ptr @_ZNKSt3setISt10shared_ptrIN6ngraph4NodeEESt4lessIS3_ESaIS3_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %19) #6
  store ptr %32, ptr %9, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #6
  %33 = call ptr @_ZNKSt3setISt10shared_ptrIN6ngraph4NodeEESt4lessIS3_ESaIS3_EE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %19) #6
  store ptr %33, ptr %10, align 8
  %34 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorISt10shared_ptrIN6ngraph4NodeEEES6_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #6
  br i1 %34, label %.lr.ph22, label %._crit_edge23

35:                                               ; preds = %2
  %36 = landingpad { ptr, i32 }
          cleanup
  br label %61

.loopexit:                                        ; preds = %20, %23, %._crit_edge23
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %60

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

.lr.ph:                                           ; preds = %26, %40
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %8) #6
  %37 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKSt10shared_ptrIN6ngraph4NodeEENS2_6OutputIS3_EEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #6
  call void @_ZNSt4pairIKSt10shared_ptrIN6ngraph4NodeEENS1_6OutputIS2_EEEC2ERKS7_(ptr noundef nonnull align 8 dereferenceable(40) %8, ptr noundef nonnull align 8 dereferenceable(40) %37) #6
  %38 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt3mapISt10shared_ptrIN6ngraph4NodeEESt6vectorINS1_6OutputIS2_EESaIS6_EESt4lessIS3_ESaISt4pairIKS3_S8_EEEixERSC_(ptr noundef nonnull align 8 dereferenceable(48) %14, ptr noundef nonnull align 8 dereferenceable(16) %8)
          to label %39 unwind label %43

39:                                               ; preds = %.lr.ph
  invoke void @_ZNSt6vectorIN6ngraph6OutputINS0_4NodeEEESaIS3_EE9push_backERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %38, ptr noundef nonnull align 8 dereferenceable(24) %18)
          to label %40 unwind label %43

40:                                               ; preds = %39
  call void @_ZNSt4pairIKSt10shared_ptrIN6ngraph4NodeEENS1_6OutputIS2_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %8) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %8) #6
  %41 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKSt10shared_ptrIN6ngraph4NodeEENS2_6OutputIS3_EEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #6
  %42 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKSt10shared_ptrIN6ngraph4NodeEENS2_6OutputIS3_EEEESB_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #6
  br i1 %42, label %.lr.ph, label %._crit_edge

43:                                               ; preds = %39, %.lr.ph
  %44 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt4pairIKSt10shared_ptrIN6ngraph4NodeEENS1_6OutputIS2_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %8) #6
  call void @llvm.lifetime.end.p0(i64 40, 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
  br label %60

._crit_edge23:                                    ; preds = %51, %._crit_edge
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  %45 = invoke noundef nonnull align 8 dereferenceable(185) ptr @_ZN6ngraph7pattern7MatcheraSERKS1_(ptr noundef nonnull align 8 dereferenceable(185) %3, ptr noundef nonnull align 8 dereferenceable(185) %4)
          to label %20 unwind label %.loopexit, !llvm.loop !5

.lr.ph22:                                         ; preds = %._crit_edge, %51
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #6
  %46 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt23_Rb_tree_const_iteratorISt10shared_ptrIN6ngraph4NodeEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #6
  call void @_ZNSt10shared_ptrIN6ngraph4NodeEEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef nonnull align 8 dereferenceable(16) %46) #6
  %47 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZN6ngraph7pattern7Matcher21get_pattern_value_mapEv(ptr noundef nonnull align 8 dereferenceable(185) %3)
  %48 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt3mapISt10shared_ptrIN6ngraph4NodeEENS1_6OutputIS2_EESt4lessIS3_ESaISt4pairIKS3_S5_EEEixERS9_(ptr noundef nonnull align 8 dereferenceable(48) %47, ptr noundef nonnull align 8 dereferenceable(16) %11)
          to label %49 unwind label %55

49:                                               ; preds = %.lr.ph22
  %50 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt3mapISt10shared_ptrIN6ngraph4NodeEENS1_6OutputIS2_EESt4lessIS3_ESaISt4pairIKS3_S5_EEEixERS9_(ptr noundef nonnull align 8 dereferenceable(48) %5, ptr noundef nonnull align 8 dereferenceable(16) %11)
          to label %51 unwind label %55

51:                                               ; preds = %49
  %52 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN6ngraph6OutputINS_4NodeEEaSERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %50, ptr noundef nonnull align 8 dereferenceable(24) %48) #6
  call void @_ZNSt12__shared_ptrIN6ngraph4NodeELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %11) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #6
  %53 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt23_Rb_tree_const_iteratorISt10shared_ptrIN6ngraph4NodeEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #6
  %54 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorISt10shared_ptrIN6ngraph4NodeEEES6_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #6
  br i1 %54, label %.lr.ph22, label %._crit_edge23

55:                                               ; preds = %49, %.lr.ph22
  %56 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt12__shared_ptrIN6ngraph4NodeELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %11) #6
  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
  br label %60

57:                                               ; preds = %22
  br i1 %.0, label %59, label %58

58:                                               ; preds = %57
  invoke void @_ZN6ngraph6OutputINS_4NodeEE5resetEv(ptr noundef nonnull align 8 dereferenceable(24) %15)
          to label %59 unwind label %.loopexit.split-lp

59:                                               ; preds = %58, %57
  call void @_ZNSt3mapISt10shared_ptrIN6ngraph4NodeEENS1_6OutputIS2_EESt4lessIS3_ESaISt4pairIKS3_S5_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %5) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %5) #6
  call void @_ZN6ngraph7pattern7MatcherD2Ev(ptr noundef nonnull align 8 dereferenceable(185) %4) #6
  call void @llvm.lifetime.end.p0(i64 192, ptr nonnull %4) #6
  call void @_ZN6ngraph7pattern7MatcherD2Ev(ptr noundef nonnull align 8 dereferenceable(185) %3) #6
  call void @llvm.lifetime.end.p0(i64 192, ptr nonnull %3) #6
  ret i1 %.0

60:                                               ; preds = %.loopexit, %.loopexit.split-lp, %55, %43
  %.pn = phi { ptr, i32 } [ %44, %43 ], [ %56, %55 ], [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @_ZNSt3mapISt10shared_ptrIN6ngraph4NodeEENS1_6OutputIS2_EESt4lessIS3_ESaISt4pairIKS3_S5_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %5) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %5) #6
  call void @_ZN6ngraph7pattern7MatcherD2Ev(ptr noundef nonnull align 8 dereferenceable(185) %4) #6
  br label %61

61:                                               ; preds = %60, %35
  %.pn.pn = phi { ptr, i32 } [ %.pn, %60 ], [ %36, %35 ]
  call void @llvm.lifetime.end.p0(i64 192, ptr nonnull %4) #6
  call void @_ZN6ngraph7pattern7MatcherD2Ev(ptr noundef nonnull align 8 dereferenceable(185) %3) #6
  call void @llvm.lifetime.end.p0(i64 192, ptr nonnull %3) #6
  resume { ptr, i32 } %.pn.pn
}

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

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

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

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(185) ptr @_ZN6ngraph7pattern7MatcheraSERKS1_(ptr noundef nonnull align 8 dereferenceable(185), ptr noundef nonnull align 8 dereferenceable(185)) local_unnamed_addr #5 align 2

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

declare void @_ZN6ngraph7pattern7MatcherC1ERNS_6OutputINS_4NodeEEE(ptr, ptr) local_unnamed_addr

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}


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