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

; 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::__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] }
%"class.std::allocator.20" = type { i8 }
%"class.Glip::CorePipeline::Pipeline" = type { %"class.Glip::CorePipeline::AbstractPipelineLayout.base", %"class.Glip::CorePipeline::Component.base", %"class.std::vector.42", %"struct.Glip::CorePipeline::Pipeline::BufferFormatsCell", %"class.std::map.48", ptr, %"class.std::vector.54", %"class.std::vector.59", %"class.std::vector.64", %"class.std::map.69", i8, i8, i8, i32, %"class.std::vector.74", double, %"class.Glip::CorePipeline::AbstractComponentLayout" }
%"class.Glip::CorePipeline::AbstractPipelineLayout.base" = type { ptr, %"class.std::vector", %"class.std::vector.0", %"class.std::vector.5", %"class.std::vector.10", %"class.std::vector.15" }
%"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.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::Component.base" = type { ptr, %"class.std::__cxx11::basic_string" }
%"class.std::vector.42" = type { %"struct.std::_Vector_base.43" }
%"struct.std::_Vector_base.43" = type { %"struct.std::_Vector_base<Glip::CoreGL::HdlTexture *, std::allocator<Glip::CoreGL::HdlTexture *>>::_Vector_impl" }
%"struct.std::_Vector_base<Glip::CoreGL::HdlTexture *, std::allocator<Glip::CoreGL::HdlTexture *>>::_Vector_impl" = type { %"struct.std::_Vector_base<Glip::CoreGL::HdlTexture *, std::allocator<Glip::CoreGL::HdlTexture *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Glip::CoreGL::HdlTexture *, std::allocator<Glip::CoreGL::HdlTexture *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.Glip::CorePipeline::Pipeline::BufferFormatsCell" = type { %"class.std::vector.32", %"class.std::vector.15" }
%"class.std::vector.32" = type { %"struct.std::_Vector_base.33" }
%"struct.std::_Vector_base.33" = type { %"struct.std::_Vector_base<Glip::CoreGL::HdlTextureFormat, std::allocator<Glip::CoreGL::HdlTextureFormat>>::_Vector_impl" }
%"struct.std::_Vector_base<Glip::CoreGL::HdlTextureFormat, std::allocator<Glip::CoreGL::HdlTextureFormat>>::_Vector_impl" = type { %"struct.std::_Vector_base<Glip::CoreGL::HdlTextureFormat, std::allocator<Glip::CoreGL::HdlTextureFormat>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Glip::CoreGL::HdlTextureFormat, std::allocator<Glip::CoreGL::HdlTextureFormat>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::map.48" = type { %"class.std::_Rb_tree.49" }
%"class.std::_Rb_tree.49" = type { %"struct.std::_Rb_tree<int, std::pair<const int, Glip::CorePipeline::Pipeline::BuffersCell *>, std::_Select1st<std::pair<const int, Glip::CorePipeline::Pipeline::BuffersCell *>>, std::less<int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, std::pair<const int, Glip::CorePipeline::Pipeline::BuffersCell *>, std::_Select1st<std::pair<const int, Glip::CorePipeline::Pipeline::BuffersCell *>>, std::less<int>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.std::vector.54" = type { %"struct.std::_Vector_base.55" }
%"struct.std::_Vector_base.55" = type { %"struct.std::_Vector_base<Glip::CorePipeline::Filter *, std::allocator<Glip::CorePipeline::Filter *>>::_Vector_impl" }
%"struct.std::_Vector_base<Glip::CorePipeline::Filter *, std::allocator<Glip::CorePipeline::Filter *>>::_Vector_impl" = type { %"struct.std::_Vector_base<Glip::CorePipeline::Filter *, std::allocator<Glip::CorePipeline::Filter *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Glip::CorePipeline::Filter *, std::allocator<Glip::CorePipeline::Filter *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.59" = type { %"struct.std::_Vector_base.60" }
%"struct.std::_Vector_base.60" = type { %"struct.std::_Vector_base<Glip::CorePipeline::Pipeline::ActionHub, std::allocator<Glip::CorePipeline::Pipeline::ActionHub>>::_Vector_impl" }
%"struct.std::_Vector_base<Glip::CorePipeline::Pipeline::ActionHub, std::allocator<Glip::CorePipeline::Pipeline::ActionHub>>::_Vector_impl" = type { %"struct.std::_Vector_base<Glip::CorePipeline::Pipeline::ActionHub, std::allocator<Glip::CorePipeline::Pipeline::ActionHub>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Glip::CorePipeline::Pipeline::ActionHub, std::allocator<Glip::CorePipeline::Pipeline::ActionHub>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.64" = type { %"struct.std::_Vector_base.65" }
%"struct.std::_Vector_base.65" = type { %"struct.std::_Vector_base<Glip::CorePipeline::Pipeline::OutputHub, std::allocator<Glip::CorePipeline::Pipeline::OutputHub>>::_Vector_impl" }
%"struct.std::_Vector_base<Glip::CorePipeline::Pipeline::OutputHub, std::allocator<Glip::CorePipeline::Pipeline::OutputHub>>::_Vector_impl" = type { %"struct.std::_Vector_base<Glip::CorePipeline::Pipeline::OutputHub, std::allocator<Glip::CorePipeline::Pipeline::OutputHub>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Glip::CorePipeline::Pipeline::OutputHub, std::allocator<Glip::CorePipeline::Pipeline::OutputHub>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::map.69" = type { %"class.std::_Rb_tree.70" }
%"class.std::_Rb_tree.70" = type { %"struct.std::_Rb_tree<int, std::pair<const int, int>, std::_Select1st<std::pair<const int, int>>, std::less<int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, std::pair<const int, int>, std::_Select1st<std::pair<const int, int>>, std::less<int>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"class.std::vector.74" = type { %"struct.std::_Vector_base.75" }
%"struct.std::_Vector_base.75" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_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" }
%"struct.Glip::CorePipeline::Pipeline::BuffersCell" = type { %"class.std::vector.37" }
%"class.std::vector.37" = type { %"struct.std::_Vector_base.38" }
%"struct.std::_Vector_base.38" = type { %"struct.std::_Vector_base<Glip::CoreGL::HdlFBO *, std::allocator<Glip::CoreGL::HdlFBO *>>::_Vector_impl" }
%"struct.std::_Vector_base<Glip::CoreGL::HdlFBO *, std::allocator<Glip::CoreGL::HdlFBO *>>::_Vector_impl" = type { %"struct.std::_Vector_base<Glip::CoreGL::HdlFBO *, std::allocator<Glip::CoreGL::HdlFBO *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Glip::CoreGL::HdlFBO *, std::allocator<Glip::CoreGL::HdlFBO *>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@.str.1 = external hidden unnamed_addr constant [88 x i8], align 1
@_ZTIN4Glip9ExceptionE = external constant ptr
@.str.68 = external hidden unnamed_addr constant [110 x i8], align 1

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) #0

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

declare ptr @__cxa_allocate_exception(i64)

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

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

declare void @_ZN4Glip9ExceptionC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES6_iRKNS0_4TypeE(ptr noundef nonnull align 8 dereferenceable(152), ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, i32 noundef, ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #3

; Function Attrs: nounwind
declare void @_ZN4Glip9ExceptionD1Ev(ptr noundef nonnull align 8 dereferenceable(152)) unnamed_addr #4

declare void @__cxa_throw(ptr, ptr, ptr)

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #1 align 2

declare void @__cxa_free_exception(ptr)

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(52) ptr @_ZNSt6vectorIN4Glip6CoreGL16HdlTextureFormatESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN4Glip12CorePipeline8Pipeline7getSizeEb(ptr noundef nonnull align 8 dereferenceable(456) %0, i1 noundef zeroext %1) #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca i8, align 1
  %5 = alloca i32, align 4
  %6 = alloca %"class.std::__cxx11::basic_string", align 8
  %7 = alloca %"class.std::allocator.20", align 1
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca %"class.std::__cxx11::basic_string", align 8
  %11 = alloca %"class.std::allocator.20", align 1
  %12 = alloca i32, align 4
  %13 = alloca i1, align 1
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  %16 = zext i1 %1 to i8
  store i8 %16, ptr %4, align 1, !tbaa !9
  %17 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  store i32 0, ptr %5, align 4, !tbaa !11
  %18 = load i8, ptr %4, align 1, !tbaa !9, !range !13, !noundef !14
  %19 = trunc i8 %18 to i1
  br i1 %19, label %20, label %46

20:                                               ; preds = %2
  %21 = getelementptr inbounds %"class.Glip::CorePipeline::Pipeline", ptr %17, i32 0, i32 5
  %22 = load ptr, ptr %21, align 8, !tbaa !15
  %23 = icmp eq ptr %22, null
  br i1 %23, label %24, label %46

24:                                               ; preds = %20
  store i1 true, ptr %13, align 1
  %25 = call ptr @__cxa_allocate_exception(i64 152) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr %6) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %7) #5
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #5
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef @.str.68, ptr noundef nonnull align 1 dereferenceable(1) %7)
          to label %26 unwind label %29

26:                                               ; preds = %24
  call void @llvm.lifetime.start.p0(i64 1, ptr %11) #5
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #5
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %10, ptr noundef @.str.1, ptr noundef nonnull align 1 dereferenceable(1) %11)
          to label %27 unwind label %33

27:                                               ; preds = %26
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  store i32 1, ptr %12, align 4, !tbaa !79
  invoke void @_ZN4Glip9ExceptionC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES6_iRKNS0_4TypeE(ptr noundef nonnull align 8 dereferenceable(152) %25, ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef %10, i32 noundef 1465, ptr noundef nonnull align 4 dereferenceable(4) %12)
          to label %28 unwind label %37

28:                                               ; preds = %27
  store i1 false, ptr %13, align 1
  invoke void @__cxa_throw(ptr %25, ptr @_ZTIN4Glip9ExceptionE, ptr @_ZN4Glip9ExceptionD1Ev) #6
          to label %93 unwind label %37

29:                                               ; preds = %24
  %30 = landingpad { ptr, i32 }
          cleanup
  %31 = extractvalue { ptr, i32 } %30, 0
  store ptr %31, ptr %8, align 8
  %32 = extractvalue { ptr, i32 } %30, 1
  store i32 %32, ptr %9, align 4
  br label %42

33:                                               ; preds = %26
  %34 = landingpad { ptr, i32 }
          cleanup
  %35 = extractvalue { ptr, i32 } %34, 0
  store ptr %35, ptr %8, align 8
  %36 = extractvalue { ptr, i32 } %34, 1
  store i32 %36, ptr %9, align 4
  br label %41

37:                                               ; preds = %28, %27
  %38 = landingpad { ptr, i32 }
          cleanup
  %39 = extractvalue { ptr, i32 } %38, 0
  store ptr %39, ptr %8, align 8
  %40 = extractvalue { ptr, i32 } %38, 1
  store i32 %40, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #5
  br label %41

41:                                               ; preds = %37, %33
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #5
  br label %42

42:                                               ; preds = %41, %29
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %6) #5
  %43 = load i1, ptr %13, align 1
  br i1 %43, label %44, label %45

44:                                               ; preds = %42
  call void @__cxa_free_exception(ptr %25) #5
  br label %45

45:                                               ; preds = %44, %42
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  br label %88

46:                                               ; preds = %20, %2
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  store i32 0, ptr %14, align 4, !tbaa !11
  br label %47

47:                                               ; preds = %83, %46
  %48 = load i32, ptr %14, align 4, !tbaa !11
  %49 = getelementptr inbounds %"class.Glip::CorePipeline::Pipeline", ptr %17, i32 0, i32 3
  %50 = call noundef i32 @_ZNK4Glip12CorePipeline8Pipeline17BufferFormatsCell4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) %49)
  %51 = icmp slt i32 %48, %50
  br i1 %51, label %53, label %52

52:                                               ; preds = %47
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  br label %86

53:                                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  store i32 0, ptr %15, align 4, !tbaa !11
  %54 = load i8, ptr %4, align 1, !tbaa !9, !range !13, !noundef !14
  %55 = trunc i8 %54 to i1
  br i1 %55, label %56, label %68

56:                                               ; preds = %53
  %57 = getelementptr inbounds %"class.Glip::CorePipeline::Pipeline", ptr %17, i32 0, i32 5
  %58 = load ptr, ptr %57, align 8, !tbaa !15
  %59 = getelementptr inbounds %"struct.Glip::CorePipeline::Pipeline::BuffersCell", ptr %58, i32 0, i32 0
  %60 = load i32, ptr %14, align 4, !tbaa !11
  %61 = sext i32 %60 to i64
  %62 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPN4Glip6CoreGL6HdlFBOESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %59, i64 noundef %61) #5
  %63 = load ptr, ptr %62, align 8, !tbaa !5
  %64 = load i8, ptr %4, align 1, !tbaa !9, !range !13, !noundef !14
  %65 = trunc i8 %64 to i1
  %66 = call noundef i64 @_ZN4Glip6CoreGL6HdlFBO7getSizeEb(ptr noundef nonnull align 8 dereferenceable(97) %63, i1 noundef zeroext %65)
  %67 = trunc i64 %66 to i32
  store i32 %67, ptr %15, align 4, !tbaa !11
  br label %79

68:                                               ; preds = %53
  %69 = getelementptr inbounds %"class.Glip::CorePipeline::Pipeline", ptr %17, i32 0, i32 3
  %70 = getelementptr inbounds %"struct.Glip::CorePipeline::Pipeline::BufferFormatsCell", ptr %69, i32 0, i32 0
  %71 = load i32, ptr %14, align 4, !tbaa !11
  %72 = sext i32 %71 to i64
  %73 = call noundef nonnull align 8 dereferenceable(52) ptr @_ZNSt6vectorIN4Glip6CoreGL16HdlTextureFormatESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %70, i64 noundef %72) #5
  %74 = load ptr, ptr %73, align 8, !tbaa !81
  %75 = getelementptr inbounds ptr, ptr %74, i64 3
  %76 = load ptr, ptr %75, align 8
  %77 = call noundef i64 %76(ptr noundef nonnull align 8 dereferenceable(52) %73)
  %78 = trunc i64 %77 to i32
  store i32 %78, ptr %15, align 4, !tbaa !11
  br label %79

79:                                               ; preds = %68, %56
  %80 = load i32, ptr %15, align 4, !tbaa !11
  %81 = load i32, ptr %5, align 4, !tbaa !11
  %82 = add nsw i32 %81, %80
  store i32 %82, ptr %5, align 4, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  br label %83

83:                                               ; preds = %79
  %84 = load i32, ptr %14, align 4, !tbaa !11
  %85 = add nsw i32 %84, 1
  store i32 %85, ptr %14, align 4, !tbaa !11
  br label %47, !llvm.loop !83

86:                                               ; preds = %52
  %87 = load i32, ptr %5, align 4, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  ret i32 %87

88:                                               ; preds = %45
  %89 = load ptr, ptr %8, align 8
  %90 = load i32, ptr %9, align 4
  %91 = insertvalue { ptr, i32 } poison, ptr %89, 0
  %92 = insertvalue { ptr, i32 } %91, i32 %90, 1
  resume { ptr, i32 } %92

93:                                               ; preds = %28
  unreachable
}

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

declare noundef i64 @_ZN4Glip6CoreGL6HdlFBO7getSizeEb(ptr noundef nonnull align 8 dereferenceable(97), i1 noundef zeroext) #3

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

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

!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 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{i8 0, i8 2}
!14 = !{}
!15 = !{!16, !6, i64 288}
!16 = !{!"_ZTSN4Glip12CorePipeline8PipelineE", !17, i64 0, !38, i64 128, !42, i64 168, !46, i64 192, !51, i64 240, !6, i64 288, !59, i64 296, !63, i64 320, !67, i64 344, !71, i64 368, !10, i64 416, !10, i64 417, !10, i64 418, !12, i64 420, !74, i64 424, !78, i64 448}
!17 = !{!"_ZTSN4Glip12CorePipeline22AbstractPipelineLayoutE", !18, i64 8, !22, i64 32, !26, i64 56, !30, i64 80, !34, i64 104}
!18 = !{!"_ZTSSt6vectorIN4Glip12CorePipeline22AbstractPipelineLayout10ConnectionESaIS3_EE", !19, i64 0}
!19 = !{!"_ZTSSt12_Vector_baseIN4Glip12CorePipeline22AbstractPipelineLayout10ConnectionESaIS3_EE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseIN4Glip12CorePipeline22AbstractPipelineLayout10ConnectionESaIS3_EE12_Vector_implE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseIN4Glip12CorePipeline22AbstractPipelineLayout10ConnectionESaIS3_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!22 = !{!"_ZTSSt6vectorIPN4Glip12CorePipeline23AbstractComponentLayoutESaIS3_EE", !23, i64 0}
!23 = !{!"_ZTSSt12_Vector_baseIPN4Glip12CorePipeline23AbstractComponentLayoutESaIS3_EE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseIPN4Glip12CorePipeline23AbstractComponentLayoutESaIS3_EE12_Vector_implE", !25, i64 0}
!25 = !{!"_ZTSNSt12_Vector_baseIPN4Glip12CorePipeline23AbstractComponentLayoutESaIS3_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!26 = !{!"_ZTSSt6vectorIN4Glip12CorePipeline22AbstractPipelineLayout13ComponentKindESaIS3_EE", !27, i64 0}
!27 = !{!"_ZTSSt12_Vector_baseIN4Glip12CorePipeline22AbstractPipelineLayout13ComponentKindESaIS3_EE", !28, i64 0}
!28 = !{!"_ZTSNSt12_Vector_baseIN4Glip12CorePipeline22AbstractPipelineLayout13ComponentKindESaIS3_EE12_Vector_implE", !29, i64 0}
!29 = !{!"_ZTSNSt12_Vector_baseIN4Glip12CorePipeline22AbstractPipelineLayout13ComponentKindESaIS3_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!30 = !{!"_ZTSSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE", !31, i64 0}
!31 = !{!"_ZTSSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE", !32, i64 0}
!32 = !{!"_ZTSNSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE12_Vector_implE", !33, i64 0}
!33 = !{!"_ZTSNSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!34 = !{!"_ZTSSt6vectorIiSaIiEE", !35, i64 0}
!35 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !36, i64 0}
!36 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !37, i64 0}
!37 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!38 = !{!"_ZTSN4Glip12CorePipeline9ComponentE", !39, i64 8}
!39 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !40, i64 0, !41, i64 8, !7, i64 16}
!40 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!41 = !{!"long", !7, i64 0}
!42 = !{!"_ZTSSt6vectorIPN4Glip6CoreGL10HdlTextureESaIS3_EE", !43, i64 0}
!43 = !{!"_ZTSSt12_Vector_baseIPN4Glip6CoreGL10HdlTextureESaIS3_EE", !44, i64 0}
!44 = !{!"_ZTSNSt12_Vector_baseIPN4Glip6CoreGL10HdlTextureESaIS3_EE12_Vector_implE", !45, i64 0}
!45 = !{!"_ZTSNSt12_Vector_baseIPN4Glip6CoreGL10HdlTextureESaIS3_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!46 = !{!"_ZTSN4Glip12CorePipeline8Pipeline17BufferFormatsCellE", !47, i64 0, !34, i64 24}
!47 = !{!"_ZTSSt6vectorIN4Glip6CoreGL16HdlTextureFormatESaIS2_EE", !48, i64 0}
!48 = !{!"_ZTSSt12_Vector_baseIN4Glip6CoreGL16HdlTextureFormatESaIS2_EE", !49, i64 0}
!49 = !{!"_ZTSNSt12_Vector_baseIN4Glip6CoreGL16HdlTextureFormatESaIS2_EE12_Vector_implE", !50, i64 0}
!50 = !{!"_ZTSNSt12_Vector_baseIN4Glip6CoreGL16HdlTextureFormatESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!51 = !{!"_ZTSSt3mapIiPN4Glip12CorePipeline8Pipeline11BuffersCellESt4lessIiESaISt4pairIKiS4_EEE", !52, i64 0}
!52 = !{!"_ZTSSt8_Rb_treeIiSt4pairIKiPN4Glip12CorePipeline8Pipeline11BuffersCellEESt10_Select1stIS7_ESt4lessIiESaIS7_EE", !53, i64 0}
!53 = !{!"_ZTSNSt8_Rb_treeIiSt4pairIKiPN4Glip12CorePipeline8Pipeline11BuffersCellEESt10_Select1stIS7_ESt4lessIiESaIS7_EE13_Rb_tree_implISB_Lb1EEE", !54, i64 0, !56, i64 8}
!54 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessIiEE", !55, i64 0}
!55 = !{!"_ZTSSt4lessIiE"}
!56 = !{!"_ZTSSt15_Rb_tree_header", !57, i64 0, !41, i64 32}
!57 = !{!"_ZTSSt18_Rb_tree_node_base", !58, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!58 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}
!59 = !{!"_ZTSSt6vectorIPN4Glip12CorePipeline6FilterESaIS3_EE", !60, i64 0}
!60 = !{!"_ZTSSt12_Vector_baseIPN4Glip12CorePipeline6FilterESaIS3_EE", !61, i64 0}
!61 = !{!"_ZTSNSt12_Vector_baseIPN4Glip12CorePipeline6FilterESaIS3_EE12_Vector_implE", !62, i64 0}
!62 = !{!"_ZTSNSt12_Vector_baseIPN4Glip12CorePipeline6FilterESaIS3_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!63 = !{!"_ZTSSt6vectorIN4Glip12CorePipeline8Pipeline9ActionHubESaIS3_EE", !64, i64 0}
!64 = !{!"_ZTSSt12_Vector_baseIN4Glip12CorePipeline8Pipeline9ActionHubESaIS3_EE", !65, i64 0}
!65 = !{!"_ZTSNSt12_Vector_baseIN4Glip12CorePipeline8Pipeline9ActionHubESaIS3_EE12_Vector_implE", !66, i64 0}
!66 = !{!"_ZTSNSt12_Vector_baseIN4Glip12CorePipeline8Pipeline9ActionHubESaIS3_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!67 = !{!"_ZTSSt6vectorIN4Glip12CorePipeline8Pipeline9OutputHubESaIS3_EE", !68, i64 0}
!68 = !{!"_ZTSSt12_Vector_baseIN4Glip12CorePipeline8Pipeline9OutputHubESaIS3_EE", !69, i64 0}
!69 = !{!"_ZTSNSt12_Vector_baseIN4Glip12CorePipeline8Pipeline9OutputHubESaIS3_EE12_Vector_implE", !70, i64 0}
!70 = !{!"_ZTSNSt12_Vector_baseIN4Glip12CorePipeline8Pipeline9OutputHubESaIS3_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!71 = !{!"_ZTSSt3mapIiiSt4lessIiESaISt4pairIKiiEEE", !72, i64 0}
!72 = !{!"_ZTSSt8_Rb_treeIiSt4pairIKiiESt10_Select1stIS2_ESt4lessIiESaIS2_EE", !73, i64 0}
!73 = !{!"_ZTSNSt8_Rb_treeIiSt4pairIKiiESt10_Select1stIS2_ESt4lessIiESaIS2_EE13_Rb_tree_implIS6_Lb1EEE", !54, i64 0, !56, i64 8}
!74 = !{!"_ZTSSt6vectorIdSaIdEE", !75, i64 0}
!75 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !76, i64 0}
!76 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !77, i64 0}
!77 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!78 = !{!"double", !7, i64 0}
!79 = !{!80, !80, i64 0}
!80 = !{!"_ZTSN4Glip9Exception4TypeE", !7, i64 0}
!81 = !{!82, !82, i64 0}
!82 = !{!"vtable pointer", !8, i64 0}
!83 = distinct !{!83, !84}
!84 = !{!"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::__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] }
%"class.std::allocator.20" = type { i8 }

@.str.1 = external hidden unnamed_addr constant [88 x i8], align 1
@_ZTIN4Glip9ExceptionE = external constant ptr
@.str.68 = external hidden unnamed_addr constant [110 x i8], align 1

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) #0

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

declare ptr @__cxa_allocate_exception(i64) local_unnamed_addr

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

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

declare void @_ZN4Glip9ExceptionC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES6_iRKNS0_4TypeE(ptr noundef nonnull align 8 dereferenceable(152), ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, i32 noundef, ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #3

; Function Attrs: nounwind
declare void @_ZN4Glip9ExceptionD1Ev(ptr noundef nonnull align 8 dereferenceable(152)) unnamed_addr #4

declare void @__cxa_throw(ptr, ptr, ptr) local_unnamed_addr

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #1 align 2

declare void @__cxa_free_exception(ptr) local_unnamed_addr

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(52) ptr @_ZNSt6vectorIN4Glip6CoreGL16HdlTextureFormatESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN4Glip12CorePipeline8Pipeline7getSizeEb(ptr noundef nonnull align 8 dereferenceable(456) %0, i1 noundef zeroext %1) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.std::__cxx11::basic_string", align 8
  %4 = alloca %"class.std::allocator.20", align 1
  %5 = alloca %"class.std::__cxx11::basic_string", align 8
  %6 = alloca %"class.std::allocator.20", align 1
  %7 = alloca i32, align 4
  %8 = getelementptr inbounds i8, ptr %0, i64 288
  %9 = load ptr, ptr %8, align 8
  %10 = icmp eq ptr %9, null
  %or.cond = select i1 %1, i1 %10, i1 false
  br i1 %or.cond, label %22, label %.preheader

.preheader:                                       ; preds = %2
  %11 = getelementptr inbounds i8, ptr %0, i64 192
  %12 = tail call noundef i32 @_ZNK4Glip12CorePipeline8Pipeline17BufferFormatsCell4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) %11)
  %13 = icmp sgt i32 %12, 0
  br i1 %13, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %.preheader
  br i1 %1, label %.lr.ph.split.us, label %.lr.ph.split

.lr.ph.split.us:                                  ; preds = %.lr.ph, %.lr.ph.split.us
  %indvars.iv34 = phi i64 [ %indvars.iv.next35, %.lr.ph.split.us ], [ 0, %.lr.ph ]
  %.01929.us = phi i32 [ %18, %.lr.ph.split.us ], [ 0, %.lr.ph ]
  %14 = load ptr, ptr %8, align 8, !tbaa !5
  %15 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPN4Glip6CoreGL6HdlFBOESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %indvars.iv34) #5
  %16 = load ptr, ptr %15, align 8, !tbaa !74
  %17 = tail call noundef i64 @_ZN4Glip6CoreGL6HdlFBO7getSizeEb(ptr noundef nonnull align 8 dereferenceable(97) %16, i1 noundef zeroext true)
  %.0.us = trunc i64 %17 to i32
  %18 = add nsw i32 %.01929.us, %.0.us
  %indvars.iv.next35 = add nuw nsw i64 %indvars.iv34, 1
  %19 = tail call noundef i32 @_ZNK4Glip12CorePipeline8Pipeline17BufferFormatsCell4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) %11)
  %20 = sext i32 %19 to i64
  %21 = icmp slt i64 %indvars.iv.next35, %20
  br i1 %21, label %.lr.ph.split.us, label %._crit_edge, !llvm.loop !75

22:                                               ; preds = %2
  %23 = tail call ptr @__cxa_allocate_exception(i64 152) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #5
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #5
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef nonnull @.str.68, ptr noundef nonnull align 1 dereferenceable(1) %4)
          to label %24 unwind label %.thread

24:                                               ; preds = %22
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #5
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #5
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef nonnull @.str.1, ptr noundef nonnull align 1 dereferenceable(1) %6)
          to label %25 unwind label %28

25:                                               ; preds = %24
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #5
  store i32 1, ptr %7, align 4, !tbaa !77
  invoke void @_ZN4Glip9ExceptionC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES6_iRKNS0_4TypeE(ptr noundef nonnull align 8 dereferenceable(152) %23, ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef nonnull %5, i32 noundef 1465, ptr noundef nonnull align 4 dereferenceable(4) %7)
          to label %26 unwind label %30

26:                                               ; preds = %25
  invoke void @__cxa_throw(ptr nonnull %23, ptr nonnull @_ZTIN4Glip9ExceptionE, ptr nonnull @_ZN4Glip9ExceptionD1Ev) #6
          to label %44 unwind label %30

.thread:                                          ; preds = %22
  %27 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #5
  br label %33

28:                                               ; preds = %24
  %29 = landingpad { ptr, i32 }
          cleanup
  br label %32

30:                                               ; preds = %26, %25
  %.014 = phi i1 [ false, %26 ], [ true, %25 ]
  %31 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #5
  br label %32

32:                                               ; preds = %28, %30
  %.pn = phi { ptr, i32 } [ %31, %30 ], [ %29, %28 ]
  %.1 = phi i1 [ %.014, %30 ], [ true, %28 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #5
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #5
  br i1 %.1, label %33, label %34

33:                                               ; preds = %.thread, %32
  %.pn.pn28 = phi { ptr, i32 } [ %27, %.thread ], [ %.pn, %32 ]
  call void @__cxa_free_exception(ptr %23) #5
  br label %34

34:                                               ; preds = %33, %32
  %.pn.pn27 = phi { ptr, i32 } [ %.pn.pn28, %33 ], [ %.pn, %32 ]
  resume { ptr, i32 } %.pn.pn27

._crit_edge:                                      ; preds = %.lr.ph.split, %.lr.ph.split.us, %.preheader
  %.019.lcssa = phi i32 [ 0, %.preheader ], [ %18, %.lr.ph.split.us ], [ %40, %.lr.ph.split ]
  ret i32 %.019.lcssa

.lr.ph.split:                                     ; preds = %.lr.ph, %.lr.ph.split
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph.split ], [ 0, %.lr.ph ]
  %.01929 = phi i32 [ %40, %.lr.ph.split ], [ 0, %.lr.ph ]
  %35 = tail call noundef nonnull align 8 dereferenceable(52) ptr @_ZNSt6vectorIN4Glip6CoreGL16HdlTextureFormatESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %indvars.iv) #5
  %36 = load ptr, ptr %35, align 8, !tbaa !79
  %37 = getelementptr inbounds i8, ptr %36, i64 24
  %38 = load ptr, ptr %37, align 8
  %39 = tail call noundef i64 %38(ptr noundef nonnull align 8 dereferenceable(52) %35)
  %.0 = trunc i64 %39 to i32
  %40 = add nsw i32 %.01929, %.0
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %41 = tail call noundef i32 @_ZNK4Glip12CorePipeline8Pipeline17BufferFormatsCell4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) %11)
  %42 = sext i32 %41 to i64
  %43 = icmp slt i64 %indvars.iv.next, %42
  br i1 %43, label %.lr.ph.split, label %._crit_edge, !llvm.loop !75

44:                                               ; preds = %26
  unreachable
}

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

declare noundef i64 @_ZN4Glip6CoreGL6HdlFBO7getSizeEb(ptr noundef nonnull align 8 dereferenceable(97), i1 noundef zeroext) local_unnamed_addr #3

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

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

!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, !12, i64 288}
!6 = !{!"_ZTSN4Glip12CorePipeline8PipelineE", !7, i64 0, !31, i64 128, !35, i64 168, !39, i64 192, !44, i64 240, !12, i64 288, !52, i64 296, !56, i64 320, !60, i64 344, !64, i64 368, !67, i64 416, !67, i64 417, !67, i64 418, !68, i64 420, !69, i64 424, !73, i64 448}
!7 = !{!"_ZTSN4Glip12CorePipeline22AbstractPipelineLayoutE", !8, i64 8, !15, i64 32, !19, i64 56, !23, i64 80, !27, i64 104}
!8 = !{!"_ZTSSt6vectorIN4Glip12CorePipeline22AbstractPipelineLayout10ConnectionESaIS3_EE", !9, i64 0}
!9 = !{!"_ZTSSt12_Vector_baseIN4Glip12CorePipeline22AbstractPipelineLayout10ConnectionESaIS3_EE", !10, i64 0}
!10 = !{!"_ZTSNSt12_Vector_baseIN4Glip12CorePipeline22AbstractPipelineLayout10ConnectionESaIS3_EE12_Vector_implE", !11, i64 0}
!11 = !{!"_ZTSNSt12_Vector_baseIN4Glip12CorePipeline22AbstractPipelineLayout10ConnectionESaIS3_EE17_Vector_impl_dataE", !12, i64 0, !12, i64 8, !12, i64 16}
!12 = !{!"any pointer", !13, i64 0}
!13 = !{!"omnipotent char", !14, i64 0}
!14 = !{!"Simple C++ TBAA"}
!15 = !{!"_ZTSSt6vectorIPN4Glip12CorePipeline23AbstractComponentLayoutESaIS3_EE", !16, i64 0}
!16 = !{!"_ZTSSt12_Vector_baseIPN4Glip12CorePipeline23AbstractComponentLayoutESaIS3_EE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIPN4Glip12CorePipeline23AbstractComponentLayoutESaIS3_EE12_Vector_implE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIPN4Glip12CorePipeline23AbstractComponentLayoutESaIS3_EE17_Vector_impl_dataE", !12, i64 0, !12, i64 8, !12, i64 16}
!19 = !{!"_ZTSSt6vectorIN4Glip12CorePipeline22AbstractPipelineLayout13ComponentKindESaIS3_EE", !20, i64 0}
!20 = !{!"_ZTSSt12_Vector_baseIN4Glip12CorePipeline22AbstractPipelineLayout13ComponentKindESaIS3_EE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseIN4Glip12CorePipeline22AbstractPipelineLayout13ComponentKindESaIS3_EE12_Vector_implE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseIN4Glip12CorePipeline22AbstractPipelineLayout13ComponentKindESaIS3_EE17_Vector_impl_dataE", !12, i64 0, !12, i64 8, !12, i64 16}
!23 = !{!"_ZTSSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE", !24, i64 0}
!24 = !{!"_ZTSSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE", !25, i64 0}
!25 = !{!"_ZTSNSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE12_Vector_implE", !26, i64 0}
!26 = !{!"_ZTSNSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE17_Vector_impl_dataE", !12, i64 0, !12, i64 8, !12, i64 16}
!27 = !{!"_ZTSSt6vectorIiSaIiEE", !28, i64 0}
!28 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !29, i64 0}
!29 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !30, i64 0}
!30 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !12, i64 0, !12, i64 8, !12, i64 16}
!31 = !{!"_ZTSN4Glip12CorePipeline9ComponentE", !32, i64 8}
!32 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !33, i64 0, !34, i64 8, !13, i64 16}
!33 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !12, i64 0}
!34 = !{!"long", !13, i64 0}
!35 = !{!"_ZTSSt6vectorIPN4Glip6CoreGL10HdlTextureESaIS3_EE", !36, i64 0}
!36 = !{!"_ZTSSt12_Vector_baseIPN4Glip6CoreGL10HdlTextureESaIS3_EE", !37, i64 0}
!37 = !{!"_ZTSNSt12_Vector_baseIPN4Glip6CoreGL10HdlTextureESaIS3_EE12_Vector_implE", !38, i64 0}
!38 = !{!"_ZTSNSt12_Vector_baseIPN4Glip6CoreGL10HdlTextureESaIS3_EE17_Vector_impl_dataE", !12, i64 0, !12, i64 8, !12, i64 16}
!39 = !{!"_ZTSN4Glip12CorePipeline8Pipeline17BufferFormatsCellE", !40, i64 0, !27, i64 24}
!40 = !{!"_ZTSSt6vectorIN4Glip6CoreGL16HdlTextureFormatESaIS2_EE", !41, i64 0}
!41 = !{!"_ZTSSt12_Vector_baseIN4Glip6CoreGL16HdlTextureFormatESaIS2_EE", !42, i64 0}
!42 = !{!"_ZTSNSt12_Vector_baseIN4Glip6CoreGL16HdlTextureFormatESaIS2_EE12_Vector_implE", !43, i64 0}
!43 = !{!"_ZTSNSt12_Vector_baseIN4Glip6CoreGL16HdlTextureFormatESaIS2_EE17_Vector_impl_dataE", !12, i64 0, !12, i64 8, !12, i64 16}
!44 = !{!"_ZTSSt3mapIiPN4Glip12CorePipeline8Pipeline11BuffersCellESt4lessIiESaISt4pairIKiS4_EEE", !45, i64 0}
!45 = !{!"_ZTSSt8_Rb_treeIiSt4pairIKiPN4Glip12CorePipeline8Pipeline11BuffersCellEESt10_Select1stIS7_ESt4lessIiESaIS7_EE", !46, i64 0}
!46 = !{!"_ZTSNSt8_Rb_treeIiSt4pairIKiPN4Glip12CorePipeline8Pipeline11BuffersCellEESt10_Select1stIS7_ESt4lessIiESaIS7_EE13_Rb_tree_implISB_Lb1EEE", !47, i64 0, !49, i64 8}
!47 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessIiEE", !48, i64 0}
!48 = !{!"_ZTSSt4lessIiE"}
!49 = !{!"_ZTSSt15_Rb_tree_header", !50, i64 0, !34, i64 32}
!50 = !{!"_ZTSSt18_Rb_tree_node_base", !51, i64 0, !12, i64 8, !12, i64 16, !12, i64 24}
!51 = !{!"_ZTSSt14_Rb_tree_color", !13, i64 0}
!52 = !{!"_ZTSSt6vectorIPN4Glip12CorePipeline6FilterESaIS3_EE", !53, i64 0}
!53 = !{!"_ZTSSt12_Vector_baseIPN4Glip12CorePipeline6FilterESaIS3_EE", !54, i64 0}
!54 = !{!"_ZTSNSt12_Vector_baseIPN4Glip12CorePipeline6FilterESaIS3_EE12_Vector_implE", !55, i64 0}
!55 = !{!"_ZTSNSt12_Vector_baseIPN4Glip12CorePipeline6FilterESaIS3_EE17_Vector_impl_dataE", !12, i64 0, !12, i64 8, !12, i64 16}
!56 = !{!"_ZTSSt6vectorIN4Glip12CorePipeline8Pipeline9ActionHubESaIS3_EE", !57, i64 0}
!57 = !{!"_ZTSSt12_Vector_baseIN4Glip12CorePipeline8Pipeline9ActionHubESaIS3_EE", !58, i64 0}
!58 = !{!"_ZTSNSt12_Vector_baseIN4Glip12CorePipeline8Pipeline9ActionHubESaIS3_EE12_Vector_implE", !59, i64 0}
!59 = !{!"_ZTSNSt12_Vector_baseIN4Glip12CorePipeline8Pipeline9ActionHubESaIS3_EE17_Vector_impl_dataE", !12, i64 0, !12, i64 8, !12, i64 16}
!60 = !{!"_ZTSSt6vectorIN4Glip12CorePipeline8Pipeline9OutputHubESaIS3_EE", !61, i64 0}
!61 = !{!"_ZTSSt12_Vector_baseIN4Glip12CorePipeline8Pipeline9OutputHubESaIS3_EE", !62, i64 0}
!62 = !{!"_ZTSNSt12_Vector_baseIN4Glip12CorePipeline8Pipeline9OutputHubESaIS3_EE12_Vector_implE", !63, i64 0}
!63 = !{!"_ZTSNSt12_Vector_baseIN4Glip12CorePipeline8Pipeline9OutputHubESaIS3_EE17_Vector_impl_dataE", !12, i64 0, !12, i64 8, !12, i64 16}
!64 = !{!"_ZTSSt3mapIiiSt4lessIiESaISt4pairIKiiEEE", !65, i64 0}
!65 = !{!"_ZTSSt8_Rb_treeIiSt4pairIKiiESt10_Select1stIS2_ESt4lessIiESaIS2_EE", !66, i64 0}
!66 = !{!"_ZTSNSt8_Rb_treeIiSt4pairIKiiESt10_Select1stIS2_ESt4lessIiESaIS2_EE13_Rb_tree_implIS6_Lb1EEE", !47, i64 0, !49, i64 8}
!67 = !{!"bool", !13, i64 0}
!68 = !{!"int", !13, i64 0}
!69 = !{!"_ZTSSt6vectorIdSaIdEE", !70, i64 0}
!70 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !71, i64 0}
!71 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !72, i64 0}
!72 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !12, i64 0, !12, i64 8, !12, i64 16}
!73 = !{!"double", !13, i64 0}
!74 = !{!12, !12, i64 0}
!75 = distinct !{!75, !76}
!76 = !{!"llvm.loop.mustprogress"}
!77 = !{!78, !78, i64 0}
!78 = !{!"_ZTSN4Glip9Exception4TypeE", !13, i64 0}
!79 = !{!80, !80, i64 0}
!80 = !{!"vtable pointer", !14, i64 0}


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