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

; 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"

%"struct.ngraph::DiscreteTypeInfo" = type { ptr, i64 }
%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<ngraph::DiscreteTypeInfo, std::pair<const ngraph::DiscreteTypeInfo, std::function<bool (const std::shared_ptr<ngraph::Node> &)>>, std::_Select1st<std::pair<const ngraph::DiscreteTypeInfo, std::function<bool (const std::shared_ptr<ngraph::Node> &)>>>, std::less<ngraph::DiscreteTypeInfo>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<ngraph::DiscreteTypeInfo, std::pair<const ngraph::DiscreteTypeInfo, std::function<bool (const std::shared_ptr<ngraph::Node> &)>>, std::_Select1st<std::pair<const ngraph::DiscreteTypeInfo, std::function<bool (const std::shared_ptr<ngraph::Node> &)>>>, std::less<ngraph::DiscreteTypeInfo>>::_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::initializer_list.0" = type { ptr, i64 }
%"struct.std::pair" = type { %"struct.ngraph::DiscreteTypeInfo", %"class.std::function" }
%"class.std::function" = type { %"class.std::_Function_base", ptr }
%"class.std::_Function_base" = type { %"union.std::_Any_data", ptr }
%"union.std::_Any_data" = type { %"union.std::_Nocopy_types" }
%"union.std::_Nocopy_types" = type { { i64, i64 } }
%"struct.std::less" = type { i8 }
%"class.std::allocator.1" = type { i8 }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::shared_ptr<ngraph::Node>, std::allocator<std::shared_ptr<ngraph::Node>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::shared_ptr<ngraph::Node>, std::allocator<std::shared_ptr<ngraph::Node>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::shared_ptr<ngraph::Node>, std::allocator<std::shared_ptr<ngraph::Node>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::shared_ptr<ngraph::Node>, std::allocator<std::shared_ptr<ngraph::Node>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"struct.std::_Rb_tree_const_iterator" = type { ptr }

@__dso_handle = external hidden global i8
@_ZN6ngraph2op2v013BroadcastLike9type_infoE = external dso_local constant %"struct.ngraph::DiscreteTypeInfo", align 8
@_ZN6ngraph2op2v018ScalarConstantLike9type_infoE = external dso_local constant %"struct.ngraph::DiscreteTypeInfo", align 8
@_ZZN6ngraph4pass15LikeReplacement15run_on_functionESt10shared_ptrINS_8FunctionEEE10dispatcher = external hidden global %"class.std::map", align 8
@_ZGVZN6ngraph4pass15LikeReplacement15run_on_functionESt10shared_ptrINS_8FunctionEEE10dispatcher = external hidden global i64, align 8

; Function Attrs: nounwind
declare i32 @__cxa_atexit(ptr, ptr, ptr) #0

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

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

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZL22replace_broadcast_likeRKSt10shared_ptrIN6ngraph4NodeEE(ptr noundef nonnull align 8 dereferenceable(16)) #2

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZL28replace_scalar_constant_likeRKSt10shared_ptrIN6ngraph4NodeEE(ptr noundef nonnull align 8 dereferenceable(16)) #2

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN6ngraph4pass15LikeReplacement15run_on_functionESt10shared_ptrINS_8FunctionEE(ptr noundef nonnull align 8 dereferenceable(40) %0, ptr noundef %1) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca %"class.std::initializer_list.0", align 8
  %6 = alloca [2 x %"struct.std::pair"], align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca %"struct.std::less", align 1
  %11 = alloca %"class.std::allocator.1", align 1
  %12 = alloca i8, align 1
  %13 = alloca ptr, align 8
  %14 = alloca %"class.std::vector", align 8
  %15 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %16 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %17 = alloca ptr, align 8
  %18 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %19 = alloca %"struct.std::_Rb_tree_const_iterator", 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
  %21 = load atomic i8, ptr @_ZGVZN6ngraph4pass15LikeReplacement15run_on_functionESt10shared_ptrINS_8FunctionEEE10dispatcher acquire, align 8
  %22 = icmp eq i8 %21, 0
  br i1 %22, label %23, label %45, !prof !9

23:                                               ; preds = %2
  %24 = call i32 @__cxa_guard_acquire(ptr @_ZGVZN6ngraph4pass15LikeReplacement15run_on_functionESt10shared_ptrINS_8FunctionEEE10dispatcher) #0
  %25 = icmp ne i32 %24, 0
  br i1 %25, label %26, label %45

26:                                               ; preds = %23
  call void @llvm.lifetime.start.p0(i64 96, ptr %6) #0
  store ptr %6, ptr %7, align 8
  invoke void @_ZNSt4pairIKN6ngraph16DiscreteTypeInfoESt8functionIFbRKSt10shared_ptrINS0_4NodeEEEEEC2IRS2_RS9_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISG_SH_EEEbE4typeELb1EEEOSG_OSH_(ptr noundef nonnull align 8 dereferenceable(48) %6, ptr noundef nonnull align 8 dereferenceable(16) @_ZN6ngraph2op2v013BroadcastLike9type_infoE, ptr noundef nonnull @_ZL22replace_broadcast_likeRKSt10shared_ptrIN6ngraph4NodeEE)
          to label %27 unwind label %56

27:                                               ; preds = %26
  %28 = getelementptr inbounds %"struct.std::pair", ptr %6, i64 1
  store ptr %28, ptr %7, align 8
  invoke void @_ZNSt4pairIKN6ngraph16DiscreteTypeInfoESt8functionIFbRKSt10shared_ptrINS0_4NodeEEEEEC2IRS2_RS9_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISG_SH_EEEbE4typeELb1EEEOSG_OSH_(ptr noundef nonnull align 8 dereferenceable(48) %28, ptr noundef nonnull align 8 dereferenceable(16) @_ZN6ngraph2op2v018ScalarConstantLike9type_infoE, ptr noundef nonnull @_ZL28replace_scalar_constant_likeRKSt10shared_ptrIN6ngraph4NodeEE)
          to label %29 unwind label %56

29:                                               ; preds = %27
  %30 = getelementptr inbounds %"class.std::initializer_list.0", ptr %5, i32 0, i32 0
  store ptr %6, ptr %30, align 8, !tbaa !10
  %31 = getelementptr inbounds %"class.std::initializer_list.0", ptr %5, i32 0, i32 1
  store i64 2, ptr %31, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 1, ptr %10) #0
  call void @llvm.lifetime.start.p0(i64 1, ptr %11) #0
  call void @_ZNSaISt4pairIKN6ngraph16DiscreteTypeInfoESt8functionIFbRKSt10shared_ptrINS0_4NodeEEEEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #0
  %32 = getelementptr inbounds { ptr, i64 }, ptr %5, i32 0, i32 0
  %33 = load ptr, ptr %32, align 8
  %34 = getelementptr inbounds { ptr, i64 }, ptr %5, i32 0, i32 1
  %35 = load i64, ptr %34, align 8
  invoke void @_ZNSt3mapIN6ngraph16DiscreteTypeInfoESt8functionIFbRKSt10shared_ptrINS0_4NodeEEEESt4lessIS1_ESaISt4pairIKS1_S9_EEEC2ESt16initializer_listISE_ERKSB_RKSF_(ptr noundef nonnull align 8 dereferenceable(48) @_ZZN6ngraph4pass15LikeReplacement15run_on_functionESt10shared_ptrINS_8FunctionEEE10dispatcher, ptr %33, i64 %35, ptr noundef nonnull align 1 dereferenceable(1) %10, ptr noundef nonnull align 1 dereferenceable(1) %11)
          to label %36 unwind label %67

36:                                               ; preds = %29
  call void @_ZNSt15__new_allocatorISt4pairIKN6ngraph16DiscreteTypeInfoESt8functionIFbRKSt10shared_ptrINS1_4NodeEEEEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #0
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #0
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #0
  %37 = getelementptr inbounds [2 x %"struct.std::pair"], ptr %6, i32 0, i32 0
  %38 = getelementptr inbounds %"struct.std::pair", ptr %37, i64 2
  br label %39

39:                                               ; preds = %39, %36
  %40 = phi ptr [ %38, %36 ], [ %41, %39 ]
  %41 = getelementptr inbounds %"struct.std::pair", ptr %40, i64 -1
  call void @_ZNSt4pairIKN6ngraph16DiscreteTypeInfoESt8functionIFbRKSt10shared_ptrINS0_4NodeEEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %41) #0
  %42 = icmp eq ptr %41, %37
  br i1 %42, label %43, label %39

43:                                               ; preds = %39
  call void @llvm.lifetime.end.p0(i64 96, ptr %6) #0
  %44 = call i32 @__cxa_atexit(ptr @_ZNSt3mapIN6ngraph16DiscreteTypeInfoESt8functionIFbRKSt10shared_ptrINS0_4NodeEEEESt4lessIS1_ESaISt4pairIKS1_S9_EEED2Ev, ptr @_ZZN6ngraph4pass15LikeReplacement15run_on_functionESt10shared_ptrINS_8FunctionEEE10dispatcher, ptr @__dso_handle) #0
  call void @__cxa_guard_release(ptr @_ZGVZN6ngraph4pass15LikeReplacement15run_on_functionESt10shared_ptrINS_8FunctionEEE10dispatcher) #0
  br label %45

45:                                               ; preds = %43, %23, %2
  call void @llvm.lifetime.start.p0(i64 1, ptr %12) #0
  store i8 0, ptr %12, align 1, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #0
  call void @llvm.lifetime.start.p0(i64 24, ptr %14) #0
  %46 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN6ngraph8FunctionELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %1) #0
  call void @_ZNK6ngraph8Function7get_opsEv(ptr dead_on_unwind writable sret(%"class.std::vector") align 8 %14, ptr noundef nonnull align 8 dereferenceable(176) %46)
  store ptr %14, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #0
  %47 = load ptr, ptr %13, align 8, !tbaa !5
  %48 = call ptr @_ZNSt6vectorISt10shared_ptrIN6ngraph4NodeEESaIS3_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %47) #0
  %49 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %15, i32 0, i32 0
  store ptr %48, ptr %49, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #0
  %50 = load ptr, ptr %13, align 8, !tbaa !5
  %51 = call ptr @_ZNSt6vectorISt10shared_ptrIN6ngraph4NodeEESaIS3_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %50) #0
  %52 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %16, i32 0, i32 0
  store ptr %51, ptr %52, align 8
  br label %53

53:                                               ; preds = %111, %45
  %54 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt10shared_ptrIN6ngraph4NodeEESt6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 8 dereferenceable(8) %16) #0
  br i1 %54, label %79, label %55

55:                                               ; preds = %53
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #0
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #0
  call void @_ZNSt6vectorISt10shared_ptrIN6ngraph4NodeEESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #0
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #0
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #0
  br label %113

56:                                               ; preds = %27, %26
  %57 = landingpad { ptr, i32 }
          cleanup
  %58 = extractvalue { ptr, i32 } %57, 0
  store ptr %58, ptr %8, align 8
  %59 = extractvalue { ptr, i32 } %57, 1
  store i32 %59, ptr %9, align 4
  %60 = load ptr, ptr %7, align 8
  %61 = icmp eq ptr %6, %60
  br i1 %61, label %66, label %62

62:                                               ; preds = %62, %56
  %63 = phi ptr [ %60, %56 ], [ %64, %62 ]
  %64 = getelementptr inbounds %"struct.std::pair", ptr %63, i64 -1
  call void @_ZNSt4pairIKN6ngraph16DiscreteTypeInfoESt8functionIFbRKSt10shared_ptrINS0_4NodeEEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %64) #0
  %65 = icmp eq ptr %64, %6
  br i1 %65, label %66, label %62

66:                                               ; preds = %62, %56
  br label %78

67:                                               ; preds = %29
  %68 = landingpad { ptr, i32 }
          cleanup
  %69 = extractvalue { ptr, i32 } %68, 0
  store ptr %69, ptr %8, align 8
  %70 = extractvalue { ptr, i32 } %68, 1
  store i32 %70, ptr %9, align 4
  call void @_ZNSt15__new_allocatorISt4pairIKN6ngraph16DiscreteTypeInfoESt8functionIFbRKSt10shared_ptrINS1_4NodeEEEEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #0
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #0
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #0
  %71 = getelementptr inbounds [2 x %"struct.std::pair"], ptr %6, i32 0, i32 0
  %72 = getelementptr inbounds %"struct.std::pair", ptr %71, i64 2
  br label %73

73:                                               ; preds = %73, %67
  %74 = phi ptr [ %72, %67 ], [ %75, %73 ]
  %75 = getelementptr inbounds %"struct.std::pair", ptr %74, i64 -1
  call void @_ZNSt4pairIKN6ngraph16DiscreteTypeInfoESt8functionIFbRKSt10shared_ptrINS0_4NodeEEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %75) #0
  %76 = icmp eq ptr %75, %71
  br i1 %76, label %77, label %73

77:                                               ; preds = %73
  br label %78

78:                                               ; preds = %77, %66
  call void @llvm.lifetime.end.p0(i64 96, ptr %6) #0
  call void @__cxa_guard_abort(ptr @_ZGVZN6ngraph4pass15LikeReplacement15run_on_functionESt10shared_ptrINS_8FunctionEEE10dispatcher) #0
  br label %116

79:                                               ; preds = %53
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #0
  %80 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt10shared_ptrIN6ngraph4NodeEESt6vectorIS4_SaIS4_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %15) #0
  store ptr %80, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #0
  %81 = load ptr, ptr %17, align 8, !tbaa !5
  %82 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN6ngraph4NodeELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %81) #0
  %83 = load ptr, ptr %82, align 8, !tbaa !16
  %84 = getelementptr inbounds ptr, ptr %83, i64 16
  %85 = load ptr, ptr %84, align 8
  %86 = invoke noundef nonnull align 8 dereferenceable(16) ptr %85(ptr noundef nonnull align 8 dereferenceable(680) %82)
          to label %87 unwind label %106

87:                                               ; preds = %79
  %88 = invoke ptr @_ZNKSt3mapIN6ngraph16DiscreteTypeInfoESt8functionIFbRKSt10shared_ptrINS0_4NodeEEEESt4lessIS1_ESaISt4pairIKS1_S9_EEE4findERSD_(ptr noundef nonnull align 8 dereferenceable(48) @_ZZN6ngraph4pass15LikeReplacement15run_on_functionESt10shared_ptrINS_8FunctionEEE10dispatcher, ptr noundef nonnull align 8 dereferenceable(16) %86)
          to label %89 unwind label %106

89:                                               ; preds = %87
  %90 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %18, i32 0, i32 0
  store ptr %88, ptr %90, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #0
  %91 = call ptr @_ZNKSt3mapIN6ngraph16DiscreteTypeInfoESt8functionIFbRKSt10shared_ptrINS0_4NodeEEEESt4lessIS1_ESaISt4pairIKS1_S9_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) @_ZZN6ngraph4pass15LikeReplacement15run_on_functionESt10shared_ptrINS_8FunctionEEE10dispatcher) #0
  %92 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %19, i32 0, i32 0
  store ptr %91, ptr %92, align 8
  %93 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorISt4pairIKN6ngraph16DiscreteTypeInfoESt8functionIFbRKSt10shared_ptrINS1_4NodeEEEEEESF_(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull align 8 dereferenceable(8) %19) #0
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #0
  br i1 %93, label %94, label %110

94:                                               ; preds = %89
  %95 = call noundef ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIKN6ngraph16DiscreteTypeInfoESt8functionIFbRKSt10shared_ptrINS1_4NodeEEEEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %18) #0
  %96 = getelementptr inbounds %"struct.std::pair", ptr %95, i32 0, i32 1
  %97 = load ptr, ptr %17, align 8, !tbaa !5
  %98 = invoke noundef zeroext i1 @_ZNKSt8functionIFbRKSt10shared_ptrIN6ngraph4NodeEEEEclES5_(ptr noundef nonnull align 8 dereferenceable(32) %96, ptr noundef nonnull align 8 dereferenceable(16) %97)
          to label %99 unwind label %106

99:                                               ; preds = %94
  br i1 %98, label %103, label %100

100:                                              ; preds = %99
  %101 = load i8, ptr %12, align 1, !tbaa !14, !range !18, !noundef !19
  %102 = trunc i8 %101 to i1
  br label %103

103:                                              ; preds = %100, %99
  %104 = phi i1 [ true, %99 ], [ %102, %100 ]
  %105 = zext i1 %104 to i8
  store i8 %105, ptr %12, align 1, !tbaa !14
  br label %110

106:                                              ; preds = %94, %87, %79
  %107 = landingpad { ptr, i32 }
          cleanup
  %108 = extractvalue { ptr, i32 } %107, 0
  store ptr %108, ptr %8, align 8
  %109 = extractvalue { ptr, i32 } %107, 1
  store i32 %109, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #0
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #0
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #0
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #0
  call void @_ZNSt6vectorISt10shared_ptrIN6ngraph4NodeEESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #0
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #0
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #0
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #0
  br label %116

110:                                              ; preds = %103, %89
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #0
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #0
  br label %111

111:                                              ; preds = %110
  %112 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt10shared_ptrIN6ngraph4NodeEESt6vectorIS4_SaIS4_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %15) #0
  br label %53

113:                                              ; preds = %55
  %114 = load i8, ptr %12, align 1, !tbaa !14, !range !18, !noundef !19
  %115 = trunc i8 %114 to i1
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #0
  ret i1 %115

116:                                              ; preds = %106, %78
  %117 = load ptr, ptr %8, align 8
  %118 = load i32, ptr %9, align 4
  %119 = insertvalue { ptr, i32 } poison, ptr %117, 0
  %120 = insertvalue { ptr, i32 } %119, i32 %118, 1
  resume { ptr, i32 } %120
}

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local ptr @_ZNKSt3mapIN6ngraph16DiscreteTypeInfoESt8functionIFbRKSt10shared_ptrINS0_4NodeEEEESt4lessIS1_ESaISt4pairIKS1_S9_EEE4findERSD_(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 noundef ptr @_ZNKSt19__shared_ptr_accessIN6ngraph4NodeELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1)) #3 align 2

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

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

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

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

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

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

attributes #0 = { nounwind }
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 = { 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 = { 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 #5 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }

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

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


; 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"

%"struct.ngraph::DiscreteTypeInfo" = type { ptr, i64 }
%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<ngraph::DiscreteTypeInfo, std::pair<const ngraph::DiscreteTypeInfo, std::function<bool (const std::shared_ptr<ngraph::Node> &)>>, std::_Select1st<std::pair<const ngraph::DiscreteTypeInfo, std::function<bool (const std::shared_ptr<ngraph::Node> &)>>>, std::less<ngraph::DiscreteTypeInfo>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<ngraph::DiscreteTypeInfo, std::pair<const ngraph::DiscreteTypeInfo, std::function<bool (const std::shared_ptr<ngraph::Node> &)>>, std::_Select1st<std::pair<const ngraph::DiscreteTypeInfo, std::function<bool (const std::shared_ptr<ngraph::Node> &)>>>, std::less<ngraph::DiscreteTypeInfo>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"struct.std::pair" = type { %"struct.ngraph::DiscreteTypeInfo", %"class.std::function" }
%"class.std::function" = type { %"class.std::_Function_base", ptr }
%"class.std::_Function_base" = type { %"union.std::_Any_data", ptr }
%"union.std::_Any_data" = type { %"union.std::_Nocopy_types" }
%"union.std::_Nocopy_types" = type { { i64, i64 } }
%"struct.std::less" = type { i8 }
%"class.std::allocator.1" = type { i8 }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::shared_ptr<ngraph::Node>, std::allocator<std::shared_ptr<ngraph::Node>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::shared_ptr<ngraph::Node>, std::allocator<std::shared_ptr<ngraph::Node>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::shared_ptr<ngraph::Node>, std::allocator<std::shared_ptr<ngraph::Node>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::shared_ptr<ngraph::Node>, std::allocator<std::shared_ptr<ngraph::Node>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"struct.std::_Rb_tree_const_iterator" = type { ptr }

@__dso_handle = external hidden global i8
@_ZN6ngraph2op2v013BroadcastLike9type_infoE = external dso_local constant %"struct.ngraph::DiscreteTypeInfo", align 8
@_ZN6ngraph2op2v018ScalarConstantLike9type_infoE = external dso_local constant %"struct.ngraph::DiscreteTypeInfo", align 8
@_ZZN6ngraph4pass15LikeReplacement15run_on_functionESt10shared_ptrINS_8FunctionEEE10dispatcher = external hidden global %"class.std::map", align 8
@_ZGVZN6ngraph4pass15LikeReplacement15run_on_functionESt10shared_ptrINS_8FunctionEEE10dispatcher = external hidden global i64, align 8

; Function Attrs: nofree nounwind
declare i32 @__cxa_atexit(ptr, ptr, ptr) local_unnamed_addr #0

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

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

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZL22replace_broadcast_likeRKSt10shared_ptrIN6ngraph4NodeEE(ptr noundef nonnull align 8 dereferenceable(16)) #2

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZL28replace_scalar_constant_likeRKSt10shared_ptrIN6ngraph4NodeEE(ptr noundef nonnull align 8 dereferenceable(16)) #2

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN6ngraph4pass15LikeReplacement15run_on_functionESt10shared_ptrINS_8FunctionEE(ptr nocapture noundef nonnull readnone align 8 dereferenceable(40) %0, ptr noundef %1) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca [2 x %"struct.std::pair"], align 8
  %4 = alloca %"struct.std::less", align 1
  %5 = alloca %"class.std::allocator.1", align 1
  %6 = alloca %"class.std::vector", align 8
  %7 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %8 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %9 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %10 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %11 = load atomic i8, ptr @_ZGVZN6ngraph4pass15LikeReplacement15run_on_functionESt10shared_ptrINS_8FunctionEEE10dispatcher acquire, align 8
  %12 = icmp eq i8 %11, 0
  br i1 %12, label %13, label %20, !prof !5

13:                                               ; preds = %2
  %14 = tail call i32 @__cxa_guard_acquire(ptr nonnull @_ZGVZN6ngraph4pass15LikeReplacement15run_on_functionESt10shared_ptrINS_8FunctionEEE10dispatcher) #6
  %.not = icmp eq i32 %14, 0
  br i1 %.not, label %20, label %15

15:                                               ; preds = %13
  call void @llvm.lifetime.start.p0(i64 96, ptr nonnull %3) #6
  call void @_ZNSt4pairIKN6ngraph16DiscreteTypeInfoESt8functionIFbRKSt10shared_ptrINS0_4NodeEEEEEC2IRS2_RS9_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISG_SH_EEEbE4typeELb1EEEOSG_OSH_(ptr noundef nonnull align 8 dereferenceable(48) %3, ptr noundef nonnull align 8 dereferenceable(16) @_ZN6ngraph2op2v013BroadcastLike9type_infoE, ptr noundef nonnull @_ZL22replace_broadcast_likeRKSt10shared_ptrIN6ngraph4NodeEE)
  %16 = getelementptr inbounds i8, ptr %3, i64 48
  call void @_ZNSt4pairIKN6ngraph16DiscreteTypeInfoESt8functionIFbRKSt10shared_ptrINS0_4NodeEEEEEC2IRS2_RS9_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISG_SH_EEEbE4typeELb1EEEOSG_OSH_(ptr noundef nonnull align 8 dereferenceable(48) %16, ptr noundef nonnull align 8 dereferenceable(16) @_ZN6ngraph2op2v018ScalarConstantLike9type_infoE, ptr noundef nonnull @_ZL28replace_scalar_constant_likeRKSt10shared_ptrIN6ngraph4NodeEE)
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %5) #6
  call void @_ZNSaISt4pairIKN6ngraph16DiscreteTypeInfoESt8functionIFbRKSt10shared_ptrINS0_4NodeEEEEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #6
  invoke void @_ZNSt3mapIN6ngraph16DiscreteTypeInfoESt8functionIFbRKSt10shared_ptrINS0_4NodeEEEESt4lessIS1_ESaISt4pairIKS1_S9_EEEC2ESt16initializer_listISE_ERKSB_RKSF_(ptr noundef nonnull align 8 dereferenceable(48) @_ZZN6ngraph4pass15LikeReplacement15run_on_functionESt10shared_ptrINS_8FunctionEEE10dispatcher, ptr nonnull %3, i64 2, ptr noundef nonnull align 1 dereferenceable(1) %4, ptr noundef nonnull align 1 dereferenceable(1) %5)
          to label %17 unwind label %25

17:                                               ; preds = %15
  call void @_ZNSt15__new_allocatorISt4pairIKN6ngraph16DiscreteTypeInfoESt8functionIFbRKSt10shared_ptrINS1_4NodeEEEEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #6
  %18 = getelementptr inbounds i8, ptr %3, i64 48
  call void @_ZNSt4pairIKN6ngraph16DiscreteTypeInfoESt8functionIFbRKSt10shared_ptrINS0_4NodeEEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %18) #6
  call void @_ZNSt4pairIKN6ngraph16DiscreteTypeInfoESt8functionIFbRKSt10shared_ptrINS0_4NodeEEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %3) #6
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %3) #6
  %19 = call i32 @__cxa_atexit(ptr nonnull @_ZNSt3mapIN6ngraph16DiscreteTypeInfoESt8functionIFbRKSt10shared_ptrINS0_4NodeEEEESt4lessIS1_ESaISt4pairIKS1_S9_EEED2Ev, ptr nonnull @_ZZN6ngraph4pass15LikeReplacement15run_on_functionESt10shared_ptrINS_8FunctionEEE10dispatcher, ptr nonnull @__dso_handle) #6
  call void @__cxa_guard_release(ptr nonnull @_ZGVZN6ngraph4pass15LikeReplacement15run_on_functionESt10shared_ptrINS_8FunctionEEE10dispatcher) #6
  br label %20

20:                                               ; preds = %17, %13, %2
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #6
  %21 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN6ngraph8FunctionELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %1) #6
  call void @_ZNK6ngraph8Function7get_opsEv(ptr dead_on_unwind nonnull writable sret(%"class.std::vector") align 8 %6, ptr noundef nonnull align 8 dereferenceable(176) %21)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #6
  %22 = call ptr @_ZNSt6vectorISt10shared_ptrIN6ngraph4NodeEESaIS3_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #6
  store ptr %22, ptr %7, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #6
  %23 = call ptr @_ZNSt6vectorISt10shared_ptrIN6ngraph4NodeEESaIS3_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #6
  store ptr %23, ptr %8, align 8
  %24 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt10shared_ptrIN6ngraph4NodeEESt6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8) #6
  br i1 %24, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %47, %20
  %.09.lcssa = phi i1 [ false, %20 ], [ %.1, %47 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  call void @_ZNSt6vectorISt10shared_ptrIN6ngraph4NodeEESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #6
  ret i1 %.09.lcssa

25:                                               ; preds = %15
  %26 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorISt4pairIKN6ngraph16DiscreteTypeInfoESt8functionIFbRKSt10shared_ptrINS1_4NodeEEEEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #6
  %27 = getelementptr inbounds i8, ptr %3, i64 48
  call void @_ZNSt4pairIKN6ngraph16DiscreteTypeInfoESt8functionIFbRKSt10shared_ptrINS0_4NodeEEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %27) #6
  call void @_ZNSt4pairIKN6ngraph16DiscreteTypeInfoESt8functionIFbRKSt10shared_ptrINS0_4NodeEEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %3) #6
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %3) #6
  call void @__cxa_guard_abort(ptr nonnull @_ZGVZN6ngraph4pass15LikeReplacement15run_on_functionESt10shared_ptrINS_8FunctionEEE10dispatcher) #6
  br label %50

.lr.ph:                                           ; preds = %20, %47
  %.0914 = phi i1 [ %.1, %47 ], [ false, %20 ]
  %28 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt10shared_ptrIN6ngraph4NodeEESt6vectorIS4_SaIS4_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #6
  %29 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN6ngraph4NodeELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %28) #6
  %30 = load ptr, ptr %29, align 8, !tbaa !6
  %31 = getelementptr inbounds i8, ptr %30, i64 128
  %32 = load ptr, ptr %31, align 8
  %33 = invoke noundef nonnull align 8 dereferenceable(16) ptr %32(ptr noundef nonnull align 8 dereferenceable(680) %29)
          to label %34 unwind label %45

34:                                               ; preds = %.lr.ph
  %35 = invoke ptr @_ZNKSt3mapIN6ngraph16DiscreteTypeInfoESt8functionIFbRKSt10shared_ptrINS0_4NodeEEEESt4lessIS1_ESaISt4pairIKS1_S9_EEE4findERSD_(ptr noundef nonnull align 8 dereferenceable(48) @_ZZN6ngraph4pass15LikeReplacement15run_on_functionESt10shared_ptrINS_8FunctionEEE10dispatcher, ptr noundef nonnull align 8 dereferenceable(16) %33)
          to label %36 unwind label %45

36:                                               ; preds = %34
  store ptr %35, ptr %9, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #6
  %37 = call ptr @_ZNKSt3mapIN6ngraph16DiscreteTypeInfoESt8functionIFbRKSt10shared_ptrINS0_4NodeEEEESt4lessIS1_ESaISt4pairIKS1_S9_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) @_ZZN6ngraph4pass15LikeReplacement15run_on_functionESt10shared_ptrINS_8FunctionEEE10dispatcher) #6
  store ptr %37, ptr %10, align 8
  %38 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorISt4pairIKN6ngraph16DiscreteTypeInfoESt8functionIFbRKSt10shared_ptrINS1_4NodeEEEEEESF_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #6
  br i1 %38, label %39, label %47

39:                                               ; preds = %36
  %40 = call noundef ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIKN6ngraph16DiscreteTypeInfoESt8functionIFbRKSt10shared_ptrINS1_4NodeEEEEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #6
  %41 = getelementptr inbounds i8, ptr %40, i64 16
  %42 = invoke noundef zeroext i1 @_ZNKSt8functionIFbRKSt10shared_ptrIN6ngraph4NodeEEEEclES5_(ptr noundef nonnull align 8 dereferenceable(32) %41, ptr noundef nonnull align 8 dereferenceable(16) %28)
          to label %43 unwind label %45

43:                                               ; preds = %39
  %44 = select i1 %42, i1 true, i1 %.0914
  br label %47

45:                                               ; preds = %39, %34, %.lr.ph
  %46 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  call void @_ZNSt6vectorISt10shared_ptrIN6ngraph4NodeEESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #6
  br label %50

47:                                               ; preds = %43, %36
  %.1 = phi i1 [ %44, %43 ], [ %.0914, %36 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  %48 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt10shared_ptrIN6ngraph4NodeEESt6vectorIS4_SaIS4_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #6
  %49 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt10shared_ptrIN6ngraph4NodeEESt6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8) #6
  br i1 %49, label %.lr.ph, label %._crit_edge

50:                                               ; preds = %45, %25
  %.pn = phi { ptr, i32 } [ %46, %45 ], [ %26, %25 ]
  resume { ptr, i32 } %.pn
}

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local ptr @_ZNKSt3mapIN6ngraph16DiscreteTypeInfoESt8functionIFbRKSt10shared_ptrINS0_4NodeEEEESt4lessIS1_ESaISt4pairIKS1_S9_EEE4findERSD_(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 noundef ptr @_ZNKSt19__shared_ptr_accessIN6ngraph4NodeELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #3 align 2

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

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

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

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

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

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

attributes #0 = { nofree nounwind }
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 = { 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 = { 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 #5 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind }

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

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


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