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

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

@_ZTIN4Glip9ExceptionE = external constant ptr
@.str.1 = external hidden unnamed_addr constant [86 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [75 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [14 x i8], align 1
@__glewBlendEquation = external global ptr, align 8
@.str.14 = external hidden unnamed_addr constant [59 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [54 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [2 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(...)

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

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

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

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

declare void @__cxa_free_exception(ptr)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK4Glip12CorePipeline20AbstractFilterLayout17isClearingEnabledEv(ptr noundef nonnull align 8 dereferenceable(84)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK4Glip12CorePipeline20AbstractFilterLayout17isBlendingEnabledEv(ptr noundef nonnull align 8 dereferenceable(84)) #2 align 2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK4Glip12CorePipeline20AbstractFilterLayout21isDepthTestingEnabledEv(ptr noundef nonnull align 8 dereferenceable(84)) #2 align 2

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

declare noundef i32 @_ZNK4Glip12CorePipeline23AbstractComponentLayout15getNumInputPortEv(ptr noundef nonnull align 8 dereferenceable(88)) #4

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

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

declare noundef i32 @_ZNK4Glip12CorePipeline23AbstractComponentLayout16getNumOutputPortEv(ptr noundef nonnull align 8 dereferenceable(88)) #4

declare void @_ZN4Glip6CoreGL10HdlProgram11stopProgramEv() #4

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4Glip12CorePipeline6Filter7processERNS_6CoreGL6HdlFBOE(ptr noundef nonnull align 8 dereferenceable(104) %0, ptr noundef nonnull align 8 dereferenceable(97) %1) #3 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca %"class.std::__cxx11::basic_string", align 8
  %6 = alloca %"class.std::__cxx11::basic_string", align 8
  %7 = alloca %"class.std::__cxx11::basic_string", align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca %"class.std::__cxx11::basic_string", align 8
  %11 = alloca %"class.std::allocator", align 1
  %12 = alloca i32, align 4
  %13 = alloca i1, align 1
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca %"class.std::__cxx11::basic_string", align 8
  %17 = alloca %"class.std::__cxx11::basic_string", align 8
  %18 = alloca %"class.std::__cxx11::basic_string", align 8
  %19 = alloca %"class.std::__cxx11::basic_string", align 8
  %20 = alloca %"class.std::__cxx11::basic_string", align 8
  %21 = alloca %"class.std::__cxx11::basic_string", align 8
  %22 = alloca %"class.std::__cxx11::basic_string", align 8
  %23 = alloca %"class.std::__cxx11::basic_string", align 8
  %24 = alloca %"class.std::__cxx11::basic_string", align 8
  %25 = alloca %"class.std::allocator", align 1
  %26 = alloca i32, align 4
  %27 = alloca i1, align 1
  %28 = alloca i32, align 4
  %29 = alloca %"class.std::__cxx11::basic_string", align 8
  %30 = alloca %"class.std::__cxx11::basic_string", align 8
  %31 = alloca %"class.std::__cxx11::basic_string", align 8
  %32 = alloca %"class.std::__cxx11::basic_string", align 8
  %33 = alloca %"class.std::__cxx11::basic_string", align 8
  %34 = alloca %"class.std::__cxx11::basic_string", align 8
  %35 = alloca %"class.std::__cxx11::basic_string", align 8
  %36 = alloca %"class.std::__cxx11::basic_string", align 8
  %37 = alloca %"class.std::__cxx11::basic_string", align 8
  %38 = alloca %"class.std::allocator", align 1
  %39 = alloca i32, align 4
  %40 = alloca i1, align 1
  %41 = alloca i32, align 4
  %42 = alloca i32, align 4
  %43 = alloca %"class.std::__cxx11::basic_string", align 8
  %44 = alloca %"class.std::__cxx11::basic_string", align 8
  %45 = alloca %"class.std::__cxx11::basic_string", align 8
  %46 = alloca %"class.std::__cxx11::basic_string", align 8
  %47 = alloca %"class.std::__cxx11::basic_string", align 8
  %48 = alloca %"class.std::__cxx11::basic_string", align 8
  %49 = alloca %"class.std::__cxx11::basic_string", align 8
  %50 = alloca %"class.std::__cxx11::basic_string", align 8
  %51 = alloca %"class.std::__cxx11::basic_string", align 8
  %52 = alloca %"class.std::__cxx11::basic_string", align 8
  %53 = alloca %"class.std::allocator", align 1
  %54 = alloca i32, align 4
  %55 = alloca i1, align 1
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %56 = load ptr, ptr %3, align 8
  %57 = load ptr, ptr %4, align 8, !tbaa !5
  %58 = call noundef i32 @_ZNK4Glip6CoreGL6HdlFBO18getAttachmentCountEv(ptr noundef nonnull align 8 dereferenceable(97) %57)
  %59 = load ptr, ptr %56, align 8, !tbaa !9
  %60 = getelementptr i8, ptr %59, i64 -32
  %61 = load i64, ptr %60, align 8
  %62 = getelementptr inbounds i8, ptr %56, i64 %61
  %63 = call noundef i32 @_ZNK4Glip12CorePipeline23AbstractComponentLayout16getNumOutputPortEv(ptr noundef nonnull align 8 dereferenceable(88) %62)
  %64 = icmp slt i32 %58, %63
  br i1 %64, label %65, label %106

65:                                               ; preds = %2
  store i1 true, ptr %13, align 1
  %66 = call ptr @__cxa_allocate_exception(i64 152) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %5) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %6) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %7) #6
  %67 = load ptr, ptr %56, align 8, !tbaa !9
  %68 = getelementptr i8, ptr %67, i64 -24
  %69 = load i64, ptr %68, align 8
  %70 = getelementptr inbounds i8, ptr %56, i64 %69
  %71 = load ptr, ptr %70, align 8, !tbaa !9
  %72 = getelementptr inbounds ptr, ptr %71, i64 2
  %73 = load ptr, ptr %72, align 8
  invoke void %73(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %7, ptr noundef nonnull align 8 dereferenceable(40) %70)
          to label %74 unwind label %79

74:                                               ; preds = %65
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %6, ptr noundef @.str.12, ptr noundef nonnull align 8 dereferenceable(32) %7)
          to label %75 unwind label %83

75:                                               ; preds = %74
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %5, ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef @.str.13)
          to label %76 unwind label %87

76:                                               ; preds = %75
  call void @llvm.lifetime.start.p0(i64 1, ptr %11) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %10, ptr noundef @.str.1, ptr noundef nonnull align 1 dereferenceable(1) %11)
          to label %77 unwind label %91

77:                                               ; preds = %76
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  store i32 1, ptr %12, align 4, !tbaa !11
  invoke void @_ZN4Glip9ExceptionC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES6_iRKNS0_4TypeE(ptr noundef nonnull align 8 dereferenceable(152) %66, ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef %10, i32 noundef 534, ptr noundef nonnull align 4 dereferenceable(4) %12)
          to label %78 unwind label %95

78:                                               ; preds = %77
  store i1 false, ptr %13, align 1
  invoke void @__cxa_throw(ptr %66, ptr @_ZTIN4Glip9ExceptionE, ptr @_ZN4Glip9ExceptionD1Ev) #7
          to label %474 unwind label %95

79:                                               ; preds = %65
  %80 = landingpad { ptr, i32 }
          cleanup
  %81 = extractvalue { ptr, i32 } %80, 0
  store ptr %81, ptr %8, align 8
  %82 = extractvalue { ptr, i32 } %80, 1
  store i32 %82, ptr %9, align 4
  br label %102

83:                                               ; preds = %74
  %84 = landingpad { ptr, i32 }
          cleanup
  %85 = extractvalue { ptr, i32 } %84, 0
  store ptr %85, ptr %8, align 8
  %86 = extractvalue { ptr, i32 } %84, 1
  store i32 %86, ptr %9, align 4
  br label %101

87:                                               ; preds = %75
  %88 = landingpad { ptr, i32 }
          cleanup
  %89 = extractvalue { ptr, i32 } %88, 0
  store ptr %89, ptr %8, align 8
  %90 = extractvalue { ptr, i32 } %88, 1
  store i32 %90, ptr %9, align 4
  br label %100

91:                                               ; preds = %76
  %92 = landingpad { ptr, i32 }
          cleanup
  %93 = extractvalue { ptr, i32 } %92, 0
  store ptr %93, ptr %8, align 8
  %94 = extractvalue { ptr, i32 } %92, 1
  store i32 %94, ptr %9, align 4
  br label %99

95:                                               ; preds = %78, %77
  %96 = landingpad { ptr, i32 }
          cleanup
  %97 = extractvalue { ptr, i32 } %96, 0
  store ptr %97, ptr %8, align 8
  %98 = extractvalue { ptr, i32 } %96, 1
  store i32 %98, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #6
  br label %99

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

100:                                              ; preds = %99, %87
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #6
  br label %101

101:                                              ; preds = %100, %83
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #6
  br label %102

102:                                              ; preds = %101, %79
  call void @llvm.lifetime.end.p0(i64 32, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %5) #6
  %103 = load i1, ptr %13, align 1
  br i1 %103, label %104, label %105

104:                                              ; preds = %102
  call void @__cxa_free_exception(ptr %66) #6
  br label %105

105:                                              ; preds = %104, %102
  br label %469

106:                                              ; preds = %2
  %107 = load ptr, ptr %56, align 8, !tbaa !9
  %108 = getelementptr i8, ptr %107, i64 -40
  %109 = load i64, ptr %108, align 8
  %110 = getelementptr inbounds i8, ptr %56, i64 %109
  %111 = call noundef zeroext i1 @_ZNK4Glip12CorePipeline20AbstractFilterLayout21isDepthTestingEnabledEv(ptr noundef nonnull align 8 dereferenceable(84) %110)
  br i1 %111, label %112, label %117

112:                                              ; preds = %106
  %113 = load ptr, ptr %4, align 8, !tbaa !5
  %114 = call noundef zeroext i1 @_ZN4Glip6CoreGL6HdlFBO14hasDepthBufferEv(ptr noundef nonnull align 8 dereferenceable(97) %113)
  br i1 %114, label %117, label %115

115:                                              ; preds = %112
  %116 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN4Glip6CoreGL6HdlFBO14addDepthBufferEv(ptr noundef nonnull align 8 dereferenceable(97) %116)
  br label %117

117:                                              ; preds = %115, %112, %106
  %118 = load ptr, ptr %4, align 8, !tbaa !5
  %119 = load ptr, ptr %56, align 8, !tbaa !9
  %120 = getelementptr i8, ptr %119, i64 -32
  %121 = load i64, ptr %120, align 8
  %122 = getelementptr inbounds i8, ptr %56, i64 %121
  %123 = call noundef i32 @_ZNK4Glip12CorePipeline23AbstractComponentLayout16getNumOutputPortEv(ptr noundef nonnull align 8 dereferenceable(88) %122)
  %124 = load ptr, ptr %56, align 8, !tbaa !9
  %125 = getelementptr i8, ptr %124, i64 -40
  %126 = load i64, ptr %125, align 8
  %127 = getelementptr inbounds i8, ptr %56, i64 %126
  %128 = call noundef zeroext i1 @_ZNK4Glip12CorePipeline20AbstractFilterLayout21isDepthTestingEnabledEv(ptr noundef nonnull align 8 dereferenceable(84) %127)
  call void @_ZN4Glip6CoreGL6HdlFBO14beginRenderingEib(ptr noundef nonnull align 8 dereferenceable(97) %118, i32 noundef %123, i1 noundef zeroext %128)
  %129 = load ptr, ptr %56, align 8, !tbaa !9
  %130 = getelementptr i8, ptr %129, i64 -40
  %131 = load i64, ptr %130, align 8
  %132 = getelementptr inbounds i8, ptr %56, i64 %131
  %133 = call noundef zeroext i1 @_ZNK4Glip12CorePipeline20AbstractFilterLayout21isDepthTestingEnabledEv(ptr noundef nonnull align 8 dereferenceable(84) %132)
  br i1 %133, label %134, label %141

134:                                              ; preds = %117
  call void @glEnable(i32 noundef 2929)
  %135 = load ptr, ptr %56, align 8, !tbaa !9
  %136 = getelementptr i8, ptr %135, i64 -40
  %137 = load i64, ptr %136, align 8
  %138 = getelementptr inbounds i8, ptr %56, i64 %137
  %139 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK4Glip12CorePipeline20AbstractFilterLayout23getDepthTestingFunctionEv(ptr noundef nonnull align 8 dereferenceable(84) %138)
  %140 = load i32, ptr %139, align 4, !tbaa !13
  call void @glDepthFunc(i32 noundef %140)
  br label %142

141:                                              ; preds = %117
  call void @glDisable(i32 noundef 2929)
  br label %142

142:                                              ; preds = %141, %134
  %143 = load ptr, ptr %56, align 8, !tbaa !9
  %144 = getelementptr i8, ptr %143, i64 -40
  %145 = load i64, ptr %144, align 8
  %146 = getelementptr inbounds i8, ptr %56, i64 %145
  %147 = call noundef zeroext i1 @_ZNK4Glip12CorePipeline20AbstractFilterLayout17isBlendingEnabledEv(ptr noundef nonnull align 8 dereferenceable(84) %146)
  br i1 %147, label %148, label %168

148:                                              ; preds = %142
  call void @glEnable(i32 noundef 3042)
  %149 = load ptr, ptr %56, align 8, !tbaa !9
  %150 = getelementptr i8, ptr %149, i64 -40
  %151 = load i64, ptr %150, align 8
  %152 = getelementptr inbounds i8, ptr %56, i64 %151
  %153 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK4Glip12CorePipeline20AbstractFilterLayout10getSFactorEv(ptr noundef nonnull align 8 dereferenceable(84) %152)
  %154 = load i32, ptr %153, align 4, !tbaa !13
  %155 = load ptr, ptr %56, align 8, !tbaa !9
  %156 = getelementptr i8, ptr %155, i64 -40
  %157 = load i64, ptr %156, align 8
  %158 = getelementptr inbounds i8, ptr %56, i64 %157
  %159 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK4Glip12CorePipeline20AbstractFilterLayout10getDFactorEv(ptr noundef nonnull align 8 dereferenceable(84) %158)
  %160 = load i32, ptr %159, align 4, !tbaa !13
  call void @glBlendFunc(i32 noundef %154, i32 noundef %160)
  %161 = load ptr, ptr @__glewBlendEquation, align 8, !tbaa !5
  %162 = load ptr, ptr %56, align 8, !tbaa !9
  %163 = getelementptr i8, ptr %162, i64 -40
  %164 = load i64, ptr %163, align 8
  %165 = getelementptr inbounds i8, ptr %56, i64 %164
  %166 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK4Glip12CorePipeline20AbstractFilterLayout19getBlendingEquationEv(ptr noundef nonnull align 8 dereferenceable(84) %165)
  %167 = load i32, ptr %166, align 4, !tbaa !13
  call void %161(i32 noundef %167)
  br label %169

168:                                              ; preds = %142
  call void @glDisable(i32 noundef 3042)
  br label %169

169:                                              ; preds = %168, %148
  %170 = load ptr, ptr %56, align 8, !tbaa !9
  %171 = getelementptr i8, ptr %170, i64 -40
  %172 = load i64, ptr %171, align 8
  %173 = getelementptr inbounds i8, ptr %56, i64 %172
  %174 = call noundef zeroext i1 @_ZNK4Glip12CorePipeline20AbstractFilterLayout17isClearingEnabledEv(ptr noundef nonnull align 8 dereferenceable(84) %173)
  br i1 %174, label %175, label %176

175:                                              ; preds = %169
  call void @glClearColor(float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00)
  call void @glClear(i32 noundef 16640)
  br label %176

176:                                              ; preds = %175, %169
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  store i32 0, ptr %14, align 4, !tbaa !13
  br label %177

177:                                              ; preds = %193, %176
  %178 = load i32, ptr %14, align 4, !tbaa !13
  %179 = load ptr, ptr %56, align 8, !tbaa !9
  %180 = getelementptr i8, ptr %179, i64 -32
  %181 = load i64, ptr %180, align 8
  %182 = getelementptr inbounds i8, ptr %56, i64 %181
  %183 = call noundef i32 @_ZNK4Glip12CorePipeline23AbstractComponentLayout15getNumInputPortEv(ptr noundef nonnull align 8 dereferenceable(88) %182)
  %184 = icmp slt i32 %178, %183
  br i1 %184, label %186, label %185

185:                                              ; preds = %177
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  br label %196

186:                                              ; preds = %177
  %187 = getelementptr inbounds %"class.Glip::CorePipeline::Filter", ptr %56, i32 0, i32 6
  %188 = load i32, ptr %14, align 4, !tbaa !13
  %189 = sext i32 %188 to i64
  %190 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPN4Glip6CoreGL10HdlTextureESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %187, i64 noundef %189) #6
  %191 = load ptr, ptr %190, align 8, !tbaa !5
  %192 = load i32, ptr %14, align 4, !tbaa !13
  call void @_ZN4Glip6CoreGL10HdlTexture4bindEi(ptr noundef nonnull align 8 dereferenceable(57) %191, i32 noundef %192)
  br label %193

193:                                              ; preds = %186
  %194 = load i32, ptr %14, align 4, !tbaa !13
  %195 = add nsw i32 %194, 1
  store i32 %195, ptr %14, align 4, !tbaa !13
  br label %177, !llvm.loop !15

196:                                              ; preds = %185
  call void @glLoadIdentity()
  %197 = getelementptr inbounds %"class.Glip::CorePipeline::Filter", ptr %56, i32 0, i32 2
  %198 = load ptr, ptr %197, align 8, !tbaa !17
  call void @_ZN4Glip6CoreGL10HdlProgram3useEv(ptr noundef nonnull align 8 dereferenceable(88) %198)
  %199 = getelementptr inbounds %"class.Glip::CorePipeline::Filter", ptr %56, i32 0, i32 4
  %200 = load i8, ptr %199, align 8, !tbaa !24, !range !25, !noundef !26
  %201 = trunc i8 %200 to i1
  br i1 %201, label %202, label %275

202:                                              ; preds = %196
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  %203 = call i32 @glGetError()
  store i32 %203, ptr %15, align 4, !tbaa !13
  %204 = load i32, ptr %15, align 4, !tbaa !13
  %205 = icmp ne i32 %204, 0
  br i1 %205, label %206, label %274

206:                                              ; preds = %202
  call void @_ZN4Glip6CoreGL10HdlProgram11stopProgramEv()
  %207 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN4Glip6CoreGL6HdlFBO12endRenderingEv(ptr noundef nonnull align 8 dereferenceable(97) %207)
  %208 = getelementptr inbounds %"class.Glip::CorePipeline::Filter", ptr %56, i32 0, i32 4
  store i8 0, ptr %208, align 8, !tbaa !24
  %209 = getelementptr inbounds %"class.Glip::CorePipeline::Filter", ptr %56, i32 0, i32 5
  store i8 1, ptr %209, align 1, !tbaa !27
  store i1 true, ptr %27, align 1
  %210 = call ptr @__cxa_allocate_exception(i64 152) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %16) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %17) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %18) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %19) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %20) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %21) #6
  %211 = load ptr, ptr %56, align 8, !tbaa !9
  %212 = getelementptr i8, ptr %211, i64 -24
  %213 = load i64, ptr %212, align 8
  %214 = getelementptr inbounds i8, ptr %56, i64 %213
  %215 = load ptr, ptr %214, align 8, !tbaa !9
  %216 = getelementptr inbounds ptr, ptr %215, i64 2
  %217 = load ptr, ptr %216, align 8
  invoke void %217(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %21, ptr noundef nonnull align 8 dereferenceable(40) %214)
          to label %218 unwind label %227

218:                                              ; preds = %206
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %20, ptr noundef @.str.14, ptr noundef nonnull align 8 dereferenceable(32) %21)
          to label %219 unwind label %231

219:                                              ; preds = %218
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %19, ptr noundef nonnull align 8 dereferenceable(32) %20, ptr noundef @.str.15)
          to label %220 unwind label %235

220:                                              ; preds = %219
  call void @llvm.lifetime.start.p0(i64 32, ptr %22) #6
  call void @_ZN4Glip6CoreGL17getGLEnumNameSafeB5cxx11ERKj(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %22, ptr noundef nonnull align 4 dereferenceable(4) %15) #6
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_S9_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %18, ptr noundef nonnull align 8 dereferenceable(32) %19, ptr noundef nonnull align 8 dereferenceable(32) %22)
          to label %221 unwind label %239

221:                                              ; preds = %220
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %17, ptr noundef nonnull align 8 dereferenceable(32) %18, ptr noundef @.str.16)
          to label %222 unwind label %243

222:                                              ; preds = %221
  call void @llvm.lifetime.start.p0(i64 32, ptr %23) #6
  invoke void @_ZN4Glip6CoreGL21getGLErrorDescriptionB5cxx11ERKj(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %23, ptr noundef nonnull align 4 dereferenceable(4) %15)
          to label %223 unwind label %247

223:                                              ; preds = %222
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_S9_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %16, ptr noundef nonnull align 8 dereferenceable(32) %17, ptr noundef nonnull align 8 dereferenceable(32) %23)
          to label %224 unwind label %251

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

225:                                              ; preds = %224
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #6
  store i32 1, ptr %26, align 4, !tbaa !11
  invoke void @_ZN4Glip9ExceptionC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES6_iRKNS0_4TypeE(ptr noundef nonnull align 8 dereferenceable(152) %210, ptr noundef nonnull align 8 dereferenceable(32) %16, ptr noundef %24, i32 noundef 592, ptr noundef nonnull align 4 dereferenceable(4) %26)
          to label %226 unwind label %259

226:                                              ; preds = %225
  store i1 false, ptr %27, align 1
  invoke void @__cxa_throw(ptr %210, ptr @_ZTIN4Glip9ExceptionE, ptr @_ZN4Glip9ExceptionD1Ev) #7
          to label %474 unwind label %259

227:                                              ; preds = %206
  %228 = landingpad { ptr, i32 }
          cleanup
  %229 = extractvalue { ptr, i32 } %228, 0
  store ptr %229, ptr %8, align 8
  %230 = extractvalue { ptr, i32 } %228, 1
  store i32 %230, ptr %9, align 4
  br label %270

231:                                              ; preds = %218
  %232 = landingpad { ptr, i32 }
          cleanup
  %233 = extractvalue { ptr, i32 } %232, 0
  store ptr %233, ptr %8, align 8
  %234 = extractvalue { ptr, i32 } %232, 1
  store i32 %234, ptr %9, align 4
  br label %269

235:                                              ; preds = %219
  %236 = landingpad { ptr, i32 }
          cleanup
  %237 = extractvalue { ptr, i32 } %236, 0
  store ptr %237, ptr %8, align 8
  %238 = extractvalue { ptr, i32 } %236, 1
  store i32 %238, ptr %9, align 4
  br label %268

239:                                              ; preds = %220
  %240 = landingpad { ptr, i32 }
          cleanup
  %241 = extractvalue { ptr, i32 } %240, 0
  store ptr %241, ptr %8, align 8
  %242 = extractvalue { ptr, i32 } %240, 1
  store i32 %242, ptr %9, align 4
  br label %267

243:                                              ; preds = %221
  %244 = landingpad { ptr, i32 }
          cleanup
  %245 = extractvalue { ptr, i32 } %244, 0
  store ptr %245, ptr %8, align 8
  %246 = extractvalue { ptr, i32 } %244, 1
  store i32 %246, ptr %9, align 4
  br label %266

247:                                              ; preds = %222
  %248 = landingpad { ptr, i32 }
          cleanup
  %249 = extractvalue { ptr, i32 } %248, 0
  store ptr %249, ptr %8, align 8
  %250 = extractvalue { ptr, i32 } %248, 1
  store i32 %250, ptr %9, align 4
  br label %265

251:                                              ; preds = %223
  %252 = landingpad { ptr, i32 }
          cleanup
  %253 = extractvalue { ptr, i32 } %252, 0
  store ptr %253, ptr %8, align 8
  %254 = extractvalue { ptr, i32 } %252, 1
  store i32 %254, ptr %9, align 4
  br label %264

255:                                              ; preds = %224
  %256 = landingpad { ptr, i32 }
          cleanup
  %257 = extractvalue { ptr, i32 } %256, 0
  store ptr %257, ptr %8, align 8
  %258 = extractvalue { ptr, i32 } %256, 1
  store i32 %258, ptr %9, align 4
  br label %263

259:                                              ; preds = %226, %225
  %260 = landingpad { ptr, i32 }
          cleanup
  %261 = extractvalue { ptr, i32 } %260, 0
  store ptr %261, ptr %8, align 8
  %262 = extractvalue { ptr, i32 } %260, 1
  store i32 %262, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %24) #6
  br label %263

263:                                              ; preds = %259, %255
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %25) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %25) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #6
  br label %264

264:                                              ; preds = %263, %251
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %23) #6
  br label %265

265:                                              ; preds = %264, %247
  call void @llvm.lifetime.end.p0(i64 32, ptr %23) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #6
  br label %266

266:                                              ; preds = %265, %243
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #6
  br label %267

267:                                              ; preds = %266, %239
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %22) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #6
  br label %268

268:                                              ; preds = %267, %235
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #6
  br label %269

269:                                              ; preds = %268, %231
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %21) #6
  br label %270

270:                                              ; preds = %269, %227
  call void @llvm.lifetime.end.p0(i64 32, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %16) #6
  %271 = load i1, ptr %27, align 1
  br i1 %271, label %272, label %273

272:                                              ; preds = %270
  call void @__cxa_free_exception(ptr %210) #6
  br label %273

273:                                              ; preds = %272, %270
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  br label %469

274:                                              ; preds = %202
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  br label %275

275:                                              ; preds = %274, %196
  %276 = getelementptr inbounds %"class.Glip::CorePipeline::Filter", ptr %56, i32 0, i32 3
  %277 = load ptr, ptr %276, align 8, !tbaa !28
  call void @_ZN4Glip12CorePipeline16GeometryInstance4drawEv(ptr noundef nonnull align 4 dereferenceable(4) %277)
  %278 = getelementptr inbounds %"class.Glip::CorePipeline::Filter", ptr %56, i32 0, i32 4
  %279 = load i8, ptr %278, align 8, !tbaa !24, !range !25, !noundef !26
  %280 = trunc i8 %279 to i1
  br i1 %280, label %281, label %354

281:                                              ; preds = %275
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #6
  %282 = call i32 @glGetError()
  store i32 %282, ptr %28, align 4, !tbaa !13
  %283 = load i32, ptr %28, align 4, !tbaa !13
  %284 = icmp ne i32 %283, 0
  br i1 %284, label %285, label %353

285:                                              ; preds = %281
  call void @_ZN4Glip6CoreGL10HdlProgram11stopProgramEv()
  %286 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN4Glip6CoreGL6HdlFBO12endRenderingEv(ptr noundef nonnull align 8 dereferenceable(97) %286)
  %287 = getelementptr inbounds %"class.Glip::CorePipeline::Filter", ptr %56, i32 0, i32 4
  store i8 0, ptr %287, align 8, !tbaa !24
  %288 = getelementptr inbounds %"class.Glip::CorePipeline::Filter", ptr %56, i32 0, i32 5
  store i8 1, ptr %288, align 1, !tbaa !27
  store i1 true, ptr %40, align 1
  %289 = call ptr @__cxa_allocate_exception(i64 152) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %29) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %30) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %31) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %32) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %33) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %34) #6
  %290 = load ptr, ptr %56, align 8, !tbaa !9
  %291 = getelementptr i8, ptr %290, i64 -24
  %292 = load i64, ptr %291, align 8
  %293 = getelementptr inbounds i8, ptr %56, i64 %292
  %294 = load ptr, ptr %293, align 8, !tbaa !9
  %295 = getelementptr inbounds ptr, ptr %294, i64 2
  %296 = load ptr, ptr %295, align 8
  invoke void %296(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %34, ptr noundef nonnull align 8 dereferenceable(40) %293)
          to label %297 unwind label %306

297:                                              ; preds = %285
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %33, ptr noundef @.str.14, ptr noundef nonnull align 8 dereferenceable(32) %34)
          to label %298 unwind label %310

298:                                              ; preds = %297
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %32, ptr noundef nonnull align 8 dereferenceable(32) %33, ptr noundef @.str.17)
          to label %299 unwind label %314

299:                                              ; preds = %298
  call void @llvm.lifetime.start.p0(i64 32, ptr %35) #6
  call void @_ZN4Glip6CoreGL17getGLEnumNameSafeB5cxx11ERKj(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %35, ptr noundef nonnull align 4 dereferenceable(4) %28) #6
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_S9_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %31, ptr noundef nonnull align 8 dereferenceable(32) %32, ptr noundef nonnull align 8 dereferenceable(32) %35)
          to label %300 unwind label %318

300:                                              ; preds = %299
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %30, ptr noundef nonnull align 8 dereferenceable(32) %31, ptr noundef @.str.16)
          to label %301 unwind label %322

301:                                              ; preds = %300
  call void @llvm.lifetime.start.p0(i64 32, ptr %36) #6
  invoke void @_ZN4Glip6CoreGL21getGLErrorDescriptionB5cxx11ERKj(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %36, ptr noundef nonnull align 4 dereferenceable(4) %28)
          to label %302 unwind label %326

302:                                              ; preds = %301
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_S9_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %29, ptr noundef nonnull align 8 dereferenceable(32) %30, ptr noundef nonnull align 8 dereferenceable(32) %36)
          to label %303 unwind label %330

303:                                              ; preds = %302
  call void @llvm.lifetime.start.p0(i64 1, ptr %38) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %38) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %37, ptr noundef @.str.1, ptr noundef nonnull align 1 dereferenceable(1) %38)
          to label %304 unwind label %334

304:                                              ; preds = %303
  call void @llvm.lifetime.start.p0(i64 4, ptr %39) #6
  store i32 1, ptr %39, align 4, !tbaa !11
  invoke void @_ZN4Glip9ExceptionC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES6_iRKNS0_4TypeE(ptr noundef nonnull align 8 dereferenceable(152) %289, ptr noundef nonnull align 8 dereferenceable(32) %29, ptr noundef %37, i32 noundef 612, ptr noundef nonnull align 4 dereferenceable(4) %39)
          to label %305 unwind label %338

305:                                              ; preds = %304
  store i1 false, ptr %40, align 1
  invoke void @__cxa_throw(ptr %289, ptr @_ZTIN4Glip9ExceptionE, ptr @_ZN4Glip9ExceptionD1Ev) #7
          to label %474 unwind label %338

306:                                              ; preds = %285
  %307 = landingpad { ptr, i32 }
          cleanup
  %308 = extractvalue { ptr, i32 } %307, 0
  store ptr %308, ptr %8, align 8
  %309 = extractvalue { ptr, i32 } %307, 1
  store i32 %309, ptr %9, align 4
  br label %349

310:                                              ; preds = %297
  %311 = landingpad { ptr, i32 }
          cleanup
  %312 = extractvalue { ptr, i32 } %311, 0
  store ptr %312, ptr %8, align 8
  %313 = extractvalue { ptr, i32 } %311, 1
  store i32 %313, ptr %9, align 4
  br label %348

314:                                              ; preds = %298
  %315 = landingpad { ptr, i32 }
          cleanup
  %316 = extractvalue { ptr, i32 } %315, 0
  store ptr %316, ptr %8, align 8
  %317 = extractvalue { ptr, i32 } %315, 1
  store i32 %317, ptr %9, align 4
  br label %347

318:                                              ; preds = %299
  %319 = landingpad { ptr, i32 }
          cleanup
  %320 = extractvalue { ptr, i32 } %319, 0
  store ptr %320, ptr %8, align 8
  %321 = extractvalue { ptr, i32 } %319, 1
  store i32 %321, ptr %9, align 4
  br label %346

322:                                              ; preds = %300
  %323 = landingpad { ptr, i32 }
          cleanup
  %324 = extractvalue { ptr, i32 } %323, 0
  store ptr %324, ptr %8, align 8
  %325 = extractvalue { ptr, i32 } %323, 1
  store i32 %325, ptr %9, align 4
  br label %345

326:                                              ; preds = %301
  %327 = landingpad { ptr, i32 }
          cleanup
  %328 = extractvalue { ptr, i32 } %327, 0
  store ptr %328, ptr %8, align 8
  %329 = extractvalue { ptr, i32 } %327, 1
  store i32 %329, ptr %9, align 4
  br label %344

330:                                              ; preds = %302
  %331 = landingpad { ptr, i32 }
          cleanup
  %332 = extractvalue { ptr, i32 } %331, 0
  store ptr %332, ptr %8, align 8
  %333 = extractvalue { ptr, i32 } %331, 1
  store i32 %333, ptr %9, align 4
  br label %343

334:                                              ; preds = %303
  %335 = landingpad { ptr, i32 }
          cleanup
  %336 = extractvalue { ptr, i32 } %335, 0
  store ptr %336, ptr %8, align 8
  %337 = extractvalue { ptr, i32 } %335, 1
  store i32 %337, ptr %9, align 4
  br label %342

338:                                              ; preds = %305, %304
  %339 = landingpad { ptr, i32 }
          cleanup
  %340 = extractvalue { ptr, i32 } %339, 0
  store ptr %340, ptr %8, align 8
  %341 = extractvalue { ptr, i32 } %339, 1
  store i32 %341, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %37) #6
  br label %342

342:                                              ; preds = %338, %334
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %38) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %38) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %29) #6
  br label %343

343:                                              ; preds = %342, %330
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %36) #6
  br label %344

344:                                              ; preds = %343, %326
  call void @llvm.lifetime.end.p0(i64 32, ptr %36) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %30) #6
  br label %345

345:                                              ; preds = %344, %322
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %31) #6
  br label %346

346:                                              ; preds = %345, %318
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %35) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %35) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %32) #6
  br label %347

347:                                              ; preds = %346, %314
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %33) #6
  br label %348

348:                                              ; preds = %347, %310
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %34) #6
  br label %349

349:                                              ; preds = %348, %306
  call void @llvm.lifetime.end.p0(i64 32, ptr %34) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %33) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %32) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %31) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %30) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %29) #6
  %350 = load i1, ptr %40, align 1
  br i1 %350, label %351, label %352

351:                                              ; preds = %349
  call void @__cxa_free_exception(ptr %289) #6
  br label %352

352:                                              ; preds = %351, %349
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #6
  br label %469

353:                                              ; preds = %281
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #6
  br label %354

354:                                              ; preds = %353, %275
  call void @_ZN4Glip6CoreGL10HdlProgram11stopProgramEv()
  %355 = load ptr, ptr %56, align 8, !tbaa !9
  %356 = getelementptr i8, ptr %355, i64 -40
  %357 = load i64, ptr %356, align 8
  %358 = getelementptr inbounds i8, ptr %56, i64 %357
  %359 = call noundef zeroext i1 @_ZNK4Glip12CorePipeline20AbstractFilterLayout21isDepthTestingEnabledEv(ptr noundef nonnull align 8 dereferenceable(84) %358)
  br i1 %359, label %360, label %361

360:                                              ; preds = %354
  call void @glDisable(i32 noundef 2929)
  br label %361

361:                                              ; preds = %360, %354
  %362 = load ptr, ptr %56, align 8, !tbaa !9
  %363 = getelementptr i8, ptr %362, i64 -40
  %364 = load i64, ptr %363, align 8
  %365 = getelementptr inbounds i8, ptr %56, i64 %364
  %366 = call noundef zeroext i1 @_ZNK4Glip12CorePipeline20AbstractFilterLayout17isBlendingEnabledEv(ptr noundef nonnull align 8 dereferenceable(84) %365)
  br i1 %366, label %367, label %368

367:                                              ; preds = %361
  call void @glDisable(i32 noundef 3042)
  br label %368

368:                                              ; preds = %367, %361
  call void @llvm.lifetime.start.p0(i64 4, ptr %41) #6
  store i32 0, ptr %41, align 4, !tbaa !13
  br label %369

369:                                              ; preds = %380, %368
  %370 = load i32, ptr %41, align 4, !tbaa !13
  %371 = load ptr, ptr %56, align 8, !tbaa !9
  %372 = getelementptr i8, ptr %371, i64 -32
  %373 = load i64, ptr %372, align 8
  %374 = getelementptr inbounds i8, ptr %56, i64 %373
  %375 = call noundef i32 @_ZNK4Glip12CorePipeline23AbstractComponentLayout15getNumInputPortEv(ptr noundef nonnull align 8 dereferenceable(88) %374)
  %376 = icmp slt i32 %370, %375
  br i1 %376, label %378, label %377

377:                                              ; preds = %369
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #6
  br label %383

378:                                              ; preds = %369
  %379 = load i32, ptr %41, align 4, !tbaa !13
  call void @_ZN4Glip6CoreGL10HdlTexture6unbindEi(i32 noundef %379)
  br label %380

380:                                              ; preds = %378
  %381 = load i32, ptr %41, align 4, !tbaa !13
  %382 = add nsw i32 %381, 1
  store i32 %382, ptr %41, align 4, !tbaa !13
  br label %369, !llvm.loop !29

383:                                              ; preds = %377
  %384 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN4Glip6CoreGL6HdlFBO12endRenderingEv(ptr noundef nonnull align 8 dereferenceable(97) %384)
  %385 = getelementptr inbounds %"class.Glip::CorePipeline::Filter", ptr %56, i32 0, i32 4
  %386 = load i8, ptr %385, align 8, !tbaa !24, !range !25, !noundef !26
  %387 = trunc i8 %386 to i1
  br i1 %387, label %388, label %468

388:                                              ; preds = %383
  call void @llvm.lifetime.start.p0(i64 4, ptr %42) #6
  %389 = call i32 @glGetError()
  store i32 %389, ptr %42, align 4, !tbaa !13
  %390 = load i32, ptr %42, align 4, !tbaa !13
  %391 = icmp ne i32 %390, 0
  br i1 %391, label %392, label %465

392:                                              ; preds = %388
  %393 = getelementptr inbounds %"class.Glip::CorePipeline::Filter", ptr %56, i32 0, i32 4
  store i8 0, ptr %393, align 8, !tbaa !24
  %394 = getelementptr inbounds %"class.Glip::CorePipeline::Filter", ptr %56, i32 0, i32 5
  store i8 1, ptr %394, align 1, !tbaa !27
  store i1 true, ptr %55, align 1
  %395 = call ptr @__cxa_allocate_exception(i64 152) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %43) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %44) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %45) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %46) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %47) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %48) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %49) #6
  %396 = load ptr, ptr %56, align 8, !tbaa !9
  %397 = getelementptr i8, ptr %396, i64 -24
  %398 = load i64, ptr %397, align 8
  %399 = getelementptr inbounds i8, ptr %56, i64 %398
  %400 = load ptr, ptr %399, align 8, !tbaa !9
  %401 = getelementptr inbounds ptr, ptr %400, i64 2
  %402 = load ptr, ptr %401, align 8
  invoke void %402(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %49, ptr noundef nonnull align 8 dereferenceable(40) %399)
          to label %403 unwind label %413

403:                                              ; preds = %392
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %48, ptr noundef @.str.14, ptr noundef nonnull align 8 dereferenceable(32) %49)
          to label %404 unwind label %417

404:                                              ; preds = %403
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %47, ptr noundef nonnull align 8 dereferenceable(32) %48, ptr noundef @.str.18)
          to label %405 unwind label %421

405:                                              ; preds = %404
  call void @llvm.lifetime.start.p0(i64 32, ptr %50) #6
  call void @_ZN4Glip6CoreGL17getGLEnumNameSafeB5cxx11ERKj(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %50, ptr noundef nonnull align 4 dereferenceable(4) %42) #6
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_S9_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %46, ptr noundef nonnull align 8 dereferenceable(32) %47, ptr noundef nonnull align 8 dereferenceable(32) %50)
          to label %406 unwind label %425

406:                                              ; preds = %405
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %45, ptr noundef nonnull align 8 dereferenceable(32) %46, ptr noundef @.str.16)
          to label %407 unwind label %429

407:                                              ; preds = %406
  call void @llvm.lifetime.start.p0(i64 32, ptr %51) #6
  invoke void @_ZN4Glip6CoreGL21getGLErrorDescriptionB5cxx11ERKj(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %51, ptr noundef nonnull align 4 dereferenceable(4) %42)
          to label %408 unwind label %433

408:                                              ; preds = %407
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_S9_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %44, ptr noundef nonnull align 8 dereferenceable(32) %45, ptr noundef nonnull align 8 dereferenceable(32) %51)
          to label %409 unwind label %437

409:                                              ; preds = %408
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %43, ptr noundef nonnull align 8 dereferenceable(32) %44, ptr noundef @.str.19)
          to label %410 unwind label %441

410:                                              ; preds = %409
  call void @llvm.lifetime.start.p0(i64 1, ptr %53) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %53) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %52, ptr noundef @.str.1, ptr noundef nonnull align 1 dereferenceable(1) %53)
          to label %411 unwind label %445

411:                                              ; preds = %410
  call void @llvm.lifetime.start.p0(i64 4, ptr %54) #6
  store i32 1, ptr %54, align 4, !tbaa !11
  invoke void @_ZN4Glip9ExceptionC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES6_iRKNS0_4TypeE(ptr noundef nonnull align 8 dereferenceable(152) %395, ptr noundef nonnull align 8 dereferenceable(32) %43, ptr noundef %52, i32 noundef 642, ptr noundef nonnull align 4 dereferenceable(4) %54)
          to label %412 unwind label %449

412:                                              ; preds = %411
  store i1 false, ptr %55, align 1
  invoke void @__cxa_throw(ptr %395, ptr @_ZTIN4Glip9ExceptionE, ptr @_ZN4Glip9ExceptionD1Ev) #7
          to label %474 unwind label %449

413:                                              ; preds = %392
  %414 = landingpad { ptr, i32 }
          cleanup
  %415 = extractvalue { ptr, i32 } %414, 0
  store ptr %415, ptr %8, align 8
  %416 = extractvalue { ptr, i32 } %414, 1
  store i32 %416, ptr %9, align 4
  br label %461

417:                                              ; preds = %403
  %418 = landingpad { ptr, i32 }
          cleanup
  %419 = extractvalue { ptr, i32 } %418, 0
  store ptr %419, ptr %8, align 8
  %420 = extractvalue { ptr, i32 } %418, 1
  store i32 %420, ptr %9, align 4
  br label %460

421:                                              ; preds = %404
  %422 = landingpad { ptr, i32 }
          cleanup
  %423 = extractvalue { ptr, i32 } %422, 0
  store ptr %423, ptr %8, align 8
  %424 = extractvalue { ptr, i32 } %422, 1
  store i32 %424, ptr %9, align 4
  br label %459

425:                                              ; preds = %405
  %426 = landingpad { ptr, i32 }
          cleanup
  %427 = extractvalue { ptr, i32 } %426, 0
  store ptr %427, ptr %8, align 8
  %428 = extractvalue { ptr, i32 } %426, 1
  store i32 %428, ptr %9, align 4
  br label %458

429:                                              ; preds = %406
  %430 = landingpad { ptr, i32 }
          cleanup
  %431 = extractvalue { ptr, i32 } %430, 0
  store ptr %431, ptr %8, align 8
  %432 = extractvalue { ptr, i32 } %430, 1
  store i32 %432, ptr %9, align 4
  br label %457

433:                                              ; preds = %407
  %434 = landingpad { ptr, i32 }
          cleanup
  %435 = extractvalue { ptr, i32 } %434, 0
  store ptr %435, ptr %8, align 8
  %436 = extractvalue { ptr, i32 } %434, 1
  store i32 %436, ptr %9, align 4
  br label %456

437:                                              ; preds = %408
  %438 = landingpad { ptr, i32 }
          cleanup
  %439 = extractvalue { ptr, i32 } %438, 0
  store ptr %439, ptr %8, align 8
  %440 = extractvalue { ptr, i32 } %438, 1
  store i32 %440, ptr %9, align 4
  br label %455

441:                                              ; preds = %409
  %442 = landingpad { ptr, i32 }
          cleanup
  %443 = extractvalue { ptr, i32 } %442, 0
  store ptr %443, ptr %8, align 8
  %444 = extractvalue { ptr, i32 } %442, 1
  store i32 %444, ptr %9, align 4
  br label %454

445:                                              ; preds = %410
  %446 = landingpad { ptr, i32 }
          cleanup
  %447 = extractvalue { ptr, i32 } %446, 0
  store ptr %447, ptr %8, align 8
  %448 = extractvalue { ptr, i32 } %446, 1
  store i32 %448, ptr %9, align 4
  br label %453

449:                                              ; preds = %412, %411
  %450 = landingpad { ptr, i32 }
          cleanup
  %451 = extractvalue { ptr, i32 } %450, 0
  store ptr %451, ptr %8, align 8
  %452 = extractvalue { ptr, i32 } %450, 1
  store i32 %452, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %54) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %52) #6
  br label %453

453:                                              ; preds = %449, %445
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %53) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %53) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %43) #6
  br label %454

454:                                              ; preds = %453, %441
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %44) #6
  br label %455

455:                                              ; preds = %454, %437
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %51) #6
  br label %456

456:                                              ; preds = %455, %433
  call void @llvm.lifetime.end.p0(i64 32, ptr %51) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %45) #6
  br label %457

457:                                              ; preds = %456, %429
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %46) #6
  br label %458

458:                                              ; preds = %457, %425
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %50) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %50) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %47) #6
  br label %459

459:                                              ; preds = %458, %421
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %48) #6
  br label %460

460:                                              ; preds = %459, %417
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %49) #6
  br label %461

461:                                              ; preds = %460, %413
  call void @llvm.lifetime.end.p0(i64 32, ptr %49) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %48) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %47) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %46) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %45) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %44) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %43) #6
  %462 = load i1, ptr %55, align 1
  br i1 %462, label %463, label %464

463:                                              ; preds = %461
  call void @__cxa_free_exception(ptr %395) #6
  br label %464

464:                                              ; preds = %463, %461
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #6
  br label %469

465:                                              ; preds = %388
  %466 = getelementptr inbounds %"class.Glip::CorePipeline::Filter", ptr %56, i32 0, i32 4
  store i8 0, ptr %466, align 8, !tbaa !24
  br label %467

467:                                              ; preds = %465
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #6
  br label %468

468:                                              ; preds = %467, %383
  ret void

469:                                              ; preds = %464, %352, %273, %105
  %470 = load ptr, ptr %8, align 8
  %471 = load i32, ptr %9, align 4
  %472 = insertvalue { ptr, i32 } poison, ptr %470, 0
  %473 = insertvalue { ptr, i32 } %472, i32 %471, 1
  resume { ptr, i32 } %473

474:                                              ; preds = %412, %305, %226, %78
  unreachable
}

declare noundef i32 @_ZNK4Glip6CoreGL6HdlFBO18getAttachmentCountEv(ptr noundef nonnull align 8 dereferenceable(97)) #4

declare noundef zeroext i1 @_ZN4Glip6CoreGL6HdlFBO14hasDepthBufferEv(ptr noundef nonnull align 8 dereferenceable(97)) #4

declare void @_ZN4Glip6CoreGL6HdlFBO14addDepthBufferEv(ptr noundef nonnull align 8 dereferenceable(97)) #4

declare void @_ZN4Glip6CoreGL6HdlFBO14beginRenderingEib(ptr noundef nonnull align 8 dereferenceable(97), i32 noundef, i1 noundef zeroext) #4

declare void @glEnable(i32 noundef) #4

declare void @glDepthFunc(i32 noundef) #4

declare void @glDisable(i32 noundef) #4

declare void @glBlendFunc(i32 noundef, i32 noundef) #4

declare void @glClearColor(float noundef, float noundef, float noundef, float noundef) #4

declare void @glClear(i32 noundef) #4

declare void @_ZN4Glip6CoreGL10HdlTexture4bindEi(ptr noundef nonnull align 8 dereferenceable(57), i32 noundef) #4

declare void @glLoadIdentity() #4

declare void @_ZN4Glip6CoreGL10HdlProgram3useEv(ptr noundef nonnull align 8 dereferenceable(88)) #4

declare i32 @glGetError() #4

declare void @_ZN4Glip6CoreGL6HdlFBO12endRenderingEv(ptr noundef nonnull align 8 dereferenceable(97)) #4

; Function Attrs: nounwind
declare void @_ZN4Glip6CoreGL17getGLEnumNameSafeB5cxx11ERKj(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 4 dereferenceable(4)) #5

declare void @_ZN4Glip6CoreGL21getGLErrorDescriptionB5cxx11ERKj(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 4 dereferenceable(4)) #4

declare void @_ZN4Glip12CorePipeline16GeometryInstance4drawEv(ptr noundef nonnull align 4 dereferenceable(4)) #4

declare void @_ZN4Glip6CoreGL10HdlTexture6unbindEi(i32 noundef) #4

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

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

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

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


; 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.1 = external hidden unnamed_addr constant [86 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [75 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [14 x i8], align 1
@__glewBlendEquation = external local_unnamed_addr global ptr, align 8
@.str.14 = external hidden unnamed_addr constant [59 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [54 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [2 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(...)

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

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

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

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

declare void @__cxa_free_exception(ptr) local_unnamed_addr

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK4Glip12CorePipeline20AbstractFilterLayout17isClearingEnabledEv(ptr noundef nonnull align 8 dereferenceable(84)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK4Glip12CorePipeline20AbstractFilterLayout17isBlendingEnabledEv(ptr noundef nonnull align 8 dereferenceable(84)) local_unnamed_addr #2 align 2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK4Glip12CorePipeline20AbstractFilterLayout21isDepthTestingEnabledEv(ptr noundef nonnull align 8 dereferenceable(84)) local_unnamed_addr #2 align 2

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

declare noundef i32 @_ZNK4Glip12CorePipeline23AbstractComponentLayout15getNumInputPortEv(ptr noundef nonnull align 8 dereferenceable(88)) local_unnamed_addr #4

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

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

declare noundef i32 @_ZNK4Glip12CorePipeline23AbstractComponentLayout16getNumOutputPortEv(ptr noundef nonnull align 8 dereferenceable(88)) local_unnamed_addr #4

declare void @_ZN4Glip6CoreGL10HdlProgram11stopProgramEv() local_unnamed_addr #4

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4Glip12CorePipeline6Filter7processERNS_6CoreGL6HdlFBOE(ptr noundef nonnull align 8 dereferenceable(104) %0, ptr noundef nonnull align 8 dereferenceable(97) %1) local_unnamed_addr #3 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::__cxx11::basic_string", align 8
  %7 = alloca %"class.std::allocator", align 1
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca %"class.std::__cxx11::basic_string", align 8
  %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::__cxx11::basic_string", align 8
  %15 = alloca %"class.std::__cxx11::basic_string", align 8
  %16 = alloca %"class.std::__cxx11::basic_string", align 8
  %17 = alloca %"class.std::__cxx11::basic_string", align 8
  %18 = alloca %"class.std::__cxx11::basic_string", align 8
  %19 = alloca %"class.std::allocator", align 1
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca %"class.std::__cxx11::basic_string", align 8
  %23 = alloca %"class.std::__cxx11::basic_string", align 8
  %24 = alloca %"class.std::__cxx11::basic_string", align 8
  %25 = alloca %"class.std::__cxx11::basic_string", align 8
  %26 = alloca %"class.std::__cxx11::basic_string", align 8
  %27 = alloca %"class.std::__cxx11::basic_string", align 8
  %28 = alloca %"class.std::__cxx11::basic_string", align 8
  %29 = alloca %"class.std::__cxx11::basic_string", align 8
  %30 = alloca %"class.std::__cxx11::basic_string", align 8
  %31 = alloca %"class.std::allocator", align 1
  %32 = alloca i32, align 4
  %33 = alloca i32, align 4
  %34 = alloca %"class.std::__cxx11::basic_string", align 8
  %35 = alloca %"class.std::__cxx11::basic_string", align 8
  %36 = alloca %"class.std::__cxx11::basic_string", align 8
  %37 = alloca %"class.std::__cxx11::basic_string", align 8
  %38 = alloca %"class.std::__cxx11::basic_string", align 8
  %39 = alloca %"class.std::__cxx11::basic_string", align 8
  %40 = alloca %"class.std::__cxx11::basic_string", align 8
  %41 = alloca %"class.std::__cxx11::basic_string", align 8
  %42 = alloca %"class.std::__cxx11::basic_string", align 8
  %43 = alloca %"class.std::__cxx11::basic_string", align 8
  %44 = alloca %"class.std::allocator", align 1
  %45 = alloca i32, align 4
  %46 = tail call noundef i32 @_ZNK4Glip6CoreGL6HdlFBO18getAttachmentCountEv(ptr noundef nonnull align 8 dereferenceable(97) %1)
  %47 = load ptr, ptr %0, align 8, !tbaa !5
  %48 = getelementptr i8, ptr %47, i64 -32
  %49 = load i64, ptr %48, align 8
  %50 = getelementptr inbounds i8, ptr %0, i64 %49
  %51 = tail call noundef i32 @_ZNK4Glip12CorePipeline23AbstractComponentLayout16getNumOutputPortEv(ptr noundef nonnull align 8 dereferenceable(88) %50)
  %52 = icmp slt i32 %46, %51
  br i1 %52, label %53, label %78

53:                                               ; preds = %2
  %54 = tail call ptr @__cxa_allocate_exception(i64 152) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #6
  %55 = load ptr, ptr %0, align 8, !tbaa !5
  %56 = getelementptr i8, ptr %55, i64 -24
  %57 = load i64, ptr %56, align 8
  %58 = getelementptr inbounds i8, ptr %0, i64 %57
  %59 = load ptr, ptr %58, align 8, !tbaa !5
  %60 = getelementptr inbounds i8, ptr %59, i64 16
  %61 = load ptr, ptr %60, align 8
  invoke void %61(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %5, ptr noundef nonnull align 8 dereferenceable(40) %58)
          to label %62 unwind label %.thread

62:                                               ; preds = %53
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %4, ptr noundef nonnull @.str.12, ptr noundef nonnull align 8 dereferenceable(32) %5)
          to label %63 unwind label %.thread123

63:                                               ; preds = %62
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %3, ptr noundef nonnull align 8 dereferenceable(32) %4, ptr noundef nonnull @.str.13)
          to label %64 unwind label %69

64:                                               ; preds = %63
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %7) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull @.str.1, ptr noundef nonnull align 1 dereferenceable(1) %7)
          to label %65 unwind label %71

65:                                               ; preds = %64
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #6
  store i32 1, ptr %8, align 4, !tbaa !8
  invoke void @_ZN4Glip9ExceptionC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES6_iRKNS0_4TypeE(ptr noundef nonnull align 8 dereferenceable(152) %54, ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef nonnull %6, i32 noundef 534, ptr noundef nonnull align 4 dereferenceable(4) %8)
          to label %66 unwind label %73

66:                                               ; preds = %65
  invoke void @__cxa_throw(ptr nonnull %54, ptr nonnull @_ZTIN4Glip9ExceptionE, ptr nonnull @_ZN4Glip9ExceptionD1Ev) #7
          to label %348 unwind label %73

.thread:                                          ; preds = %53
  %67 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #6
  br label %77

.thread123:                                       ; preds = %62
  %68 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #6
  br label %77

69:                                               ; preds = %63
  %70 = landingpad { ptr, i32 }
          cleanup
  br label %76

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

73:                                               ; preds = %66, %65
  %.040 = phi i1 [ false, %66 ], [ true, %65 ]
  %74 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #6
  br label %75

75:                                               ; preds = %73, %71
  %.pn114 = phi { ptr, i32 } [ %74, %73 ], [ %72, %71 ]
  %.141 = phi i1 [ %.040, %73 ], [ true, %71 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #6
  br label %76

76:                                               ; preds = %69, %75
  %.pn114.pn = phi { ptr, i32 } [ %.pn114, %75 ], [ %70, %69 ]
  %.242 = phi i1 [ %.141, %75 ], [ true, %69 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #6
  br i1 %.242, label %77, label %347

77:                                               ; preds = %.thread123, %.thread, %76
  %.pn114.pn.pn.pn122 = phi { ptr, i32 } [ %67, %.thread ], [ %.pn114.pn, %76 ], [ %68, %.thread123 ]
  call void @__cxa_free_exception(ptr %54) #6
  br label %347

78:                                               ; preds = %2
  %79 = load ptr, ptr %0, align 8, !tbaa !5
  %80 = getelementptr i8, ptr %79, i64 -40
  %81 = load i64, ptr %80, align 8
  %82 = getelementptr inbounds i8, ptr %0, i64 %81
  %83 = tail call noundef zeroext i1 @_ZNK4Glip12CorePipeline20AbstractFilterLayout21isDepthTestingEnabledEv(ptr noundef nonnull align 8 dereferenceable(84) %82)
  br i1 %83, label %84, label %87

84:                                               ; preds = %78
  %85 = tail call noundef zeroext i1 @_ZN4Glip6CoreGL6HdlFBO14hasDepthBufferEv(ptr noundef nonnull align 8 dereferenceable(97) %1)
  br i1 %85, label %87, label %86

86:                                               ; preds = %84
  tail call void @_ZN4Glip6CoreGL6HdlFBO14addDepthBufferEv(ptr noundef nonnull align 8 dereferenceable(97) %1)
  br label %87

87:                                               ; preds = %86, %84, %78
  %88 = load ptr, ptr %0, align 8, !tbaa !5
  %89 = getelementptr i8, ptr %88, i64 -32
  %90 = load i64, ptr %89, align 8
  %91 = getelementptr inbounds i8, ptr %0, i64 %90
  %92 = tail call noundef i32 @_ZNK4Glip12CorePipeline23AbstractComponentLayout16getNumOutputPortEv(ptr noundef nonnull align 8 dereferenceable(88) %91)
  %93 = load ptr, ptr %0, align 8, !tbaa !5
  %94 = getelementptr i8, ptr %93, i64 -40
  %95 = load i64, ptr %94, align 8
  %96 = getelementptr inbounds i8, ptr %0, i64 %95
  %97 = tail call noundef zeroext i1 @_ZNK4Glip12CorePipeline20AbstractFilterLayout21isDepthTestingEnabledEv(ptr noundef nonnull align 8 dereferenceable(84) %96)
  tail call void @_ZN4Glip6CoreGL6HdlFBO14beginRenderingEib(ptr noundef nonnull align 8 dereferenceable(97) %1, i32 noundef %92, i1 noundef zeroext %97)
  %98 = load ptr, ptr %0, align 8, !tbaa !5
  %99 = getelementptr i8, ptr %98, i64 -40
  %100 = load i64, ptr %99, align 8
  %101 = getelementptr inbounds i8, ptr %0, i64 %100
  %102 = tail call noundef zeroext i1 @_ZNK4Glip12CorePipeline20AbstractFilterLayout21isDepthTestingEnabledEv(ptr noundef nonnull align 8 dereferenceable(84) %101)
  br i1 %102, label %103, label %110

103:                                              ; preds = %87
  tail call void @glEnable(i32 noundef 2929)
  %104 = load ptr, ptr %0, align 8, !tbaa !5
  %105 = getelementptr i8, ptr %104, i64 -40
  %106 = load i64, ptr %105, align 8
  %107 = getelementptr inbounds i8, ptr %0, i64 %106
  %108 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK4Glip12CorePipeline20AbstractFilterLayout23getDepthTestingFunctionEv(ptr noundef nonnull align 8 dereferenceable(84) %107)
  %109 = load i32, ptr %108, align 4, !tbaa !11
  tail call void @glDepthFunc(i32 noundef %109)
  br label %111

110:                                              ; preds = %87
  tail call void @glDisable(i32 noundef 2929)
  br label %111

111:                                              ; preds = %110, %103
  %112 = load ptr, ptr %0, align 8, !tbaa !5
  %113 = getelementptr i8, ptr %112, i64 -40
  %114 = load i64, ptr %113, align 8
  %115 = getelementptr inbounds i8, ptr %0, i64 %114
  %116 = tail call noundef zeroext i1 @_ZNK4Glip12CorePipeline20AbstractFilterLayout17isBlendingEnabledEv(ptr noundef nonnull align 8 dereferenceable(84) %115)
  br i1 %116, label %117, label %137

117:                                              ; preds = %111
  tail call void @glEnable(i32 noundef 3042)
  %118 = load ptr, ptr %0, align 8, !tbaa !5
  %119 = getelementptr i8, ptr %118, i64 -40
  %120 = load i64, ptr %119, align 8
  %121 = getelementptr inbounds i8, ptr %0, i64 %120
  %122 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK4Glip12CorePipeline20AbstractFilterLayout10getSFactorEv(ptr noundef nonnull align 8 dereferenceable(84) %121)
  %123 = load i32, ptr %122, align 4, !tbaa !11
  %124 = load ptr, ptr %0, align 8, !tbaa !5
  %125 = getelementptr i8, ptr %124, i64 -40
  %126 = load i64, ptr %125, align 8
  %127 = getelementptr inbounds i8, ptr %0, i64 %126
  %128 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK4Glip12CorePipeline20AbstractFilterLayout10getDFactorEv(ptr noundef nonnull align 8 dereferenceable(84) %127)
  %129 = load i32, ptr %128, align 4, !tbaa !11
  tail call void @glBlendFunc(i32 noundef %123, i32 noundef %129)
  %130 = load ptr, ptr @__glewBlendEquation, align 8, !tbaa !13
  %131 = load ptr, ptr %0, align 8, !tbaa !5
  %132 = getelementptr i8, ptr %131, i64 -40
  %133 = load i64, ptr %132, align 8
  %134 = getelementptr inbounds i8, ptr %0, i64 %133
  %135 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK4Glip12CorePipeline20AbstractFilterLayout19getBlendingEquationEv(ptr noundef nonnull align 8 dereferenceable(84) %134)
  %136 = load i32, ptr %135, align 4, !tbaa !11
  tail call void %130(i32 noundef %136)
  br label %138

137:                                              ; preds = %111
  tail call void @glDisable(i32 noundef 3042)
  br label %138

138:                                              ; preds = %137, %117
  %139 = load ptr, ptr %0, align 8, !tbaa !5
  %140 = getelementptr i8, ptr %139, i64 -40
  %141 = load i64, ptr %140, align 8
  %142 = getelementptr inbounds i8, ptr %0, i64 %141
  %143 = tail call noundef zeroext i1 @_ZNK4Glip12CorePipeline20AbstractFilterLayout17isClearingEnabledEv(ptr noundef nonnull align 8 dereferenceable(84) %142)
  br i1 %143, label %144, label %145

144:                                              ; preds = %138
  tail call void @glClearColor(float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00)
  tail call void @glClear(i32 noundef 16640)
  br label %145

145:                                              ; preds = %144, %138
  %146 = load ptr, ptr %0, align 8, !tbaa !5
  %147 = getelementptr i8, ptr %146, i64 -32
  %148 = load i64, ptr %147, align 8
  %149 = getelementptr inbounds i8, ptr %0, i64 %148
  %150 = tail call noundef i32 @_ZNK4Glip12CorePipeline23AbstractComponentLayout15getNumInputPortEv(ptr noundef nonnull align 8 dereferenceable(88) %149)
  %151 = icmp sgt i32 %150, 0
  br i1 %151, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %145
  %152 = getelementptr inbounds i8, ptr %0, i64 80
  br label %158

._crit_edge:                                      ; preds = %158, %145
  tail call void @glLoadIdentity()
  %153 = getelementptr inbounds i8, ptr %0, i64 56
  %154 = load ptr, ptr %153, align 8, !tbaa !15
  tail call void @_ZN4Glip6CoreGL10HdlProgram3useEv(ptr noundef nonnull align 8 dereferenceable(88) %154)
  %155 = getelementptr inbounds i8, ptr %0, i64 72
  %156 = load i8, ptr %155, align 8, !tbaa !22, !range !23, !noundef !24
  %157 = trunc nuw i8 %156 to i1
  br i1 %157, label %169, label %215

158:                                              ; preds = %.lr.ph, %158
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %158 ]
  %159 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPN4Glip6CoreGL10HdlTextureESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %152, i64 noundef %indvars.iv) #6
  %160 = load ptr, ptr %159, align 8, !tbaa !13
  %161 = trunc nuw nsw i64 %indvars.iv to i32
  tail call void @_ZN4Glip6CoreGL10HdlTexture4bindEi(ptr noundef nonnull align 8 dereferenceable(57) %160, i32 noundef %161)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %162 = load ptr, ptr %0, align 8, !tbaa !5
  %163 = getelementptr i8, ptr %162, i64 -32
  %164 = load i64, ptr %163, align 8
  %165 = getelementptr inbounds i8, ptr %0, i64 %164
  %166 = tail call noundef i32 @_ZNK4Glip12CorePipeline23AbstractComponentLayout15getNumInputPortEv(ptr noundef nonnull align 8 dereferenceable(88) %165)
  %167 = sext i32 %166 to i64
  %168 = icmp slt i64 %indvars.iv.next, %167
  br i1 %168, label %158, label %._crit_edge, !llvm.loop !25

169:                                              ; preds = %._crit_edge
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #6
  %170 = tail call i32 @glGetError()
  store i32 %170, ptr %9, align 4, !tbaa !11
  %.not = icmp eq i32 %170, 0
  br i1 %.not, label %214, label %171

171:                                              ; preds = %169
  tail call void @_ZN4Glip6CoreGL10HdlProgram11stopProgramEv()
  tail call void @_ZN4Glip6CoreGL6HdlFBO12endRenderingEv(ptr noundef nonnull align 8 dereferenceable(97) %1)
  store i8 0, ptr %155, align 8, !tbaa !22
  %172 = getelementptr inbounds i8, ptr %0, i64 73
  store i8 1, ptr %172, align 1, !tbaa !27
  %173 = tail call ptr @__cxa_allocate_exception(i64 152) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %10) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %11) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %12) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %13) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %14) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %15) #6
  %174 = load ptr, ptr %0, align 8, !tbaa !5
  %175 = getelementptr i8, ptr %174, i64 -24
  %176 = load i64, ptr %175, align 8
  %177 = getelementptr inbounds i8, ptr %0, i64 %176
  %178 = load ptr, ptr %177, align 8, !tbaa !5
  %179 = getelementptr inbounds i8, ptr %178, i64 16
  %180 = load ptr, ptr %179, align 8
  invoke void %180(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %15, ptr noundef nonnull align 8 dereferenceable(40) %177)
          to label %181 unwind label %.thread126

181:                                              ; preds = %171
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %14, ptr noundef nonnull @.str.14, ptr noundef nonnull align 8 dereferenceable(32) %15)
          to label %182 unwind label %.thread131

182:                                              ; preds = %181
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %13, ptr noundef nonnull align 8 dereferenceable(32) %14, ptr noundef nonnull @.str.15)
          to label %183 unwind label %192

183:                                              ; preds = %182
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %16) #6
  call void @_ZN4Glip6CoreGL17getGLEnumNameSafeB5cxx11ERKj(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %16, ptr noundef nonnull align 4 dereferenceable(4) %9) #6
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_S9_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %12, ptr noundef nonnull align 8 dereferenceable(32) %13, ptr noundef nonnull align 8 dereferenceable(32) %16)
          to label %184 unwind label %194

184:                                              ; preds = %183
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %11, ptr noundef nonnull align 8 dereferenceable(32) %12, ptr noundef nonnull @.str.16)
          to label %185 unwind label %196

185:                                              ; preds = %184
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %17) #6
  invoke void @_ZN4Glip6CoreGL21getGLErrorDescriptionB5cxx11ERKj(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %17, ptr noundef nonnull align 4 dereferenceable(4) %9)
          to label %186 unwind label %198

186:                                              ; preds = %185
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_S9_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %10, ptr noundef nonnull align 8 dereferenceable(32) %11, ptr noundef nonnull align 8 dereferenceable(32) %17)
          to label %187 unwind label %200

187:                                              ; preds = %186
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %19) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %18, ptr noundef nonnull @.str.1, ptr noundef nonnull align 1 dereferenceable(1) %19)
          to label %188 unwind label %202

188:                                              ; preds = %187
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %20) #6
  store i32 1, ptr %20, align 4, !tbaa !8
  invoke void @_ZN4Glip9ExceptionC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES6_iRKNS0_4TypeE(ptr noundef nonnull align 8 dereferenceable(152) %173, ptr noundef nonnull align 8 dereferenceable(32) %10, ptr noundef nonnull %18, i32 noundef 592, ptr noundef nonnull align 4 dereferenceable(4) %20)
          to label %189 unwind label %204

189:                                              ; preds = %188
  invoke void @__cxa_throw(ptr nonnull %173, ptr nonnull @_ZTIN4Glip9ExceptionE, ptr nonnull @_ZN4Glip9ExceptionD1Ev) #7
          to label %348 unwind label %204

.thread126:                                       ; preds = %171
  %190 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %15) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %14) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %13) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %11) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #6
  br label %212

.thread131:                                       ; preds = %181
  %191 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %15) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %14) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %13) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %11) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #6
  br label %212

192:                                              ; preds = %182
  %193 = landingpad { ptr, i32 }
          cleanup
  br label %211

194:                                              ; preds = %183
  %195 = landingpad { ptr, i32 }
          cleanup
  br label %210

196:                                              ; preds = %184
  %197 = landingpad { ptr, i32 }
          cleanup
  br label %209

198:                                              ; preds = %185
  %199 = landingpad { ptr, i32 }
          cleanup
  br label %208

200:                                              ; preds = %186
  %201 = landingpad { ptr, i32 }
          cleanup
  br label %207

202:                                              ; preds = %187
  %203 = landingpad { ptr, i32 }
          cleanup
  br label %206

204:                                              ; preds = %189, %188
  %.030 = phi i1 [ false, %189 ], [ true, %188 ]
  %205 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %20) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #6
  br label %206

206:                                              ; preds = %204, %202
  %.pn105 = phi { ptr, i32 } [ %205, %204 ], [ %203, %202 ]
  %.131 = phi i1 [ %.030, %204 ], [ true, %202 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %19) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #6
  br label %207

207:                                              ; preds = %206, %200
  %.pn105.pn = phi { ptr, i32 } [ %.pn105, %206 ], [ %201, %200 ]
  %.232 = phi i1 [ %.131, %206 ], [ true, %200 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #6
  br label %208

208:                                              ; preds = %207, %198
  %.pn105.pn.pn = phi { ptr, i32 } [ %.pn105.pn, %207 ], [ %199, %198 ]
  %.333 = phi i1 [ %.232, %207 ], [ true, %198 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %17) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #6
  br label %209

209:                                              ; preds = %208, %196
  %.pn105.pn.pn.pn = phi { ptr, i32 } [ %.pn105.pn.pn, %208 ], [ %197, %196 ]
  %.434 = phi i1 [ %.333, %208 ], [ true, %196 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #6
  br label %210

210:                                              ; preds = %209, %194
  %.pn105.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn105.pn.pn.pn, %209 ], [ %195, %194 ]
  %.535 = phi i1 [ %.434, %209 ], [ true, %194 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %16) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #6
  br label %211

211:                                              ; preds = %192, %210
  %.pn105.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn105.pn.pn.pn.pn, %210 ], [ %193, %192 ]
  %.636 = phi i1 [ %.535, %210 ], [ true, %192 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %15) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %14) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %13) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %11) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #6
  br i1 %.636, label %212, label %213

212:                                              ; preds = %.thread131, %.thread126, %211
  %.pn105.pn.pn.pn.pn.pn.pn.pn130 = phi { ptr, i32 } [ %190, %.thread126 ], [ %.pn105.pn.pn.pn.pn.pn, %211 ], [ %191, %.thread131 ]
  call void @__cxa_free_exception(ptr %173) #6
  br label %213

213:                                              ; preds = %212, %211
  %.pn105.pn.pn.pn.pn.pn.pn.pn129 = phi { ptr, i32 } [ %.pn105.pn.pn.pn.pn.pn.pn.pn130, %212 ], [ %.pn105.pn.pn.pn.pn.pn, %211 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #6
  br label %347

214:                                              ; preds = %169
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #6
  br label %215

215:                                              ; preds = %214, %._crit_edge
  %216 = getelementptr inbounds i8, ptr %0, i64 64
  %217 = load ptr, ptr %216, align 8, !tbaa !28
  tail call void @_ZN4Glip12CorePipeline16GeometryInstance4drawEv(ptr noundef nonnull align 4 dereferenceable(4) %217)
  %218 = load i8, ptr %155, align 8, !tbaa !22, !range !23, !noundef !24
  %219 = trunc nuw i8 %218 to i1
  br i1 %219, label %220, label %266

220:                                              ; preds = %215
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %21) #6
  %221 = tail call i32 @glGetError()
  store i32 %221, ptr %21, align 4, !tbaa !11
  %.not85 = icmp eq i32 %221, 0
  br i1 %.not85, label %265, label %222

222:                                              ; preds = %220
  tail call void @_ZN4Glip6CoreGL10HdlProgram11stopProgramEv()
  tail call void @_ZN4Glip6CoreGL6HdlFBO12endRenderingEv(ptr noundef nonnull align 8 dereferenceable(97) %1)
  store i8 0, ptr %155, align 8, !tbaa !22
  %223 = getelementptr inbounds i8, ptr %0, i64 73
  store i8 1, ptr %223, align 1, !tbaa !27
  %224 = tail call ptr @__cxa_allocate_exception(i64 152) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %22) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %23) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %24) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %25) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %26) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %27) #6
  %225 = load ptr, ptr %0, align 8, !tbaa !5
  %226 = getelementptr i8, ptr %225, i64 -24
  %227 = load i64, ptr %226, align 8
  %228 = getelementptr inbounds i8, ptr %0, i64 %227
  %229 = load ptr, ptr %228, align 8, !tbaa !5
  %230 = getelementptr inbounds i8, ptr %229, i64 16
  %231 = load ptr, ptr %230, align 8
  invoke void %231(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %27, ptr noundef nonnull align 8 dereferenceable(40) %228)
          to label %232 unwind label %.thread134

232:                                              ; preds = %222
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %26, ptr noundef nonnull @.str.14, ptr noundef nonnull align 8 dereferenceable(32) %27)
          to label %233 unwind label %.thread139

233:                                              ; preds = %232
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %25, ptr noundef nonnull align 8 dereferenceable(32) %26, ptr noundef nonnull @.str.17)
          to label %234 unwind label %243

234:                                              ; preds = %233
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %28) #6
  call void @_ZN4Glip6CoreGL17getGLEnumNameSafeB5cxx11ERKj(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %28, ptr noundef nonnull align 4 dereferenceable(4) %21) #6
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_S9_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %24, ptr noundef nonnull align 8 dereferenceable(32) %25, ptr noundef nonnull align 8 dereferenceable(32) %28)
          to label %235 unwind label %245

235:                                              ; preds = %234
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %23, ptr noundef nonnull align 8 dereferenceable(32) %24, ptr noundef nonnull @.str.16)
          to label %236 unwind label %247

236:                                              ; preds = %235
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %29) #6
  invoke void @_ZN4Glip6CoreGL21getGLErrorDescriptionB5cxx11ERKj(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %29, ptr noundef nonnull align 4 dereferenceable(4) %21)
          to label %237 unwind label %249

237:                                              ; preds = %236
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_S9_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %22, ptr noundef nonnull align 8 dereferenceable(32) %23, ptr noundef nonnull align 8 dereferenceable(32) %29)
          to label %238 unwind label %251

238:                                              ; preds = %237
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %31) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %31) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %30, ptr noundef nonnull @.str.1, ptr noundef nonnull align 1 dereferenceable(1) %31)
          to label %239 unwind label %253

239:                                              ; preds = %238
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %32) #6
  store i32 1, ptr %32, align 4, !tbaa !8
  invoke void @_ZN4Glip9ExceptionC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES6_iRKNS0_4TypeE(ptr noundef nonnull align 8 dereferenceable(152) %224, ptr noundef nonnull align 8 dereferenceable(32) %22, ptr noundef nonnull %30, i32 noundef 612, ptr noundef nonnull align 4 dereferenceable(4) %32)
          to label %240 unwind label %255

240:                                              ; preds = %239
  invoke void @__cxa_throw(ptr nonnull %224, ptr nonnull @_ZTIN4Glip9ExceptionE, ptr nonnull @_ZN4Glip9ExceptionD1Ev) #7
          to label %348 unwind label %255

.thread134:                                       ; preds = %222
  %241 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %27) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %26) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %25) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %24) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %23) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %22) #6
  br label %263

.thread139:                                       ; preds = %232
  %242 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %27) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %27) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %26) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %25) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %24) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %23) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %22) #6
  br label %263

243:                                              ; preds = %233
  %244 = landingpad { ptr, i32 }
          cleanup
  br label %262

245:                                              ; preds = %234
  %246 = landingpad { ptr, i32 }
          cleanup
  br label %261

247:                                              ; preds = %235
  %248 = landingpad { ptr, i32 }
          cleanup
  br label %260

249:                                              ; preds = %236
  %250 = landingpad { ptr, i32 }
          cleanup
  br label %259

251:                                              ; preds = %237
  %252 = landingpad { ptr, i32 }
          cleanup
  br label %258

253:                                              ; preds = %238
  %254 = landingpad { ptr, i32 }
          cleanup
  br label %257

255:                                              ; preds = %240, %239
  %.021 = phi i1 [ false, %240 ], [ true, %239 ]
  %256 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %32) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %30) #6
  br label %257

257:                                              ; preds = %255, %253
  %.pn96 = phi { ptr, i32 } [ %256, %255 ], [ %254, %253 ]
  %.122 = phi i1 [ %.021, %255 ], [ true, %253 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %31) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %31) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #6
  br label %258

258:                                              ; preds = %257, %251
  %.pn96.pn = phi { ptr, i32 } [ %.pn96, %257 ], [ %252, %251 ]
  %.223 = phi i1 [ %.122, %257 ], [ true, %251 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %29) #6
  br label %259

259:                                              ; preds = %258, %249
  %.pn96.pn.pn = phi { ptr, i32 } [ %.pn96.pn, %258 ], [ %250, %249 ]
  %.324 = phi i1 [ %.223, %258 ], [ true, %249 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %29) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %23) #6
  br label %260

260:                                              ; preds = %259, %247
  %.pn96.pn.pn.pn = phi { ptr, i32 } [ %.pn96.pn.pn, %259 ], [ %248, %247 ]
  %.425 = phi i1 [ %.324, %259 ], [ true, %247 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %24) #6
  br label %261

261:                                              ; preds = %260, %245
  %.pn96.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn96.pn.pn.pn, %260 ], [ %246, %245 ]
  %.526 = phi i1 [ %.425, %260 ], [ true, %245 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %28) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %28) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %25) #6
  br label %262

262:                                              ; preds = %243, %261
  %.pn96.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn96.pn.pn.pn.pn, %261 ], [ %244, %243 ]
  %.627 = phi i1 [ %.526, %261 ], [ true, %243 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %26) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %27) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %27) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %26) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %25) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %24) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %23) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %22) #6
  br i1 %.627, label %263, label %264

263:                                              ; preds = %.thread139, %.thread134, %262
  %.pn96.pn.pn.pn.pn.pn.pn.pn138 = phi { ptr, i32 } [ %241, %.thread134 ], [ %.pn96.pn.pn.pn.pn.pn, %262 ], [ %242, %.thread139 ]
  call void @__cxa_free_exception(ptr %224) #6
  br label %264

264:                                              ; preds = %263, %262
  %.pn96.pn.pn.pn.pn.pn.pn.pn137 = phi { ptr, i32 } [ %.pn96.pn.pn.pn.pn.pn.pn.pn138, %263 ], [ %.pn96.pn.pn.pn.pn.pn, %262 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %21) #6
  br label %347

265:                                              ; preds = %220
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %21) #6
  br label %266

266:                                              ; preds = %265, %215
  tail call void @_ZN4Glip6CoreGL10HdlProgram11stopProgramEv()
  %267 = load ptr, ptr %0, align 8, !tbaa !5
  %268 = getelementptr i8, ptr %267, i64 -40
  %269 = load i64, ptr %268, align 8
  %270 = getelementptr inbounds i8, ptr %0, i64 %269
  %271 = tail call noundef zeroext i1 @_ZNK4Glip12CorePipeline20AbstractFilterLayout21isDepthTestingEnabledEv(ptr noundef nonnull align 8 dereferenceable(84) %270)
  br i1 %271, label %272, label %273

272:                                              ; preds = %266
  tail call void @glDisable(i32 noundef 2929)
  br label %273

273:                                              ; preds = %272, %266
  %274 = load ptr, ptr %0, align 8, !tbaa !5
  %275 = getelementptr i8, ptr %274, i64 -40
  %276 = load i64, ptr %275, align 8
  %277 = getelementptr inbounds i8, ptr %0, i64 %276
  %278 = tail call noundef zeroext i1 @_ZNK4Glip12CorePipeline20AbstractFilterLayout17isBlendingEnabledEv(ptr noundef nonnull align 8 dereferenceable(84) %277)
  br i1 %278, label %279, label %280

279:                                              ; preds = %273
  tail call void @glDisable(i32 noundef 3042)
  br label %280

280:                                              ; preds = %279, %273
  %281 = load ptr, ptr %0, align 8, !tbaa !5
  %282 = getelementptr i8, ptr %281, i64 -32
  %283 = load i64, ptr %282, align 8
  %284 = getelementptr inbounds i8, ptr %0, i64 %283
  %285 = tail call noundef i32 @_ZNK4Glip12CorePipeline23AbstractComponentLayout15getNumInputPortEv(ptr noundef nonnull align 8 dereferenceable(88) %284)
  %286 = icmp sgt i32 %285, 0
  br i1 %286, label %.lr.ph153, label %._crit_edge154

._crit_edge154:                                   ; preds = %.lr.ph153, %280
  tail call void @_ZN4Glip6CoreGL6HdlFBO12endRenderingEv(ptr noundef nonnull align 8 dereferenceable(97) %1)
  %287 = load i8, ptr %155, align 8, !tbaa !22, !range !23, !noundef !24
  %288 = trunc nuw i8 %287 to i1
  br i1 %288, label %296, label %346

.lr.ph153:                                        ; preds = %280, %.lr.ph153
  %.020151 = phi i32 [ %289, %.lr.ph153 ], [ 0, %280 ]
  tail call void @_ZN4Glip6CoreGL10HdlTexture6unbindEi(i32 noundef %.020151)
  %289 = add nuw nsw i32 %.020151, 1
  %290 = load ptr, ptr %0, align 8, !tbaa !5
  %291 = getelementptr i8, ptr %290, i64 -32
  %292 = load i64, ptr %291, align 8
  %293 = getelementptr inbounds i8, ptr %0, i64 %292
  %294 = tail call noundef i32 @_ZNK4Glip12CorePipeline23AbstractComponentLayout15getNumInputPortEv(ptr noundef nonnull align 8 dereferenceable(88) %293)
  %295 = icmp slt i32 %289, %294
  br i1 %295, label %.lr.ph153, label %._crit_edge154, !llvm.loop !29

296:                                              ; preds = %._crit_edge154
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %33) #6
  %297 = tail call i32 @glGetError()
  store i32 %297, ptr %33, align 4, !tbaa !11
  %.not86 = icmp eq i32 %297, 0
  store i8 0, ptr %155, align 8, !tbaa !22
  br i1 %.not86, label %345, label %298

298:                                              ; preds = %296
  %299 = getelementptr inbounds i8, ptr %0, i64 73
  store i8 1, ptr %299, align 1, !tbaa !27
  %300 = tail call ptr @__cxa_allocate_exception(i64 152) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %34) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %35) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %36) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %37) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %38) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %39) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %40) #6
  %301 = load ptr, ptr %0, align 8, !tbaa !5
  %302 = getelementptr i8, ptr %301, i64 -24
  %303 = load i64, ptr %302, align 8
  %304 = getelementptr inbounds i8, ptr %0, i64 %303
  %305 = load ptr, ptr %304, align 8, !tbaa !5
  %306 = getelementptr inbounds i8, ptr %305, i64 16
  %307 = load ptr, ptr %306, align 8
  invoke void %307(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %40, ptr noundef nonnull align 8 dereferenceable(40) %304)
          to label %308 unwind label %.thread142

308:                                              ; preds = %298
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %39, ptr noundef nonnull @.str.14, ptr noundef nonnull align 8 dereferenceable(32) %40)
          to label %309 unwind label %.thread147

309:                                              ; preds = %308
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %38, ptr noundef nonnull align 8 dereferenceable(32) %39, ptr noundef nonnull @.str.18)
          to label %310 unwind label %320

310:                                              ; preds = %309
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %41) #6
  call void @_ZN4Glip6CoreGL17getGLEnumNameSafeB5cxx11ERKj(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %41, ptr noundef nonnull align 4 dereferenceable(4) %33) #6
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_S9_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %37, ptr noundef nonnull align 8 dereferenceable(32) %38, ptr noundef nonnull align 8 dereferenceable(32) %41)
          to label %311 unwind label %322

311:                                              ; preds = %310
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %36, ptr noundef nonnull align 8 dereferenceable(32) %37, ptr noundef nonnull @.str.16)
          to label %312 unwind label %324

312:                                              ; preds = %311
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %42) #6
  invoke void @_ZN4Glip6CoreGL21getGLErrorDescriptionB5cxx11ERKj(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %42, ptr noundef nonnull align 4 dereferenceable(4) %33)
          to label %313 unwind label %326

313:                                              ; preds = %312
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_S9_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %35, ptr noundef nonnull align 8 dereferenceable(32) %36, ptr noundef nonnull align 8 dereferenceable(32) %42)
          to label %314 unwind label %328

314:                                              ; preds = %313
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %34, ptr noundef nonnull align 8 dereferenceable(32) %35, ptr noundef nonnull @.str.19)
          to label %315 unwind label %330

315:                                              ; preds = %314
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %44) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %44) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %43, ptr noundef nonnull @.str.1, ptr noundef nonnull align 1 dereferenceable(1) %44)
          to label %316 unwind label %332

316:                                              ; preds = %315
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %45) #6
  store i32 1, ptr %45, align 4, !tbaa !8
  invoke void @_ZN4Glip9ExceptionC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES6_iRKNS0_4TypeE(ptr noundef nonnull align 8 dereferenceable(152) %300, ptr noundef nonnull align 8 dereferenceable(32) %34, ptr noundef nonnull %43, i32 noundef 642, ptr noundef nonnull align 4 dereferenceable(4) %45)
          to label %317 unwind label %334

317:                                              ; preds = %316
  invoke void @__cxa_throw(ptr nonnull %300, ptr nonnull @_ZTIN4Glip9ExceptionE, ptr nonnull @_ZN4Glip9ExceptionD1Ev) #7
          to label %348 unwind label %334

.thread142:                                       ; preds = %298
  %318 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %40) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %39) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %38) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %37) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %36) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %35) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %34) #6
  br label %343

.thread147:                                       ; preds = %308
  %319 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %40) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %40) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %39) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %38) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %37) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %36) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %35) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %34) #6
  br label %343

320:                                              ; preds = %309
  %321 = landingpad { ptr, i32 }
          cleanup
  br label %342

322:                                              ; preds = %310
  %323 = landingpad { ptr, i32 }
          cleanup
  br label %341

324:                                              ; preds = %311
  %325 = landingpad { ptr, i32 }
          cleanup
  br label %340

326:                                              ; preds = %312
  %327 = landingpad { ptr, i32 }
          cleanup
  br label %339

328:                                              ; preds = %313
  %329 = landingpad { ptr, i32 }
          cleanup
  br label %338

330:                                              ; preds = %314
  %331 = landingpad { ptr, i32 }
          cleanup
  br label %337

332:                                              ; preds = %315
  %333 = landingpad { ptr, i32 }
          cleanup
  br label %336

334:                                              ; preds = %317, %316
  %.0 = phi i1 [ false, %317 ], [ true, %316 ]
  %335 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %45) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %43) #6
  br label %336

336:                                              ; preds = %334, %332
  %.pn = phi { ptr, i32 } [ %335, %334 ], [ %333, %332 ]
  %.1 = phi i1 [ %.0, %334 ], [ true, %332 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %44) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %44) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %34) #6
  br label %337

337:                                              ; preds = %336, %330
  %.pn.pn = phi { ptr, i32 } [ %.pn, %336 ], [ %331, %330 ]
  %.2 = phi i1 [ %.1, %336 ], [ true, %330 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %35) #6
  br label %338

338:                                              ; preds = %337, %328
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %337 ], [ %329, %328 ]
  %.3 = phi i1 [ %.2, %337 ], [ true, %328 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %42) #6
  br label %339

339:                                              ; preds = %338, %326
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %338 ], [ %327, %326 ]
  %.4 = phi i1 [ %.3, %338 ], [ true, %326 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %42) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %36) #6
  br label %340

340:                                              ; preds = %339, %324
  %.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn, %339 ], [ %325, %324 ]
  %.5 = phi i1 [ %.4, %339 ], [ true, %324 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %37) #6
  br label %341

341:                                              ; preds = %340, %322
  %.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn, %340 ], [ %323, %322 ]
  %.6 = phi i1 [ %.5, %340 ], [ true, %322 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %41) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %41) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %38) #6
  br label %342

342:                                              ; preds = %320, %341
  %.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn.pn, %341 ], [ %321, %320 ]
  %.7 = phi i1 [ %.6, %341 ], [ true, %320 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %39) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %40) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %40) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %39) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %38) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %37) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %36) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %35) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %34) #6
  br i1 %.7, label %343, label %344

343:                                              ; preds = %.thread147, %.thread142, %342
  %.pn.pn.pn.pn.pn.pn.pn.pn.pn146 = phi { ptr, i32 } [ %318, %.thread142 ], [ %.pn.pn.pn.pn.pn.pn.pn, %342 ], [ %319, %.thread147 ]
  call void @__cxa_free_exception(ptr %300) #6
  br label %344

344:                                              ; preds = %343, %342
  %.pn.pn.pn.pn.pn.pn.pn.pn.pn145 = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn.pn.pn.pn.pn146, %343 ], [ %.pn.pn.pn.pn.pn.pn.pn, %342 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %33) #6
  br label %347

345:                                              ; preds = %296
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %33) #6
  br label %346

346:                                              ; preds = %345, %._crit_edge154
  ret void

347:                                              ; preds = %76, %77, %344, %264, %213
  %.pn114.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn114.pn.pn.pn122, %77 ], [ %.pn114.pn, %76 ], [ %.pn105.pn.pn.pn.pn.pn.pn.pn129, %213 ], [ %.pn96.pn.pn.pn.pn.pn.pn.pn137, %264 ], [ %.pn.pn.pn.pn.pn.pn.pn.pn.pn145, %344 ]
  resume { ptr, i32 } %.pn114.pn.pn.pn.pn

348:                                              ; preds = %317, %240, %189, %66
  unreachable
}

declare noundef i32 @_ZNK4Glip6CoreGL6HdlFBO18getAttachmentCountEv(ptr noundef nonnull align 8 dereferenceable(97)) local_unnamed_addr #4

declare noundef zeroext i1 @_ZN4Glip6CoreGL6HdlFBO14hasDepthBufferEv(ptr noundef nonnull align 8 dereferenceable(97)) local_unnamed_addr #4

declare void @_ZN4Glip6CoreGL6HdlFBO14addDepthBufferEv(ptr noundef nonnull align 8 dereferenceable(97)) local_unnamed_addr #4

declare void @_ZN4Glip6CoreGL6HdlFBO14beginRenderingEib(ptr noundef nonnull align 8 dereferenceable(97), i32 noundef, i1 noundef zeroext) local_unnamed_addr #4

declare void @glEnable(i32 noundef) local_unnamed_addr #4

declare void @glDepthFunc(i32 noundef) local_unnamed_addr #4

declare void @glDisable(i32 noundef) local_unnamed_addr #4

declare void @glBlendFunc(i32 noundef, i32 noundef) local_unnamed_addr #4

declare void @glClearColor(float noundef, float noundef, float noundef, float noundef) local_unnamed_addr #4

declare void @glClear(i32 noundef) local_unnamed_addr #4

declare void @_ZN4Glip6CoreGL10HdlTexture4bindEi(ptr noundef nonnull align 8 dereferenceable(57), i32 noundef) local_unnamed_addr #4

declare void @glLoadIdentity() local_unnamed_addr #4

declare void @_ZN4Glip6CoreGL10HdlProgram3useEv(ptr noundef nonnull align 8 dereferenceable(88)) local_unnamed_addr #4

declare i32 @glGetError() local_unnamed_addr #4

declare void @_ZN4Glip6CoreGL6HdlFBO12endRenderingEv(ptr noundef nonnull align 8 dereferenceable(97)) local_unnamed_addr #4

; Function Attrs: nounwind
declare void @_ZN4Glip6CoreGL17getGLEnumNameSafeB5cxx11ERKj(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #5

declare void @_ZN4Glip6CoreGL21getGLErrorDescriptionB5cxx11ERKj(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #4

declare void @_ZN4Glip12CorePipeline16GeometryInstance4drawEv(ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #4

declare void @_ZN4Glip6CoreGL10HdlTexture6unbindEi(i32 noundef) local_unnamed_addr #4

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

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

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

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


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