; LLVM IR from Erkaman/fluid_sim :: deps/glfw-3.2/tests (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 }

@.str = external hidden unnamed_addr constant [3 x i8], align 1
@titles = external hidden global [4 x ptr], align 16
@glad_glClearColor = external global ptr, align 8
@colors = external hidden constant [4 x %struct.anon], align 16
@glad_glClear = external global ptr, align 8

; Function Attrs: nounwind uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
  %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 i32, align 4
  %10 = alloca [4 x ptr], align 16
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %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) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  store i32 0, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  store i32 1, ptr %9, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %10) #4
  br label %15

15:                                               ; preds = %25, %2
  %16 = load i32, ptr %4, align 4, !tbaa !5
  %17 = load ptr, ptr %5, align 8, !tbaa !9
  %18 = call i32 @getopt(i32 noundef %16, ptr noundef %17, ptr noundef @.str)
  store i32 %18, ptr %7, align 4, !tbaa !5
  %19 = icmp ne i32 %18, -1
  br i1 %19, label %20, label %26

20:                                               ; preds = %15
  %21 = load i32, ptr %7, align 4, !tbaa !5
  switch i32 %21, label %24 [
    i32 98, label %22
    i32 104, label %23
  ]

22:                                               ; preds = %20
  store i32 1, ptr %8, align 4, !tbaa !5
  br label %25

23:                                               ; preds = %20
  call void @usage()
  call void @exit(i32 noundef 0) #5
  unreachable

24:                                               ; preds = %20
  call void @usage()
  call void @exit(i32 noundef 1) #5
  unreachable

25:                                               ; preds = %22
  br label %15, !llvm.loop !11

26:                                               ; preds = %15
  %27 = call ptr @glfwSetErrorCallback(ptr noundef @error_callback)
  %28 = call i32 @glfwInit()
  %29 = icmp ne i32 %28, 0
  br i1 %29, label %31, label %30

30:                                               ; preds = %26
  call void @exit(i32 noundef 1) #5
  unreachable

31:                                               ; preds = %26
  %32 = load i32, ptr %8, align 4, !tbaa !5
  call void @glfwWindowHint(i32 noundef 131077, i32 noundef %32)
  call void @glfwWindowHint(i32 noundef 131076, i32 noundef 0)
  store i32 0, ptr %6, align 4, !tbaa !5
  br label %33

33:                                               ; preds = %102, %31
  %34 = load i32, ptr %6, align 4, !tbaa !5
  %35 = icmp slt i32 %34, 4
  br i1 %35, label %36, label %105

36:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  %37 = load i32, ptr %6, align 4, !tbaa !5
  %38 = sext i32 %37 to i64
  %39 = getelementptr inbounds [4 x ptr], ptr @titles, i64 0, i64 %38
  %40 = load ptr, ptr %39, align 8, !tbaa !9
  %41 = call ptr @glfwCreateWindow(i32 noundef 200, i32 noundef 200, ptr noundef %40, ptr noundef null, ptr noundef null)
  %42 = load i32, ptr %6, align 4, !tbaa !5
  %43 = sext i32 %42 to i64
  %44 = getelementptr inbounds [4 x ptr], ptr %10, i64 0, i64 %43
  store ptr %41, ptr %44, align 8, !tbaa !9
  %45 = load i32, ptr %6, align 4, !tbaa !5
  %46 = sext i32 %45 to i64
  %47 = getelementptr inbounds [4 x ptr], ptr %10, i64 0, i64 %46
  %48 = load ptr, ptr %47, align 8, !tbaa !9
  %49 = icmp ne ptr %48, null
  br i1 %49, label %51, label %50

50:                                               ; preds = %36
  call void @glfwTerminate()
  call void @exit(i32 noundef 1) #5
  unreachable

51:                                               ; preds = %36
  %52 = load i32, ptr %6, align 4, !tbaa !5
  %53 = sext i32 %52 to i64
  %54 = getelementptr inbounds [4 x ptr], ptr %10, i64 0, i64 %53
  %55 = load ptr, ptr %54, align 8, !tbaa !9
  %56 = call ptr @glfwSetKeyCallback(ptr noundef %55, ptr noundef @key_callback)
  %57 = load i32, ptr %6, align 4, !tbaa !5
  %58 = sext i32 %57 to i64
  %59 = getelementptr inbounds [4 x ptr], ptr %10, i64 0, i64 %58
  %60 = load ptr, ptr %59, align 8, !tbaa !9
  call void @glfwMakeContextCurrent(ptr noundef %60)
  %61 = call i32 @gladLoadGLLoader(ptr noundef @glfwGetProcAddress)
  %62 = load ptr, ptr @glad_glClearColor, align 8, !tbaa !9
  %63 = load i32, ptr %6, align 4, !tbaa !5
  %64 = sext i32 %63 to i64
  %65 = getelementptr inbounds [4 x %struct.anon], ptr @colors, i64 0, i64 %64
  %66 = getelementptr inbounds %struct.anon, ptr %65, i32 0, i32 0
  %67 = load float, ptr %66, align 4, !tbaa !13
  %68 = load i32, ptr %6, align 4, !tbaa !5
  %69 = sext i32 %68 to i64
  %70 = getelementptr inbounds [4 x %struct.anon], ptr @colors, i64 0, i64 %69
  %71 = getelementptr inbounds %struct.anon, ptr %70, i32 0, i32 1
  %72 = load float, ptr %71, align 4, !tbaa !16
  %73 = load i32, ptr %6, align 4, !tbaa !5
  %74 = sext i32 %73 to i64
  %75 = getelementptr inbounds [4 x %struct.anon], ptr @colors, i64 0, i64 %74
  %76 = getelementptr inbounds %struct.anon, ptr %75, i32 0, i32 2
  %77 = load float, ptr %76, align 4, !tbaa !17
  call void %62(float noundef %67, float noundef %72, float noundef %77, float noundef 1.000000e+00)
  %78 = load i32, ptr %6, align 4, !tbaa !5
  %79 = sext i32 %78 to i64
  %80 = getelementptr inbounds [4 x ptr], ptr %10, i64 0, i64 %79
  %81 = load ptr, ptr %80, align 8, !tbaa !9
  call void @glfwGetWindowFrameSize(ptr noundef %81, ptr noundef %11, ptr noundef %12, ptr noundef %13, ptr noundef %14)
  %82 = load i32, ptr %6, align 4, !tbaa !5
  %83 = sext i32 %82 to i64
  %84 = getelementptr inbounds [4 x ptr], ptr %10, i64 0, i64 %83
  %85 = load ptr, ptr %84, align 8, !tbaa !9
  %86 = load i32, ptr %6, align 4, !tbaa !5
  %87 = and i32 %86, 1
  %88 = load i32, ptr %11, align 4, !tbaa !5
  %89 = add nsw i32 200, %88
  %90 = load i32, ptr %13, align 4, !tbaa !5
  %91 = add nsw i32 %89, %90
  %92 = mul nsw i32 %87, %91
  %93 = add nsw i32 100, %92
  %94 = load i32, ptr %6, align 4, !tbaa !5
  %95 = ashr i32 %94, 1
  %96 = load i32, ptr %12, align 4, !tbaa !5
  %97 = add nsw i32 200, %96
  %98 = load i32, ptr %14, align 4, !tbaa !5
  %99 = add nsw i32 %97, %98
  %100 = mul nsw i32 %95, %99
  %101 = add nsw i32 100, %100
  call void @glfwSetWindowPos(ptr noundef %85, i32 noundef %93, i32 noundef %101)
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  br label %102

102:                                              ; preds = %51
  %103 = load i32, ptr %6, align 4, !tbaa !5
  %104 = add nsw i32 %103, 1
  store i32 %104, ptr %6, align 4, !tbaa !5
  br label %33, !llvm.loop !18

105:                                              ; preds = %33
  store i32 0, ptr %6, align 4, !tbaa !5
  br label %106

106:                                              ; preds = %114, %105
  %107 = load i32, ptr %6, align 4, !tbaa !5
  %108 = icmp slt i32 %107, 4
  br i1 %108, label %109, label %117

109:                                              ; preds = %106
  %110 = load i32, ptr %6, align 4, !tbaa !5
  %111 = sext i32 %110 to i64
  %112 = getelementptr inbounds [4 x ptr], ptr %10, i64 0, i64 %111
  %113 = load ptr, ptr %112, align 8, !tbaa !9
  call void @glfwShowWindow(ptr noundef %113)
  br label %114

114:                                              ; preds = %109
  %115 = load i32, ptr %6, align 4, !tbaa !5
  %116 = add nsw i32 %115, 1
  store i32 %116, ptr %6, align 4, !tbaa !5
  br label %106, !llvm.loop !19

117:                                              ; preds = %106
  br label %118

118:                                              ; preds = %146, %117
  %119 = load i32, ptr %9, align 4, !tbaa !5
  %120 = icmp ne i32 %119, 0
  br i1 %120, label %121, label %147

121:                                              ; preds = %118
  store i32 0, ptr %6, align 4, !tbaa !5
  br label %122

122:                                              ; preds = %143, %121
  %123 = load i32, ptr %6, align 4, !tbaa !5
  %124 = icmp slt i32 %123, 4
  br i1 %124, label %125, label %146

125:                                              ; preds = %122
  %126 = load i32, ptr %6, align 4, !tbaa !5
  %127 = sext i32 %126 to i64
  %128 = getelementptr inbounds [4 x ptr], ptr %10, i64 0, i64 %127
  %129 = load ptr, ptr %128, align 8, !tbaa !9
  call void @glfwMakeContextCurrent(ptr noundef %129)
  %130 = load ptr, ptr @glad_glClear, align 8, !tbaa !9
  call void %130(i32 noundef 16384)
  %131 = load i32, ptr %6, align 4, !tbaa !5
  %132 = sext i32 %131 to i64
  %133 = getelementptr inbounds [4 x ptr], ptr %10, i64 0, i64 %132
  %134 = load ptr, ptr %133, align 8, !tbaa !9
  call void @glfwSwapBuffers(ptr noundef %134)
  %135 = load i32, ptr %6, align 4, !tbaa !5
  %136 = sext i32 %135 to i64
  %137 = getelementptr inbounds [4 x ptr], ptr %10, i64 0, i64 %136
  %138 = load ptr, ptr %137, align 8, !tbaa !9
  %139 = call i32 @glfwWindowShouldClose(ptr noundef %138)
  %140 = icmp ne i32 %139, 0
  br i1 %140, label %141, label %142

141:                                              ; preds = %125
  store i32 0, ptr %9, align 4, !tbaa !5
  br label %142

142:                                              ; preds = %141, %125
  br label %143

143:                                              ; preds = %142
  %144 = load i32, ptr %6, align 4, !tbaa !5
  %145 = add nsw i32 %144, 1
  store i32 %145, ptr %6, align 4, !tbaa !5
  br label %122, !llvm.loop !20

146:                                              ; preds = %122
  call void @glfwWaitEvents()
  br label %118, !llvm.loop !21

147:                                              ; preds = %118
  call void @glfwTerminate()
  call void @exit(i32 noundef 0) #5
  unreachable
}

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

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

; Function Attrs: nounwind uwtable
declare hidden void @usage() #0

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

declare ptr @glfwSetErrorCallback(ptr noundef) #2

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

declare i32 @glfwInit() #2

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) #0

declare void @glfwMakeContextCurrent(ptr noundef) #2

declare i32 @gladLoadGLLoader(ptr noundef) #2

declare ptr @glfwGetProcAddress(ptr noundef) #2

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

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

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

declare void @glfwShowWindow(ptr noundef) #2

declare void @glfwSwapBuffers(ptr noundef) #2

declare i32 @glfwWindowShouldClose(ptr noundef) #2

declare void @glfwWaitEvents() #2

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 }
attributes #5 = { 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 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!14, !15, i64 0}
!14 = !{!"", !15, i64 0, !15, i64 4, !15, i64 8}
!15 = !{!"float", !7, i64 0}
!16 = !{!14, !15, i64 4}
!17 = !{!14, !15, i64 8}
!18 = distinct !{!18, !12}
!19 = distinct !{!19, !12}
!20 = distinct !{!20, !12}
!21 = distinct !{!21, !12}


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

@.str = external hidden unnamed_addr constant [3 x i8], align 1
@titles = external hidden local_unnamed_addr global [4 x ptr], align 16
@glad_glClearColor = external local_unnamed_addr global ptr, align 8
@colors = external hidden local_unnamed_addr constant [4 x %struct.anon], align 16
@glad_glClear = external local_unnamed_addr global ptr, align 8

; Function Attrs: noreturn nounwind uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr noundef %1) local_unnamed_addr #0 {
.peel.begin:
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = tail call i32 @getopt(i32 noundef %0, ptr noundef %1, ptr noundef nonnull @.str) #5
  switch i32 %6, label %.loopexit [
    i32 -1, label %.loopexit47
    i32 98, label %.peel.next
    i32 104, label %.loopexit48
  ]

.peel.next:                                       ; preds = %.peel.begin, %.peel.next
  %7 = tail call i32 @getopt(i32 noundef %0, ptr noundef %1, ptr noundef nonnull @.str) #5
  switch i32 %7, label %.loopexit [
    i32 -1, label %.loopexit47
    i32 98, label %.peel.next
    i32 104, label %.loopexit48
  ], !llvm.loop !5

.loopexit48:                                      ; preds = %.peel.next, %.peel.begin
  tail call void @usage()
  tail call void @exit(i32 noundef 0) #6
  unreachable

.loopexit:                                        ; preds = %.peel.next, %.peel.begin
  tail call void @usage()
  tail call void @exit(i32 noundef 1) #6
  unreachable

.loopexit47:                                      ; preds = %.peel.next, %.peel.begin
  %.026.lcssa44 = phi i32 [ 0, %.peel.begin ], [ 1, %.peel.next ]
  %8 = tail call ptr @glfwSetErrorCallback(ptr noundef nonnull @error_callback) #5
  %9 = tail call i32 @glfwInit() #5
  %.not32 = icmp eq i32 %9, 0
  br i1 %.not32, label %10, label %11

10:                                               ; preds = %.loopexit47
  tail call void @exit(i32 noundef 1) #6
  unreachable

11:                                               ; preds = %.loopexit47
  tail call void @glfwWindowHint(i32 noundef 131077, i32 noundef %.026.lcssa44) #5
  tail call void @glfwWindowHint(i32 noundef 131076, i32 noundef 0) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #5
  %12 = load ptr, ptr @titles, align 16, !tbaa !8
  %13 = tail call ptr @glfwCreateWindow(i32 noundef 200, i32 noundef 200, ptr noundef %12, ptr noundef null, ptr noundef null) #5
  %.not35 = icmp eq ptr %13, null
  br i1 %.not35, label %14, label %15

14:                                               ; preds = %37, %24, %15, %11
  call void @glfwTerminate() #5
  call void @exit(i32 noundef 1) #6
  unreachable

15:                                               ; preds = %11
  %16 = tail call ptr @glfwSetKeyCallback(ptr noundef nonnull %13, ptr noundef nonnull @key_callback) #5
  tail call void @glfwMakeContextCurrent(ptr noundef nonnull %13) #5
  %17 = tail call i32 @gladLoadGLLoader(ptr noundef nonnull @glfwGetProcAddress) #5
  %18 = load ptr, ptr @glad_glClearColor, align 8, !tbaa !8
  %19 = load float, ptr @colors, align 16, !tbaa !12
  %20 = load float, ptr getelementptr inbounds (i8, ptr @colors, i64 4), align 4, !tbaa !15
  %21 = load float, ptr getelementptr inbounds (i8, ptr @colors, i64 8), align 8, !tbaa !16
  tail call void %18(float noundef %19, float noundef %20, float noundef %21, float noundef 1.000000e+00) #5
  call void @glfwGetWindowFrameSize(ptr noundef nonnull %13, ptr noundef nonnull %2, ptr noundef nonnull %3, ptr noundef nonnull %4, ptr noundef nonnull %5) #5
  call void @glfwSetWindowPos(ptr noundef nonnull %13, i32 noundef 100, i32 noundef 100) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #5
  %22 = load ptr, ptr getelementptr inbounds (i8, ptr @titles, i64 8), align 8, !tbaa !8
  %23 = call ptr @glfwCreateWindow(i32 noundef 200, i32 noundef 200, ptr noundef %22, ptr noundef null, ptr noundef null) #5
  %.not35.1 = icmp eq ptr %23, null
  br i1 %.not35.1, label %14, label %24

24:                                               ; preds = %15
  %25 = call ptr @glfwSetKeyCallback(ptr noundef nonnull %23, ptr noundef nonnull @key_callback) #5
  call void @glfwMakeContextCurrent(ptr noundef nonnull %23) #5
  %26 = call i32 @gladLoadGLLoader(ptr noundef nonnull @glfwGetProcAddress) #5
  %27 = load ptr, ptr @glad_glClearColor, align 8, !tbaa !8
  %28 = load float, ptr getelementptr inbounds (i8, ptr @colors, i64 12), align 4, !tbaa !12
  %29 = load float, ptr getelementptr inbounds (i8, ptr @colors, i64 16), align 16, !tbaa !15
  %30 = load float, ptr getelementptr inbounds (i8, ptr @colors, i64 20), align 4, !tbaa !16
  call void %27(float noundef %28, float noundef %29, float noundef %30, float noundef 1.000000e+00) #5
  call void @glfwGetWindowFrameSize(ptr noundef nonnull %23, ptr noundef nonnull %2, ptr noundef nonnull %3, ptr noundef nonnull %4, ptr noundef nonnull %5) #5
  %31 = load i32, ptr %2, align 4, !tbaa !17
  %32 = load i32, ptr %4, align 4, !tbaa !17
  %33 = add i32 %31, 300
  %34 = add i32 %33, %32
  call void @glfwSetWindowPos(ptr noundef nonnull %23, i32 noundef %34, i32 noundef 100) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #5
  %35 = load ptr, ptr getelementptr inbounds (i8, ptr @titles, i64 16), align 16, !tbaa !8
  %36 = call ptr @glfwCreateWindow(i32 noundef 200, i32 noundef 200, ptr noundef %35, ptr noundef null, ptr noundef null) #5
  %.not35.2 = icmp eq ptr %36, null
  br i1 %.not35.2, label %14, label %37

37:                                               ; preds = %24
  %38 = call ptr @glfwSetKeyCallback(ptr noundef nonnull %36, ptr noundef nonnull @key_callback) #5
  call void @glfwMakeContextCurrent(ptr noundef nonnull %36) #5
  %39 = call i32 @gladLoadGLLoader(ptr noundef nonnull @glfwGetProcAddress) #5
  %40 = load ptr, ptr @glad_glClearColor, align 8, !tbaa !8
  %41 = load float, ptr getelementptr inbounds (i8, ptr @colors, i64 24), align 8, !tbaa !12
  %42 = load float, ptr getelementptr inbounds (i8, ptr @colors, i64 28), align 4, !tbaa !15
  %43 = load float, ptr getelementptr inbounds (i8, ptr @colors, i64 32), align 16, !tbaa !16
  call void %40(float noundef %41, float noundef %42, float noundef %43, float noundef 1.000000e+00) #5
  call void @glfwGetWindowFrameSize(ptr noundef nonnull %36, ptr noundef nonnull %2, ptr noundef nonnull %3, ptr noundef nonnull %4, ptr noundef nonnull %5) #5
  %44 = load i32, ptr %3, align 4, !tbaa !17
  %45 = add nsw i32 %44, 200
  %46 = load i32, ptr %5, align 4, !tbaa !17
  %47 = add nsw i32 %45, %46
  %48 = add nsw i32 %47, 100
  call void @glfwSetWindowPos(ptr noundef nonnull %36, i32 noundef 100, i32 noundef %48) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #5
  %49 = load ptr, ptr getelementptr inbounds (i8, ptr @titles, i64 24), align 8, !tbaa !8
  %50 = call ptr @glfwCreateWindow(i32 noundef 200, i32 noundef 200, ptr noundef %49, ptr noundef null, ptr noundef null) #5
  %.not35.3 = icmp eq ptr %50, null
  br i1 %.not35.3, label %14, label %.preheader37.preheader

.preheader37.preheader:                           ; preds = %37
  %51 = call ptr @glfwSetKeyCallback(ptr noundef nonnull %50, ptr noundef nonnull @key_callback) #5
  call void @glfwMakeContextCurrent(ptr noundef nonnull %50) #5
  %52 = call i32 @gladLoadGLLoader(ptr noundef nonnull @glfwGetProcAddress) #5
  %53 = load ptr, ptr @glad_glClearColor, align 8, !tbaa !8
  %54 = load float, ptr getelementptr inbounds (i8, ptr @colors, i64 36), align 4, !tbaa !12
  %55 = load float, ptr getelementptr inbounds (i8, ptr @colors, i64 40), align 8, !tbaa !15
  %56 = load float, ptr getelementptr inbounds (i8, ptr @colors, i64 44), align 4, !tbaa !16
  call void %53(float noundef %54, float noundef %55, float noundef %56, float noundef 1.000000e+00) #5
  call void @glfwGetWindowFrameSize(ptr noundef nonnull %50, ptr noundef nonnull %2, ptr noundef nonnull %3, ptr noundef nonnull %4, ptr noundef nonnull %5) #5
  %57 = load i32, ptr %2, align 4, !tbaa !17
  %58 = load i32, ptr %4, align 4, !tbaa !17
  %59 = add i32 %57, 300
  %60 = add i32 %59, %58
  %61 = load i32, ptr %3, align 4, !tbaa !17
  %62 = add nsw i32 %61, 200
  %63 = load i32, ptr %5, align 4, !tbaa !17
  %64 = add nsw i32 %62, %63
  %65 = add nsw i32 %64, 100
  call void @glfwSetWindowPos(ptr noundef nonnull %50, i32 noundef %60, i32 noundef %65) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #5
  call void @glfwShowWindow(ptr noundef nonnull %13) #5
  call void @glfwShowWindow(ptr noundef nonnull %23) #5
  call void @glfwShowWindow(ptr noundef nonnull %36) #5
  call void @glfwShowWindow(ptr noundef nonnull %50) #5
  br label %.preheader

.preheader:                                       ; preds = %.preheader37.preheader, %.preheader
  call void @glfwMakeContextCurrent(ptr noundef nonnull %13) #5
  %66 = load ptr, ptr @glad_glClear, align 8, !tbaa !8
  call void %66(i32 noundef 16384) #5
  call void @glfwSwapBuffers(ptr noundef nonnull %13) #5
  %67 = call i32 @glfwWindowShouldClose(ptr noundef nonnull %13) #5
  %.not34 = icmp ne i32 %67, 0
  call void @glfwMakeContextCurrent(ptr noundef nonnull %23) #5
  %68 = load ptr, ptr @glad_glClear, align 8, !tbaa !8
  call void %68(i32 noundef 16384) #5
  call void @glfwSwapBuffers(ptr noundef nonnull %23) #5
  %69 = call i32 @glfwWindowShouldClose(ptr noundef nonnull %23) #5
  %.not34.1 = icmp ne i32 %69, 0
  call void @glfwMakeContextCurrent(ptr noundef nonnull %36) #5
  %70 = load ptr, ptr @glad_glClear, align 8, !tbaa !8
  call void %70(i32 noundef 16384) #5
  call void @glfwSwapBuffers(ptr noundef nonnull %36) #5
  %71 = call i32 @glfwWindowShouldClose(ptr noundef nonnull %36) #5
  %.not34.2 = icmp ne i32 %71, 0
  call void @glfwMakeContextCurrent(ptr noundef nonnull %50) #5
  %72 = load ptr, ptr @glad_glClear, align 8, !tbaa !8
  call void %72(i32 noundef 16384) #5
  call void @glfwSwapBuffers(ptr noundef nonnull %50) #5
  %73 = call i32 @glfwWindowShouldClose(ptr noundef nonnull %50) #5
  %.not34.3 = icmp ne i32 %73, 0
  %.not = select i1 %.not34.3, i1 true, i1 %.not34.2
  %.not58 = select i1 %.not, i1 true, i1 %.not34.1
  %narrow.not = select i1 %.not58, i1 true, i1 %.not34
  call void @glfwWaitEvents() #5
  br i1 %narrow.not, label %74, label %.preheader, !llvm.loop !19

74:                                               ; preds = %.preheader
  call void @glfwTerminate() #5
  call void @exit(i32 noundef 0) #6
  unreachable
}

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

declare i32 @getopt(i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare hidden void @usage() local_unnamed_addr #3

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

declare ptr @glfwSetErrorCallback(ptr noundef) local_unnamed_addr #2

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

declare i32 @glfwInit() local_unnamed_addr #2

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

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

declare void @glfwTerminate() local_unnamed_addr #2

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

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

declare void @glfwMakeContextCurrent(ptr noundef) local_unnamed_addr #2

declare i32 @gladLoadGLLoader(ptr noundef) local_unnamed_addr #2

declare ptr @glfwGetProcAddress(ptr noundef) #2

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

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

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

declare void @glfwShowWindow(ptr noundef) local_unnamed_addr #2

declare void @glfwSwapBuffers(ptr noundef) local_unnamed_addr #2

declare i32 @glfwWindowShouldClose(ptr noundef) local_unnamed_addr #2

declare void @glfwWaitEvents() local_unnamed_addr #2

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 = { 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 }
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 = distinct !{!5, !6, !7}
!6 = !{!"llvm.loop.mustprogress"}
!7 = !{!"llvm.loop.peeled.count", i32 1}
!8 = !{!9, !9, i64 0}
!9 = !{!"any pointer", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C/C++ TBAA"}
!12 = !{!13, !14, i64 0}
!13 = !{!"", !14, i64 0, !14, i64 4, !14, i64 8}
!14 = !{!"float", !10, i64 0}
!15 = !{!13, !14, i64 4}
!16 = !{!13, !14, i64 8}
!17 = !{!18, !18, i64 0}
!18 = !{!"int", !10, i64 0}
!19 = distinct !{!19, !6}


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