; LLVM IR from Devaniti/BoolkaEngine :: ThirdParty/imgui/backends (imgui_impl_opengl3)

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

@_ZL19g_GlslVersionString = external hidden global [32 x i8], align 16
@_ZL14g_ShaderHandle = external hidden global i32, align 4
@__glewBindVertexArray = external global ptr, align 8
@__glewBindBuffer = external global ptr, align 8
@.str.8 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [245 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [216 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [307 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [282 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [204 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [160 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [207 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [182 x i8], align 1
@__glewCreateShader = external global ptr, align 8
@_ZL12g_VertHandle = external hidden global i32, align 4
@__glewShaderSource = external global ptr, align 8
@__glewCompileShader = external global ptr, align 8
@.str.17 = external hidden unnamed_addr constant [14 x i8], align 1
@_ZL12g_FragHandle = external hidden global i32, align 4
@.str.18 = external hidden unnamed_addr constant [16 x i8], align 1
@__glewCreateProgram = external global ptr, align 8
@__glewAttachShader = external global ptr, align 8
@__glewLinkProgram = external global ptr, align 8
@.str.19 = external hidden unnamed_addr constant [15 x i8], align 1
@__glewGetUniformLocation = external global ptr, align 8
@.str.20 = external hidden unnamed_addr constant [8 x i8], align 1
@_ZL19g_AttribLocationTex = external hidden global i32, align 4
@.str.21 = external hidden unnamed_addr constant [8 x i8], align 1
@_ZL23g_AttribLocationProjMtx = external hidden global i32, align 4
@__glewGetAttribLocation = external global ptr, align 8
@.str.22 = external hidden unnamed_addr constant [9 x i8], align 1
@_ZL22g_AttribLocationVtxPos = external hidden global i32, align 4
@.str.23 = external hidden unnamed_addr constant [3 x i8], align 1
@_ZL21g_AttribLocationVtxUV = external hidden global i32, align 4
@.str.24 = external hidden unnamed_addr constant [6 x i8], align 1
@_ZL24g_AttribLocationVtxColor = external hidden global i32, align 4
@__glewGenBuffers = external global ptr, align 8
@_ZL11g_VboHandle = external hidden global i32, align 4
@_ZL16g_ElementsHandle = external hidden global i32, align 4

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

declare void @glGetIntegerv(i32 noundef, ptr noundef) #1

; Function Attrs: nounwind
declare i32 @__isoc99_sscanf(ptr noundef, ptr noundef, ...) #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 @_Z37ImGui_ImplOpenGL3_CreateDeviceObjectsv() #3 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca [2 x ptr], align 16
  %16 = alloca [2 x ptr], align 16
  call void @llvm.lifetime.start.p0(i64 4, ptr %1) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #4
  call void @glGetIntegerv(i32 noundef 32873, ptr noundef %1)
  call void @glGetIntegerv(i32 noundef 34964, ptr noundef %2)
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #4
  call void @glGetIntegerv(i32 noundef 34229, ptr noundef %3)
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #4
  store i32 130, ptr %4, align 4, !tbaa !5
  %17 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef @_ZL19g_GlslVersionString, ptr noundef @.str.8, ptr noundef %4) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
  store ptr @.str.9, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  store ptr @.str.10, ptr %6, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  store ptr @.str.11, ptr %7, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  store ptr @.str.12, ptr %8, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  store ptr @.str.13, ptr %9, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  store ptr @.str.14, ptr %10, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  store ptr @.str.15, ptr %11, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  store ptr @.str.16, ptr %12, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  store ptr null, ptr %13, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  store ptr null, ptr %14, align 8, !tbaa !9
  %18 = load i32, ptr %4, align 4, !tbaa !5
  %19 = icmp slt i32 %18, 130
  br i1 %19, label %20, label %23

20:                                               ; preds = %0
  %21 = load ptr, ptr %5, align 8, !tbaa !9
  store ptr %21, ptr %13, align 8, !tbaa !9
  %22 = load ptr, ptr %9, align 8, !tbaa !9
  store ptr %22, ptr %14, align 8, !tbaa !9
  br label %40

23:                                               ; preds = %0
  %24 = load i32, ptr %4, align 4, !tbaa !5
  %25 = icmp sge i32 %24, 410
  br i1 %25, label %26, label %29

26:                                               ; preds = %23
  %27 = load ptr, ptr %8, align 8, !tbaa !9
  store ptr %27, ptr %13, align 8, !tbaa !9
  %28 = load ptr, ptr %12, align 8, !tbaa !9
  store ptr %28, ptr %14, align 8, !tbaa !9
  br label %39

29:                                               ; preds = %23
  %30 = load i32, ptr %4, align 4, !tbaa !5
  %31 = icmp eq i32 %30, 300
  br i1 %31, label %32, label %35

32:                                               ; preds = %29
  %33 = load ptr, ptr %7, align 8, !tbaa !9
  store ptr %33, ptr %13, align 8, !tbaa !9
  %34 = load ptr, ptr %11, align 8, !tbaa !9
  store ptr %34, ptr %14, align 8, !tbaa !9
  br label %38

35:                                               ; preds = %29
  %36 = load ptr, ptr %6, align 8, !tbaa !9
  store ptr %36, ptr %13, align 8, !tbaa !9
  %37 = load ptr, ptr %10, align 8, !tbaa !9
  store ptr %37, ptr %14, align 8, !tbaa !9
  br label %38

38:                                               ; preds = %35, %32
  br label %39

39:                                               ; preds = %38, %26
  br label %40

40:                                               ; preds = %39, %20
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #4
  store ptr @_ZL19g_GlslVersionString, ptr %15, align 8, !tbaa !9
  %41 = getelementptr inbounds ptr, ptr %15, i64 1
  %42 = load ptr, ptr %13, align 8, !tbaa !9
  store ptr %42, ptr %41, align 8, !tbaa !9
  %43 = load ptr, ptr @__glewCreateShader, align 8, !tbaa !9
  %44 = call i32 %43(i32 noundef 35633)
  store i32 %44, ptr @_ZL12g_VertHandle, align 4, !tbaa !5
  %45 = load ptr, ptr @__glewShaderSource, align 8, !tbaa !9
  %46 = load i32, ptr @_ZL12g_VertHandle, align 4, !tbaa !5
  %47 = getelementptr inbounds [2 x ptr], ptr %15, i64 0, i64 0
  call void %45(i32 noundef %46, i32 noundef 2, ptr noundef %47, ptr noundef null)
  %48 = load ptr, ptr @__glewCompileShader, align 8, !tbaa !9
  %49 = load i32, ptr @_ZL12g_VertHandle, align 4, !tbaa !5
  call void %48(i32 noundef %49)
  %50 = load i32, ptr @_ZL12g_VertHandle, align 4, !tbaa !5
  %51 = call noundef zeroext i1 @_ZL11CheckShaderjPKc(i32 noundef %50, ptr noundef @.str.17)
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #4
  store ptr @_ZL19g_GlslVersionString, ptr %16, align 8, !tbaa !9
  %52 = getelementptr inbounds ptr, ptr %16, i64 1
  %53 = load ptr, ptr %14, align 8, !tbaa !9
  store ptr %53, ptr %52, align 8, !tbaa !9
  %54 = load ptr, ptr @__glewCreateShader, align 8, !tbaa !9
  %55 = call i32 %54(i32 noundef 35632)
  store i32 %55, ptr @_ZL12g_FragHandle, align 4, !tbaa !5
  %56 = load ptr, ptr @__glewShaderSource, align 8, !tbaa !9
  %57 = load i32, ptr @_ZL12g_FragHandle, align 4, !tbaa !5
  %58 = getelementptr inbounds [2 x ptr], ptr %16, i64 0, i64 0
  call void %56(i32 noundef %57, i32 noundef 2, ptr noundef %58, ptr noundef null)
  %59 = load ptr, ptr @__glewCompileShader, align 8, !tbaa !9
  %60 = load i32, ptr @_ZL12g_FragHandle, align 4, !tbaa !5
  call void %59(i32 noundef %60)
  %61 = load i32, ptr @_ZL12g_FragHandle, align 4, !tbaa !5
  %62 = call noundef zeroext i1 @_ZL11CheckShaderjPKc(i32 noundef %61, ptr noundef @.str.18)
  %63 = load ptr, ptr @__glewCreateProgram, align 8, !tbaa !9
  %64 = call i32 %63()
  store i32 %64, ptr @_ZL14g_ShaderHandle, align 4, !tbaa !5
  %65 = load ptr, ptr @__glewAttachShader, align 8, !tbaa !9
  %66 = load i32, ptr @_ZL14g_ShaderHandle, align 4, !tbaa !5
  %67 = load i32, ptr @_ZL12g_VertHandle, align 4, !tbaa !5
  call void %65(i32 noundef %66, i32 noundef %67)
  %68 = load ptr, ptr @__glewAttachShader, align 8, !tbaa !9
  %69 = load i32, ptr @_ZL14g_ShaderHandle, align 4, !tbaa !5
  %70 = load i32, ptr @_ZL12g_FragHandle, align 4, !tbaa !5
  call void %68(i32 noundef %69, i32 noundef %70)
  %71 = load ptr, ptr @__glewLinkProgram, align 8, !tbaa !9
  %72 = load i32, ptr @_ZL14g_ShaderHandle, align 4, !tbaa !5
  call void %71(i32 noundef %72)
  %73 = load i32, ptr @_ZL14g_ShaderHandle, align 4, !tbaa !5
  %74 = call noundef zeroext i1 @_ZL12CheckProgramjPKc(i32 noundef %73, ptr noundef @.str.19)
  %75 = load ptr, ptr @__glewGetUniformLocation, align 8, !tbaa !9
  %76 = load i32, ptr @_ZL14g_ShaderHandle, align 4, !tbaa !5
  %77 = call i32 %75(i32 noundef %76, ptr noundef @.str.20)
  store i32 %77, ptr @_ZL19g_AttribLocationTex, align 4, !tbaa !5
  %78 = load ptr, ptr @__glewGetUniformLocation, align 8, !tbaa !9
  %79 = load i32, ptr @_ZL14g_ShaderHandle, align 4, !tbaa !5
  %80 = call i32 %78(i32 noundef %79, ptr noundef @.str.21)
  store i32 %80, ptr @_ZL23g_AttribLocationProjMtx, align 4, !tbaa !5
  %81 = load ptr, ptr @__glewGetAttribLocation, align 8, !tbaa !9
  %82 = load i32, ptr @_ZL14g_ShaderHandle, align 4, !tbaa !5
  %83 = call i32 %81(i32 noundef %82, ptr noundef @.str.22)
  store i32 %83, ptr @_ZL22g_AttribLocationVtxPos, align 4, !tbaa !5
  %84 = load ptr, ptr @__glewGetAttribLocation, align 8, !tbaa !9
  %85 = load i32, ptr @_ZL14g_ShaderHandle, align 4, !tbaa !5
  %86 = call i32 %84(i32 noundef %85, ptr noundef @.str.23)
  store i32 %86, ptr @_ZL21g_AttribLocationVtxUV, align 4, !tbaa !5
  %87 = load ptr, ptr @__glewGetAttribLocation, align 8, !tbaa !9
  %88 = load i32, ptr @_ZL14g_ShaderHandle, align 4, !tbaa !5
  %89 = call i32 %87(i32 noundef %88, ptr noundef @.str.24)
  store i32 %89, ptr @_ZL24g_AttribLocationVtxColor, align 4, !tbaa !5
  %90 = load ptr, ptr @__glewGenBuffers, align 8, !tbaa !9
  call void %90(i32 noundef 1, ptr noundef @_ZL11g_VboHandle)
  %91 = load ptr, ptr @__glewGenBuffers, align 8, !tbaa !9
  call void %91(i32 noundef 1, ptr noundef @_ZL16g_ElementsHandle)
  %92 = call noundef zeroext i1 @_Z36ImGui_ImplOpenGL3_CreateFontsTexturev()
  %93 = load i32, ptr %1, align 4, !tbaa !5
  call void @glBindTexture(i32 noundef 3553, i32 noundef %93)
  %94 = load ptr, ptr @__glewBindBuffer, align 8, !tbaa !9
  %95 = load i32, ptr %2, align 4, !tbaa !5
  call void %94(i32 noundef 34962, i32 noundef %95)
  %96 = load ptr, ptr @__glewBindVertexArray, align 8, !tbaa !9
  %97 = load i32, ptr %3, align 4, !tbaa !5
  call void %96(i32 noundef %97)
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #4
  ret i1 true
}

declare void @glBindTexture(i32 noundef, i32 noundef) #1

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z36ImGui_ImplOpenGL3_CreateFontsTexturev() #3

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZL11CheckShaderjPKc(i32 noundef, ptr noundef) #3

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZL12CheckProgramjPKc(i32 noundef, ptr noundef) #3

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


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

@_ZL19g_GlslVersionString = external hidden global [32 x i8], align 16
@_ZL14g_ShaderHandle = external hidden local_unnamed_addr global i32, align 4
@__glewBindVertexArray = external local_unnamed_addr global ptr, align 8
@__glewBindBuffer = external local_unnamed_addr global ptr, align 8
@.str.8 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [245 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [216 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [307 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [282 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [204 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [160 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [207 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [182 x i8], align 1
@__glewCreateShader = external local_unnamed_addr global ptr, align 8
@_ZL12g_VertHandle = external hidden local_unnamed_addr global i32, align 4
@__glewShaderSource = external local_unnamed_addr global ptr, align 8
@__glewCompileShader = external local_unnamed_addr global ptr, align 8
@.str.17 = external hidden unnamed_addr constant [14 x i8], align 1
@_ZL12g_FragHandle = external hidden local_unnamed_addr global i32, align 4
@.str.18 = external hidden unnamed_addr constant [16 x i8], align 1
@__glewCreateProgram = external local_unnamed_addr global ptr, align 8
@__glewAttachShader = external local_unnamed_addr global ptr, align 8
@__glewLinkProgram = external local_unnamed_addr global ptr, align 8
@.str.19 = external hidden unnamed_addr constant [15 x i8], align 1
@__glewGetUniformLocation = external local_unnamed_addr global ptr, align 8
@.str.20 = external hidden unnamed_addr constant [8 x i8], align 1
@_ZL19g_AttribLocationTex = external hidden local_unnamed_addr global i32, align 4
@.str.21 = external hidden unnamed_addr constant [8 x i8], align 1
@_ZL23g_AttribLocationProjMtx = external hidden local_unnamed_addr global i32, align 4
@__glewGetAttribLocation = external local_unnamed_addr global ptr, align 8
@.str.22 = external hidden unnamed_addr constant [9 x i8], align 1
@_ZL22g_AttribLocationVtxPos = external hidden local_unnamed_addr global i32, align 4
@.str.23 = external hidden unnamed_addr constant [3 x i8], align 1
@_ZL21g_AttribLocationVtxUV = external hidden local_unnamed_addr global i32, align 4
@.str.24 = external hidden unnamed_addr constant [6 x i8], align 1
@_ZL24g_AttribLocationVtxColor = external hidden local_unnamed_addr global i32, align 4
@__glewGenBuffers = external local_unnamed_addr global ptr, align 8
@_ZL11g_VboHandle = external hidden global i32, align 4
@_ZL16g_ElementsHandle = external hidden global i32, align 4

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

declare void @glGetIntegerv(i32 noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_sscanf(ptr nocapture noundef readonly, ptr nocapture noundef readonly, ...) local_unnamed_addr #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 @_Z37ImGui_ImplOpenGL3_CreateDeviceObjectsv() local_unnamed_addr #3 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca [2 x ptr], align 16
  %6 = alloca [2 x ptr], align 16
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #4
  call void @glGetIntegerv(i32 noundef 32873, ptr noundef nonnull %1)
  call void @glGetIntegerv(i32 noundef 34964, ptr noundef nonnull %2)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #4
  call void @glGetIntegerv(i32 noundef 34229, ptr noundef nonnull %3)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #4
  store i32 130, ptr %4, align 4, !tbaa !5
  %7 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef nonnull @_ZL19g_GlslVersionString, ptr noundef nonnull @.str.8, ptr noundef nonnull %4) #4
  %8 = load i32, ptr %4, align 4, !tbaa !5
  %9 = icmp slt i32 %8, 130
  br i1 %9, label %14, label %10

10:                                               ; preds = %0
  %11 = icmp ugt i32 %8, 409
  br i1 %11, label %14, label %12

12:                                               ; preds = %10
  %13 = icmp eq i32 %8, 300
  %.str.11..str.10 = select i1 %13, ptr @.str.11, ptr @.str.10
  %.str.15..str.14 = select i1 %13, ptr @.str.15, ptr @.str.14
  br label %14

14:                                               ; preds = %12, %10, %0
  %.010 = phi ptr [ @.str.9, %0 ], [ @.str.12, %10 ], [ %.str.11..str.10, %12 ]
  %.0 = phi ptr [ @.str.13, %0 ], [ @.str.16, %10 ], [ %.str.15..str.14, %12 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #4
  store ptr @_ZL19g_GlslVersionString, ptr %5, align 16, !tbaa !9
  %15 = getelementptr inbounds i8, ptr %5, i64 8
  store ptr %.010, ptr %15, align 8, !tbaa !9
  %16 = load ptr, ptr @__glewCreateShader, align 8, !tbaa !9
  %17 = call i32 %16(i32 noundef 35633)
  store i32 %17, ptr @_ZL12g_VertHandle, align 4, !tbaa !5
  %18 = load ptr, ptr @__glewShaderSource, align 8, !tbaa !9
  call void %18(i32 noundef %17, i32 noundef 2, ptr noundef nonnull %5, ptr noundef null)
  %19 = load ptr, ptr @__glewCompileShader, align 8, !tbaa !9
  %20 = load i32, ptr @_ZL12g_VertHandle, align 4, !tbaa !5
  call void %19(i32 noundef %20)
  %21 = load i32, ptr @_ZL12g_VertHandle, align 4, !tbaa !5
  %22 = call noundef zeroext i1 @_ZL11CheckShaderjPKc(i32 noundef %21, ptr noundef nonnull @.str.17)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #4
  store ptr @_ZL19g_GlslVersionString, ptr %6, align 16, !tbaa !9
  %23 = getelementptr inbounds i8, ptr %6, i64 8
  store ptr %.0, ptr %23, align 8, !tbaa !9
  %24 = load ptr, ptr @__glewCreateShader, align 8, !tbaa !9
  %25 = call i32 %24(i32 noundef 35632)
  store i32 %25, ptr @_ZL12g_FragHandle, align 4, !tbaa !5
  %26 = load ptr, ptr @__glewShaderSource, align 8, !tbaa !9
  call void %26(i32 noundef %25, i32 noundef 2, ptr noundef nonnull %6, ptr noundef null)
  %27 = load ptr, ptr @__glewCompileShader, align 8, !tbaa !9
  %28 = load i32, ptr @_ZL12g_FragHandle, align 4, !tbaa !5
  call void %27(i32 noundef %28)
  %29 = load i32, ptr @_ZL12g_FragHandle, align 4, !tbaa !5
  %30 = call noundef zeroext i1 @_ZL11CheckShaderjPKc(i32 noundef %29, ptr noundef nonnull @.str.18)
  %31 = load ptr, ptr @__glewCreateProgram, align 8, !tbaa !9
  %32 = call i32 %31()
  store i32 %32, ptr @_ZL14g_ShaderHandle, align 4, !tbaa !5
  %33 = load ptr, ptr @__glewAttachShader, align 8, !tbaa !9
  %34 = load i32, ptr @_ZL12g_VertHandle, align 4, !tbaa !5
  call void %33(i32 noundef %32, i32 noundef %34)
  %35 = load ptr, ptr @__glewAttachShader, align 8, !tbaa !9
  %36 = load i32, ptr @_ZL14g_ShaderHandle, align 4, !tbaa !5
  %37 = load i32, ptr @_ZL12g_FragHandle, align 4, !tbaa !5
  call void %35(i32 noundef %36, i32 noundef %37)
  %38 = load ptr, ptr @__glewLinkProgram, align 8, !tbaa !9
  %39 = load i32, ptr @_ZL14g_ShaderHandle, align 4, !tbaa !5
  call void %38(i32 noundef %39)
  %40 = load i32, ptr @_ZL14g_ShaderHandle, align 4, !tbaa !5
  %41 = call noundef zeroext i1 @_ZL12CheckProgramjPKc(i32 noundef %40, ptr noundef nonnull @.str.19)
  %42 = load ptr, ptr @__glewGetUniformLocation, align 8, !tbaa !9
  %43 = load i32, ptr @_ZL14g_ShaderHandle, align 4, !tbaa !5
  %44 = call i32 %42(i32 noundef %43, ptr noundef nonnull @.str.20)
  store i32 %44, ptr @_ZL19g_AttribLocationTex, align 4, !tbaa !5
  %45 = load ptr, ptr @__glewGetUniformLocation, align 8, !tbaa !9
  %46 = load i32, ptr @_ZL14g_ShaderHandle, align 4, !tbaa !5
  %47 = call i32 %45(i32 noundef %46, ptr noundef nonnull @.str.21)
  store i32 %47, ptr @_ZL23g_AttribLocationProjMtx, align 4, !tbaa !5
  %48 = load ptr, ptr @__glewGetAttribLocation, align 8, !tbaa !9
  %49 = load i32, ptr @_ZL14g_ShaderHandle, align 4, !tbaa !5
  %50 = call i32 %48(i32 noundef %49, ptr noundef nonnull @.str.22)
  store i32 %50, ptr @_ZL22g_AttribLocationVtxPos, align 4, !tbaa !5
  %51 = load ptr, ptr @__glewGetAttribLocation, align 8, !tbaa !9
  %52 = load i32, ptr @_ZL14g_ShaderHandle, align 4, !tbaa !5
  %53 = call i32 %51(i32 noundef %52, ptr noundef nonnull @.str.23)
  store i32 %53, ptr @_ZL21g_AttribLocationVtxUV, align 4, !tbaa !5
  %54 = load ptr, ptr @__glewGetAttribLocation, align 8, !tbaa !9
  %55 = load i32, ptr @_ZL14g_ShaderHandle, align 4, !tbaa !5
  %56 = call i32 %54(i32 noundef %55, ptr noundef nonnull @.str.24)
  store i32 %56, ptr @_ZL24g_AttribLocationVtxColor, align 4, !tbaa !5
  %57 = load ptr, ptr @__glewGenBuffers, align 8, !tbaa !9
  call void %57(i32 noundef 1, ptr noundef nonnull @_ZL11g_VboHandle)
  %58 = load ptr, ptr @__glewGenBuffers, align 8, !tbaa !9
  call void %58(i32 noundef 1, ptr noundef nonnull @_ZL16g_ElementsHandle)
  %59 = call noundef zeroext i1 @_Z36ImGui_ImplOpenGL3_CreateFontsTexturev()
  %60 = load i32, ptr %1, align 4, !tbaa !5
  call void @glBindTexture(i32 noundef 3553, i32 noundef %60)
  %61 = load ptr, ptr @__glewBindBuffer, align 8, !tbaa !9
  %62 = load i32, ptr %2, align 4, !tbaa !5
  call void %61(i32 noundef 34962, i32 noundef %62)
  %63 = load ptr, ptr @__glewBindVertexArray, align 8, !tbaa !9
  %64 = load i32, ptr %3, align 4, !tbaa !5
  call void %63(i32 noundef %64)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #4
  ret i1 true
}

declare void @glBindTexture(i32 noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z36ImGui_ImplOpenGL3_CreateFontsTexturev() local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZL11CheckShaderjPKc(i32 noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZL12CheckProgramjPKc(i32 noundef, ptr noundef) local_unnamed_addr #3

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 = { nofree nounwind "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 = { 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 #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: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,SROAPass,SimplifyCFGPass