; LLVM IR from paroj/gltut :: Tut 11 Shinies (BlinnVsPhongLighting)

; 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, i32, i32, i32, 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.6 = external hidden unnamed_addr constant [20 x i8], align 1
@_funcptr_glGetUniformBlockIndex = external global ptr, align 8
@.str.8 = external hidden unnamed_addr constant [11 x i8], align 1
@_funcptr_glUniformBlockBinding = external global ptr, align 8
@.str.9 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [17 x i8], align 1

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

; Function Attrs: 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: mustprogress uwtable
define dso_local void @_Z14LoadLitProgramRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES6_(ptr dead_on_unwind noalias writable sret(%struct.ProgramData) align 4 %0, ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef nonnull align 8 dereferenceable(32) %2) #2 personality ptr @__gxx_personality_v0 {
  %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
  store ptr %1, ptr %4, align 8, !tbaa !5
  store ptr %2, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %6) #4
  call void @_ZNSt6vectorIjSaIjEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  %12 = load ptr, ptr %4, align 8, !tbaa !5
  %13 = invoke noundef i32 @_ZN9Framework10LoadShaderEjRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(i32 noundef 35633, ptr noundef nonnull align 8 dereferenceable(32) %12)
          to label %14 unwind label %81

14:                                               ; preds = %3
  store i32 %13, 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 %15 unwind label %81

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

18:                                               ; preds = %15
  store i32 %17, 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 %19 unwind label %85

19:                                               ; preds = %18
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  %20 = invoke noundef i32 @_ZN9Framework13CreateProgramERKSt6vectorIjSaIjEE(ptr noundef nonnull align 8 dereferenceable(24) %6)
          to label %21 unwind label %89

21:                                               ; preds = %19
  %22 = getelementptr inbounds %struct.ProgramData, ptr %0, i32 0, i32 0
  store i32 %20, ptr %22, align 4, !tbaa !11
  %23 = load ptr, ptr @_funcptr_glGetUniformLocation, align 8, !tbaa !5
  %24 = getelementptr inbounds %struct.ProgramData, ptr %0, i32 0, i32 0
  %25 = load i32, ptr %24, align 4, !tbaa !11
  %26 = invoke i32 %23(i32 noundef %25, ptr noundef @.str.6)
          to label %27 unwind label %89

27:                                               ; preds = %21
  %28 = getelementptr inbounds %struct.ProgramData, ptr %0, i32 0, i32 1
  store i32 %26, ptr %28, align 4, !tbaa !13
  %29 = load ptr, ptr @_funcptr_glGetUniformLocation, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.ProgramData, ptr %0, i32 0, i32 0
  %31 = load i32, ptr %30, align 4, !tbaa !11
  %32 = invoke i32 %29(i32 noundef %31, ptr noundef @.str.9)
          to label %33 unwind label %89

33:                                               ; preds = %27
  %34 = getelementptr inbounds %struct.ProgramData, ptr %0, i32 0, i32 2
  store i32 %32, ptr %34, align 4, !tbaa !14
  %35 = load ptr, ptr @_funcptr_glGetUniformLocation, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.ProgramData, ptr %0, i32 0, i32 0
  %37 = load i32, ptr %36, align 4, !tbaa !11
  %38 = invoke i32 %35(i32 noundef %37, ptr noundef @.str.10)
          to label %39 unwind label %89

39:                                               ; preds = %33
  %40 = getelementptr inbounds %struct.ProgramData, ptr %0, i32 0, i32 3
  store i32 %38, ptr %40, align 4, !tbaa !15
  %41 = load ptr, ptr @_funcptr_glGetUniformLocation, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.ProgramData, ptr %0, i32 0, i32 0
  %43 = load i32, ptr %42, align 4, !tbaa !11
  %44 = invoke i32 %41(i32 noundef %43, ptr noundef @.str.11)
          to label %45 unwind label %89

45:                                               ; preds = %39
  %46 = getelementptr inbounds %struct.ProgramData, ptr %0, i32 0, i32 4
  store i32 %44, ptr %46, align 4, !tbaa !16
  %47 = load ptr, ptr @_funcptr_glGetUniformLocation, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.ProgramData, ptr %0, i32 0, i32 0
  %49 = load i32, ptr %48, align 4, !tbaa !11
  %50 = invoke i32 %47(i32 noundef %49, ptr noundef @.str.12)
          to label %51 unwind label %89

51:                                               ; preds = %45
  %52 = getelementptr inbounds %struct.ProgramData, ptr %0, i32 0, i32 5
  store i32 %50, ptr %52, align 4, !tbaa !17
  %53 = load ptr, ptr @_funcptr_glGetUniformLocation, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.ProgramData, ptr %0, i32 0, i32 0
  %55 = load i32, ptr %54, align 4, !tbaa !11
  %56 = invoke i32 %53(i32 noundef %55, ptr noundef @.str.13)
          to label %57 unwind label %89

57:                                               ; preds = %51
  %58 = getelementptr inbounds %struct.ProgramData, ptr %0, i32 0, i32 6
  store i32 %56, ptr %58, align 4, !tbaa !18
  %59 = load ptr, ptr @_funcptr_glGetUniformLocation, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.ProgramData, ptr %0, i32 0, i32 0
  %61 = load i32, ptr %60, align 4, !tbaa !11
  %62 = invoke i32 %59(i32 noundef %61, ptr noundef @.str.14)
          to label %63 unwind label %89

63:                                               ; preds = %57
  %64 = getelementptr inbounds %struct.ProgramData, ptr %0, i32 0, i32 7
  store i32 %62, ptr %64, align 4, !tbaa !19
  %65 = load ptr, ptr @_funcptr_glGetUniformLocation, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.ProgramData, ptr %0, i32 0, i32 0
  %67 = load i32, ptr %66, align 4, !tbaa !11
  %68 = invoke i32 %65(i32 noundef %67, ptr noundef @.str.15)
          to label %69 unwind label %89

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

75:                                               ; preds = %69
  store i32 %74, ptr %11, align 4, !tbaa !9
  %76 = load ptr, ptr @_funcptr_glUniformBlockBinding, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.ProgramData, ptr %0, i32 0, i32 0
  %78 = load i32, ptr %77, align 4, !tbaa !11
  %79 = load i32, ptr %11, align 4, !tbaa !9
  invoke void %76(i32 noundef %78, i32 noundef %79, i32 noundef 2)
          to label %80 unwind label %93

80:                                               ; preds = %75
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %6) #4
  ret void

81:                                               ; preds = %14, %3
  %82 = landingpad { ptr, i32 }
          cleanup
  %83 = extractvalue { ptr, i32 } %82, 0
  store ptr %83, ptr %8, align 8
  %84 = extractvalue { ptr, i32 } %82, 1
  store i32 %84, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  br label %97

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

89:                                               ; preds = %63, %57, %51, %45, %39, %33, %27, %21, %19
  %90 = landingpad { ptr, i32 }
          cleanup
  %91 = extractvalue { ptr, i32 } %90, 0
  store ptr %91, ptr %8, align 8
  %92 = extractvalue { ptr, i32 } %90, 1
  store i32 %92, ptr %9, align 4
  br label %97

93:                                               ; preds = %75, %69
  %94 = landingpad { ptr, i32 }
          cleanup
  %95 = extractvalue { ptr, i32 } %94, 0
  store ptr %95, ptr %8, align 8
  %96 = extractvalue { ptr, i32 } %94, 1
  store i32 %96, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  br label %97

97:                                               ; preds = %93, %89, %85, %81
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %6) #4
  br label %98

98:                                               ; preds = %97
  %99 = load ptr, ptr %8, align 8
  %100 = load i32, ptr %9, align 4
  %101 = insertvalue { ptr, i32 } poison, ptr %99, 0
  %102 = insertvalue { ptr, i32 } %101, i32 %100, 1
  resume { ptr, i32 } %102
}

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 = { 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, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32}
!13 = !{!12, !10, i64 4}
!14 = !{!12, !10, i64 8}
!15 = !{!12, !10, i64 12}
!16 = !{!12, !10, i64 16}
!17 = !{!12, !10, i64 20}
!18 = !{!12, !10, i64 24}
!19 = !{!12, !10, i64 28}
!20 = !{!12, !10, i64 32}


; 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.ProgramData = type { i32, i32, i32, i32, i32, i32, 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 local_unnamed_addr global ptr, align 8
@.str.6 = external hidden unnamed_addr constant [20 x i8], align 1
@_funcptr_glGetUniformBlockIndex = external local_unnamed_addr global ptr, align 8
@.str.8 = external hidden unnamed_addr constant [11 x i8], align 1
@_funcptr_glUniformBlockBinding = external local_unnamed_addr global ptr, align 8
@.str.9 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [17 x i8], align 1

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

; Function Attrs: mustprogress 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 void @_Z14LoadLitProgramRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES6_(ptr dead_on_unwind noalias nocapture writable writeonly sret(%struct.ProgramData) align 4 %0, ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef nonnull align 8 dereferenceable(32) %2) local_unnamed_addr #2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.std::vector", align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #4
  call void @_ZNSt6vectorIjSaIjEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #4
  %7 = invoke noundef i32 @_ZN9Framework10LoadShaderEjRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(i32 noundef 35633, ptr noundef nonnull align 8 dereferenceable(32) %1)
          to label %8 unwind label %52

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

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

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

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

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

17:                                               ; preds = %14
  %18 = getelementptr inbounds i8, ptr %0, i64 4
  store i32 %16, ptr %18, align 4, !tbaa !13
  %19 = load ptr, ptr @_funcptr_glGetUniformLocation, align 8, !tbaa !11
  %20 = invoke i32 %19(i32 noundef %13, ptr noundef nonnull @.str.9)
          to label %21 unwind label %56

21:                                               ; preds = %17
  %22 = getelementptr inbounds i8, ptr %0, i64 8
  store i32 %20, ptr %22, align 4, !tbaa !14
  %23 = load ptr, ptr @_funcptr_glGetUniformLocation, align 8, !tbaa !11
  %24 = invoke i32 %23(i32 noundef %13, ptr noundef nonnull @.str.10)
          to label %25 unwind label %56

25:                                               ; preds = %21
  %26 = getelementptr inbounds i8, ptr %0, i64 12
  store i32 %24, ptr %26, align 4, !tbaa !15
  %27 = load ptr, ptr @_funcptr_glGetUniformLocation, align 8, !tbaa !11
  %28 = invoke i32 %27(i32 noundef %13, ptr noundef nonnull @.str.11)
          to label %29 unwind label %56

29:                                               ; preds = %25
  %30 = getelementptr inbounds i8, ptr %0, i64 16
  store i32 %28, ptr %30, align 4, !tbaa !16
  %31 = load ptr, ptr @_funcptr_glGetUniformLocation, align 8, !tbaa !11
  %32 = invoke i32 %31(i32 noundef %13, ptr noundef nonnull @.str.12)
          to label %33 unwind label %56

33:                                               ; preds = %29
  %34 = getelementptr inbounds i8, ptr %0, i64 20
  store i32 %32, ptr %34, align 4, !tbaa !17
  %35 = load ptr, ptr @_funcptr_glGetUniformLocation, align 8, !tbaa !11
  %36 = invoke i32 %35(i32 noundef %13, ptr noundef nonnull @.str.13)
          to label %37 unwind label %56

37:                                               ; preds = %33
  %38 = getelementptr inbounds i8, ptr %0, i64 24
  store i32 %36, ptr %38, align 4, !tbaa !18
  %39 = load ptr, ptr @_funcptr_glGetUniformLocation, align 8, !tbaa !11
  %40 = invoke i32 %39(i32 noundef %13, ptr noundef nonnull @.str.14)
          to label %41 unwind label %56

41:                                               ; preds = %37
  %42 = getelementptr inbounds i8, ptr %0, i64 28
  store i32 %40, ptr %42, align 4, !tbaa !19
  %43 = load ptr, ptr @_funcptr_glGetUniformLocation, align 8, !tbaa !11
  %44 = invoke i32 %43(i32 noundef %13, ptr noundef nonnull @.str.15)
          to label %45 unwind label %56

45:                                               ; preds = %41
  %46 = getelementptr inbounds i8, ptr %0, i64 32
  store i32 %44, ptr %46, align 4, !tbaa !20
  %47 = load ptr, ptr @_funcptr_glGetUniformBlockIndex, align 8, !tbaa !11
  %48 = invoke i32 %47(i32 noundef %13, ptr noundef nonnull @.str.8)
          to label %49 unwind label %58

49:                                               ; preds = %45
  %50 = load ptr, ptr @_funcptr_glUniformBlockBinding, align 8, !tbaa !11
  invoke void %50(i32 noundef %13, i32 noundef %48, i32 noundef 2)
          to label %51 unwind label %58

51:                                               ; preds = %49
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #4
  ret void

52:                                               ; preds = %8, %3
  %53 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #4
  br label %60

54:                                               ; preds = %11, %9
  %55 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #4
  br label %60

56:                                               ; preds = %41, %37, %33, %29, %25, %21, %17, %14, %12
  %57 = landingpad { ptr, i32 }
          cleanup
  br label %60

58:                                               ; preds = %49, %45
  %59 = landingpad { ptr, i32 }
          cleanup
  br label %60

60:                                               ; preds = %58, %56, %54, %52
  %.pn = phi { ptr, i32 } [ %59, %58 ], [ %57, %56 ], [ %55, %54 ], [ %53, %52 ]
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #4
  resume { ptr, i32 } %.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, !6, i64 0}
!10 = !{!"_ZTS11ProgramData", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !6, i64 16, !6, i64 20, !6, i64 24, !6, i64 28, !6, i64 32}
!11 = !{!12, !12, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{!10, !6, i64 4}
!14 = !{!10, !6, i64 8}
!15 = !{!10, !6, i64 12}
!16 = !{!10, !6, i64 16}
!17 = !{!10, !6, i64 20}
!18 = !{!10, !6, i64 24}
!19 = !{!10, !6, i64 28}
!20 = !{!10, !6, i64 32}


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