; LLVM IR from NervanaSystems/ngraph :: src/ngraph/runtime/cpu/pass (cpu_collapse_dims)

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

%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::shared_ptr<ngraph::Node>, std::allocator<std::shared_ptr<ngraph::Node>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::shared_ptr<ngraph::Node>, std::allocator<std::shared_ptr<ngraph::Node>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::shared_ptr<ngraph::Node>, std::allocator<std::shared_ptr<ngraph::Node>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::shared_ptr<ngraph::Node>, std::allocator<std::shared_ptr<ngraph::Node>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.std::shared_ptr.13" = type { %"class.std::__shared_ptr.14" }
%"class.std::__shared_ptr.14" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN6ngraph7runtime3cpu4pass15CPUCollapseDims15run_on_functionESt10shared_ptrINS_8FunctionEE(ptr noundef nonnull align 8 dereferenceable(40) %0, ptr noundef %1) unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i8, align 1
  %6 = alloca ptr, align 8
  %7 = alloca %"class.std::vector", align 8
  %8 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %9 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %10 = alloca %"class.std::shared_ptr.13", align 8
  %11 = alloca %"class.std::shared_ptr.13", align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca %"class.std::shared_ptr.13", align 8
  %15 = alloca %"class.std::shared_ptr.13", align 8
  %16 = alloca %"class.std::shared_ptr.13", align 8
  %17 = alloca %"class.std::shared_ptr.13", align 8
  %18 = alloca %"class.std::shared_ptr.13", align 8
  %19 = alloca %"class.std::shared_ptr.13", align 8
  %20 = alloca %"class.std::shared_ptr.13", align 8
  %21 = alloca %"class.std::shared_ptr.13", align 8
  %22 = alloca %"class.std::shared_ptr.13", align 8
  %23 = alloca %"class.std::shared_ptr.13", align 8
  %24 = alloca %"class.std::shared_ptr.13", align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %25 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr %5) #5
  store i8 0, ptr %5, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr %7) #5
  %26 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN6ngraph8FunctionELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %1) #5
  call void @_ZNK6ngraph8Function15get_ordered_opsEv(ptr dead_on_unwind writable sret(%"class.std::vector") align 8 %7, ptr noundef nonnull align 8 dereferenceable(176) %26)
  store ptr %7, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  %27 = load ptr, ptr %6, align 8, !tbaa !5
  %28 = call ptr @_ZNSt6vectorISt10shared_ptrIN6ngraph4NodeEESaIS3_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %27) #5
  %29 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %8, i32 0, i32 0
  store ptr %28, ptr %29, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %30 = load ptr, ptr %6, align 8, !tbaa !5
  %31 = call ptr @_ZNSt6vectorISt10shared_ptrIN6ngraph4NodeEESaIS3_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %30) #5
  %32 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %9, i32 0, i32 0
  store ptr %31, ptr %32, align 8
  br label %33

33:                                               ; preds = %169, %2
  %34 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt10shared_ptrIN6ngraph4NodeEESt6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %9) #5
  br i1 %34, label %36, label %35

35:                                               ; preds = %33
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @_ZNSt6vectorISt10shared_ptrIN6ngraph4NodeEESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  br label %172

36:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #5
  %37 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt10shared_ptrIN6ngraph4NodeEESt6vectorIS4_SaIS4_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #5
  call void @_ZNSt10shared_ptrIN6ngraph4NodeEEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(16) %10, ptr noundef nonnull align 8 dereferenceable(16) %37) #5
  call void @_ZNSt10shared_ptrIN6ngraph4NodeEEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef nonnull align 8 dereferenceable(16) %10) #5
  %38 = invoke noundef zeroext i1 @_ZN6ngraph7is_typeINS_2op2v09BroadcastESt10shared_ptrINS_4NodeEEEENSt9enable_ifIXsr3std14is_convertibleIDTcldtclptclsr3stdE7declvalIT0_EE13get_type_infoE11is_castablesrT_9type_infoEEbEE5valueEbE4typeES8_(ptr noundef %11)
          to label %39 unwind label %50

39:                                               ; preds = %36
  call void @_ZNSt12__shared_ptrIN6ngraph4NodeELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %11) #5
  br i1 %38, label %40, label %58

40:                                               ; preds = %39
  call void @_ZNSt10shared_ptrIN6ngraph4NodeEEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(16) %14, ptr noundef nonnull align 8 dereferenceable(16) %10) #5
  %41 = invoke noundef zeroext i1 @_ZL18collapse_broadcastSt10shared_ptrIN6ngraph4NodeEE(ptr noundef %14)
          to label %42 unwind label %54

42:                                               ; preds = %40
  %43 = zext i1 %41 to i32
  %44 = load i8, ptr %5, align 1, !tbaa !9, !range !11, !noundef !12
  %45 = trunc i8 %44 to i1
  %46 = zext i1 %45 to i32
  %47 = or i32 %46, %43
  %48 = icmp ne i32 %47, 0
  %49 = zext i1 %48 to i8
  store i8 %49, ptr %5, align 1, !tbaa !9
  call void @_ZNSt12__shared_ptrIN6ngraph4NodeELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %14) #5
  br label %168

50:                                               ; preds = %36
  %51 = landingpad { ptr, i32 }
          cleanup
  %52 = extractvalue { ptr, i32 } %51, 0
  store ptr %52, ptr %12, align 8
  %53 = extractvalue { ptr, i32 } %51, 1
  store i32 %53, ptr %13, align 4
  call void @_ZNSt12__shared_ptrIN6ngraph4NodeELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %11) #5
  br label %171

54:                                               ; preds = %40
  %55 = landingpad { ptr, i32 }
          cleanup
  %56 = extractvalue { ptr, i32 } %55, 0
  store ptr %56, ptr %12, align 8
  %57 = extractvalue { ptr, i32 } %55, 1
  store i32 %57, ptr %13, align 4
  call void @_ZNSt12__shared_ptrIN6ngraph4NodeELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %14) #5
  br label %171

58:                                               ; preds = %39
  call void @_ZNSt10shared_ptrIN6ngraph4NodeEEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef nonnull align 8 dereferenceable(16) %10) #5
  %59 = invoke noundef zeroext i1 @_ZN6ngraph7is_typeINS_2op2v03MaxESt10shared_ptrINS_4NodeEEEENSt9enable_ifIXsr3std14is_convertibleIDTcldtclptclsr3stdE7declvalIT0_EE13get_type_infoE11is_castablesrT_9type_infoEEbEE5valueEbE4typeES8_(ptr noundef %15)
          to label %60 unwind label %71

60:                                               ; preds = %58
  call void @_ZNSt12__shared_ptrIN6ngraph4NodeELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %15) #5
  br i1 %59, label %61, label %79

61:                                               ; preds = %60
  call void @_ZNSt10shared_ptrIN6ngraph4NodeEEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(16) %16, ptr noundef nonnull align 8 dereferenceable(16) %10) #5
  %62 = invoke noundef zeroext i1 @_ZL18collapse_reductionIN6ngraph2op2v03MaxEEbSt10shared_ptrINS0_4NodeEE(ptr noundef %16)
          to label %63 unwind label %75

63:                                               ; preds = %61
  %64 = zext i1 %62 to i32
  %65 = load i8, ptr %5, align 1, !tbaa !9, !range !11, !noundef !12
  %66 = trunc i8 %65 to i1
  %67 = zext i1 %66 to i32
  %68 = or i32 %67, %64
  %69 = icmp ne i32 %68, 0
  %70 = zext i1 %69 to i8
  store i8 %70, ptr %5, align 1, !tbaa !9
  call void @_ZNSt12__shared_ptrIN6ngraph4NodeELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %16) #5
  br label %167

71:                                               ; preds = %58
  %72 = landingpad { ptr, i32 }
          cleanup
  %73 = extractvalue { ptr, i32 } %72, 0
  store ptr %73, ptr %12, align 8
  %74 = extractvalue { ptr, i32 } %72, 1
  store i32 %74, ptr %13, align 4
  call void @_ZNSt12__shared_ptrIN6ngraph4NodeELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %15) #5
  br label %171

75:                                               ; preds = %61
  %76 = landingpad { ptr, i32 }
          cleanup
  %77 = extractvalue { ptr, i32 } %76, 0
  store ptr %77, ptr %12, align 8
  %78 = extractvalue { ptr, i32 } %76, 1
  store i32 %78, ptr %13, align 4
  call void @_ZNSt12__shared_ptrIN6ngraph4NodeELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %16) #5
  br label %171

79:                                               ; preds = %60
  call void @_ZNSt10shared_ptrIN6ngraph4NodeEEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(16) %17, ptr noundef nonnull align 8 dereferenceable(16) %10) #5
  %80 = invoke noundef zeroext i1 @_ZN6ngraph7is_typeINS_2op2v03MinESt10shared_ptrINS_4NodeEEEENSt9enable_ifIXsr3std14is_convertibleIDTcldtclptclsr3stdE7declvalIT0_EE13get_type_infoE11is_castablesrT_9type_infoEEbEE5valueEbE4typeES8_(ptr noundef %17)
          to label %81 unwind label %92

81:                                               ; preds = %79
  call void @_ZNSt12__shared_ptrIN6ngraph4NodeELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %17) #5
  br i1 %80, label %82, label %100

82:                                               ; preds = %81
  call void @_ZNSt10shared_ptrIN6ngraph4NodeEEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(16) %18, ptr noundef nonnull align 8 dereferenceable(16) %10) #5
  %83 = invoke noundef zeroext i1 @_ZL18collapse_reductionIN6ngraph2op2v03MinEEbSt10shared_ptrINS0_4NodeEE(ptr noundef %18)
          to label %84 unwind label %96

84:                                               ; preds = %82
  %85 = zext i1 %83 to i32
  %86 = load i8, ptr %5, align 1, !tbaa !9, !range !11, !noundef !12
  %87 = trunc i8 %86 to i1
  %88 = zext i1 %87 to i32
  %89 = or i32 %88, %85
  %90 = icmp ne i32 %89, 0
  %91 = zext i1 %90 to i8
  store i8 %91, ptr %5, align 1, !tbaa !9
  call void @_ZNSt12__shared_ptrIN6ngraph4NodeELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %18) #5
  br label %166

92:                                               ; preds = %79
  %93 = landingpad { ptr, i32 }
          cleanup
  %94 = extractvalue { ptr, i32 } %93, 0
  store ptr %94, ptr %12, align 8
  %95 = extractvalue { ptr, i32 } %93, 1
  store i32 %95, ptr %13, align 4
  call void @_ZNSt12__shared_ptrIN6ngraph4NodeELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %17) #5
  br label %171

96:                                               ; preds = %82
  %97 = landingpad { ptr, i32 }
          cleanup
  %98 = extractvalue { ptr, i32 } %97, 0
  store ptr %98, ptr %12, align 8
  %99 = extractvalue { ptr, i32 } %97, 1
  store i32 %99, ptr %13, align 4
  call void @_ZNSt12__shared_ptrIN6ngraph4NodeELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %18) #5
  br label %171

100:                                              ; preds = %81
  call void @_ZNSt10shared_ptrIN6ngraph4NodeEEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(16) %19, ptr noundef nonnull align 8 dereferenceable(16) %10) #5
  %101 = invoke noundef zeroext i1 @_ZN6ngraph7is_typeINS_2op2v07ProductESt10shared_ptrINS_4NodeEEEENSt9enable_ifIXsr3std14is_convertibleIDTcldtclptclsr3stdE7declvalIT0_EE13get_type_infoE11is_castablesrT_9type_infoEEbEE5valueEbE4typeES8_(ptr noundef %19)
          to label %102 unwind label %113

102:                                              ; preds = %100
  call void @_ZNSt12__shared_ptrIN6ngraph4NodeELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %19) #5
  br i1 %101, label %103, label %121

103:                                              ; preds = %102
  call void @_ZNSt10shared_ptrIN6ngraph4NodeEEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(16) %20, ptr noundef nonnull align 8 dereferenceable(16) %10) #5
  %104 = invoke noundef zeroext i1 @_ZL18collapse_reductionIN6ngraph2op2v07ProductEEbSt10shared_ptrINS0_4NodeEE(ptr noundef %20)
          to label %105 unwind label %117

105:                                              ; preds = %103
  %106 = zext i1 %104 to i32
  %107 = load i8, ptr %5, align 1, !tbaa !9, !range !11, !noundef !12
  %108 = trunc i8 %107 to i1
  %109 = zext i1 %108 to i32
  %110 = or i32 %109, %106
  %111 = icmp ne i32 %110, 0
  %112 = zext i1 %111 to i8
  store i8 %112, ptr %5, align 1, !tbaa !9
  call void @_ZNSt12__shared_ptrIN6ngraph4NodeELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %20) #5
  br label %165

113:                                              ; preds = %100
  %114 = landingpad { ptr, i32 }
          cleanup
  %115 = extractvalue { ptr, i32 } %114, 0
  store ptr %115, ptr %12, align 8
  %116 = extractvalue { ptr, i32 } %114, 1
  store i32 %116, ptr %13, align 4
  call void @_ZNSt12__shared_ptrIN6ngraph4NodeELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %19) #5
  br label %171

117:                                              ; preds = %103
  %118 = landingpad { ptr, i32 }
          cleanup
  %119 = extractvalue { ptr, i32 } %118, 0
  store ptr %119, ptr %12, align 8
  %120 = extractvalue { ptr, i32 } %118, 1
  store i32 %120, ptr %13, align 4
  call void @_ZNSt12__shared_ptrIN6ngraph4NodeELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %20) #5
  br label %171

121:                                              ; preds = %102
  call void @_ZNSt10shared_ptrIN6ngraph4NodeEEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(16) %21, ptr noundef nonnull align 8 dereferenceable(16) %10) #5
  %122 = invoke noundef zeroext i1 @_ZN6ngraph7is_typeINS_2op2v03SumESt10shared_ptrINS_4NodeEEEENSt9enable_ifIXsr3std14is_convertibleIDTcldtclptclsr3stdE7declvalIT0_EE13get_type_infoE11is_castablesrT_9type_infoEEbEE5valueEbE4typeES8_(ptr noundef %21)
          to label %123 unwind label %134

123:                                              ; preds = %121
  call void @_ZNSt12__shared_ptrIN6ngraph4NodeELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %21) #5
  br i1 %122, label %124, label %142

124:                                              ; preds = %123
  call void @_ZNSt10shared_ptrIN6ngraph4NodeEEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(16) %22, ptr noundef nonnull align 8 dereferenceable(16) %10) #5
  %125 = invoke noundef zeroext i1 @_ZL18collapse_reductionIN6ngraph2op2v03SumEEbSt10shared_ptrINS0_4NodeEE(ptr noundef %22)
          to label %126 unwind label %138

