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

; 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" = type { i8 }
%"class.Glip::CorePipeline::AbstractFilterLayout" = type <{ ptr, [6 x ptr], ptr, i8, i8, i8, i8, i32, i32, i32, i32, [4 x i8], %"class.Glip::CorePipeline::AbstractComponentLayout", %"class.Glip::CoreGL::HdlAbstractTextureFormat.base", [4 x i8] }>
%"class.Glip::CorePipeline::AbstractComponentLayout" = type { ptr, %"class.std::__cxx11::basic_string", %"class.std::vector", %"class.std::vector" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = 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.Glip::CoreGL::HdlAbstractTextureFormat.base" = type <{ ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 }>

@_ZTVN4Glip12CorePipeline20AbstractFilterLayoutE = external dso_local unnamed_addr constant { [6 x ptr], [7 x ptr], [11 x ptr] }, align 8
@_ZTIN4Glip9ExceptionE = external constant ptr
@.str = external hidden unnamed_addr constant [72 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [86 x i8], align 1

; 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 void @_ZN4Glip6CoreGL24HdlAbstractTextureFormatC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(52), ptr noundef nonnull align 8 dereferenceable(52)) unnamed_addr #1

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nounwind
declare void @_ZN4Glip12CorePipeline23AbstractComponentLayoutD2Ev(ptr noundef nonnull align 8 dereferenceable(88)) unnamed_addr #2

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) #3

declare void @_ZN4Glip6CoreGL12ShaderSourceC1ERKS1_(ptr noundef nonnull align 8 dereferenceable(272), ptr noundef nonnull align 8 dereferenceable(272)) unnamed_addr #1

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) #4

declare void @_ZN4Glip12CorePipeline13GeometryModelC1ERKS1_(ptr noundef nonnull align 8 dereferenceable(128), ptr noundef nonnull align 8 dereferenceable(128)) unnamed_addr #1

declare ptr @__cxa_allocate_exception(i64)

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef, ptr noundef nonnull align 8 dereferenceable(32)) #5

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #6 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 #7 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 #1

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

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

declare void @__cxa_free_exception(ptr)

; Function Attrs: nounwind memory(none)
declare i32 @llvm.eh.typeid.for.p0(ptr) #8

declare ptr @__cxa_begin_catch(ptr)

; Function Attrs: nounwind
declare void @_ZN4Glip6CoreGL12ShaderSourceD1Ev(ptr noundef nonnull align 8 dereferenceable(272)) unnamed_addr #2

declare void @_ZN4Glip9ExceptionC1ERKS0_(ptr noundef nonnull align 8 dereferenceable(152), ptr noundef nonnull align 8 dereferenceable(152)) unnamed_addr #1

declare void @__cxa_end_catch()

; Function Attrs: noinline noreturn nounwind uwtable
declare hidden void @__clang_call_terminate(ptr noundef) #9

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4Glip12CorePipeline20AbstractFilterLayoutC1ERKS1_(ptr noundef nonnull align 8 dereferenceable(84) %0, ptr noundef nonnull align 8 dereferenceable(84) %1) unnamed_addr #7 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca %"class.std::__cxx11::basic_string", align 8
  %10 = alloca %"class.std::__cxx11::basic_string", align 8
  %11 = alloca %"class.std::__cxx11::basic_string", align 8
  %12 = alloca %"class.std::allocator", align 1
  %13 = alloca i32, align 4
  %14 = alloca i1, align 1
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %17 = load ptr, ptr %3, align 8
  %18 = getelementptr inbounds i8, ptr %17, i64 88
  %19 = load ptr, ptr %4, align 8, !tbaa !5
  %20 = load ptr, ptr %19, align 8, !tbaa !9
  %21 = getelementptr i8, ptr %20, i64 -24
  %22 = load i64, ptr %21, align 8
  %23 = getelementptr inbounds i8, ptr %19, i64 %22
  call void @_ZN4Glip12CorePipeline23AbstractComponentLayoutC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(88) %18, ptr noundef nonnull align 8 dereferenceable(88) %23)
  %24 = getelementptr inbounds i8, ptr %17, i64 176
  %25 = load ptr, ptr %4, align 8, !tbaa !5
  %26 = load ptr, ptr %25, align 8, !tbaa !9
  %27 = getelementptr i8, ptr %26, i64 -32
  %28 = load i64, ptr %27, align 8
  %29 = getelementptr inbounds i8, ptr %25, i64 %28
  invoke void @_ZN4Glip6CoreGL24HdlAbstractTextureFormatC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(52) %24, ptr noundef nonnull align 8 dereferenceable(52) %29)
          to label %30 unwind label %78

30:                                               ; preds = %2
  store ptr getelementptr inbounds inrange(-32, 16) ({ [6 x ptr], [7 x ptr], [11 x ptr] }, ptr @_ZTVN4Glip12CorePipeline20AbstractFilterLayoutE, i32 0, i32 0, i32 4), ptr %17, align 8, !tbaa !9
  %31 = getelementptr inbounds i8, ptr %17, i64 88
  store ptr getelementptr inbounds inrange(-32, 24) ({ [6 x ptr], [7 x ptr], [11 x ptr] }, ptr @_ZTVN4Glip12CorePipeline20AbstractFilterLayoutE, i32 0, i32 1, i32 4), ptr %31, align 8, !tbaa !9
  %32 = getelementptr inbounds i8, ptr %17, i64 176
  store ptr getelementptr inbounds inrange(-48, 40) ({ [6 x ptr], [7 x ptr], [11 x ptr] }, ptr @_ZTVN4Glip12CorePipeline20AbstractFilterLayoutE, i32 0, i32 2, i32 6), ptr %32, align 8, !tbaa !9
  %33 = getelementptr inbounds %"class.Glip::CorePipeline::AbstractFilterLayout", ptr %17, i32 0, i32 2
  store ptr null, ptr %33, align 8, !tbaa !11
  %34 = getelementptr inbounds %"class.Glip::CorePipeline::AbstractFilterLayout", ptr %17, i32 0, i32 3
  %35 = load ptr, ptr %4, align 8, !tbaa !5
  %36 = getelementptr inbounds %"class.Glip::CorePipeline::AbstractFilterLayout", ptr %35, i32 0, i32 3
  %37 = load i8, ptr %36, align 8, !tbaa !15, !range !16, !noundef !17
  %38 = trunc i8 %37 to i1
  %39 = zext i1 %38 to i8
  store i8 %39, ptr %34, align 8, !tbaa !15
  %40 = getelementptr inbounds %"class.Glip::CorePipeline::AbstractFilterLayout", ptr %17, i32 0, i32 4
  %41 = load ptr, ptr %4, align 8, !tbaa !5
  %42 = getelementptr inbounds %"class.Glip::CorePipeline::AbstractFilterLayout", ptr %41, i32 0, i32 4
  %43 = load i8, ptr %42, align 1, !tbaa !18, !range !16, !noundef !17
  %44 = trunc i8 %43 to i1
  %45 = zext i1 %44 to i8
  store i8 %45, ptr %40, align 1, !tbaa !18
  %46 = getelementptr inbounds %"class.Glip::CorePipeline::AbstractFilterLayout", ptr %17, i32 0, i32 5
  %47 = load ptr, ptr %4, align 8, !tbaa !5
  %48 = getelementptr inbounds %"class.Glip::CorePipeline::AbstractFilterLayout", ptr %47, i32 0, i32 5
  %49 = load i8, ptr %48, align 2, !tbaa !19, !range !16, !noundef !17
  %50 = trunc i8 %49 to i1
  %51 = zext i1 %50 to i8
  store i8 %51, ptr %46, align 2, !tbaa !19
  %52 = getelementptr inbounds %"class.Glip::CorePipeline::AbstractFilterLayout", ptr %17, i32 0, i32 6
  %53 = load ptr, ptr %4, align 8, !tbaa !5
  %54 = getelementptr inbounds %"class.Glip::CorePipeline::AbstractFilterLayout", ptr %53, i32 0, i32 6
  %55 = load i8, ptr %54, align 1, !tbaa !20, !range !16, !noundef !17
  %56 = trunc i8 %55 to i1
  %57 = zext i1 %56 to i8
  store i8 %57, ptr %52, align 1, !tbaa !20
  %58 = getelementptr inbounds %"class.Glip::CorePipeline::AbstractFilterLayout", ptr %17, i32 0, i32 7
  %59 = load ptr, ptr %4, align 8, !tbaa !5
  %60 = getelementptr inbounds %"class.Glip::CorePipeline::AbstractFilterLayout", ptr %59, i32 0, i32 7
  %61 = load i32, ptr %60, align 4, !tbaa !21
  store i32 %61, ptr %58, align 4, !tbaa !21
  %62 = getelementptr inbounds %"class.Glip::CorePipeline::AbstractFilterLayout", ptr %17, i32 0, i32 8
  %63 = load ptr, ptr %4, align 8, !tbaa !5
  %64 = getelementptr inbounds %"class.Glip::CorePipeline::AbstractFilterLayout", ptr %63, i32 0, i32 8
  %65 = load i32, ptr %64, align 8, !tbaa !22
  store i32 %65, ptr %62, align 8, !tbaa !22
  %66 = getelementptr inbounds %"class.Glip::CorePipeline::AbstractFilterLayout", ptr %17, i32 0, i32 9
  %67 = load ptr, ptr %4, align 8, !tbaa !5
  %68 = getelementptr inbounds %"class.Glip::CorePipeline::AbstractFilterLayout", ptr %67, i32 0, i32 9
  %69 = load i32, ptr %68, align 4, !tbaa !23
  store i32 %69, ptr %66, align 4, !tbaa !23
  %70 = getelementptr inbounds %"class.Glip::CorePipeline::AbstractFilterLayout", ptr %17, i32 0, i32 10
  %71 = load ptr, ptr %4, align 8, !tbaa !5
  %72 = getelementptr inbounds %"class.Glip::CorePipeline::AbstractFilterLayout", ptr %71, i32 0, i32 10
  %73 = load i32, ptr %72, align 8, !tbaa !24
  store i32 %73, ptr %70, align 8, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #10
  store i32 0, ptr %7, align 4, !tbaa !25
  br label %74

74:                                               ; preds = %87, %30
  %75 = load i32, ptr %7, align 4, !tbaa !25
  %76 = icmp ult i32 %75, 6
  br i1 %76, label %82, label %77

77:                                               ; preds = %74
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #10
  br label %90

78:                                               ; preds = %2
  %79 = landingpad { ptr, i32 }
          cleanup
  %80 = extractvalue { ptr, i32 } %79, 0
  store ptr %80, ptr %5, align 8
  %81 = extractvalue { ptr, i32 } %79, 1
  store i32 %81, ptr %6, align 4
  br label %240

82:                                               ; preds = %74
  %83 = getelementptr inbounds %"class.Glip::CorePipeline::AbstractFilterLayout", ptr %17, i32 0, i32 1
  %84 = load i32, ptr %7, align 4, !tbaa !25
  %85 = zext i32 %84 to i64
  %86 = getelementptr inbounds [6 x ptr], ptr %83, i64 0, i64 %85
  store ptr null, ptr %86, align 8, !tbaa !5
  br label %87

87:                                               ; preds = %82
  %88 = load i32, ptr %7, align 4, !tbaa !25
  %89 = add i32 %88, 1
  store i32 %89, ptr %7, align 4, !tbaa !25
  br label %74, !llvm.loop !26

90:                                               ; preds = %77
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #10
  store i32 0, ptr %8, align 4, !tbaa !25
  br label %91

91:                                               ; preds = %126, %90
  %92 = load i32, ptr %8, align 4, !tbaa !25
  %93 = icmp ult i32 %92, 6
  br i1 %93, label %95, label %94

94:                                               ; preds = %91
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #10
  br label %130

95:                                               ; preds = %91
  %96 = load ptr, ptr %4, align 8, !tbaa !5
  %97 = getelementptr inbounds %"class.Glip::CorePipeline::AbstractFilterLayout", ptr %96, i32 0, i32 1
  %98 = load i32, ptr %8, align 4, !tbaa !25
  %99 = zext i32 %98 to i64
  %100 = getelementptr inbounds [6 x ptr], ptr %97, i64 0, i64 %99
  %101 = load ptr, ptr %100, align 8, !tbaa !5
  %102 = icmp ne ptr %101, null
  br i1 %102, label %103, label %125

103:                                              ; preds = %95
  %104 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 272) #11
          to label %105 unwind label %117

105:                                              ; preds = %103
  %106 = load ptr, ptr %4, align 8, !tbaa !5
  %107 = getelementptr inbounds %"class.Glip::CorePipeline::AbstractFilterLayout", ptr %106, i32 0, i32 1
  %108 = load i32, ptr %8, align 4, !tbaa !25
  %109 = zext i32 %108 to i64
  %110 = getelementptr inbounds [6 x ptr], ptr %107, i64 0, i64 %109
  %111 = load ptr, ptr %110, align 8, !tbaa !5
  invoke void @_ZN4Glip6CoreGL12ShaderSourceC1ERKS1_(ptr noundef nonnull align 8 dereferenceable(272) %104, ptr noundef nonnull align 8 dereferenceable(272) %111)
          to label %112 unwind label %121

112:                                              ; preds = %105
  %113 = getelementptr inbounds %"class.Glip::CorePipeline::AbstractFilterLayout", ptr %17, i32 0, i32 1
  %114 = load i32, ptr %8, align 4, !tbaa !25
  %115 = zext i32 %114 to i64
  %116 = getelementptr inbounds [6 x ptr], ptr %113, i64 0, i64 %115
  store ptr %104, ptr %116, align 8, !tbaa !5
  br label %125

117:                                              ; preds = %103
  %118 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTIN4Glip9ExceptionE
  %119 = extractvalue { ptr, i32 } %118, 0
  store ptr %119, ptr %5, align 8
  %120 = extractvalue { ptr, i32 } %118, 1
  store i32 %120, ptr %6, align 4
  br label %129

121:                                              ; preds = %105
  %122 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTIN4Glip9ExceptionE
  %123 = extractvalue { ptr, i32 } %122, 0
  store ptr %123, ptr %5, align 8
  %124 = extractvalue { ptr, i32 } %122, 1
  store i32 %124, ptr %6, align 4
  call void @_ZdlPvm(ptr noundef %104, i64 noundef 272) #12
  br label %129

125:                                              ; preds = %112, %95
  br label %126

126:                                              ; preds = %125
  %127 = load i32, ptr %8, align 4, !tbaa !25
  %128 = add i32 %127, 1
  store i32 %128, ptr %8, align 4, !tbaa !25
  br label %91, !llvm.loop !28

129:                                              ; preds = %121, %117
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #10
  br label %186

130:                                              ; preds = %94
  %131 = load ptr, ptr %4, align 8, !tbaa !5
  %132 = getelementptr inbounds %"class.Glip::CorePipeline::AbstractFilterLayout", ptr %131, i32 0, i32 2
  %133 = load ptr, ptr %132, align 8, !tbaa !11
  %134 = icmp ne ptr %133, null
  br i1 %134, label %135, label %151

135:                                              ; preds = %130
  %136 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 128) #11
          to label %137 unwind label %143

137:                                              ; preds = %135
  %138 = load ptr, ptr %4, align 8, !tbaa !5
  %139 = getelementptr inbounds %"class.Glip::CorePipeline::AbstractFilterLayout", ptr %138, i32 0, i32 2
  %140 = load ptr, ptr %139, align 8, !tbaa !11
  invoke void @_ZN4Glip12CorePipeline13GeometryModelC1ERKS1_(ptr noundef nonnull align 8 dereferenceable(128) %136, ptr noundef nonnull align 8 dereferenceable(128) %140)
          to label %141 unwind label %147

141:                                              ; preds = %137
  %142 = getelementptr inbounds %"class.Glip::CorePipeline::AbstractFilterLayout", ptr %17, i32 0, i32 2
  store ptr %136, ptr %142, align 8, !tbaa !11
  br label %197

143:                                              ; preds = %135
  %144 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTIN4Glip9ExceptionE
  %145 = extractvalue { ptr, i32 } %144, 0
  store ptr %145, ptr %5, align 8
  %146 = extractvalue { ptr, i32 } %144, 1
  store i32 %146, ptr %6, align 4
  br label %186

147:                                              ; preds = %137
  %148 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTIN4Glip9ExceptionE
  %149 = extractvalue { ptr, i32 } %148, 0
  store ptr %149, ptr %5, align 8
  %150 = extractvalue { ptr, i32 } %148, 1
  store i32 %150, ptr %6, align 4
  call void @_ZdlPvm(ptr noundef %136, i64 noundef 128) #12
  br label %186

151:                                              ; preds = %130
  store i1 true, ptr %14, align 1
  %152 = call ptr @__cxa_allocate_exception(i64 152) #10
  call void @llvm.lifetime.start.p0(i64 32, ptr %9) #10
  call void @llvm.lifetime.start.p0(i64 32, ptr %10) #10
  %153 = load ptr, ptr %17, align 8, !tbaa !9
  %154 = getelementptr i8, ptr %153, i64 -24
  %155 = load i64, ptr %154, align 8
  %156 = getelementptr inbounds i8, ptr %17, i64 %155
  %157 = load ptr, ptr %156, align 8, !tbaa !9
  %158 = getelementptr inbounds ptr, ptr %157, i64 2
  %159 = load ptr, ptr %158, align 8
  invoke void %159(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %10, ptr noundef nonnull align 8 dereferenceable(88) %156)
          to label %160 unwind label %164

160:                                              ; preds = %151
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %9, ptr noundef @.str, ptr noundef nonnull align 8 dereferenceable(32) %10)
          to label %161 unwind label %168

161:                                              ; preds = %160
  call void @llvm.lifetime.start.p0(i64 1, ptr %12) #10
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #10
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %11, ptr noundef @.str.1, ptr noundef nonnull align 1 dereferenceable(1) %12)
          to label %162 unwind label %172

162:                                              ; preds = %161
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #10
  store i32 1, ptr %13, align 4, !tbaa !29
  invoke void @_ZN4Glip9ExceptionC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES6_iRKNS0_4TypeE(ptr noundef nonnull align 8 dereferenceable(152) %152, ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef %11, i32 noundef 95, ptr noundef nonnull align 4 dereferenceable(4) %13)
          to label %163 unwind label %176

163:                                              ; preds = %162
  store i1 false, ptr %14, align 1
  invoke void @__cxa_throw(ptr %152, ptr @_ZTIN4Glip9ExceptionE, ptr @_ZN4Glip9ExceptionD1Ev) #13
          to label %250 unwind label %176

164:                                              ; preds = %151
  %165 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTIN4Glip9ExceptionE
  %166 = extractvalue { ptr, i32 } %165, 0
  store ptr %166, ptr %5, align 8
  %167 = extractvalue { ptr, i32 } %165, 1
  store i32 %167, ptr %6, align 4
  br label %182

168:                                              ; preds = %160
  %169 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTIN4Glip9ExceptionE
  %170 = extractvalue { ptr, i32 } %169, 0
  store ptr %170, ptr %5, align 8
  %171 = extractvalue { ptr, i32 } %169, 1
  store i32 %171, ptr %6, align 4
  br label %181

172:                                              ; preds = %161
  %173 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTIN4Glip9ExceptionE
  %174 = extractvalue { ptr, i32 } %173, 0
  store ptr %174, ptr %5, align 8
  %175 = extractvalue { ptr, i32 } %173, 1
  store i32 %175, ptr %6, align 4
  br label %180

176:                                              ; preds = %163, %162
  %177 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTIN4Glip9ExceptionE
  %178 = extractvalue { ptr, i32 } %177, 0
  store ptr %178, ptr %5, align 8
  %179 = extractvalue { ptr, i32 } %177, 1
  store i32 %179, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #10
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #10
  br label %180

180:                                              ; preds = %176, %172
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #10
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #10
  br label %181

181:                                              ; preds = %180, %168
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #10
  br label %182

182:                                              ; preds = %181, %164
  call void @llvm.lifetime.end.p0(i64 32, ptr %10) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %9) #10
  %183 = load i1, ptr %14, align 1
  br i1 %183, label %184, label %185

184:                                              ; preds = %182
  call void @__cxa_free_exception(ptr %152) #10
  br label %185

185:                                              ; preds = %184, %182
  br label %186

186:                                              ; preds = %185, %147, %143, %129
  %187 = load i32, ptr %6, align 4
  %188 = call i32 @llvm.eh.typeid.for.p0(ptr @_ZTIN4Glip9ExceptionE) #10
  %189 = icmp eq i32 %187, %188
  br i1 %189, label %190, label %238

190:                                              ; preds = %186
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #10
  %191 = load ptr, ptr %5, align 8
  %192 = call ptr @__cxa_begin_catch(ptr %191) #10
  store ptr %192, ptr %15, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #10
  store i32 0, ptr %16, align 4, !tbaa !25
  br label %193

193:                                              ; preds = %211, %190
  %194 = load i32, ptr %16, align 4, !tbaa !25
  %195 = icmp ult i32 %194, 6
  br i1 %195, label %198, label %196

196:                                              ; preds = %193
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #10
  br label %214

197:                                              ; preds = %141
  br label %237

198:                                              ; preds = %193
  %199 = getelementptr inbounds %"class.Glip::CorePipeline::AbstractFilterLayout", ptr %17, i32 0, i32 1
  %200 = load i32, ptr %16, align 4, !tbaa !25
  %201 = zext i32 %200 to i64
  %202 = getelementptr inbounds [6 x ptr], ptr %199, i64 0, i64 %201
  %203 = load ptr, ptr %202, align 8, !tbaa !5
  %204 = icmp eq ptr %203, null
  br i1 %204, label %206, label %205

205:                                              ; preds = %198
  call void @_ZN4Glip6CoreGL12ShaderSourceD1Ev(ptr noundef nonnull align 8 dereferenceable(272) %203) #10
  call void @_ZdlPvm(ptr noundef %203, i64 noundef 272) #12
  br label %206

206:                                              ; preds = %205, %198
  %207 = getelementptr inbounds %"class.Glip::CorePipeline::AbstractFilterLayout", ptr %17, i32 0, i32 1
  %208 = load i32, ptr %16, align 4, !tbaa !25
  %209 = zext i32 %208 to i64
  %210 = getelementptr inbounds [6 x ptr], ptr %207, i64 0, i64 %209
  store ptr null, ptr %210, align 8, !tbaa !5
  br label %211

211:                                              ; preds = %206
  %212 = load i32, ptr %16, align 4, !tbaa !25
  %213 = add i32 %212, 1
  store i32 %213, ptr %16, align 4, !tbaa !25
  br label %193, !llvm.loop !31

214:                                              ; preds = %196
  %215 = getelementptr inbounds %"class.Glip::CorePipeline::AbstractFilterLayout", ptr %17, i32 0, i32 2
  %216 = load ptr, ptr %215, align 8, !tbaa !11
  %217 = icmp eq ptr %216, null
  br i1 %217, label %222, label %218

218:                                              ; preds = %214
  %219 = load ptr, ptr %216, align 8, !tbaa !9
  %220 = getelementptr inbounds ptr, ptr %219, i64 1
  %221 = load ptr, ptr %220, align 8
  call void %221(ptr noundef nonnull align 8 dereferenceable(128) %216) #10
  br label %222

222:                                              ; preds = %218, %214
  %223 = getelementptr inbounds %"class.Glip::CorePipeline::AbstractFilterLayout", ptr %17, i32 0, i32 2
  store ptr null, ptr %223, align 8, !tbaa !11
  %224 = call ptr @__cxa_allocate_exception(i64 152) #10
  %225 = load ptr, ptr %15, align 8, !tbaa !5
  invoke void @_ZN4Glip9ExceptionC1ERKS0_(ptr noundef nonnull align 8 dereferenceable(152) %224, ptr noundef nonnull align 8 dereferenceable(152) %225)
          to label %226 unwind label %227

226:                                              ; preds = %222
  invoke void @__cxa_throw(ptr %224, ptr @_ZTIN4Glip9ExceptionE, ptr @_ZN4Glip9ExceptionD1Ev) #13
          to label %250 unwind label %231

227:                                              ; preds = %222
  %228 = landingpad { ptr, i32 }
          cleanup
  %229 = extractvalue { ptr, i32 } %228, 0
  store ptr %229, ptr %5, align 8
  %230 = extractvalue { ptr, i32 } %228, 1
  store i32 %230, ptr %6, align 4
  call void @__cxa_free_exception(ptr %224) #10
  br label %235

231:                                              ; preds = %226
  %232 = landingpad { ptr, i32 }
          cleanup
  %233 = extractvalue { ptr, i32 } %232, 0
  store ptr %233, ptr %5, align 8
  %234 = extractvalue { ptr, i32 } %232, 1
  store i32 %234, ptr %6, align 4
  br label %235

235:                                              ; preds = %231, %227
  invoke void @__cxa_end_catch()
          to label %236 unwind label %247

236:                                              ; preds = %235
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #10
  br label %238

237:                                              ; preds = %197
  ret void

238:                                              ; preds = %236, %186
  %239 = getelementptr inbounds i8, ptr %17, i64 176
  call void @_ZN4Glip6CoreGL24HdlAbstractTextureFormatD2Ev(ptr noundef nonnull align 8 dereferenceable(52) %239) #10
  br label %240

240:                                              ; preds = %238, %78
  %241 = getelementptr inbounds i8, ptr %17, i64 88
  call void @_ZN4Glip12CorePipeline23AbstractComponentLayoutD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %241) #10
  br label %242

242:                                              ; preds = %240
  %243 = load ptr, ptr %5, align 8
  %244 = load i32, ptr %6, align 4
  %245 = insertvalue { ptr, i32 } poison, ptr %243, 0
  %246 = insertvalue { ptr, i32 } %245, i32 %244, 1
  resume { ptr, i32 } %246

247:                                              ; preds = %235
  %248 = landingpad { ptr, i32 }
          catch ptr null
  %249 = extractvalue { ptr, i32 } %248, 0
  call void @__clang_call_terminate(ptr %249) #14
  unreachable

250:                                              ; preds = %226, %163
  unreachable
}

declare void @_ZN4Glip12CorePipeline23AbstractComponentLayoutC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(88), ptr noundef nonnull align 8 dereferenceable(88)) unnamed_addr #1

; Function Attrs: nounwind
declare void @_ZN4Glip6CoreGL24HdlAbstractTextureFormatD2Ev(ptr noundef nonnull align 8 dereferenceable(52)) unnamed_addr #2

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 = { 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 #3 = { nobuiltin allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nobuiltin 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 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 #7 = { 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 #8 = { nounwind memory(none) }
attributes #9 = { noinline noreturn nounwind uwtable "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 #10 = { nounwind }
attributes #11 = { builtin allocsize(0) }
attributes #12 = { builtin nounwind }
attributes #13 = { noreturn }
attributes #14 = { noreturn nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"vtable pointer", !8, i64 0}
!11 = !{!12, !6, i64 56}
!12 = !{!"_ZTSN4Glip12CorePipeline20AbstractFilterLayoutE", !7, i64 8, !6, i64 56, !13, i64 64, !13, i64 65, !13, i64 66, !13, i64 67, !14, i64 68, !14, i64 72, !14, i64 76, !14, i64 80}
!13 = !{!"bool", !7, i64 0}
!14 = !{!"int", !7, i64 0}
!15 = !{!12, !13, i64 64}
!16 = !{i8 0, i8 2}
!17 = !{}
!18 = !{!12, !13, i64 65}
!19 = !{!12, !13, i64 66}
!20 = !{!12, !13, i64 67}
!21 = !{!12, !14, i64 68}
!22 = !{!12, !14, i64 72}
!23 = !{!12, !14, i64 76}
!24 = !{!12, !14, i64 80}
!25 = !{!14, !14, i64 0}
!26 = distinct !{!26, !27}
!27 = !{!"llvm.loop.mustprogress"}
!28 = distinct !{!28, !27}
!29 = !{!30, !30, i64 0}
!30 = !{!"_ZTSN4Glip9Exception4TypeE", !7, i64 0}
!31 = distinct !{!31, !27}


; 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" = type { i8 }

@_ZTVN4Glip12CorePipeline20AbstractFilterLayoutE = external dso_local unnamed_addr constant { [6 x ptr], [7 x ptr], [11 x ptr] }, align 8
@_ZTIN4Glip9ExceptionE = external constant ptr
@.str = external hidden unnamed_addr constant [72 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [86 x i8], align 1

; 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 void @_ZN4Glip6CoreGL24HdlAbstractTextureFormatC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(52), ptr noundef nonnull align 8 dereferenceable(52)) unnamed_addr #1

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nounwind
declare void @_ZN4Glip12CorePipeline23AbstractComponentLayoutD2Ev(ptr noundef nonnull align 8 dereferenceable(88)) unnamed_addr #2

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) local_unnamed_addr #3

declare void @_ZN4Glip6CoreGL12ShaderSourceC1ERKS1_(ptr noundef nonnull align 8 dereferenceable(272), ptr noundef nonnull align 8 dereferenceable(272)) unnamed_addr #1

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) local_unnamed_addr #4

declare void @_ZN4Glip12CorePipeline13GeometryModelC1ERKS1_(ptr noundef nonnull align 8 dereferenceable(128), ptr noundef nonnull align 8 dereferenceable(128)) unnamed_addr #1

declare ptr @__cxa_allocate_exception(i64) local_unnamed_addr

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef, ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #5

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #6 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 #7 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 #1

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

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

declare void @__cxa_free_exception(ptr) local_unnamed_addr

; Function Attrs: nofree nosync nounwind memory(none)
declare i32 @llvm.eh.typeid.for.p0(ptr) #8

declare ptr @__cxa_begin_catch(ptr) local_unnamed_addr

; Function Attrs: nounwind
declare void @_ZN4Glip6CoreGL12ShaderSourceD1Ev(ptr noundef nonnull align 8 dereferenceable(272)) unnamed_addr #2

declare void @_ZN4Glip9ExceptionC1ERKS0_(ptr noundef nonnull align 8 dereferenceable(152), ptr noundef nonnull align 8 dereferenceable(152)) unnamed_addr #1

declare void @__cxa_end_catch() local_unnamed_addr

; Function Attrs: noinline noreturn nounwind uwtable
declare hidden void @__clang_call_terminate(ptr noundef) local_unnamed_addr #9

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4Glip12CorePipeline20AbstractFilterLayoutC1ERKS1_(ptr noundef nonnull align 8 dereferenceable(84) %0, ptr noundef nonnull align 8 dereferenceable(84) %1) unnamed_addr #7 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.std::__cxx11::basic_string", align 8
  %4 = alloca %"class.std::__cxx11::basic_string", align 8
  %5 = alloca %"class.std::__cxx11::basic_string", align 8
  %6 = alloca %"class.std::allocator", align 1
  %7 = alloca i32, align 4
  %8 = getelementptr inbounds i8, ptr %0, i64 88
  %9 = load ptr, ptr %1, align 8, !tbaa !5
  %10 = getelementptr i8, ptr %9, i64 -24
  %11 = load i64, ptr %10, align 8
  %12 = getelementptr inbounds i8, ptr %1, i64 %11
  tail call void @_ZN4Glip12CorePipeline23AbstractComponentLayoutC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(88) %8, ptr noundef nonnull align 8 dereferenceable(88) %12)
  %13 = getelementptr inbounds i8, ptr %0, i64 176
  %14 = load ptr, ptr %1, align 8, !tbaa !5
  %15 = getelementptr i8, ptr %14, i64 -32
  %16 = load i64, ptr %15, align 8
  %17 = getelementptr inbounds i8, ptr %1, i64 %16
  invoke void @_ZN4Glip6CoreGL24HdlAbstractTextureFormatC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(52) %13, ptr noundef nonnull align 8 dereferenceable(52) %17)
          to label %.preheader unwind label %28

.preheader:                                       ; preds = %2
  store ptr getelementptr inbounds inrange(-32, 16) (i8, ptr @_ZTVN4Glip12CorePipeline20AbstractFilterLayoutE, i64 32), ptr %0, align 8, !tbaa !5
  store ptr getelementptr inbounds inrange(-32, 24) (i8, ptr @_ZTVN4Glip12CorePipeline20AbstractFilterLayoutE, i64 80), ptr %8, align 8, !tbaa !5
  store ptr getelementptr inbounds inrange(-48, 40) (i8, ptr @_ZTVN4Glip12CorePipeline20AbstractFilterLayoutE, i64 152), ptr %13, align 8, !tbaa !5
  %18 = getelementptr inbounds i8, ptr %0, i64 56
  store ptr null, ptr %18, align 8, !tbaa !8
  %19 = getelementptr inbounds i8, ptr %0, i64 64
  %20 = getelementptr inbounds i8, ptr %1, i64 64
  %21 = load <4 x i8>, ptr %20, align 8, !tbaa !14
  store <4 x i8> %21, ptr %19, align 8, !tbaa !14
  %22 = getelementptr inbounds i8, ptr %0, i64 68
  %23 = getelementptr inbounds i8, ptr %1, i64 68
  %24 = load <4 x i32>, ptr %23, align 4, !tbaa !15
  store <4 x i32> %24, ptr %22, align 4, !tbaa !15
  %25 = getelementptr inbounds i8, ptr %0, i64 8
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(48) %25, i8 0, i64 48, i1 false), !tbaa !16
  %26 = getelementptr inbounds i8, ptr %1, i64 8
  %27 = load ptr, ptr %26, align 8, !tbaa !16
  %.not52 = icmp eq ptr %27, null
  br i1 %.not52, label %40, label %32

28:                                               ; preds = %2
  %29 = landingpad { ptr, i32 }
          cleanup
  %30 = extractvalue { ptr, i32 } %29, 0
  %31 = extractvalue { ptr, i32 } %29, 1
  br label %162

32:                                               ; preds = %.preheader
  %33 = invoke noalias noundef nonnull dereferenceable(272) ptr @_Znwm(i64 noundef 272) #11
          to label %34 unwind label %36

34:                                               ; preds = %32
  invoke void @_ZN4Glip6CoreGL12ShaderSourceC1ERKS1_(ptr noundef nonnull align 8 dereferenceable(272) %33, ptr noundef nonnull align 8 dereferenceable(272) %27)
          to label %35 unwind label %38

35:                                               ; preds = %34
  store ptr %33, ptr %25, align 8, !tbaa !16
  br label %40

36:                                               ; preds = %75, %67, %59, %51, %43, %32
  %37 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTIN4Glip9ExceptionE
  br label %112

38:                                               ; preds = %77, %69, %61, %53, %45, %34
  %.lcssa = phi ptr [ %33, %34 ], [ %44, %45 ], [ %52, %53 ], [ %60, %61 ], [ %68, %69 ], [ %76, %77 ]
  %39 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTIN4Glip9ExceptionE
  tail call void @_ZdlPvm(ptr noundef nonnull %.lcssa, i64 noundef 272) #12
  br label %112

40:                                               ; preds = %.preheader, %35
  %41 = getelementptr inbounds i8, ptr %1, i64 16
  %42 = load ptr, ptr %41, align 8, !tbaa !16
  %.not52.1 = icmp eq ptr %42, null
  br i1 %.not52.1, label %48, label %43

43:                                               ; preds = %40
  %44 = invoke noalias noundef nonnull dereferenceable(272) ptr @_Znwm(i64 noundef 272) #11
          to label %45 unwind label %36

45:                                               ; preds = %43
  invoke void @_ZN4Glip6CoreGL12ShaderSourceC1ERKS1_(ptr noundef nonnull align 8 dereferenceable(272) %44, ptr noundef nonnull align 8 dereferenceable(272) %42)
          to label %46 unwind label %38

46:                                               ; preds = %45
  %47 = getelementptr inbounds i8, ptr %0, i64 16
  store ptr %44, ptr %47, align 8, !tbaa !16
  br label %48

48:                                               ; preds = %46, %40
  %49 = getelementptr inbounds i8, ptr %1, i64 24
  %50 = load ptr, ptr %49, align 8, !tbaa !16
  %.not52.2 = icmp eq ptr %50, null
  br i1 %.not52.2, label %56, label %51

51:                                               ; preds = %48
  %52 = invoke noalias noundef nonnull dereferenceable(272) ptr @_Znwm(i64 noundef 272) #11
          to label %53 unwind label %36

53:                                               ; preds = %51
  invoke void @_ZN4Glip6CoreGL12ShaderSourceC1ERKS1_(ptr noundef nonnull align 8 dereferenceable(272) %52, ptr noundef nonnull align 8 dereferenceable(272) %50)
          to label %54 unwind label %38

54:                                               ; preds = %53
  %55 = getelementptr inbounds i8, ptr %0, i64 24
  store ptr %52, ptr %55, align 8, !tbaa !16
  br label %56

56:                                               ; preds = %54, %48
  %57 = getelementptr inbounds i8, ptr %1, i64 32
  %58 = load ptr, ptr %57, align 8, !tbaa !16
  %.not52.3 = icmp eq ptr %58, null
  br i1 %.not52.3, label %64, label %59

59:                                               ; preds = %56
  %60 = invoke noalias noundef nonnull dereferenceable(272) ptr @_Znwm(i64 noundef 272) #11
          to label %61 unwind label %36

61:                                               ; preds = %59
  invoke void @_ZN4Glip6CoreGL12ShaderSourceC1ERKS1_(ptr noundef nonnull align 8 dereferenceable(272) %60, ptr noundef nonnull align 8 dereferenceable(272) %58)
          to label %62 unwind label %38

62:                                               ; preds = %61
  %63 = getelementptr inbounds i8, ptr %0, i64 32
  store ptr %60, ptr %63, align 8, !tbaa !16
  br label %64

64:                                               ; preds = %62, %56
  %65 = getelementptr inbounds i8, ptr %1, i64 40
  %66 = load ptr, ptr %65, align 8, !tbaa !16
  %.not52.4 = icmp eq ptr %66, null
  br i1 %.not52.4, label %72, label %67

67:                                               ; preds = %64
  %68 = invoke noalias noundef nonnull dereferenceable(272) ptr @_Znwm(i64 noundef 272) #11
          to label %69 unwind label %36

69:                                               ; preds = %67
  invoke void @_ZN4Glip6CoreGL12ShaderSourceC1ERKS1_(ptr noundef nonnull align 8 dereferenceable(272) %68, ptr noundef nonnull align 8 dereferenceable(272) %66)
          to label %70 unwind label %38

70:                                               ; preds = %69
  %71 = getelementptr inbounds i8, ptr %0, i64 40
  store ptr %68, ptr %71, align 8, !tbaa !16
  br label %72

72:                                               ; preds = %70, %64
  %73 = getelementptr inbounds i8, ptr %1, i64 48
  %74 = load ptr, ptr %73, align 8, !tbaa !16
  %.not52.5 = icmp eq ptr %74, null
  br i1 %.not52.5, label %80, label %75

75:                                               ; preds = %72
  %76 = invoke noalias noundef nonnull dereferenceable(272) ptr @_Znwm(i64 noundef 272) #11
          to label %77 unwind label %36

77:                                               ; preds = %75
  invoke void @_ZN4Glip6CoreGL12ShaderSourceC1ERKS1_(ptr noundef nonnull align 8 dereferenceable(272) %76, ptr noundef nonnull align 8 dereferenceable(272) %74)
          to label %78 unwind label %38

78:                                               ; preds = %77
  %79 = getelementptr inbounds i8, ptr %0, i64 48
  store ptr %76, ptr %79, align 8, !tbaa !16
  br label %80

80:                                               ; preds = %78, %72
  %81 = getelementptr inbounds i8, ptr %1, i64 56
  %82 = load ptr, ptr %81, align 8, !tbaa !8
  %.not = icmp eq ptr %82, null
  br i1 %.not, label %91, label %83

83:                                               ; preds = %80
  %84 = invoke noalias noundef nonnull dereferenceable(128) ptr @_Znwm(i64 noundef 128) #11
          to label %85 unwind label %87

85:                                               ; preds = %83
  invoke void @_ZN4Glip12CorePipeline13GeometryModelC1ERKS1_(ptr noundef nonnull align 8 dereferenceable(128) %84, ptr noundef nonnull align 8 dereferenceable(128) %82)
          to label %86 unwind label %89

86:                                               ; preds = %85
  store ptr %84, ptr %18, align 8, !tbaa !8
  ret void

87:                                               ; preds = %83
  %88 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTIN4Glip9ExceptionE
  br label %112

89:                                               ; preds = %85
  %90 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTIN4Glip9ExceptionE
  tail call void @_ZdlPvm(ptr noundef nonnull %84, i64 noundef 128) #12
  br label %112

91:                                               ; preds = %80
  %92 = tail call ptr @__cxa_allocate_exception(i64 152) #13
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #13
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #13
  %93 = load ptr, ptr %0, align 8, !tbaa !5
  %94 = getelementptr i8, ptr %93, i64 -24
  %95 = load i64, ptr %94, align 8
  %96 = getelementptr inbounds i8, ptr %0, i64 %95
  %97 = load ptr, ptr %96, align 8, !tbaa !5
  %98 = getelementptr inbounds i8, ptr %97, i64 16
  %99 = load ptr, ptr %98, align 8
  invoke void %99(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %4, ptr noundef nonnull align 8 dereferenceable(88) %96)
          to label %100 unwind label %.thread

100:                                              ; preds = %91
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %3, ptr noundef nonnull @.str, ptr noundef nonnull align 8 dereferenceable(32) %4)
          to label %101 unwind label %.thread61

101:                                              ; preds = %100
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #13
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #13
  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 %102 unwind label %106

102:                                              ; preds = %101
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #13
  store i32 1, ptr %7, align 4, !tbaa !17
  invoke void @_ZN4Glip9ExceptionC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES6_iRKNS0_4TypeE(ptr noundef nonnull align 8 dereferenceable(152) %92, ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef nonnull %5, i32 noundef 95, ptr noundef nonnull align 4 dereferenceable(4) %7)
          to label %103 unwind label %108

103:                                              ; preds = %102
  invoke void @__cxa_throw(ptr nonnull %92, ptr nonnull @_ZTIN4Glip9ExceptionE, ptr nonnull @_ZN4Glip9ExceptionD1Ev) #14
          to label %168 unwind label %108

.thread:                                          ; preds = %91
  %104 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTIN4Glip9ExceptionE
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #13
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #13
  br label %111

.thread61:                                        ; preds = %100
  %105 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTIN4Glip9ExceptionE
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #13
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #13
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #13
  br label %111

106:                                              ; preds = %101
  %107 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTIN4Glip9ExceptionE
  br label %110

108:                                              ; preds = %103, %102
  %.033 = phi i1 [ false, %103 ], [ true, %102 ]
  %109 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTIN4Glip9ExceptionE
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #13
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #13
  br label %110

110:                                              ; preds = %106, %108
  %.pn = phi { ptr, i32 } [ %109, %108 ], [ %107, %106 ]
  %.134 = phi i1 [ %.033, %108 ], [ true, %106 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #13
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #13
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #13
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #13
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #13
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #13
  br i1 %.134, label %111, label %112

111:                                              ; preds = %.thread61, %.thread, %110
  %.pn.pn.pn60 = phi { ptr, i32 } [ %104, %.thread ], [ %.pn, %110 ], [ %105, %.thread61 ]
  call void @__cxa_free_exception(ptr %92) #13
  br label %112

112:                                              ; preds = %36, %38, %110, %111, %89, %87
  %.pn53.pn = phi { ptr, i32 } [ %90, %89 ], [ %88, %87 ], [ %.pn.pn.pn60, %111 ], [ %.pn, %110 ], [ %39, %38 ], [ %37, %36 ]
  %.4 = extractvalue { ptr, i32 } %.pn53.pn, 0
  %.443 = extractvalue { ptr, i32 } %.pn53.pn, 1
  %113 = call i32 @llvm.eh.typeid.for.p0(ptr nonnull @_ZTIN4Glip9ExceptionE) #13
  %114 = icmp eq i32 %.443, %113
  br i1 %114, label %115, label %161

115:                                              ; preds = %112
  %116 = call ptr @__cxa_begin_catch(ptr %.4) #13
  %117 = load ptr, ptr %25, align 8, !tbaa !16
  %118 = icmp eq ptr %117, null
  br i1 %118, label %120, label %119

119:                                              ; preds = %115
  call void @_ZN4Glip6CoreGL12ShaderSourceD1Ev(ptr noundef nonnull align 8 dereferenceable(272) %117) #13
  call void @_ZdlPvm(ptr noundef nonnull %117, i64 noundef 272) #12
  br label %120

120:                                              ; preds = %119, %115
  store ptr null, ptr %25, align 8, !tbaa !16
  %121 = getelementptr inbounds i8, ptr %0, i64 16
  %122 = load ptr, ptr %121, align 8, !tbaa !16
  %123 = icmp eq ptr %122, null
  br i1 %123, label %125, label %124

124:                                              ; preds = %120
  call void @_ZN4Glip6CoreGL12ShaderSourceD1Ev(ptr noundef nonnull align 8 dereferenceable(272) %122) #13
  call void @_ZdlPvm(ptr noundef nonnull %122, i64 noundef 272) #12
  br label %125

125:                                              ; preds = %124, %120
  store ptr null, ptr %121, align 8, !tbaa !16
  %126 = getelementptr inbounds i8, ptr %0, i64 24
  %127 = load ptr, ptr %126, align 8, !tbaa !16
  %128 = icmp eq ptr %127, null
  br i1 %128, label %130, label %129

129:                                              ; preds = %125
  call void @_ZN4Glip6CoreGL12ShaderSourceD1Ev(ptr noundef nonnull align 8 dereferenceable(272) %127) #13
  call void @_ZdlPvm(ptr noundef nonnull %127, i64 noundef 272) #12
  br label %130

130:                                              ; preds = %129, %125
  store ptr null, ptr %126, align 8, !tbaa !16
  %131 = getelementptr inbounds i8, ptr %0, i64 32
  %132 = load ptr, ptr %131, align 8, !tbaa !16
  %133 = icmp eq ptr %132, null
  br i1 %133, label %135, label %134

134:                                              ; preds = %130
  call void @_ZN4Glip6CoreGL12ShaderSourceD1Ev(ptr noundef nonnull align 8 dereferenceable(272) %132) #13
  call void @_ZdlPvm(ptr noundef nonnull %132, i64 noundef 272) #12
  br label %135

135:                                              ; preds = %134, %130
  store ptr null, ptr %131, align 8, !tbaa !16
  %136 = getelementptr inbounds i8, ptr %0, i64 40
  %137 = load ptr, ptr %136, align 8, !tbaa !16
  %138 = icmp eq ptr %137, null
  br i1 %138, label %140, label %139

139:                                              ; preds = %135
  call void @_ZN4Glip6CoreGL12ShaderSourceD1Ev(ptr noundef nonnull align 8 dereferenceable(272) %137) #13
  call void @_ZdlPvm(ptr noundef nonnull %137, i64 noundef 272) #12
  br label %140

140:                                              ; preds = %139, %135
  store ptr null, ptr %136, align 8, !tbaa !16
  %141 = getelementptr inbounds i8, ptr %0, i64 48
  %142 = load ptr, ptr %141, align 8, !tbaa !16
  %143 = icmp eq ptr %142, null
  br i1 %143, label %145, label %144

144:                                              ; preds = %140
  call void @_ZN4Glip6CoreGL12ShaderSourceD1Ev(ptr noundef nonnull align 8 dereferenceable(272) %142) #13
  call void @_ZdlPvm(ptr noundef nonnull %142, i64 noundef 272) #12
  br label %145

145:                                              ; preds = %144, %140
  store ptr null, ptr %141, align 8, !tbaa !16
  %146 = load ptr, ptr %18, align 8, !tbaa !8
  %147 = icmp eq ptr %146, null
  br i1 %147, label %152, label %148

148:                                              ; preds = %145
  %149 = load ptr, ptr %146, align 8, !tbaa !5
  %150 = getelementptr inbounds i8, ptr %149, i64 8
  %151 = load ptr, ptr %150, align 8
  call void %151(ptr noundef nonnull align 8 dereferenceable(128) %146) #13
  br label %152

152:                                              ; preds = %148, %145
  store ptr null, ptr %18, align 8, !tbaa !8
  %153 = call ptr @__cxa_allocate_exception(i64 152) #13
  invoke void @_ZN4Glip9ExceptionC1ERKS0_(ptr noundef nonnull align 8 dereferenceable(152) %153, ptr noundef nonnull align 8 dereferenceable(152) %116)
          to label %154 unwind label %155

154:                                              ; preds = %152
  invoke void @__cxa_throw(ptr nonnull %153, ptr nonnull @_ZTIN4Glip9ExceptionE, ptr nonnull @_ZN4Glip9ExceptionD1Ev) #14
          to label %168 unwind label %157

155:                                              ; preds = %152
  %156 = landingpad { ptr, i32 }
          cleanup
  call void @__cxa_free_exception(ptr %153) #13
  br label %159

157:                                              ; preds = %154
  %158 = landingpad { ptr, i32 }
          cleanup
  br label %159

159:                                              ; preds = %157, %155
  %.pn56 = phi { ptr, i32 } [ %158, %157 ], [ %156, %155 ]
  invoke void @__cxa_end_catch()
          to label %160 unwind label %165

160:                                              ; preds = %159
  %.5 = extractvalue { ptr, i32 } %.pn56, 0
  %.544 = extractvalue { ptr, i32 } %.pn56, 1
  br label %161

161:                                              ; preds = %160, %112
  %.645 = phi i32 [ %.544, %160 ], [ %.443, %112 ]
  %.6 = phi ptr [ %.5, %160 ], [ %.4, %112 ]
  call void @_ZN4Glip6CoreGL24HdlAbstractTextureFormatD2Ev(ptr noundef nonnull align 8 dereferenceable(52) %13) #13
  br label %162

162:                                              ; preds = %161, %28
  %.746 = phi i32 [ %.645, %161 ], [ %31, %28 ]
  %.7 = phi ptr [ %.6, %161 ], [ %30, %28 ]
  call void @_ZN4Glip12CorePipeline23AbstractComponentLayoutD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %8) #13
  %163 = insertvalue { ptr, i32 } poison, ptr %.7, 0
  %164 = insertvalue { ptr, i32 } %163, i32 %.746, 1
  resume { ptr, i32 } %164

165:                                              ; preds = %159
  %166 = landingpad { ptr, i32 }
          catch ptr null
  %167 = extractvalue { ptr, i32 } %166, 0
  call void @__clang_call_terminate(ptr %167) #15
  unreachable

168:                                              ; preds = %154, %103
  unreachable
}

declare void @_ZN4Glip12CorePipeline23AbstractComponentLayoutC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(88), ptr noundef nonnull align 8 dereferenceable(88)) unnamed_addr #1

; Function Attrs: nounwind
declare void @_ZN4Glip6CoreGL24HdlAbstractTextureFormatD2Ev(ptr noundef nonnull align 8 dereferenceable(52)) unnamed_addr #2

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #10

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 = { 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 #3 = { nobuiltin allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nobuiltin 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 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 #7 = { 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 #8 = { nofree nosync nounwind memory(none) }
attributes #9 = { noinline noreturn nounwind uwtable "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 #10 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #11 = { builtin allocsize(0) }
attributes #12 = { builtin nounwind }
attributes #13 = { nounwind }
attributes #14 = { noreturn }
attributes #15 = { noreturn 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, !11, i64 56}
!9 = !{!"_ZTSN4Glip12CorePipeline20AbstractFilterLayoutE", !10, i64 8, !11, i64 56, !12, i64 64, !12, i64 65, !12, i64 66, !12, i64 67, !13, i64 68, !13, i64 72, !13, i64 76, !13, i64 80}
!10 = !{!"omnipotent char", !7, i64 0}
!11 = !{!"any pointer", !10, i64 0}
!12 = !{!"bool", !10, i64 0}
!13 = !{!"int", !10, i64 0}
!14 = !{!12, !12, i64 0}
!15 = !{!13, !13, i64 0}
!16 = !{!11, !11, i64 0}
!17 = !{!18, !18, i64 0}
!18 = !{!"_ZTSN4Glip9Exception4TypeE", !10, i64 0}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LCSSAPass,LICMPass,LoopIdiomRecognizePass,LoopRotatePass,LoopSimplifyPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass