; 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::MatcherState" = type <{ ptr, %"class.std::map", %"class.std::vector", i64, i64, i8, [7 x i8] }>
%"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 }
%"struct.ngraph::NullLogger" = type { i8 }
%"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.__gnu_cxx::__normal_iterator" = type { ptr }
%class.anon = type { i8 }
%class.anon.106 = type { i8 }

@.str.2 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [14 x i8], align 1

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6ngraph7pattern7Matcher11start_matchEv(ptr dead_on_unwind noalias writable sret(%"class.ngraph::pattern::MatcherState") align 8, ptr noundef nonnull align 8 dereferenceable(185)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 1 dereferenceable(1) ptr @_ZN6ngraphlsIRNS_4NodeEEEONS_10NullLoggerES4_OT_(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 8 dereferenceable(680)) #0

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN6ngraph7pattern7Matcher15match_argumentsEPNS_4NodeERKSt10shared_ptrIS2_E(ptr noundef nonnull align 8 dereferenceable(185) %0, ptr noundef %1, ptr noundef nonnull align 8 dereferenceable(16) %2) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca i1, align 1
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca %"struct.ngraph::NullLogger", align 1
  %9 = alloca %"class.std::vector.3", align 8
  %10 = alloca %"class.std::vector.3", align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca %"struct.ngraph::NullLogger", align 1
  %14 = alloca i32, align 4
  %15 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %16 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %17 = alloca %class.anon, align 1
  %18 = alloca %"class.ngraph::pattern::MatcherState", align 8
  %19 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %20 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %21 = alloca %class.anon.106, align 1
  %22 = alloca %"struct.ngraph::NullLogger", align 1
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  %23 = load ptr, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr %8) #6
  %24 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6ngraphlsIA30_cEEONS_10NullLoggerES3_RKT_(ptr noundef nonnull align 1 dereferenceable(1) %8, ptr noundef nonnull align 1 dereferenceable(30) @.str.4)
  %25 = load ptr, ptr %7, align 8, !tbaa !5
  %26 = call noundef nonnull align 8 dereferenceable(680) ptr @_ZNKSt19__shared_ptr_accessIN6ngraph4NodeELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEdeEv(ptr noundef nonnull align 1 dereferenceable(1) %25) #6
  %27 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6ngraphlsIRNS_4NodeEEEONS_10NullLoggerES4_OT_(ptr noundef nonnull align 1 dereferenceable(1) %24, ptr noundef nonnull align 8 dereferenceable(680) %26)
  %28 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6ngraphlsIA14_cEEONS_10NullLoggerES3_RKT_(ptr noundef nonnull align 1 dereferenceable(1) %27, ptr noundef nonnull align 1 dereferenceable(14) @.str.5)
  %29 = load ptr, ptr %6, align 8, !tbaa !5
  %30 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6ngraphlsIRNS_4NodeEEEONS_10NullLoggerES4_OT_(ptr noundef nonnull align 1 dereferenceable(1) %28, ptr noundef nonnull align 8 dereferenceable(680) %29)
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr %9) #6
  %31 = load ptr, ptr %7, align 8, !tbaa !5
  %32 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN6ngraph4NodeELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %31) #6
  call void @_ZNK6ngraph4Node12input_valuesEv(ptr dead_on_unwind writable sret(%"class.std::vector.3") align 8 %9, ptr noundef nonnull align 8 dereferenceable(680) %32)
  call void @llvm.lifetime.start.p0(i64 24, ptr %10) #6
  %33 = load ptr, ptr %6, align 8, !tbaa !5
  invoke void @_ZNK6ngraph4Node12input_valuesEv(ptr dead_on_unwind writable sret(%"class.std::vector.3") align 8 %10, ptr noundef nonnull align 8 dereferenceable(680) %33)
          to label %34 unwind label %50

34:                                               ; preds = %3
  %35 = call noundef i64 @_ZNKSt6vectorIN6ngraph6OutputINS0_4NodeEEESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #6
  %36 = call noundef i64 @_ZNKSt6vectorIN6ngraph6OutputINS0_4NodeEEESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %10) #6
  %37 = icmp ne i64 %35, %36
  br i1 %37, label %38, label %58

38:                                               ; preds = %34
  call void @llvm.lifetime.start.p0(i64 1, ptr %13) #6
  %39 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZN6ngraphlsIA23_cEEONS_10NullLoggerES3_RKT_(ptr noundef nonnull align 1 dereferenceable(1) %13, ptr noundef nonnull align 1 dereferenceable(23) @.str.2)
          to label %40 unwind label %54

40:                                               ; preds = %38
  %41 = load ptr, ptr %7, align 8, !tbaa !5
  %42 = call noundef nonnull align 8 dereferenceable(680) ptr @_ZNKSt19__shared_ptr_accessIN6ngraph4NodeELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEdeEv(ptr noundef nonnull align 1 dereferenceable(1) %41) #6
  %43 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZN6ngraphlsIRNS_4NodeEEEONS_10NullLoggerES4_OT_(ptr noundef nonnull align 1 dereferenceable(1) %39, ptr noundef nonnull align 8 dereferenceable(680) %42)
          to label %44 unwind label %54

44:                                               ; preds = %40
  %45 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZN6ngraphlsIA14_cEEONS_10NullLoggerES3_RKT_(ptr noundef nonnull align 1 dereferenceable(1) %43, ptr noundef nonnull align 1 dereferenceable(14) @.str.5)
          to label %46 unwind label %54

46:                                               ; preds = %44
  %47 = load ptr, ptr %6, align 8, !tbaa !5
  %48 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZN6ngraphlsIRNS_4NodeEEEONS_10NullLoggerES4_OT_(ptr noundef nonnull align 1 dereferenceable(1) %45, ptr noundef nonnull align 8 dereferenceable(680) %47)
          to label %49 unwind label %54

49:                                               ; preds = %46
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #6
  store i1 false, ptr %4, align 1
  store i32 1, ptr %14, align 4
  br label %134

50:                                               ; preds = %3
  %51 = landingpad { ptr, i32 }
          cleanup
  %52 = extractvalue { ptr, i32 } %51, 0
  store ptr %52, ptr %11, align 8
  %53 = extractvalue { ptr, i32 } %51, 1
  store i32 %53, ptr %12, align 4
  br label %137

54:                                               ; preds = %46, %44, %40, %38
  %55 = landingpad { ptr, i32 }
          cleanup
  %56 = extractvalue { ptr, i32 } %55, 0
  store ptr %56, ptr %11, align 8
  %57 = extractvalue { ptr, i32 } %55, 1
  store i32 %57, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #6
  br label %136

58:                                               ; preds = %34
  %59 = load ptr, ptr %7, align 8, !tbaa !5
  %60 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN6ngraph4NodeELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %59) #6
  %61 = load ptr, ptr %60, align 8, !tbaa !9
  %62 = getelementptr inbounds ptr, ptr %61, i64 24
  %63 = load ptr, ptr %62, align 8
  %64 = invoke noundef zeroext i1 %63(ptr noundef nonnull align 8 dereferenceable(680) %60)
          to label %65 unwind label %84

65:                                               ; preds = %58
  br i1 %64, label %66, label %115

66:                                               ; preds = %65
  %67 = invoke ptr @_ZSt5beginISt6vectorIN6ngraph6OutputINS1_4NodeEEESaIS4_EEEDTcldtfp_5beginEERT_(ptr noundef nonnull align 8 dereferenceable(24) %10)
          to label %68 unwind label %84

68:                                               ; preds = %66
  %69 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %15, i32 0, i32 0
  store ptr %67, ptr %69, align 8
  %70 = invoke ptr @_ZSt3endISt6vectorIN6ngraph6OutputINS1_4NodeEEESaIS4_EEEDTcldtfp_3endEERT_(ptr noundef nonnull align 8 dereferenceable(24) %10)
          to label %71 unwind label %84

71:                                               ; preds = %68
  %72 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %16, i32 0, i32 0
  store ptr %70, ptr %72, align 8
  %73 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %15, i32 0, i32 0
  %74 = load ptr, ptr %73, align 8
  %75 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %16, i32 0, i32 0
  %76 = load ptr, ptr %75, align 8
  invoke void @"_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPN6ngraph6OutputINS2_4NodeEEESt6vectorIS5_SaIS5_EEEEZNS2_7pattern7Matcher15match_argumentsEPS4_RKSt10shared_ptrIS4_EE3$_0EvT_SJ_T0_"(ptr %74, ptr %76)
          to label %77 unwind label %84

77:                                               ; preds = %71
  br label %78

78:                                               ; preds = %112, %77
  call void @llvm.lifetime.start.p0(i64 104, ptr %18) #6
  invoke void @_ZN6ngraph7pattern7Matcher11start_matchEv(ptr dead_on_unwind writable sret(%"class.ngraph::pattern::MatcherState") align 8 %18, ptr noundef nonnull align 8 dereferenceable(185) %23)
          to label %79 unwind label %88

79:                                               ; preds = %78
  %80 = invoke noundef zeroext i1 @_ZN6ngraph7pattern7Matcher17match_permutationERKSt6vectorINS_6OutputINS_4NodeEEESaIS5_EES9_(ptr noundef nonnull align 8 dereferenceable(185) %23, ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef nonnull align 8 dereferenceable(24) %9)
          to label %81 unwind label %92

81:                                               ; preds = %79
  br i1 %80, label %82, label %96

82:                                               ; preds = %81
  %83 = call noundef zeroext i1 @_ZN6ngraph7pattern12MatcherState6finishEb(ptr noundef nonnull align 8 dereferenceable(97) %18, i1 noundef zeroext true)
  store i1 %83, ptr %4, align 1
  store i32 1, ptr %14, align 4
  br label %97

84:                                               ; preds = %115, %105, %102, %100, %71, %68, %66, %58
  %85 = landingpad { ptr, i32 }
          cleanup
  %86 = extractvalue { ptr, i32 } %85, 0
  store ptr %86, ptr %11, align 8
  %87 = extractvalue { ptr, i32 } %85, 1
  store i32 %87, ptr %12, align 4
  br label %136

88:                                               ; preds = %78
  %89 = landingpad { ptr, i32 }
          cleanup
  %90 = extractvalue { ptr, i32 } %89, 0
  store ptr %90, ptr %11, align 8
  %91 = extractvalue { ptr, i32 } %89, 1
  store i32 %91, ptr %12, align 4
  br label %114

92:                                               ; preds = %79
  %93 = landingpad { ptr, i32 }
          cleanup
  %94 = extractvalue { ptr, i32 } %93, 0
  store ptr %94, ptr %11, align 8
  %95 = extractvalue { ptr, i32 } %93, 1
  store i32 %95, ptr %12, align 4
  call void @_ZN6ngraph7pattern12MatcherStateD1Ev(ptr noundef nonnull align 8 dereferenceable(97) %18) #6
  br label %114

96:                                               ; preds = %81
  store i32 0, ptr %14, align 4
  br label %97

97:                                               ; preds = %96, %82
  call void @_ZN6ngraph7pattern12MatcherStateD1Ev(ptr noundef nonnull align 8 dereferenceable(97) %18) #6
  call void @llvm.lifetime.end.p0(i64 104, ptr %18) #6
  %98 = load i32, ptr %14, align 4
  switch i32 %98, label %134 [
    i32 0, label %99
  ]

99:                                               ; preds = %97
  br label %100

100:                                              ; preds = %99
  %101 = invoke ptr @_ZSt5beginISt6vectorIN6ngraph6OutputINS1_4NodeEEESaIS4_EEEDTcldtfp_5beginEERT_(ptr noundef nonnull align 8 dereferenceable(24) %10)
          to label %102 unwind label %84

102:                                              ; preds = %100
  %103 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %19, i32 0, i32 0
  store ptr %101, ptr %103, align 8
  %104 = invoke ptr @_ZSt3endISt6vectorIN6ngraph6OutputINS1_4NodeEEESaIS4_EEEDTcldtfp_3endEERT_(ptr noundef nonnull align 8 dereferenceable(24) %10)
          to label %105 unwind label %84

105:                                              ; preds = %102
  %106 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %20, i32 0, i32 0
  store ptr %104, ptr %106, align 8
  %107 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %19, i32 0, i32 0
  %108 = load ptr, ptr %107, align 8
  %109 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %20, i32 0, i32 0
  %110 = load ptr, ptr %109, align 8
  %111 = invoke noundef zeroext i1 @"_ZSt16next_permutationIN9__gnu_cxx17__normal_iteratorIPN6ngraph6OutputINS2_4NodeEEESt6vectorIS5_SaIS5_EEEEZNS2_7pattern7Matcher15match_argumentsEPS4_RKSt10shared_ptrIS4_EE3$_1EbT_SJ_T0_"(ptr %108, ptr %110)
          to label %112 unwind label %84

112:                                              ; preds = %105
  br i1 %111, label %78, label %113, !llvm.loop !11

113:                                              ; preds = %112
  br label %118

114:                                              ; preds = %92, %88
  call void @llvm.lifetime.end.p0(i64 104, ptr %18) #6
  br label %136

115:                                              ; preds = %65
  %116 = invoke noundef zeroext i1 @_ZN6ngraph7pattern7Matcher17match_permutationERKSt6vectorINS_6OutputINS_4NodeEEESaIS5_EES9_(ptr noundef nonnull align 8 dereferenceable(185) %23, ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef nonnull align 8 dereferenceable(24) %9)
          to label %117 unwind label %84

117:                                              ; preds = %115
  store i1 %116, ptr %4, align 1
  store i32 1, ptr %14, align 4
  br label %134

118:                                              ; preds = %113
  call void @llvm.lifetime.start.p0(i64 1, ptr %22) #6
  %119 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZN6ngraphlsIA23_cEEONS_10NullLoggerES3_RKT_(ptr noundef nonnull align 1 dereferenceable(1) %22, ptr noundef nonnull align 1 dereferenceable(23) @.str.2)
          to label %120 unwind label %130

120:                                              ; preds = %118
  %121 = load ptr, ptr %7, align 8, !tbaa !5
  %122 = call noundef nonnull align 8 dereferenceable(680) ptr @_ZNKSt19__shared_ptr_accessIN6ngraph4NodeELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEdeEv(ptr noundef nonnull align 1 dereferenceable(1) %121) #6
  %123 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZN6ngraphlsIRNS_4NodeEEEONS_10NullLoggerES4_OT_(ptr noundef nonnull align 1 dereferenceable(1) %119, ptr noundef nonnull align 8 dereferenceable(680) %122)
          to label %124 unwind label %130

124:                                              ; preds = %120
  %125 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZN6ngraphlsIA14_cEEONS_10NullLoggerES3_RKT_(ptr noundef nonnull align 1 dereferenceable(1) %123, ptr noundef nonnull align 1 dereferenceable(14) @.str.5)
          to label %126 unwind label %130

126:                                              ; preds = %124
  %127 = load ptr, ptr %6, align 8, !tbaa !5
  %128 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZN6ngraphlsIRNS_4NodeEEEONS_10NullLoggerES4_OT_(ptr noundef nonnull align 1 dereferenceable(1) %125, ptr noundef nonnull align 8 dereferenceable(680) %127)
          to label %129 unwind label %130

129:                                              ; preds = %126
  call void @llvm.lifetime.end.p0(i64 1, ptr %22) #6
  store i1 false, ptr %4, align 1
  store i32 1, ptr %14, align 4
  br label %134

130:                                              ; preds = %126, %124, %120, %118
  %131 = landingpad { ptr, i32 }
          cleanup
  %132 = extractvalue { ptr, i32 } %131, 0
  store ptr %132, ptr %11, align 8
  %133 = extractvalue { ptr, i32 } %131, 1
  store i32 %133, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %22) #6
  br label %136

134:                                              ; preds = %129, %117, %97, %49
  call void @_ZNSt6vectorIN6ngraph6OutputINS0_4NodeEEESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #6
  call void @_ZNSt6vectorIN6ngraph6OutputINS0_4NodeEEESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %9) #6
  %135 = load i1, ptr %4, align 1
  ret i1 %135

136:                                              ; preds = %130, %114, %84, %54
  call void @_ZNSt6vectorIN6ngraph6OutputINS0_4NodeEEESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #6
  br label %137

137:                                              ; preds = %136, %50
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #6
  call void @_ZNSt6vectorIN6ngraph6OutputINS0_4NodeEEESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %9) #6
  br label %138

138:                                              ; preds = %137
  %139 = load ptr, ptr %11, align 8
  %140 = load i32, ptr %12, align 4
  %141 = insertvalue { ptr, i32 } poison, ptr %139, 0
  %142 = insertvalue { ptr, i32 } %141, i32 %140, 1
  resume { ptr, i32 } %142
}

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

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

declare void @_ZNK6ngraph4Node12input_valuesEv(ptr dead_on_unwind writable sret(%"class.std::vector.3") align 8, ptr noundef nonnull align 8 dereferenceable(680)) #3

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @"_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPN6ngraph6OutputINS2_4NodeEEESt6vectorIS5_SaIS5_EEEEZNS2_7pattern7Matcher15match_argumentsEPS4_RKSt10shared_ptrIS4_EE3$_0EvT_SJ_T0_"(ptr, ptr) #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local ptr @_ZSt5beginISt6vectorIN6ngraph6OutputINS1_4NodeEEESaIS4_EEEDTcldtfp_5beginEERT_(ptr noundef nonnull align 8 dereferenceable(24)) #5

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local ptr @_ZSt3endISt6vectorIN6ngraph6OutputINS1_4NodeEEESaIS4_EEEDTcldtfp_3endEERT_(ptr noundef nonnull align 8 dereferenceable(24)) #5

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef zeroext i1 @"_ZSt16next_permutationIN9__gnu_cxx17__normal_iteratorIPN6ngraph6OutputINS2_4NodeEEESt6vectorIS5_SaIS5_EEEEZNS2_7pattern7Matcher15match_argumentsEPS4_RKSt10shared_ptrIS4_EE3$_1EbT_SJ_T0_"(ptr, ptr) #4

declare void @_ZN6ngraph7pattern12MatcherStateD1Ev(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 = { "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 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"vtable pointer", !8, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"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.ngraph::pattern::MatcherState" = type <{ ptr, %"class.std::map", %"class.std::vector", i64, i64, i8, [7 x i8] }>
%"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 }
%"struct.ngraph::NullLogger" = type { i8 }
%"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 }

@.str.2 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [14 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIN6ngraph6OutputINS0_4NodeEEESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_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 @_ZNSt6vectorIN6ngraph6OutputINS0_4NodeEEESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #0 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 #0 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6ngraph7pattern7Matcher11start_matchEv(ptr dead_on_unwind noalias writable sret(%"class.ngraph::pattern::MatcherState") align 8, ptr noundef nonnull align 8 dereferenceable(185)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 1 dereferenceable(1) ptr @_ZN6ngraphlsIRNS_4NodeEEEONS_10NullLoggerES4_OT_(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 8 dereferenceable(680)) local_unnamed_addr #0

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN6ngraph7pattern7Matcher15match_argumentsEPNS_4NodeERKSt10shared_ptrIS2_E(ptr noundef nonnull align 8 dereferenceable(185) %0, ptr noundef %1, ptr noundef nonnull align 8 dereferenceable(16) %2) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"struct.ngraph::NullLogger", align 1
  %5 = alloca %"class.std::vector.3", align 8
  %6 = alloca %"class.std::vector.3", align 8
  %7 = alloca %"struct.ngraph::NullLogger", align 1
  %8 = alloca %"class.ngraph::pattern::MatcherState", align 8
  %9 = alloca %"struct.ngraph::NullLogger", align 1
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #6
  %10 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6ngraphlsIA30_cEEONS_10NullLoggerES3_RKT_(ptr noundef nonnull align 1 dereferenceable(1) %4, ptr noundef nonnull align 1 dereferenceable(30) @.str.4)
  %11 = call noundef nonnull align 8 dereferenceable(680) ptr @_ZNKSt19__shared_ptr_accessIN6ngraph4NodeELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEdeEv(ptr noundef nonnull align 1 dereferenceable(1) %2) #6
  %12 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6ngraphlsIRNS_4NodeEEEONS_10NullLoggerES4_OT_(ptr noundef nonnull align 1 dereferenceable(1) %10, ptr noundef nonnull align 8 dereferenceable(680) %11)
  %13 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6ngraphlsIA14_cEEONS_10NullLoggerES3_RKT_(ptr noundef nonnull align 1 dereferenceable(1) %12, ptr noundef nonnull align 1 dereferenceable(14) @.str.5)
  %14 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6ngraphlsIRNS_4NodeEEEONS_10NullLoggerES4_OT_(ptr noundef nonnull align 1 dereferenceable(1) %13, ptr noundef nonnull align 8 dereferenceable(680) %1)
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #6
  %15 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN6ngraph4NodeELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %2) #6
  call void @_ZNK6ngraph4Node12input_valuesEv(ptr dead_on_unwind nonnull writable sret(%"class.std::vector.3") align 8 %5, ptr noundef nonnull align 8 dereferenceable(680) %15)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #6
  invoke void @_ZNK6ngraph4Node12input_valuesEv(ptr dead_on_unwind nonnull writable sret(%"class.std::vector.3") align 8 %6, ptr noundef nonnull align 8 dereferenceable(680) %1)
          to label %16 unwind label %25

16:                                               ; preds = %3
  %17 = call noundef i64 @_ZNKSt6vectorIN6ngraph6OutputINS0_4NodeEEESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  %18 = call noundef i64 @_ZNKSt6vectorIN6ngraph6OutputINS0_4NodeEEESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #6
  %.not = icmp eq i64 %17, %18
  br i1 %.not, label %27, label %19

19:                                               ; preds = %16
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %7) #6
  %20 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6ngraphlsIA23_cEEONS_10NullLoggerES3_RKT_(ptr noundef nonnull align 1 dereferenceable(1) %7, ptr noundef nonnull align 1 dereferenceable(23) @.str.2)
  %21 = call noundef nonnull align 8 dereferenceable(680) ptr @_ZNKSt19__shared_ptr_accessIN6ngraph4NodeELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEdeEv(ptr noundef nonnull align 1 dereferenceable(1) %2) #6
  %22 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6ngraphlsIRNS_4NodeEEEONS_10NullLoggerES4_OT_(ptr noundef nonnull align 1 dereferenceable(1) %20, ptr noundef nonnull align 8 dereferenceable(680) %21)
  %23 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6ngraphlsIA14_cEEONS_10NullLoggerES3_RKT_(ptr noundef nonnull align 1 dereferenceable(1) %22, ptr noundef nonnull align 1 dereferenceable(14) @.str.5)
  %24 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6ngraphlsIRNS_4NodeEEEONS_10NullLoggerES4_OT_(ptr noundef nonnull align 1 dereferenceable(1) %23, ptr noundef nonnull align 8 dereferenceable(680) %1)
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #6
  br label %59

25:                                               ; preds = %3
  %26 = landingpad { ptr, i32 }
          cleanup
  br label %61

27:                                               ; preds = %16
  %28 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN6ngraph4NodeELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %2) #6
  %29 = load ptr, ptr %28, align 8, !tbaa !5
  %30 = getelementptr inbounds i8, ptr %29, i64 192
  %31 = load ptr, ptr %30, align 8
  %32 = invoke noundef zeroext i1 %31(ptr noundef nonnull align 8 dereferenceable(680) %28)
          to label %33 unwind label %.loopexit.split-lp

33:                                               ; preds = %27
  br i1 %32, label %34, label %51

34:                                               ; preds = %33
  %35 = call ptr @_ZSt5beginISt6vectorIN6ngraph6OutputINS1_4NodeEEESaIS4_EEEDTcldtfp_5beginEERT_(ptr noundef nonnull align 8 dereferenceable(24) %6)
  %36 = call ptr @_ZSt3endISt6vectorIN6ngraph6OutputINS1_4NodeEEESaIS4_EEEDTcldtfp_3endEERT_(ptr noundef nonnull align 8 dereferenceable(24) %6)
  invoke void @"_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPN6ngraph6OutputINS2_4NodeEEESt6vectorIS5_SaIS5_EEEEZNS2_7pattern7Matcher15match_argumentsEPS4_RKSt10shared_ptrIS4_EE3$_0EvT_SJ_T0_"(ptr %35, ptr %36)
          to label %.preheader unwind label %.loopexit.split-lp

.preheader:                                       ; preds = %34, %49
  call void @llvm.lifetime.start.p0(i64 104, ptr nonnull %8) #6
  invoke void @_ZN6ngraph7pattern7Matcher11start_matchEv(ptr dead_on_unwind nonnull writable sret(%"class.ngraph::pattern::MatcherState") align 8 %8, ptr noundef nonnull align 8 dereferenceable(185) %0)
          to label %37 unwind label %41

37:                                               ; preds = %.preheader
  %38 = invoke noundef zeroext i1 @_ZN6ngraph7pattern7Matcher17match_permutationERKSt6vectorINS_6OutputINS_4NodeEEESaIS5_EES9_(ptr noundef nonnull align 8 dereferenceable(185) %0, ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 8 dereferenceable(24) %5)
          to label %39 unwind label %43

39:                                               ; preds = %37
  br i1 %38, label %.thread, label %45

.thread:                                          ; preds = %39
  %40 = call noundef zeroext i1 @_ZN6ngraph7pattern12MatcherState6finishEb(ptr noundef nonnull align 8 dereferenceable(97) %8, i1 noundef zeroext true)
  call void @_ZN6ngraph7pattern12MatcherStateD1Ev(ptr noundef nonnull align 8 dereferenceable(97) %8) #6
  call void @llvm.lifetime.end.p0(i64 104, ptr nonnull %8) #6
  br label %59

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

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

41:                                               ; preds = %.preheader
  %42 = landingpad { ptr, i32 }
          cleanup
  br label %50

43:                                               ; preds = %37
  %44 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6ngraph7pattern12MatcherStateD1Ev(ptr noundef nonnull align 8 dereferenceable(97) %8) #6
  br label %50

45:                                               ; preds = %39
  call void @_ZN6ngraph7pattern12MatcherStateD1Ev(ptr noundef nonnull align 8 dereferenceable(97) %8) #6
  call void @llvm.lifetime.end.p0(i64 104, ptr nonnull %8) #6
  %46 = call ptr @_ZSt5beginISt6vectorIN6ngraph6OutputINS1_4NodeEEESaIS4_EEEDTcldtfp_5beginEERT_(ptr noundef nonnull align 8 dereferenceable(24) %6)
  %47 = call ptr @_ZSt3endISt6vectorIN6ngraph6OutputINS1_4NodeEEESaIS4_EEEDTcldtfp_3endEERT_(ptr noundef nonnull align 8 dereferenceable(24) %6)
  %48 = invoke noundef zeroext i1 @"_ZSt16next_permutationIN9__gnu_cxx17__normal_iteratorIPN6ngraph6OutputINS2_4NodeEEESt6vectorIS5_SaIS5_EEEEZNS2_7pattern7Matcher15match_argumentsEPS4_RKSt10shared_ptrIS4_EE3$_1EbT_SJ_T0_"(ptr %46, ptr %47)
          to label %49 unwind label %.loopexit

49:                                               ; preds = %45
  br i1 %48, label %.preheader, label %53, !llvm.loop !8

50:                                               ; preds = %43, %41
  %.pn = phi { ptr, i32 } [ %44, %43 ], [ %42, %41 ]
  call void @llvm.lifetime.end.p0(i64 104, ptr nonnull %8) #6
  br label %60

51:                                               ; preds = %33
  %52 = invoke noundef zeroext i1 @_ZN6ngraph7pattern7Matcher17match_permutationERKSt6vectorINS_6OutputINS_4NodeEEESaIS5_EES9_(ptr noundef nonnull align 8 dereferenceable(185) %0, ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 8 dereferenceable(24) %5)
          to label %59 unwind label %.loopexit.split-lp

53:                                               ; preds = %49
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %9) #6
  %54 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6ngraphlsIA23_cEEONS_10NullLoggerES3_RKT_(ptr noundef nonnull align 1 dereferenceable(1) %9, ptr noundef nonnull align 1 dereferenceable(23) @.str.2)
  %55 = call noundef nonnull align 8 dereferenceable(680) ptr @_ZNKSt19__shared_ptr_accessIN6ngraph4NodeELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEdeEv(ptr noundef nonnull align 1 dereferenceable(1) %2) #6
  %56 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6ngraphlsIRNS_4NodeEEEONS_10NullLoggerES4_OT_(ptr noundef nonnull align 1 dereferenceable(1) %54, ptr noundef nonnull align 8 dereferenceable(680) %55)
  %57 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6ngraphlsIA14_cEEONS_10NullLoggerES3_RKT_(ptr noundef nonnull align 1 dereferenceable(1) %56, ptr noundef nonnull align 1 dereferenceable(14) @.str.5)
  %58 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6ngraphlsIRNS_4NodeEEEONS_10NullLoggerES4_OT_(ptr noundef nonnull align 1 dereferenceable(1) %57, ptr noundef nonnull align 8 dereferenceable(680) %1)
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #6
  br label %59

59:                                               ; preds = %.thread, %51, %53, %19
  %.2 = phi i1 [ false, %19 ], [ false, %53 ], [ %52, %51 ], [ %40, %.thread ]
  call void @_ZNSt6vectorIN6ngraph6OutputINS0_4NodeEEESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #6
  call void @_ZNSt6vectorIN6ngraph6OutputINS0_4NodeEEESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #6
  ret i1 %.2

60:                                               ; preds = %.loopexit, %.loopexit.split-lp, %50
  %.pn24 = phi { ptr, i32 } [ %.pn, %50 ], [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @_ZNSt6vectorIN6ngraph6OutputINS0_4NodeEEESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #6
  br label %61

61:                                               ; preds = %60, %25
  %.pn24.pn = phi { ptr, i32 } [ %.pn24, %60 ], [ %26, %25 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #6
  call void @_ZNSt6vectorIN6ngraph6OutputINS0_4NodeEEESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #6
  resume { ptr, i32 } %.pn24.pn
}

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

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

declare void @_ZNK6ngraph4Node12input_valuesEv(ptr dead_on_unwind writable sret(%"class.std::vector.3") align 8, ptr noundef nonnull align 8 dereferenceable(680)) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @"_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPN6ngraph6OutputINS2_4NodeEEESt6vectorIS5_SaIS5_EEEEZNS2_7pattern7Matcher15match_argumentsEPS4_RKSt10shared_ptrIS4_EE3$_0EvT_SJ_T0_"(ptr, ptr) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local ptr @_ZSt5beginISt6vectorIN6ngraph6OutputINS1_4NodeEEESaIS4_EEEDTcldtfp_5beginEERT_(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #5

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local ptr @_ZSt3endISt6vectorIN6ngraph6OutputINS1_4NodeEEESaIS4_EEEDTcldtfp_3endEERT_(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #5

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef zeroext i1 @"_ZSt16next_permutationIN9__gnu_cxx17__normal_iteratorIPN6ngraph6OutputINS2_4NodeEEESt6vectorIS5_SaIS5_EEEEZNS2_7pattern7Matcher15match_argumentsEPS4_RKSt10shared_ptrIS4_EE3$_1EbT_SJ_T0_"(ptr, ptr) local_unnamed_addr #4

declare void @_ZN6ngraph7pattern12MatcherStateD1Ev(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 = { "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 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 = !{!6, !6, i64 0}
!6 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = distinct !{!8, !9}
!9 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: CorrelatedValuePropagationPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass