; LLVM IR from Sonryle/JoePhys :: testbed/dependencies/GLFW/tests (window)

; 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.nk_rect = type { float, float, float, float }
%struct.GLFWvidmode = type { i32, i32, i32, i32, i32, i32 }

@glad_glClear = external dso_local global ptr, align 8
@.str.140 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.141 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.142 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.143 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.144 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.145 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.146 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.147 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.148 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.149 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.150 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.151 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.152 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.153 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.154 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.155 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.156 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.157 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.158 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.159 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.160 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.161 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.162 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.163 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.164 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.165 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.166 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.167 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.168 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.169 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.170 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.171 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.172 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.173 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.174 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.175 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.176 = external hidden unnamed_addr constant [10 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
declare dso_local { <2 x float>, <2 x float> } @nk_rect(float noundef, float noundef, float noundef, float noundef) #1

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2

; Function Attrs: nounwind uwtable
declare dso_local i32 @nk_begin(ptr noundef, ptr noundef, <2 x float>, <2 x float>, i32 noundef) #3

; Function Attrs: nounwind uwtable
declare dso_local void @nk_end(ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local void @nk_window_set_bounds(ptr noundef, ptr noundef, <2 x float>, <2 x float>) #3

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

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

; Function Attrs: nounwind uwtable
declare dso_local void @nk_layout_row_push(ptr noundef, float noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local void @nk_layout_row_end(ptr noundef) #1

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

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

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

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

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @nk_slider_float(ptr noundef, float noundef, ptr noundef, float noundef, float noundef) #3

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

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

; Function Attrs: nounwind uwtable
declare dso_local void @nk_glfw3_render(i32 noundef) #1

declare double @glfwGetTime() #4

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

; Function Attrs: nounwind uwtable
declare dso_local void @nk_glfw3_font_stash_begin(ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local void @nk_glfw3_font_stash_end() #1

; Function Attrs: nounwind uwtable
declare dso_local void @nk_glfw3_new_frame() #3

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

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

declare i32 @glfwGetKey(ptr noundef, i32 noundef) #4

; Function Attrs: nounwind uwtable
declare dso_local void @nk_glfw3_shutdown() #1

; Function Attrs: nounwind uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #3 {
  %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 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 i32, align 4
  %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 [12 x i8], align 1
  %24 = alloca [12 x i8], align 1
  %25 = alloca [12 x i8], align 1
  %26 = alloca [12 x i8], align 1
  %27 = alloca [12 x i8], align 1
  %28 = alloca [12 x i8], align 1
  %29 = alloca [12 x i8], align 1
  %30 = alloca [12 x i8], align 1
  %31 = alloca [12 x i8], align 1
  %32 = alloca [12 x i8], align 1
  %33 = alloca i32, align 4
  %34 = alloca [64 x i8], align 16
  %35 = alloca ptr, align 8
  %36 = alloca i8, align 1
  %37 = alloca ptr, align 8
  %38 = alloca ptr, align 8
  %39 = alloca i32, align 4
  %40 = alloca i32, align 4
  %41 = alloca %struct.nk_rect, align 4
  %42 = alloca ptr, align 8
  %43 = alloca ptr, align 8
  %44 = alloca double, align 8
  %45 = alloca double, align 8
  %46 = alloca i32, align 4
  %47 = alloca i32, align 4
  %48 = alloca i32, align 4
  %49 = alloca i32, align 4
  %50 = alloca i8, align 1
  %51 = alloca i8, align 1
  %52 = alloca i32, align 4
  %53 = alloca i32, align 4
  %54 = alloca float, align 4
  %55 = alloca float, align 4
  %56 = alloca i32, align 4
  %57 = alloca i32, align 4
  %58 = alloca i32, align 4
  %59 = alloca i32, align 4
  %60 = alloca float, align 4
  %61 = alloca i32, align 4
  %62 = alloca i32, align 4
  %63 = alloca i32, align 4
  %64 = alloca i32, align 4
  %65 = alloca i32, align 4
  %66 = 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) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #9
  store i32 -2147483648, ptr %10, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #9
  store i32 -2147483648, ptr %11, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #9
  store i32 -2147483648, ptr %12, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #9
  store i32 -2147483648, ptr %13, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #9
  store i32 0, ptr %14, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #9
  store i32 1, ptr %15, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #9
  store i32 1, ptr %16, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #9
  store i32 0, ptr %17, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #9
  store i32 400, ptr %18, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #9
  store i32 400, ptr %19, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #9
  store i32 0, ptr %20, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #9
  store i32 400, ptr %21, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #9
  store i32 400, ptr %22, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 12, ptr %23) #9
  call void @llvm.memset.p0.i64(ptr align 1 %23, i8 0, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 12, ptr %24) #9
  call void @llvm.memset.p0.i64(ptr align 1 %24, i8 0, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 12, ptr %25) #9
  call void @llvm.memset.p0.i64(ptr align 1 %25, i8 0, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 12, ptr %26) #9
  call void @llvm.memset.p0.i64(ptr align 1 %26, i8 0, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 12, ptr %27) #9
  call void @llvm.memset.p0.i64(ptr align 1 %27, i8 0, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 12, ptr %28) #9
  call void @llvm.memset.p0.i64(ptr align 1 %28, i8 0, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 12, ptr %29) #9
  call void @llvm.memset.p0.i64(ptr align 1 %29, i8 0, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 12, ptr %30) #9
  call void @llvm.memset.p0.i64(ptr align 1 %30, i8 0, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 12, ptr %31) #9
  call void @llvm.memset.p0.i64(ptr align 1 %31, i8 0, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 12, ptr %32) #9
  call void @llvm.memset.p0.i64(ptr align 1 %32, i8 0, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #9
  store i32 1, ptr %33, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 64, ptr %34) #9
  call void @llvm.memset.p0.i64(ptr align 16 %34, i8 0, i64 64, i1 false)
  %67 = call i32 @glfwInit()
  %68 = icmp ne i32 %67, 0
  br i1 %68, label %70, label %69

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

70:                                               ; preds = %2
  call void @glfwWindowHint(i32 noundef 139276, i32 noundef 1)
  call void @glfwWindowHint(i32 noundef 151553, i32 noundef 1)
  call void @glfwWindowHint(i32 noundef 139266, i32 noundef 2)
  call void @glfwWindowHint(i32 noundef 139267, i32 noundef 1)
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #9
  %71 = call ptr @glfwCreateWindow(i32 noundef 600, i32 noundef 660, ptr noundef @.str.140, ptr noundef null, ptr noundef null)
  store ptr %71, ptr %35, align 8, !tbaa !9
  %72 = load ptr, ptr %35, align 8, !tbaa !9
  %73 = icmp ne ptr %72, null
  br i1 %73, label %75, label %74

74:                                               ; preds = %70
  call void @glfwTerminate()
  call void @exit(i32 noundef 1) #10
  unreachable

75:                                               ; preds = %70
  %76 = load ptr, ptr %35, align 8, !tbaa !9
  call void @glfwMakeContextCurrent(ptr noundef %76)
  %77 = call i32 @gladLoadGL(ptr noundef @glfwGetProcAddress)
  call void @glfwSwapInterval(i32 noundef 0)
  call void @llvm.lifetime.start.p0(i64 1, ptr %36) #9
  store i8 1, ptr %36, align 1, !tbaa !11
  %78 = call i32 @glfwGetError(ptr noundef null)
  %79 = load ptr, ptr %35, align 8, !tbaa !9
  call void @glfwGetWindowPos(ptr noundef %79, ptr noundef %10, ptr noundef %11)
  %80 = getelementptr inbounds [12 x i8], ptr %25, i64 0, i64 0
  %81 = load i32, ptr %10, align 4, !tbaa !5
  %82 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %80, ptr noundef @.str.141, i32 noundef %81) #9
  %83 = getelementptr inbounds [12 x i8], ptr %26, i64 0, i64 0
  %84 = load i32, ptr %11, align 4, !tbaa !5
  %85 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %83, ptr noundef @.str.141, i32 noundef %84) #9
  %86 = call i32 @glfwGetError(ptr noundef null)
  %87 = icmp eq i32 %86, 65548
  br i1 %87, label %88, label %89

88:                                               ; preds = %75
  store i8 0, ptr %36, align 1, !tbaa !11
  br label %89

89:                                               ; preds = %88, %75
  %90 = load ptr, ptr %35, align 8, !tbaa !9
  call void @glfwGetWindowSize(ptr noundef %90, ptr noundef %12, ptr noundef %13)
  %91 = getelementptr inbounds [12 x i8], ptr %23, i64 0, i64 0
  %92 = load i32, ptr %12, align 4, !tbaa !5
  %93 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %91, ptr noundef @.str.141, i32 noundef %92) #9
  %94 = getelementptr inbounds [12 x i8], ptr %24, i64 0, i64 0
  %95 = load i32, ptr %13, align 4, !tbaa !5
  %96 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %94, ptr noundef @.str.141, i32 noundef %95) #9
  %97 = getelementptr inbounds [12 x i8], ptr %27, i64 0, i64 0
  %98 = load i32, ptr %15, align 4, !tbaa !5
  %99 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %97, ptr noundef @.str.141, i32 noundef %98) #9
  %100 = getelementptr inbounds [12 x i8], ptr %28, i64 0, i64 0
  %101 = load i32, ptr %16, align 4, !tbaa !5
  %102 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %100, ptr noundef @.str.141, i32 noundef %101) #9
  %103 = getelementptr inbounds [12 x i8], ptr %29, i64 0, i64 0
  %104 = load i32, ptr %18, align 4, !tbaa !5
  %105 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %103, ptr noundef @.str.141, i32 noundef %104) #9
  %106 = getelementptr inbounds [12 x i8], ptr %30, i64 0, i64 0
  %107 = load i32, ptr %19, align 4, !tbaa !5
  %108 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %106, ptr noundef @.str.141, i32 noundef %107) #9
  %109 = getelementptr inbounds [12 x i8], ptr %31, i64 0, i64 0
  %110 = load i32, ptr %21, align 4, !tbaa !5
  %111 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %109, ptr noundef @.str.141, i32 noundef %110) #9
  %112 = getelementptr inbounds [12 x i8], ptr %32, i64 0, i64 0
  %113 = load i32, ptr %22, align 4, !tbaa !5
  %114 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %112, ptr noundef @.str.141, i32 noundef %113) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #9
  %115 = load ptr, ptr %35, align 8, !tbaa !9
  %116 = call ptr @nk_glfw3_init(ptr noundef %115, i32 noundef 1)
  store ptr %116, ptr %37, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #9
  call void @nk_glfw3_font_stash_begin(ptr noundef %38)
  call void @nk_glfw3_font_stash_end()
  %117 = getelementptr inbounds [64 x i8], ptr %34, i64 0, i64 0
  %118 = load ptr, ptr %35, align 8, !tbaa !9
  %119 = call ptr @glfwGetWindowTitle(ptr noundef %118)
  %120 = call ptr @strncpy(ptr noundef %117, ptr noundef %119, i64 noundef 64) #9
  br label %121

121:                                              ; preds = %704, %89
  %122 = load i32, ptr %33, align 4, !tbaa !5
  %123 = icmp ne i32 %122, 0
  br i1 %123, label %124, label %128

124:                                              ; preds = %121
  %125 = load ptr, ptr %35, align 8, !tbaa !9
  %126 = call i32 @glfwWindowShouldClose(ptr noundef %125)
  %127 = icmp ne i32 %126, 0
  br label %128

128:                                              ; preds = %124, %121
  %129 = phi i1 [ false, %121 ], [ %127, %124 ]
  %130 = xor i1 %129, true
  br i1 %130, label %131, label %708

131:                                              ; preds = %128
  call void @llvm.lifetime.start.p0(i64 4, ptr %39) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %40) #9
  %132 = load ptr, ptr %35, align 8, !tbaa !9
  call void @glfwGetWindowSize(ptr noundef %132, ptr noundef %39, ptr noundef %40)
  call void @llvm.lifetime.start.p0(i64 16, ptr %41) #9
  %133 = load i32, ptr %39, align 4, !tbaa !5
  %134 = sitofp i32 %133 to float
  %135 = load i32, ptr %40, align 4, !tbaa !5
  %136 = sitofp i32 %135 to float
  %137 = call { <2 x float>, <2 x float> } @nk_rect(float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef %134, float noundef %136)
  %138 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %41, i32 0, i32 0
  %139 = extractvalue { <2 x float>, <2 x float> } %137, 0
  store <2 x float> %139, ptr %138, align 4
  %140 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %41, i32 0, i32 1
  %141 = extractvalue { <2 x float>, <2 x float> } %137, 1
  store <2 x float> %141, ptr %140, align 4
  %142 = load ptr, ptr %37, align 8, !tbaa !9
  %143 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %41, i32 0, i32 0
  %144 = load <2 x float>, ptr %143, align 4
  %145 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %41, i32 0, i32 1
  %146 = load <2 x float>, ptr %145, align 4
  call void @nk_window_set_bounds(ptr noundef %142, ptr noundef @.str.142, <2 x float> %144, <2 x float> %146)
  call void @nk_glfw3_new_frame()
  %147 = load ptr, ptr %37, align 8, !tbaa !9
  %148 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %41, i32 0, i32 0
  %149 = load <2 x float>, ptr %148, align 4
  %150 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %41, i32 0, i32 1
  %151 = load <2 x float>, ptr %150, align 4
  %152 = call i32 @nk_begin(ptr noundef %147, ptr noundef @.str.142, <2 x float> %149, <2 x float> %151, i32 noundef 0)
  %153 = icmp ne i32 %152, 0
  br i1 %153, label %154, label %704

154:                                              ; preds = %131
  %155 = load ptr, ptr %37, align 8, !tbaa !9
  call void @nk_layout_row_dynamic(ptr noundef %155, float noundef 3.000000e+01, i32 noundef 4)
  %156 = load ptr, ptr %35, align 8, !tbaa !9
  %157 = call ptr @glfwGetWindowMonitor(ptr noundef %156)
  %158 = icmp ne ptr %157, null
  br i1 %158, label %159, label %170

159:                                              ; preds = %154
  %160 = load ptr, ptr %37, align 8, !tbaa !9
  %161 = call i32 @nk_button_label(ptr noundef %160, ptr noundef @.str.143)
  %162 = icmp ne i32 %161, 0
  br i1 %162, label %163, label %169

163:                                              ; preds = %159
  %164 = load ptr, ptr %35, align 8, !tbaa !9
  %165 = load i32, ptr %6, align 4, !tbaa !5
  %166 = load i32, ptr %7, align 4, !tbaa !5
  %167 = load i32, ptr %8, align 4, !tbaa !5
  %168 = load i32, ptr %9, align 4, !tbaa !5
  call void @glfwSetWindowMonitor(ptr noundef %164, ptr noundef null, i32 noundef %165, i32 noundef %166, i32 noundef %167, i32 noundef %168, i32 noundef 0)
  br label %169

169:                                              ; preds = %163, %159
  br label %192

170:                                              ; preds = %154
  %171 = load ptr, ptr %37, align 8, !tbaa !9
  %172 = call i32 @nk_button_label(ptr noundef %171, ptr noundef @.str.144)
  %173 = icmp ne i32 %172, 0
  br i1 %173, label %174, label %191

174:                                              ; preds = %170
  call void @llvm.lifetime.start.p0(i64 8, ptr %42) #9
  %175 = call ptr @glfwGetPrimaryMonitor()
  store ptr %175, ptr %42, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %43) #9
  %176 = load ptr, ptr %42, align 8, !tbaa !9
  %177 = call ptr @glfwGetVideoMode(ptr noundef %176)
  store ptr %177, ptr %43, align 8, !tbaa !9
  %178 = load ptr, ptr %35, align 8, !tbaa !9
  call void @glfwGetWindowPos(ptr noundef %178, ptr noundef %6, ptr noundef %7)
  %179 = load ptr, ptr %35, align 8, !tbaa !9
  call void @glfwGetWindowSize(ptr noundef %179, ptr noundef %8, ptr noundef %9)
  %180 = load ptr, ptr %35, align 8, !tbaa !9
  %181 = load ptr, ptr %42, align 8, !tbaa !9
  %182 = load ptr, ptr %43, align 8, !tbaa !9
  %183 = getelementptr inbounds %struct.GLFWvidmode, ptr %182, i32 0, i32 0
  %184 = load i32, ptr %183, align 4, !tbaa !13
  %185 = load ptr, ptr %43, align 8, !tbaa !9
  %186 = getelementptr inbounds %struct.GLFWvidmode, ptr %185, i32 0, i32 1
  %187 = load i32, ptr %186, align 4, !tbaa !15
  %188 = load ptr, ptr %43, align 8, !tbaa !9
  %189 = getelementptr inbounds %struct.GLFWvidmode, ptr %188, i32 0, i32 5
  %190 = load i32, ptr %189, align 4, !tbaa !16
  call void @glfwSetWindowMonitor(ptr noundef %180, ptr noundef %181, i32 noundef 0, i32 noundef 0, i32 noundef %184, i32 noundef %187, i32 noundef %190)
  call void @llvm.lifetime.end.p0(i64 8, ptr %43) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #9
  br label %191

191:                                              ; preds = %174, %170
  br label %192

192:                                              ; preds = %191, %169
  %193 = load ptr, ptr %37, align 8, !tbaa !9
  %194 = call i32 @nk_button_label(ptr noundef %193, ptr noundef @.str.145)
  %195 = icmp ne i32 %194, 0
  br i1 %195, label %196, label %198

196:                                              ; preds = %192
  %197 = load ptr, ptr %35, align 8, !tbaa !9
  call void @glfwMaximizeWindow(ptr noundef %197)
  br label %198

198:                                              ; preds = %196, %192
  %199 = load ptr, ptr %37, align 8, !tbaa !9
  %200 = call i32 @nk_button_label(ptr noundef %199, ptr noundef @.str.146)
  %201 = icmp ne i32 %200, 0
  br i1 %201, label %202, label %204

202:                                              ; preds = %198
  %203 = load ptr, ptr %35, align 8, !tbaa !9
  call void @glfwIconifyWindow(ptr noundef %203)
  br label %204

204:                                              ; preds = %202, %198
  %205 = load ptr, ptr %37, align 8, !tbaa !9
  %206 = call i32 @nk_button_label(ptr noundef %205, ptr noundef @.str.147)
  %207 = icmp ne i32 %206, 0
  br i1 %207, label %208, label %210

208:                                              ; preds = %204
  %209 = load ptr, ptr %35, align 8, !tbaa !9
  call void @glfwRestoreWindow(ptr noundef %209)
  br label %210

210:                                              ; preds = %208, %204
  %211 = load ptr, ptr %37, align 8, !tbaa !9
  call void @nk_layout_row_dynamic(ptr noundef %211, float noundef 3.000000e+01, i32 noundef 2)
  %212 = load ptr, ptr %37, align 8, !tbaa !9
  %213 = call i32 @nk_button_label(ptr noundef %212, ptr noundef @.str.148)
  %214 = icmp ne i32 %213, 0
  br i1 %214, label %215, label %226

215:                                              ; preds = %210
  %216 = load ptr, ptr %35, align 8, !tbaa !9
  call void @glfwHideWindow(ptr noundef %216)
  call void @llvm.lifetime.start.p0(i64 8, ptr %44) #9
  %217 = call double @glfwGetTime()
  %218 = fadd double %217, 3.000000e+00
  store double %218, ptr %44, align 8, !tbaa !17
  br label %219

219:                                              ; preds = %223, %215
  %220 = call double @glfwGetTime()
  %221 = load double, ptr %44, align 8, !tbaa !17
  %222 = fcmp olt double %220, %221
  br i1 %222, label %223, label %224

223:                                              ; preds = %219
  call void @glfwWaitEventsTimeout(double noundef 1.000000e+00)
  br label %219, !llvm.loop !19

224:                                              ; preds = %219
  %225 = load ptr, ptr %35, align 8, !tbaa !9
  call void @glfwShowWindow(ptr noundef %225)
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #9
  br label %226

226:                                              ; preds = %224, %210
  %227 = load ptr, ptr %37, align 8, !tbaa !9
  %228 = call i32 @nk_button_label(ptr noundef %227, ptr noundef @.str.149)
  %229 = icmp ne i32 %228, 0
  br i1 %229, label %230, label %241

230:                                              ; preds = %226
  %231 = load ptr, ptr %35, align 8, !tbaa !9
  call void @glfwIconifyWindow(ptr noundef %231)
  call void @llvm.lifetime.start.p0(i64 8, ptr %45) #9
  %232 = call double @glfwGetTime()
  %233 = fadd double %232, 3.000000e+00
  store double %233, ptr %45, align 8, !tbaa !17
  br label %234

234:                                              ; preds = %238, %230
  %235 = call double @glfwGetTime()
  %236 = load double, ptr %45, align 8, !tbaa !17
  %237 = fcmp olt double %235, %236
  br i1 %237, label %238, label %239

238:                                              ; preds = %234
  call void @glfwWaitEventsTimeout(double noundef 1.000000e+00)
  br label %234, !llvm.loop !21

239:                                              ; preds = %234
  %240 = load ptr, ptr %35, align 8, !tbaa !9
  call void @glfwRequestWindowAttention(ptr noundef %240)
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #9
  br label %241

241:                                              ; preds = %239, %226
  %242 = load ptr, ptr %37, align 8, !tbaa !9
  call void @nk_layout_row_dynamic(ptr noundef %242, float noundef 3.000000e+01, i32 noundef 1)
  %243 = load ptr, ptr %35, align 8, !tbaa !9
  %244 = call i32 @glfwGetWindowAttrib(ptr noundef %243, i32 noundef 131085)
  %245 = icmp ne i32 %244, 0
  br i1 %245, label %246, label %254

246:                                              ; preds = %241
  %247 = load ptr, ptr %37, align 8, !tbaa !9
  call void @nk_label(ptr noundef %247, ptr noundef @.str.150, i32 noundef 18)
  %248 = load ptr, ptr %35, align 8, !tbaa !9
  %249 = call i32 @glfwGetKey(ptr noundef %248, i32 noundef 72)
  %250 = icmp ne i32 %249, 0
  br i1 %250, label %251, label %253

251:                                              ; preds = %246
  %252 = load ptr, ptr %35, align 8, !tbaa !9
  call void @glfwSetWindowAttrib(ptr noundef %252, i32 noundef 131085, i32 noundef 0)
  br label %253

253:                                              ; preds = %251, %246
  br label %254

254:                                              ; preds = %253, %241
  %255 = load ptr, ptr %37, align 8, !tbaa !9
  call void @nk_label(ptr noundef %255, ptr noundef @.str.151, i32 noundef 18)
  call void @llvm.lifetime.start.p0(i64 4, ptr %46) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %47) #9
  store i32 2660, ptr %47, align 4, !tbaa !5
  %256 = load ptr, ptr %37, align 8, !tbaa !9
  call void @nk_layout_row_begin(ptr noundef %256, i32 noundef 0, float noundef 3.000000e+01, i32 noundef 2)
  %257 = load ptr, ptr %37, align 8, !tbaa !9
  call void @nk_layout_row_push(ptr noundef %257, float noundef 0x3FD5555560000000)
  %258 = load ptr, ptr %37, align 8, !tbaa !9
  call void @nk_label(ptr noundef %258, ptr noundef @.str.152, i32 noundef 17)
  %259 = load ptr, ptr %37, align 8, !tbaa !9
  call void @nk_layout_row_push(ptr noundef %259, float noundef 0x3FE5555560000000)
  %260 = load ptr, ptr %37, align 8, !tbaa !9
  %261 = getelementptr inbounds [64 x i8], ptr %34, i64 0, i64 0
  %262 = call i32 @nk_edit_string_zero_terminated(ptr noundef %260, i32 noundef 2660, ptr noundef %261, i32 noundef 64, ptr noundef null)
  store i32 %262, ptr %46, align 4, !tbaa !5
  %263 = load i32, ptr %46, align 4, !tbaa !5
  %264 = and i32 %263, 16
  %265 = icmp ne i32 %264, 0
  br i1 %265, label %266, label %269

266:                                              ; preds = %254
  %267 = load ptr, ptr %35, align 8, !tbaa !9
  %268 = getelementptr inbounds [64 x i8], ptr %34, i64 0, i64 0
  call void @glfwSetWindowTitle(ptr noundef %267, ptr noundef %268)
  br label %269

269:                                              ; preds = %266, %254
  %270 = load ptr, ptr %37, align 8, !tbaa !9
  call void @nk_layout_row_end(ptr noundef %270)
  %271 = load i8, ptr %36, align 1, !tbaa !11, !range !22, !noundef !23
  %272 = trunc i8 %271 to i1
  br i1 %272, label %273, label %331

273:                                              ; preds = %269
  call void @llvm.lifetime.start.p0(i64 4, ptr %48) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %49) #9
  %274 = load ptr, ptr %35, align 8, !tbaa !9
  call void @glfwGetWindowPos(ptr noundef %274, ptr noundef %48, ptr noundef %49)
  %275 = load ptr, ptr %37, align 8, !tbaa !9
  call void @nk_layout_row_dynamic(ptr noundef %275, float noundef 3.000000e+01, i32 noundef 3)
  %276 = load ptr, ptr %37, align 8, !tbaa !9
  call void @nk_label(ptr noundef %276, ptr noundef @.str.153, i32 noundef 17)
  %277 = load ptr, ptr %37, align 8, !tbaa !9
  %278 = getelementptr inbounds [12 x i8], ptr %25, i64 0, i64 0
  %279 = call i32 @nk_edit_string_zero_terminated(ptr noundef %277, i32 noundef 2660, ptr noundef %278, i32 noundef 12, ptr noundef @nk_filter_decimal)
  store i32 %279, ptr %46, align 4, !tbaa !5
  %280 = load i32, ptr %46, align 4, !tbaa !5
  %281 = and i32 %280, 16
  %282 = icmp ne i32 %281, 0
  br i1 %282, label %283, label %289

283:                                              ; preds = %273
  %284 = getelementptr inbounds [12 x i8], ptr %25, i64 0, i64 0
  %285 = call i32 @atoi(ptr noundef %284) #11
  store i32 %285, ptr %48, align 4, !tbaa !5
  %286 = load ptr, ptr %35, align 8, !tbaa !9
  %287 = load i32, ptr %48, align 4, !tbaa !5
  %288 = load i32, ptr %49, align 4, !tbaa !5
  call void @glfwSetWindowPos(ptr noundef %286, i32 noundef %287, i32 noundef %288)
  br label %302

289:                                              ; preds = %273
  %290 = load i32, ptr %48, align 4, !tbaa !5
  %291 = load i32, ptr %10, align 4, !tbaa !5
  %292 = icmp ne i32 %290, %291
  br i1 %292, label %297, label %293

293:                                              ; preds = %289
  %294 = load i32, ptr %46, align 4, !tbaa !5
  %295 = and i32 %294, 8
  %296 = icmp ne i32 %295, 0
  br i1 %296, label %297, label %301

297:                                              ; preds = %293, %289
  %298 = getelementptr inbounds [12 x i8], ptr %25, i64 0, i64 0
  %299 = load i32, ptr %48, align 4, !tbaa !5
  %300 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %298, ptr noundef @.str.141, i32 noundef %299) #9
  br label %301

301:                                              ; preds = %297, %293
  br label %302

302:                                              ; preds = %301, %283
  %303 = load ptr, ptr %37, align 8, !tbaa !9
  %304 = getelementptr inbounds [12 x i8], ptr %26, i64 0, i64 0
  %305 = call i32 @nk_edit_string_zero_terminated(ptr noundef %303, i32 noundef 2660, ptr noundef %304, i32 noundef 12, ptr noundef @nk_filter_decimal)
  store i32 %305, ptr %46, align 4, !tbaa !5
  %306 = load i32, ptr %46, align 4, !tbaa !5
  %307 = and i32 %306, 16
  %308 = icmp ne i32 %307, 0
  br i1 %308, label %309, label %315

309:                                              ; preds = %302
  %310 = getelementptr inbounds [12 x i8], ptr %26, i64 0, i64 0
  %311 = call i32 @atoi(ptr noundef %310) #11
  store i32 %311, ptr %49, align 4, !tbaa !5
  %312 = load ptr, ptr %35, align 8, !tbaa !9
  %313 = load i32, ptr %48, align 4, !tbaa !5
  %314 = load i32, ptr %49, align 4, !tbaa !5
  call void @glfwSetWindowPos(ptr noundef %312, i32 noundef %313, i32 noundef %314)
  br label %328

315:                                              ; preds = %302
  %316 = load i32, ptr %49, align 4, !tbaa !5
  %317 = load i32, ptr %11, align 4, !tbaa !5
  %318 = icmp ne i32 %316, %317
  br i1 %318, label %323, label %319

319:                                              ; preds = %315
  %320 = load i32, ptr %46, align 4, !tbaa !5
  %321 = and i32 %320, 8
  %322 = icmp ne i32 %321, 0
  br i1 %322, label %323, label %327

323:                                              ; preds = %319, %315
  %324 = getelementptr inbounds [12 x i8], ptr %26, i64 0, i64 0
  %325 = load i32, ptr %49, align 4, !tbaa !5
  %326 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %324, ptr noundef @.str.141, i32 noundef %325) #9
  br label %327

327:                                              ; preds = %323, %319
  br label %328

328:                                              ; preds = %327, %309
  %329 = load i32, ptr %48, align 4, !tbaa !5
  store i32 %329, ptr %10, align 4, !tbaa !5
  %330 = load i32, ptr %49, align 4, !tbaa !5
  store i32 %330, ptr %11, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %49) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %48) #9
  br label %333

331:                                              ; preds = %269
  %332 = load ptr, ptr %37, align 8, !tbaa !9
  call void @nk_label(ptr noundef %332, ptr noundef @.str.154, i32 noundef 17)
  br label %333

333:                                              ; preds = %331, %328
  %334 = load ptr, ptr %37, align 8, !tbaa !9
  call void @nk_layout_row_dynamic(ptr noundef %334, float noundef 3.000000e+01, i32 noundef 3)
  %335 = load ptr, ptr %37, align 8, !tbaa !9
  call void @nk_label(ptr noundef %335, ptr noundef @.str.155, i32 noundef 17)
  %336 = load ptr, ptr %37, align 8, !tbaa !9
  %337 = getelementptr inbounds [12 x i8], ptr %23, i64 0, i64 0
  %338 = call i32 @nk_edit_string_zero_terminated(ptr noundef %336, i32 noundef 2660, ptr noundef %337, i32 noundef 12, ptr noundef @nk_filter_decimal)
  store i32 %338, ptr %46, align 4, !tbaa !5
  %339 = load i32, ptr %46, align 4, !tbaa !5
  %340 = and i32 %339, 16
  %341 = icmp ne i32 %340, 0
  br i1 %341, label %342, label %348

342:                                              ; preds = %333
  %343 = getelementptr inbounds [12 x i8], ptr %23, i64 0, i64 0
  %344 = call i32 @atoi(ptr noundef %343) #11
  store i32 %344, ptr %39, align 4, !tbaa !5
  %345 = load ptr, ptr %35, align 8, !tbaa !9
  %346 = load i32, ptr %39, align 4, !tbaa !5
  %347 = load i32, ptr %40, align 4, !tbaa !5
  call void @glfwSetWindowSize(ptr noundef %345, i32 noundef %346, i32 noundef %347)
  br label %361

348:                                              ; preds = %333
  %349 = load i32, ptr %39, align 4, !tbaa !5
  %350 = load i32, ptr %12, align 4, !tbaa !5
  %351 = icmp ne i32 %349, %350
  br i1 %351, label %356, label %352

352:                                              ; preds = %348
  %353 = load i32, ptr %46, align 4, !tbaa !5
  %354 = and i32 %353, 8
  %355 = icmp ne i32 %354, 0
  br i1 %355, label %356, label %360

356:                                              ; preds = %352, %348
  %357 = getelementptr inbounds [12 x i8], ptr %23, i64 0, i64 0
  %358 = load i32, ptr %39, align 4, !tbaa !5
  %359 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %357, ptr noundef @.str.141, i32 noundef %358) #9
  br label %360

360:                                              ; preds = %356, %352
  br label %361

361:                                              ; preds = %360, %342
  %362 = load ptr, ptr %37, align 8, !tbaa !9
  %363 = getelementptr inbounds [12 x i8], ptr %24, i64 0, i64 0
  %364 = call i32 @nk_edit_string_zero_terminated(ptr noundef %362, i32 noundef 2660, ptr noundef %363, i32 noundef 12, ptr noundef @nk_filter_decimal)
  store i32 %364, ptr %46, align 4, !tbaa !5
  %365 = load i32, ptr %46, align 4, !tbaa !5
  %366 = and i32 %365, 16
  %367 = icmp ne i32 %366, 0
  br i1 %367, label %368, label %374

368:                                              ; preds = %361
  %369 = getelementptr inbounds [12 x i8], ptr %24, i64 0, i64 0
  %370 = call i32 @atoi(ptr noundef %369) #11
  store i32 %370, ptr %40, align 4, !tbaa !5
  %371 = load ptr, ptr %35, align 8, !tbaa !9
  %372 = load i32, ptr %39, align 4, !tbaa !5
  %373 = load i32, ptr %40, align 4, !tbaa !5
  call void @glfwSetWindowSize(ptr noundef %371, i32 noundef %372, i32 noundef %373)
  br label %387

374:                                              ; preds = %361
  %375 = load i32, ptr %40, align 4, !tbaa !5
  %376 = load i32, ptr %13, align 4, !tbaa !5
  %377 = icmp ne i32 %375, %376
  br i1 %377, label %382, label %378

378:                                              ; preds = %374
  %379 = load i32, ptr %46, align 4, !tbaa !5
  %380 = and i32 %379, 8
  %381 = icmp ne i32 %380, 0
  br i1 %381, label %382, label %386

382:                                              ; preds = %378, %374
  %383 = getelementptr inbounds [12 x i8], ptr %24, i64 0, i64 0
  %384 = load i32, ptr %40, align 4, !tbaa !5
  %385 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %383, ptr noundef @.str.141, i32 noundef %384) #9
  br label %386

386:                                              ; preds = %382, %378
  br label %387

387:                                              ; preds = %386, %368
  %388 = load i32, ptr %39, align 4, !tbaa !5
  store i32 %388, ptr %12, align 4, !tbaa !5
  %389 = load i32, ptr %40, align 4, !tbaa !5
  store i32 %389, ptr %13, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %50) #9
  store i8 0, ptr %50, align 1, !tbaa !11
  %390 = load ptr, ptr %37, align 8, !tbaa !9
  %391 = call i32 @nk_checkbox_label(ptr noundef %390, ptr noundef @.str.156, ptr noundef %14)
  %392 = icmp ne i32 %391, 0
  br i1 %392, label %393, label %394

393:                                              ; preds = %387
  store i8 1, ptr %50, align 1, !tbaa !11
  br label %394

394:                                              ; preds = %393, %387
  %395 = load ptr, ptr %37, align 8, !tbaa !9
  %396 = getelementptr inbounds [12 x i8], ptr %27, i64 0, i64 0
  %397 = call i32 @nk_edit_string_zero_terminated(ptr noundef %395, i32 noundef 2660, ptr noundef %396, i32 noundef 12, ptr noundef @nk_filter_decimal)
  store i32 %397, ptr %46, align 4, !tbaa !5
  %398 = load i32, ptr %46, align 4, !tbaa !5
  %399 = and i32 %398, 16
  %400 = icmp ne i32 %399, 0
  br i1 %400, label %401, label %405

401:                                              ; preds = %394
  %402 = getelementptr inbounds [12 x i8], ptr %27, i64 0, i64 0
  %403 = call i32 @atoi(ptr noundef %402) #11
  %404 = call i32 @llvm.abs.i32(i32 %403, i1 true)
  store i32 %404, ptr %15, align 4, !tbaa !5
  store i8 1, ptr %50, align 1, !tbaa !11
  br label %414

405:                                              ; preds = %394
  %406 = load i32, ptr %46, align 4, !tbaa !5
  %407 = and i32 %406, 8
  %408 = icmp ne i32 %407, 0
  br i1 %408, label %409, label %413

409:                                              ; preds = %405
  %410 = getelementptr inbounds [12 x i8], ptr %27, i64 0, i64 0
  %411 = load i32, ptr %15, align 4, !tbaa !5
  %412 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %410, ptr noundef @.str.141, i32 noundef %411) #9
  br label %413

413:                                              ; preds = %409, %405
  br label %414

414:                                              ; preds = %413, %401
  %415 = load ptr, ptr %37, align 8, !tbaa !9
  %416 = getelementptr inbounds [12 x i8], ptr %28, i64 0, i64 0
  %417 = call i32 @nk_edit_string_zero_terminated(ptr noundef %415, i32 noundef 2660, ptr noundef %416, i32 noundef 12, ptr noundef @nk_filter_decimal)
  store i32 %417, ptr %46, align 4, !tbaa !5
  %418 = load i32, ptr %46, align 4, !tbaa !5
  %419 = and i32 %418, 16
  %420 = icmp ne i32 %419, 0
  br i1 %420, label %421, label %425

421:                                              ; preds = %414
  %422 = getelementptr inbounds [12 x i8], ptr %28, i64 0, i64 0
  %423 = call i32 @atoi(ptr noundef %422) #11
  %424 = call i32 @llvm.abs.i32(i32 %423, i1 true)
  store i32 %424, ptr %16, align 4, !tbaa !5
  store i8 1, ptr %50, align 1, !tbaa !11
  br label %434

425:                                              ; preds = %414
  %426 = load i32, ptr %46, align 4, !tbaa !5
  %427 = and i32 %426, 8
  %428 = icmp ne i32 %427, 0
  br i1 %428, label %429, label %433

429:                                              ; preds = %425
  %430 = getelementptr inbounds [12 x i8], ptr %28, i64 0, i64 0
  %431 = load i32, ptr %16, align 4, !tbaa !5
  %432 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %430, ptr noundef @.str.141, i32 noundef %431) #9
  br label %433

433:                                              ; preds = %429, %425
  br label %434

434:                                              ; preds = %433, %421
  %435 = load i8, ptr %50, align 1, !tbaa !11, !range !22, !noundef !23
  %436 = trunc i8 %435 to i1
  br i1 %436, label %437, label %447

437:                                              ; preds = %434
  %438 = load i32, ptr %14, align 4, !tbaa !5
  %439 = icmp ne i32 %438, 0
  br i1 %439, label %440, label %444

440:                                              ; preds = %437
  %441 = load ptr, ptr %35, align 8, !tbaa !9
  %442 = load i32, ptr %15, align 4, !tbaa !5
  %443 = load i32, ptr %16, align 4, !tbaa !5
  call void @glfwSetWindowAspectRatio(ptr noundef %441, i32 noundef %442, i32 noundef %443)
  br label %446

444:                                              ; preds = %437
  %445 = load ptr, ptr %35, align 8, !tbaa !9
  call void @glfwSetWindowAspectRatio(ptr noundef %445, i32 noundef -1, i32 noundef -1)
  br label %446

446:                                              ; preds = %444, %440
  br label %447

447:                                              ; preds = %446, %434
  call void @llvm.lifetime.start.p0(i64 1, ptr %51) #9
  store i8 0, ptr %51, align 1, !tbaa !11
  %448 = load ptr, ptr %37, align 8, !tbaa !9
  %449 = call i32 @nk_checkbox_label(ptr noundef %448, ptr noundef @.str.157, ptr noundef %17)
  %450 = icmp ne i32 %449, 0
  br i1 %450, label %451, label %452

451:                                              ; preds = %447
  store i8 1, ptr %51, align 1, !tbaa !11
  br label %452

452:                                              ; preds = %451, %447
  %453 = load ptr, ptr %37, align 8, !tbaa !9
  %454 = getelementptr inbounds [12 x i8], ptr %29, i64 0, i64 0
  %455 = call i32 @nk_edit_string_zero_terminated(ptr noundef %453, i32 noundef 2660, ptr noundef %454, i32 noundef 12, ptr noundef @nk_filter_decimal)
  store i32 %455, ptr %46, align 4, !tbaa !5
  %456 = load i32, ptr %46, align 4, !tbaa !5
  %457 = and i32 %456, 16
  %458 = icmp ne i32 %457, 0
  br i1 %458, label %459, label %463

459:                                              ; preds = %452
  %460 = getelementptr inbounds [12 x i8], ptr %29, i64 0, i64 0
  %461 = call i32 @atoi(ptr noundef %460) #11
  %462 = call i32 @llvm.abs.i32(i32 %461, i1 true)
  store i32 %462, ptr %18, align 4, !tbaa !5
  store i8 1, ptr %51, align 1, !tbaa !11
  br label %472

463:                                              ; preds = %452
  %464 = load i32, ptr %46, align 4, !tbaa !5
  %465 = and i32 %464, 8
  %466 = icmp ne i32 %465, 0
  br i1 %466, label %467, label %471

467:                                              ; preds = %463
  %468 = getelementptr inbounds [12 x i8], ptr %29, i64 0, i64 0
  %469 = load i32, ptr %18, align 4, !tbaa !5
  %470 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %468, ptr noundef @.str.141, i32 noundef %469) #9
  br label %471

471:                                              ; preds = %467, %463
  br label %472

472:                                              ; preds = %471, %459
  %473 = load ptr, ptr %37, align 8, !tbaa !9
  %474 = getelementptr inbounds [12 x i8], ptr %30, i64 0, i64 0
  %475 = call i32 @nk_edit_string_zero_terminated(ptr noundef %473, i32 noundef 2660, ptr noundef %474, i32 noundef 12, ptr noundef @nk_filter_decimal)
  store i32 %475, ptr %46, align 4, !tbaa !5
  %476 = load i32, ptr %46, align 4, !tbaa !5
  %477 = and i32 %476, 16
  %478 = icmp ne i32 %477, 0
  br i1 %478, label %479, label %483

479:                                              ; preds = %472
  %480 = getelementptr inbounds [12 x i8], ptr %30, i64 0, i64 0
  %481 = call i32 @atoi(ptr noundef %480) #11
  %482 = call i32 @llvm.abs.i32(i32 %481, i1 true)
  store i32 %482, ptr %19, align 4, !tbaa !5
  store i8 1, ptr %51, align 1, !tbaa !11
  br label %492

483:                                              ; preds = %472
  %484 = load i32, ptr %46, align 4, !tbaa !5
  %485 = and i32 %484, 8
  %486 = icmp ne i32 %485, 0
  br i1 %486, label %487, label %491

487:                                              ; preds = %483
  %488 = getelementptr inbounds [12 x i8], ptr %30, i64 0, i64 0
  %489 = load i32, ptr %19, align 4, !tbaa !5
  %490 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %488, ptr noundef @.str.141, i32 noundef %489) #9
  br label %491

491:                                              ; preds = %487, %483
  br label %492

492:                                              ; preds = %491, %479
  %493 = load ptr, ptr %37, align 8, !tbaa !9
  %494 = call i32 @nk_checkbox_label(ptr noundef %493, ptr noundef @.str.158, ptr noundef %20)
  %495 = icmp ne i32 %494, 0
  br i1 %495, label %496, label %497

496:                                              ; preds = %492
  store i8 1, ptr %51, align 1, !tbaa !11
  br label %497

497:                                              ; preds = %496, %492
  %498 = load ptr, ptr %37, align 8, !tbaa !9
  %499 = getelementptr inbounds [12 x i8], ptr %31, i64 0, i64 0
  %500 = call i32 @nk_edit_string_zero_terminated(ptr noundef %498, i32 noundef 2660, ptr noundef %499, i32 noundef 12, ptr noundef @nk_filter_decimal)
  store i32 %500, ptr %46, align 4, !tbaa !5
  %501 = load i32, ptr %46, align 4, !tbaa !5
  %502 = and i32 %501, 16
  %503 = icmp ne i32 %502, 0
  br i1 %503, label %504, label %508

504:                                              ; preds = %497
  %505 = getelementptr inbounds [12 x i8], ptr %31, i64 0, i64 0
  %506 = call i32 @atoi(ptr noundef %505) #11
  %507 = call i32 @llvm.abs.i32(i32 %506, i1 true)
  store i32 %507, ptr %21, align 4, !tbaa !5
  store i8 1, ptr %51, align 1, !tbaa !11
  br label %517

508:                                              ; preds = %497
  %509 = load i32, ptr %46, align 4, !tbaa !5
  %510 = and i32 %509, 8
  %511 = icmp ne i32 %510, 0
  br i1 %511, label %512, label %516

512:                                              ; preds = %508
  %513 = getelementptr inbounds [12 x i8], ptr %31, i64 0, i64 0
  %514 = load i32, ptr %21, align 4, !tbaa !5
  %515 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %513, ptr noundef @.str.141, i32 noundef %514) #9
  br label %516

516:                                              ; preds = %512, %508
  br label %517

517:                                              ; preds = %516, %504
  %518 = load ptr, ptr %37, align 8, !tbaa !9
  %519 = getelementptr inbounds [12 x i8], ptr %32, i64 0, i64 0
  %520 = call i32 @nk_edit_string_zero_terminated(ptr noundef %518, i32 noundef 2660, ptr noundef %519, i32 noundef 12, ptr noundef @nk_filter_decimal)
  store i32 %520, ptr %46, align 4, !tbaa !5
  %521 = load i32, ptr %46, align 4, !tbaa !5
  %522 = and i32 %521, 16
  %523 = icmp ne i32 %522, 0
  br i1 %523, label %524, label %528

524:                                              ; preds = %517
  %525 = getelementptr inbounds [12 x i8], ptr %32, i64 0, i64 0
  %526 = call i32 @atoi(ptr noundef %525) #11
  %527 = call i32 @llvm.abs.i32(i32 %526, i1 true)
  store i32 %527, ptr %22, align 4, !tbaa !5
  store i8 1, ptr %51, align 1, !tbaa !11
  br label %537

528:                                              ; preds = %517
  %529 = load i32, ptr %46, align 4, !tbaa !5
  %530 = and i32 %529, 8
  %531 = icmp ne i32 %530, 0
  br i1 %531, label %532, label %536

532:                                              ; preds = %528
  %533 = getelementptr inbounds [12 x i8], ptr %32, i64 0, i64 0
  %534 = load i32, ptr %22, align 4, !tbaa !5
  %535 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %533, ptr noundef @.str.141, i32 noundef %534) #9
  br label %536

536:                                              ; preds = %532, %528
  br label %537

537:                                              ; preds = %536, %524
  %538 = load i8, ptr %51, align 1, !tbaa !11, !range !22, !noundef !23
  %539 = trunc i8 %538 to i1
  br i1 %539, label %540, label %570

540:                                              ; preds = %537
  %541 = load ptr, ptr %35, align 8, !tbaa !9
  %542 = load i32, ptr %17, align 4, !tbaa !5
  %543 = icmp ne i32 %542, 0
  br i1 %543, label %544, label %546

544:                                              ; preds = %540
  %545 = load i32, ptr %18, align 4, !tbaa !5
  br label %547

546:                                              ; preds = %540
  br label %547

547:                                              ; preds = %546, %544
  %548 = phi i32 [ %545, %544 ], [ -1, %546 ]
  %549 = load i32, ptr %17, align 4, !tbaa !5
  %550 = icmp ne i32 %549, 0
  br i1 %550, label %551, label %553

551:                                              ; preds = %547
  %552 = load i32, ptr %19, align 4, !tbaa !5
  br label %554

553:                                              ; preds = %547
  br label %554

554:                                              ; preds = %553, %551
  %555 = phi i32 [ %552, %551 ], [ -1, %553 ]
  %556 = load i32, ptr %20, align 4, !tbaa !5
  %557 = icmp ne i32 %556, 0
  br i1 %557, label %558, label %560

558:                                              ; preds = %554
  %559 = load i32, ptr %21, align 4, !tbaa !5
  br label %561

560:                                              ; preds = %554
  br label %561

561:                                              ; preds = %560, %558
  %562 = phi i32 [ %559, %558 ], [ -1, %560 ]
  %563 = load i32, ptr %20, align 4, !tbaa !5
  %564 = icmp ne i32 %563, 0
  br i1 %564, label %565, label %567

565:                                              ; preds = %561
  %566 = load i32, ptr %22, align 4, !tbaa !5
  br label %568

567:                                              ; preds = %561
  br label %568

568:                                              ; preds = %567, %565
  %569 = phi i32 [ %566, %565 ], [ -1, %567 ]
  call void @glfwSetWindowSizeLimits(ptr noundef %541, i32 noundef %548, i32 noundef %555, i32 noundef %562, i32 noundef %569)
  br label %570

570:                                              ; preds = %568, %537
  call void @llvm.lifetime.start.p0(i64 4, ptr %52) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %53) #9
  %571 = load ptr, ptr %35, align 8, !tbaa !9
  call void @glfwGetFramebufferSize(ptr noundef %571, ptr noundef %52, ptr noundef %53)
  %572 = load ptr, ptr %37, align 8, !tbaa !9
  call void @nk_label(ptr noundef %572, ptr noundef @.str.159, i32 noundef 17)
  %573 = load ptr, ptr %37, align 8, !tbaa !9
  %574 = load i32, ptr %52, align 4, !tbaa !5
  call void (ptr, i32, ptr, ...) @nk_labelf(ptr noundef %573, i32 noundef 17, ptr noundef @.str.141, i32 noundef %574)
  %575 = load ptr, ptr %37, align 8, !tbaa !9
  %576 = load i32, ptr %53, align 4, !tbaa !5
  call void (ptr, i32, ptr, ...) @nk_labelf(ptr noundef %575, i32 noundef 17, ptr noundef @.str.141, i32 noundef %576)
  call void @llvm.lifetime.start.p0(i64 4, ptr %54) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %55) #9
  %577 = load ptr, ptr %35, align 8, !tbaa !9
  call void @glfwGetWindowContentScale(ptr noundef %577, ptr noundef %54, ptr noundef %55)
  %578 = load ptr, ptr %37, align 8, !tbaa !9
  call void @nk_label(ptr noundef %578, ptr noundef @.str.160, i32 noundef 17)
  %579 = load ptr, ptr %37, align 8, !tbaa !9
  %580 = load float, ptr %54, align 4, !tbaa !24
  %581 = fpext float %580 to double
  call void (ptr, i32, ptr, ...) @nk_labelf(ptr noundef %579, i32 noundef 17, ptr noundef @.str.161, double noundef %581)
  %582 = load ptr, ptr %37, align 8, !tbaa !9
  %583 = load float, ptr %55, align 4, !tbaa !24
  %584 = fpext float %583 to double
  call void (ptr, i32, ptr, ...) @nk_labelf(ptr noundef %582, i32 noundef 17, ptr noundef @.str.161, double noundef %584)
  %585 = load ptr, ptr %37, align 8, !tbaa !9
  call void @nk_layout_row_begin(ptr noundef %585, i32 noundef 0, float noundef 3.000000e+01, i32 noundef 5)
  call void @llvm.lifetime.start.p0(i64 4, ptr %56) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %57) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %58) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %59) #9
  %586 = load ptr, ptr %35, align 8, !tbaa !9
  call void @glfwGetWindowFrameSize(ptr noundef %586, ptr noundef %56, ptr noundef %57, ptr noundef %58, ptr noundef %59)
  %587 = load ptr, ptr %37, align 8, !tbaa !9
  call void @nk_layout_row_push(ptr noundef %587, float noundef 0x3FD5555560000000)
  %588 = load ptr, ptr %37, align 8, !tbaa !9
  call void @nk_label(ptr noundef %588, ptr noundef @.str.162, i32 noundef 17)
  %589 = load ptr, ptr %37, align 8, !tbaa !9
  call void @nk_layout_row_push(ptr noundef %589, float noundef 0x3FC5555560000000)
  %590 = load ptr, ptr %37, align 8, !tbaa !9
  %591 = load i32, ptr %56, align 4, !tbaa !5
  call void (ptr, i32, ptr, ...) @nk_labelf(ptr noundef %590, i32 noundef 17, ptr noundef @.str.141, i32 noundef %591)
  %592 = load ptr, ptr %37, align 8, !tbaa !9
  call void @nk_layout_row_push(ptr noundef %592, float noundef 0x3FC5555560000000)
  %593 = load ptr, ptr %37, align 8, !tbaa !9
  %594 = load i32, ptr %57, align 4, !tbaa !5
  call void (ptr, i32, ptr, ...) @nk_labelf(ptr noundef %593, i32 noundef 17, ptr noundef @.str.141, i32 noundef %594)
  %595 = load ptr, ptr %37, align 8, !tbaa !9
  call void @nk_layout_row_push(ptr noundef %595, float noundef 0x3FC5555560000000)
  %596 = load ptr, ptr %37, align 8, !tbaa !9
  %597 = load i32, ptr %58, align 4, !tbaa !5
  call void (ptr, i32, ptr, ...) @nk_labelf(ptr noundef %596, i32 noundef 17, ptr noundef @.str.141, i32 noundef %597)
  %598 = load ptr, ptr %37, align 8, !tbaa !9
  call void @nk_layout_row_push(ptr noundef %598, float noundef 0x3FC5555560000000)
  %599 = load ptr, ptr %37, align 8, !tbaa !9
  %600 = load i32, ptr %59, align 4, !tbaa !5
  call void (ptr, i32, ptr, ...) @nk_labelf(ptr noundef %599, i32 noundef 17, ptr noundef @.str.141, i32 noundef %600)
  %601 = load ptr, ptr %37, align 8, !tbaa !9
  call void @nk_layout_row_end(ptr noundef %601)
  %602 = load ptr, ptr %37, align 8, !tbaa !9
  call void @nk_layout_row_begin(ptr noundef %602, i32 noundef 0, float noundef 3.000000e+01, i32 noundef 2)
  call void @llvm.lifetime.start.p0(i64 4, ptr %60) #9
  %603 = load ptr, ptr %35, align 8, !tbaa !9
  %604 = call float @glfwGetWindowOpacity(ptr noundef %603)
  store float %604, ptr %60, align 4, !tbaa !24
  %605 = load ptr, ptr %37, align 8, !tbaa !9
  call void @nk_layout_row_push(ptr noundef %605, float noundef 0x3FD5555560000000)
  %606 = load ptr, ptr %37, align 8, !tbaa !9
  %607 = load float, ptr %60, align 4, !tbaa !24
  %608 = fpext float %607 to double
  call void (ptr, i32, ptr, ...) @nk_labelf(ptr noundef %606, i32 noundef 17, ptr noundef @.str.163, double noundef %608)
  %609 = load ptr, ptr %37, align 8, !tbaa !9
  call void @nk_layout_row_push(ptr noundef %609, float noundef 0x3FE5555560000000)
  %610 = load ptr, ptr %37, align 8, !tbaa !9
  %611 = call i32 @nk_slider_float(ptr noundef %610, float noundef 0.000000e+00, ptr noundef %60, float noundef 1.000000e+00, float noundef 0x3F50624DE0000000)
  %612 = icmp ne i32 %611, 0
  br i1 %612, label %613, label %616

613:                                              ; preds = %570
  %614 = load ptr, ptr %35, align 8, !tbaa !9
  %615 = load float, ptr %60, align 4, !tbaa !24
  call void @glfwSetWindowOpacity(ptr noundef %614, float noundef %615)
  br label %616

616:                                              ; preds = %613, %570
  %617 = load ptr, ptr %37, align 8, !tbaa !9
  call void @nk_layout_row_end(ptr noundef %617)
  %618 = load ptr, ptr %37, align 8, !tbaa !9
  call void @nk_layout_row_begin(ptr noundef %618, i32 noundef 0, float noundef 3.000000e+01, i32 noundef 2)
  call void @llvm.lifetime.start.p0(i64 4, ptr %61) #9
  %619 = load ptr, ptr %35, align 8, !tbaa !9
  %620 = call i32 @glfwWindowShouldClose(ptr noundef %619)
  store i32 %620, ptr %61, align 4, !tbaa !5
  %621 = load ptr, ptr %37, align 8, !tbaa !9
  call void @nk_layout_row_push(ptr noundef %621, float noundef 0x3FD5555560000000)
  %622 = load ptr, ptr %37, align 8, !tbaa !9
  %623 = call i32 @nk_checkbox_label(ptr noundef %622, ptr noundef @.str.164, ptr noundef %61)
  %624 = icmp ne i32 %623, 0
  br i1 %624, label %625, label %628

625:                                              ; preds = %616
  %626 = load ptr, ptr %35, align 8, !tbaa !9
  %627 = load i32, ptr %61, align 4, !tbaa !5
  call void @glfwSetWindowShouldClose(ptr noundef %626, i32 noundef %627)
  br label %628

628:                                              ; preds = %625, %616
  %629 = load ptr, ptr %37, align 8, !tbaa !9
  call void @nk_layout_row_push(ptr noundef %629, float noundef 0x3FE5555560000000)
  %630 = load ptr, ptr %37, align 8, !tbaa !9
  %631 = call i32 @nk_checkbox_label(ptr noundef %630, ptr noundef @.str.165, ptr noundef %33)
  %632 = load ptr, ptr %37, align 8, !tbaa !9
  call void @nk_layout_row_end(ptr noundef %632)
  %633 = load ptr, ptr %37, align 8, !tbaa !9
  call void @nk_layout_row_dynamic(ptr noundef %633, float noundef 3.000000e+01, i32 noundef 1)
  %634 = load ptr, ptr %37, align 8, !tbaa !9
  call void @nk_label(ptr noundef %634, ptr noundef @.str.166, i32 noundef 18)
  %635 = load ptr, ptr %37, align 8, !tbaa !9
  %636 = load i32, ptr %39, align 4, !tbaa !5
  %637 = icmp sgt i32 %636, 200
  br i1 %637, label %638, label %641

638:                                              ; preds = %628
  %639 = load i32, ptr %39, align 4, !tbaa !5
  %640 = sdiv i32 %639, 200
  br label %642

641:                                              ; preds = %628
  br label %642

642:                                              ; preds = %641, %638
  %643 = phi i32 [ %640, %638 ], [ 1, %641 ]
  call void @nk_layout_row_dynamic(ptr noundef %635, float noundef 3.000000e+01, i32 noundef %643)
  call void @llvm.lifetime.start.p0(i64 4, ptr %62) #9
  %644 = load ptr, ptr %35, align 8, !tbaa !9
  %645 = call i32 @glfwGetWindowAttrib(ptr noundef %644, i32 noundef 131077)
  store i32 %645, ptr %62, align 4, !tbaa !5
  %646 = load ptr, ptr %37, align 8, !tbaa !9
  %647 = call i32 @nk_checkbox_label(ptr noundef %646, ptr noundef @.str.167, ptr noundef %62)
  %648 = icmp ne i32 %647, 0
  br i1 %648, label %649, label %652

649:                                              ; preds = %642
  %650 = load ptr, ptr %35, align 8, !tbaa !9
  %651 = load i32, ptr %62, align 4, !tbaa !5
  call void @glfwSetWindowAttrib(ptr noundef %650, i32 noundef 131077, i32 noundef %651)
  br label %652

652:                                              ; preds = %649, %642
  call void @llvm.lifetime.start.p0(i64 4, ptr %63) #9
  %653 = load ptr, ptr %35, align 8, !tbaa !9
  %654 = call i32 @glfwGetWindowAttrib(ptr noundef %653, i32 noundef 131075)
  store i32 %654, ptr %63, align 4, !tbaa !5
  %655 = load ptr, ptr %37, align 8, !tbaa !9
  %656 = call i32 @nk_checkbox_label(ptr noundef %655, ptr noundef @.str.168, ptr noundef %63)
  %657 = icmp ne i32 %656, 0
  br i1 %657, label %658, label %661

658:                                              ; preds = %652
  %659 = load ptr, ptr %35, align 8, !tbaa !9
  %660 = load i32, ptr %63, align 4, !tbaa !5
  call void @glfwSetWindowAttrib(ptr noundef %659, i32 noundef 131075, i32 noundef %660)
  br label %661

661:                                              ; preds = %658, %652
  call void @llvm.lifetime.start.p0(i64 4, ptr %64) #9
  %662 = load ptr, ptr %35, align 8, !tbaa !9
  %663 = call i32 @glfwGetWindowAttrib(ptr noundef %662, i32 noundef 131079)
  store i32 %663, ptr %64, align 4, !tbaa !5
  %664 = load ptr, ptr %37, align 8, !tbaa !9
  %665 = call i32 @nk_checkbox_label(ptr noundef %664, ptr noundef @.str.169, ptr noundef %64)
  %666 = icmp ne i32 %665, 0
  br i1 %666, label %667, label %670

667:                                              ; preds = %661
  %668 = load ptr, ptr %35, align 8, !tbaa !9
  %669 = load i32, ptr %64, align 4, !tbaa !5
  call void @glfwSetWindowAttrib(ptr noundef %668, i32 noundef 131079, i32 noundef %669)
  br label %670

670:                                              ; preds = %667, %661
  call void @llvm.lifetime.start.p0(i64 4, ptr %65) #9
  %671 = load ptr, ptr %35, align 8, !tbaa !9
  %672 = call i32 @glfwGetWindowAttrib(ptr noundef %671, i32 noundef 131085)
  store i32 %672, ptr %65, align 4, !tbaa !5
  %673 = load ptr, ptr %37, align 8, !tbaa !9
  %674 = call i32 @nk_checkbox_label(ptr noundef %673, ptr noundef @.str.170, ptr noundef %65)
  %675 = icmp ne i32 %674, 0
  br i1 %675, label %676, label %679

676:                                              ; preds = %670
  %677 = load ptr, ptr %35, align 8, !tbaa !9
  %678 = load i32, ptr %65, align 4, !tbaa !5
  call void @glfwSetWindowAttrib(ptr noundef %677, i32 noundef 131085, i32 noundef %678)
  br label %679

679:                                              ; preds = %676, %670
  call void @llvm.lifetime.start.p0(i64 4, ptr %66) #9
  %680 = load ptr, ptr %35, align 8, !tbaa !9
  %681 = call i32 @glfwGetWindowAttrib(ptr noundef %680, i32 noundef 131078)
  store i32 %681, ptr %66, align 4, !tbaa !5
  %682 = load ptr, ptr %37, align 8, !tbaa !9
  %683 = call i32 @nk_checkbox_label(ptr noundef %682, ptr noundef @.str.171, ptr noundef %66)
  %684 = icmp ne i32 %683, 0
  br i1 %684, label %685, label %688

685:                                              ; preds = %679
  %686 = load ptr, ptr %35, align 8, !tbaa !9
  %687 = load i32, ptr %66, align 4, !tbaa !5
  call void @glfwSetWindowAttrib(ptr noundef %686, i32 noundef 131078, i32 noundef %687)
  br label %688

688:                                              ; preds = %685, %679
  %689 = load ptr, ptr %37, align 8, !tbaa !9
  %690 = load ptr, ptr %35, align 8, !tbaa !9
  %691 = call i32 @glfwGetWindowAttrib(ptr noundef %690, i32 noundef 131073)
  call void @nk_value_bool(ptr noundef %689, ptr noundef @.str.172, i32 noundef %691)
  %692 = load ptr, ptr %37, align 8, !tbaa !9
  %693 = load ptr, ptr %35, align 8, !tbaa !9
  %694 = call i32 @glfwGetWindowAttrib(ptr noundef %693, i32 noundef 131083)
  call void @nk_value_bool(ptr noundef %692, ptr noundef @.str.173, i32 noundef %694)
  %695 = load ptr, ptr %37, align 8, !tbaa !9
  %696 = load ptr, ptr %35, align 8, !tbaa !9
  %697 = call i32 @glfwGetWindowAttrib(ptr noundef %696, i32 noundef 131076)
  call void @nk_value_bool(ptr noundef %695, ptr noundef @.str.174, i32 noundef %697)
  %698 = load ptr, ptr %37, align 8, !tbaa !9
  %699 = load ptr, ptr %35, align 8, !tbaa !9
  %700 = call i32 @glfwGetWindowAttrib(ptr noundef %699, i32 noundef 131074)
  call void @nk_value_bool(ptr noundef %698, ptr noundef @.str.175, i32 noundef %700)
  %701 = load ptr, ptr %37, align 8, !tbaa !9
  %702 = load ptr, ptr %35, align 8, !tbaa !9
  %703 = call i32 @glfwGetWindowAttrib(ptr noundef %702, i32 noundef 131080)
  call void @nk_value_bool(ptr noundef %701, ptr noundef @.str.176, i32 noundef %703)
  call void @llvm.lifetime.end.p0(i64 4, ptr %66) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %65) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %64) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %63) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %62) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %61) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %60) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %59) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %58) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %57) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %56) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %55) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %54) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %53) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %52) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %51) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %50) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %47) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %46) #9
  br label %704

704:                                              ; preds = %688, %131
  %705 = load ptr, ptr %37, align 8, !tbaa !9
  call void @nk_end(ptr noundef %705)
  %706 = load ptr, ptr @glad_glClear, align 8, !tbaa !9
  call void %706(i32 noundef 16384)
  call void @nk_glfw3_render(i32 noundef 1)
  %707 = load ptr, ptr %35, align 8, !tbaa !9
  call void @glfwSwapBuffers(ptr noundef %707)
  call void @glfwWaitEvents()
  call void @llvm.lifetime.end.p0(i64 16, ptr %41) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #9
  br label %121, !llvm.loop !26

708:                                              ; preds = %128
  call void @nk_glfw3_shutdown()
  call void @glfwTerminate()
  call void @exit(i32 noundef 0) #10
  unreachable
}

declare i32 @glfwInit() #4

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

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

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

declare void @glfwTerminate() #4

declare void @glfwMakeContextCurrent(ptr noundef) #4

declare ptr @glfwGetProcAddress(ptr noundef) #4

declare void @glfwSwapInterval(i32 noundef) #4

declare i32 @glfwGetError(ptr noundef) #4

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

; Function Attrs: nounwind
declare i32 @sprintf(ptr noundef, ptr noundef, ...) #6

; Function Attrs: nounwind
declare ptr @strncpy(ptr noundef, ptr noundef, i64 noundef) #6

declare ptr @glfwGetWindowTitle(ptr noundef) #4

declare i32 @glfwWindowShouldClose(ptr noundef) #4

declare ptr @glfwGetWindowMonitor(ptr noundef) #4

declare void @glfwSetWindowMonitor(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #4

declare ptr @glfwGetPrimaryMonitor() #4

declare ptr @glfwGetVideoMode(ptr noundef) #4

declare void @glfwMaximizeWindow(ptr noundef) #4

declare void @glfwIconifyWindow(ptr noundef) #4

declare void @glfwRestoreWindow(ptr noundef) #4

declare void @glfwHideWindow(ptr noundef) #4

declare void @glfwWaitEventsTimeout(double noundef) #4

declare void @glfwShowWindow(ptr noundef) #4

declare void @glfwRequestWindowAttention(ptr noundef) #4

declare i32 @glfwGetWindowAttrib(ptr noundef, i32 noundef) #4

declare void @glfwSetWindowAttrib(ptr noundef, i32 noundef, i32 noundef) #4

declare void @glfwSetWindowTitle(ptr noundef, ptr noundef) #4

; Function Attrs: inlinehint nounwind willreturn memory(read) uwtable
declare i32 @atoi(ptr noundef nonnull) #7

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

declare void @glfwSetWindowSize(ptr noundef, i32 noundef, i32 noundef) #4

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.abs.i32(i32, i1 immarg) #8

declare void @glfwSetWindowAspectRatio(ptr noundef, i32 noundef, i32 noundef) #4

declare void @glfwSetWindowSizeLimits(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #4

declare void @glfwGetWindowContentScale(ptr noundef, ptr noundef, ptr noundef) #4

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

declare float @glfwGetWindowOpacity(ptr noundef) #4

declare void @glfwSetWindowOpacity(ptr noundef, float noundef) #4

declare void @glfwSetWindowShouldClose(ptr noundef, i32 noundef) #4

declare void @glfwSwapBuffers(ptr noundef) #4

declare void @glfwWaitEvents() #4

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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { nounwind uwtable "min-legal-vector-width"="64" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 #7 = { inlinehint nounwind willreturn memory(read) 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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #9 = { nounwind }
attributes #10 = { noreturn nounwind }
attributes #11 = { nounwind willreturn memory(read) }

!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, !12, i64 0}
!12 = !{!"_Bool", !7, i64 0}
!13 = !{!14, !6, i64 0}
!14 = !{!"GLFWvidmode", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !6, i64 16, !6, i64 20}
!15 = !{!14, !6, i64 4}
!16 = !{!14, !6, i64 20}
!17 = !{!18, !18, i64 0}
!18 = !{!"double", !7, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = distinct !{!21, !20}
!22 = !{i8 0, i8 2}
!23 = !{}
!24 = !{!25, !25, i64 0}
!25 = !{!"float", !7, i64 0}
!26 = distinct !{!26, !20}


; 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_glClear = external dso_local local_unnamed_addr global ptr, align 8
@.str.140 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.141 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.142 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.143 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.144 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.145 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.146 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.147 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.148 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.149 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.150 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.151 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.152 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.153 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.154 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.155 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.156 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.157 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.158 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.159 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.160 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.161 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.162 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.163 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.164 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.165 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.166 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.167 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.168 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.169 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.170 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.171 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.172 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.173 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.174 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.175 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.176 = external hidden unnamed_addr constant [10 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: 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: nounwind uwtable
declare dso_local { <2 x float>, <2 x float> } @nk_rect(float noundef, float noundef, float noundef, float noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2

; Function Attrs: nounwind uwtable
declare dso_local i32 @nk_begin(ptr noundef, ptr noundef, <2 x float>, <2 x float>, i32 noundef) local_unnamed_addr #3

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

; Function Attrs: nounwind uwtable
declare dso_local void @nk_window_set_bounds(ptr noundef, ptr noundef, <2 x float>, <2 x float>) local_unnamed_addr #3

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

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

; Function Attrs: nounwind uwtable
declare dso_local void @nk_layout_row_push(ptr noundef, float noundef) local_unnamed_addr #1

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

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

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

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

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

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @nk_slider_float(ptr noundef, float noundef, ptr noundef, float noundef, float noundef) local_unnamed_addr #3

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

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

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

declare double @glfwGetTime() local_unnamed_addr #4

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

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

; Function Attrs: nounwind uwtable
declare dso_local void @nk_glfw3_font_stash_end() local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local void @nk_glfw3_new_frame() local_unnamed_addr #3

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

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

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

; Function Attrs: nounwind uwtable
declare dso_local void @nk_glfw3_shutdown() 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 #5 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca [12 x i8], align 1
  %15 = alloca [12 x i8], align 1
  %16 = alloca [12 x i8], align 1
  %17 = alloca [12 x i8], align 1
  %18 = alloca [12 x i8], align 1
  %19 = alloca [12 x i8], align 1
  %20 = alloca [12 x i8], align 1
  %21 = alloca [12 x i8], align 1
  %22 = alloca [12 x i8], align 1
  %23 = alloca [12 x i8], align 1
  %24 = alloca i32, align 4
  %25 = alloca [64 x i8], align 16
  %26 = alloca ptr, align 8
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  %31 = alloca i32, align 4
  %32 = alloca i32, align 4
  %33 = alloca float, align 4
  %34 = alloca float, align 4
  %35 = alloca i32, align 4
  %36 = alloca i32, align 4
  %37 = alloca i32, align 4
  %38 = alloca i32, align 4
  %39 = alloca float, align 4
  %40 = alloca i32, align 4
  %41 = alloca i32, align 4
  %42 = alloca i32, align 4
  %43 = alloca i32, align 4
  %44 = alloca i32, align 4
  %45 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #11
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #11
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #11
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #11
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #11
  store i32 -2147483648, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #11
  store i32 -2147483648, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #11
  store i32 -2147483648, ptr %9, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #11
  store i32 -2147483648, ptr %10, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #11
  store i32 0, ptr %11, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #11
  store i32 0, ptr %12, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #11
  store i32 0, ptr %13, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %14) #11
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 1 dereferenceable(12) %14, i8 0, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %15) #11
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 1 dereferenceable(12) %15, i8 0, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %16) #11
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 1 dereferenceable(12) %16, i8 0, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %17) #11
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 1 dereferenceable(12) %17, i8 0, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %18) #11
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 1 dereferenceable(12) %18, i8 0, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %19) #11
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 1 dereferenceable(12) %19, i8 0, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %20) #11
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 1 dereferenceable(12) %20, i8 0, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %21) #11
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 1 dereferenceable(12) %21, i8 0, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %22) #11
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 1 dereferenceable(12) %22, i8 0, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %23) #11
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 1 dereferenceable(12) %23, i8 0, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %24) #11
  store i32 1, ptr %24, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %25) #11
  %46 = tail call i32 @glfwInit() #11
  %.not = icmp eq i32 %46, 0
  br i1 %.not, label %47, label %48

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

48:                                               ; preds = %2
  tail call void @glfwWindowHint(i32 noundef 139276, i32 noundef 1) #11
  tail call void @glfwWindowHint(i32 noundef 151553, i32 noundef 1) #11
  tail call void @glfwWindowHint(i32 noundef 139266, i32 noundef 2) #11
  tail call void @glfwWindowHint(i32 noundef 139267, i32 noundef 1) #11
  %49 = tail call ptr @glfwCreateWindow(i32 noundef 600, i32 noundef 660, ptr noundef nonnull @.str.140, ptr noundef null, ptr noundef null) #11
  %.not211 = icmp eq ptr %49, null
  br i1 %.not211, label %50, label %51

50:                                               ; preds = %48
  tail call void @glfwTerminate() #11
  tail call void @exit(i32 noundef 1) #12
  unreachable

51:                                               ; preds = %48
  tail call void @glfwMakeContextCurrent(ptr noundef nonnull %49) #11
  %52 = tail call i32 @gladLoadGL(ptr noundef nonnull @glfwGetProcAddress)
  tail call void @glfwSwapInterval(i32 noundef 0) #11
  %53 = tail call i32 @glfwGetError(ptr noundef null) #11
  call void @glfwGetWindowPos(ptr noundef nonnull %49, ptr noundef nonnull %7, ptr noundef nonnull %8) #11
  %54 = load i32, ptr %7, align 4, !tbaa !5
  %55 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %16, ptr noundef nonnull dereferenceable(1) @.str.141, i32 noundef %54) #11
  %56 = load i32, ptr %8, align 4, !tbaa !5
  %57 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %17, ptr noundef nonnull dereferenceable(1) @.str.141, i32 noundef %56) #11
  %58 = call i32 @glfwGetError(ptr noundef null) #11
  %.not225 = icmp eq i32 %58, 65548
  call void @glfwGetWindowSize(ptr noundef nonnull %49, ptr noundef nonnull %9, ptr noundef nonnull %10) #11
  %59 = load i32, ptr %9, align 4, !tbaa !5
  %60 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %14, ptr noundef nonnull dereferenceable(1) @.str.141, i32 noundef %59) #11
  %61 = load i32, ptr %10, align 4, !tbaa !5
  %62 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %15, ptr noundef nonnull dereferenceable(1) @.str.141, i32 noundef %61) #11
  %63 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %18, ptr noundef nonnull dereferenceable(1) @.str.141, i32 noundef 1) #11
  %64 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %19, ptr noundef nonnull dereferenceable(1) @.str.141, i32 noundef 1) #11
  %65 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %20, ptr noundef nonnull dereferenceable(1) @.str.141, i32 noundef 400) #11
  %66 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %21, ptr noundef nonnull dereferenceable(1) @.str.141, i32 noundef 400) #11
  %67 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %22, ptr noundef nonnull dereferenceable(1) @.str.141, i32 noundef 400) #11
  %68 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %23, ptr noundef nonnull dereferenceable(1) @.str.141, i32 noundef 400) #11
  %69 = call ptr @nk_glfw3_init(ptr noundef nonnull %49, i32 noundef 1)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %26) #11
  call void @nk_glfw3_font_stash_begin(ptr noundef nonnull %26)
  call void @nk_glfw3_font_stash_end()
  %70 = call ptr @glfwGetWindowTitle(ptr noundef nonnull %49) #11
  %71 = call ptr @strncpy(ptr noundef nonnull dereferenceable(1) %25, ptr noundef nonnull dereferenceable(1) %70, i64 noundef 64) #11
  br label %72

72:                                               ; preds = %326, %51
  %.0205 = phi i32 [ 400, %51 ], [ %.2207, %326 ]
  %.0202 = phi i32 [ 400, %51 ], [ %.2204, %326 ]
  %.0199 = phi i32 [ 400, %51 ], [ %.2201, %326 ]
  %.0196 = phi i32 [ 400, %51 ], [ %.2198, %326 ]
  %.0193 = phi i32 [ 1, %51 ], [ %.2195, %326 ]
  %.0190 = phi i32 [ 1, %51 ], [ %.2192, %326 ]
  %73 = load i32, ptr %24, align 4, !tbaa !5
  %.not212 = icmp eq i32 %73, 0
  br i1 %.not212, label %.critedge, label %74

74:                                               ; preds = %72
  %75 = call i32 @glfwWindowShouldClose(ptr noundef %49) #11
  %.not277 = icmp eq i32 %75, 0
  br i1 %.not277, label %.critedge, label %328

.critedge:                                        ; preds = %72, %74
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %27) #11
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %28) #11
  call void @glfwGetWindowSize(ptr noundef %49, ptr noundef nonnull %27, ptr noundef nonnull %28) #11
  %76 = load i32, ptr %27, align 4, !tbaa !5
  %77 = sitofp i32 %76 to float
  %78 = load i32, ptr %28, align 4, !tbaa !5
  %79 = sitofp i32 %78 to float
  %80 = call { <2 x float>, <2 x float> } @nk_rect(float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef %77, float noundef %79)
  %81 = extractvalue { <2 x float>, <2 x float> } %80, 0
  %82 = extractvalue { <2 x float>, <2 x float> } %80, 1
  call void @nk_window_set_bounds(ptr noundef %69, ptr noundef nonnull @.str.142, <2 x float> %81, <2 x float> %82)
  call void @nk_glfw3_new_frame()
  %83 = call i32 @nk_begin(ptr noundef %69, ptr noundef nonnull @.str.142, <2 x float> %81, <2 x float> %82, i32 noundef 0)
  %.not213 = icmp eq i32 %83, 0
  br i1 %.not213, label %326, label %84

84:                                               ; preds = %.critedge
  call void @nk_layout_row_dynamic(ptr noundef %69, float noundef 3.000000e+01, i32 noundef 4)
  %85 = call ptr @glfwGetWindowMonitor(ptr noundef %49) #11
  %.not214 = icmp eq ptr %85, null
  br i1 %.not214, label %93, label %86

86:                                               ; preds = %84
  %87 = call i32 @nk_button_label(ptr noundef %69, ptr noundef nonnull @.str.143)
  %.not216 = icmp eq i32 %87, 0
  br i1 %.not216, label %103, label %88

88:                                               ; preds = %86
  %89 = load i32, ptr %3, align 4, !tbaa !5
  %90 = load i32, ptr %4, align 4, !tbaa !5
  %91 = load i32, ptr %5, align 4, !tbaa !5
  %92 = load i32, ptr %6, align 4, !tbaa !5
  call void @glfwSetWindowMonitor(ptr noundef %49, ptr noundef null, i32 noundef %89, i32 noundef %90, i32 noundef %91, i32 noundef %92, i32 noundef 0) #11
  br label %103

93:                                               ; preds = %84
  %94 = call i32 @nk_button_label(ptr noundef %69, ptr noundef nonnull @.str.144)
  %.not215 = icmp eq i32 %94, 0
  br i1 %.not215, label %103, label %95

95:                                               ; preds = %93
  %96 = call ptr @glfwGetPrimaryMonitor() #11
  %97 = call ptr @glfwGetVideoMode(ptr noundef %96) #11
  call void @glfwGetWindowPos(ptr noundef %49, ptr noundef nonnull %3, ptr noundef nonnull %4) #11
  call void @glfwGetWindowSize(ptr noundef %49, ptr noundef nonnull %5, ptr noundef nonnull %6) #11
  %98 = load i32, ptr %97, align 4, !tbaa !9
  %99 = getelementptr inbounds i8, ptr %97, i64 4
  %100 = load i32, ptr %99, align 4, !tbaa !11
  %101 = getelementptr inbounds i8, ptr %97, i64 20
  %102 = load i32, ptr %101, align 4, !tbaa !12
  call void @glfwSetWindowMonitor(ptr noundef %49, ptr noundef %96, i32 noundef 0, i32 noundef 0, i32 noundef %98, i32 noundef %100, i32 noundef %102) #11
  br label %103

103:                                              ; preds = %93, %95, %86, %88
  %104 = call i32 @nk_button_label(ptr noundef %69, ptr noundef nonnull @.str.145)
  %.not217 = icmp eq i32 %104, 0
  br i1 %.not217, label %106, label %105

105:                                              ; preds = %103
  call void @glfwMaximizeWindow(ptr noundef %49) #11
  br label %106

106:                                              ; preds = %105, %103
  %107 = call i32 @nk_button_label(ptr noundef %69, ptr noundef nonnull @.str.146)
  %.not218 = icmp eq i32 %107, 0
  br i1 %.not218, label %109, label %108

108:                                              ; preds = %106
  call void @glfwIconifyWindow(ptr noundef %49) #11
  br label %109

109:                                              ; preds = %108, %106
  %110 = call i32 @nk_button_label(ptr noundef %69, ptr noundef nonnull @.str.147)
  %.not219 = icmp eq i32 %110, 0
  br i1 %.not219, label %112, label %111

111:                                              ; preds = %109
  call void @glfwRestoreWindow(ptr noundef %49) #11
  br label %112

112:                                              ; preds = %111, %109
  call void @nk_layout_row_dynamic(ptr noundef %69, float noundef 3.000000e+01, i32 noundef 2)
  %113 = call i32 @nk_button_label(ptr noundef %69, ptr noundef nonnull @.str.148)
  %.not220 = icmp eq i32 %113, 0
  br i1 %.not220, label %121, label %114

114:                                              ; preds = %112
  call void @glfwHideWindow(ptr noundef %49) #11
  %115 = call double @glfwGetTime() #11
  %116 = fadd double %115, 3.000000e+00
  %117 = call double @glfwGetTime() #11
  %118 = fcmp olt double %117, %116
  br i1 %118, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %114, %.lr.ph
  call void @glfwWaitEventsTimeout(double noundef 1.000000e+00) #11
  %119 = call double @glfwGetTime() #11
  %120 = fcmp olt double %119, %116
  br i1 %120, label %.lr.ph, label %._crit_edge, !llvm.loop !13

._crit_edge:                                      ; preds = %.lr.ph, %114
  call void @glfwShowWindow(ptr noundef %49) #11
  br label %121

121:                                              ; preds = %._crit_edge, %112
  %122 = call i32 @nk_button_label(ptr noundef %69, ptr noundef nonnull @.str.149)
  %.not221 = icmp eq i32 %122, 0
  br i1 %.not221, label %130, label %123

123:                                              ; preds = %121
  call void @glfwIconifyWindow(ptr noundef %49) #11
  %124 = call double @glfwGetTime() #11
  %125 = fadd double %124, 3.000000e+00
  %126 = call double @glfwGetTime() #11
  %127 = fcmp olt double %126, %125
  br i1 %127, label %.lr.ph279, label %._crit_edge280

.lr.ph279:                                        ; preds = %123, %.lr.ph279
  call void @glfwWaitEventsTimeout(double noundef 1.000000e+00) #11
  %128 = call double @glfwGetTime() #11
  %129 = fcmp olt double %128, %125
  br i1 %129, label %.lr.ph279, label %._crit_edge280, !llvm.loop !15

._crit_edge280:                                   ; preds = %.lr.ph279, %123
  call void @glfwRequestWindowAttention(ptr noundef %49) #11
  br label %130

130:                                              ; preds = %._crit_edge280, %121
  call void @nk_layout_row_dynamic(ptr noundef %69, float noundef 3.000000e+01, i32 noundef 1)
  %131 = call i32 @glfwGetWindowAttrib(ptr noundef %49, i32 noundef 131085) #11
  %.not222 = icmp eq i32 %131, 0
  br i1 %.not222, label %135, label %132

132:                                              ; preds = %130
  call void @nk_label(ptr noundef %69, ptr noundef nonnull @.str.150, i32 noundef 18)
  %133 = call i32 @glfwGetKey(ptr noundef %49, i32 noundef 72) #11
  %.not223 = icmp eq i32 %133, 0
  br i1 %.not223, label %135, label %134

134:                                              ; preds = %132
  call void @glfwSetWindowAttrib(ptr noundef %49, i32 noundef 131085, i32 noundef 0) #11
  br label %135

135:                                              ; preds = %132, %134, %130
  call void @nk_label(ptr noundef %69, ptr noundef nonnull @.str.151, i32 noundef 18)
  call void @nk_layout_row_begin(ptr noundef %69, i32 noundef 0, float noundef 3.000000e+01, i32 noundef 2)
  call void @nk_layout_row_push(ptr noundef %69, float noundef 0x3FD5555560000000)
  call void @nk_label(ptr noundef %69, ptr noundef nonnull @.str.152, i32 noundef 17)
  call void @nk_layout_row_push(ptr noundef %69, float noundef 0x3FE5555560000000)
  %136 = call i32 @nk_edit_string_zero_terminated(ptr noundef %69, i32 noundef 2660, ptr noundef nonnull %25, i32 noundef 64, ptr noundef null)
  %137 = and i32 %136, 16
  %.not224 = icmp eq i32 %137, 0
  br i1 %.not224, label %139, label %138

138:                                              ; preds = %135
  call void @glfwSetWindowTitle(ptr noundef %49, ptr noundef nonnull %25) #11
  br label %139

139:                                              ; preds = %138, %135
  call void @nk_layout_row_end(ptr noundef %69)
  br i1 %.not225, label %167, label %140

140:                                              ; preds = %139
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %29) #11
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %30) #11
  call void @glfwGetWindowPos(ptr noundef %49, ptr noundef nonnull %29, ptr noundef nonnull %30) #11
  call void @nk_layout_row_dynamic(ptr noundef %69, float noundef 3.000000e+01, i32 noundef 3)
  call void @nk_label(ptr noundef %69, ptr noundef nonnull @.str.153, i32 noundef 17)
  %141 = call i32 @nk_edit_string_zero_terminated(ptr noundef %69, i32 noundef 2660, ptr noundef nonnull %16, i32 noundef 12, ptr noundef nonnull @nk_filter_decimal)
  %142 = and i32 %141, 16
  %.not226 = icmp eq i32 %142, 0
  br i1 %.not226, label %146, label %143

143:                                              ; preds = %140
  %144 = call i32 @atoi(ptr nocapture noundef %16) #13
  store i32 %144, ptr %29, align 4, !tbaa !5
  %145 = load i32, ptr %30, align 4, !tbaa !5
  call void @glfwSetWindowPos(ptr noundef %49, i32 noundef %144, i32 noundef %145) #11
  br label %152

146:                                              ; preds = %140
  %147 = load i32, ptr %29, align 4, !tbaa !5
  %148 = load i32, ptr %7, align 4, !tbaa !5
  %.not227 = icmp eq i32 %147, %148
  %149 = and i32 %141, 8
  %.not228 = icmp eq i32 %149, 0
  %or.cond = and i1 %.not228, %.not227
  br i1 %or.cond, label %152, label %150

150:                                              ; preds = %146
  %151 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %16, ptr noundef nonnull dereferenceable(1) @.str.141, i32 noundef %147) #11
  br label %152

152:                                              ; preds = %146, %150, %143
  %153 = call i32 @nk_edit_string_zero_terminated(ptr noundef %69, i32 noundef 2660, ptr noundef nonnull %17, i32 noundef 12, ptr noundef nonnull @nk_filter_decimal)
  %154 = and i32 %153, 16
  %.not229 = icmp eq i32 %154, 0
  br i1 %.not229, label %158, label %155

155:                                              ; preds = %152
  %156 = call i32 @atoi(ptr nocapture noundef %17) #13
  store i32 %156, ptr %30, align 4, !tbaa !5
  %157 = load i32, ptr %29, align 4, !tbaa !5
  call void @glfwSetWindowPos(ptr noundef %49, i32 noundef %157, i32 noundef %156) #11
  br label %164

158:                                              ; preds = %152
  %159 = load i32, ptr %30, align 4, !tbaa !5
  %160 = load i32, ptr %8, align 4, !tbaa !5
  %.not230 = icmp eq i32 %159, %160
  %161 = and i32 %153, 8
  %.not231 = icmp eq i32 %161, 0
  %or.cond263 = and i1 %.not231, %.not230
  br i1 %or.cond263, label %164, label %162

162:                                              ; preds = %158
  %163 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %17, ptr noundef nonnull dereferenceable(1) @.str.141, i32 noundef %159) #11
  br label %164

164:                                              ; preds = %158, %162, %155
  %165 = load i32, ptr %29, align 4, !tbaa !5
  store i32 %165, ptr %7, align 4, !tbaa !5
  %166 = load i32, ptr %30, align 4, !tbaa !5
  store i32 %166, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %30) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %29) #11
  br label %168

167:                                              ; preds = %139
  call void @nk_label(ptr noundef %69, ptr noundef nonnull @.str.154, i32 noundef 17)
  br label %168

168:                                              ; preds = %167, %164
  call void @nk_layout_row_dynamic(ptr noundef %69, float noundef 3.000000e+01, i32 noundef 3)
  call void @nk_label(ptr noundef %69, ptr noundef nonnull @.str.155, i32 noundef 17)
  %169 = call i32 @nk_edit_string_zero_terminated(ptr noundef %69, i32 noundef 2660, ptr noundef nonnull %14, i32 noundef 12, ptr noundef nonnull @nk_filter_decimal)
  %170 = and i32 %169, 16
  %.not232 = icmp eq i32 %170, 0
  br i1 %.not232, label %174, label %171

171:                                              ; preds = %168
  %172 = call i32 @atoi(ptr nocapture noundef %14) #13
  store i32 %172, ptr %27, align 4, !tbaa !5
  %173 = load i32, ptr %28, align 4, !tbaa !5
  call void @glfwSetWindowSize(ptr noundef %49, i32 noundef %172, i32 noundef %173) #11
  br label %180

174:                                              ; preds = %168
  %175 = load i32, ptr %27, align 4, !tbaa !5
  %176 = load i32, ptr %9, align 4, !tbaa !5
  %.not233 = icmp eq i32 %175, %176
  %177 = and i32 %169, 8
  %.not234 = icmp eq i32 %177, 0
  %or.cond264 = and i1 %.not234, %.not233
  br i1 %or.cond264, label %180, label %178

178:                                              ; preds = %174
  %179 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %14, ptr noundef nonnull dereferenceable(1) @.str.141, i32 noundef %175) #11
  br label %180

180:                                              ; preds = %174, %178, %171
  %181 = call i32 @nk_edit_string_zero_terminated(ptr noundef %69, i32 noundef 2660, ptr noundef nonnull %15, i32 noundef 12, ptr noundef nonnull @nk_filter_decimal)
  %182 = and i32 %181, 16
  %.not235 = icmp eq i32 %182, 0
  br i1 %.not235, label %186, label %183

183:                                              ; preds = %180
  %184 = call i32 @atoi(ptr nocapture noundef %15) #13
  store i32 %184, ptr %28, align 4, !tbaa !5
  %185 = load i32, ptr %27, align 4, !tbaa !5
  call void @glfwSetWindowSize(ptr noundef %49, i32 noundef %185, i32 noundef %184) #11
  br label %192

186:                                              ; preds = %180
  %187 = load i32, ptr %28, align 4, !tbaa !5
  %188 = load i32, ptr %10, align 4, !tbaa !5
  %.not236 = icmp eq i32 %187, %188
  %189 = and i32 %181, 8
  %.not237 = icmp eq i32 %189, 0
  %or.cond265 = and i1 %.not237, %.not236
  br i1 %or.cond265, label %192, label %190

190:                                              ; preds = %186
  %191 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %15, ptr noundef nonnull dereferenceable(1) @.str.141, i32 noundef %187) #11
  br label %192

192:                                              ; preds = %186, %190, %183
  %193 = load i32, ptr %27, align 4, !tbaa !5
  store i32 %193, ptr %9, align 4, !tbaa !5
  %194 = load i32, ptr %28, align 4, !tbaa !5
  store i32 %194, ptr %10, align 4, !tbaa !5
  %195 = call i32 @nk_checkbox_label(ptr noundef %69, ptr noundef nonnull @.str.156, ptr noundef nonnull %11)
  %.not238 = icmp ne i32 %195, 0
  %196 = call i32 @nk_edit_string_zero_terminated(ptr noundef %69, i32 noundef 2660, ptr noundef nonnull %18, i32 noundef 12, ptr noundef nonnull @nk_filter_decimal)
  %197 = and i32 %196, 16
  %.not239 = icmp eq i32 %197, 0
  br i1 %.not239, label %201, label %198

198:                                              ; preds = %192
  %199 = call i32 @atoi(ptr nocapture noundef %18) #13
  %200 = call i32 @llvm.abs.i32(i32 %199, i1 true)
  br label %205

201:                                              ; preds = %192
  %202 = and i32 %196, 8
  %.not240 = icmp eq i32 %202, 0
  br i1 %.not240, label %205, label %203

203:                                              ; preds = %201
  %204 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %18, ptr noundef nonnull dereferenceable(1) @.str.141, i32 noundef %.0190) #11
  br label %205

205:                                              ; preds = %201, %203, %198
  %.1191 = phi i32 [ %200, %198 ], [ %.0190, %203 ], [ %.0190, %201 ]
  %.1188.shrunk = phi i1 [ true, %198 ], [ %.not238, %203 ], [ %.not238, %201 ]
  %206 = call i32 @nk_edit_string_zero_terminated(ptr noundef %69, i32 noundef 2660, ptr noundef nonnull %19, i32 noundef 12, ptr noundef nonnull @nk_filter_decimal)
  %207 = and i32 %206, 16
  %.not241 = icmp eq i32 %207, 0
  br i1 %.not241, label %210, label %.thread

.thread:                                          ; preds = %205
  %208 = call i32 @atoi(ptr nocapture noundef %19) #13
  %209 = call i32 @llvm.abs.i32(i32 %208, i1 true)
  br label %215

210:                                              ; preds = %205
  %211 = and i32 %206, 8
  %.not242 = icmp eq i32 %211, 0
  br i1 %.not242, label %214, label %212

212:                                              ; preds = %210
  %213 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %19, ptr noundef nonnull dereferenceable(1) @.str.141, i32 noundef %.0193) #11
  br label %214

214:                                              ; preds = %210, %212
  br i1 %.1188.shrunk, label %215, label %219

215:                                              ; preds = %.thread, %214
  %.1194270 = phi i32 [ %209, %.thread ], [ %.0193, %214 ]
  %216 = load i32, ptr %11, align 4, !tbaa !5
  %.not243 = icmp eq i32 %216, 0
  br i1 %.not243, label %218, label %217

217:                                              ; preds = %215
  call void @glfwSetWindowAspectRatio(ptr noundef %49, i32 noundef %.1191, i32 noundef %.1194270) #11
  br label %219

218:                                              ; preds = %215
  call void @glfwSetWindowAspectRatio(ptr noundef %49, i32 noundef -1, i32 noundef -1) #11
  br label %219

219:                                              ; preds = %217, %218, %214
  %.1194271 = phi i32 [ %.1194270, %217 ], [ %.1194270, %218 ], [ %.0193, %214 ]
  %220 = call i32 @nk_checkbox_label(ptr noundef %69, ptr noundef nonnull @.str.157, ptr noundef nonnull %12)
  %.not244 = icmp ne i32 %220, 0
  %221 = call i32 @nk_edit_string_zero_terminated(ptr noundef %69, i32 noundef 2660, ptr noundef nonnull %20, i32 noundef 12, ptr noundef nonnull @nk_filter_decimal)
  %222 = and i32 %221, 16
  %.not245 = icmp eq i32 %222, 0
  br i1 %.not245, label %226, label %223

223:                                              ; preds = %219
  %224 = call i32 @atoi(ptr nocapture noundef %20) #13
  %225 = call i32 @llvm.abs.i32(i32 %224, i1 true)
  br label %230

226:                                              ; preds = %219
  %227 = and i32 %221, 8
  %.not246 = icmp eq i32 %227, 0
  br i1 %.not246, label %230, label %228

228:                                              ; preds = %226
  %229 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %20, ptr noundef nonnull dereferenceable(1) @.str.141, i32 noundef %.0196) #11
  br label %230

230:                                              ; preds = %226, %228, %223
  %.1197 = phi i32 [ %225, %223 ], [ %.0196, %228 ], [ %.0196, %226 ]
  %.1.shrunk = phi i1 [ true, %223 ], [ %.not244, %228 ], [ %.not244, %226 ]
  %231 = call i32 @nk_edit_string_zero_terminated(ptr noundef %69, i32 noundef 2660, ptr noundef nonnull %21, i32 noundef 12, ptr noundef nonnull @nk_filter_decimal)
  %232 = and i32 %231, 16
  %.not247 = icmp eq i32 %232, 0
  br i1 %.not247, label %236, label %233

233:                                              ; preds = %230
  %234 = call i32 @atoi(ptr nocapture noundef %21) #13
  %235 = call i32 @llvm.abs.i32(i32 %234, i1 true)
  br label %240

236:                                              ; preds = %230
  %237 = and i32 %231, 8
  %.not248 = icmp eq i32 %237, 0
  br i1 %.not248, label %240, label %238

238:                                              ; preds = %236
  %239 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %21, ptr noundef nonnull dereferenceable(1) @.str.141, i32 noundef %.0199) #11
  br label %240

240:                                              ; preds = %236, %238, %233
  %.1200 = phi i32 [ %235, %233 ], [ %.0199, %238 ], [ %.0199, %236 ]
  %.2.shrunk = phi i1 [ true, %233 ], [ %.1.shrunk, %238 ], [ %.1.shrunk, %236 ]
  %241 = call i32 @nk_checkbox_label(ptr noundef %69, ptr noundef nonnull @.str.158, ptr noundef nonnull %13)
  %.not249 = icmp ne i32 %241, 0
  %narrow = select i1 %.not249, i1 true, i1 %.2.shrunk
  %242 = call i32 @nk_edit_string_zero_terminated(ptr noundef %69, i32 noundef 2660, ptr noundef nonnull %22, i32 noundef 12, ptr noundef nonnull @nk_filter_decimal)
  %243 = and i32 %242, 16
  %.not250 = icmp eq i32 %243, 0
  br i1 %.not250, label %247, label %244

244:                                              ; preds = %240
  %245 = call i32 @atoi(ptr nocapture noundef %22) #13
  %246 = call i32 @llvm.abs.i32(i32 %245, i1 true)
  br label %251

247:                                              ; preds = %240
  %248 = and i32 %242, 8
  %.not251 = icmp eq i32 %248, 0
  br i1 %.not251, label %251, label %249

249:                                              ; preds = %247
  %250 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %22, ptr noundef nonnull dereferenceable(1) @.str.141, i32 noundef %.0202) #11
  br label %251

251:                                              ; preds = %247, %249, %244
  %.1203 = phi i32 [ %246, %244 ], [ %.0202, %249 ], [ %.0202, %247 ]
  %.4.shrunk = phi i1 [ true, %244 ], [ %narrow, %249 ], [ %narrow, %247 ]
  %252 = call i32 @nk_edit_string_zero_terminated(ptr noundef %69, i32 noundef 2660, ptr noundef nonnull %23, i32 noundef 12, ptr noundef nonnull @nk_filter_decimal)
  %253 = and i32 %252, 16
  %.not252 = icmp eq i32 %253, 0
  br i1 %.not252, label %256, label %.thread272

.thread272:                                       ; preds = %251
  %254 = call i32 @atoi(ptr nocapture noundef %23) #13
  %255 = call i32 @llvm.abs.i32(i32 %254, i1 true)
  br label %261

256:                                              ; preds = %251
  %257 = and i32 %252, 8
  %.not253 = icmp eq i32 %257, 0
  br i1 %.not253, label %260, label %258

258:                                              ; preds = %256
  %259 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %23, ptr noundef nonnull dereferenceable(1) @.str.141, i32 noundef %.0205) #11
  br label %260

260:                                              ; preds = %256, %258
  br i1 %.4.shrunk, label %261, label %268

261:                                              ; preds = %.thread272, %260
  %.1206275 = phi i32 [ %255, %.thread272 ], [ %.0205, %260 ]
  %262 = load i32, ptr %12, align 4, !tbaa !5
  %.not254 = icmp eq i32 %262, 0
  %263 = select i1 %.not254, i32 -1, i32 %.1197
  %264 = select i1 %.not254, i32 -1, i32 %.1200
  %265 = load i32, ptr %13, align 4, !tbaa !5
  %.not255 = icmp eq i32 %265, 0
  %266 = select i1 %.not255, i32 -1, i32 %.1203
  %267 = select i1 %.not255, i32 -1, i32 %.1206275
  call void @glfwSetWindowSizeLimits(ptr noundef %49, i32 noundef %263, i32 noundef %264, i32 noundef %266, i32 noundef %267) #11
  br label %268

268:                                              ; preds = %261, %260
  %.1206276 = phi i32 [ %.1206275, %261 ], [ %.0205, %260 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %31) #11
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %32) #11
  call void @glfwGetFramebufferSize(ptr noundef %49, ptr noundef nonnull %31, ptr noundef nonnull %32) #11
  call void @nk_label(ptr noundef %69, ptr noundef nonnull @.str.159, i32 noundef 17)
  %269 = load i32, ptr %31, align 4, !tbaa !5
  call void (ptr, i32, ptr, ...) @nk_labelf(ptr noundef %69, i32 noundef 17, ptr noundef nonnull @.str.141, i32 noundef %269)
  %270 = load i32, ptr %32, align 4, !tbaa !5
  call void (ptr, i32, ptr, ...) @nk_labelf(ptr noundef %69, i32 noundef 17, ptr noundef nonnull @.str.141, i32 noundef %270)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %33) #11
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %34) #11
  call void @glfwGetWindowContentScale(ptr noundef %49, ptr noundef nonnull %33, ptr noundef nonnull %34) #11
  call void @nk_label(ptr noundef %69, ptr noundef nonnull @.str.160, i32 noundef 17)
  %271 = load float, ptr %33, align 4, !tbaa !16
  %272 = fpext float %271 to double
  call void (ptr, i32, ptr, ...) @nk_labelf(ptr noundef %69, i32 noundef 17, ptr noundef nonnull @.str.161, double noundef %272)
  %273 = load float, ptr %34, align 4, !tbaa !16
  %274 = fpext float %273 to double
  call void (ptr, i32, ptr, ...) @nk_labelf(ptr noundef %69, i32 noundef 17, ptr noundef nonnull @.str.161, double noundef %274)
  call void @nk_layout_row_begin(ptr noundef %69, i32 noundef 0, float noundef 3.000000e+01, i32 noundef 5)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %35) #11
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %36) #11
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %37) #11
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %38) #11
  call void @glfwGetWindowFrameSize(ptr noundef %49, ptr noundef nonnull %35, ptr noundef nonnull %36, ptr noundef nonnull %37, ptr noundef nonnull %38) #11
  call void @nk_layout_row_push(ptr noundef %69, float noundef 0x3FD5555560000000)
  call void @nk_label(ptr noundef %69, ptr noundef nonnull @.str.162, i32 noundef 17)
  call void @nk_layout_row_push(ptr noundef %69, float noundef 0x3FC5555560000000)
  %275 = load i32, ptr %35, align 4, !tbaa !5
  call void (ptr, i32, ptr, ...) @nk_labelf(ptr noundef %69, i32 noundef 17, ptr noundef nonnull @.str.141, i32 noundef %275)
  call void @nk_layout_row_push(ptr noundef %69, float noundef 0x3FC5555560000000)
  %276 = load i32, ptr %36, align 4, !tbaa !5
  call void (ptr, i32, ptr, ...) @nk_labelf(ptr noundef %69, i32 noundef 17, ptr noundef nonnull @.str.141, i32 noundef %276)
  call void @nk_layout_row_push(ptr noundef %69, float noundef 0x3FC5555560000000)
  %277 = load i32, ptr %37, align 4, !tbaa !5
  call void (ptr, i32, ptr, ...) @nk_labelf(ptr noundef %69, i32 noundef 17, ptr noundef nonnull @.str.141, i32 noundef %277)
  call void @nk_layout_row_push(ptr noundef %69, float noundef 0x3FC5555560000000)
  %278 = load i32, ptr %38, align 4, !tbaa !5
  call void (ptr, i32, ptr, ...) @nk_labelf(ptr noundef %69, i32 noundef 17, ptr noundef nonnull @.str.141, i32 noundef %278)
  call void @nk_layout_row_end(ptr noundef %69)
  call void @nk_layout_row_begin(ptr noundef %69, i32 noundef 0, float noundef 3.000000e+01, i32 noundef 2)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %39) #11
  %279 = call float @glfwGetWindowOpacity(ptr noundef %49) #11
  store float %279, ptr %39, align 4, !tbaa !16
  call void @nk_layout_row_push(ptr noundef %69, float noundef 0x3FD5555560000000)
  %280 = load float, ptr %39, align 4, !tbaa !16
  %281 = fpext float %280 to double
  call void (ptr, i32, ptr, ...) @nk_labelf(ptr noundef %69, i32 noundef 17, ptr noundef nonnull @.str.163, double noundef %281)
  call void @nk_layout_row_push(ptr noundef %69, float noundef 0x3FE5555560000000)
  %282 = call i32 @nk_slider_float(ptr noundef %69, float noundef 0.000000e+00, ptr noundef nonnull %39, float noundef 1.000000e+00, float noundef 0x3F50624DE0000000)
  %.not256 = icmp eq i32 %282, 0
  br i1 %.not256, label %285, label %283

283:                                              ; preds = %268
  %284 = load float, ptr %39, align 4, !tbaa !16
  call void @glfwSetWindowOpacity(ptr noundef %49, float noundef %284) #11
  br label %285

285:                                              ; preds = %283, %268
  call void @nk_layout_row_end(ptr noundef %69)
  call void @nk_layout_row_begin(ptr noundef %69, i32 noundef 0, float noundef 3.000000e+01, i32 noundef 2)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %40) #11
  %286 = call i32 @glfwWindowShouldClose(ptr noundef %49) #11
  store i32 %286, ptr %40, align 4, !tbaa !5
  call void @nk_layout_row_push(ptr noundef %69, float noundef 0x3FD5555560000000)
  %287 = call i32 @nk_checkbox_label(ptr noundef %69, ptr noundef nonnull @.str.164, ptr noundef nonnull %40)
  %.not257 = icmp eq i32 %287, 0
  br i1 %.not257, label %290, label %288

288:                                              ; preds = %285
  %289 = load i32, ptr %40, align 4, !tbaa !5
  call void @glfwSetWindowShouldClose(ptr noundef %49, i32 noundef %289) #11
  br label %290

290:                                              ; preds = %288, %285
  call void @nk_layout_row_push(ptr noundef %69, float noundef 0x3FE5555560000000)
  %291 = call i32 @nk_checkbox_label(ptr noundef %69, ptr noundef nonnull @.str.165, ptr noundef nonnull %24)
  call void @nk_layout_row_end(ptr noundef %69)
  call void @nk_layout_row_dynamic(ptr noundef %69, float noundef 3.000000e+01, i32 noundef 1)
  call void @nk_label(ptr noundef %69, ptr noundef nonnull @.str.166, i32 noundef 18)
  %292 = load i32, ptr %27, align 4, !tbaa !5
  %293 = icmp sgt i32 %292, 200
  %294 = udiv i32 %292, 200
  %295 = select i1 %293, i32 %294, i32 1
  call void @nk_layout_row_dynamic(ptr noundef %69, float noundef 3.000000e+01, i32 noundef %295)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %41) #11
  %296 = call i32 @glfwGetWindowAttrib(ptr noundef %49, i32 noundef 131077) #11
  store i32 %296, ptr %41, align 4, !tbaa !5
  %297 = call i32 @nk_checkbox_label(ptr noundef %69, ptr noundef nonnull @.str.167, ptr noundef nonnull %41)
  %.not258 = icmp eq i32 %297, 0
  br i1 %.not258, label %300, label %298

298:                                              ; preds = %290
  %299 = load i32, ptr %41, align 4, !tbaa !5
  call void @glfwSetWindowAttrib(ptr noundef %49, i32 noundef 131077, i32 noundef %299) #11
  br label %300

300:                                              ; preds = %298, %290
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %42) #11
  %301 = call i32 @glfwGetWindowAttrib(ptr noundef %49, i32 noundef 131075) #11
  store i32 %301, ptr %42, align 4, !tbaa !5
  %302 = call i32 @nk_checkbox_label(ptr noundef %69, ptr noundef nonnull @.str.168, ptr noundef nonnull %42)
  %.not259 = icmp eq i32 %302, 0
  br i1 %.not259, label %305, label %303

303:                                              ; preds = %300
  %304 = load i32, ptr %42, align 4, !tbaa !5
  call void @glfwSetWindowAttrib(ptr noundef %49, i32 noundef 131075, i32 noundef %304) #11
  br label %305

305:                                              ; preds = %303, %300
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %43) #11
  %306 = call i32 @glfwGetWindowAttrib(ptr noundef %49, i32 noundef 131079) #11
  store i32 %306, ptr %43, align 4, !tbaa !5
  %307 = call i32 @nk_checkbox_label(ptr noundef %69, ptr noundef nonnull @.str.169, ptr noundef nonnull %43)
  %.not260 = icmp eq i32 %307, 0
  br i1 %.not260, label %310, label %308

308:                                              ; preds = %305
  %309 = load i32, ptr %43, align 4, !tbaa !5
  call void @glfwSetWindowAttrib(ptr noundef %49, i32 noundef 131079, i32 noundef %309) #11
  br label %310

310:                                              ; preds = %308, %305
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %44) #11
  %311 = call i32 @glfwGetWindowAttrib(ptr noundef %49, i32 noundef 131085) #11
  store i32 %311, ptr %44, align 4, !tbaa !5
  %312 = call i32 @nk_checkbox_label(ptr noundef %69, ptr noundef nonnull @.str.170, ptr noundef nonnull %44)
  %.not261 = icmp eq i32 %312, 0
  br i1 %.not261, label %315, label %313

313:                                              ; preds = %310
  %314 = load i32, ptr %44, align 4, !tbaa !5
  call void @glfwSetWindowAttrib(ptr noundef %49, i32 noundef 131085, i32 noundef %314) #11
  br label %315

315:                                              ; preds = %313, %310
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %45) #11
  %316 = call i32 @glfwGetWindowAttrib(ptr noundef %49, i32 noundef 131078) #11
  store i32 %316, ptr %45, align 4, !tbaa !5
  %317 = call i32 @nk_checkbox_label(ptr noundef %69, ptr noundef nonnull @.str.171, ptr noundef nonnull %45)
  %.not262 = icmp eq i32 %317, 0
  br i1 %.not262, label %320, label %318

318:                                              ; preds = %315
  %319 = load i32, ptr %45, align 4, !tbaa !5
  call void @glfwSetWindowAttrib(ptr noundef %49, i32 noundef 131078, i32 noundef %319) #11
  br label %320

320:                                              ; preds = %318, %315
  %321 = call i32 @glfwGetWindowAttrib(ptr noundef %49, i32 noundef 131073) #11
  call void @nk_value_bool(ptr noundef %69, ptr noundef nonnull @.str.172, i32 noundef %321)
  %322 = call i32 @glfwGetWindowAttrib(ptr noundef %49, i32 noundef 131083) #11
  call void @nk_value_bool(ptr noundef %69, ptr noundef nonnull @.str.173, i32 noundef %322)
  %323 = call i32 @glfwGetWindowAttrib(ptr noundef %49, i32 noundef 131076) #11
  call void @nk_value_bool(ptr noundef %69, ptr noundef nonnull @.str.174, i32 noundef %323)
  %324 = call i32 @glfwGetWindowAttrib(ptr noundef %49, i32 noundef 131074) #11
  call void @nk_value_bool(ptr noundef %69, ptr noundef nonnull @.str.175, i32 noundef %324)
  %325 = call i32 @glfwGetWindowAttrib(ptr noundef %49, i32 noundef 131080) #11
  call void @nk_value_bool(ptr noundef %69, ptr noundef nonnull @.str.176, i32 noundef %325)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %45) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %44) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %43) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %42) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %41) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %40) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %39) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %38) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %37) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %36) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %35) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %34) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %33) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %32) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %31) #11
  br label %326

326:                                              ; preds = %320, %.critedge
  %.2207 = phi i32 [ %.1206276, %320 ], [ %.0205, %.critedge ]
  %.2204 = phi i32 [ %.1203, %320 ], [ %.0202, %.critedge ]
  %.2201 = phi i32 [ %.1200, %320 ], [ %.0199, %.critedge ]
  %.2198 = phi i32 [ %.1197, %320 ], [ %.0196, %.critedge ]
  %.2195 = phi i32 [ %.1194271, %320 ], [ %.0193, %.critedge ]
  %.2192 = phi i32 [ %.1191, %320 ], [ %.0190, %.critedge ]
  call void @nk_end(ptr noundef %69)
  %327 = load ptr, ptr @glad_glClear, align 8, !tbaa !18
  call void %327(i32 noundef 16384) #11
  call void @nk_glfw3_render(i32 noundef 1)
  call void @glfwSwapBuffers(ptr noundef %49) #11
  call void @glfwWaitEvents() #11
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %28) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %27) #11
  br label %72, !llvm.loop !20

328:                                              ; preds = %74
  call void @nk_glfw3_shutdown()
  call void @glfwTerminate() #11
  call void @exit(i32 noundef 0) #12
  unreachable
}

declare i32 @glfwInit() local_unnamed_addr #4

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

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

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

declare void @glfwTerminate() local_unnamed_addr #4

declare void @glfwMakeContextCurrent(ptr noundef) local_unnamed_addr #4

declare ptr @glfwGetProcAddress(ptr noundef) #4

declare void @glfwSwapInterval(i32 noundef) local_unnamed_addr #4

declare i32 @glfwGetError(ptr noundef) local_unnamed_addr #4

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

; Function Attrs: nofree nounwind
declare noundef i32 @sprintf(ptr noalias nocapture noundef writeonly, ptr nocapture noundef readonly, ...) local_unnamed_addr #7

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: readwrite)
declare ptr @strncpy(ptr noalias noundef returned writeonly, ptr noalias nocapture noundef readonly, i64 noundef) local_unnamed_addr #8

declare ptr @glfwGetWindowTitle(ptr noundef) local_unnamed_addr #4

declare i32 @glfwWindowShouldClose(ptr noundef) local_unnamed_addr #4

declare ptr @glfwGetWindowMonitor(ptr noundef) local_unnamed_addr #4

declare void @glfwSetWindowMonitor(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #4

declare ptr @glfwGetPrimaryMonitor() local_unnamed_addr #4

declare ptr @glfwGetVideoMode(ptr noundef) local_unnamed_addr #4

declare void @glfwMaximizeWindow(ptr noundef) local_unnamed_addr #4

declare void @glfwIconifyWindow(ptr noundef) local_unnamed_addr #4

declare void @glfwRestoreWindow(ptr noundef) local_unnamed_addr #4

declare void @glfwHideWindow(ptr noundef) local_unnamed_addr #4

declare void @glfwWaitEventsTimeout(double noundef) local_unnamed_addr #4

declare void @glfwShowWindow(ptr noundef) local_unnamed_addr #4

declare void @glfwRequestWindowAttention(ptr noundef) local_unnamed_addr #4

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

declare void @glfwSetWindowAttrib(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #4

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

; Function Attrs: inlinehint mustprogress nofree nounwind willreturn memory(read) uwtable
declare i32 @atoi(ptr nocapture noundef nonnull) local_unnamed_addr #9

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

declare void @glfwSetWindowSize(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #4

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.abs.i32(i32, i1 immarg) #10

declare void @glfwSetWindowAspectRatio(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #4

declare void @glfwSetWindowSizeLimits(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #4

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

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

declare float @glfwGetWindowOpacity(ptr noundef) local_unnamed_addr #4

declare void @glfwSetWindowOpacity(ptr noundef, float noundef) local_unnamed_addr #4

declare void @glfwSetWindowShouldClose(ptr noundef, i32 noundef) local_unnamed_addr #4

declare void @glfwSwapBuffers(ptr noundef) local_unnamed_addr #4

declare void @glfwWaitEvents() local_unnamed_addr #4

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { nounwind uwtable "min-legal-vector-width"="64" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { noreturn nounwind uwtable "min-legal-vector-width"="64" "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 = { 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 #7 = { 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 #8 = { mustprogress nofree nounwind willreturn memory(argmem: readwrite) "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 #9 = { inlinehint mustprogress nofree nounwind willreturn memory(read) 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 #10 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #11 = { nounwind }
attributes #12 = { noreturn nounwind }
attributes #13 = { nounwind willreturn memory(read) }

!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, !6, i64 0}
!10 = !{!"GLFWvidmode", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !6, i64 16, !6, i64 20}
!11 = !{!10, !6, i64 4}
!12 = !{!10, !6, i64 20}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = !{!17, !17, i64 0}
!17 = !{!"float", !7, i64 0}
!18 = !{!19, !19, i64 0}
!19 = !{!"any pointer", !7, i64 0}
!20 = distinct !{!20, !14}


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