; LLVM IR from paroj/gltut :: Tut 10 Plane Lights (FragmentAttenuation)

; 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 = 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 [15 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [13 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
  %12 = 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
  %13 = load ptr, ptr %4, align 8, !tbaa !5
  %14 = invoke noundef i32 @_ZN9Framework10LoadShaderEjRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(i32 noundef 35633, ptr noundef nonnull align 8 dereferenceable(32) %13)
          to label %15 unwind label %92

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

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

19:                                               ; preds = %16
  store i32 %18, 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 %20 unwind label %96

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

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

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

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

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

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

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

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

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

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

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

81:                                               ; preds = %76
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  %82 = load ptr, ptr @_funcptr_glGetUniformBlockIndex, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.ProgramData, ptr %0, i32 0, i32 0
  %84 = load i32, ptr %83, align 4, !tbaa !11
  %85 = invoke i32 %82(i32 noundef %84, ptr noundef @.str.10)
          to label %86 unwind label %108

86:                                               ; preds = %81
  store i32 %85, ptr %12, align 4, !tbaa !9
  %87 = load ptr, ptr @_funcptr_glUniformBlockBinding, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.ProgramData, ptr %0, i32 0, i32 0
  %89 = load i32, ptr %88, align 4, !tbaa !11
  %90 = load i32, ptr %12, align 4, !tbaa !9
  invoke void %87(i32 noundef %89, i32 noundef %90, i32 noundef 1)
          to label %91 unwind label %108

91:                                               ; preds = %86
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  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

92:                                               ; preds = %15, %3
  %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
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  br label %113

96:                                               ; preds = %19, %16
  %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
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  br label %113

100:                                              ; preds = %64, %58, %52, %46, %40, %34, %28, %22, %20
  %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 = %76, %70
  %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 = %86, %81
  %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 %12) #4
  br label %112

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

113:                                              ; preds = %112, %100, %96, %92
  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 %114

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

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 = 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 [15 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [13 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 %57

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 %57

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 %59

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 %59

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 %61

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)
          to label %17 unwind label %61

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.3)
          to label %21 unwind label %61

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.4)
          to label %25 unwind label %61

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.5)
          to label %29 unwind label %61

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.6)
          to label %33 unwind label %61

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.7)
          to label %37 unwind label %61

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.8)
          to label %41 unwind label %61

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.9)
          to label %45 unwind label %61

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.2)
          to label %49 unwind label %63

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 %63

51:                                               ; preds = %49
  %52 = load ptr, ptr @_funcptr_glGetUniformBlockIndex, align 8, !tbaa !11
  %53 = invoke i32 %52(i32 noundef %13, ptr noundef nonnull @.str.10)
          to label %54 unwind label %65

54:                                               ; preds = %51
  %55 = load ptr, ptr @_funcptr_glUniformBlockBinding, align 8, !tbaa !11
  invoke void %55(i32 noundef %13, i32 noundef %53, i32 noundef 1)
          to label %56 unwind label %65

56:                                               ; preds = %54
  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

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

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

61:                                               ; preds = %41, %37, %33, %29, %25, %21, %17, %14, %12
  %62 = landingpad { ptr, i32 }
          cleanup
  br label %67

63:                                               ; preds = %49, %45
  %64 = landingpad { ptr, i32 }
          cleanup
  br label %67

65:                                               ; preds = %54, %51
  %66 = landingpad { ptr, i32 }
          cleanup
  br label %67

67:                                               ; preds = %63, %65, %61, %59, %57
  %.pn.pn = phi { ptr, i32 } [ %62, %61 ], [ %60, %59 ], [ %58, %57 ], [ %66, %65 ], [ %64, %63 ]
  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.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