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

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

@_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 i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4Glip12CorePipeline20AbstractFilterLayoutC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(84) %0, ptr noundef %1, ptr noundef nonnull align 8 dereferenceable(84) %2) unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca %"class.std::__cxx11::basic_string", align 8
  %12 = alloca %"class.std::__cxx11::basic_string", align 8
  %13 = alloca %"class.std::__cxx11::basic_string", align 8
  %14 = alloca %"class.std::allocator", align 1
  %15 = alloca i32, align 4
  %16 = alloca i1, align 1
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  %19 = load ptr, ptr %4, align 8
  %20 = load ptr, ptr %5, align 8
  %21 = load ptr, ptr %20, align 8
  store ptr %21, ptr %19, align 8, !tbaa !9
  %22 = getelementptr inbounds ptr, ptr %20, i64 1
  %23 = load ptr, ptr %22, align 8
  %24 = load ptr, ptr %19, align 8, !tbaa !9
  %25 = getelementptr i8, ptr %24, i64 -24
  %26 = load i64, ptr %25, align 8
  %27 = getelementptr inbounds i8, ptr %19, i64 %26
  store ptr %23, ptr %27, align 8, !tbaa !9
  %28 = getelementptr inbounds ptr, ptr %20, i64 2
  %29 = load ptr, ptr %28, align 8
  %30 = load ptr, ptr %19, align 8, !tbaa !9
  %31 = getelementptr i8, ptr %30, i64 -32
  %32 = load i64, ptr %31, align 8
  %33 = getelementptr inbounds i8, ptr %19, i64 %32
  store ptr %29, ptr %33, align 8, !tbaa !9
  %34 = getelementptr inbounds %"class.Glip::CorePipeline::AbstractFilterLayout", ptr %19, i32 0, i32 2
  store ptr null, ptr %34, align 8, !tbaa !11
  %35 = getelementptr inbounds %"class.Glip::CorePipeline::AbstractFilterLayout", ptr %19, i32 0, i32 3
  %36 = load ptr, ptr %6, align 8, !tbaa !5
  %37 = getelementptr inbounds %"class.Glip::CorePipeline::AbstractFilterLayout", ptr %36, i32 0, i32 3
  %38 = load i8, ptr %37, align 8, !tbaa !15, !range !16, !noundef !17
  %39 = trunc i8 %38 to i1
  %40 = zext i1 %39 to i8
  store i8 %40, ptr %35, align 8, !tbaa !15
  %41 = getelementptr inbounds %"class.Glip::CorePipeline::AbstractFilterLayout", ptr %19, i32 0, i32 4
  %42 = load ptr, ptr %6, align 8, !tbaa !5
  %43 = getelementptr inbounds %"class.Glip::CorePipeline::AbstractFilterLayout", ptr %42, i32 0, i32 4
  %44 = load i8, ptr %43, align 1, !tbaa !18, !range !16, !noundef !17
  %45 = trunc i8 %44 to i1
  %46 = zext i1 %45 to i8
  store i8 %46, ptr %41, align 1, !tbaa !18
  %47 = getelementptr inbounds %"class.Glip::CorePipeline::AbstractFilterLayout", ptr %19, i32 0, i32 5
  %48 = load ptr, ptr %6, align 8, !tbaa !5
  %49 = getelementptr inbounds %"class.Glip::CorePipeline::AbstractFilterLayout", ptr %48, i32 0, i32 5
  %50 = load i8, ptr %49, align 2, !tbaa !19, !range !16, !noundef !17
  %51 = trunc i8 %50 to i1
  %52 = zext i1 %51 to i8
  store i8 %52, ptr %47, align 2, !tbaa !19
  %53 = getelementptr inbounds %"class.Glip::CorePipeline::AbstractFilterLayout", ptr %19, i32 0, i32 6
  %54 = load ptr, ptr %6, align 8, !tbaa !5
  %55 = getelementptr inbounds %"class.Glip::CorePipeline::AbstractFilterLayout", ptr %54, i32 0, i32 6
  %56 = load i8, ptr %55, align 1, !tbaa !20, !range !16, !noundef !17
  %57 = trunc i8 %56 to i1
  %58 = zext i1 %57 to i8
  store i8 %58, ptr %53, align 1, !tbaa !20
  %59 = getelementptr inbounds %"class.Glip::CorePipeline::AbstractFilterLayout", ptr %19, i32 0, i32 7
  %60 = load ptr, ptr %6, align 8, !tbaa !5
  %61 = getelementptr inbounds %"class.Glip::CorePipeline::AbstractFilterLayout", ptr %60, i32 0, i32 7
  %62 = load i32, ptr %61, align 4, !tbaa !21
  store i32 %62, ptr %59, align 4, !tbaa !21
  %63 = getelementptr inbounds %"class.Glip::CorePipeline::AbstractFilterLayout", ptr %19, i32 0, i32 8
  %64 = load ptr, ptr %6, align 8, !tbaa !5
  %65 = getelementptr inbounds %"class.Glip::CorePipeline::AbstractFilterLayout", ptr %64, i32 0, i32 8
  %66 = load i32, ptr %65, align 8, !tbaa !22
  store i32 %66, ptr %63, align 8, !tbaa !22
  %67 = getelementptr inbounds %"class.Glip::CorePipeline::AbstractFilterLayout", ptr %19, i32 0, i32 9
  %68 = load ptr, ptr %6, align 8, !tbaa !5
  %69 = getelementptr inbounds %"class.Glip::CorePipeline::AbstractFilterLayout", ptr %68, i32 0, i32 9
  %70 = load i32, ptr %69, align 4, !tbaa !23
  store i32 %70, ptr %67, align 4, !tbaa !23
  %71 = getelementptr inbounds %"class.Glip::CorePipeline::AbstractFilterLayout", ptr %19, i32 0, i32 10
  %72 = load ptr, ptr %6, align 8, !tbaa !5
  %73 = getelementptr inbounds %"class.Glip::CorePipeline::AbstractFilterLayout", ptr %72, i32 0, i32 10
  %74 = load i32, ptr %73, align 8, !tbaa !24
  store i32 %74, ptr %71, 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 %75

75:                                               ; preds = %84, %3
  %76 = load i32, ptr %7, align 4, !tbaa !25
  %77 = icmp ult i32 %76, 6
  br i1 %77, label %79, label %78

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

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

84:                                               ; preds = %79
  %85 = load i32, ptr %7, align 4, !tbaa !25
  %86 = add i32 %85, 1
  store i32 %86, ptr %7, align 4, !tbaa !25
  br label %75, !llvm.loop !26

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

88:                                               ; preds = %123, %87
  %89 = load i32, ptr %8, align 4, !tbaa !25
  %90 = icmp ult i32 %89, 6
  br i1 %90, label %92, label %91

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

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

100:                                              ; preds = %92
  %101 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 272) #11
          to label %102 unwind label %114

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

109:                                              ; preds = %102
  %110 = getelementptr inbounds %"class.Glip::CorePipeline::AbstractFilterLayout", ptr %19, i32 0, i32 1
  %111 = load i32, ptr %8, align 4, !tbaa !25
  %112 = zext i32 %111 to i64
  %113 = getelementptr inbounds [6 x ptr], ptr %110, i64 0, i64 %112
  store ptr %101, ptr %113, align 8, !tbaa !5
  br label %122

114:                                              ; preds = %100
  %115 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTIN4Glip9ExceptionE
  %116 = extractvalue { ptr, i32 } %115, 0
  store ptr %116, ptr %9, align 8
  %117 = extractvalue { ptr, i32 } %115, 1
  store i32 %117, ptr %10, align 4
  br label %126

118:                                              ; preds = %102
  %119 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTIN4Glip9ExceptionE
  %120 = extractvalue { ptr, i32 } %119, 0
  store ptr %120, ptr %9, align 8
  %121 = extractvalue { ptr, i32 } %119, 1
  store i32 %121, ptr %10, align 4
  call void @_ZdlPvm(ptr noundef %101, i64 noundef 272) #12
  br label %126

122:                                              ; preds = %109, %92
  br label %123

123:                                              ; preds = %122
  %124 = load i32, ptr %8, align 4, !tbaa !25
  %125 = add i32 %124, 1
  store i32 %125, ptr %8, align 4, !tbaa !25
  br label %88, !llvm.loop !28

126:                                              ; preds = %118, %114
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #10
  br label %183

127:                                              ; preds = %91
  %128 = load ptr, ptr %6, align 8, !tbaa !5
  %129 = getelementptr inbounds %"class.Glip::CorePipeline::AbstractFilterLayout", ptr %128, i32 0, i32 2
  %130 = load ptr, ptr %129, align 8, !tbaa !11
  %131 = icmp ne ptr %130, null
  br i1 %131, label %132, label %148

132:                                              ; preds = %127
  %133 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 128) #11
          to label %134 unwind label %140

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

138:                                              ; preds = %134
  %139 = getelementptr inbounds %"class.Glip::CorePipeline::AbstractFilterLayout", ptr %19, i32 0, i32 2
  store ptr %133, ptr %139, align 8, !tbaa !11
  br label %194

140:                                              ; preds = %132
  %141 = landingpad { ptr, i32 }
          catch ptr @_ZTIN4Glip9ExceptionE
  %142 = extractvalue { ptr, i32 } %141, 0
  store ptr %142, ptr %9, align 8
  %143 = extractvalue { ptr, i32 } %141, 1
  store i32 %143, ptr %10, align 4
  br label %183

144:                                              ; preds = %134
  %145 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTIN4Glip9ExceptionE
  %146 = extractvalue { ptr, i32 } %145, 0
  store ptr %146, ptr %9, align 8
  %147 = extractvalue { ptr, i32 } %145, 1
  store i32 %147, ptr %10, align 4
  call void @_ZdlPvm(ptr noundef %133, i64 noundef 128) #12
  br label %183

148:                                              ; preds = %127
  store i1 true, ptr %16, align 1
  %149 = call ptr @__cxa_allocate_exception(i64 152) #10
  call void @llvm.lifetime.start.p0(i64 32, ptr %11) #10
  call void @llvm.lifetime.start.p0(i64 32, ptr %12) #10
  %150 = load ptr, ptr %19, align 8, !tbaa !9
  %151 = getelementptr i8, ptr %150, i64 -24
  %152 = load i64, ptr %151, align 8
  %153 = getelementptr inbounds i8, ptr %19, i64 %152
  %154 = load ptr, ptr %153, align 8, !tbaa !9
  %155 = getelementptr inbounds ptr, ptr %154, i64 2
  %156 = load ptr, ptr %155, align 8
  invoke void %156(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %12, ptr noundef nonnull align 8 dereferenceable(88) %153)
          to label %157 unwind label %161

157:                                              ; preds = %148
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %11, ptr noundef @.str, ptr noundef nonnull align 8 dereferenceable(32) %12)
          to label %158 unwind label %165

158:                                              ; preds = %157
  call void @llvm.lifetime.start.p0(i64 1, ptr %14) #10
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #10
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %13, ptr noundef @.str.1, ptr noundef nonnull align 1 dereferenceable(1) %14)
          to label %159 unwind label %169

159:                                              ; preds = %158
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #10
  store i32 1, ptr %15, align 4, !tbaa !29
  invoke void @_ZN4Glip9ExceptionC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES6_iRKNS0_4TypeE(ptr noundef nonnull align 8 dereferenceable(152) %149, ptr noundef nonnull align 8 dereferenceable(32) %11, ptr noundef %13, i32 noundef 95, ptr noundef nonnull align 4 dereferenceable(4) %15)
          to label %160 unwind label %173

160:                                              ; preds = %159
  store i1 false, ptr %16, align 1
  invoke void @__cxa_throw(ptr %149, ptr @_ZTIN4Glip9ExceptionE, ptr @_ZN4Glip9ExceptionD1Ev) #13
          to label %243 unwind label %173

161:                                              ; preds = %148
  %162 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTIN4Glip9ExceptionE
  %163 = extractvalue { ptr, i32 } %162, 0
  store ptr %163, ptr %9, align 8
  %164 = extractvalue { ptr, i32 } %162, 1
  store i32 %164, ptr %10, align 4
  br label %179

165:                                              ; preds = %157
  %166 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTIN4Glip9ExceptionE
  %167 = extractvalue { ptr, i32 } %166, 0
  store ptr %167, ptr %9, align 8
  %168 = extractvalue { ptr, i32 } %166, 1
  store i32 %168, ptr %10, align 4
  br label %178

169:                                              ; preds = %158
  %170 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTIN4Glip9ExceptionE
  %171 = extractvalue { ptr, i32 } %170, 0
  store ptr %171, ptr %9, align 8
  %172 = extractvalue { ptr, i32 } %170, 1
  store i32 %172, ptr %10, align 4
  br label %177

173:                                              ; preds = %160, %159
  %174 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTIN4Glip9ExceptionE
  %175 = extractvalue { ptr, i32 } %174, 0
  store ptr %175, ptr %9, align 8
  %176 = extractvalue { ptr, i32 } %174, 1
  store i32 %176, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #10
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #10
  br label %177

177:                                              ; preds = %173, %169
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #10
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #10
  br label %178

178:                                              ; preds = %177, %165
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #10
  br label %179

179:                                              ; preds = %178, %161
  call void @llvm.lifetime.end.p0(i64 32, ptr %12) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %11) #10
  %180 = load i1, ptr %16, align 1
  br i1 %180, label %181, label %182

181:                                              ; preds = %179
  call void @__cxa_free_exception(ptr %149) #10
  br label %182

182:                                              ; preds = %181, %179
  br label %183

183:                                              ; preds = %182, %144, %140, %126
  %184 = load i32, ptr %10, align 4
  %185 = call i32 @llvm.eh.typeid.for.p0(ptr @_ZTIN4Glip9ExceptionE) #10
  %186 = icmp eq i32 %184, %185
  br i1 %186, label %187, label %235

187:                                              ; preds = %183
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #10
  %188 = load ptr, ptr %9, align 8
  %189 = call ptr @__cxa_begin_catch(ptr %188) #10
  store ptr %189, ptr %17, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #10
  store i32 0, ptr %18, align 4, !tbaa !25
  br label %190

190:                                              ; preds = %208, %187
  %191 = load i32, ptr %18, align 4, !tbaa !25
  %192 = icmp ult i32 %191, 6
  br i1 %192, label %195, label %193

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

194:                                              ; preds = %138
  br label %234

195:                                              ; preds = %190
  %196 = getelementptr inbounds %"class.Glip::CorePipeline::AbstractFilterLayout", ptr %19, i32 0, i32 1
  %197 = load i32, ptr %18, align 4, !tbaa !25
  %198 = zext i32 %197 to i64
  %199 = getelementptr inbounds [6 x ptr], ptr %196, i64 0, i64 %198
  %200 = load ptr, ptr %199, align 8, !tbaa !5
  %201 = icmp eq ptr %200, null
  br i1 %201, label %203, label %202

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

203:                                              ; preds = %202, %195
  %204 = getelementptr inbounds %"class.Glip::CorePipeline::AbstractFilterLayout", ptr %19, i32 0, i32 1
  %205 = load i32, ptr %18, align 4, !tbaa !25
  %206 = zext i32 %205 to i64
  %207 = getelementptr inbounds [6 x ptr], ptr %204, i64 0, i64 %206
  store ptr null, ptr %207, align 8, !tbaa !5
  br label %208

208:                                              ; preds = %203
  %209 = load i32, ptr %18, align 4, !tbaa !25
  %210 = add i32 %209, 1
  store i32 %210, ptr %18, align 4, !tbaa !25
  br label %190, !llvm.loop !31

211:                                              ; preds = %193
  %212 = getelementptr inbounds %"class.Glip::CorePipeline::AbstractFilterLayout", ptr %19, i32 0, i32 2
  %213 = load ptr, ptr %212, align 8, !tbaa !11
  %214 = icmp eq ptr %213, null
  br i1 %214, label %219, label %215

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

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

223:                                              ; preds = %219
  invoke void @__cxa_throw(ptr %221, ptr @_ZTIN4Glip9ExceptionE, ptr @_ZN4Glip9ExceptionD1Ev) #13
          to label %243 unwind label %228

224:                                              ; preds = %219
  %225 = landingpad { ptr, i32 }
          cleanup
  %226 = extractvalue { ptr, i32 } %225, 0
  store ptr %226, ptr %9, align 8
  %227 = extractvalue { ptr, i32 } %225, 1
  store i32 %227, ptr %10, align 4
  call void @__cxa_free_exception(ptr %221) #10
  br label %232

228:                                              ; preds = %223
  %229 = landingpad { ptr, i32 }
          cleanup
  %230 = extractvalue { ptr, i32 } %229, 0
  store ptr %230, ptr %9, align 8
  %231 = extractvalue { ptr, i32 } %229, 1
  store i32 %231, ptr %10, align 4
  br label %232

232:                                              ; preds = %228, %224
  invoke void @__cxa_end_catch()
          to label %233 unwind label %240

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

234:                                              ; preds = %194
  ret void

235:                                              ; preds = %233, %183
  %236 = load ptr, ptr %9, align 8
  %237 = load i32, ptr %10, align 4
  %238 = insertvalue { ptr, i32 } poison, ptr %236, 0
  %239 = insertvalue { ptr, i32 } %238, i32 %237, 1
  resume { ptr, i32 } %239

240:                                              ; preds = %232
  %241 = landingpad { ptr, i32 }
          catch ptr null
  %242 = extractvalue { ptr, i32 } %241, 0
  call void @__clang_call_terminate(ptr %242) #14
  unreachable

243:                                              ; preds = %223, %160
  unreachable
}

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

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

; 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 #3

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 #1 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 #7

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

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

declare void @__cxa_end_catch()

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

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

@_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 i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4Glip12CorePipeline20AbstractFilterLayoutC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(84) %0, ptr nocapture noundef readonly %1, ptr nocapture noundef nonnull readonly align 8 dereferenceable(84) %2) unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
.preheader:
  %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 = load ptr, ptr %1, align 8
  store ptr %8, ptr %0, align 8, !tbaa !5
  %9 = getelementptr inbounds i8, ptr %1, i64 8
  %10 = load ptr, ptr %9, align 8
  %11 = getelementptr i8, ptr %8, i64 -24
  %12 = load i64, ptr %11, align 8
  %13 = getelementptr inbounds i8, ptr %0, i64 %12
  store ptr %10, ptr %13, align 8, !tbaa !5
  %14 = getelementptr inbounds i8, ptr %1, i64 16
  %15 = load ptr, ptr %14, align 8
  %16 = load ptr, ptr %0, align 8, !tbaa !5
  %17 = getelementptr i8, ptr %16, i64 -32
  %18 = load i64, ptr %17, align 8
  %19 = getelementptr inbounds i8, ptr %0, i64 %18
  store ptr %15, ptr %19, align 8, !tbaa !5
  %20 = getelementptr inbounds i8, ptr %0, i64 56
  store ptr null, ptr %20, align 8, !tbaa !8
  %21 = getelementptr inbounds i8, ptr %0, i64 64
  %22 = getelementptr inbounds i8, ptr %2, i64 64
  %23 = load <4 x i8>, ptr %22, align 8, !tbaa !14
  store <4 x i8> %23, ptr %21, align 8, !tbaa !14
  %24 = getelementptr inbounds i8, ptr %0, i64 68
  %25 = getelementptr inbounds i8, ptr %2, i64 68
  %26 = load <4 x i32>, ptr %25, align 4, !tbaa !15
  store <4 x i32> %26, ptr %24, align 4, !tbaa !15
  %27 = getelementptr inbounds i8, ptr %0, i64 8
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(48) %27, i8 0, i64 48, i1 false), !tbaa !16
  %28 = getelementptr inbounds i8, ptr %2, i64 8
  %29 = load ptr, ptr %28, align 8, !tbaa !16
  %.not50 = icmp eq ptr %29, null
  br i1 %.not50, label %38, label %30

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

32:                                               ; preds = %30
  invoke void @_ZN4Glip6CoreGL12ShaderSourceC1ERKS1_(ptr noundef nonnull align 8 dereferenceable(272) %31, ptr noundef nonnull align 8 dereferenceable(272) %29)
          to label %33 unwind label %36

33:                                               ; preds = %32
  store ptr %31, ptr %27, align 8, !tbaa !16
  br label %38

34:                                               ; preds = %73, %65, %57, %49, %41, %30
  %35 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTIN4Glip9ExceptionE
  br label %110

36:                                               ; preds = %75, %67, %59, %51, %43, %32
  %.lcssa = phi ptr [ %31, %32 ], [ %42, %43 ], [ %50, %51 ], [ %58, %59 ], [ %66, %67 ], [ %74, %75 ]
  %37 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTIN4Glip9ExceptionE
  tail call void @_ZdlPvm(ptr noundef nonnull %.lcssa, i64 noundef 272) #12
  br label %110

38:                                               ; preds = %.preheader, %33
  %39 = getelementptr inbounds i8, ptr %2, i64 16
  %40 = load ptr, ptr %39, align 8, !tbaa !16
  %.not50.1 = icmp eq ptr %40, null
  br i1 %.not50.1, label %46, label %41

41:                                               ; preds = %38
  %42 = invoke noalias noundef nonnull dereferenceable(272) ptr @_Znwm(i64 noundef 272) #11
          to label %43 unwind label %34

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

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

46:                                               ; preds = %44, %38
  %47 = getelementptr inbounds i8, ptr %2, i64 24
  %48 = load ptr, ptr %47, align 8, !tbaa !16
  %.not50.2 = icmp eq ptr %48, null
  br i1 %.not50.2, label %54, label %49

49:                                               ; preds = %46
  %50 = invoke noalias noundef nonnull dereferenceable(272) ptr @_Znwm(i64 noundef 272) #11
          to label %51 unwind label %34

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

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

54:                                               ; preds = %52, %46
  %55 = getelementptr inbounds i8, ptr %2, i64 32
  %56 = load ptr, ptr %55, align 8, !tbaa !16
  %.not50.3 = icmp eq ptr %56, null
  br i1 %.not50.3, label %62, label %57

57:                                               ; preds = %54
  %58 = invoke noalias noundef nonnull dereferenceable(272) ptr @_Znwm(i64 noundef 272) #11
          to label %59 unwind label %34

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

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

62:                                               ; preds = %60, %54
  %63 = getelementptr inbounds i8, ptr %2, i64 40
  %64 = load ptr, ptr %63, align 8, !tbaa !16
  %.not50.4 = icmp eq ptr %64, null
  br i1 %.not50.4, label %70, label %65

65:                                               ; preds = %62
  %66 = invoke noalias noundef nonnull dereferenceable(272) ptr @_Znwm(i64 noundef 272) #11
          to label %67 unwind label %34

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

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

70:                                               ; preds = %68, %62
  %71 = getelementptr inbounds i8, ptr %2, i64 48
  %72 = load ptr, ptr %71, align 8, !tbaa !16
  %.not50.5 = icmp eq ptr %72, null
  br i1 %.not50.5, label %78, label %73

73:                                               ; preds = %70
  %74 = invoke noalias noundef nonnull dereferenceable(272) ptr @_Znwm(i64 noundef 272) #11
          to label %75 unwind label %34

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

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

78:                                               ; preds = %76, %70
  %79 = getelementptr inbounds i8, ptr %2, i64 56
  %80 = load ptr, ptr %79, align 8, !tbaa !8
  %.not = icmp eq ptr %80, null
  br i1 %.not, label %89, label %81

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

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

84:                                               ; preds = %83
  store ptr %82, ptr %20, align 8, !tbaa !8
  ret void

85:                                               ; preds = %81
  %86 = landingpad { ptr, i32 }
          catch ptr @_ZTIN4Glip9ExceptionE
  br label %110

87:                                               ; preds = %83
  %88 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTIN4Glip9ExceptionE
  tail call void @_ZdlPvm(ptr noundef nonnull %82, i64 noundef 128) #12
  br label %110

89:                                               ; preds = %78
  %90 = 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
  %91 = load ptr, ptr %0, align 8, !tbaa !5
  %92 = getelementptr i8, ptr %91, i64 -24
  %93 = load i64, ptr %92, align 8
  %94 = getelementptr inbounds i8, ptr %0, i64 %93
  %95 = load ptr, ptr %94, align 8, !tbaa !5
  %96 = getelementptr inbounds i8, ptr %95, i64 16
  %97 = load ptr, ptr %96, align 8
  invoke void %97(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %4, ptr noundef nonnull align 8 dereferenceable(88) %94)
          to label %98 unwind label %.thread

98:                                               ; preds = %89
  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 %99 unwind label %.thread59

99:                                               ; preds = %98
  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 %100 unwind label %104

100:                                              ; preds = %99
  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) %90, 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 %101 unwind label %106

101:                                              ; preds = %100
  invoke void @__cxa_throw(ptr nonnull %90, ptr nonnull @_ZTIN4Glip9ExceptionE, ptr nonnull @_ZN4Glip9ExceptionD1Ev) #14
          to label %162 unwind label %106

.thread:                                          ; preds = %89
  %102 = 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 %109

.thread59:                                        ; preds = %98
  %103 = 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 %109

104:                                              ; preds = %99
  %105 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTIN4Glip9ExceptionE
  br label %108

106:                                              ; preds = %101, %100
  %.032 = phi i1 [ false, %101 ], [ true, %100 ]
  %107 = 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 %108

108:                                              ; preds = %104, %106
  %.pn = phi { ptr, i32 } [ %107, %106 ], [ %105, %104 ]
  %.1 = phi i1 [ %.032, %106 ], [ true, %104 ]
  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 %.1, label %109, label %110

109:                                              ; preds = %.thread59, %.thread, %108
  %.pn.pn.pn58 = phi { ptr, i32 } [ %102, %.thread ], [ %.pn, %108 ], [ %103, %.thread59 ]
  call void @__cxa_free_exception(ptr %90) #13
  br label %110

110:                                              ; preds = %34, %36, %108, %109, %87, %85
  %.pn51.pn = phi { ptr, i32 } [ %88, %87 ], [ %86, %85 ], [ %.pn.pn.pn58, %109 ], [ %.pn, %108 ], [ %37, %36 ], [ %35, %34 ]
  %.4 = extractvalue { ptr, i32 } %.pn51.pn, 1
  %111 = call i32 @llvm.eh.typeid.for.p0(ptr nonnull @_ZTIN4Glip9ExceptionE) #13
  %112 = icmp eq i32 %.4, %111
  br i1 %112, label %113, label %158

113:                                              ; preds = %110
  %.441 = extractvalue { ptr, i32 } %.pn51.pn, 0
  %114 = call ptr @__cxa_begin_catch(ptr %.441) #13
  %115 = load ptr, ptr %27, align 8, !tbaa !16
  %116 = icmp eq ptr %115, null
  br i1 %116, label %118, label %117

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

118:                                              ; preds = %117, %113
  store ptr null, ptr %27, align 8, !tbaa !16
  %119 = getelementptr inbounds i8, ptr %0, i64 16
  %120 = load ptr, ptr %119, align 8, !tbaa !16
  %121 = icmp eq ptr %120, null
  br i1 %121, label %123, label %122

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

123:                                              ; preds = %122, %118
  store ptr null, ptr %119, align 8, !tbaa !16
  %124 = getelementptr inbounds i8, ptr %0, i64 24
  %125 = load ptr, ptr %124, align 8, !tbaa !16
  %126 = icmp eq ptr %125, null
  br i1 %126, label %128, label %127

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

128:                                              ; preds = %127, %123
  store ptr null, ptr %124, align 8, !tbaa !16
  %129 = getelementptr inbounds i8, ptr %0, i64 32
  %130 = load ptr, ptr %129, align 8, !tbaa !16
  %131 = icmp eq ptr %130, null
  br i1 %131, label %133, label %132

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

133:                                              ; preds = %132, %128
  store ptr null, ptr %129, align 8, !tbaa !16
  %134 = getelementptr inbounds i8, ptr %0, i64 40
  %135 = load ptr, ptr %134, align 8, !tbaa !16
  %136 = icmp eq ptr %135, null
  br i1 %136, label %138, label %137

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

138:                                              ; preds = %137, %133
  store ptr null, ptr %134, align 8, !tbaa !16
  %139 = getelementptr inbounds i8, ptr %0, i64 48
  %140 = load ptr, ptr %139, align 8, !tbaa !16
  %141 = icmp eq ptr %140, null
  br i1 %141, label %143, label %142

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

143:                                              ; preds = %142, %138
  store ptr null, ptr %139, align 8, !tbaa !16
  %144 = load ptr, ptr %20, align 8, !tbaa !8
  %145 = icmp eq ptr %144, null
  br i1 %145, label %150, label %146

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

150:                                              ; preds = %146, %143
  store ptr null, ptr %20, align 8, !tbaa !8
  %151 = call ptr @__cxa_allocate_exception(i64 152) #13
  invoke void @_ZN4Glip9ExceptionC1ERKS0_(ptr noundef nonnull align 8 dereferenceable(152) %151, ptr noundef nonnull align 8 dereferenceable(152) %114)
          to label %152 unwind label %153

152:                                              ; preds = %150
  invoke void @__cxa_throw(ptr nonnull %151, ptr nonnull @_ZTIN4Glip9ExceptionE, ptr nonnull @_ZN4Glip9ExceptionD1Ev) #14
          to label %162 unwind label %155

153:                                              ; preds = %150
  %154 = landingpad { ptr, i32 }
          cleanup
  call void @__cxa_free_exception(ptr %151) #13
  br label %157

155:                                              ; preds = %152
  %156 = landingpad { ptr, i32 }
          cleanup
  br label %157

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

158:                                              ; preds = %157, %110
  %.merged = phi { ptr, i32 } [ %.pn51.pn, %110 ], [ %.pn54, %157 ]
  resume { ptr, i32 } %.merged

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

162:                                              ; preds = %152, %101
  unreachable
}

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

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

; 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 #3

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 #1 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 #7

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

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

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 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 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 #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 = { 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 = { 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 #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,PostOrderFunctionAttrsPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass