; LLVM IR from unitreerobotics/kinect_teleoperate :: src/extern/glfw/src/examples (offscreen)

; 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.anon = type { float, float, float, float, float }

@glad_glAttachShader = external dso_local global ptr, align 8
@glad_glBindBuffer = external dso_local global ptr, align 8
@glad_glBufferData = external dso_local global ptr, align 8
@glad_glClear = external dso_local global ptr, align 8
@glad_glCompileShader = external dso_local global ptr, align 8
@glad_glCreateProgram = external dso_local global ptr, align 8
@glad_glCreateShader = external dso_local global ptr, align 8
@glad_glDrawArrays = external dso_local global ptr, align 8
@glad_glEnableVertexAttribArray = external dso_local global ptr, align 8
@glad_glFinish = external dso_local global ptr, align 8
@glad_glGenBuffers = external dso_local global ptr, align 8
@glad_glGetAttribLocation = external dso_local global ptr, align 8
@glad_glGetUniformLocation = external dso_local global ptr, align 8
@glad_glLinkProgram = external dso_local global ptr, align 8
@glad_glReadPixels = external dso_local global ptr, align 8
@glad_glShaderSource = external dso_local global ptr, align 8
@glad_glUniformMatrix4fv = external dso_local global ptr, align 8
@glad_glUseProgram = external dso_local global ptr, align 8
@glad_glVertexAttribPointer = external dso_local global ptr, align 8
@glad_glViewport = external dso_local global ptr, align 8
@.str.8 = external hidden unnamed_addr constant [15 x i8], align 1
@vertices = external hidden constant [3 x %struct.anon], align 16
@vertex_shader_text = external hidden global ptr, align 8
@fragment_shader_text = external hidden global ptr, align 8
@.str.9 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [14 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: nounwind uwtable
declare dso_local i32 @gladLoadGL(ptr noundef) #1

; Function Attrs: nounwind
declare void @free(ptr noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local i32 @stbi_write_png(ptr noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef) #1

; Function Attrs: nounwind uwtable
define dso_local i32 @main() #1 {
  %1 = alloca i32, align 4
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca float, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca [4 x [4 x float]], align 16
  %14 = alloca ptr, align 8
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  call void @llvm.lifetime.start.p0(i64 64, ptr %13) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  %15 = call ptr @glfwSetErrorCallback(ptr noundef @error_callback)
  call void @glfwInitHint(i32 noundef 331778, i32 noundef 0)
  %16 = call i32 @glfwInit()
  %17 = icmp ne i32 %16, 0
  br i1 %17, label %19, label %18

18:                                               ; preds = %0
  call void @exit(i32 noundef 1) #8
  unreachable

19:                                               ; preds = %0
  call void @glfwWindowHint(i32 noundef 139266, i32 noundef 2)
  call void @glfwWindowHint(i32 noundef 139267, i32 noundef 0)
  call void @glfwWindowHint(i32 noundef 131076, i32 noundef 0)
  %20 = call ptr @glfwCreateWindow(i32 noundef 640, i32 noundef 480, ptr noundef @.str.8, ptr noundef null, ptr noundef null)
  store ptr %20, ptr %2, align 8, !tbaa !5
  %21 = load ptr, ptr %2, align 8, !tbaa !5
  %22 = icmp ne ptr %21, null
  br i1 %22, label %24, label %23

23:                                               ; preds = %19
  call void @glfwTerminate()
  call void @exit(i32 noundef 1) #8
  unreachable

24:                                               ; preds = %19
  %25 = load ptr, ptr %2, align 8, !tbaa !5
  call void @glfwMakeContextCurrent(ptr noundef %25)
  %26 = call i32 @gladLoadGL(ptr noundef @glfwGetProcAddress)
  %27 = load ptr, ptr @glad_glGenBuffers, align 8, !tbaa !5
  call void %27(i32 noundef 1, ptr noundef %3)
  %28 = load ptr, ptr @glad_glBindBuffer, align 8, !tbaa !5
  %29 = load i32, ptr %3, align 4, !tbaa !9
  call void %28(i32 noundef 34962, i32 noundef %29)
  %30 = load ptr, ptr @glad_glBufferData, align 8, !tbaa !5
  call void %30(i32 noundef 34962, i64 noundef 60, ptr noundef @vertices, i32 noundef 35044)
  %31 = load ptr, ptr @glad_glCreateShader, align 8, !tbaa !5
  %32 = call i32 %31(i32 noundef 35633)
  store i32 %32, ptr %4, align 4, !tbaa !9
  %33 = load ptr, ptr @glad_glShaderSource, align 8, !tbaa !5
  %34 = load i32, ptr %4, align 4, !tbaa !9
  call void %33(i32 noundef %34, i32 noundef 1, ptr noundef @vertex_shader_text, ptr noundef null)
  %35 = load ptr, ptr @glad_glCompileShader, align 8, !tbaa !5
  %36 = load i32, ptr %4, align 4, !tbaa !9
  call void %35(i32 noundef %36)
  %37 = load ptr, ptr @glad_glCreateShader, align 8, !tbaa !5
  %38 = call i32 %37(i32 noundef 35632)
  store i32 %38, ptr %5, align 4, !tbaa !9
  %39 = load ptr, ptr @glad_glShaderSource, align 8, !tbaa !5
  %40 = load i32, ptr %5, align 4, !tbaa !9
  call void %39(i32 noundef %40, i32 noundef 1, ptr noundef @fragment_shader_text, ptr noundef null)
  %41 = load ptr, ptr @glad_glCompileShader, align 8, !tbaa !5
  %42 = load i32, ptr %5, align 4, !tbaa !9
  call void %41(i32 noundef %42)
  %43 = load ptr, ptr @glad_glCreateProgram, align 8, !tbaa !5
  %44 = call i32 %43()
  store i32 %44, ptr %6, align 4, !tbaa !9
  %45 = load ptr, ptr @glad_glAttachShader, align 8, !tbaa !5
  %46 = load i32, ptr %6, align 4, !tbaa !9
  %47 = load i32, ptr %4, align 4, !tbaa !9
  call void %45(i32 noundef %46, i32 noundef %47)
  %48 = load ptr, ptr @glad_glAttachShader, align 8, !tbaa !5
  %49 = load i32, ptr %6, align 4, !tbaa !9
  %50 = load i32, ptr %5, align 4, !tbaa !9
  call void %48(i32 noundef %49, i32 noundef %50)
  %51 = load ptr, ptr @glad_glLinkProgram, align 8, !tbaa !5
  %52 = load i32, ptr %6, align 4, !tbaa !9
  call void %51(i32 noundef %52)
  %53 = load ptr, ptr @glad_glGetUniformLocation, align 8, !tbaa !5
  %54 = load i32, ptr %6, align 4, !tbaa !9
  %55 = call i32 %53(i32 noundef %54, ptr noundef @.str.9)
  store i32 %55, ptr %7, align 4, !tbaa !9
  %56 = load ptr, ptr @glad_glGetAttribLocation, align 8, !tbaa !5
  %57 = load i32, ptr %6, align 4, !tbaa !9
  %58 = call i32 %56(i32 noundef %57, ptr noundef @.str.10)
  store i32 %58, ptr %8, align 4, !tbaa !9
  %59 = load ptr, ptr @glad_glGetAttribLocation, align 8, !tbaa !5
  %60 = load i32, ptr %6, align 4, !tbaa !9
  %61 = call i32 %59(i32 noundef %60, ptr noundef @.str.11)
  store i32 %61, ptr %9, align 4, !tbaa !9
  %62 = load ptr, ptr @glad_glEnableVertexAttribArray, align 8, !tbaa !5
  %63 = load i32, ptr %8, align 4, !tbaa !9
  call void %62(i32 noundef %63)
  %64 = load ptr, ptr @glad_glVertexAttribPointer, align 8, !tbaa !5
  %65 = load i32, ptr %8, align 4, !tbaa !9
  call void %64(i32 noundef %65, i32 noundef 2, i32 noundef 5126, i8 noundef zeroext 0, i32 noundef 20, ptr noundef null)
  %66 = load ptr, ptr @glad_glEnableVertexAttribArray, align 8, !tbaa !5
  %67 = load i32, ptr %9, align 4, !tbaa !9
  call void %66(i32 noundef %67)
  %68 = load ptr, ptr @glad_glVertexAttribPointer, align 8, !tbaa !5
  %69 = load i32, ptr %9, align 4, !tbaa !9
  call void %68(i32 noundef %69, i32 noundef 3, i32 noundef 5126, i8 noundef zeroext 0, i32 noundef 20, ptr noundef inttoptr (i64 8 to ptr))
  %70 = load ptr, ptr %2, align 8, !tbaa !5
  call void @glfwGetFramebufferSize(ptr noundef %70, ptr noundef %11, ptr noundef %12)
  %71 = load i32, ptr %11, align 4, !tbaa !9
  %72 = sitofp i32 %71 to float
  %73 = load i32, ptr %12, align 4, !tbaa !9
  %74 = sitofp i32 %73 to float
  %75 = fdiv float %72, %74
  store float %75, ptr %10, align 4, !tbaa !11
  %76 = load ptr, ptr @glad_glViewport, align 8, !tbaa !5
  %77 = load i32, ptr %11, align 4, !tbaa !9
  %78 = load i32, ptr %12, align 4, !tbaa !9
  call void %76(i32 noundef 0, i32 noundef 0, i32 noundef %77, i32 noundef %78)
  %79 = load ptr, ptr @glad_glClear, align 8, !tbaa !5
  call void %79(i32 noundef 16384)
  %80 = getelementptr inbounds [4 x [4 x float]], ptr %13, i64 0, i64 0
  %81 = load float, ptr %10, align 4, !tbaa !11
  %82 = fneg float %81
  %83 = load float, ptr %10, align 4, !tbaa !11
  call void @mat4x4_ortho(ptr noundef %80, float noundef %82, float noundef %83, float noundef -1.000000e+00, float noundef 1.000000e+00, float noundef 1.000000e+00, float noundef -1.000000e+00)
  %84 = load ptr, ptr @glad_glUseProgram, align 8, !tbaa !5
  %85 = load i32, ptr %6, align 4, !tbaa !9
  call void %84(i32 noundef %85)
  %86 = load ptr, ptr @glad_glUniformMatrix4fv, align 8, !tbaa !5
  %87 = load i32, ptr %7, align 4, !tbaa !9
  %88 = getelementptr inbounds [4 x [4 x float]], ptr %13, i64 0, i64 0
  call void %86(i32 noundef %87, i32 noundef 1, i8 noundef zeroext 0, ptr noundef %88)
  %89 = load ptr, ptr @glad_glDrawArrays, align 8, !tbaa !5
  call void %89(i32 noundef 4, i32 noundef 0, i32 noundef 3)
  %90 = load ptr, ptr @glad_glFinish, align 8, !tbaa !5
  call void %90()
  %91 = load i32, ptr %11, align 4, !tbaa !9
  %92 = load i32, ptr %12, align 4, !tbaa !9
  %93 = mul nsw i32 %91, %92
  %94 = sext i32 %93 to i64
  %95 = call noalias ptr @calloc(i64 noundef 4, i64 noundef %94) #9
  store ptr %95, ptr %14, align 8, !tbaa !5
  %96 = load ptr, ptr @glad_glReadPixels, align 8, !tbaa !5
  %97 = load i32, ptr %11, align 4, !tbaa !9
  %98 = load i32, ptr %12, align 4, !tbaa !9
  %99 = load ptr, ptr %14, align 8, !tbaa !5
  call void %96(i32 noundef 0, i32 noundef 0, i32 noundef %97, i32 noundef %98, i32 noundef 6408, i32 noundef 5121, ptr noundef %99)
  %100 = load i32, ptr %11, align 4, !tbaa !9
  %101 = load i32, ptr %12, align 4, !tbaa !9
  %102 = load ptr, ptr %14, align 8, !tbaa !5
  %103 = load i32, ptr %11, align 4, !tbaa !9
  %104 = mul nsw i32 %103, 4
  %105 = load i32, ptr %12, align 4, !tbaa !9
  %106 = sub nsw i32 %105, 1
  %107 = mul nsw i32 %104, %106
  %108 = sext i32 %107 to i64
  %109 = getelementptr inbounds i8, ptr %102, i64 %108
  %110 = load i32, ptr %11, align 4, !tbaa !9
  %111 = sub nsw i32 0, %110
  %112 = mul nsw i32 %111, 4
  %113 = call i32 @stbi_write_png(ptr noundef @.str.12, i32 noundef %100, i32 noundef %101, i32 noundef 4, ptr noundef %109, i32 noundef %112)
  %114 = load ptr, ptr %14, align 8, !tbaa !5
  call void @free(ptr noundef %114) #7
  %115 = load ptr, ptr %2, align 8, !tbaa !5
  call void @glfwDestroyWindow(ptr noundef %115)
  call void @glfwTerminate()
  call void @exit(i32 noundef 0) #8
  unreachable
}

declare ptr @glfwSetErrorCallback(ptr noundef) #3

; Function Attrs: nounwind uwtable
declare hidden void @error_callback(i32 noundef, ptr noundef) #1

declare void @glfwInitHint(i32 noundef, i32 noundef) #3

declare i32 @glfwInit() #3

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) #4

declare void @glfwWindowHint(i32 noundef, i32 noundef) #3

declare ptr @glfwCreateWindow(i32 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef) #3

declare void @glfwTerminate() #3

declare void @glfwMakeContextCurrent(ptr noundef) #3

declare ptr @glfwGetProcAddress(ptr noundef) #3

declare void @glfwGetFramebufferSize(ptr noundef, ptr noundef, ptr noundef) #3

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @mat4x4_ortho(ptr noundef, float noundef, float noundef, float noundef, float noundef, float noundef, float noundef) #5

; Function Attrs: nounwind allocsize(0,1)
declare noalias ptr @calloc(i64 noundef, i64 noundef) #6

declare void @glfwDestroyWindow(ptr noundef) #3

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 = { 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 = { "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 = { noreturn 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 #5 = { inlinehint 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 #6 = { nounwind allocsize(0,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 #7 = { nounwind }
attributes #8 = { noreturn nounwind }
attributes #9 = { nounwind allocsize(0,1) }

!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/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"float", !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"

%struct.anon = type { float, float, float, float, float }

@glad_glAttachShader = external dso_local local_unnamed_addr global ptr, align 8
@glad_glBindBuffer = external dso_local local_unnamed_addr global ptr, align 8
@glad_glBufferData = external dso_local local_unnamed_addr global ptr, align 8
@glad_glClear = external dso_local local_unnamed_addr global ptr, align 8
@glad_glCompileShader = external dso_local local_unnamed_addr global ptr, align 8
@glad_glCreateProgram = external dso_local local_unnamed_addr global ptr, align 8
@glad_glCreateShader = external dso_local local_unnamed_addr global ptr, align 8
@glad_glDrawArrays = external dso_local local_unnamed_addr global ptr, align 8
@glad_glEnableVertexAttribArray = external dso_local local_unnamed_addr global ptr, align 8
@glad_glFinish = external dso_local local_unnamed_addr global ptr, align 8
@glad_glGenBuffers = external dso_local local_unnamed_addr global ptr, align 8
@glad_glGetAttribLocation = external dso_local local_unnamed_addr global ptr, align 8
@glad_glGetUniformLocation = external dso_local local_unnamed_addr global ptr, align 8
@glad_glLinkProgram = external dso_local local_unnamed_addr global ptr, align 8
@glad_glReadPixels = external dso_local local_unnamed_addr global ptr, align 8
@glad_glShaderSource = external dso_local local_unnamed_addr global ptr, align 8
@glad_glUniformMatrix4fv = external dso_local local_unnamed_addr global ptr, align 8
@glad_glUseProgram = external dso_local local_unnamed_addr global ptr, align 8
@glad_glVertexAttribPointer = external dso_local local_unnamed_addr global ptr, align 8
@glad_glViewport = external dso_local local_unnamed_addr global ptr, align 8
@.str.8 = external hidden unnamed_addr constant [15 x i8], align 1
@vertices = external hidden constant [3 x %struct.anon], align 16
@vertex_shader_text = external hidden global ptr, align 8
@fragment_shader_text = external hidden global ptr, align 8
@.str.9 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [14 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: nounwind uwtable
declare dso_local i32 @gladLoadGL(ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local i32 @stbi_write_png(ptr noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: noreturn nounwind uwtable
define dso_local noundef i32 @main() local_unnamed_addr #3 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca [4 x [4 x float]], align 16
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #8
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %4) #8
  %5 = tail call ptr @glfwSetErrorCallback(ptr noundef nonnull @error_callback) #8
  tail call void @glfwInitHint(i32 noundef 331778, i32 noundef 0) #8
  %6 = tail call i32 @glfwInit() #8
  %.not = icmp eq i32 %6, 0
  br i1 %.not, label %7, label %8

7:                                                ; preds = %0
  tail call void @exit(i32 noundef 1) #9
  unreachable

8:                                                ; preds = %0
  tail call void @glfwWindowHint(i32 noundef 139266, i32 noundef 2) #8
  tail call void @glfwWindowHint(i32 noundef 139267, i32 noundef 0) #8
  tail call void @glfwWindowHint(i32 noundef 131076, i32 noundef 0) #8
  %9 = tail call ptr @glfwCreateWindow(i32 noundef 640, i32 noundef 480, ptr noundef nonnull @.str.8, ptr noundef null, ptr noundef null) #8
  %.not26 = icmp eq ptr %9, null
  br i1 %.not26, label %10, label %11

10:                                               ; preds = %8
  tail call void @glfwTerminate() #8
  tail call void @exit(i32 noundef 1) #9
  unreachable

11:                                               ; preds = %8
  tail call void @glfwMakeContextCurrent(ptr noundef nonnull %9) #8
  %12 = tail call i32 @gladLoadGL(ptr noundef nonnull @glfwGetProcAddress)
  %13 = load ptr, ptr @glad_glGenBuffers, align 8, !tbaa !5
  call void %13(i32 noundef 1, ptr noundef nonnull %1) #8
  %14 = load ptr, ptr @glad_glBindBuffer, align 8, !tbaa !5
  %15 = load i32, ptr %1, align 4, !tbaa !9
  call void %14(i32 noundef 34962, i32 noundef %15) #8
  %16 = load ptr, ptr @glad_glBufferData, align 8, !tbaa !5
  call void %16(i32 noundef 34962, i64 noundef 60, ptr noundef nonnull @vertices, i32 noundef 35044) #8
  %17 = load ptr, ptr @glad_glCreateShader, align 8, !tbaa !5
  %18 = call i32 %17(i32 noundef 35633) #8
  %19 = load ptr, ptr @glad_glShaderSource, align 8, !tbaa !5
  call void %19(i32 noundef %18, i32 noundef 1, ptr noundef nonnull @vertex_shader_text, ptr noundef null) #8
  %20 = load ptr, ptr @glad_glCompileShader, align 8, !tbaa !5
  call void %20(i32 noundef %18) #8
  %21 = load ptr, ptr @glad_glCreateShader, align 8, !tbaa !5
  %22 = call i32 %21(i32 noundef 35632) #8
  %23 = load ptr, ptr @glad_glShaderSource, align 8, !tbaa !5
  call void %23(i32 noundef %22, i32 noundef 1, ptr noundef nonnull @fragment_shader_text, ptr noundef null) #8
  %24 = load ptr, ptr @glad_glCompileShader, align 8, !tbaa !5
  call void %24(i32 noundef %22) #8
  %25 = load ptr, ptr @glad_glCreateProgram, align 8, !tbaa !5
  %26 = call i32 %25() #8
  %27 = load ptr, ptr @glad_glAttachShader, align 8, !tbaa !5
  call void %27(i32 noundef %26, i32 noundef %18) #8
  %28 = load ptr, ptr @glad_glAttachShader, align 8, !tbaa !5
  call void %28(i32 noundef %26, i32 noundef %22) #8
  %29 = load ptr, ptr @glad_glLinkProgram, align 8, !tbaa !5
  call void %29(i32 noundef %26) #8
  %30 = load ptr, ptr @glad_glGetUniformLocation, align 8, !tbaa !5
  %31 = call i32 %30(i32 noundef %26, ptr noundef nonnull @.str.9) #8
  %32 = load ptr, ptr @glad_glGetAttribLocation, align 8, !tbaa !5
  %33 = call i32 %32(i32 noundef %26, ptr noundef nonnull @.str.10) #8
  %34 = load ptr, ptr @glad_glGetAttribLocation, align 8, !tbaa !5
  %35 = call i32 %34(i32 noundef %26, ptr noundef nonnull @.str.11) #8
  %36 = load ptr, ptr @glad_glEnableVertexAttribArray, align 8, !tbaa !5
  call void %36(i32 noundef %33) #8
  %37 = load ptr, ptr @glad_glVertexAttribPointer, align 8, !tbaa !5
  call void %37(i32 noundef %33, i32 noundef 2, i32 noundef 5126, i8 noundef zeroext 0, i32 noundef 20, ptr noundef null) #8
  %38 = load ptr, ptr @glad_glEnableVertexAttribArray, align 8, !tbaa !5
  call void %38(i32 noundef %35) #8
  %39 = load ptr, ptr @glad_glVertexAttribPointer, align 8, !tbaa !5
  call void %39(i32 noundef %35, i32 noundef 3, i32 noundef 5126, i8 noundef zeroext 0, i32 noundef 20, ptr noundef nonnull inttoptr (i64 8 to ptr)) #8
  call void @glfwGetFramebufferSize(ptr noundef nonnull %9, ptr noundef nonnull %2, ptr noundef nonnull %3) #8
  %40 = load i32, ptr %2, align 4, !tbaa !9
  %41 = sitofp i32 %40 to float
  %42 = load i32, ptr %3, align 4, !tbaa !9
  %43 = sitofp i32 %42 to float
  %44 = fdiv float %41, %43
  %45 = load ptr, ptr @glad_glViewport, align 8, !tbaa !5
  call void %45(i32 noundef 0, i32 noundef 0, i32 noundef %40, i32 noundef %42) #8
  %46 = load ptr, ptr @glad_glClear, align 8, !tbaa !5
  call void %46(i32 noundef 16384) #8
  %47 = fneg float %44
  call void @mat4x4_ortho(ptr noundef nonnull %4, float noundef %47, float noundef %44, float noundef -1.000000e+00, float noundef 1.000000e+00, float noundef 1.000000e+00, float noundef -1.000000e+00)
  %48 = load ptr, ptr @glad_glUseProgram, align 8, !tbaa !5
  call void %48(i32 noundef %26) #8
  %49 = load ptr, ptr @glad_glUniformMatrix4fv, align 8, !tbaa !5
  call void %49(i32 noundef %31, i32 noundef 1, i8 noundef zeroext 0, ptr noundef nonnull %4) #8
  %50 = load ptr, ptr @glad_glDrawArrays, align 8, !tbaa !5
  call void %50(i32 noundef 4, i32 noundef 0, i32 noundef 3) #8
  %51 = load ptr, ptr @glad_glFinish, align 8, !tbaa !5
  call void %51() #8
  %52 = load i32, ptr %2, align 4, !tbaa !9
  %53 = load i32, ptr %3, align 4, !tbaa !9
  %54 = mul nsw i32 %53, %52
  %55 = sext i32 %54 to i64
  %56 = call noalias ptr @calloc(i64 noundef 4, i64 noundef %55) #10
  %57 = load ptr, ptr @glad_glReadPixels, align 8, !tbaa !5
  call void %57(i32 noundef 0, i32 noundef 0, i32 noundef %52, i32 noundef %53, i32 noundef 6408, i32 noundef 5121, ptr noundef %56) #8
  %58 = load i32, ptr %2, align 4, !tbaa !9
  %59 = load i32, ptr %3, align 4, !tbaa !9
  %60 = shl nsw i32 %58, 2
  %61 = add nsw i32 %59, -1
  %62 = mul nsw i32 %60, %61
  %63 = sext i32 %62 to i64
  %64 = getelementptr inbounds i8, ptr %56, i64 %63
  %.neg = mul i32 %58, -4
  %65 = call i32 @stbi_write_png(ptr noundef nonnull @.str.12, i32 noundef %58, i32 noundef %59, i32 noundef 4, ptr noundef %64, i32 noundef %.neg)
  call void @free(ptr noundef %56) #8
  call void @glfwDestroyWindow(ptr noundef nonnull %9) #8
  call void @glfwTerminate() #8
  call void @exit(i32 noundef 0) #9
  unreachable
}

declare ptr @glfwSetErrorCallback(ptr noundef) local_unnamed_addr #4

; Function Attrs: nounwind uwtable
declare hidden void @error_callback(i32 noundef, ptr noundef) #1

declare void @glfwInitHint(i32 noundef, i32 noundef) local_unnamed_addr #4

declare i32 @glfwInit() local_unnamed_addr #4

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) local_unnamed_addr #5

declare void @glfwWindowHint(i32 noundef, i32 noundef) local_unnamed_addr #4

declare ptr @glfwCreateWindow(i32 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

declare void @glfwTerminate() local_unnamed_addr #4

declare void @glfwMakeContextCurrent(ptr noundef) local_unnamed_addr #4

declare ptr @glfwGetProcAddress(ptr noundef) #4

declare void @glfwGetFramebufferSize(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @mat4x4_ortho(ptr noundef, float noundef, float noundef, float noundef, float noundef, float noundef, float noundef) local_unnamed_addr #6

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,zeroed") allocsize(0,1) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @calloc(i64 noundef, i64 noundef) local_unnamed_addr #7

declare void @glfwDestroyWindow(ptr noundef) local_unnamed_addr #4

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "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 = { noreturn 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 #4 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { noreturn 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 #6 = { inlinehint 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 #7 = { mustprogress nofree nounwind willreturn allockind("alloc,zeroed") allocsize(0,1) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "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 #8 = { nounwind }
attributes #9 = { noreturn nounwind }
attributes #10 = { nounwind allocsize(0,1) }

!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/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}


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