; LLVM IR from paroj/gltut :: Tut 14 Textures Are Not Pictures (BasicTexture)

; 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.ProgramData = type { i32, i32, i32 }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@_funcptr_glGetUniformLocation = external global ptr, align 8
@.str = external hidden unnamed_addr constant [20 x i8], align 1
@_funcptr_glGetUniformBlockIndex = external global ptr, align 8
@.str.2 = external hidden unnamed_addr constant [11 x i8], align 1
@_funcptr_glUniformBlockBinding = external global ptr, align 8
@.str.3 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [16 x i8], align 1
@_funcptr_glUseProgram = external global ptr, align 8
@_funcptr_glUniform1i = external global ptr, align 8

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

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

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

declare noundef i32 @_ZN9Framework10LoadShaderEjRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(i32 noundef, ptr noundef nonnull align 8 dereferenceable(32)) #3

declare i32 @__gxx_personality_v0(...)

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

declare noundef i32 @_ZN9Framework13CreateProgramERKSt6vectorIjSaIjEE(ptr noundef nonnull align 8 dereferenceable(24)) #3

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #4

; Function Attrs: mustprogress uwtable
define dso_local { i64, i32 } @_Z19LoadStandardProgramRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES6_(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull align 8 dereferenceable(32) %1) #2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %struct.ProgramData, align 4
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca %"class.std::vector", align 8
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca { i64, i32 }, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %6) #5
  call void @_ZNSt6vectorIjSaIjEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  %16 = load ptr, ptr %4, align 8, !tbaa !5
  %17 = invoke noundef i32 @_ZN9Framework10LoadShaderEjRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(i32 noundef 35633, ptr noundef nonnull align 8 dereferenceable(32) %16)
          to label %18 unwind label %84

18:                                               ; preds = %2
  store i32 %17, ptr %7, align 4, !tbaa !9
  invoke void @_ZNSt6vectorIjSaIjEE9push_backEOj(ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 4 dereferenceable(4) %7)
          to label %19 unwind label %84

19:                                               ; preds = %18
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  %20 = load ptr, ptr %5, align 8, !tbaa !5
  %21 = invoke noundef i32 @_ZN9Framework10LoadShaderEjRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(i32 noundef 35632, ptr noundef nonnull align 8 dereferenceable(32) %20)
          to label %22 unwind label %88

22:                                               ; preds = %19
  store i32 %21, ptr %10, align 4, !tbaa !9
  invoke void @_ZNSt6vectorIjSaIjEE9push_backEOj(ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 4 dereferenceable(4) %10)
          to label %23 unwind label %88

23:                                               ; preds = %22
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  %24 = invoke noundef i32 @_ZN9Framework13CreateProgramERKSt6vectorIjSaIjEE(ptr noundef nonnull align 8 dereferenceable(24) %6)
          to label %25 unwind label %92

25:                                               ; preds = %23
  %26 = getelementptr inbounds %struct.ProgramData, ptr %3, i32 0, i32 0
  store i32 %24, ptr %26, align 4, !tbaa !11
  %27 = load ptr, ptr @_funcptr_glGetUniformLocation, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.ProgramData, ptr %3, i32 0, i32 0
  %29 = load i32, ptr %28, align 4, !tbaa !11
  %30 = invoke i32 %27(i32 noundef %29, ptr noundef @.str)
          to label %31 unwind label %92

31:                                               ; preds = %25
  %32 = getelementptr inbounds %struct.ProgramData, ptr %3, i32 0, i32 1
  store i32 %30, ptr %32, align 4, !tbaa !13
  %33 = load ptr, ptr @_funcptr_glGetUniformLocation, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.ProgramData, ptr %3, i32 0, i32 0
  %35 = load i32, ptr %34, align 4, !tbaa !11
  %36 = invoke i32 %33(i32 noundef %35, ptr noundef @.str.3)
          to label %37 unwind label %92

37:                                               ; preds = %31
  %38 = getelementptr inbounds %struct.ProgramData, ptr %3, i32 0, i32 2
  store i32 %36, ptr %38, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  %39 = load ptr, ptr @_funcptr_glGetUniformBlockIndex, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.ProgramData, ptr %3, i32 0, i32 0
  %41 = load i32, ptr %40, align 4, !tbaa !11
  %42 = invoke i32 %39(i32 noundef %41, ptr noundef @.str.4)
          to label %43 unwind label %96

43:                                               ; preds = %37
  store i32 %42, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  %44 = load ptr, ptr @_funcptr_glGetUniformBlockIndex, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.ProgramData, ptr %3, i32 0, i32 0
  %46 = load i32, ptr %45, align 4, !tbaa !11
  %47 = invoke i32 %44(i32 noundef %46, ptr noundef @.str.5)
          to label %48 unwind label %100

48:                                               ; preds = %43
  store i32 %47, ptr %12, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  %49 = load ptr, ptr @_funcptr_glGetUniformBlockIndex, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.ProgramData, ptr %3, i32 0, i32 0
  %51 = load i32, ptr %50, align 4, !tbaa !11
  %52 = invoke i32 %49(i32 noundef %51, ptr noundef @.str.2)
          to label %53 unwind label %104

53:                                               ; preds = %48
  store i32 %52, ptr %13, align 4, !tbaa !9
  %54 = load ptr, ptr @_funcptr_glUniformBlockBinding, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.ProgramData, ptr %3, i32 0, i32 0
  %56 = load i32, ptr %55, align 4, !tbaa !11
  %57 = load i32, ptr %11, align 4, !tbaa !9
  invoke void %54(i32 noundef %56, i32 noundef %57, i32 noundef 0)
          to label %58 unwind label %104

58:                                               ; preds = %53
  %59 = load ptr, ptr @_funcptr_glUniformBlockBinding, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.ProgramData, ptr %3, i32 0, i32 0
  %61 = load i32, ptr %60, align 4, !tbaa !11
  %62 = load i32, ptr %12, align 4, !tbaa !9
  invoke void %59(i32 noundef %61, i32 noundef %62, i32 noundef 1)
          to label %63 unwind label %104

63:                                               ; preds = %58
  %64 = load ptr, ptr @_funcptr_glUniformBlockBinding, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.ProgramData, ptr %3, i32 0, i32 0
  %66 = load i32, ptr %65, align 4, !tbaa !11
  %67 = load i32, ptr %13, align 4, !tbaa !9
  invoke void %64(i32 noundef %66, i32 noundef %67, i32 noundef 2)
          to label %68 unwind label %104

68:                                               ; preds = %63
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  %69 = load ptr, ptr @_funcptr_glGetUniformLocation, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.ProgramData, ptr %3, i32 0, i32 0
  %71 = load i32, ptr %70, align 4, !tbaa !11
  %72 = invoke i32 %69(i32 noundef %71, ptr noundef @.str.6)
          to label %73 unwind label %108

73:                                               ; preds = %68
  store i32 %72, ptr %14, align 4, !tbaa !9
  %74 = load ptr, ptr @_funcptr_glUseProgram, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct.ProgramData, ptr %3, i32 0, i32 0
  %76 = load i32, ptr %75, align 4, !tbaa !11
  invoke void %74(i32 noundef %76)
          to label %77 unwind label %108

77:                                               ; preds = %73
  %78 = load ptr, ptr @_funcptr_glUniform1i, align 8, !tbaa !5
  %79 = load i32, ptr %14, align 4, !tbaa !9
  invoke void %78(i32 noundef %79, i32 noundef 0)
          to label %80 unwind label %108

80:                                               ; preds = %77
  %81 = load ptr, ptr @_funcptr_glUseProgram, align 8, !tbaa !5
  invoke void %81(i32 noundef 0)
          to label %82 unwind label %108

82:                                               ; preds = %80
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %6) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %15, ptr align 4 %3, i64 12, i1 false)
  %83 = load { i64, i32 }, ptr %15, align 8
  ret { i64, i32 } %83

84:                                               ; preds = %18, %2
  %85 = landingpad { ptr, i32 }
          cleanup
  %86 = extractvalue { ptr, i32 } %85, 0
  store ptr %86, ptr %8, align 8
  %87 = extractvalue { ptr, i32 } %85, 1
  store i32 %87, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  br label %115

88:                                               ; preds = %22, %19
  %89 = landingpad { ptr, i32 }
          cleanup
  %90 = extractvalue { ptr, i32 } %89, 0
  store ptr %90, ptr %8, align 8
  %91 = extractvalue { ptr, i32 } %89, 1
  store i32 %91, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  br label %115

92:                                               ; preds = %31, %25, %23
  %93 = landingpad { ptr, i32 }
          cleanup
  %94 = extractvalue { ptr, i32 } %93, 0
  store ptr %94, ptr %8, align 8
  %95 = extractvalue { ptr, i32 } %93, 1
  store i32 %95, ptr %9, align 4
  br label %115

96:                                               ; preds = %37
  %97 = landingpad { ptr, i32 }
          cleanup
  %98 = extractvalue { ptr, i32 } %97, 0
  store ptr %98, ptr %8, align 8
  %99 = extractvalue { ptr, i32 } %97, 1
  store i32 %99, ptr %9, align 4
  br label %114

100:                                              ; preds = %43
  %101 = landingpad { ptr, i32 }
          cleanup
  %102 = extractvalue { ptr, i32 } %101, 0
  store ptr %102, ptr %8, align 8
  %103 = extractvalue { ptr, i32 } %101, 1
  store i32 %103, ptr %9, align 4
  br label %113

104:                                              ; preds = %63, %58, %53, %48
  %105 = landingpad { ptr, i32 }
          cleanup
  %106 = extractvalue { ptr, i32 } %105, 0
  store ptr %106, ptr %8, align 8
  %107 = extractvalue { ptr, i32 } %105, 1
  store i32 %107, ptr %9, align 4
  br label %112

108:                                              ; preds = %80, %77, %73, %68
  %109 = landingpad { ptr, i32 }
          cleanup
  %110 = extractvalue { ptr, i32 } %109, 0
  store ptr %110, ptr %8, align 8
  %111 = extractvalue { ptr, i32 } %109, 1
  store i32 %111, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  br label %112

112:                                              ; preds = %108, %104
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  br label %113

113:                                              ; preds = %112, %100
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  br label %114

114:                                              ; preds = %113, %96
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  br label %115

115:                                              ; preds = %114, %92, %88, %84
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %6) #5
  br label %116

116:                                              ; preds = %115
  %117 = load ptr, ptr %8, align 8
  %118 = load i32, ptr %9, align 4
  %119 = insertvalue { ptr, i32 } poison, ptr %117, 0
  %120 = insertvalue { ptr, i32 } %119, i32 %118, 1
  resume { ptr, i32 } %120
}

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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"_ZTS11ProgramData", !10, i64 0, !10, i64 4, !10, i64 8}
!13 = !{!12, !10, i64 4}
!14 = !{!12, !10, i64 8}


; 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<unsigned int, std::allocator<unsigned int>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@_funcptr_glGetUniformLocation = external local_unnamed_addr global ptr, align 8
@.str = external hidden unnamed_addr constant [20 x i8], align 1
@_funcptr_glGetUniformBlockIndex = external local_unnamed_addr global ptr, align 8
@.str.2 = external hidden unnamed_addr constant [11 x i8], align 1
@_funcptr_glUniformBlockBinding = external local_unnamed_addr global ptr, align 8
@.str.3 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [16 x i8], align 1
@_funcptr_glUseProgram = external local_unnamed_addr global ptr, align 8
@_funcptr_glUniform1i = external local_unnamed_addr global ptr, align 8

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

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

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

declare noundef i32 @_ZN9Framework10LoadShaderEjRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(i32 noundef, ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #3

declare i32 @__gxx_personality_v0(...)

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

declare noundef i32 @_ZN9Framework13CreateProgramERKSt6vectorIjSaIjEE(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3

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

; Function Attrs: mustprogress uwtable
define dso_local { i64, i32 } @_Z19LoadStandardProgramRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES6_(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull align 8 dereferenceable(32) %1) local_unnamed_addr #2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.std::vector", align 8
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #4
  call void @_ZNSt6vectorIjSaIjEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #4
  %6 = invoke noundef i32 @_ZN9Framework10LoadShaderEjRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(i32 noundef 35633, ptr noundef nonnull align 8 dereferenceable(32) %0)
          to label %7 unwind label %44

7:                                                ; preds = %2
  store i32 %6, ptr %4, align 4, !tbaa !5
  invoke void @_ZNSt6vectorIjSaIjEE9push_backEOj(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 4 dereferenceable(4) %4)
          to label %8 unwind label %44

8:                                                ; preds = %7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #4
  %9 = invoke noundef i32 @_ZN9Framework10LoadShaderEjRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(i32 noundef 35632, ptr noundef nonnull align 8 dereferenceable(32) %1)
          to label %10 unwind label %46

10:                                               ; preds = %8
  store i32 %9, ptr %5, align 4, !tbaa !5
  invoke void @_ZNSt6vectorIjSaIjEE9push_backEOj(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 4 dereferenceable(4) %5)
          to label %11 unwind label %46

11:                                               ; preds = %10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #4
  %12 = invoke noundef i32 @_ZN9Framework13CreateProgramERKSt6vectorIjSaIjEE(ptr noundef nonnull align 8 dereferenceable(24) %3)
          to label %13 unwind label %48

13:                                               ; preds = %11
  %14 = load ptr, ptr @_funcptr_glGetUniformLocation, align 8, !tbaa !9
  %15 = invoke i32 %14(i32 noundef %12, ptr noundef nonnull @.str)
          to label %16 unwind label %48

16:                                               ; preds = %13
  %17 = load ptr, ptr @_funcptr_glGetUniformLocation, align 8, !tbaa !9
  %18 = invoke i32 %17(i32 noundef %12, ptr noundef nonnull @.str.3)
          to label %19 unwind label %48

19:                                               ; preds = %16
  %20 = load ptr, ptr @_funcptr_glGetUniformBlockIndex, align 8, !tbaa !9
  %21 = invoke i32 %20(i32 noundef %12, ptr noundef nonnull @.str.4)
          to label %22 unwind label %50

22:                                               ; preds = %19
  %23 = load ptr, ptr @_funcptr_glGetUniformBlockIndex, align 8, !tbaa !9
  %24 = invoke i32 %23(i32 noundef %12, ptr noundef nonnull @.str.5)
          to label %25 unwind label %52

25:                                               ; preds = %22
  %26 = load ptr, ptr @_funcptr_glGetUniformBlockIndex, align 8, !tbaa !9
  %27 = invoke i32 %26(i32 noundef %12, ptr noundef nonnull @.str.2)
          to label %28 unwind label %54

28:                                               ; preds = %25
  %29 = load ptr, ptr @_funcptr_glUniformBlockBinding, align 8, !tbaa !9
  invoke void %29(i32 noundef %12, i32 noundef %21, i32 noundef 0)
          to label %30 unwind label %54

30:                                               ; preds = %28
  %31 = load ptr, ptr @_funcptr_glUniformBlockBinding, align 8, !tbaa !9
  invoke void %31(i32 noundef %12, i32 noundef %24, i32 noundef 1)
          to label %32 unwind label %54

32:                                               ; preds = %30
  %33 = load ptr, ptr @_funcptr_glUniformBlockBinding, align 8, !tbaa !9
  invoke void %33(i32 noundef %12, i32 noundef %27, i32 noundef 2)
          to label %34 unwind label %54

34:                                               ; preds = %32
  %35 = load ptr, ptr @_funcptr_glGetUniformLocation, align 8, !tbaa !9
  %36 = invoke i32 %35(i32 noundef %12, ptr noundef nonnull @.str.6)
          to label %37 unwind label %56

37:                                               ; preds = %34
  %38 = load ptr, ptr @_funcptr_glUseProgram, align 8, !tbaa !9
  invoke void %38(i32 noundef %12)
          to label %39 unwind label %56

39:                                               ; preds = %37
  %40 = load ptr, ptr @_funcptr_glUniform1i, align 8, !tbaa !9
  invoke void %40(i32 noundef %36, i32 noundef 0)
          to label %41 unwind label %56

41:                                               ; preds = %39
  %42 = load ptr, ptr @_funcptr_glUseProgram, align 8, !tbaa !9
  invoke void %42(i32 noundef 0)
          to label %43 unwind label %56

43:                                               ; preds = %41
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #4
  %.sroa.12.0.insert.ext = zext i32 %15 to i64
  %.sroa.12.0.insert.shift = shl nuw i64 %.sroa.12.0.insert.ext, 32
  %.sroa.07.0.insert.ext = zext i32 %12 to i64
  %.sroa.07.0.insert.insert = or disjoint i64 %.sroa.12.0.insert.shift, %.sroa.07.0.insert.ext
  %.fca.0.insert = insertvalue { i64, i32 } poison, i64 %.sroa.07.0.insert.insert, 0
  %.fca.1.insert = insertvalue { i64, i32 } %.fca.0.insert, i32 %18, 1
  ret { i64, i32 } %.fca.1.insert

44:                                               ; preds = %7, %2
  %45 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #4
  br label %58

46:                                               ; preds = %10, %8
  %47 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #4
  br label %58

48:                                               ; preds = %16, %13, %11
  %49 = landingpad { ptr, i32 }
          cleanup
  br label %58

50:                                               ; preds = %19
  %51 = landingpad { ptr, i32 }
          cleanup
  br label %58

52:                                               ; preds = %22
  %53 = landingpad { ptr, i32 }
          cleanup
  br label %58

54:                                               ; preds = %32, %30, %28, %25
  %55 = landingpad { ptr, i32 }
          cleanup
  br label %58

56:                                               ; preds = %41, %39, %37, %34
  %57 = landingpad { ptr, i32 }
          cleanup
  br label %58

58:                                               ; preds = %50, %54, %56, %52, %48, %46, %44
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %49, %48 ], [ %47, %46 ], [ %45, %44 ], [ %51, %50 ], [ %53, %52 ], [ %57, %56 ], [ %55, %54 ]
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #4
  resume { ptr, i32 } %.pn.pn.pn.pn
}

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 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"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}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,ReassociatePass,SROAPass,SimplifyCFGPass