126:                                              ; preds = %124
  %127 = zext i1 %125 to i32
  %128 = load i8, ptr %5, align 1, !tbaa !9, !range !11, !noundef !12
  %129 = trunc i8 %128 to i1
  %130 = zext i1 %129 to i32
  %131 = or i32 %130, %127
  %132 = icmp ne i32 %131, 0
  %133 = zext i1 %132 to i8
  store i8 %133, ptr %5, align 1, !tbaa !9
  call void @_ZNSt12__shared_ptrIN6ngraph4NodeELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %22) #5
  br label %164

134:                                              ; preds = %121
  %135 = landingpad { ptr, i32 }
          cleanup
  %136 = extractvalue { ptr, i32 } %135, 0
  store ptr %136, ptr %12, align 8
  %137 = extractvalue { ptr, i32 } %135, 1
  store i32 %137, ptr %13, align 4
  call void @_ZNSt12__shared_ptrIN6ngraph4NodeELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %21) #5
  br label %171

138:                                              ; preds = %124
  %139 = landingpad { ptr, i32 }
          cleanup
  %140 = extractvalue { ptr, i32 } %139, 0
  store ptr %140, ptr %12, align 8
  %141 = extractvalue { ptr, i32 } %139, 1
  store i32 %141, ptr %13, align 4
  call void @_ZNSt12__shared_ptrIN6ngraph4NodeELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %22) #5
  br label %171

142:                                              ; preds = %123
  call void @_ZNSt10shared_ptrIN6ngraph4NodeEEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(16) %23, ptr noundef nonnull align 8 dereferenceable(16) %10) #5
  %143 = invoke noundef zeroext i1 @_ZN6ngraph7is_typeINS_2op2v03DotESt10shared_ptrINS_4NodeEEEENSt9enable_ifIXsr3std14is_convertibleIDTcldtclptclsr3stdE7declvalIT0_EE13get_type_infoE11is_castablesrT_9type_infoEEbEE5valueEbE4typeES8_(ptr noundef %23)
          to label %144 unwind label %155

144:                                              ; preds = %142
  call void @_ZNSt12__shared_ptrIN6ngraph4NodeELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %23) #5
  br i1 %143, label %145, label %163

145:                                              ; preds = %144
  call void @_ZNSt10shared_ptrIN6ngraph4NodeEEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(16) %24, ptr noundef nonnull align 8 dereferenceable(16) %10) #5
  %146 = invoke noundef zeroext i1 @_ZL12collapse_dotIN6ngraph2op2v03DotEEbSt10shared_ptrINS0_4NodeEE(ptr noundef %24)
          to label %147 unwind label %159

147:                                              ; preds = %145
  %148 = zext i1 %146 to i32
  %149 = load i8, ptr %5, align 1, !tbaa !9, !range !11, !noundef !12
  %150 = trunc i8 %149 to i1
  %151 = zext i1 %150 to i32
  %152 = or i32 %151, %148
  %153 = icmp ne i32 %152, 0
  %154 = zext i1 %153 to i8
  store i8 %154, ptr %5, align 1, !tbaa !9
  call void @_ZNSt12__shared_ptrIN6ngraph4NodeELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %24) #5
  br label %163

155:                                              ; preds = %142
  %156 = landingpad { ptr, i32 }
          cleanup
  %157 = extractvalue { ptr, i32 } %156, 0
  store ptr %157, ptr %12, align 8
  %158 = extractvalue { ptr, i32 } %156, 1
  store i32 %158, ptr %13, align 4
  call void @_ZNSt12__shared_ptrIN6ngraph4NodeELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %23) #5
  br label %171

159:                                              ; preds = %145
  %160 = landingpad { ptr, i32 }
          cleanup
  %161 = extractvalue { ptr, i32 } %160, 0
  store ptr %161, ptr %12, align 8
  %162 = extractvalue { ptr, i32 } %160, 1
  store i32 %162, ptr %13, align 4
  call void @_ZNSt12__shared_ptrIN6ngraph4NodeELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %24) #5
  br label %171

163:                                              ; preds = %147, %144
  br label %164

164:                                              ; preds = %163, %126
  br label %165

165:                                              ; preds = %164, %105
  br label %166

166:                                              ; preds = %165, %84
  br label %167

167:                                              ; preds = %166, %63
  br label %168

168:                                              ; preds = %167, %42
  call void @_ZNSt12__shared_ptrIN6ngraph4NodeELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %10) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #5
  br label %169

169:                                              ; preds = %168
  %170 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt10shared_ptrIN6ngraph4NodeEESt6vectorIS4_SaIS4_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #5
  br label %33

171:                                              ; preds = %159, %155, %138, %134, %117, %113, %96, %92, %75, %71, %54, %50
  call void @_ZNSt12__shared_ptrIN6ngraph4NodeELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %10) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @_ZNSt6vectorISt10shared_ptrIN6ngraph4NodeEESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %5) #5
  br label %175

172:                                              ; preds = %35
  %173 = load i8, ptr %5, align 1, !tbaa !9, !range !11, !noundef !12
  %174 = trunc i8 %173 to i1
  call void @llvm.lifetime.end.p0(i64 1, ptr %5) #5
  ret i1 %174

175:                                              ; preds = %171
  %176 = load ptr, ptr %12, align 8
  %177 = load i32, ptr %13, align 4
  %178 = insertvalue { ptr, i32 } poison, ptr %176, 0
  %179 = insertvalue { ptr, i32 } %178, i32 %177, 1
  resume { ptr, i32 } %179
}

; 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)) #2 align 2

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN6ngraph7is_typeINS_2op2v09BroadcastESt10shared_ptrINS_4NodeEEEENSt9enable_ifIXsr3std14is_convertibleIDTcldtclptclsr3stdE7declvalIT0_EE13get_type_infoE11is_castablesrT_9type_infoEEbEE5valueEbE4typeES8_(ptr noundef) #1

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZL18collapse_broadcastSt10shared_ptrIN6ngraph4NodeEE(ptr noundef) #1

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN6ngraph7is_typeINS_2op2v03MaxESt10shared_ptrINS_4NodeEEEENSt9enable_ifIXsr3std14is_convertibleIDTcldtclptclsr3stdE7declvalIT0_EE13get_type_infoE11is_castablesrT_9type_infoEEbEE5valueEbE4typeES8_(ptr noundef) #1

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZL18collapse_reductionIN6ngraph2op2v03MaxEEbSt10shared_ptrINS0_4NodeEE(ptr noundef) #1

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN6ngraph7is_typeINS_2op2v03MinESt10shared_ptrINS_4NodeEEEENSt9enable_ifIXsr3std14is_convertibleIDTcldtclptclsr3stdE7declvalIT0_EE13get_type_infoE11is_castablesrT_9type_infoEEbEE5valueEbE4typeES8_(ptr noundef) #1

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZL18collapse_reductionIN6ngraph2op2v03MinEEbSt10shared_ptrINS0_4NodeEE(ptr noundef) #1

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN6ngraph7is_typeINS_2op2v07ProductESt10shared_ptrINS_4NodeEEEENSt9enable_ifIXsr3std14is_convertibleIDTcldtclptclsr3stdE7declvalIT0_EE13get_type_infoE11is_castablesrT_9type_infoEEbEE5valueEbE4typeES8_(ptr noundef) #1

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZL18collapse_reductionIN6ngraph2op2v07ProductEEbSt10shared_ptrINS0_4NodeEE(ptr noundef) #1

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN6ngraph7is_typeINS_2op2v03SumESt10shared_ptrINS_4NodeEEEENSt9enable_ifIXsr3std14is_convertibleIDTcldtclptclsr3stdE7declvalIT0_EE13get_type_infoE11is_castablesrT_9type_infoEEbEE5valueEbE4typeES8_(ptr noundef) #1

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZL18collapse_reductionIN6ngraph2op2v03SumEEbSt10shared_ptrINS0_4NodeEE(ptr noundef) #1

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN6ngraph7is_typeINS_2op2v03DotESt10shared_ptrINS_4NodeEEEENSt9enable_ifIXsr3std14is_convertibleIDTcldtclptclsr3stdE7declvalIT0_EE13get_type_infoE11is_castablesrT_9type_infoEEbEE5valueEbE4typeES8_(ptr noundef) #1

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZL12collapse_dotIN6ngraph2op2v03DotEEbSt10shared_ptrINS0_4NodeEE(ptr noundef) #1

; 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)) #2 align 2

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #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 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 = { nounwind }

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

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


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

%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::shared_ptr<ngraph::Node>, std::allocator<std::shared_ptr<ngraph::Node>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::shared_ptr<ngraph::Node>, std::allocator<std::shared_ptr<ngraph::Node>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::shared_ptr<ngraph::Node>, std::allocator<std::shared_ptr<ngraph::Node>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::shared_ptr<ngraph::Node>, std::allocator<std::shared_ptr<ngraph::Node>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.std::shared_ptr.13" = type { %"class.std::__shared_ptr.14" }
%"class.std::__shared_ptr.14" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN6ngraph7runtime3cpu4pass15CPUCollapseDims15run_on_functionESt10shared_ptrINS_8FunctionEE(ptr nocapture noundef nonnull readnone align 8 dereferenceable(40) %0, ptr noundef nonnull %1) unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.std::vector", align 8
  %4 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %5 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %6 = alloca %"class.std::shared_ptr.13", align 8
  %7 = alloca %"class.std::shared_ptr.13", align 8
  %8 = alloca %"class.std::shared_ptr.13", align 8
  %9 = alloca %"class.std::shared_ptr.13", align 8
  %10 = alloca %"class.std::shared_ptr.13", align 8
  %11 = alloca %"class.std::shared_ptr.13", align 8
  %12 = alloca %"class.std::shared_ptr.13", align 8
  %13 = alloca %"class.std::shared_ptr.13", align 8
  %14 = alloca %"class.std::shared_ptr.13", align 8
  %15 = alloca %"class.std::shared_ptr.13", align 8
  %16 = alloca %"class.std::shared_ptr.13", align 8
  %17 = alloca %"class.std::shared_ptr.13", align 8
  %18 = alloca %"class.std::shared_ptr.13", align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #5
  %19 = tail call noundef ptr @_ZNKSt19__shared_ptr_accessIN6ngraph8FunctionELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %1) #5
  call void @_ZNK6ngraph8Function15get_ordered_opsEv(ptr dead_on_unwind nonnull writable sret(%"class.std::vector") align 8 %3, ptr noundef nonnull align 8 dereferenceable(176) %19)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #5
  %20 = call ptr @_ZNSt6vectorISt10shared_ptrIN6ngraph4NodeEESaIS3_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #5
  store ptr %20, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #5
  %21 = call ptr @_ZNSt6vectorISt10shared_ptrIN6ngraph4NodeEESaIS3_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #5
  store ptr %21, ptr %5, align 8
  %22 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt10shared_ptrIN6ngraph4NodeEESt6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #5
  br i1 %22, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %78, %2
  %.012.lcssa = phi i1 [ false, %2 ], [ %.1, %78 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #5
  call void @_ZNSt6vectorISt10shared_ptrIN6ngraph4NodeEESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #5
  ret i1 %.012.lcssa

.lr.ph:                                           ; preds = %2, %78
  %.01226 = phi i1 [ %.1, %78 ], [ false, %2 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #5
  %23 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt10shared_ptrIN6ngraph4NodeEESt6vectorIS4_SaIS4_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #5
  call void @_ZNSt10shared_ptrIN6ngraph4NodeEEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull align 8 dereferenceable(16) %23) #5
  call void @_ZNSt10shared_ptrIN6ngraph4NodeEEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull align 8 dereferenceable(16) %6) #5
  %24 = invoke noundef zeroext i1 @_ZN6ngraph7is_typeINS_2op2v09BroadcastESt10shared_ptrINS_4NodeEEEENSt9enable_ifIXsr3std14is_convertibleIDTcldtclptclsr3stdE7declvalIT0_EE13get_type_infoE11is_castablesrT_9type_infoEEbEE5valueEbE4typeES8_(ptr noundef nonnull %7)
          to label %25 unwind label %28

25:                                               ; preds = %.lr.ph
  call void @_ZNSt12__shared_ptrIN6ngraph4NodeELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %7) #5
  br i1 %24, label %26, label %32

26:                                               ; preds = %25
  call void @_ZNSt10shared_ptrIN6ngraph4NodeEEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(16) %8, ptr noundef nonnull align 8 dereferenceable(16) %6) #5
  %27 = invoke noundef zeroext i1 @_ZL18collapse_broadcastSt10shared_ptrIN6ngraph4NodeEE(ptr noundef nonnull %8)
          to label %.sink.split unwind label %30

28:                                               ; preds = %.lr.ph
  %29 = landingpad { ptr, i32 }
          cleanup
  br label %81

30:                                               ; preds = %26
  %31 = landingpad { ptr, i32 }
          cleanup
  br label %81

32:                                               ; preds = %25
  call void @_ZNSt10shared_ptrIN6ngraph4NodeEEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull align 8 dereferenceable(16) %6) #5
  %33 = invoke noundef zeroext i1 @_ZN6ngraph7is_typeINS_2op2v03MaxESt10shared_ptrINS_4NodeEEEENSt9enable_ifIXsr3std14is_convertibleIDTcldtclptclsr3stdE7declvalIT0_EE13get_type_infoE11is_castablesrT_9type_infoEEbEE5valueEbE4typeES8_(ptr noundef nonnull %9)
          to label %34 unwind label %37

34:                                               ; preds = %32
  call void @_ZNSt12__shared_ptrIN6ngraph4NodeELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #5
  br i1 %33, label %35, label %41

35:                                               ; preds = %34
  call void @_ZNSt10shared_ptrIN6ngraph4NodeEEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(16) %10, ptr noundef nonnull align 8 dereferenceable(16) %6) #5
  %36 = invoke noundef zeroext i1 @_ZL18collapse_reductionIN6ngraph2op2v03MaxEEbSt10shared_ptrINS0_4NodeEE(ptr noundef nonnull %10)
          to label %.sink.split unwind label %39

37:                                               ; preds = %32
  %38 = landingpad { ptr, i32 }
          cleanup
  br label %81

39:                                               ; preds = %35
  %40 = landingpad { ptr, i32 }
          cleanup
  br label %81

41:                                               ; preds = %34
  call void @_ZNSt10shared_ptrIN6ngraph4NodeEEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef nonnull align 8 dereferenceable(16) %6) #5
  %42 = invoke noundef zeroext i1 @_ZN6ngraph7is_typeINS_2op2v03MinESt10shared_ptrINS_4NodeEEEENSt9enable_ifIXsr3std14is_convertibleIDTcldtclptclsr3stdE7declvalIT0_EE13get_type_infoE11is_castablesrT_9type_infoEEbEE5valueEbE4typeES8_(ptr noundef nonnull %11)
          to label %43 unwind label %46

43:                                               ; preds = %41
  call void @_ZNSt12__shared_ptrIN6ngraph4NodeELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %11) #5
  br i1 %42, label %44, label %50

