; LLVM IR from ronan-kerviche/glip-lib :: GLIP-Lib/src/Core (Pipeline)

; 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<Glip::CorePipeline::AbstractPipelineLayout::Connection, std::allocator<Glip::CorePipeline::AbstractPipelineLayout::Connection>>::_Vector_impl" }
%"struct.std::_Vector_base<Glip::CorePipeline::AbstractPipelineLayout::Connection, std::allocator<Glip::CorePipeline::AbstractPipelineLayout::Connection>>::_Vector_impl" = type { %"struct.std::_Vector_base<Glip::CorePipeline::AbstractPipelineLayout::Connection, std::allocator<Glip::CorePipeline::AbstractPipelineLayout::Connection>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Glip::CorePipeline::AbstractPipelineLayout::Connection, std::allocator<Glip::CorePipeline::AbstractPipelineLayout::Connection>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator.28" = type { ptr }
%"class.Glip::CorePipeline::AbstractPipelineLayout" = type { ptr, %"class.std::vector", %"class.std::vector.0", %"class.std::vector.5", %"class.std::vector.10", %"class.std::vector.15", %"class.Glip::CorePipeline::AbstractComponentLayout" }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<Glip::CorePipeline::AbstractComponentLayout *, std::allocator<Glip::CorePipeline::AbstractComponentLayout *>>::_Vector_impl" }
%"struct.std::_Vector_base<Glip::CorePipeline::AbstractComponentLayout *, std::allocator<Glip::CorePipeline::AbstractComponentLayout *>>::_Vector_impl" = type { %"struct.std::_Vector_base<Glip::CorePipeline::AbstractComponentLayout *, std::allocator<Glip::CorePipeline::AbstractComponentLayout *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Glip::CorePipeline::AbstractComponentLayout *, std::allocator<Glip::CorePipeline::AbstractComponentLayout *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = type { %"struct.std::_Vector_base<Glip::CorePipeline::AbstractPipelineLayout::ComponentKind, std::allocator<Glip::CorePipeline::AbstractPipelineLayout::ComponentKind>>::_Vector_impl" }
%"struct.std::_Vector_base<Glip::CorePipeline::AbstractPipelineLayout::ComponentKind, std::allocator<Glip::CorePipeline::AbstractPipelineLayout::ComponentKind>>::_Vector_impl" = type { %"struct.std::_Vector_base<Glip::CorePipeline::AbstractPipelineLayout::ComponentKind, std::allocator<Glip::CorePipeline::AbstractPipelineLayout::ComponentKind>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Glip::CorePipeline::AbstractPipelineLayout::ComponentKind, std::allocator<Glip::CorePipeline::AbstractPipelineLayout::ComponentKind>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.10" = type { %"struct.std::_Vector_base.11" }
%"struct.std::_Vector_base.11" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.15" = type { %"struct.std::_Vector_base.16" }
%"struct.std::_Vector_base.16" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.Glip::CorePipeline::AbstractComponentLayout" = type { ptr, %"class.std::__cxx11::basic_string", %"class.std::vector.10", %"class.std::vector.10" }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"struct.Glip::CorePipeline::AbstractPipelineLayout::Connection" = type { i32, i32, i32, i32 }

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(88) ptr @_ZNK4Glip12CorePipeline22AbstractPipelineLayout15componentLayoutEi(ptr noundef nonnull align 8 dereferenceable(128), i32 noundef) #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4Glip12CorePipeline22AbstractPipelineLayout25getConnectionDestinationsEii(ptr dead_on_unwind noalias writable sret(%"class.std::vector") align 8 %0, ptr noundef nonnull align 8 dereferenceable(128) %1, i32 noundef %2, i32 noundef %3) #2 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca i1, align 1
  %11 = alloca %"class.__gnu_cxx::__normal_iterator.28", align 8
  %12 = alloca %"class.__gnu_cxx::__normal_iterator.28", align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca %"class.__gnu_cxx::__normal_iterator.28", align 8
  store ptr %0, ptr %5, align 8
  store ptr %1, ptr %6, align 8, !tbaa !5
  store i32 %2, ptr %7, align 4, !tbaa !9
  store i32 %3, ptr %8, align 4, !tbaa !9
  %16 = load ptr, ptr %6, align 8
  %17 = load i32, ptr %7, align 4, !tbaa !9
  %18 = icmp ne i32 %17, -1
  br i1 %18, label %19, label %24

19:                                               ; preds = %4
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %20 = load i32, ptr %7, align 4, !tbaa !9
  %21 = call noundef nonnull align 8 dereferenceable(88) ptr @_ZNK4Glip12CorePipeline22AbstractPipelineLayout15componentLayoutEi(ptr noundef nonnull align 8 dereferenceable(128) %16, i32 noundef %20)
  store ptr %21, ptr %9, align 8, !tbaa !5
  %22 = load ptr, ptr %9, align 8, !tbaa !5
  %23 = load i32, ptr %8, align 4, !tbaa !9
  call void @_ZNK4Glip12CorePipeline23AbstractComponentLayout15checkOutputPortEi(ptr noundef nonnull align 8 dereferenceable(88) %22, i32 noundef %23)
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  br label %30

24:                                               ; preds = %4
  %25 = load ptr, ptr %16, align 8, !tbaa !11
  %26 = getelementptr i8, ptr %25, i64 -24
  %27 = load i64, ptr %26, align 8
  %28 = getelementptr inbounds i8, ptr %16, i64 %27
  %29 = load i32, ptr %8, align 4, !tbaa !9
  call void @_ZNK4Glip12CorePipeline23AbstractComponentLayout14checkInputPortEi(ptr noundef nonnull align 8 dereferenceable(88) %28, i32 noundef %29)
  br label %30

30:                                               ; preds = %24, %19
  store i1 false, ptr %10, align 1
  call void @_ZNSt6vectorIN4Glip12CorePipeline22AbstractPipelineLayout10ConnectionESaIS3_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %31 = getelementptr inbounds %"class.Glip::CorePipeline::AbstractPipelineLayout", ptr %16, i32 0, i32 1
  %32 = call ptr @_ZNSt6vectorIN4Glip12CorePipeline22AbstractPipelineLayout10ConnectionESaIS3_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %31) #5
  %33 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.28", ptr %11, i32 0, i32 0
  store ptr %32, ptr %33, align 8
  br label %34

34:                                               ; preds = %60, %30
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %35 = getelementptr inbounds %"class.Glip::CorePipeline::AbstractPipelineLayout", ptr %16, i32 0, i32 1
  %36 = call ptr @_ZNSt6vectorIN4Glip12CorePipeline22AbstractPipelineLayout10ConnectionESaIS3_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %35) #5
  %37 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.28", ptr %12, i32 0, i32 0
  store ptr %36, ptr %37, align 8
  %38 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN4Glip12CorePipeline22AbstractPipelineLayout10ConnectionESt6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  br i1 %38, label %40, label %39

39:                                               ; preds = %34
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  br label %63

40:                                               ; preds = %34
  %41 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN4Glip12CorePipeline22AbstractPipelineLayout10ConnectionESt6vectorIS4_SaIS4_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #5
  %42 = getelementptr inbounds %"struct.Glip::CorePipeline::AbstractPipelineLayout::Connection", ptr %41, i32 0, i32 2
  %43 = load i32, ptr %42, align 4, !tbaa !13
  %44 = load i32, ptr %7, align 4, !tbaa !9
  %45 = icmp eq i32 %43, %44
  br i1 %45, label %46, label %59

46:                                               ; preds = %40
  %47 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN4Glip12CorePipeline22AbstractPipelineLayout10ConnectionESt6vectorIS4_SaIS4_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #5
  %48 = getelementptr inbounds %"struct.Glip::CorePipeline::AbstractPipelineLayout::Connection", ptr %47, i32 0, i32 3
  %49 = load i32, ptr %48, align 4, !tbaa !15
  %50 = load i32, ptr %8, align 4, !tbaa !9
  %51 = icmp eq i32 %49, %50
  br i1 %51, label %52, label %59

52:                                               ; preds = %46
  %53 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN4Glip12CorePipeline22AbstractPipelineLayout10ConnectionESt6vectorIS4_SaIS4_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #5
  invoke void @_ZNSt6vectorIN4Glip12CorePipeline22AbstractPipelineLayout10ConnectionESaIS3_EE9push_backERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 4 dereferenceable(16) %53)
          to label %54 unwind label %55

54:                                               ; preds = %52
  br label %59

55:                                               ; preds = %52
  %56 = landingpad { ptr, i32 }
          cleanup
  %57 = extractvalue { ptr, i32 } %56, 0
  store ptr %57, ptr %13, align 8
  %58 = extractvalue { ptr, i32 } %56, 1
  store i32 %58, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @_ZNSt6vectorIN4Glip12CorePipeline22AbstractPipelineLayout10ConnectionESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  br label %67

59:                                               ; preds = %54, %46, %40
  br label %60

60:                                               ; preds = %59
  %61 = call ptr @_ZN9__gnu_cxx17__normal_iteratorIPN4Glip12CorePipeline22AbstractPipelineLayout10ConnectionESt6vectorIS4_SaIS4_EEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %11, i32 noundef 0) #5
  %62 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.28", ptr %15, i32 0, i32 0
  store ptr %61, ptr %62, align 8
  br label %34, !llvm.loop !16

63:                                               ; preds = %39
  store i1 true, ptr %10, align 1
  %64 = load i1, ptr %10, align 1
  br i1 %64, label %66, label %65

65:                                               ; preds = %63
  call void @_ZNSt6vectorIN4Glip12CorePipeline22AbstractPipelineLayout10ConnectionESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  br label %66

66:                                               ; preds = %65, %63
  ret void

67:                                               ; preds = %55
  %68 = load ptr, ptr %13, align 8
  %69 = load i32, ptr %14, align 4
  %70 = insertvalue { ptr, i32 } poison, ptr %68, 0
  %71 = insertvalue { ptr, i32 } %70, i32 %69, 1
  resume { ptr, i32 } %71
}

declare void @_ZNK4Glip12CorePipeline23AbstractComponentLayout15checkOutputPortEi(ptr noundef nonnull align 8 dereferenceable(88), i32 noundef) #3

declare void @_ZNK4Glip12CorePipeline23AbstractComponentLayout14checkInputPortEi(ptr noundef nonnull align 8 dereferenceable(88), i32 noundef) #3

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

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

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

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

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

attributes #0 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { inlinehint mustprogress 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 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"vtable pointer", !8, i64 0}
!13 = !{!14, !10, i64 8}
!14 = !{!"_ZTSN4Glip12CorePipeline22AbstractPipelineLayout10ConnectionE", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12}
!15 = !{!14, !10, i64 12}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}


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

%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<Glip::CorePipeline::AbstractPipelineLayout::Connection, std::allocator<Glip::CorePipeline::AbstractPipelineLayout::Connection>>::_Vector_impl" }
%"struct.std::_Vector_base<Glip::CorePipeline::AbstractPipelineLayout::Connection, std::allocator<Glip::CorePipeline::AbstractPipelineLayout::Connection>>::_Vector_impl" = type { %"struct.std::_Vector_base<Glip::CorePipeline::AbstractPipelineLayout::Connection, std::allocator<Glip::CorePipeline::AbstractPipelineLayout::Connection>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Glip::CorePipeline::AbstractPipelineLayout::Connection, std::allocator<Glip::CorePipeline::AbstractPipelineLayout::Connection>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator.28" = type { ptr }

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(88) ptr @_ZNK4Glip12CorePipeline22AbstractPipelineLayout15componentLayoutEi(ptr noundef nonnull align 8 dereferenceable(128), i32 noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4Glip12CorePipeline22AbstractPipelineLayout25getConnectionDestinationsEii(ptr dead_on_unwind noalias writable sret(%"class.std::vector") align 8 %0, ptr noundef nonnull align 8 dereferenceable(128) %1, i32 noundef %2, i32 noundef %3) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca %"class.__gnu_cxx::__normal_iterator.28", align 8
  %6 = alloca %"class.__gnu_cxx::__normal_iterator.28", align 8
  %.not = icmp eq i32 %2, -1
  br i1 %.not, label %9, label %7

7:                                                ; preds = %4
  %8 = tail call noundef nonnull align 8 dereferenceable(88) ptr @_ZNK4Glip12CorePipeline22AbstractPipelineLayout15componentLayoutEi(ptr noundef nonnull align 8 dereferenceable(128) %1, i32 noundef %2)
  tail call void @_ZNK4Glip12CorePipeline23AbstractComponentLayout15checkOutputPortEi(ptr noundef nonnull align 8 dereferenceable(88) %8, i32 noundef %3)
  br label %14

9:                                                ; preds = %4
  %10 = load ptr, ptr %1, align 8, !tbaa !5
  %11 = getelementptr i8, ptr %10, i64 -24
  %12 = load i64, ptr %11, align 8
  %13 = getelementptr inbounds i8, ptr %1, i64 %12
  tail call void @_ZNK4Glip12CorePipeline23AbstractComponentLayout14checkInputPortEi(ptr noundef nonnull align 8 dereferenceable(88) %13, i32 noundef %3)
  br label %14

14:                                               ; preds = %9, %7
  tail call void @_ZNSt6vectorIN4Glip12CorePipeline22AbstractPipelineLayout10ConnectionESaIS3_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #5
  %15 = getelementptr inbounds i8, ptr %1, i64 8
  %16 = tail call ptr @_ZNSt6vectorIN4Glip12CorePipeline22AbstractPipelineLayout10ConnectionESaIS3_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %15) #5
  store ptr %16, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #5
  %17 = tail call ptr @_ZNSt6vectorIN4Glip12CorePipeline22AbstractPipelineLayout10ConnectionESaIS3_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %15) #5
  store ptr %17, ptr %6, align 8
  %18 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN4Glip12CorePipeline22AbstractPipelineLayout10ConnectionESt6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  br i1 %18, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %32, %14
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  ret void

.lr.ph:                                           ; preds = %14, %32
  %19 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN4Glip12CorePipeline22AbstractPipelineLayout10ConnectionESt6vectorIS4_SaIS4_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #5
  %20 = getelementptr inbounds i8, ptr %19, i64 8
  %21 = load i32, ptr %20, align 4, !tbaa !8
  %22 = icmp eq i32 %21, %2
  br i1 %22, label %23, label %32

23:                                               ; preds = %.lr.ph
  %24 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN4Glip12CorePipeline22AbstractPipelineLayout10ConnectionESt6vectorIS4_SaIS4_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #5
  %25 = getelementptr inbounds i8, ptr %24, i64 12
  %26 = load i32, ptr %25, align 4, !tbaa !12
  %27 = icmp eq i32 %26, %3
  br i1 %27, label %28, label %32

28:                                               ; preds = %23
  %29 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN4Glip12CorePipeline22AbstractPipelineLayout10ConnectionESt6vectorIS4_SaIS4_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #5
  invoke void @_ZNSt6vectorIN4Glip12CorePipeline22AbstractPipelineLayout10ConnectionESaIS3_EE9push_backERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 4 dereferenceable(16) %29)
          to label %32 unwind label %30

30:                                               ; preds = %28
  %31 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  call void @_ZNSt6vectorIN4Glip12CorePipeline22AbstractPipelineLayout10ConnectionESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  resume { ptr, i32 } %31

32:                                               ; preds = %.lr.ph, %23, %28
  %33 = call ptr @_ZN9__gnu_cxx17__normal_iteratorIPN4Glip12CorePipeline22AbstractPipelineLayout10ConnectionESt6vectorIS4_SaIS4_EEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %5, i32 noundef 0) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #5
  %34 = call ptr @_ZNSt6vectorIN4Glip12CorePipeline22AbstractPipelineLayout10ConnectionESaIS3_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %15) #5
  store ptr %34, ptr %6, align 8
  %35 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN4Glip12CorePipeline22AbstractPipelineLayout10ConnectionESt6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  br i1 %35, label %.lr.ph, label %._crit_edge, !llvm.loop !13
}

declare void @_ZNK4Glip12CorePipeline23AbstractComponentLayout15checkOutputPortEi(ptr noundef nonnull align 8 dereferenceable(88), i32 noundef) local_unnamed_addr #3

declare void @_ZNK4Glip12CorePipeline23AbstractComponentLayout14checkInputPortEi(ptr noundef nonnull align 8 dereferenceable(88), i32 noundef) local_unnamed_addr #3

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

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

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

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

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

attributes #0 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { inlinehint mustprogress 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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !10, i64 8}
!9 = !{!"_ZTSN4Glip12CorePipeline22AbstractPipelineLayout10ConnectionE", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12}
!10 = !{!"int", !11, i64 0}
!11 = !{!"omnipotent char", !7, i64 0}
!12 = !{!9, !10, i64 12}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass