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

%"struct.iter::impl::IterToolFnOptionalBindSecond" = type { i8 }
%"class.iter::impl::Enumerable" = type { ptr, i64 }
%"class.iter::impl::Enumerable<const std::vector<abcg::OpenGLShader> &, unsigned long>::Iterator" = type { %"class.__gnu_cxx::__normal_iterator.10", i64 }
%"class.__gnu_cxx::__normal_iterator.10" = type { ptr }
%"class.iter::impl::EnumIterYield" = type { %"struct.std::pair", i64, ptr }
%"struct.std::pair" = type { i64, ptr }
%"class.fmt::v10::basic_format_string" = type { %"class.fmt::v10::basic_string_view" }
%"class.fmt::v10::basic_string_view" = type { ptr, i64 }
%"class.std::basic_string_view" = type { i64, ptr }
%"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.fmt::v10::basic_format_string.11" = type { %"class.fmt::v10::basic_string_view" }
%"struct.std::experimental::fundamentals_v2::source_location" = type { ptr, ptr, i32, i32 }
%"struct.abcg::OpenGLShader" = type { i32, i32 }

@.str.1 = external hidden unnamed_addr constant [74 x i8], align 1
@_ZTIN4abcg12RuntimeErrorE = external dso_local constant { ptr, ptr, ptr }, align 8
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@_ZN4iterL9enumerateE = external hidden constant %"struct.iter::impl::IterToolFnOptionalBindSecond", align 1
@__glewGetShaderiv = external global ptr, align 8
@.str.5 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [25 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

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN4abcg24checkOpenGLShaderCompileERKSt6vectorINS_12OpenGLShaderESaIS1_EEb(ptr noundef nonnull align 8 dereferenceable(24) %0, i1 noundef zeroext %1) #2 personality ptr @__gxx_personality_v0 {
  %3 = alloca i1, align 1
  %4 = alloca ptr, align 8
  %5 = alloca i8, align 1
  %6 = alloca ptr, align 8
  %7 = alloca %"class.iter::impl::Enumerable", align 8
  %8 = alloca %"class.iter::impl::Enumerable<const std::vector<abcg::OpenGLShader> &, unsigned long>::Iterator", align 8
  %9 = alloca %"class.iter::impl::Enumerable<const std::vector<abcg::OpenGLShader> &, unsigned long>::Iterator", align 8
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca %"class.iter::impl::EnumIterYield", align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca %"class.fmt::v10::basic_format_string", align 8
  %17 = alloca ptr, align 8
  %18 = alloca %"class.std::basic_string_view", align 8
  %19 = alloca %"class.std::basic_string_view", align 8
  %20 = alloca %"class.std::__cxx11::basic_string", align 8
  %21 = alloca %"class.fmt::v10::basic_format_string.11", align 8
  %22 = alloca ptr, align 8
  %23 = alloca i32, align 4
  %24 = alloca %"struct.std::experimental::fundamentals_v2::source_location", align 8
  %25 = alloca i1, align 1
  store ptr %0, ptr %4, align 8, !tbaa !5
  %26 = zext i1 %1 to i8
  store i8 %26, ptr %5, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %7) #6
  %27 = load ptr, ptr %4, align 8, !tbaa !5
  %28 = call { ptr, i64 } @_ZNK4iter4impl28IterToolFnOptionalBindSecondINS0_10EnumerableEmEclIRKSt6vectorIN4abcg12OpenGLShaderESaIS7_EEvEEDaOT_(ptr noundef nonnull align 1 dereferenceable(1) @_ZN4iterL9enumerateE, ptr noundef nonnull align 8 dereferenceable(24) %27)
  %29 = getelementptr inbounds { ptr, i64 }, ptr %7, i32 0, i32 0
  %30 = extractvalue { ptr, i64 } %28, 0
  store ptr %30, ptr %29, align 8
  %31 = getelementptr inbounds { ptr, i64 }, ptr %7, i32 0, i32 1
  %32 = extractvalue { ptr, i64 } %28, 1
  store i64 %32, ptr %31, align 8
  store ptr %7, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %8) #6
  %33 = load ptr, ptr %6, align 8, !tbaa !5
  %34 = call { ptr, i64 } @_ZN4iter4impl10EnumerableIRKSt6vectorIN4abcg12OpenGLShaderESaIS4_EEmE5beginEv(ptr noundef nonnull align 8 dereferenceable(16) %33)
  %35 = getelementptr inbounds { ptr, i64 }, ptr %8, i32 0, i32 0
  %36 = extractvalue { ptr, i64 } %34, 0
  store ptr %36, ptr %35, align 8
  %37 = getelementptr inbounds { ptr, i64 }, ptr %8, i32 0, i32 1
  %38 = extractvalue { ptr, i64 } %34, 1
  store i64 %38, ptr %37, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #6
  %39 = load ptr, ptr %6, align 8, !tbaa !5
  %40 = call { ptr, i64 } @_ZN4iter4impl10EnumerableIRKSt6vectorIN4abcg12OpenGLShaderESaIS4_EEmE3endEv(ptr noundef nonnull align 8 dereferenceable(16) %39)
  %41 = getelementptr inbounds { ptr, i64 }, ptr %9, i32 0, i32 0
  %42 = extractvalue { ptr, i64 } %40, 0
  store ptr %42, ptr %41, align 8
  %43 = getelementptr inbounds { ptr, i64 }, ptr %9, i32 0, i32 1
  %44 = extractvalue { ptr, i64 } %40, 1
  store i64 %44, ptr %43, align 8
  br label %45

45:                                               ; preds = %118, %2
  %46 = call noundef zeroext i1 @_ZNK4iter4impl10EnumerableIRKSt6vectorIN4abcg12OpenGLShaderESaIS4_EEmE8IteratorIS8_EneIS8_EEbRKNSA_IT_EE(ptr noundef nonnull align 8 dereferenceable(16) %8, ptr noundef nonnull align 8 dereferenceable(16) %9)
  br i1 %46, label %48, label %47

47:                                               ; preds = %45
  store i32 2, ptr %10, align 4
  br label %120

48:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %12) #6
  call void @_ZN4iter4impl10EnumerableIRKSt6vectorIN4abcg12OpenGLShaderESaIS4_EEmE8IteratorIS8_EdeEv(ptr dead_on_unwind writable sret(%"class.iter::impl::EnumIterYield") align 8 %12, ptr noundef nonnull align 8 dereferenceable(16) %8)
  store ptr %12, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  %49 = load ptr, ptr %11, align 8, !tbaa !5
  %50 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm0EmRKN4abcg12OpenGLShaderEEONSt13tuple_elementIXT_ESt4pairIT0_T1_EE4typeEOS8_(ptr noundef nonnull align 8 dereferenceable(16) %49) #6
  store ptr %50, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  %51 = load ptr, ptr %11, align 8, !tbaa !5
  %52 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZSt3getILm1EmRKN4abcg12OpenGLShaderEEONSt13tuple_elementIXT_ESt4pairIT0_T1_EE4typeEOS8_(ptr noundef nonnull align 8 dereferenceable(16) %51) #6
  store ptr %52, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  store i32 0, ptr %15, align 4, !tbaa !11
  %53 = load ptr, ptr @__glewGetShaderiv, align 8, !tbaa !5
  %54 = load ptr, ptr %14, align 8, !tbaa !5
  %55 = getelementptr inbounds %"struct.abcg::OpenGLShader", ptr %54, i32 0, i32 0
  %56 = load i32, ptr %55, align 4, !tbaa !13
  call void %53(i32 noundef %56, i32 noundef 35713, ptr noundef %15)
  %57 = load i32, ptr %15, align 4, !tbaa !11
  %58 = icmp eq i32 %57, 0
  br i1 %58, label %59, label %111

59:                                               ; preds = %48
  %60 = load i8, ptr %5, align 1, !tbaa !9, !range !15, !noundef !16
  %61 = trunc i8 %60 to i1
  br i1 %61, label %62, label %109

62:                                               ; preds = %59
  call void @_ZN3fmt3v1019basic_format_stringIcJEEC2IA2_cTnNSt9enable_ifIXsr3std14is_convertibleIRKT_NS0_17basic_string_viewIcEEEE5valueEiE4typeELi0EEES8_(ptr noundef nonnull align 8 dereferenceable(16) %16, ptr noundef nonnull align 1 dereferenceable(2) @.str.3)
  %63 = getelementptr inbounds { ptr, i64 }, ptr %16, i32 0, i32 0
  %64 = load ptr, ptr %63, align 8
  %65 = getelementptr inbounds { ptr, i64 }, ptr %16, i32 0, i32 1
  %66 = load i64, ptr %65, align 8
  call void @_ZN3fmt3v105printIJEEEvNS0_19basic_format_stringIcJDpNS0_13type_identityIT_E4typeEEEEDpOS4_(ptr %64, i64 %66)
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  %67 = load ptr, ptr %14, align 8, !tbaa !5
  %68 = getelementptr inbounds %"struct.abcg::OpenGLShader", ptr %67, i32 0, i32 1
  %69 = load i32, ptr %68, align 4, !tbaa !17
  %70 = call noundef ptr @_ZN12_GLOBAL__N_117shaderStageToTextEj(i32 noundef %69)
  store ptr %70, ptr %17, align 8, !tbaa !5
  %71 = load ptr, ptr %14, align 8, !tbaa !5
  %72 = getelementptr inbounds %"struct.abcg::OpenGLShader", ptr %71, i32 0, i32 0
  %73 = load i32, ptr %72, align 4, !tbaa !13
  %74 = load ptr, ptr %17, align 8, !tbaa !5
  call void @_ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %18, ptr noundef %74) #6
  %75 = getelementptr inbounds { i64, ptr }, ptr %18, i32 0, i32 0
  %76 = load i64, ptr %75, align 8
  %77 = getelementptr inbounds { i64, ptr }, ptr %18, i32 0, i32 1
  %78 = load ptr, ptr %77, align 8
  call void @_ZN12_GLOBAL__N_118printShaderInfoLogEjSt17basic_string_viewIcSt11char_traitsIcEE(i32 noundef %73, i64 %76, ptr %78)
  %79 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN12_GLOBAL__N_113deleteShadersERKSt6vectorIN4abcg12OpenGLShaderESaIS2_EE(ptr noundef nonnull align 8 dereferenceable(24) %79)
  store i1 true, ptr %25, align 1
  %80 = call ptr @__cxa_allocate_exception(i64 40) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %20) #6
  invoke void @_ZN3fmt3v1019basic_format_stringIcJRPKcEEC2IA28_cTnNSt9enable_ifIXsr3std14is_convertibleIRKT_NS0_17basic_string_viewIcEEEE5valueEiE4typeELi0EEESB_(ptr noundef nonnull align 8 dereferenceable(16) %21, ptr noundef nonnull align 1 dereferenceable(28) @.str.5)
          to label %81 unwind label %97

81:                                               ; preds = %62
  %82 = getelementptr inbounds { ptr, i64 }, ptr %21, i32 0, i32 0
  %83 = load ptr, ptr %82, align 8
  %84 = getelementptr inbounds { ptr, i64 }, ptr %21, i32 0, i32 1
  %85 = load i64, ptr %84, align 8
  invoke void @_ZN3fmt3v106formatIJRPKcEEENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_19basic_format_stringIcJDpNS0_13type_identityIT_E4typeEEEEDpOSD_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %20, ptr %83, i64 %85, ptr noundef nonnull align 8 dereferenceable(8) %17)
          to label %86 unwind label %97

86:                                               ; preds = %81
  %87 = call { i64, ptr } @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEcvSt17basic_string_viewIcS2_EEv(ptr noundef nonnull align 8 dereferenceable(32) %20) #6
  %88 = getelementptr inbounds { i64, ptr }, ptr %19, i32 0, i32 0
  %89 = extractvalue { i64, ptr } %87, 0
  store i64 %89, ptr %88, align 8
  %90 = getelementptr inbounds { i64, ptr }, ptr %19, i32 0, i32 1
  %91 = extractvalue { i64, ptr } %87, 1
  store ptr %91, ptr %90, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr %24) #6
  call void @_ZNSt12experimental15fundamentals_v215source_location7currentEPKcS3_ii(ptr dead_on_unwind writable sret(%"struct.std::experimental::fundamentals_v2::source_location") align 8 %24, ptr noundef @.str.1, ptr noundef @.str.6, i32 noundef 296, i32 noundef 0) #6
  %92 = getelementptr inbounds { i64, ptr }, ptr %19, i32 0, i32 0
  %93 = load i64, ptr %92, align 8
  %94 = getelementptr inbounds { i64, ptr }, ptr %19, i32 0, i32 1
  %95 = load ptr, ptr %94, align 8
  invoke void @_ZN4abcg12RuntimeErrorC1ESt17basic_string_viewIcSt11char_traitsIcEERKNSt12experimental15fundamentals_v215source_locationE(ptr noundef nonnull align 8 dereferenceable(40) %80, i64 %93, ptr %95, ptr noundef nonnull align 8 dereferenceable(24) %24)
          to label %96 unwind label %101

96:                                               ; preds = %86
  store i1 false, ptr %25, align 1
  invoke void @__cxa_throw(ptr %80, ptr @_ZTIN4abcg12RuntimeErrorE, ptr @_ZN4abcg9ExceptionD2Ev) #7
          to label %130 unwind label %101

97:                                               ; preds = %81, %62
  %98 = landingpad { ptr, i32 }
          cleanup
  %99 = extractvalue { ptr, i32 } %98, 0
  store ptr %99, ptr %22, align 8
  %100 = extractvalue { ptr, i32 } %98, 1
  store i32 %100, ptr %23, align 4
  br label %105

101:                                              ; preds = %96, %86
  %102 = landingpad { ptr, i32 }
          cleanup
  %103 = extractvalue { ptr, i32 } %102, 0
  store ptr %103, ptr %22, align 8
  %104 = extractvalue { ptr, i32 } %102, 1
  store i32 %104, ptr %23, align 4
  call void @llvm.lifetime.end.p0(i64 24, ptr %24) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #6
  br label %105

105:                                              ; preds = %101, %97
  call void @llvm.lifetime.end.p0(i64 32, ptr %20) #6
  %106 = load i1, ptr %25, align 1
  br i1 %106, label %107, label %108

107:                                              ; preds = %105
  call void @__cxa_free_exception(ptr %80) #6
  br label %108

108:                                              ; preds = %107, %105
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  br label %125

109:                                              ; preds = %59
  %110 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN12_GLOBAL__N_113deleteShadersERKSt6vectorIN4abcg12OpenGLShaderESaIS2_EE(ptr noundef nonnull align 8 dereferenceable(24) %110)
  store i1 false, ptr %3, align 1
  store i32 1, ptr %10, align 4
  br label %112

111:                                              ; preds = %48
  store i32 0, ptr %10, align 4
  br label %112

112:                                              ; preds = %111, %109
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  %113 = load i32, ptr %10, align 4
  switch i32 %113, label %115 [
    i32 0, label %114
  ]

114:                                              ; preds = %112
  store i32 0, ptr %10, align 4
  br label %115

115:                                              ; preds = %114, %112
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  %116 = load i32, ptr %10, align 4
  switch i32 %116, label %120 [
    i32 0, label %117
  ]

117:                                              ; preds = %115
  br label %118

118:                                              ; preds = %117
  %119 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN4iter4impl10EnumerableIRKSt6vectorIN4abcg12OpenGLShaderESaIS4_EEmE8IteratorIS8_EppEv(ptr noundef nonnull align 8 dereferenceable(16) %8)
  br label %45

120:                                              ; preds = %115, %47
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  %121 = load i32, ptr %10, align 4
  switch i32 %121, label %130 [
    i32 2, label %122
    i32 1, label %123
  ]

122:                                              ; preds = %120
  store i1 true, ptr %3, align 1
  br label %123

123:                                              ; preds = %122, %120
  %124 = load i1, ptr %3, align 1
  ret i1 %124

125:                                              ; preds = %108
  %126 = load ptr, ptr %22, align 8
  %127 = load i32, ptr %23, align 4
  %128 = insertvalue { ptr, i32 } poison, ptr %126, 0
  %129 = insertvalue { ptr, i32 } %128, i32 %127, 1
  resume { ptr, i32 } %129

130:                                              ; preds = %120, %96
  unreachable
}

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

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

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

declare void @__cxa_throw(ptr, ptr, ptr)

declare void @__cxa_free_exception(ptr)

; 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 dso_local { ptr, i64 } @_ZNK4iter4impl28IterToolFnOptionalBindSecondINS0_10EnumerableEmEclIRKSt6vectorIN4abcg12OpenGLShaderESaIS7_EEvEEDaOT_(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i64 } @_ZN4iter4impl10EnumerableIRKSt6vectorIN4abcg12OpenGLShaderESaIS4_EEmE5beginEv(ptr noundef nonnull align 8 dereferenceable(16)) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i64 } @_ZN4iter4impl10EnumerableIRKSt6vectorIN4abcg12OpenGLShaderESaIS4_EEmE3endEv(ptr noundef nonnull align 8 dereferenceable(16)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK4iter4impl10EnumerableIRKSt6vectorIN4abcg12OpenGLShaderESaIS4_EEmE8IteratorIS8_EneIS8_EEbRKNSA_IT_EE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4iter4impl10EnumerableIRKSt6vectorIN4abcg12OpenGLShaderESaIS4_EEmE8IteratorIS8_EdeEv(ptr dead_on_unwind noalias writable sret(%"class.iter::impl::EnumIterYield") align 8, ptr noundef nonnull align 8 dereferenceable(16)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm0EmRKN4abcg12OpenGLShaderEEONSt13tuple_elementIXT_ESt4pairIT0_T1_EE4typeEOS8_(ptr noundef nonnull align 8 dereferenceable(16)) #1

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef ptr @_ZN12_GLOBAL__N_117shaderStageToTextEj(i32 noundef) #1

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN12_GLOBAL__N_118printShaderInfoLogEjSt17basic_string_viewIcSt11char_traitsIcEE(i32 noundef, i64, ptr) #2

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

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

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

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

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

%"struct.iter::impl::IterToolFnOptionalBindSecond" = type { i8 }
%"class.iter::impl::Enumerable" = type { ptr, i64 }
%"class.iter::impl::Enumerable<const std::vector<abcg::OpenGLShader> &, unsigned long>::Iterator" = type { %"class.__gnu_cxx::__normal_iterator.10", i64 }
%"class.__gnu_cxx::__normal_iterator.10" = type { ptr }
%"class.iter::impl::EnumIterYield" = type { %"struct.std::pair", i64, ptr }
%"struct.std::pair" = type { i64, ptr }
%"class.fmt::v10::basic_format_string" = type { %"class.fmt::v10::basic_string_view" }
%"class.fmt::v10::basic_string_view" = type { ptr, i64 }
%"class.std::basic_string_view" = type { i64, ptr }
%"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.fmt::v10::basic_format_string.11" = type { %"class.fmt::v10::basic_string_view" }
%"struct.std::experimental::fundamentals_v2::source_location" = type { ptr, ptr, i32, i32 }

@.str.1 = external hidden unnamed_addr constant [74 x i8], align 1
@_ZTIN4abcg12RuntimeErrorE = external dso_local constant { ptr, ptr, ptr }, align 8
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@_ZN4iterL9enumerateE = external hidden constant %"struct.iter::impl::IterToolFnOptionalBindSecond", align 1
@__glewGetShaderiv = external local_unnamed_addr global ptr, align 8
@.str.5 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [25 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

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN4abcg24checkOpenGLShaderCompileERKSt6vectorINS_12OpenGLShaderESaIS1_EEb(ptr noundef nonnull align 8 dereferenceable(24) %0, i1 noundef zeroext %1) local_unnamed_addr #2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.iter::impl::Enumerable", align 8
  %4 = alloca %"class.iter::impl::Enumerable<const std::vector<abcg::OpenGLShader> &, unsigned long>::Iterator", align 8
  %5 = alloca %"class.iter::impl::Enumerable<const std::vector<abcg::OpenGLShader> &, unsigned long>::Iterator", align 8
  %6 = alloca %"class.iter::impl::EnumIterYield", align 8
  %7 = alloca i32, align 4
  %8 = alloca %"class.fmt::v10::basic_format_string", align 8
  %9 = alloca ptr, align 8
  %10 = alloca %"class.std::basic_string_view", align 8
  %11 = alloca %"class.std::__cxx11::basic_string", align 8
  %12 = alloca %"class.fmt::v10::basic_format_string.11", align 8
  %13 = alloca %"struct.std::experimental::fundamentals_v2::source_location", align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #6
  %14 = tail call { ptr, i64 } @_ZNK4iter4impl28IterToolFnOptionalBindSecondINS0_10EnumerableEmEclIRKSt6vectorIN4abcg12OpenGLShaderESaIS7_EEvEEDaOT_(ptr noundef nonnull align 1 dereferenceable(1) @_ZN4iterL9enumerateE, ptr noundef nonnull align 8 dereferenceable(24) %0)
  %15 = extractvalue { ptr, i64 } %14, 0
  store ptr %15, ptr %3, align 8
  %16 = getelementptr inbounds i8, ptr %3, i64 8
  %17 = extractvalue { ptr, i64 } %14, 1
  store i64 %17, ptr %16, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #6
  %18 = call { ptr, i64 } @_ZN4iter4impl10EnumerableIRKSt6vectorIN4abcg12OpenGLShaderESaIS4_EEmE5beginEv(ptr noundef nonnull align 8 dereferenceable(16) %3)
  %19 = extractvalue { ptr, i64 } %18, 0
  store ptr %19, ptr %4, align 8
  %20 = getelementptr inbounds i8, ptr %4, i64 8
  %21 = extractvalue { ptr, i64 } %18, 1
  store i64 %21, ptr %20, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #6
  %22 = call { ptr, i64 } @_ZN4iter4impl10EnumerableIRKSt6vectorIN4abcg12OpenGLShaderESaIS4_EEmE3endEv(ptr noundef nonnull align 8 dereferenceable(16) %3)
  %23 = extractvalue { ptr, i64 } %22, 0
  store ptr %23, ptr %5, align 8
  %24 = getelementptr inbounds i8, ptr %5, i64 8
  %25 = extractvalue { ptr, i64 } %22, 1
  store i64 %25, ptr %24, align 8
  %26 = call noundef zeroext i1 @_ZNK4iter4impl10EnumerableIRKSt6vectorIN4abcg12OpenGLShaderESaIS4_EEmE8IteratorIS8_EneIS8_EEbRKNSA_IT_EE(ptr noundef nonnull align 8 dereferenceable(16) %4, ptr noundef nonnull align 8 dereferenceable(16) %5)
  br i1 %26, label %.lr.ph, label %.loopexit

.lr.ph:                                           ; preds = %2, %61
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #6
  call void @_ZN4iter4impl10EnumerableIRKSt6vectorIN4abcg12OpenGLShaderESaIS4_EEmE8IteratorIS8_EdeEv(ptr dead_on_unwind nonnull writable sret(%"class.iter::impl::EnumIterYield") align 8 %6, ptr noundef nonnull align 8 dereferenceable(16) %4)
  %27 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm0EmRKN4abcg12OpenGLShaderEEONSt13tuple_elementIXT_ESt4pairIT0_T1_EE4typeEOS8_(ptr noundef nonnull align 8 dereferenceable(16) %6) #6
  %28 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZSt3getILm1EmRKN4abcg12OpenGLShaderEEONSt13tuple_elementIXT_ESt4pairIT0_T1_EE4typeEOS8_(ptr noundef nonnull align 8 dereferenceable(16) %6) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #6
  store i32 0, ptr %7, align 4, !tbaa !5
  %29 = load ptr, ptr @__glewGetShaderiv, align 8, !tbaa !9
  %30 = load i32, ptr %28, align 4, !tbaa !11
  call void %29(i32 noundef %30, i32 noundef 35713, ptr noundef nonnull %7)
  %31 = load i32, ptr %7, align 4, !tbaa !5
  %.not = icmp eq i32 %31, 0
  br i1 %.not, label %32, label %61

32:                                               ; preds = %.lr.ph
  br i1 %1, label %33, label %60

33:                                               ; preds = %32
  call void @_ZN3fmt3v1019basic_format_stringIcJEEC2IA2_cTnNSt9enable_ifIXsr3std14is_convertibleIRKT_NS0_17basic_string_viewIcEEEE5valueEiE4typeELi0EEES8_(ptr noundef nonnull align 8 dereferenceable(16) %8, ptr noundef nonnull align 1 dereferenceable(2) @.str.3)
  %34 = load ptr, ptr %8, align 8
  %35 = getelementptr inbounds i8, ptr %8, i64 8
  %36 = load i64, ptr %35, align 8
  call void @_ZN3fmt3v105printIJEEEvNS0_19basic_format_stringIcJDpNS0_13type_identityIT_E4typeEEEEDpOS4_(ptr %34, i64 %36)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #6
  %37 = getelementptr inbounds i8, ptr %28, i64 4
  %38 = load i32, ptr %37, align 4, !tbaa !13
  %39 = call noundef ptr @_ZN12_GLOBAL__N_117shaderStageToTextEj(i32 noundef %38)
  store ptr %39, ptr %9, align 8, !tbaa !9
  %40 = load i32, ptr %28, align 4, !tbaa !11
  call void @_ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %10, ptr noundef %39) #6
  %41 = load i64, ptr %10, align 8
  %42 = getelementptr inbounds i8, ptr %10, i64 8
  %43 = load ptr, ptr %42, align 8
  call void @_ZN12_GLOBAL__N_118printShaderInfoLogEjSt17basic_string_viewIcSt11char_traitsIcEE(i32 noundef %40, i64 %41, ptr %43)
  call void @_ZN12_GLOBAL__N_113deleteShadersERKSt6vectorIN4abcg12OpenGLShaderESaIS2_EE(ptr noundef nonnull align 8 dereferenceable(24) %0)
  %44 = call ptr @__cxa_allocate_exception(i64 40) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %11) #6
  invoke void @_ZN3fmt3v1019basic_format_stringIcJRPKcEEC2IA28_cTnNSt9enable_ifIXsr3std14is_convertibleIRKT_NS0_17basic_string_viewIcEEEE5valueEiE4typeELi0EEESB_(ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef nonnull align 1 dereferenceable(28) @.str.5)
          to label %45 unwind label %.thread

45:                                               ; preds = %33
  %46 = load ptr, ptr %12, align 8
  %47 = getelementptr inbounds i8, ptr %12, i64 8
  %48 = load i64, ptr %47, align 8
  invoke void @_ZN3fmt3v106formatIJRPKcEEENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_19basic_format_stringIcJDpNS0_13type_identityIT_E4typeEEEEDpOSD_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %11, ptr %46, i64 %48, ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %49 unwind label %.thread

49:                                               ; preds = %45
  %50 = call { i64, ptr } @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEcvSt17basic_string_viewIcS2_EEv(ptr noundef nonnull align 8 dereferenceable(32) %11) #6
  %51 = extractvalue { i64, ptr } %50, 0
  %52 = extractvalue { i64, ptr } %50, 1
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %13) #6
  call void @_ZNSt12experimental15fundamentals_v215source_location7currentEPKcS3_ii(ptr dead_on_unwind nonnull writable sret(%"struct.std::experimental::fundamentals_v2::source_location") align 8 %13, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.6, i32 noundef 296, i32 noundef 0) #6
  invoke void @_ZN4abcg12RuntimeErrorC1ESt17basic_string_viewIcSt11char_traitsIcEERKNSt12experimental15fundamentals_v215source_locationE(ptr noundef nonnull align 8 dereferenceable(40) %44, i64 %51, ptr %52, ptr noundef nonnull align 8 dereferenceable(24) %13)
          to label %54 unwind label %.thread29

.thread29:                                        ; preds = %49
  %53 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %13) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %11) #6
  br label %58

54:                                               ; preds = %49
  invoke void @__cxa_throw(ptr nonnull %44, ptr nonnull @_ZTIN4abcg12RuntimeErrorE, ptr nonnull @_ZN4abcg9ExceptionD2Ev) #7
          to label %64 unwind label %56

.thread:                                          ; preds = %33, %45
  %55 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %11) #6
  br label %58

56:                                               ; preds = %54
  %57 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %13) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %11) #6
  br label %59

58:                                               ; preds = %.thread29, %.thread
  %.pn28 = phi { ptr, i32 } [ %55, %.thread ], [ %53, %.thread29 ]
  call void @__cxa_free_exception(ptr %44) #6
  br label %59

59:                                               ; preds = %56, %58
  %.pn27 = phi { ptr, i32 } [ %.pn28, %58 ], [ %57, %56 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #6
  resume { ptr, i32 } %.pn27

60:                                               ; preds = %32
  call void @_ZN12_GLOBAL__N_113deleteShadersERKSt6vectorIN4abcg12OpenGLShaderESaIS2_EE(ptr noundef nonnull align 8 dereferenceable(24) %0)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #6
  br label %.loopexit

61:                                               ; preds = %.lr.ph
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #6
  %62 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN4iter4impl10EnumerableIRKSt6vectorIN4abcg12OpenGLShaderESaIS4_EEmE8IteratorIS8_EppEv(ptr noundef nonnull align 8 dereferenceable(16) %4)
  %63 = call noundef zeroext i1 @_ZNK4iter4impl10EnumerableIRKSt6vectorIN4abcg12OpenGLShaderESaIS4_EEmE8IteratorIS8_EneIS8_EEbRKNSA_IT_EE(ptr noundef nonnull align 8 dereferenceable(16) %4, ptr noundef nonnull align 8 dereferenceable(16) %5)
  br i1 %63, label %.lr.ph, label %.loopexit

.loopexit:                                        ; preds = %61, %2, %60
  %switch = phi i1 [ false, %60 ], [ true, %2 ], [ true, %61 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #6
  ret i1 %switch

64:                                               ; preds = %54
  unreachable
}

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

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

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

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

declare void @__cxa_free_exception(ptr) local_unnamed_addr

; 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 dso_local { ptr, i64 } @_ZNK4iter4impl28IterToolFnOptionalBindSecondINS0_10EnumerableEmEclIRKSt6vectorIN4abcg12OpenGLShaderESaIS7_EEvEEDaOT_(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i64 } @_ZN4iter4impl10EnumerableIRKSt6vectorIN4abcg12OpenGLShaderESaIS4_EEmE5beginEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i64 } @_ZN4iter4impl10EnumerableIRKSt6vectorIN4abcg12OpenGLShaderESaIS4_EEmE3endEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK4iter4impl10EnumerableIRKSt6vectorIN4abcg12OpenGLShaderESaIS4_EEmE8IteratorIS8_EneIS8_EEbRKNSA_IT_EE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4iter4impl10EnumerableIRKSt6vectorIN4abcg12OpenGLShaderESaIS4_EEmE8IteratorIS8_EdeEv(ptr dead_on_unwind noalias writable sret(%"class.iter::impl::EnumIterYield") align 8, ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #2 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef ptr @_ZN12_GLOBAL__N_117shaderStageToTextEj(i32 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN12_GLOBAL__N_118printShaderInfoLogEjSt17basic_string_viewIcSt11char_traitsIcEE(i32 noundef, i64, ptr) local_unnamed_addr #2

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

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

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

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

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


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass