; LLVM IR from unitreerobotics/kinect_teleoperate :: src/extern/glfw/src/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 void @glfwSetInputMode(ptr noundef, i32 noundef, i32 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 @glfwSetInputMode(ptr noundef %76, i32 noundef 208902, i32 noundef 1)
  %77 = load ptr, ptr %35, align 8, !tbaa !9
  call void @glfwMakeContextCurrent(ptr noundef %77)
  %78 = 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
  %79 = call i32 @glfwGetError(ptr noundef null)
  %80 = load ptr, ptr %35, align 8, !tbaa !9
  call void @glfwGetWindowPos(ptr noundef %80, ptr noundef %10, ptr noundef %11)
  %81 = getelementptr inbounds [12 x i8], ptr %25, i64 0, i64 0
  %82 = load i32, ptr %10, align 4, !tbaa !5
  %83 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %81, ptr noundef @.str.141, i32 noundef %82) #9
  %84 = getelementptr inbounds [12 x i8], ptr %26, i64 0, i64 0
  %85 = load i32, ptr %11, align 4, !tbaa !5
  %86 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %84, ptr noundef @.str.141, i32 noundef %85) #9
  %87 = call i32 @glfwGetError(ptr noundef null)
  %88 = icmp eq i32 %87, 65548
  br i1 %88, label %89, label %90

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

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

122:                                              ; preds = %705, %90
  %123 = load i32, ptr %33, align 4, !tbaa !5
  %124 = icmp ne i32 %123, 0
  br i1 %124, label %125, label %129

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

129:                                              ; preds = %125, %122
  %130 = phi i1 [ false, %122 ], [ %128, %125 ]
  %131 = xor i1 %130, true
  br i1 %131, label %132, label %709

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

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

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

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

170:                                              ; preds = %164, %160
  br label %193

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

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

192:                                              ; preds = %175, %171
  br label %193

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

254:                                              ; preds = %252, %247
  br label %255

255:                                              ; preds = %254, %242
  %256 = load ptr, ptr %37, align 8, !tbaa !9
  call void @nk_label(ptr noundef %256, 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
  %257 = load ptr, ptr %37, align 8, !tbaa !9
  call void @nk_layout_row_begin(ptr noundef %257, i32 noundef 0, float noundef 3.000000e+01, i32 noundef 2)
  %258 = load ptr, ptr %37, align 8, !tbaa !9
  call void @nk_layout_row_push(ptr noundef %258, float noundef 0x3FD5555560000000)
  %259 = load ptr, ptr %37, align 8, !tbaa !9
  call void @nk_label(ptr noundef %259, ptr noundef @.str.152, i32 noundef 17)
  %260 = load ptr, ptr %37, align 8, !tbaa !9
  call void @nk_layout_row_push(ptr noundef %260, float noundef 0x3FE5555560000000)
  %261 = load ptr, ptr %37, align 8, !tbaa !9
  %262 = getelementptr inbounds [64 x i8], ptr %34, i64 0, i64 0
  %263 = call i32 @nk_edit_string_zero_terminated(ptr noundef %261, i32 noundef 2660, ptr noundef %262, i32 noundef 64, ptr noundef null)
  store i32 %263, ptr %46, align 4, !tbaa !5
  %264 = load i32, ptr %46, align 4, !tbaa !5
  %265 = and i32 %264, 16
  %266 = icmp ne i32 %265, 0
  br i1 %266, label %267, label %270

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

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

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

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

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

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

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

302:                                              ; preds = %298, %294
  br label %303

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

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

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

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

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

328:                                              ; preds = %324, %320
  br label %329

329:                                              ; preds = %328, %310
  %330 = load i32, ptr %48, align 4, !tbaa !5
  store i32 %330, ptr %10, align 4, !tbaa !5
  %331 = load i32, ptr %49, align 4, !tbaa !5
  store i32 %331, 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 %334

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

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

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

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

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

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

361:                                              ; preds = %357, %353
  br label %362

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

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

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

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

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

387:                                              ; preds = %383, %379
  br label %388

388:                                              ; preds = %387, %369
  %389 = load i32, ptr %39, align 4, !tbaa !5
  store i32 %389, ptr %12, align 4, !tbaa !5
  %390 = load i32, ptr %40, align 4, !tbaa !5
  store i32 %390, 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
  %391 = load ptr, ptr %37, align 8, !tbaa !9
  %392 = call i32 @nk_checkbox_label(ptr noundef %391, ptr noundef @.str.156, ptr noundef %14)
  %393 = icmp ne i32 %392, 0
  br i1 %393, label %394, label %395

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

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

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

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

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

414:                                              ; preds = %410, %406
  br label %415

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

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

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

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

434:                                              ; preds = %430, %426
  br label %435

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

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

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

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

447:                                              ; preds = %445, %441
  br label %448

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

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

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

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

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

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

472:                                              ; preds = %468, %464
  br label %473

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

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

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

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

492:                                              ; preds = %488, %484
  br label %493

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

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

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

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

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

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

517:                                              ; preds = %513, %509
  br label %518

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

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

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

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

537:                                              ; preds = %533, %529
  br label %538

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

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

545:                                              ; preds = %541
  %546 = load i32, ptr %18, align 4, !tbaa !5
  br label %548

547:                                              ; preds = %541
  br label %548

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

552:                                              ; preds = %548
  %553 = load i32, ptr %19, align 4, !tbaa !5
  br label %555

554:                                              ; preds = %548
  br label %555

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

559:                                              ; preds = %555
  %560 = load i32, ptr %21, align 4, !tbaa !5
  br label %562

561:                                              ; preds = %555
  br label %562

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

566:                                              ; preds = %562
  %567 = load i32, ptr %22, align 4, !tbaa !5
  br label %569

568:                                              ; preds = %562
  br label %569

569:                                              ; preds = %568, %566
  %570 = phi i32 [ %567, %566 ], [ -1, %568 ]
  call void @glfwSetWindowSizeLimits(ptr noundef %542, i32 noundef %549, i32 noundef %556, i32 noundef %563, i32 noundef %570)
  br label %571

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

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

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

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

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

639:                                              ; preds = %629
  %640 = load i32, ptr %39, align 4, !tbaa !5
  %641 = sdiv i32 %640, 200
  br label %643

642:                                              ; preds = %629
  br label %643

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

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

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

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

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

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

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

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

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

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

689:                                              ; preds = %686, %680
  %690 = load ptr, ptr %37, align 8, !tbaa !9
  %691 = load ptr, ptr %35, align 8, !tbaa !9
  %692 = call i32 @glfwGetWindowAttrib(ptr noundef %691, i32 noundef 131073)
  call void @nk_value_bool(ptr noundef %690, ptr noundef @.str.172, i32 noundef %692)
  %693 = load ptr, ptr %37, align 8, !tbaa !9
  %694 = load ptr, ptr %35, align 8, !tbaa !9
  %695 = call i32 @glfwGetWindowAttrib(ptr noundef %694, i32 noundef 131083)
  call void @nk_value_bool(ptr noundef %693, ptr noundef @.str.173, i32 noundef %695)
  %696 = load ptr, ptr %37, align 8, !tbaa !9
  %697 = load ptr, ptr %35, align 8, !tbaa !9
  %698 = call i32 @glfwGetWindowAttrib(ptr noundef %697, i32 noundef 131076)
  call void @nk_value_bool(ptr noundef %696, ptr noundef @.str.174, i32 noundef %698)
  %699 = load ptr, ptr %37, align 8, !tbaa !9
  %700 = load ptr, ptr %35, align 8, !tbaa !9
  %701 = call i32 @glfwGetWindowAttrib(ptr noundef %700, i32 noundef 131074)
  call void @nk_value_bool(ptr noundef %699, ptr noundef @.str.175, i32 noundef %701)
  %702 = load ptr, ptr %37, align 8, !tbaa !9
  %703 = load ptr, ptr %35, align 8, !tbaa !9
  %704 = call i32 @glfwGetWindowAttrib(ptr noundef %703, i32 noundef 131080)
  call void @nk_value_bool(ptr noundef %702, ptr noundef @.str.176, i32 noundef %704)
  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 %705

705:                                              ; preds = %689, %132
  %706 = load ptr, ptr %37, align 8, !tbaa !9
  call void @nk_end(ptr noundef %706)
  %707 = load ptr, ptr @glad_glClear, align 8, !tbaa !9
  call void %707(i32 noundef 16384)
  call void @nk_glfw3_render(i32 noundef 1)
  %708 = load ptr, ptr %35, align 8, !tbaa !9
  call void @glfwSwapBuffers(ptr noundef %708)
  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 %122, !llvm.loop !26

709:                                              ; preds = %129
  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 void @glfwSetInputMode(ptr noundef, i32 noundef, i32 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
  %.not212 = icmp eq ptr %49, null
  br i1 %.not212, 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 @glfwSetInputMode(ptr noundef nonnull %49, i32 noundef 208902, i32 noundef 1) #11
  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
  %.not226 = 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
  %.0206 = phi i32 [ 400, %51 ], [ %.2208, %326 ]
  %.0203 = phi i32 [ 400, %51 ], [ %.2205, %326 ]
  %.0200 = phi i32 [ 400, %51 ], [ %.2202, %326 ]
  %.0197 = phi i32 [ 400, %51 ], [ %.2199, %326 ]
  %.0194 = phi i32 [ 1, %51 ], [ %.2196, %326 ]
  %.0191 = phi i32 [ 1, %51 ], [ %.2193, %326 ]
  %73 = load i32, ptr %24, align 4, !tbaa !5
  %.not213 = icmp eq i32 %73, 0
  br i1 %.not213, label %.critedge, label %74

74:                                               ; preds = %72
  %75 = call i32 @glfwWindowShouldClose(ptr noundef %49) #11
  %.not278 = icmp eq i32 %75, 0
  br i1 %.not278, 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)
  %.not214 = icmp eq i32 %83, 0
  br i1 %.not214, 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
  %.not215 = icmp eq ptr %85, null
  br i1 %.not215, label %93, label %86

86:                                               ; preds = %84
  %87 = call i32 @nk_button_label(ptr noundef %69, ptr noundef nonnull @.str.143)
  %.not217 = icmp eq i32 %87, 0
  br i1 %.not217, 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)
  %.not216 = icmp eq i32 %94, 0
  br i1 %.not216, 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)
  %.not218 = icmp eq i32 %104, 0
  br i1 %.not218, 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)
  %.not219 = icmp eq i32 %107, 0
  br i1 %.not219, 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)
  %.not220 = icmp eq i32 %110, 0
  br i1 %.not220, 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)
  %.not221 = icmp eq i32 %113, 0
  br i1 %.not221, 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)
  %.not222 = icmp eq i32 %122, 0
  br i1 %.not222, 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.ph280, label %._crit_edge281

.lr.ph280:                                        ; preds = %123, %.lr.ph280
  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.ph280, label %._crit_edge281, !llvm.loop !15

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

130:                                              ; preds = %._crit_edge281, %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
  %.not223 = icmp eq i32 %131, 0
  br i1 %.not223, 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
  %.not224 = icmp eq i32 %133, 0
  br i1 %.not224, 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
  %.not225 = icmp eq i32 %137, 0
  br i1 %.not225, 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 %.not226, 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
  %.not227 = icmp eq i32 %142, 0
  br i1 %.not227, 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
  %.not228 = icmp eq i32 %147, %148
  %149 = and i32 %141, 8
  %.not229 = icmp eq i32 %149, 0
  %or.cond = and i1 %.not229, %.not228
  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
  %.not230 = icmp eq i32 %154, 0
  br i1 %.not230, 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
  %.not231 = icmp eq i32 %159, %160
  %161 = and i32 %153, 8
  %.not232 = icmp eq i32 %161, 0
  %or.cond264 = and i1 %.not232, %.not231
  br i1 %or.cond264, 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
  %.not233 = icmp eq i32 %170, 0
  br i1 %.not233, 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
  %.not234 = icmp eq i32 %175, %176
  %177 = and i32 %169, 8
  %.not235 = icmp eq i32 %177, 0
  %or.cond265 = and i1 %.not235, %.not234
  br i1 %or.cond265, 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
  %.not236 = icmp eq i32 %182, 0
  br i1 %.not236, 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
  %.not237 = icmp eq i32 %187, %188
  %189 = and i32 %181, 8
  %.not238 = icmp eq i32 %189, 0
  %or.cond266 = and i1 %.not238, %.not237
  br i1 %or.cond266, 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)
  %.not239 = 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
  %.not240 = icmp eq i32 %197, 0
  br i1 %.not240, 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
  %.not241 = icmp eq i32 %202, 0
  br i1 %.not241, 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 %.0191) #11
  br label %205

205:                                              ; preds = %201, %203, %198
  %.1192 = phi i32 [ %200, %198 ], [ %.0191, %203 ], [ %.0191, %201 ]
  %.1189.shrunk = phi i1 [ true, %198 ], [ %.not239, %203 ], [ %.not239, %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
  %.not242 = icmp eq i32 %207, 0
  br i1 %.not242, 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
  %.not243 = icmp eq i32 %211, 0
  br i1 %.not243, 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 %.0194) #11
  br label %214

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

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

217:                                              ; preds = %215
  call void @glfwSetWindowAspectRatio(ptr noundef %49, i32 noundef %.1192, i32 noundef %.1195271) #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
  %.1195272 = phi i32 [ %.1195271, %217 ], [ %.1195271, %218 ], [ %.0194, %214 ]
  %220 = call i32 @nk_checkbox_label(ptr noundef %69, ptr noundef nonnull @.str.157, ptr noundef nonnull %12)
  %.not245 = 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
  %.not246 = icmp eq i32 %222, 0
  br i1 %.not246, 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
  %.not247 = icmp eq i32 %227, 0
  br i1 %.not247, 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 %.0197) #11
  br label %230

230:                                              ; preds = %226, %228, %223
  %.1198 = phi i32 [ %225, %223 ], [ %.0197, %228 ], [ %.0197, %226 ]
  %.1.shrunk = phi i1 [ true, %223 ], [ %.not245, %228 ], [ %.not245, %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
  %.not248 = icmp eq i32 %232, 0
  br i1 %.not248, 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
  %.not249 = icmp eq i32 %237, 0
  br i1 %.not249, 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 %.0200) #11
  br label %240

240:                                              ; preds = %236, %238, %233
  %.1201 = phi i32 [ %235, %233 ], [ %.0200, %238 ], [ %.0200, %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)
  %.not250 = icmp ne i32 %241, 0
  %narrow = select i1 %.not250, 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
  %.not251 = icmp eq i32 %243, 0
  br i1 %.not251, 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
  %.not252 = icmp eq i32 %248, 0
  br i1 %.not252, 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 %.0203) #11
  br label %251

251:                                              ; preds = %247, %249, %244
  %.1204 = phi i32 [ %246, %244 ], [ %.0203, %249 ], [ %.0203, %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
  %.not253 = icmp eq i32 %253, 0
  br i1 %.not253, label %256, label %.thread273

.thread273:                                       ; 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
  %.not254 = icmp eq i32 %257, 0
  br i1 %.not254, 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 %.0206) #11
  br label %260

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

261:                                              ; preds = %.thread273, %260
  %.1207276 = phi i32 [ %255, %.thread273 ], [ %.0206, %260 ]
  %262 = load i32, ptr %12, align 4, !tbaa !5
  %.not255 = icmp eq i32 %262, 0
  %263 = select i1 %.not255, i32 -1, i32 %.1198
  %264 = select i1 %.not255, i32 -1, i32 %.1201
  %265 = load i32, ptr %13, align 4, !tbaa !5
  %.not256 = icmp eq i32 %265, 0
  %266 = select i1 %.not256, i32 -1, i32 %.1204
  %267 = select i1 %.not256, i32 -1, i32 %.1207276
  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
  %.1207277 = phi i32 [ %.1207276, %261 ], [ %.0206, %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)
  %.not257 = icmp eq i32 %282, 0
  br i1 %.not257, 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)
  %.not258 = icmp eq i32 %287, 0
  br i1 %.not258, 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)
  %.not259 = icmp eq i32 %297, 0
  br i1 %.not259, 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)
  %.not260 = icmp eq i32 %302, 0
  br i1 %.not260, 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)
  %.not261 = icmp eq i32 %307, 0
  br i1 %.not261, 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)
  %.not262 = icmp eq i32 %312, 0
  br i1 %.not262, 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)
  %.not263 = icmp eq i32 %317, 0
  br i1 %.not263, 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
  %.2208 = phi i32 [ %.1207277, %320 ], [ %.0206, %.critedge ]
  %.2205 = phi i32 [ %.1204, %320 ], [ %.0203, %.critedge ]
  %.2202 = phi i32 [ %.1201, %320 ], [ %.0200, %.critedge ]
  %.2199 = phi i32 [ %.1198, %320 ], [ %.0197, %.critedge ]
  %.2196 = phi i32 [ %.1195272, %320 ], [ %.0194, %.critedge ]
  %.2193 = phi i32 [ %.1192, %320 ], [ %.0191, %.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