44:                                               ; preds = %43
  call void @_ZNSt10shared_ptrIN6ngraph4NodeEEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef nonnull align 8 dereferenceable(16) %6) #5
  %45 = invoke noundef zeroext i1 @_ZL18collapse_reductionIN6ngraph2op2v03MinEEbSt10shared_ptrINS0_4NodeEE(ptr noundef nonnull %12)
          to label %.sink.split unwind label %48

46:                                               ; preds = %41
  %47 = landingpad { ptr, i32 }
          cleanup
  br label %81

48:                                               ; preds = %44
  %49 = landingpad { ptr, i32 }
          cleanup
  br label %81

50:                                               ; preds = %43
  call void @_ZNSt10shared_ptrIN6ngraph4NodeEEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef nonnull align 8 dereferenceable(16) %6) #5
  %51 = invoke noundef zeroext i1 @_ZN6ngraph7is_typeINS_2op2v07ProductESt10shared_ptrINS_4NodeEEEENSt9enable_ifIXsr3std14is_convertibleIDTcldtclptclsr3stdE7declvalIT0_EE13get_type_infoE11is_castablesrT_9type_infoEEbEE5valueEbE4typeES8_(ptr noundef nonnull %13)
          to label %52 unwind label %55

52:                                               ; preds = %50
  call void @_ZNSt12__shared_ptrIN6ngraph4NodeELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %13) #5
  br i1 %51, label %53, label %59

53:                                               ; preds = %52
  call void @_ZNSt10shared_ptrIN6ngraph4NodeEEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(16) %14, ptr noundef nonnull align 8 dereferenceable(16) %6) #5
  %54 = invoke noundef zeroext i1 @_ZL18collapse_reductionIN6ngraph2op2v07ProductEEbSt10shared_ptrINS0_4NodeEE(ptr noundef nonnull %14)
          to label %.sink.split unwind label %57

55:                                               ; preds = %50
  %56 = landingpad { ptr, i32 }
          cleanup
  br label %81

57:                                               ; preds = %53
  %58 = landingpad { ptr, i32 }
          cleanup
  br label %81

59:                                               ; preds = %52
  call void @_ZNSt10shared_ptrIN6ngraph4NodeEEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef nonnull align 8 dereferenceable(16) %6) #5
  %60 = invoke noundef zeroext i1 @_ZN6ngraph7is_typeINS_2op2v03SumESt10shared_ptrINS_4NodeEEEENSt9enable_ifIXsr3std14is_convertibleIDTcldtclptclsr3stdE7declvalIT0_EE13get_type_infoE11is_castablesrT_9type_infoEEbEE5valueEbE4typeES8_(ptr noundef nonnull %15)
          to label %61 unwind label %64

61:                                               ; preds = %59
  call void @_ZNSt12__shared_ptrIN6ngraph4NodeELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %15) #5
  br i1 %60, label %62, label %68

62:                                               ; preds = %61
  call void @_ZNSt10shared_ptrIN6ngraph4NodeEEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(16) %16, ptr noundef nonnull align 8 dereferenceable(16) %6) #5
  %63 = invoke noundef zeroext i1 @_ZL18collapse_reductionIN6ngraph2op2v03SumEEbSt10shared_ptrINS0_4NodeEE(ptr noundef nonnull %16)
          to label %.sink.split unwind label %66

64:                                               ; preds = %59
  %65 = landingpad { ptr, i32 }
          cleanup
  br label %81

66:                                               ; preds = %62
  %67 = landingpad { ptr, i32 }
          cleanup
  br label %81

68:                                               ; preds = %61
  call void @_ZNSt10shared_ptrIN6ngraph4NodeEEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(16) %17, ptr noundef nonnull align 8 dereferenceable(16) %6) #5
  %69 = invoke noundef zeroext i1 @_ZN6ngraph7is_typeINS_2op2v03DotESt10shared_ptrINS_4NodeEEEENSt9enable_ifIXsr3std14is_convertibleIDTcldtclptclsr3stdE7declvalIT0_EE13get_type_infoE11is_castablesrT_9type_infoEEbEE5valueEbE4typeES8_(ptr noundef nonnull %17)
          to label %70 unwind label %73

70:                                               ; preds = %68
  call void @_ZNSt12__shared_ptrIN6ngraph4NodeELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %17) #5
  br i1 %69, label %71, label %78

71:                                               ; preds = %70
  call void @_ZNSt10shared_ptrIN6ngraph4NodeEEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(16) %18, ptr noundef nonnull align 8 dereferenceable(16) %6) #5
  %72 = invoke noundef zeroext i1 @_ZL12collapse_dotIN6ngraph2op2v03DotEEbSt10shared_ptrINS0_4NodeEE(ptr noundef nonnull %18)
          to label %.sink.split unwind label %75

73:                                               ; preds = %68
  %74 = landingpad { ptr, i32 }
          cleanup
  br label %81

75:                                               ; preds = %71
  %76 = landingpad { ptr, i32 }
          cleanup
  br label %81

.sink.split:                                      ; preds = %71, %62, %53, %44, %35, %26
  %.sink27 = phi i1 [ %27, %26 ], [ %36, %35 ], [ %45, %44 ], [ %54, %53 ], [ %63, %62 ], [ %72, %71 ]
  %.sink = phi ptr [ %8, %26 ], [ %10, %35 ], [ %12, %44 ], [ %14, %53 ], [ %16, %62 ], [ %18, %71 ]
  %77 = or i1 %.01226, %.sink27
  call void @_ZNSt12__shared_ptrIN6ngraph4NodeELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %.sink) #5
  br label %78

78:                                               ; preds = %.sink.split, %70
  %.1 = phi i1 [ %.01226, %70 ], [ %77, %.sink.split ]
  call void @_ZNSt12__shared_ptrIN6ngraph4NodeELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #5
  %79 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt10shared_ptrIN6ngraph4NodeEESt6vectorIS4_SaIS4_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #5
  %80 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt10shared_ptrIN6ngraph4NodeEESt6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #5
  br i1 %80, label %.lr.ph, label %._crit_edge

81:                                               ; preds = %75, %73, %66, %64, %57, %55, %48, %46, %39, %37, %30, %28
  %.sink28 = phi ptr [ %18, %75 ], [ %17, %73 ], [ %16, %66 ], [ %15, %64 ], [ %14, %57 ], [ %13, %55 ], [ %12, %48 ], [ %11, %46 ], [ %10, %39 ], [ %9, %37 ], [ %8, %30 ], [ %7, %28 ]
  %.pn = phi { ptr, i32 } [ %76, %75 ], [ %74, %73 ], [ %67, %66 ], [ %65, %64 ], [ %58, %57 ], [ %56, %55 ], [ %49, %48 ], [ %47, %46 ], [ %40, %39 ], [ %38, %37 ], [ %31, %30 ], [ %29, %28 ]
  call void @_ZNSt12__shared_ptrIN6ngraph4NodeELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %.sink28) #5
  call void @_ZNSt12__shared_ptrIN6ngraph4NodeELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #5
  call void @_ZNSt6vectorISt10shared_ptrIN6ngraph4NodeEESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #5
  resume { ptr, i32 } %.pn
}

; 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 #2 align 2

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN6ngraph7is_typeINS_2op2v09BroadcastESt10shared_ptrINS_4NodeEEEENSt9enable_ifIXsr3std14is_convertibleIDTcldtclptclsr3stdE7declvalIT0_EE13get_type_infoE11is_castablesrT_9type_infoEEbEE5valueEbE4typeES8_(ptr noundef) local_unnamed_addr #1

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZL18collapse_broadcastSt10shared_ptrIN6ngraph4NodeEE(ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN6ngraph7is_typeINS_2op2v03MaxESt10shared_ptrINS_4NodeEEEENSt9enable_ifIXsr3std14is_convertibleIDTcldtclptclsr3stdE7declvalIT0_EE13get_type_infoE11is_castablesrT_9type_infoEEbEE5valueEbE4typeES8_(ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZL18collapse_reductionIN6ngraph2op2v03MaxEEbSt10shared_ptrINS0_4NodeEE(ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN6ngraph7is_typeINS_2op2v03MinESt10shared_ptrINS_4NodeEEEENSt9enable_ifIXsr3std14is_convertibleIDTcldtclptclsr3stdE7declvalIT0_EE13get_type_infoE11is_castablesrT_9type_infoEEbEE5valueEbE4typeES8_(ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZL18collapse_reductionIN6ngraph2op2v03MinEEbSt10shared_ptrINS0_4NodeEE(ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN6ngraph7is_typeINS_2op2v07ProductESt10shared_ptrINS_4NodeEEEENSt9enable_ifIXsr3std14is_convertibleIDTcldtclptclsr3stdE7declvalIT0_EE13get_type_infoE11is_castablesrT_9type_infoEEbEE5valueEbE4typeES8_(ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZL18collapse_reductionIN6ngraph2op2v07ProductEEbSt10shared_ptrINS0_4NodeEE(ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN6ngraph7is_typeINS_2op2v03SumESt10shared_ptrINS_4NodeEEEENSt9enable_ifIXsr3std14is_convertibleIDTcldtclptclsr3stdE7declvalIT0_EE13get_type_infoE11is_castablesrT_9type_infoEEbEE5valueEbE4typeES8_(ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZL18collapse_reductionIN6ngraph2op2v03SumEEbSt10shared_ptrINS0_4NodeEE(ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN6ngraph7is_typeINS_2op2v03DotESt10shared_ptrINS_4NodeEEEENSt9enable_ifIXsr3std14is_convertibleIDTcldtclptclsr3stdE7declvalIT0_EE13get_type_infoE11is_castablesrT_9type_infoEEbEE5valueEbE4typeES8_(ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZL12collapse_dotIN6ngraph2op2v03DotEEbSt10shared_ptrINS0_4NodeEE(ptr noundef) local_unnamed_addr #1

; 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 #2 align 2

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #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 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 = { 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)"}


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