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

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

@glad_glAttachShader = external dso_local global ptr, align 8
@glad_glBindBuffer = external dso_local global ptr, align 8
@glad_glBindTexture = external dso_local global ptr, align 8
@glad_glBufferData = 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_glEnable = external dso_local global ptr, align 8
@glad_glEnableVertexAttribArray = external dso_local global ptr, align 8
@glad_glGenBuffers = external dso_local global ptr, align 8
@glad_glGenTextures = 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_glShaderSource = external dso_local global ptr, align 8
@glad_glTexImage2D = external dso_local global ptr, align 8
@glad_glTexParameteri = external dso_local global ptr, align 8
@glad_glUniform1i = external dso_local global ptr, align 8
@glad_glUniform3fv = 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.1 = external hidden unnamed_addr constant [6 x i8], align 1
@vertex_shader_text = external hidden global ptr, align 8
@fragment_shader_text = external hidden global ptr, align 8
@.str.2 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [5 x i8], align 1
@vertices = external hidden constant [4 x [2 x float]], align 16
@.str.6 = external hidden unnamed_addr constant [7 x i8], align 1
@__const.main.colors = external hidden unnamed_addr constant [2 x [3 x float]], align 16

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

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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #1 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca [2 x ptr], align 16
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca [256 x i8], align 16
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca [2 x [3 x float]], align 16
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca [4 x [4 x float]], align 16
  store i32 0, ptr %3, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, 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 4, ptr %13) #7
  %29 = call ptr @glfwSetErrorCallback(ptr noundef @error_callback)
  %30 = call i32 @glfwInit()
  %31 = icmp ne i32 %30, 0
  br i1 %31, label %33, label %32

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

33:                                               ; preds = %2
  call void @glfwWindowHint(i32 noundef 139266, i32 noundef 2)
  call void @glfwWindowHint(i32 noundef 139267, i32 noundef 0)
  %34 = call ptr @glfwCreateWindow(i32 noundef 400, i32 noundef 400, ptr noundef @.str.1, ptr noundef null, ptr noundef null)
  %35 = getelementptr inbounds [2 x ptr], ptr %6, i64 0, i64 0
  store ptr %34, ptr %35, align 16, !tbaa !9
  %36 = getelementptr inbounds [2 x ptr], ptr %6, i64 0, i64 0
  %37 = load ptr, ptr %36, align 16, !tbaa !9
  %38 = icmp ne ptr %37, null
  br i1 %38, label %40, label %39

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

40:                                               ; preds = %33
  %41 = getelementptr inbounds [2 x ptr], ptr %6, i64 0, i64 0
  %42 = load ptr, ptr %41, align 16, !tbaa !9
  %43 = call ptr @glfwSetKeyCallback(ptr noundef %42, ptr noundef @key_callback)
  %44 = getelementptr inbounds [2 x ptr], ptr %6, i64 0, i64 0
  %45 = load ptr, ptr %44, align 16, !tbaa !9
  call void @glfwMakeContextCurrent(ptr noundef %45)
  call void @glfwSwapInterval(i32 noundef 1)
  %46 = call i32 @gladLoadGL(ptr noundef @glfwGetProcAddress)
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  call void @llvm.lifetime.start.p0(i64 256, ptr %16) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #7
  %47 = load ptr, ptr @glad_glGenTextures, align 8, !tbaa !9
  call void %47(i32 noundef 1, ptr noundef %7)
  %48 = load ptr, ptr @glad_glBindTexture, align 8, !tbaa !9
  %49 = load i32, ptr %7, align 4, !tbaa !5
  call void %48(i32 noundef 3553, i32 noundef %49)
  %50 = call i64 @glfwGetTimerValue()
  %51 = trunc i64 %50 to i32
  call void @srand(i32 noundef %51) #7
  store i32 0, ptr %15, align 4, !tbaa !5
  br label %52

52:                                               ; preds = %73, %40
  %53 = load i32, ptr %15, align 4, !tbaa !5
  %54 = icmp slt i32 %53, 16
  br i1 %54, label %55, label %76

55:                                               ; preds = %52
  store i32 0, ptr %14, align 4, !tbaa !5
  br label %56

56:                                               ; preds = %69, %55
  %57 = load i32, ptr %14, align 4, !tbaa !5
  %58 = icmp slt i32 %57, 16
  br i1 %58, label %59, label %72

59:                                               ; preds = %56
  %60 = call i32 @rand() #7
  %61 = srem i32 %60, 256
  %62 = trunc i32 %61 to i8
  %63 = load i32, ptr %15, align 4, !tbaa !5
  %64 = mul nsw i32 %63, 16
  %65 = load i32, ptr %14, align 4, !tbaa !5
  %66 = add nsw i32 %64, %65
  %67 = sext i32 %66 to i64
  %68 = getelementptr inbounds [256 x i8], ptr %16, i64 0, i64 %67
  store i8 %62, ptr %68, align 1, !tbaa !11
  br label %69

69:                                               ; preds = %59
  %70 = load i32, ptr %14, align 4, !tbaa !5
  %71 = add nsw i32 %70, 1
  store i32 %71, ptr %14, align 4, !tbaa !5
  br label %56, !llvm.loop !12

72:                                               ; preds = %56
  br label %73

73:                                               ; preds = %72
  %74 = load i32, ptr %15, align 4, !tbaa !5
  %75 = add nsw i32 %74, 1
  store i32 %75, ptr %15, align 4, !tbaa !5
  br label %52, !llvm.loop !14

76:                                               ; preds = %52
  %77 = load ptr, ptr @glad_glTexImage2D, align 8, !tbaa !9
  %78 = getelementptr inbounds [256 x i8], ptr %16, i64 0, i64 0
  call void %77(i32 noundef 3553, i32 noundef 0, i32 noundef 6409, i32 noundef 16, i32 noundef 16, i32 noundef 0, i32 noundef 6409, i32 noundef 5121, ptr noundef %78)
  %79 = load ptr, ptr @glad_glTexParameteri, align 8, !tbaa !9
  call void %79(i32 noundef 3553, i32 noundef 10241, i32 noundef 9728)
  %80 = load ptr, ptr @glad_glTexParameteri, align 8, !tbaa !9
  call void %80(i32 noundef 3553, i32 noundef 10240, i32 noundef 9728)
  %81 = load ptr, ptr @glad_glCreateShader, align 8, !tbaa !9
  %82 = call i32 %81(i32 noundef 35633)
  store i32 %82, ptr %17, align 4, !tbaa !5
  %83 = load ptr, ptr @glad_glShaderSource, align 8, !tbaa !9
  %84 = load i32, ptr %17, align 4, !tbaa !5
  call void %83(i32 noundef %84, i32 noundef 1, ptr noundef @vertex_shader_text, ptr noundef null)
  %85 = load ptr, ptr @glad_glCompileShader, align 8, !tbaa !9
  %86 = load i32, ptr %17, align 4, !tbaa !5
  call void %85(i32 noundef %86)
  %87 = load ptr, ptr @glad_glCreateShader, align 8, !tbaa !9
  %88 = call i32 %87(i32 noundef 35632)
  store i32 %88, ptr %18, align 4, !tbaa !5
  %89 = load ptr, ptr @glad_glShaderSource, align 8, !tbaa !9
  %90 = load i32, ptr %18, align 4, !tbaa !5
  call void %89(i32 noundef %90, i32 noundef 1, ptr noundef @fragment_shader_text, ptr noundef null)
  %91 = load ptr, ptr @glad_glCompileShader, align 8, !tbaa !9
  %92 = load i32, ptr %18, align 4, !tbaa !5
  call void %91(i32 noundef %92)
  %93 = load ptr, ptr @glad_glCreateProgram, align 8, !tbaa !9
  %94 = call i32 %93()
  store i32 %94, ptr %8, align 4, !tbaa !5
  %95 = load ptr, ptr @glad_glAttachShader, align 8, !tbaa !9
  %96 = load i32, ptr %8, align 4, !tbaa !5
  %97 = load i32, ptr %17, align 4, !tbaa !5
  call void %95(i32 noundef %96, i32 noundef %97)
  %98 = load ptr, ptr @glad_glAttachShader, align 8, !tbaa !9
  %99 = load i32, ptr %8, align 4, !tbaa !5
  %100 = load i32, ptr %18, align 4, !tbaa !5
  call void %98(i32 noundef %99, i32 noundef %100)
  %101 = load ptr, ptr @glad_glLinkProgram, align 8, !tbaa !9
  %102 = load i32, ptr %8, align 4, !tbaa !5
  call void %101(i32 noundef %102)
  %103 = load ptr, ptr @glad_glGetUniformLocation, align 8, !tbaa !9
  %104 = load i32, ptr %8, align 4, !tbaa !5
  %105 = call i32 %103(i32 noundef %104, ptr noundef @.str.2)
  store i32 %105, ptr %10, align 4, !tbaa !5
  %106 = load ptr, ptr @glad_glGetUniformLocation, align 8, !tbaa !9
  %107 = load i32, ptr %8, align 4, !tbaa !5
  %108 = call i32 %106(i32 noundef %107, ptr noundef @.str.3)
  store i32 %108, ptr %12, align 4, !tbaa !5
  %109 = load ptr, ptr @glad_glGetUniformLocation, align 8, !tbaa !9
  %110 = load i32, ptr %8, align 4, !tbaa !5
  %111 = call i32 %109(i32 noundef %110, ptr noundef @.str.4)
  store i32 %111, ptr %13, align 4, !tbaa !5
  %112 = load ptr, ptr @glad_glGetAttribLocation, align 8, !tbaa !9
  %113 = load i32, ptr %8, align 4, !tbaa !5
  %114 = call i32 %112(i32 noundef %113, ptr noundef @.str.5)
  store i32 %114, ptr %11, align 4, !tbaa !5
  %115 = load ptr, ptr @glad_glGenBuffers, align 8, !tbaa !9
  call void %115(i32 noundef 1, ptr noundef %9)
  %116 = load ptr, ptr @glad_glBindBuffer, align 8, !tbaa !9
  %117 = load i32, ptr %9, align 4, !tbaa !5
  call void %116(i32 noundef 34962, i32 noundef %117)
  %118 = load ptr, ptr @glad_glBufferData, align 8, !tbaa !9
  call void %118(i32 noundef 34962, i64 noundef 32, ptr noundef @vertices, i32 noundef 35044)
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 256, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  %119 = load ptr, ptr @glad_glUseProgram, align 8, !tbaa !9
  %120 = load i32, ptr %8, align 4, !tbaa !5
  call void %119(i32 noundef %120)
  %121 = load ptr, ptr @glad_glUniform1i, align 8, !tbaa !9
  %122 = load i32, ptr %13, align 4, !tbaa !5
  call void %121(i32 noundef %122, i32 noundef 0)
  %123 = load ptr, ptr @glad_glEnable, align 8, !tbaa !9
  call void %123(i32 noundef 3553)
  %124 = load ptr, ptr @glad_glBindTexture, align 8, !tbaa !9
  %125 = load i32, ptr %7, align 4, !tbaa !5
  call void %124(i32 noundef 3553, i32 noundef %125)
  %126 = load ptr, ptr @glad_glBindBuffer, align 8, !tbaa !9
  %127 = load i32, ptr %9, align 4, !tbaa !5
  call void %126(i32 noundef 34962, i32 noundef %127)
  %128 = load ptr, ptr @glad_glEnableVertexAttribArray, align 8, !tbaa !9
  %129 = load i32, ptr %11, align 4, !tbaa !5
  call void %128(i32 noundef %129)
  %130 = load ptr, ptr @glad_glVertexAttribPointer, align 8, !tbaa !9
  %131 = load i32, ptr %11, align 4, !tbaa !5
  call void %130(i32 noundef %131, i32 noundef 2, i32 noundef 5126, i8 noundef zeroext 0, i32 noundef 8, ptr noundef null)
  %132 = getelementptr inbounds [2 x ptr], ptr %6, i64 0, i64 0
  %133 = load ptr, ptr %132, align 16, !tbaa !9
  %134 = call ptr @glfwCreateWindow(i32 noundef 400, i32 noundef 400, ptr noundef @.str.6, ptr noundef null, ptr noundef %133)
  %135 = getelementptr inbounds [2 x ptr], ptr %6, i64 0, i64 1
  store ptr %134, ptr %135, align 8, !tbaa !9
  %136 = getelementptr inbounds [2 x ptr], ptr %6, i64 0, i64 1
  %137 = load ptr, ptr %136, align 8, !tbaa !9
  %138 = icmp ne ptr %137, null
  br i1 %138, label %140, label %139

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

140:                                              ; preds = %76
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #7
  %141 = getelementptr inbounds [2 x ptr], ptr %6, i64 0, i64 0
  %142 = load ptr, ptr %141, align 16, !tbaa !9
  call void @glfwGetWindowSize(ptr noundef %142, ptr noundef %23, ptr noundef null)
  %143 = getelementptr inbounds [2 x ptr], ptr %6, i64 0, i64 0
  %144 = load ptr, ptr %143, align 16, !tbaa !9
  call void @glfwGetWindowFrameSize(ptr noundef %144, ptr noundef %21, ptr noundef null, ptr noundef %22, ptr noundef null)
  %145 = getelementptr inbounds [2 x ptr], ptr %6, i64 0, i64 0
  %146 = load ptr, ptr %145, align 16, !tbaa !9
  call void @glfwGetWindowPos(ptr noundef %146, ptr noundef %19, ptr noundef %20)
  %147 = getelementptr inbounds [2 x ptr], ptr %6, i64 0, i64 1
  %148 = load ptr, ptr %147, align 8, !tbaa !9
  %149 = load i32, ptr %19, align 4, !tbaa !5
  %150 = load i32, ptr %23, align 4, !tbaa !5
  %151 = add nsw i32 %149, %150
  %152 = load i32, ptr %21, align 4, !tbaa !5
  %153 = add nsw i32 %151, %152
  %154 = load i32, ptr %22, align 4, !tbaa !5
  %155 = add nsw i32 %153, %154
  %156 = load i32, ptr %20, align 4, !tbaa !5
  call void @glfwSetWindowPos(ptr noundef %148, i32 noundef %155, i32 noundef %156)
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  %157 = getelementptr inbounds [2 x ptr], ptr %6, i64 0, i64 1
  %158 = load ptr, ptr %157, align 8, !tbaa !9
  %159 = call ptr @glfwSetKeyCallback(ptr noundef %158, ptr noundef @key_callback)
  %160 = getelementptr inbounds [2 x ptr], ptr %6, i64 0, i64 1
  %161 = load ptr, ptr %160, align 8, !tbaa !9
  call void @glfwMakeContextCurrent(ptr noundef %161)
  %162 = load ptr, ptr @glad_glUseProgram, align 8, !tbaa !9
  %163 = load i32, ptr %8, align 4, !tbaa !5
  call void %162(i32 noundef %163)
  %164 = load ptr, ptr @glad_glEnable, align 8, !tbaa !9
  call void %164(i32 noundef 3553)
  %165 = load ptr, ptr @glad_glBindTexture, align 8, !tbaa !9
  %166 = load i32, ptr %7, align 4, !tbaa !5
  call void %165(i32 noundef 3553, i32 noundef %166)
  %167 = load ptr, ptr @glad_glBindBuffer, align 8, !tbaa !9
  %168 = load i32, ptr %9, align 4, !tbaa !5
  call void %167(i32 noundef 34962, i32 noundef %168)
  %169 = load ptr, ptr @glad_glEnableVertexAttribArray, align 8, !tbaa !9
  %170 = load i32, ptr %11, align 4, !tbaa !5
  call void %169(i32 noundef %170)
  %171 = load ptr, ptr @glad_glVertexAttribPointer, align 8, !tbaa !9
  %172 = load i32, ptr %11, align 4, !tbaa !5
  call void %171(i32 noundef %172, i32 noundef 2, i32 noundef 5126, i8 noundef zeroext 0, i32 noundef 8, ptr noundef null)
  br label %173

173:                                              ; preds = %220, %140
  %174 = getelementptr inbounds [2 x ptr], ptr %6, i64 0, i64 0
  %175 = load ptr, ptr %174, align 16, !tbaa !9
  %176 = call i32 @glfwWindowShouldClose(ptr noundef %175)
  %177 = icmp ne i32 %176, 0
  br i1 %177, label %184, label %178

178:                                              ; preds = %173
  %179 = getelementptr inbounds [2 x ptr], ptr %6, i64 0, i64 1
  %180 = load ptr, ptr %179, align 8, !tbaa !9
  %181 = call i32 @glfwWindowShouldClose(ptr noundef %180)
  %182 = icmp ne i32 %181, 0
  %183 = xor i1 %182, true
  br label %184

184:                                              ; preds = %178, %173
  %185 = phi i1 [ false, %173 ], [ %183, %178 ]
  br i1 %185, label %186, label %221

186:                                              ; preds = %184
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr %25) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %25, ptr align 16 @__const.main.colors, i64 24, i1 false)
  store i32 0, ptr %24, align 4, !tbaa !5
  br label %187

187:                                              ; preds = %217, %186
  %188 = load i32, ptr %24, align 4, !tbaa !5
  %189 = icmp slt i32 %188, 2
  br i1 %189, label %190, label %220

190:                                              ; preds = %187
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #7
  call void @llvm.lifetime.start.p0(i64 64, ptr %28) #7
  %191 = load i32, ptr %24, align 4, !tbaa !5
  %192 = sext i32 %191 to i64
  %193 = getelementptr inbounds [2 x ptr], ptr %6, i64 0, i64 %192
  %194 = load ptr, ptr %193, align 8, !tbaa !9
  call void @glfwGetFramebufferSize(ptr noundef %194, ptr noundef %26, ptr noundef %27)
  %195 = load i32, ptr %24, align 4, !tbaa !5
  %196 = sext i32 %195 to i64
  %197 = getelementptr inbounds [2 x ptr], ptr %6, i64 0, i64 %196
  %198 = load ptr, ptr %197, align 8, !tbaa !9
  call void @glfwMakeContextCurrent(ptr noundef %198)
  %199 = load ptr, ptr @glad_glViewport, align 8, !tbaa !9
  %200 = load i32, ptr %26, align 4, !tbaa !5
  %201 = load i32, ptr %27, align 4, !tbaa !5
  call void %199(i32 noundef 0, i32 noundef 0, i32 noundef %200, i32 noundef %201)
  %202 = getelementptr inbounds [4 x [4 x float]], ptr %28, i64 0, i64 0
  call void @mat4x4_ortho(ptr noundef %202, float noundef 0.000000e+00, float noundef 1.000000e+00, float noundef 0.000000e+00, float noundef 1.000000e+00, float noundef 0.000000e+00, float noundef 1.000000e+00)
  %203 = load ptr, ptr @glad_glUniformMatrix4fv, align 8, !tbaa !9
  %204 = load i32, ptr %10, align 4, !tbaa !5
  %205 = getelementptr inbounds [4 x [4 x float]], ptr %28, i64 0, i64 0
  call void %203(i32 noundef %204, i32 noundef 1, i8 noundef zeroext 0, ptr noundef %205)
  %206 = load ptr, ptr @glad_glUniform3fv, align 8, !tbaa !9
  %207 = load i32, ptr %12, align 4, !tbaa !5
  %208 = load i32, ptr %24, align 4, !tbaa !5
  %209 = sext i32 %208 to i64
  %210 = getelementptr inbounds [2 x [3 x float]], ptr %25, i64 0, i64 %209
  %211 = getelementptr inbounds [3 x float], ptr %210, i64 0, i64 0
  call void %206(i32 noundef %207, i32 noundef 1, ptr noundef %211)
  %212 = load ptr, ptr @glad_glDrawArrays, align 8, !tbaa !9
  call void %212(i32 noundef 6, i32 noundef 0, i32 noundef 4)
  %213 = load i32, ptr %24, align 4, !tbaa !5
  %214 = sext i32 %213 to i64
  %215 = getelementptr inbounds [2 x ptr], ptr %6, i64 0, i64 %214
  %216 = load ptr, ptr %215, align 8, !tbaa !9
  call void @glfwSwapBuffers(ptr noundef %216)
  call void @llvm.lifetime.end.p0(i64 64, ptr %28) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #7
  br label %217

217:                                              ; preds = %190
  %218 = load i32, ptr %24, align 4, !tbaa !5
  %219 = add nsw i32 %218, 1
  store i32 %219, ptr %24, align 4, !tbaa !5
  br label %187, !llvm.loop !15

220:                                              ; preds = %187
  call void @glfwWaitEvents()
  call void @llvm.lifetime.end.p0(i64 24, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #7
  br label %173, !llvm.loop !16

221:                                              ; preds = %184
  call void @glfwTerminate()
  call void @exit(i32 noundef 0) #8
  unreachable
}

declare ptr @glfwSetErrorCallback(ptr noundef) #2

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

declare i32 @glfwInit() #2

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

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

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

declare void @glfwTerminate() #2

declare ptr @glfwSetKeyCallback(ptr noundef, ptr noundef) #2

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

declare void @glfwMakeContextCurrent(ptr noundef) #2

declare void @glfwSwapInterval(i32 noundef) #2

declare ptr @glfwGetProcAddress(ptr noundef) #2

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

declare i64 @glfwGetTimerValue() #2

; Function Attrs: nounwind
declare i32 @rand() #4

declare void @glfwGetWindowSize(ptr noundef, ptr noundef, ptr noundef) #2

declare void @glfwGetWindowFrameSize(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

declare void @glfwGetWindowPos(ptr noundef, ptr noundef, ptr noundef) #2

declare void @glfwSetWindowPos(ptr noundef, i32 noundef, i32 noundef) #2

declare i32 @glfwWindowShouldClose(ptr noundef) #2

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

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

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

declare void @glfwSwapBuffers(ptr noundef) #2

declare void @glfwWaitEvents() #2

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 = { "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 "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 "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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = { nounwind }
attributes #8 = { noreturn 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/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !13}
!15 = distinct !{!15, !13}
!16 = distinct !{!16, !13}


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

@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_glBindTexture = external dso_local local_unnamed_addr global ptr, align 8
@glad_glBufferData = 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_glEnable = external dso_local local_unnamed_addr global ptr, align 8
@glad_glEnableVertexAttribArray = external dso_local local_unnamed_addr global ptr, align 8
@glad_glGenBuffers = external dso_local local_unnamed_addr global ptr, align 8
@glad_glGenTextures = 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_glShaderSource = external dso_local local_unnamed_addr global ptr, align 8
@glad_glTexImage2D = external dso_local local_unnamed_addr global ptr, align 8
@glad_glTexParameteri = external dso_local local_unnamed_addr global ptr, align 8
@glad_glUniform1i = external dso_local local_unnamed_addr global ptr, align 8
@glad_glUniform3fv = 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.1 = external hidden unnamed_addr constant [6 x i8], align 1
@vertex_shader_text = external hidden global ptr, align 8
@fragment_shader_text = external hidden global ptr, align 8
@.str.2 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [5 x i8], align 1
@vertices = external hidden constant [4 x [2 x float]], align 16
@.str.6 = external hidden unnamed_addr constant [7 x i8], align 1
@__const.main.colors = external hidden unnamed_addr constant [2 x [3 x float]], align 16

; 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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

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

; Function Attrs: noreturn nounwind uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr nocapture noundef readnone %1) local_unnamed_addr #2 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca [256 x i8], align 16
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca [2 x [3 x float]], align 16
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca [4 x [4 x float]], align 16
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #8
  %15 = tail call ptr @glfwSetErrorCallback(ptr noundef nonnull @error_callback) #8
  %16 = tail call i32 @glfwInit() #8
  %.not = icmp eq i32 %16, 0
  br i1 %.not, label %17, label %18

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

18:                                               ; preds = %2
  tail call void @glfwWindowHint(i32 noundef 139266, i32 noundef 2) #8
  tail call void @glfwWindowHint(i32 noundef 139267, i32 noundef 0) #8
  %19 = tail call ptr @glfwCreateWindow(i32 noundef 400, i32 noundef 400, ptr noundef nonnull @.str.1, ptr noundef null, ptr noundef null) #8
  %.not37 = icmp eq ptr %19, null
  br i1 %.not37, label %20, label %21

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

21:                                               ; preds = %18
  %22 = tail call ptr @glfwSetKeyCallback(ptr noundef nonnull %19, ptr noundef nonnull @key_callback) #8
  tail call void @glfwMakeContextCurrent(ptr noundef nonnull %19) #8
  tail call void @glfwSwapInterval(i32 noundef 1) #8
  %23 = tail call i32 @gladLoadGL(ptr noundef nonnull @glfwGetProcAddress)
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %5) #8
  %24 = load ptr, ptr @glad_glGenTextures, align 8, !tbaa !5
  call void %24(i32 noundef 1, ptr noundef nonnull %3) #8
  %25 = load ptr, ptr @glad_glBindTexture, align 8, !tbaa !5
  %26 = load i32, ptr %3, align 4, !tbaa !9
  call void %25(i32 noundef 3553, i32 noundef %26) #8
  %27 = call i64 @glfwGetTimerValue() #8
  %28 = trunc i64 %27 to i32
  call void @srand(i32 noundef %28) #8
  br label %.preheader

.preheader:                                       ; preds = %21, %.preheader
  %indvars.iv = phi i64 [ 0, %21 ], [ %indvars.iv.next, %.preheader ]
  %29 = shl nuw nsw i64 %indvars.iv, 4
  %30 = call i32 @rand() #8
  %31 = trunc i32 %30 to i8
  %32 = getelementptr inbounds [256 x i8], ptr %5, i64 0, i64 %29
  store i8 %31, ptr %32, align 16, !tbaa !11
  %33 = call i32 @rand() #8
  %34 = trunc i32 %33 to i8
  %35 = or disjoint i64 %29, 1
  %36 = getelementptr inbounds [256 x i8], ptr %5, i64 0, i64 %35
  store i8 %34, ptr %36, align 1, !tbaa !11
  %37 = call i32 @rand() #8
  %38 = trunc i32 %37 to i8
  %39 = or disjoint i64 %29, 2
  %40 = getelementptr inbounds [256 x i8], ptr %5, i64 0, i64 %39
  store i8 %38, ptr %40, align 2, !tbaa !11
  %41 = call i32 @rand() #8
  %42 = trunc i32 %41 to i8
  %43 = or disjoint i64 %29, 3
  %44 = getelementptr inbounds [256 x i8], ptr %5, i64 0, i64 %43
  store i8 %42, ptr %44, align 1, !tbaa !11
  %45 = call i32 @rand() #8
  %46 = trunc i32 %45 to i8
  %47 = or disjoint i64 %29, 4
  %48 = getelementptr inbounds [256 x i8], ptr %5, i64 0, i64 %47
  store i8 %46, ptr %48, align 4, !tbaa !11
  %49 = call i32 @rand() #8
  %50 = trunc i32 %49 to i8
  %51 = or disjoint i64 %29, 5
  %52 = getelementptr inbounds [256 x i8], ptr %5, i64 0, i64 %51
  store i8 %50, ptr %52, align 1, !tbaa !11
  %53 = call i32 @rand() #8
  %54 = trunc i32 %53 to i8
  %55 = or disjoint i64 %29, 6
  %56 = getelementptr inbounds [256 x i8], ptr %5, i64 0, i64 %55
  store i8 %54, ptr %56, align 2, !tbaa !11
  %57 = call i32 @rand() #8
  %58 = trunc i32 %57 to i8
  %59 = or disjoint i64 %29, 7
  %60 = getelementptr inbounds [256 x i8], ptr %5, i64 0, i64 %59
  store i8 %58, ptr %60, align 1, !tbaa !11
  %61 = call i32 @rand() #8
  %62 = trunc i32 %61 to i8
  %63 = or disjoint i64 %29, 8
  %64 = getelementptr inbounds [256 x i8], ptr %5, i64 0, i64 %63
  store i8 %62, ptr %64, align 8, !tbaa !11
  %65 = call i32 @rand() #8
  %66 = trunc i32 %65 to i8
  %67 = or disjoint i64 %29, 9
  %68 = getelementptr inbounds [256 x i8], ptr %5, i64 0, i64 %67
  store i8 %66, ptr %68, align 1, !tbaa !11
  %69 = call i32 @rand() #8
  %70 = trunc i32 %69 to i8
  %71 = or disjoint i64 %29, 10
  %72 = getelementptr inbounds [256 x i8], ptr %5, i64 0, i64 %71
  store i8 %70, ptr %72, align 2, !tbaa !11
  %73 = call i32 @rand() #8
  %74 = trunc i32 %73 to i8
  %75 = or disjoint i64 %29, 11
  %76 = getelementptr inbounds [256 x i8], ptr %5, i64 0, i64 %75
  store i8 %74, ptr %76, align 1, !tbaa !11
  %77 = call i32 @rand() #8
  %78 = trunc i32 %77 to i8
  %79 = or disjoint i64 %29, 12
  %80 = getelementptr inbounds [256 x i8], ptr %5, i64 0, i64 %79
  store i8 %78, ptr %80, align 4, !tbaa !11
  %81 = call i32 @rand() #8
  %82 = trunc i32 %81 to i8
  %83 = or disjoint i64 %29, 13
  %84 = getelementptr inbounds [256 x i8], ptr %5, i64 0, i64 %83
  store i8 %82, ptr %84, align 1, !tbaa !11
  %85 = call i32 @rand() #8
  %86 = trunc i32 %85 to i8
  %87 = or disjoint i64 %29, 14
  %88 = getelementptr inbounds [256 x i8], ptr %5, i64 0, i64 %87
  store i8 %86, ptr %88, align 2, !tbaa !11
  %89 = call i32 @rand() #8
  %90 = trunc i32 %89 to i8
  %91 = or disjoint i64 %29, 15
  %92 = getelementptr inbounds [256 x i8], ptr %5, i64 0, i64 %91
  store i8 %90, ptr %92, align 1, !tbaa !11
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 16
  br i1 %exitcond.not, label %93, label %.preheader, !llvm.loop !12

93:                                               ; preds = %.preheader
  %94 = load ptr, ptr @glad_glTexImage2D, align 8, !tbaa !5
  call void %94(i32 noundef 3553, i32 noundef 0, i32 noundef 6409, i32 noundef 16, i32 noundef 16, i32 noundef 0, i32 noundef 6409, i32 noundef 5121, ptr noundef nonnull %5) #8
  %95 = load ptr, ptr @glad_glTexParameteri, align 8, !tbaa !5
  call void %95(i32 noundef 3553, i32 noundef 10241, i32 noundef 9728) #8
  %96 = load ptr, ptr @glad_glTexParameteri, align 8, !tbaa !5
  call void %96(i32 noundef 3553, i32 noundef 10240, i32 noundef 9728) #8
  %97 = load ptr, ptr @glad_glCreateShader, align 8, !tbaa !5
  %98 = call i32 %97(i32 noundef 35633) #8
  %99 = load ptr, ptr @glad_glShaderSource, align 8, !tbaa !5
  call void %99(i32 noundef %98, i32 noundef 1, ptr noundef nonnull @vertex_shader_text, ptr noundef null) #8
  %100 = load ptr, ptr @glad_glCompileShader, align 8, !tbaa !5
  call void %100(i32 noundef %98) #8
  %101 = load ptr, ptr @glad_glCreateShader, align 8, !tbaa !5
  %102 = call i32 %101(i32 noundef 35632) #8
  %103 = load ptr, ptr @glad_glShaderSource, align 8, !tbaa !5
  call void %103(i32 noundef %102, i32 noundef 1, ptr noundef nonnull @fragment_shader_text, ptr noundef null) #8
  %104 = load ptr, ptr @glad_glCompileShader, align 8, !tbaa !5
  call void %104(i32 noundef %102) #8
  %105 = load ptr, ptr @glad_glCreateProgram, align 8, !tbaa !5
  %106 = call i32 %105() #8
  %107 = load ptr, ptr @glad_glAttachShader, align 8, !tbaa !5
  call void %107(i32 noundef %106, i32 noundef %98) #8
  %108 = load ptr, ptr @glad_glAttachShader, align 8, !tbaa !5
  call void %108(i32 noundef %106, i32 noundef %102) #8
  %109 = load ptr, ptr @glad_glLinkProgram, align 8, !tbaa !5
  call void %109(i32 noundef %106) #8
  %110 = load ptr, ptr @glad_glGetUniformLocation, align 8, !tbaa !5
  %111 = call i32 %110(i32 noundef %106, ptr noundef nonnull @.str.2) #8
  %112 = load ptr, ptr @glad_glGetUniformLocation, align 8, !tbaa !5
  %113 = call i32 %112(i32 noundef %106, ptr noundef nonnull @.str.3) #8
  %114 = load ptr, ptr @glad_glGetUniformLocation, align 8, !tbaa !5
  %115 = call i32 %114(i32 noundef %106, ptr noundef nonnull @.str.4) #8
  %116 = load ptr, ptr @glad_glGetAttribLocation, align 8, !tbaa !5
  %117 = call i32 %116(i32 noundef %106, ptr noundef nonnull @.str.5) #8
  %118 = load ptr, ptr @glad_glGenBuffers, align 8, !tbaa !5
  call void %118(i32 noundef 1, ptr noundef nonnull %4) #8
  %119 = load ptr, ptr @glad_glBindBuffer, align 8, !tbaa !5
  %120 = load i32, ptr %4, align 4, !tbaa !9
  call void %119(i32 noundef 34962, i32 noundef %120) #8
  %121 = load ptr, ptr @glad_glBufferData, align 8, !tbaa !5
  call void %121(i32 noundef 34962, i64 noundef 32, ptr noundef nonnull @vertices, i32 noundef 35044) #8
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %5) #8
  %122 = load ptr, ptr @glad_glUseProgram, align 8, !tbaa !5
  call void %122(i32 noundef %106) #8
  %123 = load ptr, ptr @glad_glUniform1i, align 8, !tbaa !5
  call void %123(i32 noundef %115, i32 noundef 0) #8
  %124 = load ptr, ptr @glad_glEnable, align 8, !tbaa !5
  call void %124(i32 noundef 3553) #8
  %125 = load ptr, ptr @glad_glBindTexture, align 8, !tbaa !5
  %126 = load i32, ptr %3, align 4, !tbaa !9
  call void %125(i32 noundef 3553, i32 noundef %126) #8
  %127 = load ptr, ptr @glad_glBindBuffer, align 8, !tbaa !5
  %128 = load i32, ptr %4, align 4, !tbaa !9
  call void %127(i32 noundef 34962, i32 noundef %128) #8
  %129 = load ptr, ptr @glad_glEnableVertexAttribArray, align 8, !tbaa !5
  call void %129(i32 noundef %117) #8
  %130 = load ptr, ptr @glad_glVertexAttribPointer, align 8, !tbaa !5
  call void %130(i32 noundef %117, i32 noundef 2, i32 noundef 5126, i8 noundef zeroext 0, i32 noundef 8, ptr noundef null) #8
  %131 = call ptr @glfwCreateWindow(i32 noundef 400, i32 noundef 400, ptr noundef nonnull @.str.6, ptr noundef null, ptr noundef nonnull %19) #8
  %.not38 = icmp eq ptr %131, null
  br i1 %.not38, label %132, label %133

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

133:                                              ; preds = %93
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #8
  call void @glfwGetWindowSize(ptr noundef nonnull %19, ptr noundef nonnull %10, ptr noundef null) #8
  call void @glfwGetWindowFrameSize(ptr noundef nonnull %19, ptr noundef nonnull %8, ptr noundef null, ptr noundef nonnull %9, ptr noundef null) #8
  call void @glfwGetWindowPos(ptr noundef nonnull %19, ptr noundef nonnull %6, ptr noundef nonnull %7) #8
  %134 = load i32, ptr %6, align 4, !tbaa !9
  %135 = load i32, ptr %10, align 4, !tbaa !9
  %136 = add nsw i32 %135, %134
  %137 = load i32, ptr %8, align 4, !tbaa !9
  %138 = add nsw i32 %136, %137
  %139 = load i32, ptr %9, align 4, !tbaa !9
  %140 = add nsw i32 %138, %139
  %141 = load i32, ptr %7, align 4, !tbaa !9
  call void @glfwSetWindowPos(ptr noundef nonnull %131, i32 noundef %140, i32 noundef %141) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #8
  %142 = call ptr @glfwSetKeyCallback(ptr noundef nonnull %131, ptr noundef nonnull @key_callback) #8
  call void @glfwMakeContextCurrent(ptr noundef nonnull %131) #8
  %143 = load ptr, ptr @glad_glUseProgram, align 8, !tbaa !5
  call void %143(i32 noundef %106) #8
  %144 = load ptr, ptr @glad_glEnable, align 8, !tbaa !5
  call void %144(i32 noundef 3553) #8
  %145 = load ptr, ptr @glad_glBindTexture, align 8, !tbaa !5
  %146 = load i32, ptr %3, align 4, !tbaa !9
  call void %145(i32 noundef 3553, i32 noundef %146) #8
  %147 = load ptr, ptr @glad_glBindBuffer, align 8, !tbaa !5
  %148 = load i32, ptr %4, align 4, !tbaa !9
  call void %147(i32 noundef 34962, i32 noundef %148) #8
  %149 = load ptr, ptr @glad_glEnableVertexAttribArray, align 8, !tbaa !5
  call void %149(i32 noundef %117) #8
  %150 = load ptr, ptr @glad_glVertexAttribPointer, align 8, !tbaa !5
  call void %150(i32 noundef %117, i32 noundef 2, i32 noundef 5126, i8 noundef zeroext 0, i32 noundef 8, ptr noundef null) #8
  %151 = call i32 @glfwWindowShouldClose(ptr noundef nonnull %19) #8
  %.not3944 = icmp eq i32 %151, 0
  br i1 %.not3944, label %.lr.ph.preheader, label %.critedge

.lr.ph.preheader:                                 ; preds = %133
  %152 = getelementptr inbounds i8, ptr %11, i64 12
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %154
  %153 = call i32 @glfwWindowShouldClose(ptr noundef nonnull %131) #8
  %.not40 = icmp eq i32 %153, 0
  br i1 %.not40, label %154, label %.critedge

154:                                              ; preds = %.lr.ph
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %11) #8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(24) %11, ptr noundef nonnull align 16 dereferenceable(24) @__const.main.colors, i64 24, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #8
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %14) #8
  call void @glfwGetFramebufferSize(ptr noundef nonnull %19, ptr noundef nonnull %12, ptr noundef nonnull %13) #8
  call void @glfwMakeContextCurrent(ptr noundef nonnull %19) #8
  %155 = load ptr, ptr @glad_glViewport, align 8, !tbaa !5
  %156 = load i32, ptr %12, align 4, !tbaa !9
  %157 = load i32, ptr %13, align 4, !tbaa !9
  call void %155(i32 noundef 0, i32 noundef 0, i32 noundef %156, i32 noundef %157) #8
  call void @mat4x4_ortho(ptr noundef nonnull %14, float noundef 0.000000e+00, float noundef 1.000000e+00, float noundef 0.000000e+00, float noundef 1.000000e+00, float noundef 0.000000e+00, float noundef 1.000000e+00)
  %158 = load ptr, ptr @glad_glUniformMatrix4fv, align 8, !tbaa !5
  call void %158(i32 noundef %111, i32 noundef 1, i8 noundef zeroext 0, ptr noundef nonnull %14) #8
  %159 = load ptr, ptr @glad_glUniform3fv, align 8, !tbaa !5
  call void %159(i32 noundef %113, i32 noundef 1, ptr noundef nonnull %11) #8
  %160 = load ptr, ptr @glad_glDrawArrays, align 8, !tbaa !5
  call void %160(i32 noundef 6, i32 noundef 0, i32 noundef 4) #8
  call void @glfwSwapBuffers(ptr noundef nonnull %19) #8
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %14) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #8
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %14) #8
  call void @glfwGetFramebufferSize(ptr noundef nonnull %131, ptr noundef nonnull %12, ptr noundef nonnull %13) #8
  call void @glfwMakeContextCurrent(ptr noundef nonnull %131) #8
  %161 = load ptr, ptr @glad_glViewport, align 8, !tbaa !5
  %162 = load i32, ptr %12, align 4, !tbaa !9
  %163 = load i32, ptr %13, align 4, !tbaa !9
  call void %161(i32 noundef 0, i32 noundef 0, i32 noundef %162, i32 noundef %163) #8
  call void @mat4x4_ortho(ptr noundef nonnull %14, float noundef 0.000000e+00, float noundef 1.000000e+00, float noundef 0.000000e+00, float noundef 1.000000e+00, float noundef 0.000000e+00, float noundef 1.000000e+00)
  %164 = load ptr, ptr @glad_glUniformMatrix4fv, align 8, !tbaa !5
  call void %164(i32 noundef %111, i32 noundef 1, i8 noundef zeroext 0, ptr noundef nonnull %14) #8
  %165 = load ptr, ptr @glad_glUniform3fv, align 8, !tbaa !5
  call void %165(i32 noundef %113, i32 noundef 1, ptr noundef nonnull %152) #8
  %166 = load ptr, ptr @glad_glDrawArrays, align 8, !tbaa !5
  call void %166(i32 noundef 6, i32 noundef 0, i32 noundef 4) #8
  call void @glfwSwapBuffers(ptr noundef nonnull %131) #8
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %14) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #8
  call void @glfwWaitEvents() #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #8
  %167 = call i32 @glfwWindowShouldClose(ptr noundef nonnull %19) #8
  %.not39 = icmp eq i32 %167, 0
  br i1 %.not39, label %.lr.ph, label %.critedge, !llvm.loop !14

.critedge:                                        ; preds = %.lr.ph, %154, %133
  call void @glfwTerminate() #8
  call void @exit(i32 noundef 0) #9
  unreachable
}

declare ptr @glfwSetErrorCallback(ptr noundef) local_unnamed_addr #3

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

declare i32 @glfwInit() local_unnamed_addr #3

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

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

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

declare void @glfwTerminate() local_unnamed_addr #3

declare ptr @glfwSetKeyCallback(ptr noundef, ptr noundef) local_unnamed_addr #3

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

declare void @glfwMakeContextCurrent(ptr noundef) local_unnamed_addr #3

declare void @glfwSwapInterval(i32 noundef) local_unnamed_addr #3

declare ptr @glfwGetProcAddress(ptr noundef) #3

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

declare i64 @glfwGetTimerValue() local_unnamed_addr #3

; Function Attrs: nounwind
declare i32 @rand() local_unnamed_addr #5

declare void @glfwGetWindowSize(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

declare void @glfwGetWindowFrameSize(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

declare void @glfwGetWindowPos(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

declare void @glfwSetWindowPos(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #3

declare i32 @glfwWindowShouldClose(ptr noundef) local_unnamed_addr #3

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

declare void @glfwGetFramebufferSize(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #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) local_unnamed_addr #7

declare void @glfwSwapBuffers(ptr noundef) local_unnamed_addr #3

declare void @glfwWaitEvents() local_unnamed_addr #3

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 = { 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 #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 = { 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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #7 = { 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 #8 = { nounwind }
attributes #9 = { noreturn 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/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !13}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass