; LLVM IR from hbatagelo/abcg :: abcg (abcgOpenGLShader)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<abcg::ShaderSource, std::allocator<abcg::ShaderSource>>::_Vector_impl" }
%"struct.std::_Vector_base<abcg::ShaderSource, std::allocator<abcg::ShaderSource>>::_Vector_impl" = type { %"struct.std::_Vector_base<abcg::ShaderSource, std::allocator<abcg::ShaderSource>>::_Vector_impl_data" }
%"struct.std::_Vector_base<abcg::ShaderSource, std::allocator<abcg::ShaderSource>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"struct.abcg::ShaderSource" = type <{ %"class.std::__cxx11::basic_string", i32, [4 x i8] }>
%"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::basic_string_view" = type { i64, ptr }
%"class.std::vector.3" = type { %"struct.std::_Vector_base.4" }
%"struct.std::_Vector_base.4" = type { %"struct.std::_Vector_base<abcg::OpenGLShader, std::allocator<abcg::OpenGLShader>>::_Vector_impl" }
%"struct.std::_Vector_base<abcg::OpenGLShader, std::allocator<abcg::OpenGLShader>>::_Vector_impl" = type { %"struct.std::_Vector_base<abcg::OpenGLShader, std::allocator<abcg::OpenGLShader>>::_Vector_impl_data" }
%"struct.std::_Vector_base<abcg::OpenGLShader, std::allocator<abcg::OpenGLShader>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator.8" = type { ptr }
%"struct.abcg::OpenGLShader" = type { i32, i32 }
%"struct.std::experimental::fundamentals_v2::source_location" = type { ptr, ptr, i32, i32 }
%"class.__gnu_cxx::__normal_iterator.9" = type { ptr }
%"class.fmt::v10::basic_format_string" = type { %"class.fmt::v10::basic_string_view" }
%"class.fmt::v10::basic_string_view" = type { ptr, i64 }

@__glewCreateProgram = external global ptr, align 8
@.str = external hidden unnamed_addr constant [25 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [74 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [20 x i8], align 1
@_ZTIN4abcg12RuntimeErrorE = external dso_local constant { ptr, ptr, ptr }, align 8
@__glewAttachShader = external global ptr, align 8
@__glewLinkProgram = external global ptr, align 8
@__glewDetachShader = external global ptr, align 8
@__glewDeleteShader = external global ptr, align 8
@__glewGetProgramiv = external global ptr, align 8
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@__glewDeleteProgram = external global ptr, align 8
@.str.4 = external hidden unnamed_addr constant [23 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN4abcg19createOpenGLProgramERKSt6vectorINS_12ShaderSourceESaIS1_EEb(ptr noundef nonnull align 8 dereferenceable(24) %0, i1 noundef zeroext %1) #0 personality ptr @__gxx_personality_v0 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca i8, align 1
  %6 = alloca %"class.std::vector", align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %11 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %12 = alloca ptr, align 8
  %13 = alloca %"struct.abcg::ShaderSource", align 8
  %14 = alloca %"class.std::basic_string_view", align 8
  %15 = alloca %"class.std::vector.3", align 8
  %16 = alloca ptr, align 8
  %17 = alloca %"class.__gnu_cxx::__normal_iterator.8", align 8
  %18 = alloca %"class.__gnu_cxx::__normal_iterator.8", align 8
  %19 = alloca ptr, align 8
  %20 = alloca %"struct.abcg::OpenGLShader", align 4
  %21 = alloca %"class.std::basic_string_view", align 8
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca %"class.std::basic_string_view", align 8
  %25 = alloca %"struct.std::experimental::fundamentals_v2::source_location", align 8
  %26 = alloca i1, align 1
  %27 = alloca ptr, align 8
  %28 = alloca %"class.__gnu_cxx::__normal_iterator.9", align 8
  %29 = alloca %"class.__gnu_cxx::__normal_iterator.9", align 8
  %30 = alloca ptr, align 8
  %31 = alloca ptr, align 8
  %32 = alloca %"class.__gnu_cxx::__normal_iterator.9", align 8
  %33 = alloca %"class.__gnu_cxx::__normal_iterator.9", align 8
  %34 = alloca ptr, align 8
  %35 = alloca i32, align 4
  %36 = alloca %"class.fmt::v10::basic_format_string", align 8
  %37 = alloca %"class.std::basic_string_view", align 8
  %38 = alloca %"struct.std::experimental::fundamentals_v2::source_location", align 8
  %39 = alloca i1, align 1
  store ptr %0, ptr %4, align 8, !tbaa !5
  %40 = zext i1 %1 to i8
  store i8 %40, ptr %5, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 24, ptr %6) #6
  call void @_ZNSt6vectorIN4abcg12ShaderSourceESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #6
  %41 = load ptr, ptr %4, align 8, !tbaa !5
  %42 = call noundef i64 @_ZNKSt6vectorIN4abcg12ShaderSourceESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %41) #6
  invoke void @_ZNSt6vectorIN4abcg12ShaderSourceESaIS1_EE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %42)
          to label %43 unwind label %54

43:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  %44 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %44, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  %45 = load ptr, ptr %9, align 8, !tbaa !5
  %46 = call ptr @_ZNKSt6vectorIN4abcg12ShaderSourceESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %45) #6
  %47 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %10, i32 0, i32 0
  store ptr %46, ptr %47, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  %48 = load ptr, ptr %9, align 8, !tbaa !5
  %49 = call ptr @_ZNKSt6vectorIN4abcg12ShaderSourceESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %48) #6
  %50 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %11, i32 0, i32 0
  store ptr %49, ptr %50, align 8
  br label %51

51:                                               ; preds = %78, %43
  %52 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKN4abcg12ShaderSourceESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %11) #6
  br i1 %52, label %58, label %53

53:                                               ; preds = %51
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  br label %89

54:                                               ; preds = %2
  %55 = landingpad { ptr, i32 }
          cleanup
  %56 = extractvalue { ptr, i32 } %55, 0
  store ptr %56, ptr %7, align 8
  %57 = extractvalue { ptr, i32 } %55, 1
  store i32 %57, ptr %8, align 4
  br label %274

58:                                               ; preds = %51
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %59 = call noundef nonnull align 8 dereferenceable(36) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN4abcg12ShaderSourceESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #6
  store ptr %59, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 40, ptr %13) #6
  %60 = getelementptr inbounds %"struct.abcg::ShaderSource", ptr %13, i32 0, i32 0
  %61 = load ptr, ptr %12, align 8, !tbaa !5
  %62 = getelementptr inbounds %"struct.abcg::ShaderSource", ptr %61, i32 0, i32 0
  %63 = call { i64, ptr } @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEcvSt17basic_string_viewIcS2_EEv(ptr noundef nonnull align 8 dereferenceable(32) %62) #6
  %64 = getelementptr inbounds { i64, ptr }, ptr %14, i32 0, i32 0
  %65 = extractvalue { i64, ptr } %63, 0
  store i64 %65, ptr %64, align 8
  %66 = getelementptr inbounds { i64, ptr }, ptr %14, i32 0, i32 1
  %67 = extractvalue { i64, ptr } %63, 1
  store ptr %67, ptr %66, align 8
  %68 = getelementptr inbounds { i64, ptr }, ptr %14, i32 0, i32 0
  %69 = load i64, ptr %68, align 8
  %70 = getelementptr inbounds { i64, ptr }, ptr %14, i32 0, i32 1
  %71 = load ptr, ptr %70, align 8
  invoke void @_ZN12_GLOBAL__N_18toSourceB5cxx11ESt17basic_string_viewIcSt11char_traitsIcEE(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %60, i64 %69, ptr %71)
          to label %72 unwind label %80

72:                                               ; preds = %58
  %73 = getelementptr inbounds %"struct.abcg::ShaderSource", ptr %13, i32 0, i32 1
  %74 = load ptr, ptr %12, align 8, !tbaa !5
  %75 = getelementptr inbounds %"struct.abcg::ShaderSource", ptr %74, i32 0, i32 1
  %76 = load i32, ptr %75, align 8, !tbaa !11
  store i32 %76, ptr %73, align 8, !tbaa !11
  invoke void @_ZNSt6vectorIN4abcg12ShaderSourceESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 8 dereferenceable(36) %13)
          to label %77 unwind label %84

77:                                               ; preds = %72
  call void @_ZN4abcg12ShaderSourceD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %13) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  br label %78

78:                                               ; preds = %77
  %79 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKN4abcg12ShaderSourceESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #6
  br label %51

80:                                               ; preds = %58
  %81 = landingpad { ptr, i32 }
          cleanup
  %82 = extractvalue { ptr, i32 } %81, 0
  store ptr %82, ptr %7, align 8
  %83 = extractvalue { ptr, i32 } %81, 1
  store i32 %83, ptr %8, align 4
  br label %88

84:                                               ; preds = %72
  %85 = landingpad { ptr, i32 }
          cleanup
  %86 = extractvalue { ptr, i32 } %85, 0
  store ptr %86, ptr %7, align 8
  %87 = extractvalue { ptr, i32 } %85, 1
  store i32 %87, ptr %8, align 4
  call void @_ZN4abcg12ShaderSourceD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %13) #6
  br label %88

88:                                               ; preds = %84, %80
  call void @llvm.lifetime.end.p0(i64 40, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  br label %274

89:                                               ; preds = %53
  call void @llvm.lifetime.start.p0(i64 24, ptr %15) #6
  call void @_ZNSt6vectorIN4abcg12OpenGLShaderESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #6
  %90 = call noundef i64 @_ZNKSt6vectorIN4abcg12ShaderSourceESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #6
  invoke void @_ZNSt6vectorIN4abcg12OpenGLShaderESaIS1_EE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %90)
          to label %91 unwind label %101

91:                                               ; preds = %89
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  store ptr %6, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  %92 = load ptr, ptr %16, align 8, !tbaa !5
  %93 = call ptr @_ZNSt6vectorIN4abcg12ShaderSourceESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %92) #6
  %94 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.8", ptr %17, i32 0, i32 0
  store ptr %93, ptr %94, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  %95 = load ptr, ptr %16, align 8, !tbaa !5
  %96 = call ptr @_ZNSt6vectorIN4abcg12ShaderSourceESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %95) #6
  %97 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.8", ptr %18, i32 0, i32 0
  store ptr %96, ptr %97, align 8
  br label %98

98:                                               ; preds = %126, %91
  %99 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN4abcg12ShaderSourceESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull align 8 dereferenceable(8) %18) #6
  br i1 %99, label %105, label %100

100:                                              ; preds = %98
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  br label %132

101:                                              ; preds = %132, %89
  %102 = landingpad { ptr, i32 }
          cleanup
  %103 = extractvalue { ptr, i32 } %102, 0
  store ptr %103, ptr %7, align 8
  %104 = extractvalue { ptr, i32 } %102, 1
  store i32 %104, ptr %8, align 4
  br label %273

105:                                              ; preds = %98
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #6
  %106 = call noundef nonnull align 8 dereferenceable(36) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN4abcg12ShaderSourceESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %17) #6
  store ptr %106, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #6
  %107 = load ptr, ptr %19, align 8, !tbaa !5
  %108 = getelementptr inbounds %"struct.abcg::ShaderSource", ptr %107, i32 0, i32 0
  %109 = call { i64, ptr } @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEcvSt17basic_string_viewIcS2_EEv(ptr noundef nonnull align 8 dereferenceable(32) %108) #6
  %110 = getelementptr inbounds { i64, ptr }, ptr %21, i32 0, i32 0
  %111 = extractvalue { i64, ptr } %109, 0
  store i64 %111, ptr %110, align 8
  %112 = getelementptr inbounds { i64, ptr }, ptr %21, i32 0, i32 1
  %113 = extractvalue { i64, ptr } %109, 1
  store ptr %113, ptr %112, align 8
  %114 = load ptr, ptr %19, align 8, !tbaa !5
  %115 = getelementptr inbounds %"struct.abcg::ShaderSource", ptr %114, i32 0, i32 1
  %116 = load i32, ptr %115, align 8, !tbaa !11
  %117 = invoke noundef i32 @_ZN12_GLOBAL__N_122abcgStageToOpenGLStageEN4abcg11ShaderStageE(i32 noundef %116)
          to label %118 unwind label %128

118:                                              ; preds = %105
  %119 = getelementptr inbounds { i64, ptr }, ptr %21, i32 0, i32 0
  %120 = load i64, ptr %119, align 8
  %121 = getelementptr inbounds { i64, ptr }, ptr %21, i32 0, i32 1
  %122 = load ptr, ptr %121, align 8
  %123 = invoke i64 @_ZN12_GLOBAL__N_113compileHelperESt17basic_string_viewIcSt11char_traitsIcEEj(i64 %120, ptr %122, i32 noundef %117)
          to label %124 unwind label %128

124:                                              ; preds = %118
  store i64 %123, ptr %20, align 4
  invoke void @_ZNSt6vectorIN4abcg12OpenGLShaderESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %15, ptr noundef nonnull align 4 dereferenceable(8) %20)
          to label %125 unwind label %128

125:                                              ; preds = %124
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  br label %126

126:                                              ; preds = %125
  %127 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPN4abcg12ShaderSourceESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %17) #6
  br label %98

128:                                              ; preds = %124, %118, %105
  %129 = landingpad { ptr, i32 }
          cleanup
  %130 = extractvalue { ptr, i32 } %129, 0
  store ptr %130, ptr %7, align 8
  %131 = extractvalue { ptr, i32 } %129, 1
  store i32 %131, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  br label %273

132:                                              ; preds = %100
  %133 = load i8, ptr %5, align 1, !tbaa !9, !range !17, !noundef !18
  %134 = trunc i8 %133 to i1
  %135 = invoke noundef zeroext i1 @_ZN4abcg24checkOpenGLShaderCompileERKSt6vectorINS_12OpenGLShaderESaIS1_EEb(ptr noundef nonnull align 8 dereferenceable(24) %15, i1 noundef zeroext %134)
          to label %136 unwind label %101

136:                                              ; preds = %132
  br i1 %135, label %138, label %137

137:                                              ; preds = %136
  store i32 0, ptr %3, align 4
  store i32 1, ptr %22, align 4
  br label %271

138:                                              ; preds = %136
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #6
  %139 = load ptr, ptr @__glewCreateProgram, align 8, !tbaa !5
  %140 = invoke i32 %139()
          to label %141 unwind label %155

141:                                              ; preds = %138
  store i32 %140, ptr %23, align 4, !tbaa !19
  %142 = load i32, ptr %23, align 4, !tbaa !19
  %143 = icmp eq i32 %142, 0
  br i1 %143, label %144, label %167

144:                                              ; preds = %141
  invoke void @_ZN12_GLOBAL__N_113deleteShadersERKSt6vectorIN4abcg12OpenGLShaderESaIS2_EE(ptr noundef nonnull align 8 dereferenceable(24) %15)
          to label %145 unwind label %155

145:                                              ; preds = %144
  %146 = load i8, ptr %5, align 1, !tbaa !9, !range !17, !noundef !18
  %147 = trunc i8 %146 to i1
  br i1 %147, label %148, label %166

148:                                              ; preds = %145
  store i1 true, ptr %26, align 1
  %149 = call ptr @__cxa_allocate_exception(i64 40) #6
  call void @_ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %24, ptr noundef @.str) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr %25) #6
  call void @_ZNSt12experimental15fundamentals_v215source_location7currentEPKcS3_ii(ptr dead_on_unwind writable sret(%"struct.std::experimental::fundamentals_v2::source_location") align 8 %25, ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 195, i32 noundef 0) #6
  %150 = getelementptr inbounds { i64, ptr }, ptr %24, i32 0, i32 0
  %151 = load i64, ptr %150, align 8
  %152 = getelementptr inbounds { i64, ptr }, ptr %24, i32 0, i32 1
  %153 = load ptr, ptr %152, align 8
  invoke void @_ZN4abcg12RuntimeErrorC1ESt17basic_string_viewIcSt11char_traitsIcEERKNSt12experimental15fundamentals_v215source_locationE(ptr noundef nonnull align 8 dereferenceable(40) %149, i64 %151, ptr %153, ptr noundef nonnull align 8 dereferenceable(24) %25)
          to label %154 unwind label %159

154:                                              ; preds = %148
  store i1 false, ptr %26, align 1
  invoke void @__cxa_throw(ptr %149, ptr @_ZTIN4abcg12RuntimeErrorE, ptr @_ZN4abcg9ExceptionD2Ev) #7
          to label %280 unwind label %159

155:                                              ; preds = %191, %144, %138
  %156 = landingpad { ptr, i32 }
          cleanup
  %157 = extractvalue { ptr, i32 } %156, 0
  store ptr %157, ptr %7, align 8
  %158 = extractvalue { ptr, i32 } %156, 1
  store i32 %158, ptr %8, align 4
  br label %270

159:                                              ; preds = %154, %148
  %160 = landingpad { ptr, i32 }
          cleanup
  %161 = extractvalue { ptr, i32 } %160, 0
  store ptr %161, ptr %7, align 8
  %162 = extractvalue { ptr, i32 } %160, 1
  store i32 %162, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 24, ptr %25) #6
  %163 = load i1, ptr %26, align 1
  br i1 %163, label %164, label %165

164:                                              ; preds = %159
  call void @__cxa_free_exception(ptr %149) #6
  br label %165

165:                                              ; preds = %164, %159
  br label %270

166:                                              ; preds = %145
  store i32 0, ptr %3, align 4
  store i32 1, ptr %22, align 4
  br label %269

167:                                              ; preds = %141
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #6
  store ptr %15, ptr %27, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #6
  %168 = load ptr, ptr %27, align 8, !tbaa !5
  %169 = call ptr @_ZNSt6vectorIN4abcg12OpenGLShaderESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %168) #6
  %170 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.9", ptr %28, i32 0, i32 0
  store ptr %169, ptr %170, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #6
  %171 = load ptr, ptr %27, align 8, !tbaa !5
  %172 = call ptr @_ZNSt6vectorIN4abcg12OpenGLShaderESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %171) #6
  %173 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.9", ptr %29, i32 0, i32 0
  store ptr %172, ptr %173, align 8
  br label %174

174:                                              ; preds = %185, %167
  %175 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN4abcg12OpenGLShaderESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %28, ptr noundef nonnull align 8 dereferenceable(8) %29) #6
  br i1 %175, label %177, label %176

176:                                              ; preds = %174
  store i32 6, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #6
  br label %191

177:                                              ; preds = %174
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #6
  %178 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN4abcg12OpenGLShaderESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %28) #6
  store ptr %178, ptr %30, align 8, !tbaa !5
  %179 = load ptr, ptr @__glewAttachShader, align 8, !tbaa !5
  %180 = load i32, ptr %23, align 4, !tbaa !19
  %181 = load ptr, ptr %30, align 8, !tbaa !5
  %182 = getelementptr inbounds %"struct.abcg::OpenGLShader", ptr %181, i32 0, i32 0
  %183 = load i32, ptr %182, align 4, !tbaa !21
  invoke void %179(i32 noundef %180, i32 noundef %183)
          to label %184 unwind label %187

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

185:                                              ; preds = %184
  %186 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPN4abcg12OpenGLShaderESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %28) #6
  br label %174

187:                                              ; preds = %177
  %188 = landingpad { ptr, i32 }
          cleanup
  %189 = extractvalue { ptr, i32 } %188, 0
  store ptr %189, ptr %7, align 8
  %190 = extractvalue { ptr, i32 } %188, 1
  store i32 %190, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #6
  br label %270

191:                                              ; preds = %176
  %192 = load ptr, ptr @__glewLinkProgram, align 8, !tbaa !5
  %193 = load i32, ptr %23, align 4, !tbaa !19
  invoke void %192(i32 noundef %193)
          to label %194 unwind label %155

194:                                              ; preds = %191
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #6
  store ptr %15, ptr %31, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #6
  %195 = load ptr, ptr %31, align 8, !tbaa !5
  %196 = call ptr @_ZNSt6vectorIN4abcg12OpenGLShaderESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %195) #6
  %197 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.9", ptr %32, i32 0, i32 0
  store ptr %196, ptr %197, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #6
  %198 = load ptr, ptr %31, align 8, !tbaa !5
  %199 = call ptr @_ZNSt6vectorIN4abcg12OpenGLShaderESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %198) #6
  %200 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.9", ptr %33, i32 0, i32 0
  store ptr %199, ptr %200, align 8
  br label %201

201:                                              ; preds = %217, %194
  %202 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN4abcg12OpenGLShaderESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %32, ptr noundef nonnull align 8 dereferenceable(8) %33) #6
  br i1 %202, label %204, label %203

203:                                              ; preds = %201
  store i32 8, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #6
  br label %223

204:                                              ; preds = %201
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #6
  %205 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN4abcg12OpenGLShaderESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %32) #6
  store ptr %205, ptr %34, align 8, !tbaa !5
  %206 = load ptr, ptr @__glewDetachShader, align 8, !tbaa !5
  %207 = load i32, ptr %23, align 4, !tbaa !19
  %208 = load ptr, ptr %34, align 8, !tbaa !5
  %209 = getelementptr inbounds %"struct.abcg::OpenGLShader", ptr %208, i32 0, i32 0
  %210 = load i32, ptr %209, align 4, !tbaa !21
  invoke void %206(i32 noundef %207, i32 noundef %210)
          to label %211 unwind label %219

211:                                              ; preds = %204
  %212 = load ptr, ptr @__glewDeleteShader, align 8, !tbaa !5
  %213 = load ptr, ptr %34, align 8, !tbaa !5
  %214 = getelementptr inbounds %"struct.abcg::OpenGLShader", ptr %213, i32 0, i32 0
  %215 = load i32, ptr %214, align 4, !tbaa !21
  invoke void %212(i32 noundef %215)
          to label %216 unwind label %219

216:                                              ; preds = %211
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #6
  br label %217

217:                                              ; preds = %216
  %218 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPN4abcg12OpenGLShaderESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %32) #6
  br label %201

219:                                              ; preds = %211, %204
  %220 = landingpad { ptr, i32 }
          cleanup
  %221 = extractvalue { ptr, i32 } %220, 0
  store ptr %221, ptr %7, align 8
  %222 = extractvalue { ptr, i32 } %220, 1
  store i32 %222, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #6
  br label %270

223:                                              ; preds = %203
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #6
  store i32 0, ptr %35, align 4, !tbaa !19
  %224 = load ptr, ptr @__glewGetProgramiv, align 8, !tbaa !5
  %225 = load i32, ptr %23, align 4, !tbaa !19
  invoke void %224(i32 noundef %225, i32 noundef 35714, ptr noundef %35)
          to label %226 unwind label %250

226:                                              ; preds = %223
  %227 = load i32, ptr %35, align 4, !tbaa !19
  %228 = icmp eq i32 %227, 0
  br i1 %228, label %229, label %265

229:                                              ; preds = %226
  %230 = load i8, ptr %5, align 1, !tbaa !9, !range !17, !noundef !18
  %231 = trunc i8 %230 to i1
  br i1 %231, label %232, label %261

232:                                              ; preds = %229
  invoke void @_ZN3fmt3v1019basic_format_stringIcJEEC2IA2_cTnNSt9enable_ifIXsr3std14is_convertibleIRKT_NS0_17basic_string_viewIcEEEE5valueEiE4typeELi0EEES8_(ptr noundef nonnull align 8 dereferenceable(16) %36, ptr noundef nonnull align 1 dereferenceable(2) @.str.3)
          to label %233 unwind label %250

233:                                              ; preds = %232
  %234 = getelementptr inbounds { ptr, i64 }, ptr %36, i32 0, i32 0
  %235 = load ptr, ptr %234, align 8
  %236 = getelementptr inbounds { ptr, i64 }, ptr %36, i32 0, i32 1
  %237 = load i64, ptr %236, align 8
  invoke void @_ZN3fmt3v105printIJEEEvNS0_19basic_format_stringIcJDpNS0_13type_identityIT_E4typeEEEEDpOS4_(ptr %235, i64 %237)
          to label %238 unwind label %250

238:                                              ; preds = %233
  %239 = load i32, ptr %23, align 4, !tbaa !19
  invoke void @_ZN12_GLOBAL__N_119printProgramInfoLogEj(i32 noundef %239)
          to label %240 unwind label %250

240:                                              ; preds = %238
  %241 = load ptr, ptr @__glewDeleteProgram, align 8, !tbaa !5
  %242 = load i32, ptr %23, align 4, !tbaa !19
  invoke void %241(i32 noundef %242)
          to label %243 unwind label %250

243:                                              ; preds = %240
  store i1 true, ptr %39, align 1
  %244 = call ptr @__cxa_allocate_exception(i64 40) #6
  call void @_ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %37, ptr noundef @.str.4) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr %38) #6
  call void @_ZNSt12experimental15fundamentals_v215source_location7currentEPKcS3_ii(ptr dead_on_unwind writable sret(%"struct.std::experimental::fundamentals_v2::source_location") align 8 %38, ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 218, i32 noundef 0) #6
  %245 = getelementptr inbounds { i64, ptr }, ptr %37, i32 0, i32 0
  %246 = load i64, ptr %245, align 8
  %247 = getelementptr inbounds { i64, ptr }, ptr %37, i32 0, i32 1
  %248 = load ptr, ptr %247, align 8
  invoke void @_ZN4abcg12RuntimeErrorC1ESt17basic_string_viewIcSt11char_traitsIcEERKNSt12experimental15fundamentals_v215source_locationE(ptr noundef nonnull align 8 dereferenceable(40) %244, i64 %246, ptr %248, ptr noundef nonnull align 8 dereferenceable(24) %38)
          to label %249 unwind label %254

249:                                              ; preds = %243
  store i1 false, ptr %39, align 1
  invoke void @__cxa_throw(ptr %244, ptr @_ZTIN4abcg12RuntimeErrorE, ptr @_ZN4abcg9ExceptionD2Ev) #7
          to label %280 unwind label %254

250:                                              ; preds = %261, %240, %238, %233, %232, %223
  %251 = landingpad { ptr, i32 }
          cleanup
  %252 = extractvalue { ptr, i32 } %251, 0
  store ptr %252, ptr %7, align 8
  %253 = extractvalue { ptr, i32 } %251, 1
  store i32 %253, ptr %8, align 4
  br label %268

254:                                              ; preds = %249, %243
  %255 = landingpad { ptr, i32 }
          cleanup
  %256 = extractvalue { ptr, i32 } %255, 0
  store ptr %256, ptr %7, align 8
  %257 = extractvalue { ptr, i32 } %255, 1
  store i32 %257, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 24, ptr %38) #6
  %258 = load i1, ptr %39, align 1
  br i1 %258, label %259, label %260

259:                                              ; preds = %254
  call void @__cxa_free_exception(ptr %244) #6
  br label %260

260:                                              ; preds = %259, %254
  br label %268

261:                                              ; preds = %229
  %262 = load ptr, ptr @__glewDeleteProgram, align 8, !tbaa !5
  %263 = load i32, ptr %23, align 4, !tbaa !19
  invoke void %262(i32 noundef %263)
          to label %264 unwind label %250

264:                                              ; preds = %261
  store i32 0, ptr %3, align 4
  store i32 1, ptr %22, align 4
  br label %267

265:                                              ; preds = %226
  %266 = load i32, ptr %23, align 4, !tbaa !19
  store i32 %266, ptr %3, align 4
  store i32 1, ptr %22, align 4
  br label %267

267:                                              ; preds = %265, %264
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #6
  br label %269

268:                                              ; preds = %260, %250
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #6
  br label %270

269:                                              ; preds = %267, %166
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #6
  br label %271

270:                                              ; preds = %268, %219, %187, %165, %155
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #6
  br label %273

271:                                              ; preds = %269, %137
  call void @_ZNSt6vectorIN4abcg12OpenGLShaderESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #6
  call void @_ZNSt6vectorIN4abcg12ShaderSourceESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %6) #6
  %272 = load i32, ptr %3, align 4
  ret i32 %272

273:                                              ; preds = %270, %128, %101
  call void @_ZNSt6vectorIN4abcg12OpenGLShaderESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #6
  br label %274

274:                                              ; preds = %273, %88, %54
  call void @_ZNSt6vectorIN4abcg12ShaderSourceESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %6) #6
  br label %275

275:                                              ; preds = %274
  %276 = load ptr, ptr %7, align 8
  %277 = load i32, ptr %8, align 4
  %278 = insertvalue { ptr, i32 } poison, ptr %276, 0
  %279 = insertvalue { ptr, i32 } %278, i32 %277, 1
  resume { ptr, i32 } %279

280:                                              ; preds = %249, %154
  unreachable
}

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

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPKN4abcg12ShaderSourceESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #3

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIN4abcg12ShaderSourceESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(36)) #0 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN12_GLOBAL__N_18toSourceB5cxx11ESt17basic_string_viewIcSt11char_traitsIcEE(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, i64, ptr) #0

; Function Attrs: mustprogress nounwind uwtable
declare { i64, ptr } @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEcvSt17basic_string_viewIcS2_EEv(ptr noundef nonnull align 8 dereferenceable(32)) #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN4abcg12ShaderSourceD2Ev(ptr noundef nonnull align 8 dereferenceable(36)) unnamed_addr #3 align 2

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPN4abcg12ShaderSourceESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #3

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

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

; Function Attrs: mustprogress uwtable
declare hidden i64 @_ZN12_GLOBAL__N_113compileHelperESt17basic_string_viewIcSt11char_traitsIcEEj(i64, ptr, i32 noundef) #0

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZN12_GLOBAL__N_122abcgStageToOpenGLStageEN4abcg11ShaderStageE(i32 noundef) #0

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN4abcg24checkOpenGLShaderCompileERKSt6vectorINS_12OpenGLShaderESaIS1_EEb(ptr noundef nonnull align 8 dereferenceable(24), i1 noundef zeroext) #0

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN12_GLOBAL__N_113deleteShadersERKSt6vectorIN4abcg12OpenGLShaderESaIS2_EE(ptr noundef nonnull align 8 dereferenceable(24)) #0

declare ptr @__cxa_allocate_exception(i64)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt12experimental15fundamentals_v215source_location7currentEPKcS3_ii(ptr dead_on_unwind noalias writable sret(%"struct.std::experimental::fundamentals_v2::source_location") align 8, ptr noundef, ptr noundef, i32 noundef, i32 noundef) #2 align 2

declare void @_ZN4abcg12RuntimeErrorC1ESt17basic_string_viewIcSt11char_traitsIcEERKNSt12experimental15fundamentals_v215source_locationE(ptr noundef nonnull align 8 dereferenceable(40), i64, ptr, ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN4abcg9ExceptionD2Ev(ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #3 align 2

declare void @__cxa_throw(ptr, ptr, ptr)

declare void @__cxa_free_exception(ptr)

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPN4abcg12OpenGLShaderESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #3

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

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN3fmt3v105printIJEEEvNS0_19basic_format_stringIcJDpNS0_13type_identityIT_E4typeEEEEDpOS4_(ptr, i64) #5

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN3fmt3v1019basic_format_stringIcJEEC2IA2_cTnNSt9enable_ifIXsr3std14is_convertibleIRKT_NS0_17basic_string_viewIcEEEE5valueEiE4typeELi0EEES8_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 1 dereferenceable(2)) unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN12_GLOBAL__N_119printProgramInfoLogEj(i32 noundef) #0

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

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

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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 = { alwaysinline mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 = !{!"bool", !7, i64 0}
!11 = !{!12, !16, i64 32}
!12 = !{!"_ZTSN4abcg12ShaderSourceE", !13, i64 0, !16, i64 32}
!13 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !14, i64 0, !15, i64 8, !7, i64 16}
!14 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!15 = !{!"long", !7, i64 0}
!16 = !{!"_ZTSN4abcg11ShaderStageE", !7, i64 0}
!17 = !{i8 0, i8 2}
!18 = !{}
!19 = !{!20, !20, i64 0}
!20 = !{!"int", !7, i64 0}
!21 = !{!22, !20, i64 0}
!22 = !{!"_ZTSN4abcg12OpenGLShaderE", !20, i64 0, !20, i64 4}


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

%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<abcg::ShaderSource, std::allocator<abcg::ShaderSource>>::_Vector_impl" }
%"struct.std::_Vector_base<abcg::ShaderSource, std::allocator<abcg::ShaderSource>>::_Vector_impl" = type { %"struct.std::_Vector_base<abcg::ShaderSource, std::allocator<abcg::ShaderSource>>::_Vector_impl_data" }
%"struct.std::_Vector_base<abcg::ShaderSource, std::allocator<abcg::ShaderSource>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"struct.abcg::ShaderSource" = type <{ %"class.std::__cxx11::basic_string", i32, [4 x i8] }>
%"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::vector.3" = type { %"struct.std::_Vector_base.4" }
%"struct.std::_Vector_base.4" = type { %"struct.std::_Vector_base<abcg::OpenGLShader, std::allocator<abcg::OpenGLShader>>::_Vector_impl" }
%"struct.std::_Vector_base<abcg::OpenGLShader, std::allocator<abcg::OpenGLShader>>::_Vector_impl" = type { %"struct.std::_Vector_base<abcg::OpenGLShader, std::allocator<abcg::OpenGLShader>>::_Vector_impl_data" }
%"struct.std::_Vector_base<abcg::OpenGLShader, std::allocator<abcg::OpenGLShader>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator.8" = type { ptr }
%"struct.abcg::OpenGLShader" = type { i32, i32 }
%"class.std::basic_string_view" = type { i64, ptr }
%"struct.std::experimental::fundamentals_v2::source_location" = type { ptr, ptr, i32, i32 }
%"class.__gnu_cxx::__normal_iterator.9" = type { ptr }
%"class.fmt::v10::basic_format_string" = type { %"class.fmt::v10::basic_string_view" }
%"class.fmt::v10::basic_string_view" = type { ptr, i64 }

@__glewCreateProgram = external local_unnamed_addr global ptr, align 8
@.str = external hidden unnamed_addr constant [25 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [74 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [20 x i8], align 1
@_ZTIN4abcg12RuntimeErrorE = external dso_local constant { ptr, ptr, ptr }, align 8
@__glewAttachShader = external local_unnamed_addr global ptr, align 8
@__glewLinkProgram = external local_unnamed_addr global ptr, align 8
@__glewDetachShader = external local_unnamed_addr global ptr, align 8
@__glewDeleteShader = external local_unnamed_addr global ptr, align 8
@__glewGetProgramiv = external local_unnamed_addr global ptr, align 8
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@__glewDeleteProgram = external local_unnamed_addr global ptr, align 8
@.str.4 = external hidden unnamed_addr constant [23 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN4abcg19createOpenGLProgramERKSt6vectorINS_12ShaderSourceESaIS1_EEb(ptr noundef nonnull align 8 dereferenceable(24) %0, i1 noundef zeroext %1) local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.std::vector", align 8
  %4 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %5 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %6 = alloca %"struct.abcg::ShaderSource", align 8
  %7 = alloca %"class.std::vector.3", align 8
  %8 = alloca %"class.__gnu_cxx::__normal_iterator.8", align 8
  %9 = alloca %"class.__gnu_cxx::__normal_iterator.8", align 8
  %10 = alloca %"struct.abcg::OpenGLShader", align 8
  %11 = alloca %"class.std::basic_string_view", align 8
  %12 = alloca %"struct.std::experimental::fundamentals_v2::source_location", align 8
  %13 = alloca %"class.__gnu_cxx::__normal_iterator.9", align 8
  %14 = alloca %"class.__gnu_cxx::__normal_iterator.9", align 8
  %15 = alloca %"class.__gnu_cxx::__normal_iterator.9", align 8
  %16 = alloca %"class.__gnu_cxx::__normal_iterator.9", align 8
  %17 = alloca i32, align 4
  %18 = alloca %"class.fmt::v10::basic_format_string", align 8
  %19 = alloca %"class.std::basic_string_view", align 8
  %20 = alloca %"struct.std::experimental::fundamentals_v2::source_location", align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #6
  call void @_ZNSt6vectorIN4abcg12ShaderSourceESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  %21 = call noundef i64 @_ZNKSt6vectorIN4abcg12ShaderSourceESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  invoke void @_ZNSt6vectorIN4abcg12ShaderSourceESaIS1_EE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %21)
          to label %22 unwind label %28

22:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #6
  %23 = call ptr @_ZNKSt6vectorIN4abcg12ShaderSourceESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  store ptr %23, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #6
  %24 = call ptr @_ZNKSt6vectorIN4abcg12ShaderSourceESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  store ptr %24, ptr %5, align 8
  %25 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKN4abcg12ShaderSourceESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #6
  br i1 %25, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %22
  %26 = getelementptr inbounds i8, ptr %6, i64 32
  br label %30

._crit_edge:                                      ; preds = %38, %22
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #6
  call void @_ZNSt6vectorIN4abcg12OpenGLShaderESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #6
  %27 = call noundef i64 @_ZNKSt6vectorIN4abcg12ShaderSourceESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  invoke void @_ZNSt6vectorIN4abcg12OpenGLShaderESaIS1_EE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %27)
          to label %46 unwind label %51

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

30:                                               ; preds = %.lr.ph, %38
  %31 = call noundef nonnull align 8 dereferenceable(36) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN4abcg12ShaderSourceESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #6
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %6) #6
  %32 = call { i64, ptr } @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEcvSt17basic_string_viewIcS2_EEv(ptr noundef nonnull align 8 dereferenceable(32) %31) #6
  %33 = extractvalue { i64, ptr } %32, 0
  %34 = extractvalue { i64, ptr } %32, 1
  invoke void @_ZN12_GLOBAL__N_18toSourceB5cxx11ESt17basic_string_viewIcSt11char_traitsIcEE(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %6, i64 %33, ptr %34)
          to label %35 unwind label %41

35:                                               ; preds = %30
  %36 = getelementptr inbounds i8, ptr %31, i64 32
  %37 = load i32, ptr %36, align 8, !tbaa !5
  store i32 %37, ptr %26, align 8, !tbaa !5
  invoke void @_ZNSt6vectorIN4abcg12ShaderSourceESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(36) %6)
          to label %38 unwind label %43

38:                                               ; preds = %35
  call void @_ZN4abcg12ShaderSourceD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %6) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %6) #6
  %39 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKN4abcg12ShaderSourceESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #6
  %40 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKN4abcg12ShaderSourceESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #6
  br i1 %40, label %30, label %._crit_edge

41:                                               ; preds = %30
  %42 = landingpad { ptr, i32 }
          cleanup
  br label %45

43:                                               ; preds = %35
  %44 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4abcg12ShaderSourceD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %6) #6
  br label %45

45:                                               ; preds = %43, %41
  %.pn51 = phi { ptr, i32 } [ %44, %43 ], [ %42, %41 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  br label %147

46:                                               ; preds = %._crit_edge
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #6
  %47 = call ptr @_ZNSt6vectorIN4abcg12ShaderSourceESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  store ptr %47, ptr %8, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #6
  %48 = call ptr @_ZNSt6vectorIN4abcg12ShaderSourceESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  store ptr %48, ptr %9, align 8
  %49 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN4abcg12ShaderSourceESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %9) #6
  br i1 %49, label %.lr.ph58, label %._crit_edge59

._crit_edge59:                                    ; preds = %63, %46
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
  %50 = invoke noundef zeroext i1 @_ZN4abcg24checkOpenGLShaderCompileERKSt6vectorINS_12OpenGLShaderESaIS1_EEb(ptr noundef nonnull align 8 dereferenceable(24) %7, i1 noundef zeroext %1)
          to label %68 unwind label %51

51:                                               ; preds = %._crit_edge59, %._crit_edge
  %52 = landingpad { ptr, i32 }
          cleanup
  br label %146

.lr.ph58:                                         ; preds = %46, %63
  %53 = call noundef nonnull align 8 dereferenceable(36) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN4abcg12ShaderSourceESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #6
  %54 = call { i64, ptr } @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEcvSt17basic_string_viewIcS2_EEv(ptr noundef nonnull align 8 dereferenceable(32) %53) #6
  %55 = getelementptr inbounds i8, ptr %53, i64 32
  %56 = load i32, ptr %55, align 8, !tbaa !5
  %57 = invoke noundef i32 @_ZN12_GLOBAL__N_122abcgStageToOpenGLStageEN4abcg11ShaderStageE(i32 noundef %56)
          to label %58 unwind label %66

58:                                               ; preds = %.lr.ph58
  %59 = extractvalue { i64, ptr } %54, 1
  %60 = extractvalue { i64, ptr } %54, 0
  %61 = invoke i64 @_ZN12_GLOBAL__N_113compileHelperESt17basic_string_viewIcSt11char_traitsIcEEj(i64 %60, ptr %59, i32 noundef %57)
          to label %62 unwind label %66

62:                                               ; preds = %58
  store i64 %61, ptr %10, align 8
  invoke void @_ZNSt6vectorIN4abcg12OpenGLShaderESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 4 dereferenceable(8) %10)
          to label %63 unwind label %66

63:                                               ; preds = %62
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #6
  %64 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPN4abcg12ShaderSourceESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #6
  %65 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN4abcg12ShaderSourceESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %9) #6
  br i1 %65, label %.lr.ph58, label %._crit_edge59

66:                                               ; preds = %62, %58, %.lr.ph58
  %67 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
  br label %146

68:                                               ; preds = %._crit_edge59
  br i1 %50, label %69, label %145

69:                                               ; preds = %68
  %70 = load ptr, ptr @__glewCreateProgram, align 8, !tbaa !14
  %71 = invoke i32 %70()
          to label %72 unwind label %82

72:                                               ; preds = %69
  %73 = icmp eq i32 %71, 0
  br i1 %73, label %74, label %88

74:                                               ; preds = %72
  invoke void @_ZN12_GLOBAL__N_113deleteShadersERKSt6vectorIN4abcg12OpenGLShaderESaIS2_EE(ptr noundef nonnull align 8 dereferenceable(24) %7)
          to label %75 unwind label %82

75:                                               ; preds = %74
  br i1 %1, label %76, label %145

76:                                               ; preds = %75
  %77 = call ptr @__cxa_allocate_exception(i64 40) #6
  call void @_ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef @.str) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %12) #6
  call void @_ZNSt12experimental15fundamentals_v215source_location7currentEPKcS3_ii(ptr dead_on_unwind nonnull writable sret(%"struct.std::experimental::fundamentals_v2::source_location") align 8 %12, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef 195, i32 noundef 0) #6
  %78 = load i64, ptr %11, align 8
  %79 = getelementptr inbounds i8, ptr %11, i64 8
  %80 = load ptr, ptr %79, align 8
  invoke void @_ZN4abcg12RuntimeErrorC1ESt17basic_string_viewIcSt11char_traitsIcEERKNSt12experimental15fundamentals_v215source_locationE(ptr noundef nonnull align 8 dereferenceable(40) %77, i64 %78, ptr %80, ptr noundef nonnull align 8 dereferenceable(24) %12)
          to label %81 unwind label %86

81:                                               ; preds = %76
  invoke void @__cxa_throw(ptr nonnull %77, ptr nonnull @_ZTIN4abcg12RuntimeErrorE, ptr nonnull @_ZN4abcg9ExceptionD2Ev) #7
          to label %148 unwind label %84

82:                                               ; preds = %._crit_edge62, %74, %69
  %83 = landingpad { ptr, i32 }
          cleanup
  br label %146

84:                                               ; preds = %81
  %85 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %12) #6
  br label %146

86:                                               ; preds = %76
  %87 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %12) #6
  call void @__cxa_free_exception(ptr %77) #6
  br label %146

88:                                               ; preds = %72
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #6
  %89 = call ptr @_ZNSt6vectorIN4abcg12OpenGLShaderESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #6
  store ptr %89, ptr %13, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #6
  %90 = call ptr @_ZNSt6vectorIN4abcg12OpenGLShaderESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #6
  store ptr %90, ptr %14, align 8
  %91 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN4abcg12OpenGLShaderESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %14) #6
  br i1 %91, label %.lr.ph61, label %._crit_edge62

._crit_edge62:                                    ; preds = %96, %88
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #6
  %92 = load ptr, ptr @__glewLinkProgram, align 8, !tbaa !14
  invoke void %92(i32 noundef %71)
          to label %101 unwind label %82

.lr.ph61:                                         ; preds = %88, %96
  %93 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN4abcg12OpenGLShaderESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #6
  %94 = load ptr, ptr @__glewAttachShader, align 8, !tbaa !14
  %95 = load i32, ptr %93, align 4, !tbaa !15
  invoke void %94(i32 noundef %71, i32 noundef %95)
          to label %96 unwind label %99

96:                                               ; preds = %.lr.ph61
  %97 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPN4abcg12OpenGLShaderESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #6
  %98 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN4abcg12OpenGLShaderESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %14) #6
  br i1 %98, label %.lr.ph61, label %._crit_edge62

99:                                               ; preds = %.lr.ph61
  %100 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #6
  br label %146

101:                                              ; preds = %._crit_edge62
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #6
  %102 = call ptr @_ZNSt6vectorIN4abcg12OpenGLShaderESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #6
  store ptr %102, ptr %15, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #6
  %103 = call ptr @_ZNSt6vectorIN4abcg12OpenGLShaderESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #6
  store ptr %103, ptr %16, align 8
  %104 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN4abcg12OpenGLShaderESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 8 dereferenceable(8) %16) #6
  br i1 %104, label %.lr.ph64, label %._crit_edge65

._crit_edge65:                                    ; preds = %112, %101
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %17) #6
  store i32 0, ptr %17, align 4, !tbaa !18
  %105 = load ptr, ptr @__glewGetProgramiv, align 8, !tbaa !14
  invoke void %105(i32 noundef %71, i32 noundef 35714, ptr noundef nonnull %17)
          to label %117 unwind label %135

.lr.ph64:                                         ; preds = %101, %112
  %106 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN4abcg12OpenGLShaderESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %15) #6
  %107 = load ptr, ptr @__glewDetachShader, align 8, !tbaa !14
  %108 = load i32, ptr %106, align 4, !tbaa !15
  invoke void %107(i32 noundef %71, i32 noundef %108)
          to label %109 unwind label %115

109:                                              ; preds = %.lr.ph64
  %110 = load ptr, ptr @__glewDeleteShader, align 8, !tbaa !14
  %111 = load i32, ptr %106, align 4, !tbaa !15
  invoke void %110(i32 noundef %111)
          to label %112 unwind label %115

112:                                              ; preds = %109
  %113 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPN4abcg12OpenGLShaderESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %15) #6
  %114 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN4abcg12OpenGLShaderESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 8 dereferenceable(8) %16) #6
  br i1 %114, label %.lr.ph64, label %._crit_edge65

115:                                              ; preds = %109, %.lr.ph64
  %116 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #6
  br label %146

117:                                              ; preds = %._crit_edge65
  %118 = load i32, ptr %17, align 4, !tbaa !18
  %119 = icmp eq i32 %118, 0
  br i1 %119, label %120, label %143

120:                                              ; preds = %117
  br i1 %1, label %121, label %141

121:                                              ; preds = %120
  invoke void @_ZN3fmt3v1019basic_format_stringIcJEEC2IA2_cTnNSt9enable_ifIXsr3std14is_convertibleIRKT_NS0_17basic_string_viewIcEEEE5valueEiE4typeELi0EEES8_(ptr noundef nonnull align 8 dereferenceable(16) %18, ptr noundef nonnull align 1 dereferenceable(2) @.str.3)
          to label %122 unwind label %135

122:                                              ; preds = %121
  %123 = load ptr, ptr %18, align 8
  %124 = getelementptr inbounds i8, ptr %18, i64 8
  %125 = load i64, ptr %124, align 8
  invoke void @_ZN3fmt3v105printIJEEEvNS0_19basic_format_stringIcJDpNS0_13type_identityIT_E4typeEEEEDpOS4_(ptr %123, i64 %125)
          to label %126 unwind label %135

126:                                              ; preds = %122
  invoke void @_ZN12_GLOBAL__N_119printProgramInfoLogEj(i32 noundef %71)
          to label %127 unwind label %135

127:                                              ; preds = %126
  %128 = load ptr, ptr @__glewDeleteProgram, align 8, !tbaa !14
  invoke void %128(i32 noundef %71)
          to label %129 unwind label %135

129:                                              ; preds = %127
  %130 = call ptr @__cxa_allocate_exception(i64 40) #6
  call void @_ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %19, ptr noundef @.str.4) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %20) #6
  call void @_ZNSt12experimental15fundamentals_v215source_location7currentEPKcS3_ii(ptr dead_on_unwind nonnull writable sret(%"struct.std::experimental::fundamentals_v2::source_location") align 8 %20, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef 218, i32 noundef 0) #6
  %131 = load i64, ptr %19, align 8
  %132 = getelementptr inbounds i8, ptr %19, i64 8
  %133 = load ptr, ptr %132, align 8
  invoke void @_ZN4abcg12RuntimeErrorC1ESt17basic_string_viewIcSt11char_traitsIcEERKNSt12experimental15fundamentals_v215source_locationE(ptr noundef nonnull align 8 dereferenceable(40) %130, i64 %131, ptr %133, ptr noundef nonnull align 8 dereferenceable(24) %20)
          to label %134 unwind label %139

134:                                              ; preds = %129
  invoke void @__cxa_throw(ptr nonnull %130, ptr nonnull @_ZTIN4abcg12RuntimeErrorE, ptr nonnull @_ZN4abcg9ExceptionD2Ev) #7
          to label %148 unwind label %137

135:                                              ; preds = %141, %127, %126, %122, %121, %._crit_edge65
  %136 = landingpad { ptr, i32 }
          cleanup
  br label %144

137:                                              ; preds = %134
  %138 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %20) #6
  br label %144

139:                                              ; preds = %129
  %140 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %20) #6
  call void @__cxa_free_exception(ptr %130) #6
  br label %144

141:                                              ; preds = %120
  %142 = load ptr, ptr @__glewDeleteProgram, align 8, !tbaa !14
  invoke void %142(i32 noundef %71)
          to label %143 unwind label %135

143:                                              ; preds = %117, %141
  %.035 = phi i32 [ 0, %141 ], [ %71, %117 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #6
  br label %145

144:                                              ; preds = %137, %139, %135
  %.pn = phi { ptr, i32 } [ %140, %139 ], [ %138, %137 ], [ %136, %135 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #6
  br label %146

145:                                              ; preds = %143, %75, %68
  %.2 = phi i32 [ 0, %68 ], [ %.035, %143 ], [ 0, %75 ]
  call void @_ZNSt6vectorIN4abcg12OpenGLShaderESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #6
  call void @_ZNSt6vectorIN4abcg12ShaderSourceESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #6
  ret i32 %.2

146:                                              ; preds = %84, %82, %99, %115, %144, %86, %66, %51
  %.pn49 = phi { ptr, i32 } [ %67, %66 ], [ %52, %51 ], [ %87, %86 ], [ %85, %84 ], [ %83, %82 ], [ %100, %99 ], [ %116, %115 ], [ %.pn, %144 ]
  call void @_ZNSt6vectorIN4abcg12OpenGLShaderESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #6
  br label %147

147:                                              ; preds = %146, %45, %28
  %.pn51.pn = phi { ptr, i32 } [ %.pn51, %45 ], [ %.pn49, %146 ], [ %29, %28 ]
  call void @_ZNSt6vectorIN4abcg12ShaderSourceESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #6
  resume { ptr, i32 } %.pn51.pn

148:                                              ; preds = %134, %81
  unreachable
}

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

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPKN4abcg12ShaderSourceESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIN4abcg12ShaderSourceESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(36)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN12_GLOBAL__N_18toSourceB5cxx11ESt17basic_string_viewIcSt11char_traitsIcEE(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, i64, ptr) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
declare { i64, ptr } @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEcvSt17basic_string_viewIcS2_EEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN4abcg12ShaderSourceD2Ev(ptr noundef nonnull align 8 dereferenceable(36)) unnamed_addr #3 align 2

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPN4abcg12ShaderSourceESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3

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

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

; Function Attrs: mustprogress uwtable
declare hidden i64 @_ZN12_GLOBAL__N_113compileHelperESt17basic_string_viewIcSt11char_traitsIcEEj(i64, ptr, i32 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZN12_GLOBAL__N_122abcgStageToOpenGLStageEN4abcg11ShaderStageE(i32 noundef) local_unnamed_addr #0

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN4abcg24checkOpenGLShaderCompileERKSt6vectorINS_12OpenGLShaderESaIS1_EEb(ptr noundef nonnull align 8 dereferenceable(24), i1 noundef zeroext) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN12_GLOBAL__N_113deleteShadersERKSt6vectorIN4abcg12OpenGLShaderESaIS2_EE(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0

declare ptr @__cxa_allocate_exception(i64) local_unnamed_addr

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt12experimental15fundamentals_v215source_location7currentEPKcS3_ii(ptr dead_on_unwind noalias writable sret(%"struct.std::experimental::fundamentals_v2::source_location") align 8, ptr noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2 align 2

declare void @_ZN4abcg12RuntimeErrorC1ESt17basic_string_viewIcSt11char_traitsIcEERKNSt12experimental15fundamentals_v215source_locationE(ptr noundef nonnull align 8 dereferenceable(40), i64, ptr, ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN4abcg9ExceptionD2Ev(ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #3 align 2

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

declare void @__cxa_free_exception(ptr) local_unnamed_addr

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPN4abcg12OpenGLShaderESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3

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

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN3fmt3v105printIJEEEvNS0_19basic_format_stringIcJDpNS0_13type_identityIT_E4typeEEEEDpOS4_(ptr, i64) local_unnamed_addr #5

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN3fmt3v1019basic_format_stringIcJEEC2IA2_cTnNSt9enable_ifIXsr3std14is_convertibleIRKT_NS0_17basic_string_viewIcEEEE5valueEiE4typeELi0EEES8_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 1 dereferenceable(2)) unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN12_GLOBAL__N_119printProgramInfoLogEj(i32 noundef) local_unnamed_addr #0

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

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

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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 = { alwaysinline mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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, !13, i64 32}
!6 = !{!"_ZTSN4abcg12ShaderSourceE", !7, i64 0, !13, i64 32}
!7 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !8, i64 0, !12, i64 8, !10, i64 16}
!8 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !9, i64 0}
!9 = !{!"any pointer", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C++ TBAA"}
!12 = !{!"long", !10, i64 0}
!13 = !{!"_ZTSN4abcg11ShaderStageE", !10, i64 0}
!14 = !{!9, !9, i64 0}
!15 = !{!16, !17, i64 0}
!16 = !{!"_ZTSN4abcg12OpenGLShaderE", !17, i64 0, !17, i64 4}
!17 = !{!"int", !10, i64 0}
!18 = !{!17, !17, i64 0}


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