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

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

@glad_glClear = external dso_local global ptr, align 8
@glad_glClearColor = external dso_local global ptr, align 8
@.str.1 = external hidden unnamed_addr constant [11 x i8], align 1
@__const.main.colors = external hidden unnamed_addr constant [4 x %struct.anon], align 16
@.str.2 = external hidden unnamed_addr constant [21 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: 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 i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca [4 x ptr], align 16
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca [4 x %struct.anon], align 16
  %14 = alloca i32, align 4
  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 4, ptr %6) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr %10) #5
  %15 = call i32 @glfwInit()
  %16 = icmp ne i32 %15, 0
  br i1 %16, label %21, label %17

17:                                               ; preds = %2
  %18 = call i32 @glfwGetError(ptr noundef %9)
  %19 = load ptr, ptr %9, align 8, !tbaa !9
  %20 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %19)
  call void @exit(i32 noundef 1) #6
  unreachable

21:                                               ; preds = %2
  call void @glfwWindowHint(i32 noundef 131077, i32 noundef 0)
  %22 = call ptr @glfwGetPrimaryMonitor()
  call void @glfwGetMonitorWorkarea(ptr noundef %22, ptr noundef %6, ptr noundef %7, ptr noundef null, ptr noundef %8)
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  store i32 0, ptr %11, align 4, !tbaa !5
  br label %23

23:                                               ; preds = %89, %21
  %24 = load i32, ptr %11, align 4, !tbaa !5
  %25 = icmp slt i32 %24, 4
  br i1 %25, label %27, label %26

26:                                               ; preds = %23
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  br label %92

27:                                               ; preds = %23
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  %28 = load i32, ptr %8, align 4, !tbaa !5
  %29 = sdiv i32 %28, 5
  store i32 %29, ptr %12, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 48, ptr %13) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %13, ptr align 16 @__const.main.colors, i64 48, i1 false)
  %30 = load i32, ptr %11, align 4, !tbaa !5
  %31 = icmp sgt i32 %30, 0
  br i1 %31, label %32, label %33

32:                                               ; preds = %27
  call void @glfwWindowHint(i32 noundef 131084, i32 noundef 0)
  br label %33

33:                                               ; preds = %32, %27
  %34 = load i32, ptr %6, align 4, !tbaa !5
  %35 = load i32, ptr %12, align 4, !tbaa !5
  %36 = load i32, ptr %11, align 4, !tbaa !5
  %37 = and i32 %36, 1
  %38 = add nsw i32 1, %37
  %39 = mul nsw i32 %35, %38
  %40 = add nsw i32 %34, %39
  call void @glfwWindowHint(i32 noundef 131086, i32 noundef %40)
  %41 = load i32, ptr %7, align 4, !tbaa !5
  %42 = load i32, ptr %12, align 4, !tbaa !5
  %43 = load i32, ptr %11, align 4, !tbaa !5
  %44 = ashr i32 %43, 1
  %45 = add nsw i32 1, %44
  %46 = mul nsw i32 %42, %45
  %47 = add nsw i32 %41, %46
  call void @glfwWindowHint(i32 noundef 131087, i32 noundef %47)
  %48 = load i32, ptr %12, align 4, !tbaa !5
  %49 = load i32, ptr %12, align 4, !tbaa !5
  %50 = call ptr @glfwCreateWindow(i32 noundef %48, i32 noundef %49, ptr noundef @.str.2, ptr noundef null, ptr noundef null)
  %51 = load i32, ptr %11, align 4, !tbaa !5
  %52 = sext i32 %51 to i64
  %53 = getelementptr inbounds [4 x ptr], ptr %10, i64 0, i64 %52
  store ptr %50, ptr %53, align 8, !tbaa !9
  %54 = load i32, ptr %11, align 4, !tbaa !5
  %55 = sext i32 %54 to i64
  %56 = getelementptr inbounds [4 x ptr], ptr %10, i64 0, i64 %55
  %57 = load ptr, ptr %56, align 8, !tbaa !9
  %58 = icmp ne ptr %57, null
  br i1 %58, label %63, label %59

59:                                               ; preds = %33
  %60 = call i32 @glfwGetError(ptr noundef %9)
  %61 = load ptr, ptr %9, align 8, !tbaa !9
  %62 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %61)
  call void @glfwTerminate()
  call void @exit(i32 noundef 1) #6
  unreachable

63:                                               ; preds = %33
  %64 = load i32, ptr %11, align 4, !tbaa !5
  %65 = sext i32 %64 to i64
  %66 = getelementptr inbounds [4 x ptr], ptr %10, i64 0, i64 %65
  %67 = load ptr, ptr %66, align 8, !tbaa !9
  call void @glfwSetInputMode(ptr noundef %67, i32 noundef 208898, i32 noundef 1)
  %68 = load i32, ptr %11, align 4, !tbaa !5
  %69 = sext i32 %68 to i64
  %70 = getelementptr inbounds [4 x ptr], ptr %10, i64 0, i64 %69
  %71 = load ptr, ptr %70, align 8, !tbaa !9
  call void @glfwMakeContextCurrent(ptr noundef %71)
  %72 = call i32 @gladLoadGL(ptr noundef @glfwGetProcAddress)
  %73 = load ptr, ptr @glad_glClearColor, align 8, !tbaa !9
  %74 = load i32, ptr %11, align 4, !tbaa !5
  %75 = sext i32 %74 to i64
  %76 = getelementptr inbounds [4 x %struct.anon], ptr %13, i64 0, i64 %75
  %77 = getelementptr inbounds %struct.anon, ptr %76, i32 0, i32 0
  %78 = load float, ptr %77, align 4, !tbaa !11
  %79 = load i32, ptr %11, align 4, !tbaa !5
  %80 = sext i32 %79 to i64
  %81 = getelementptr inbounds [4 x %struct.anon], ptr %13, i64 0, i64 %80
  %82 = getelementptr inbounds %struct.anon, ptr %81, i32 0, i32 1
  %83 = load float, ptr %82, align 4, !tbaa !14
  %84 = load i32, ptr %11, align 4, !tbaa !5
  %85 = sext i32 %84 to i64
  %86 = getelementptr inbounds [4 x %struct.anon], ptr %13, i64 0, i64 %85
  %87 = getelementptr inbounds %struct.anon, ptr %86, i32 0, i32 2
  %88 = load float, ptr %87, align 4, !tbaa !15
  call void %73(float noundef %78, float noundef %83, float noundef %88, float noundef 1.000000e+00)
  call void @llvm.lifetime.end.p0(i64 48, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  br label %89

89:                                               ; preds = %63
  %90 = load i32, ptr %11, align 4, !tbaa !5
  %91 = add nsw i32 %90, 1
  store i32 %91, ptr %11, align 4, !tbaa !5
  br label %23, !llvm.loop !16

92:                                               ; preds = %26
  br label %93

93:                                               ; preds = %126, %92
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  store i32 0, ptr %14, align 4, !tbaa !5
  br label %94

94:                                               ; preds = %123, %93
  %95 = load i32, ptr %14, align 4, !tbaa !5
  %96 = icmp slt i32 %95, 4
  br i1 %96, label %98, label %97

97:                                               ; preds = %94
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  br label %126

98:                                               ; preds = %94
  %99 = load i32, ptr %14, align 4, !tbaa !5
  %100 = sext i32 %99 to i64
  %101 = getelementptr inbounds [4 x ptr], ptr %10, i64 0, i64 %100
  %102 = load ptr, ptr %101, align 8, !tbaa !9
  call void @glfwMakeContextCurrent(ptr noundef %102)
  %103 = load ptr, ptr @glad_glClear, align 8, !tbaa !9
  call void %103(i32 noundef 16384)
  %104 = load i32, ptr %14, align 4, !tbaa !5
  %105 = sext i32 %104 to i64
  %106 = getelementptr inbounds [4 x ptr], ptr %10, i64 0, i64 %105
  %107 = load ptr, ptr %106, align 8, !tbaa !9
  call void @glfwSwapBuffers(ptr noundef %107)
  %108 = load i32, ptr %14, align 4, !tbaa !5
  %109 = sext i32 %108 to i64
  %110 = getelementptr inbounds [4 x ptr], ptr %10, i64 0, i64 %109
  %111 = load ptr, ptr %110, align 8, !tbaa !9
  %112 = call i32 @glfwWindowShouldClose(ptr noundef %111)
  %113 = icmp ne i32 %112, 0
  br i1 %113, label %121, label %114

114:                                              ; preds = %98
  %115 = load i32, ptr %14, align 4, !tbaa !5
  %116 = sext i32 %115 to i64
  %117 = getelementptr inbounds [4 x ptr], ptr %10, i64 0, i64 %116
  %118 = load ptr, ptr %117, align 8, !tbaa !9
  %119 = call i32 @glfwGetKey(ptr noundef %118, i32 noundef 256)
  %120 = icmp ne i32 %119, 0
  br i1 %120, label %121, label %122

121:                                              ; preds = %114, %98
  call void @glfwTerminate()
  call void @exit(i32 noundef 0) #6
  unreachable

122:                                              ; preds = %114
  br label %123

123:                                              ; preds = %122
  %124 = load i32, ptr %14, align 4, !tbaa !5
  %125 = add nsw i32 %124, 1
  store i32 %125, ptr %14, align 4, !tbaa !5
  br label %94, !llvm.loop !18

126:                                              ; preds = %97
  call void @glfwWaitEvents()
  br label %93
}

declare i32 @glfwInit() #2

declare i32 @glfwGetError(ptr noundef) #2

declare i32 @printf(ptr noundef, ...) #2

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

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

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

declare ptr @glfwGetPrimaryMonitor() #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) #4

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

declare void @glfwTerminate() #2

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

declare void @glfwMakeContextCurrent(ptr noundef) #2

declare ptr @glfwGetProcAddress(ptr noundef) #2

declare void @glfwSwapBuffers(ptr noundef) #2

declare i32 @glfwWindowShouldClose(ptr noundef) #2

declare i32 @glfwGetKey(ptr noundef, i32 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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { nounwind }
attributes #6 = { 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 = !{!12, !13, i64 0}
!12 = !{!"", !13, i64 0, !13, i64 4, !13, i64 8}
!13 = !{!"float", !7, i64 0}
!14 = !{!12, !13, i64 4}
!15 = !{!12, !13, i64 8}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = distinct !{!18, !17}


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

@glad_glClear = external dso_local local_unnamed_addr global ptr, align 8
@glad_glClearColor = external dso_local local_unnamed_addr global ptr, align 8
@.str.1 = external hidden unnamed_addr constant [11 x i8], align 1
@__const.main.colors = external hidden unnamed_addr constant [4 x %struct.anon], align 16
@.str.2 = external hidden unnamed_addr constant [21 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: 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 i32, align 4
  %6 = alloca ptr, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #6
  %7 = tail call i32 @glfwInit() #6
  %.not = icmp eq i32 %7, 0
  br i1 %.not, label %8, label %12

8:                                                ; preds = %2
  %9 = call i32 @glfwGetError(ptr noundef nonnull %6) #6
  %10 = load ptr, ptr %6, align 8, !tbaa !5
  %11 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, ptr noundef %10)
  call void @exit(i32 noundef 1) #7
  unreachable

12:                                               ; preds = %2
  tail call void @glfwWindowHint(i32 noundef 131077, i32 noundef 0) #6
  %13 = tail call ptr @glfwGetPrimaryMonitor() #6
  call void @glfwGetMonitorWorkarea(ptr noundef %13, ptr noundef nonnull %3, ptr noundef nonnull %4, ptr noundef null, ptr noundef nonnull %5) #6
  %14 = load i32, ptr %5, align 4, !tbaa !9
  %15 = sdiv i32 %14, 5
  %.pre = load i32, ptr %3, align 4, !tbaa !9
  %16 = add nsw i32 %.pre, %15
  call void @glfwWindowHint(i32 noundef 131086, i32 noundef %16) #6
  %17 = load i32, ptr %4, align 4, !tbaa !9
  %18 = add nsw i32 %17, %15
  call void @glfwWindowHint(i32 noundef 131087, i32 noundef %18) #6
  %19 = call ptr @glfwCreateWindow(i32 noundef %15, i32 noundef %15, ptr noundef nonnull @.str.2, ptr noundef null, ptr noundef null) #6
  %.not27 = icmp eq ptr %19, null
  br i1 %.not27, label %20, label %24

20:                                               ; preds = %52, %38, %24, %12
  %21 = call i32 @glfwGetError(ptr noundef nonnull %6) #6
  %22 = load ptr, ptr %6, align 8, !tbaa !5
  %23 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, ptr noundef %22)
  call void @glfwTerminate() #6
  call void @exit(i32 noundef 1) #7
  unreachable

24:                                               ; preds = %12
  call void @glfwSetInputMode(ptr noundef nonnull %19, i32 noundef 208898, i32 noundef 1) #6
  call void @glfwMakeContextCurrent(ptr noundef nonnull %19) #6
  %25 = call i32 @gladLoadGL(ptr noundef nonnull @glfwGetProcAddress)
  %26 = load ptr, ptr @glad_glClearColor, align 8, !tbaa !5
  %27 = load float, ptr @__const.main.colors, align 16, !tbaa !11
  %28 = load float, ptr getelementptr inbounds (i8, ptr @__const.main.colors, i64 4), align 4, !tbaa !14
  %29 = load float, ptr getelementptr inbounds (i8, ptr @__const.main.colors, i64 8), align 8, !tbaa !15
  call void %26(float noundef %27, float noundef %28, float noundef %29, float noundef 1.000000e+00) #6
  %30 = load i32, ptr %5, align 4, !tbaa !9
  %31 = sdiv i32 %30, 5
  call void @glfwWindowHint(i32 noundef 131084, i32 noundef 0) #6
  %32 = load i32, ptr %3, align 4, !tbaa !9
  %33 = shl nsw i32 %31, 1
  %34 = add nsw i32 %32, %33
  call void @glfwWindowHint(i32 noundef 131086, i32 noundef %34) #6
  %35 = load i32, ptr %4, align 4, !tbaa !9
  %36 = add nsw i32 %35, %31
  call void @glfwWindowHint(i32 noundef 131087, i32 noundef %36) #6
  %37 = call ptr @glfwCreateWindow(i32 noundef %31, i32 noundef %31, ptr noundef nonnull @.str.2, ptr noundef null, ptr noundef null) #6
  %.not27.1 = icmp eq ptr %37, null
  br i1 %.not27.1, label %20, label %38

38:                                               ; preds = %24
  call void @glfwSetInputMode(ptr noundef nonnull %37, i32 noundef 208898, i32 noundef 1) #6
  call void @glfwMakeContextCurrent(ptr noundef nonnull %37) #6
  %39 = call i32 @gladLoadGL(ptr noundef nonnull @glfwGetProcAddress)
  %40 = load ptr, ptr @glad_glClearColor, align 8, !tbaa !5
  %41 = load float, ptr getelementptr inbounds (i8, ptr @__const.main.colors, i64 12), align 4, !tbaa !11
  %42 = load float, ptr getelementptr inbounds (i8, ptr @__const.main.colors, i64 16), align 16, !tbaa !14
  %43 = load float, ptr getelementptr inbounds (i8, ptr @__const.main.colors, i64 20), align 4, !tbaa !15
  call void %40(float noundef %41, float noundef %42, float noundef %43, float noundef 1.000000e+00) #6
  %44 = load i32, ptr %5, align 4, !tbaa !9
  %45 = sdiv i32 %44, 5
  call void @glfwWindowHint(i32 noundef 131084, i32 noundef 0) #6
  %46 = load i32, ptr %3, align 4, !tbaa !9
  %47 = add nsw i32 %46, %45
  call void @glfwWindowHint(i32 noundef 131086, i32 noundef %47) #6
  %48 = load i32, ptr %4, align 4, !tbaa !9
  %49 = shl nsw i32 %45, 1
  %50 = add nsw i32 %48, %49
  call void @glfwWindowHint(i32 noundef 131087, i32 noundef %50) #6
  %51 = call ptr @glfwCreateWindow(i32 noundef %45, i32 noundef %45, ptr noundef nonnull @.str.2, ptr noundef null, ptr noundef null) #6
  %.not27.2 = icmp eq ptr %51, null
  br i1 %.not27.2, label %20, label %52

52:                                               ; preds = %38
  call void @glfwSetInputMode(ptr noundef nonnull %51, i32 noundef 208898, i32 noundef 1) #6
  call void @glfwMakeContextCurrent(ptr noundef nonnull %51) #6
  %53 = call i32 @gladLoadGL(ptr noundef nonnull @glfwGetProcAddress)
  %54 = load ptr, ptr @glad_glClearColor, align 8, !tbaa !5
  %55 = load float, ptr getelementptr inbounds (i8, ptr @__const.main.colors, i64 24), align 8, !tbaa !11
  %56 = load float, ptr getelementptr inbounds (i8, ptr @__const.main.colors, i64 28), align 4, !tbaa !14
  %57 = load float, ptr getelementptr inbounds (i8, ptr @__const.main.colors, i64 32), align 16, !tbaa !15
  call void %54(float noundef %55, float noundef %56, float noundef %57, float noundef 1.000000e+00) #6
  %58 = load i32, ptr %5, align 4, !tbaa !9
  %59 = sdiv i32 %58, 5
  call void @glfwWindowHint(i32 noundef 131084, i32 noundef 0) #6
  %60 = load i32, ptr %3, align 4, !tbaa !9
  %61 = shl nsw i32 %59, 1
  %62 = add nsw i32 %60, %61
  call void @glfwWindowHint(i32 noundef 131086, i32 noundef %62) #6
  %63 = load i32, ptr %4, align 4, !tbaa !9
  %64 = add nsw i32 %63, %61
  call void @glfwWindowHint(i32 noundef 131087, i32 noundef %64) #6
  %65 = call ptr @glfwCreateWindow(i32 noundef %59, i32 noundef %59, ptr noundef nonnull @.str.2, ptr noundef null, ptr noundef null) #6
  %.not27.3 = icmp eq ptr %65, null
  br i1 %.not27.3, label %20, label %.preheader.preheader

.preheader.preheader:                             ; preds = %52
  call void @glfwSetInputMode(ptr noundef nonnull %65, i32 noundef 208898, i32 noundef 1) #6
  call void @glfwMakeContextCurrent(ptr noundef nonnull %65) #6
  %66 = call i32 @gladLoadGL(ptr noundef nonnull @glfwGetProcAddress)
  %67 = load ptr, ptr @glad_glClearColor, align 8, !tbaa !5
  %68 = load float, ptr getelementptr inbounds (i8, ptr @__const.main.colors, i64 36), align 4, !tbaa !11
  %69 = load float, ptr getelementptr inbounds (i8, ptr @__const.main.colors, i64 40), align 8, !tbaa !14
  %70 = load float, ptr getelementptr inbounds (i8, ptr @__const.main.colors, i64 44), align 4, !tbaa !15
  call void %67(float noundef %68, float noundef %69, float noundef %70, float noundef 1.000000e+00) #6
  call void @glfwMakeContextCurrent(ptr noundef nonnull %19) #6
  %71 = load ptr, ptr @glad_glClear, align 8, !tbaa !5
  call void %71(i32 noundef 16384) #6
  call void @glfwSwapBuffers(ptr noundef nonnull %19) #6
  %72 = call i32 @glfwWindowShouldClose(ptr noundef nonnull %19) #6
  %.not2435 = icmp eq i32 %72, 0
  br i1 %.not2435, label %.lr.ph, label %._crit_edge

73:                                               ; preds = %.lr.ph
  call void @glfwMakeContextCurrent(ptr noundef nonnull %37) #6
  %74 = load ptr, ptr @glad_glClear, align 8, !tbaa !5
  call void %74(i32 noundef 16384) #6
  call void @glfwSwapBuffers(ptr noundef nonnull %37) #6
  %75 = call i32 @glfwWindowShouldClose(ptr noundef nonnull %37) #6
  %.not24.1 = icmp eq i32 %75, 0
  br i1 %.not24.1, label %76, label %._crit_edge

76:                                               ; preds = %73
  %77 = call i32 @glfwGetKey(ptr noundef nonnull %37, i32 noundef 256) #6
  %.not25.1 = icmp eq i32 %77, 0
  br i1 %.not25.1, label %78, label %._crit_edge

78:                                               ; preds = %76
  call void @glfwMakeContextCurrent(ptr noundef nonnull %51) #6
  %79 = load ptr, ptr @glad_glClear, align 8, !tbaa !5
  call void %79(i32 noundef 16384) #6
  call void @glfwSwapBuffers(ptr noundef nonnull %51) #6
  %80 = call i32 @glfwWindowShouldClose(ptr noundef nonnull %51) #6
  %.not24.2 = icmp eq i32 %80, 0
  br i1 %.not24.2, label %81, label %._crit_edge

81:                                               ; preds = %78
  %82 = call i32 @glfwGetKey(ptr noundef nonnull %51, i32 noundef 256) #6
  %.not25.2 = icmp eq i32 %82, 0
  br i1 %.not25.2, label %83, label %._crit_edge

83:                                               ; preds = %81
  call void @glfwMakeContextCurrent(ptr noundef nonnull %65) #6
  %84 = load ptr, ptr @glad_glClear, align 8, !tbaa !5
  call void %84(i32 noundef 16384) #6
  call void @glfwSwapBuffers(ptr noundef nonnull %65) #6
  %85 = call i32 @glfwWindowShouldClose(ptr noundef nonnull %65) #6
  %.not24.3 = icmp eq i32 %85, 0
  br i1 %.not24.3, label %86, label %._crit_edge

86:                                               ; preds = %83
  %87 = call i32 @glfwGetKey(ptr noundef nonnull %65, i32 noundef 256) #6
  %.not25.3 = icmp eq i32 %87, 0
  br i1 %.not25.3, label %.preheader, label %._crit_edge

.preheader:                                       ; preds = %86
  call void @glfwWaitEvents() #6
  call void @glfwMakeContextCurrent(ptr noundef nonnull %19) #6
  %88 = load ptr, ptr @glad_glClear, align 8, !tbaa !5
  call void %88(i32 noundef 16384) #6
  call void @glfwSwapBuffers(ptr noundef nonnull %19) #6
  %89 = call i32 @glfwWindowShouldClose(ptr noundef nonnull %19) #6
  %.not24 = icmp eq i32 %89, 0
  br i1 %.not24, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %.preheader.preheader, %.preheader
  %90 = call i32 @glfwGetKey(ptr noundef nonnull %19, i32 noundef 256) #6
  %.not25 = icmp eq i32 %90, 0
  br i1 %.not25, label %73, label %._crit_edge

._crit_edge:                                      ; preds = %.preheader, %.lr.ph, %73, %76, %78, %81, %83, %86, %.preheader.preheader
  call void @glfwTerminate() #6
  call void @exit(i32 noundef 0) #7
  unreachable
}

declare i32 @glfwInit() local_unnamed_addr #3

declare i32 @glfwGetError(ptr noundef) local_unnamed_addr #3

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) 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 #3

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

declare ptr @glfwGetPrimaryMonitor() 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 void @glfwSetInputMode(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #3

declare void @glfwMakeContextCurrent(ptr noundef) local_unnamed_addr #3

declare ptr @glfwGetProcAddress(ptr noundef) #3

declare void @glfwSwapBuffers(ptr noundef) local_unnamed_addr #3

declare i32 @glfwWindowShouldClose(ptr noundef) local_unnamed_addr #3

declare i32 @glfwGetKey(ptr noundef, i32 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 = { 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 #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 = { nounwind }
attributes #7 = { 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 = !{!12, !13, i64 0}
!12 = !{!"", !13, i64 0, !13, i64 4, !13, i64 8}
!13 = !{!"float", !7, i64 0}
!14 = !{!12, !13, i64 4}
!15 = !{!12, !13, i64 8}


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