; LLVM IR from mrbid/CSGO_TENSOR_TRIGGER :: GOBOT15/StandaloneFNN (aim1)

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

%union._XEvent = type { [24 x i64] }
%struct.XWindowAttributes = type { i32, i32, i32, i32, i32, i32, ptr, i64, i32, i32, i32, i32, i64, i64, i32, i64, i32, i32, i64, i64, i64, i32, ptr }
%struct.anon = type { ptr, ptr, i32, i32, i32, i32, ptr, i64, i64, i64, i32, ptr, i32, i32, i32, i32, i32, ptr, i32, i32, ptr, ptr, i32, i64, i64, ptr, ptr, ptr, ptr, i32, ptr, ptr, ptr, i32, i32, ptr, i64, i64, i32, i32, ptr, ptr, i32, ptr }
%struct.Screen = type { ptr, ptr, i64, i32, i32, i32, i32, i32, ptr, i32, ptr, ptr, i64, i64, i64, i32, i32, i32, i32, i64 }
%struct.XButtonEvent = type { i32, i64, i32, ptr, i64, i64, i64, i64, i32, i32, i32, i32, i32, i32, i32 }

@x = external dso_local global i32, align 4
@y = external dso_local global i32, align 4
@twin = external dso_local global i64, align 8
@gc = external dso_local global ptr, align 8
@pgmbytes = external dso_local global [784 x i8], align 16
@sps = external dso_local global i32, align 4
@enable = external dso_local global i32, align 4
@sample_capture = external dso_local global i32, align 4
@crosshair = external dso_local global i32, align 4
@hotkeys = external dso_local global i32, align 4
@d = external dso_local global ptr, align 8
@.str.28 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [24 x i8], align 1
@si = external dso_local global i32, align 4
@.str.32 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [4 x i8], align 1
@main.st = external hidden global i64, align 8
@.str.36 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.41 = external hidden unnamed_addr constant [5 x i8], align 1
@targets_dir = external dso_local global [256 x i8], align 16
@.str.42 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.43 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.44 = external hidden unnamed_addr constant [7 x i8], align 1
@main.scd = external hidden global i64, align 8
@.str.45 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.46 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.47 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.48 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.49 = external hidden unnamed_addr constant [11 x i8], align 1

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

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

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

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

; Function Attrs: nounwind uwtable
declare dso_local i64 @microtime() #1

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

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @key_is_pressed(i64 noundef) #1

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

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

declare i32 @sleep(i32 noundef) #4

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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #1 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca %union._XEvent, align 8
  %7 = alloca i32, align 4
  %8 = alloca %struct.XWindowAttributes, align 8
  %9 = alloca ptr, align 8
  %10 = alloca [32 x i8], align 16
  %11 = alloca float, align 4
  %12 = alloca i32, align 4
  %13 = alloca float, align 4
  %14 = alloca [32 x i8], align 16
  %15 = 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
  %16 = call i64 @time(ptr noundef null) #6
  %17 = trunc i64 %16 to i32
  call void @srand(i32 noundef %17) #6
  %18 = call i32 @remove(ptr noundef @.str.28) #6
  %19 = call i32 @remove(ptr noundef @.str.29) #6
  call void @reprint()
  %20 = call ptr @XOpenDisplay(ptr noundef @.str.30)
  store ptr %20, ptr @d, align 8, !tbaa !9
  %21 = load ptr, ptr @d, align 8, !tbaa !9
  %22 = icmp eq ptr %21, null
  br i1 %22, label %23, label %25

23:                                               ; preds = %2
  %24 = call i32 (ptr, ...) @printf(ptr noundef @.str.31)
  ret i32 0

25:                                               ; preds = %2
  %26 = load ptr, ptr @d, align 8, !tbaa !9
  %27 = call i32 @XDefaultScreen(ptr noundef %26)
  store i32 %27, ptr @si, align 4, !tbaa !5
  %28 = load ptr, ptr @d, align 8, !tbaa !9
  %29 = getelementptr inbounds %struct.anon, ptr %28, i32 0, i32 35
  %30 = load ptr, ptr %29, align 8, !tbaa !11
  %31 = load i32, ptr @si, align 4, !tbaa !5
  %32 = sext i32 %31 to i64
  %33 = getelementptr inbounds %struct.Screen, ptr %30, i64 %32
  %34 = getelementptr inbounds %struct.Screen, ptr %33, i32 0, i32 11
  %35 = load ptr, ptr %34, align 8, !tbaa !14
  store ptr %35, ptr @gc, align 8, !tbaa !9
  %36 = load ptr, ptr @d, align 8, !tbaa !9
  %37 = call i64 @findWindow(ptr noundef %36, i64 noundef 0, ptr noundef @.str.32)
  store i64 %37, ptr @twin, align 8, !tbaa !16
  %38 = load i64, ptr @twin, align 8, !tbaa !16
  %39 = icmp ne i64 %38, 0
  br i1 %39, label %40, label %41

40:                                               ; preds = %25
  call void @reprint()
  br label %41

41:                                               ; preds = %40, %25
  call void @llvm.lifetime.start.p0(i64 192, ptr %6) #6
  call void @llvm.memset.p0.i64(ptr align 8 %6, i8 0, i64 192, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  store i32 0, ptr %7, align 4, !tbaa !5
  br label %42

42:                                               ; preds = %376, %58, %41
  br label %43

43:                                               ; preds = %42
  %44 = call i32 @usleep(i32 noundef 1000)
  %45 = call i32 @key_is_pressed(i64 noundef 65507)
  %46 = icmp ne i32 %45, 0
  br i1 %46, label %47, label %81

47:                                               ; preds = %43
  %48 = call i32 @key_is_pressed(i64 noundef 65513)
  %49 = icmp ne i32 %48, 0
  br i1 %49, label %50, label %81

50:                                               ; preds = %47
  %51 = load i32, ptr @enable, align 4, !tbaa !5
  %52 = icmp eq i32 %51, 0
  br i1 %52, label %53, label %78

53:                                               ; preds = %50
  %54 = load ptr, ptr @d, align 8, !tbaa !9
  %55 = call i64 @findWindow(ptr noundef %54, i64 noundef 0, ptr noundef @.str.32)
  store i64 %55, ptr @twin, align 8, !tbaa !16
  %56 = load i64, ptr @twin, align 8, !tbaa !16
  %57 = icmp eq i64 %56, 0
  br i1 %57, label %58, label %61

58:                                               ; preds = %53
  %59 = call i32 (ptr, ...) @printf(ptr noundef @.str.33)
  %60 = call i32 @sleep(i32 noundef 1)
  br label %42

61:                                               ; preds = %53
  call void @llvm.lifetime.start.p0(i64 136, ptr %8) #6
  %62 = load ptr, ptr @d, align 8, !tbaa !9
  %63 = load i64, ptr @twin, align 8, !tbaa !16
  %64 = call i32 @XGetWindowAttributes(ptr noundef %62, i64 noundef %63, ptr noundef %8)
  %65 = getelementptr inbounds %struct.XWindowAttributes, ptr %8, i32 0, i32 2
  %66 = load i32, ptr %65, align 8, !tbaa !17
  %67 = sdiv i32 %66, 2
  store i32 %67, ptr @x, align 4, !tbaa !5
  %68 = getelementptr inbounds %struct.XWindowAttributes, ptr %8, i32 0, i32 3
  %69 = load i32, ptr %68, align 4, !tbaa !19
  %70 = sdiv i32 %69, 2
  store i32 %70, ptr @y, align 4, !tbaa !5
  call void @llvm.memset.p0.i64(ptr align 8 %6, i8 0, i64 192, i1 false)
  store i32 4, ptr %6, align 8, !tbaa !20
  %71 = getelementptr inbounds %struct.XButtonEvent, ptr %6, i32 0, i32 13
  store i32 1, ptr %71, align 4, !tbaa !20
  %72 = getelementptr inbounds %struct.XButtonEvent, ptr %6, i32 0, i32 14
  store i32 1, ptr %72, align 8, !tbaa !20
  %73 = load i64, ptr @twin, align 8, !tbaa !16
  %74 = getelementptr inbounds %struct.XButtonEvent, ptr %6, i32 0, i32 6
  store i64 %73, ptr %74, align 8, !tbaa !20
  %75 = load i64, ptr @twin, align 8, !tbaa !16
  %76 = getelementptr inbounds %struct.XButtonEvent, ptr %6, i32 0, i32 4
  store i64 %75, ptr %76, align 8, !tbaa !20
  store i32 1, ptr @enable, align 4, !tbaa !5
  %77 = call i32 @usleep(i32 noundef 100000)
  call void @reprint()
  call void @speakS(ptr noundef @.str.34)
  call void @llvm.lifetime.end.p0(i64 136, ptr %8) #6
  br label %80

78:                                               ; preds = %50
  store i32 0, ptr @enable, align 4, !tbaa !5
  %79 = call i32 @usleep(i32 noundef 100000)
  call void @reprint()
  call void @speakS(ptr noundef @.str.35)
  br label %80

80:                                               ; preds = %78, %61
  br label %81

81:                                               ; preds = %80, %47, %43
  %82 = load i32, ptr @enable, align 4, !tbaa !5
  %83 = icmp eq i32 %82, 1
  br i1 %83, label %84, label %376

84:                                               ; preds = %81
  %85 = call i64 @microtime()
  %86 = load i64, ptr @main.st, align 8, !tbaa !16
  %87 = sub i64 %85, %86
  %88 = icmp uge i64 %87, 1000000
  br i1 %88, label %89, label %97

89:                                               ; preds = %84
  %90 = call i32 @key_is_pressed(i64 noundef 72)
  %91 = icmp ne i32 %90, 0
  br i1 %91, label %92, label %95

92:                                               ; preds = %89
  %93 = load i32, ptr @sps, align 4, !tbaa !5
  %94 = call i32 (ptr, ...) @printf(ptr noundef @.str.36, i32 noundef %93)
  br label %95

95:                                               ; preds = %92, %89
  store i32 0, ptr @sps, align 4, !tbaa !5
  %96 = call i64 @microtime()
  store i64 %96, ptr @main.st, align 8, !tbaa !16
  br label %97

97:                                               ; preds = %95, %84
  %98 = call i32 @key_is_pressed(i64 noundef 65508)
  %99 = icmp ne i32 %98, 0
  br i1 %99, label %100, label %111

100:                                              ; preds = %97
  %101 = call i32 @key_is_pressed(i64 noundef 65514)
  %102 = icmp ne i32 %101, 0
  br i1 %102, label %103, label %111

103:                                              ; preds = %100
  %104 = load i32, ptr @hotkeys, align 4, !tbaa !5
  %105 = icmp eq i32 %104, 0
  br i1 %105, label %106, label %108

106:                                              ; preds = %103
  store i32 1, ptr @hotkeys, align 4, !tbaa !5
  %107 = call i32 @usleep(i32 noundef 100000)
  call void @reprint()
  call void @speakS(ptr noundef @.str.37)
  br label %110

108:                                              ; preds = %103
  store i32 0, ptr @hotkeys, align 4, !tbaa !5
  %109 = call i32 @usleep(i32 noundef 100000)
  call void @reprint()
  call void @speakS(ptr noundef @.str.38)
  br label %110

110:                                              ; preds = %108, %106
  br label %111

111:                                              ; preds = %110, %100, %97
  %112 = load i32, ptr @hotkeys, align 4, !tbaa !5
  %113 = icmp eq i32 %112, 1
  br i1 %113, label %114, label %160

114:                                              ; preds = %111
  %115 = call i32 @key_is_pressed(i64 noundef 80)
  %116 = icmp ne i32 %115, 0
  br i1 %116, label %117, label %125

117:                                              ; preds = %114
  %118 = load i32, ptr @crosshair, align 4, !tbaa !5
  %119 = icmp eq i32 %118, 0
  br i1 %119, label %120, label %122

120:                                              ; preds = %117
  store i32 1, ptr @crosshair, align 4, !tbaa !5
  %121 = call i32 @usleep(i32 noundef 100000)
  call void @reprint()
  call void @speakS(ptr noundef @.str.39)
  br label %124

122:                                              ; preds = %117
  store i32 0, ptr @crosshair, align 4, !tbaa !5
  %123 = call i32 @usleep(i32 noundef 100000)
  call void @reprint()
  call void @speakS(ptr noundef @.str.40)
  br label %124

124:                                              ; preds = %122, %120
  br label %125

125:                                              ; preds = %124, %114
  %126 = call i32 @key_is_pressed(i64 noundef 76)
  %127 = icmp ne i32 %126, 0
  br i1 %127, label %128, label %140

128:                                              ; preds = %125
  %129 = load i32, ptr @sample_capture, align 4, !tbaa !5
  %130 = icmp eq i32 %129, 0
  br i1 %130, label %131, label %137

131:                                              ; preds = %128
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  %132 = call ptr @getenv(ptr noundef @.str.41) #6
  store ptr %132, ptr %9, align 8, !tbaa !9
  %133 = load ptr, ptr %9, align 8, !tbaa !9
  %134 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef @targets_dir, ptr noundef @.str.42, ptr noundef %133) #6
  %135 = call i32 @mkdir(ptr noundef @targets_dir, i32 noundef 511) #6
  store i32 1, ptr @sample_capture, align 4, !tbaa !5
  %136 = call i32 @usleep(i32 noundef 100000)
  call void @reprint()
  call void @speakS(ptr noundef @.str.43)
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  br label %139

137:                                              ; preds = %128
  store i32 0, ptr @sample_capture, align 4, !tbaa !5
  %138 = call i32 @usleep(i32 noundef 100000)
  call void @reprint()
  call void @speakS(ptr noundef @.str.44)
  br label %139

139:                                              ; preds = %137, %131
  br label %140

140:                                              ; preds = %139, %125
  %141 = load i32, ptr @sample_capture, align 4, !tbaa !5
  %142 = icmp eq i32 %141, 1
  br i1 %142, label %143, label %159

143:                                              ; preds = %140
  %144 = call i32 @key_is_pressed(i64 noundef 69)
  %145 = icmp ne i32 %144, 0
  br i1 %145, label %146, label %159

146:                                              ; preds = %143
  %147 = call i64 @microtime()
  %148 = load i64, ptr @main.scd, align 8, !tbaa !16
  %149 = icmp ugt i64 %147, %148
  br i1 %149, label %150, label %159

150:                                              ; preds = %146
  call void @llvm.lifetime.start.p0(i64 32, ptr %10) #6
  %151 = getelementptr inbounds [32 x i8], ptr %10, i64 0, i64 0
  %152 = call i32 @rand() #6
  %153 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %151, ptr noundef @.str.45, ptr noundef @targets_dir, i32 noundef %152) #6
  %154 = getelementptr inbounds [32 x i8], ptr %10, i64 0, i64 0
  call void @writePGM(ptr noundef %154, ptr noundef @pgmbytes)
  %155 = getelementptr inbounds [32 x i8], ptr %10, i64 0, i64 0
  %156 = call i32 (ptr, ...) @printf(ptr noundef @.str.46, ptr noundef %155)
  %157 = call i64 @microtime()
  %158 = add i64 %157, 350000
  store i64 %158, ptr @main.scd, align 8, !tbaa !16
  call void @llvm.lifetime.end.p0(i64 32, ptr %10) #6
  br label %159

159:                                              ; preds = %150, %146, %143, %140
  br label %160

160:                                              ; preds = %159, %111
  %161 = load i32, ptr @hotkeys, align 4, !tbaa !5
  %162 = icmp eq i32 %161, 1
  br i1 %162, label %163, label %280

163:                                              ; preds = %160
  %164 = call i32 @key_is_pressed(i64 noundef 71)
  %165 = icmp ne i32 %164, 0
  br i1 %165, label %166, label %280

166:                                              ; preds = %163
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  %167 = call float @processModel()
  store float %167, ptr %11, align 4, !tbaa !21
  %168 = load float, ptr %11, align 4, !tbaa !21
  %169 = fcmp ogt float %168, 0x3F50624DE0000000
  br i1 %169, label %170, label %248

170:                                              ; preds = %166
  %171 = load float, ptr %11, align 4, !tbaa !21
  %172 = fcmp ogt float %171, 0x3FEF5C2900000000
  br i1 %172, label %173, label %207

173:                                              ; preds = %170
  %174 = load float, ptr %11, align 4, !tbaa !21
  %175 = fpext float %174 to double
  %176 = call i32 (ptr, ...) @printf(ptr noundef @.str.47, double noundef %175)
  %177 = load ptr, ptr @d, align 8, !tbaa !9
  %178 = load ptr, ptr @gc, align 8, !tbaa !9
  %179 = call i32 @XSetForeground(ptr noundef %177, ptr noundef %178, i64 noundef 65280)
  %180 = load ptr, ptr @d, align 8, !tbaa !9
  %181 = getelementptr inbounds %struct.XButtonEvent, ptr %6, i32 0, i32 4
  %182 = load i64, ptr %181, align 8, !tbaa !20
  %183 = load ptr, ptr @gc, align 8, !tbaa !9
  %184 = load i32, ptr @x, align 4, !tbaa !5
  %185 = sub i32 %184, 14
  %186 = sub i32 %185, 1
  %187 = load i32, ptr @y, align 4, !tbaa !5
  %188 = sub i32 %187, 14
  %189 = sub i32 %188, 1
  %190 = call i32 @XDrawRectangle(ptr noundef %180, i64 noundef %182, ptr noundef %183, i32 noundef %186, i32 noundef %189, i32 noundef 30, i32 noundef 30)
  %191 = load ptr, ptr @d, align 8, !tbaa !9
  %192 = load ptr, ptr @gc, align 8, !tbaa !9
  %193 = call i32 @XSetForeground(ptr noundef %191, ptr noundef %192, i64 noundef 0)
  %194 = load ptr, ptr @d, align 8, !tbaa !9
  %195 = getelementptr inbounds %struct.XButtonEvent, ptr %6, i32 0, i32 4
  %196 = load i64, ptr %195, align 8, !tbaa !20
  %197 = load ptr, ptr @gc, align 8, !tbaa !9
  %198 = load i32, ptr @x, align 4, !tbaa !5
  %199 = sub i32 %198, 14
  %200 = sub i32 %199, 2
  %201 = load i32, ptr @y, align 4, !tbaa !5
  %202 = sub i32 %201, 14
  %203 = sub i32 %202, 2
  %204 = call i32 @XDrawRectangle(ptr noundef %194, i64 noundef %196, ptr noundef %197, i32 noundef %200, i32 noundef %203, i32 noundef 32, i32 noundef 32)
  %205 = load ptr, ptr @d, align 8, !tbaa !9
  %206 = call i32 @XFlush(ptr noundef %205)
  br label %247

207:                                              ; preds = %170
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  %208 = load float, ptr %11, align 4, !tbaa !21
  %209 = fsub float 1.000000e+00, %208
  %210 = fmul float %209, 2.550000e+02
  %211 = fptoui float %210 to i32
  store i32 %211, ptr %12, align 4, !tbaa !5
  %212 = load i32, ptr %12, align 4, !tbaa !5
  %213 = load i32, ptr %12, align 4, !tbaa !5
  %214 = load float, ptr %11, align 4, !tbaa !21
  %215 = fpext float %214 to double
  %216 = call i32 (ptr, ...) @printf(ptr noundef @.str.48, i32 noundef %212, i32 noundef %213, double noundef %215)
  %217 = load ptr, ptr @d, align 8, !tbaa !9
  %218 = load ptr, ptr @gc, align 8, !tbaa !9
  %219 = call i32 @XSetForeground(ptr noundef %217, ptr noundef %218, i64 noundef 16711680)
  %220 = load ptr, ptr @d, align 8, !tbaa !9
  %221 = getelementptr inbounds %struct.XButtonEvent, ptr %6, i32 0, i32 4
  %222 = load i64, ptr %221, align 8, !tbaa !20
  %223 = load ptr, ptr @gc, align 8, !tbaa !9
  %224 = load i32, ptr @x, align 4, !tbaa !5
  %225 = sub i32 %224, 14
  %226 = sub i32 %225, 1
  %227 = load i32, ptr @y, align 4, !tbaa !5
  %228 = sub i32 %227, 14
  %229 = sub i32 %228, 1
  %230 = call i32 @XDrawRectangle(ptr noundef %220, i64 noundef %222, ptr noundef %223, i32 noundef %226, i32 noundef %229, i32 noundef 30, i32 noundef 30)
  %231 = load ptr, ptr @d, align 8, !tbaa !9
  %232 = load ptr, ptr @gc, align 8, !tbaa !9
  %233 = call i32 @XSetForeground(ptr noundef %231, ptr noundef %232, i64 noundef 0)
  %234 = load ptr, ptr @d, align 8, !tbaa !9
  %235 = getelementptr inbounds %struct.XButtonEvent, ptr %6, i32 0, i32 4
  %236 = load i64, ptr %235, align 8, !tbaa !20
  %237 = load ptr, ptr @gc, align 8, !tbaa !9
  %238 = load i32, ptr @x, align 4, !tbaa !5
  %239 = sub i32 %238, 14
  %240 = sub i32 %239, 2
  %241 = load i32, ptr @y, align 4, !tbaa !5
  %242 = sub i32 %241, 14
  %243 = sub i32 %242, 2
  %244 = call i32 @XDrawRectangle(ptr noundef %234, i64 noundef %236, ptr noundef %237, i32 noundef %240, i32 noundef %243, i32 noundef 32, i32 noundef 32)
  %245 = load ptr, ptr @d, align 8, !tbaa !9
  %246 = call i32 @XFlush(ptr noundef %245)
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  br label %247

247:                                              ; preds = %207, %173
  br label %279

248:                                              ; preds = %166
  %249 = load ptr, ptr @d, align 8, !tbaa !9
  %250 = load ptr, ptr @gc, align 8, !tbaa !9
  %251 = call i32 @XSetForeground(ptr noundef %249, ptr noundef %250, i64 noundef 16711680)
  %252 = load ptr, ptr @d, align 8, !tbaa !9
  %253 = getelementptr inbounds %struct.XButtonEvent, ptr %6, i32 0, i32 4
  %254 = load i64, ptr %253, align 8, !tbaa !20
  %255 = load ptr, ptr @gc, align 8, !tbaa !9
  %256 = load i32, ptr @x, align 4, !tbaa !5
  %257 = sub i32 %256, 14
  %258 = sub i32 %257, 1
  %259 = load i32, ptr @y, align 4, !tbaa !5
  %260 = sub i32 %259, 14
  %261 = sub i32 %260, 1
  %262 = call i32 @XDrawRectangle(ptr noundef %252, i64 noundef %254, ptr noundef %255, i32 noundef %258, i32 noundef %261, i32 noundef 30, i32 noundef 30)
  %263 = load ptr, ptr @d, align 8, !tbaa !9
  %264 = load ptr, ptr @gc, align 8, !tbaa !9
  %265 = call i32 @XSetForeground(ptr noundef %263, ptr noundef %264, i64 noundef 0)
  %266 = load ptr, ptr @d, align 8, !tbaa !9
  %267 = getelementptr inbounds %struct.XButtonEvent, ptr %6, i32 0, i32 4
  %268 = load i64, ptr %267, align 8, !tbaa !20
  %269 = load ptr, ptr @gc, align 8, !tbaa !9
  %270 = load i32, ptr @x, align 4, !tbaa !5
  %271 = sub i32 %270, 14
  %272 = sub i32 %271, 2
  %273 = load i32, ptr @y, align 4, !tbaa !5
  %274 = sub i32 %273, 14
  %275 = sub i32 %274, 2
  %276 = call i32 @XDrawRectangle(ptr noundef %266, i64 noundef %268, ptr noundef %269, i32 noundef %272, i32 noundef %275, i32 noundef 32, i32 noundef 32)
  %277 = load ptr, ptr @d, align 8, !tbaa !9
  %278 = call i32 @XFlush(ptr noundef %277)
  br label %279

279:                                              ; preds = %248, %247
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  br label %375

280:                                              ; preds = %163, %160
  %281 = load i32, ptr @crosshair, align 4, !tbaa !5
  %282 = icmp eq i32 %281, 1
  br i1 %282, label %283, label %314

283:                                              ; preds = %280
  %284 = load ptr, ptr @d, align 8, !tbaa !9
  %285 = load ptr, ptr @gc, align 8, !tbaa !9
  %286 = call i32 @XSetForeground(ptr noundef %284, ptr noundef %285, i64 noundef 65280)
  %287 = load ptr, ptr @d, align 8, !tbaa !9
  %288 = getelementptr inbounds %struct.XButtonEvent, ptr %6, i32 0, i32 4
  %289 = load i64, ptr %288, align 8, !tbaa !20
  %290 = load ptr, ptr @gc, align 8, !tbaa !9
  %291 = load i32, ptr @x, align 4, !tbaa !5
  %292 = sub i32 %291, 14
  %293 = sub i32 %292, 1
  %294 = load i32, ptr @y, align 4, !tbaa !5
  %295 = sub i32 %294, 14
  %296 = sub i32 %295, 1
  %297 = call i32 @XDrawRectangle(ptr noundef %287, i64 noundef %289, ptr noundef %290, i32 noundef %293, i32 noundef %296, i32 noundef 30, i32 noundef 30)
  %298 = load ptr, ptr @d, align 8, !tbaa !9
  %299 = load ptr, ptr @gc, align 8, !tbaa !9
  %300 = call i32 @XSetForeground(ptr noundef %298, ptr noundef %299, i64 noundef 0)
  %301 = load ptr, ptr @d, align 8, !tbaa !9
  %302 = getelementptr inbounds %struct.XButtonEvent, ptr %6, i32 0, i32 4
  %303 = load i64, ptr %302, align 8, !tbaa !20
  %304 = load ptr, ptr @gc, align 8, !tbaa !9
  %305 = load i32, ptr @x, align 4, !tbaa !5
  %306 = sub i32 %305, 14
  %307 = sub i32 %306, 2
  %308 = load i32, ptr @y, align 4, !tbaa !5
  %309 = sub i32 %308, 14
  %310 = sub i32 %309, 2
  %311 = call i32 @XDrawRectangle(ptr noundef %301, i64 noundef %303, ptr noundef %304, i32 noundef %307, i32 noundef %310, i32 noundef 32, i32 noundef 32)
  %312 = load ptr, ptr @d, align 8, !tbaa !9
  %313 = call i32 @XFlush(ptr noundef %312)
  br label %314

314:                                              ; preds = %283, %280
  %315 = call i32 @key_is_pressed(i64 noundef 87)
  %316 = icmp eq i32 %315, 0
  br i1 %316, label %317, label %374

317:                                              ; preds = %314
  %318 = call i32 @key_is_pressed(i64 noundef 65)
  %319 = icmp eq i32 %318, 0
  br i1 %319, label %320, label %374

320:                                              ; preds = %317
  %321 = call i32 @key_is_pressed(i64 noundef 83)
  %322 = icmp eq i32 %321, 0
  br i1 %322, label %323, label %374

323:                                              ; preds = %320
  %324 = call i32 @key_is_pressed(i64 noundef 68)
  %325 = icmp eq i32 %324, 0
  br i1 %325, label %326, label %374

326:                                              ; preds = %323
  %327 = call i32 @key_is_pressed(i64 noundef 65505)
  %328 = icmp eq i32 %327, 0
  br i1 %328, label %329, label %374

329:                                              ; preds = %326
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  %330 = call float @processModel()
  store float %330, ptr %13, align 4, !tbaa !21
  %331 = load float, ptr %13, align 4, !tbaa !21
  %332 = fcmp ogt float %331, 0x3FEF5C2900000000
  br i1 %332, label %333, label %372

333:                                              ; preds = %329
  %334 = load i32, ptr %7, align 4, !tbaa !5
  %335 = add i32 %334, 1
  store i32 %335, ptr %7, align 4, !tbaa !5
  %336 = load i32, ptr %7, align 4, !tbaa !5
  %337 = icmp ugt i32 %336, 0
  br i1 %337, label %338, label %371

338:                                              ; preds = %333
  %339 = load i32, ptr @sample_capture, align 4, !tbaa !5
  %340 = icmp eq i32 %339, 1
  br i1 %340, label %341, label %348

341:                                              ; preds = %338
  call void @llvm.lifetime.start.p0(i64 32, ptr %14) #6
  %342 = getelementptr inbounds [32 x i8], ptr %14, i64 0, i64 0
  %343 = call i32 @rand() #6
  %344 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %342, ptr noundef @.str.45, ptr noundef @targets_dir, i32 noundef %343) #6
  %345 = getelementptr inbounds [32 x i8], ptr %14, i64 0, i64 0
  call void @writePGM(ptr noundef %345, ptr noundef @pgmbytes)
  %346 = getelementptr inbounds [32 x i8], ptr %14, i64 0, i64 0
  %347 = call i32 (ptr, ...) @printf(ptr noundef @.str.49, ptr noundef %346)
  call void @llvm.lifetime.end.p0(i64 32, ptr %14) #6
  br label %348

348:                                              ; preds = %341, %338
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  store i32 0, ptr %15, align 4, !tbaa !5
  br label %349

349:                                              ; preds = %366, %348
  %350 = load i32, ptr %15, align 4, !tbaa !5
  %351 = icmp slt i32 %350, 1
  br i1 %351, label %353, label %352

352:                                              ; preds = %349
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  br label %369

353:                                              ; preds = %349
  store i32 4, ptr %6, align 8, !tbaa !20
  %354 = getelementptr inbounds %struct.XButtonEvent, ptr %6, i32 0, i32 12
  store i32 0, ptr %354, align 8, !tbaa !20
  %355 = load ptr, ptr @d, align 8, !tbaa !9
  %356 = call i32 @XSendEvent(ptr noundef %355, i64 noundef 0, i32 noundef 1, i64 noundef 4095, ptr noundef %6)
  %357 = load ptr, ptr @d, align 8, !tbaa !9
  %358 = call i32 @XFlush(ptr noundef %357)
  %359 = call i32 @usleep(i32 noundef 100000)
  store i32 5, ptr %6, align 8, !tbaa !20
  %360 = getelementptr inbounds %struct.XButtonEvent, ptr %6, i32 0, i32 12
  store i32 256, ptr %360, align 8, !tbaa !20
  %361 = load ptr, ptr @d, align 8, !tbaa !9
  %362 = call i32 @XSendEvent(ptr noundef %361, i64 noundef 0, i32 noundef 1, i64 noundef 4095, ptr noundef %6)
  %363 = load ptr, ptr @d, align 8, !tbaa !9
  %364 = call i32 @XFlush(ptr noundef %363)
  %365 = call i32 @usleep(i32 noundef 30000)
  br label %366

366:                                              ; preds = %353
  %367 = load i32, ptr %15, align 4, !tbaa !5
  %368 = add nsw i32 %367, 1
  store i32 %368, ptr %15, align 4, !tbaa !5
  br label %349, !llvm.loop !23

369:                                              ; preds = %352
  %370 = call i32 @usleep(i32 noundef 100000)
  br label %371

371:                                              ; preds = %369, %333
  br label %373

372:                                              ; preds = %329
  store i32 0, ptr %7, align 4, !tbaa !5
  br label %373

373:                                              ; preds = %372, %371
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  br label %374

374:                                              ; preds = %373, %326, %323, %320, %317, %314
  br label %375

375:                                              ; preds = %374, %279
  br label %376

376:                                              ; preds = %375, %81
  br label %42
}

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

; Function Attrs: nounwind
declare i64 @time(ptr noundef) #0

; Function Attrs: nounwind
declare i32 @remove(ptr noundef) #0

declare ptr @XOpenDisplay(ptr noundef) #4

declare i32 @XDefaultScreen(ptr noundef) #4

declare i32 @usleep(i32 noundef) #4

declare i32 @XGetWindowAttributes(ptr noundef, i64 noundef, ptr noundef) #4

; Function Attrs: nounwind
declare ptr @getenv(ptr noundef) #0

; Function Attrs: nounwind
declare i32 @mkdir(ptr noundef, i32 noundef) #0

declare i32 @XSetForeground(ptr noundef, ptr noundef, i64 noundef) #4

declare i32 @XDrawRectangle(ptr noundef, i64 noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #4

declare i32 @XFlush(ptr noundef) #4

declare i32 @XSendEvent(ptr noundef, i64 noundef, i32 noundef, i64 noundef, ptr noundef) #4

; Function Attrs: alwaysinline nounwind uwtable
declare float @processModel() #5

attributes #0 = { 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 #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 nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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 = { alwaysinline 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 #6 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !10, i64 232}
!12 = !{!"", !10, i64 0, !10, i64 8, !6, i64 16, !6, i64 20, !6, i64 24, !6, i64 28, !10, i64 32, !13, i64 40, !13, i64 48, !13, i64 56, !6, i64 64, !10, i64 72, !6, i64 80, !6, i64 84, !6, i64 88, !6, i64 92, !6, i64 96, !10, i64 104, !6, i64 112, !6, i64 116, !10, i64 120, !10, i64 128, !6, i64 136, !13, i64 144, !13, i64 152, !10, i64 160, !10, i64 168, !10, i64 176, !10, i64 184, !6, i64 192, !10, i64 200, !10, i64 208, !10, i64 216, !6, i64 224, !6, i64 228, !10, i64 232, !13, i64 240, !13, i64 248, !6, i64 256, !6, i64 260, !10, i64 264, !10, i64 272, !6, i64 280, !10, i64 288}
!13 = !{!"long", !7, i64 0}
!14 = !{!15, !10, i64 72}
!15 = !{!"", !10, i64 0, !10, i64 8, !13, i64 16, !6, i64 24, !6, i64 28, !6, i64 32, !6, i64 36, !6, i64 40, !10, i64 48, !6, i64 56, !10, i64 64, !10, i64 72, !13, i64 80, !13, i64 88, !13, i64 96, !6, i64 104, !6, i64 108, !6, i64 112, !6, i64 116, !13, i64 120}
!16 = !{!13, !13, i64 0}
!17 = !{!18, !6, i64 8}
!18 = !{!"", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !6, i64 16, !6, i64 20, !10, i64 24, !13, i64 32, !6, i64 40, !6, i64 44, !6, i64 48, !6, i64 52, !13, i64 56, !13, i64 64, !6, i64 72, !13, i64 80, !6, i64 88, !6, i64 92, !13, i64 96, !13, i64 104, !13, i64 112, !6, i64 120, !10, i64 128}
!19 = !{!18, !6, i64 12}
!20 = !{!7, !7, i64 0}
!21 = !{!22, !22, i64 0}
!22 = !{!"float", !7, i64 0}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}


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

%union._XEvent = type { [24 x i64] }
%struct.XWindowAttributes = type { i32, i32, i32, i32, i32, i32, ptr, i64, i32, i32, i32, i32, i64, i64, i32, i64, i32, i32, i64, i64, i64, i32, ptr }
%struct.Screen = type { ptr, ptr, i64, i32, i32, i32, i32, i32, ptr, i32, ptr, ptr, i64, i64, i64, i32, i32, i32, i32, i64 }

@x = external dso_local local_unnamed_addr global i32, align 4
@y = external dso_local local_unnamed_addr global i32, align 4
@twin = external dso_local local_unnamed_addr global i64, align 8
@gc = external dso_local local_unnamed_addr global ptr, align 8
@pgmbytes = external dso_local global [784 x i8], align 16
@sps = external dso_local local_unnamed_addr global i32, align 4
@enable = external dso_local local_unnamed_addr global i32, align 4
@sample_capture = external dso_local local_unnamed_addr global i32, align 4
@crosshair = external dso_local local_unnamed_addr global i32, align 4
@hotkeys = external dso_local local_unnamed_addr global i32, align 4
@d = external dso_local local_unnamed_addr global ptr, align 8
@.str.28 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [24 x i8], align 1
@si = external dso_local local_unnamed_addr global i32, align 4
@.str.32 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [4 x i8], align 1
@main.st = external hidden local_unnamed_addr global i64, align 8
@.str.36 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.41 = external hidden unnamed_addr constant [5 x i8], align 1
@targets_dir = external dso_local global [256 x i8], align 16
@.str.42 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.43 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.44 = external hidden unnamed_addr constant [7 x i8], align 1
@main.scd = external hidden local_unnamed_addr global i64, align 8
@.str.45 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.46 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.47 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.48 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.49 = external hidden unnamed_addr constant [11 x i8], align 1

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

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

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

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

; Function Attrs: nounwind uwtable
declare dso_local i64 @microtime() 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) #3

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #4

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

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

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

declare i32 @sleep(i32 noundef) local_unnamed_addr #5

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

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

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr nocapture noundef readnone %1) local_unnamed_addr #1 {
  %3 = alloca %union._XEvent, align 8
  %4 = alloca %struct.XWindowAttributes, align 8
  %5 = alloca [32 x i8], align 16
  %6 = alloca [32 x i8], align 16
  %7 = tail call i64 @time(ptr noundef null) #8
  %8 = trunc i64 %7 to i32
  tail call void @srand(i32 noundef %8) #8
  %9 = tail call i32 @remove(ptr noundef nonnull @.str.28) #8
  %10 = tail call i32 @remove(ptr noundef nonnull @.str.29) #8
  tail call void @reprint()
  %11 = tail call ptr @XOpenDisplay(ptr noundef nonnull @.str.30) #8
  store ptr %11, ptr @d, align 8, !tbaa !5
  %12 = icmp eq ptr %11, null
  br i1 %12, label %13, label %15

13:                                               ; preds = %2
  %14 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.31)
  ret i32 0

15:                                               ; preds = %2
  %16 = tail call i32 @XDefaultScreen(ptr noundef nonnull %11) #8
  store i32 %16, ptr @si, align 4, !tbaa !9
  %17 = load ptr, ptr @d, align 8, !tbaa !5
  %18 = getelementptr inbounds i8, ptr %17, i64 232
  %19 = load ptr, ptr %18, align 8, !tbaa !11
  %20 = sext i32 %16 to i64
  %21 = getelementptr inbounds %struct.Screen, ptr %19, i64 %20, i32 11
  %22 = load ptr, ptr %21, align 8, !tbaa !14
  store ptr %22, ptr @gc, align 8, !tbaa !5
  %23 = tail call i64 @findWindow(ptr noundef %17, i64 noundef 0, ptr noundef nonnull @.str.32)
  store i64 %23, ptr @twin, align 8, !tbaa !16
  %.not = icmp eq i64 %23, 0
  br i1 %.not, label %25, label %24

24:                                               ; preds = %15
  tail call void @reprint()
  br label %25

25:                                               ; preds = %24, %15
  call void @llvm.lifetime.start.p0(i64 192, ptr nonnull %3) #8
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(192) %3, i8 0, i64 192, i1 false)
  %26 = getelementptr inbounds i8, ptr %4, i64 8
  %27 = getelementptr inbounds i8, ptr %4, i64 12
  %28 = getelementptr inbounds i8, ptr %3, i64 84
  %29 = getelementptr inbounds i8, ptr %3, i64 88
  %30 = getelementptr inbounds i8, ptr %3, i64 48
  %31 = getelementptr inbounds i8, ptr %3, i64 32
  %32 = getelementptr inbounds i8, ptr %3, i64 80
  br label %.outer

.outer:                                           ; preds = %.outer.backedge, %25
  %.012.ph = phi i32 [ 0, %25 ], [ %.012.ph.be, %.outer.backedge ]
  %33 = call i32 @usleep(i32 noundef 1000) #8
  %34 = call i32 @key_is_pressed(i64 noundef 65507)
  %.not1727 = icmp eq i32 %34, 0
  br i1 %.not1727, label %.loopexit, label %.lr.ph

.lr.ph:                                           ; preds = %.outer, %43
  %35 = call i32 @key_is_pressed(i64 noundef 65513)
  %.not18 = icmp eq i32 %35, 0
  br i1 %.not18, label %.loopexit, label %36

36:                                               ; preds = %.lr.ph
  %37 = load i32, ptr @enable, align 4, !tbaa !9
  %38 = icmp eq i32 %37, 0
  br i1 %38, label %39, label %57

39:                                               ; preds = %36
  %40 = load ptr, ptr @d, align 8, !tbaa !5
  %41 = call i64 @findWindow(ptr noundef %40, i64 noundef 0, ptr noundef nonnull @.str.32)
  store i64 %41, ptr @twin, align 8, !tbaa !16
  %42 = icmp eq i64 %41, 0
  br i1 %42, label %43, label %48

43:                                               ; preds = %39
  %44 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.33)
  %45 = call i32 @sleep(i32 noundef 1) #8
  %46 = call i32 @usleep(i32 noundef 1000) #8
  %47 = call i32 @key_is_pressed(i64 noundef 65507)
  %.not17 = icmp eq i32 %47, 0
  br i1 %.not17, label %.loopexit, label %.lr.ph

48:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 136, ptr nonnull %4) #8
  %49 = load ptr, ptr @d, align 8, !tbaa !5
  %50 = call i32 @XGetWindowAttributes(ptr noundef %49, i64 noundef %41, ptr noundef nonnull %4) #8
  %51 = load i32, ptr %26, align 8, !tbaa !17
  %52 = sdiv i32 %51, 2
  store i32 %52, ptr @x, align 4, !tbaa !9
  %53 = load i32, ptr %27, align 4, !tbaa !19
  %54 = sdiv i32 %53, 2
  store i32 %54, ptr @y, align 4, !tbaa !9
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(192) %3, i8 0, i64 192, i1 false)
  store i32 4, ptr %3, align 8, !tbaa !20
  store i32 1, ptr %28, align 4, !tbaa !20
  store i32 1, ptr %29, align 8, !tbaa !20
  %55 = load i64, ptr @twin, align 8, !tbaa !16
  store i64 %55, ptr %30, align 8, !tbaa !20
  store i64 %55, ptr %31, align 8, !tbaa !20
  store i32 1, ptr @enable, align 4, !tbaa !9
  %56 = call i32 @usleep(i32 noundef 100000) #8
  call void @reprint()
  call void @speakS(ptr noundef nonnull @.str.34)
  call void @llvm.lifetime.end.p0(i64 136, ptr nonnull %4) #8
  br label %.loopexit

57:                                               ; preds = %36
  store i32 0, ptr @enable, align 4, !tbaa !9
  %58 = call i32 @usleep(i32 noundef 100000) #8
  call void @reprint()
  call void @speakS(ptr noundef nonnull @.str.35)
  br label %.loopexit

.loopexit:                                        ; preds = %43, %.lr.ph, %.outer, %48, %57
  %59 = load i32, ptr @enable, align 4, !tbaa !9
  %60 = icmp eq i32 %59, 1
  br i1 %60, label %61, label %.outer.backedge

61:                                               ; preds = %.loopexit
  %62 = call i64 @microtime()
  %63 = load i64, ptr @main.st, align 8, !tbaa !16
  %64 = sub i64 %62, %63
  %65 = icmp ugt i64 %64, 999999
  br i1 %65, label %66, label %73

66:                                               ; preds = %61
  %67 = call i32 @key_is_pressed(i64 noundef 72)
  %.not19 = icmp eq i32 %67, 0
  br i1 %.not19, label %71, label %68

68:                                               ; preds = %66
  %69 = load i32, ptr @sps, align 4, !tbaa !9
  %70 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.36, i32 noundef %69)
  br label %71

71:                                               ; preds = %68, %66
  store i32 0, ptr @sps, align 4, !tbaa !9
  %72 = call i64 @microtime()
  store i64 %72, ptr @main.st, align 8, !tbaa !16
  br label %73

73:                                               ; preds = %71, %61
  %74 = call i32 @key_is_pressed(i64 noundef 65508)
  %.not20 = icmp eq i32 %74, 0
  br i1 %.not20, label %80, label %75

75:                                               ; preds = %73
  %76 = call i32 @key_is_pressed(i64 noundef 65514)
  %.not21 = icmp eq i32 %76, 0
  br i1 %.not21, label %80, label %.sink.split

.sink.split:                                      ; preds = %75
  %77 = load i32, ptr @hotkeys, align 4, !tbaa !9
  %78 = icmp eq i32 %77, 0
  %. = zext i1 %78 to i32
  %.str.37..str.38 = select i1 %78, ptr @.str.37, ptr @.str.38
  store i32 %., ptr @hotkeys, align 4, !tbaa !9
  %79 = call i32 @usleep(i32 noundef 100000) #8
  call void @reprint()
  call void @speakS(ptr noundef nonnull %.str.37..str.38)
  br label %80

80:                                               ; preds = %.sink.split, %75, %73
  %81 = load i32, ptr @hotkeys, align 4, !tbaa !9
  %82 = icmp eq i32 %81, 1
  br i1 %82, label %83, label %.thread

83:                                               ; preds = %80
  %84 = call i32 @key_is_pressed(i64 noundef 80)
  %.not22 = icmp eq i32 %84, 0
  br i1 %.not22, label %88, label %.sink.split29

.sink.split29:                                    ; preds = %83
  %85 = load i32, ptr @crosshair, align 4, !tbaa !9
  %86 = icmp eq i32 %85, 0
  %.33 = zext i1 %86 to i32
  %.str.39..str.40 = select i1 %86, ptr @.str.39, ptr @.str.40
  store i32 %.33, ptr @crosshair, align 4, !tbaa !9
  %87 = call i32 @usleep(i32 noundef 100000) #8
  call void @reprint()
  call void @speakS(ptr noundef nonnull %.str.39..str.40)
  br label %88

88:                                               ; preds = %.sink.split29, %83
  %89 = call i32 @key_is_pressed(i64 noundef 76)
  %.not23 = icmp eq i32 %89, 0
  br i1 %.not23, label %98, label %90

90:                                               ; preds = %88
  %91 = load i32, ptr @sample_capture, align 4, !tbaa !9
  %92 = icmp eq i32 %91, 0
  br i1 %92, label %93, label %.sink.split31

93:                                               ; preds = %90
  %94 = call ptr @getenv(ptr noundef nonnull @.str.41) #8
  %95 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) @targets_dir, ptr noundef nonnull dereferenceable(1) @.str.42, ptr noundef %94) #8
  %96 = call i32 @mkdir(ptr noundef nonnull @targets_dir, i32 noundef 511) #8
  br label %.sink.split31

.sink.split31:                                    ; preds = %90, %93
  %.sink32 = phi i32 [ 1, %93 ], [ 0, %90 ]
  %.str.43.sink = phi ptr [ @.str.43, %93 ], [ @.str.44, %90 ]
  store i32 %.sink32, ptr @sample_capture, align 4, !tbaa !9
  %97 = call i32 @usleep(i32 noundef 100000) #8
  call void @reprint()
  call void @speakS(ptr noundef nonnull %.str.43.sink)
  br label %98

98:                                               ; preds = %.sink.split31, %88
  %99 = load i32, ptr @sample_capture, align 4, !tbaa !9
  %100 = icmp eq i32 %99, 1
  br i1 %100, label %101, label %113

101:                                              ; preds = %98
  %102 = call i32 @key_is_pressed(i64 noundef 69)
  %.not24 = icmp eq i32 %102, 0
  br i1 %.not24, label %113, label %103

103:                                              ; preds = %101
  %104 = call i64 @microtime()
  %105 = load i64, ptr @main.scd, align 8, !tbaa !16
  %106 = icmp ugt i64 %104, %105
  br i1 %106, label %107, label %113

107:                                              ; preds = %103
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #8
  %108 = call i32 @rand() #8
  %109 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %5, ptr noundef nonnull dereferenceable(1) @.str.45, ptr noundef nonnull @targets_dir, i32 noundef %108) #8
  call void @writePGM(ptr noundef nonnull %5, ptr noundef nonnull @pgmbytes)
  %110 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.46, ptr noundef nonnull %5)
  %111 = call i64 @microtime()
  %112 = add i64 %111, 350000
  store i64 %112, ptr @main.scd, align 8, !tbaa !16
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #8
  br label %113

113:                                              ; preds = %98, %101, %103, %107
  %.pr = load i32, ptr @hotkeys, align 4, !tbaa !9
  %114 = icmp eq i32 %.pr, 1
  br i1 %114, label %115, label %.thread

115:                                              ; preds = %113
  %116 = call i32 @key_is_pressed(i64 noundef 71)
  %.not25 = icmp eq i32 %116, 0
  br i1 %.not25, label %.thread, label %117

117:                                              ; preds = %115
  %118 = call float @processModel()
  %119 = fcmp ogt float %118, 0x3F50624DE0000000
  br i1 %119, label %120, label %179

120:                                              ; preds = %117
  %121 = fcmp ogt float %118, 0x3FEF5C2900000000
  br i1 %121, label %122, label %149

122:                                              ; preds = %120
  %123 = fpext float %118 to double
  %124 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.47, double noundef %123)
  %125 = load ptr, ptr @d, align 8, !tbaa !5
  %126 = load ptr, ptr @gc, align 8, !tbaa !5
  %127 = call i32 @XSetForeground(ptr noundef %125, ptr noundef %126, i64 noundef 65280) #8
  %128 = load ptr, ptr @d, align 8, !tbaa !5
  %129 = load i64, ptr %31, align 8, !tbaa !20
  %130 = load ptr, ptr @gc, align 8, !tbaa !5
  %131 = load i32, ptr @x, align 4, !tbaa !9
  %132 = add i32 %131, -15
  %133 = load i32, ptr @y, align 4, !tbaa !9
  %134 = add i32 %133, -15
  %135 = call i32 @XDrawRectangle(ptr noundef %128, i64 noundef %129, ptr noundef %130, i32 noundef %132, i32 noundef %134, i32 noundef 30, i32 noundef 30) #8
  %136 = load ptr, ptr @d, align 8, !tbaa !5
  %137 = load ptr, ptr @gc, align 8, !tbaa !5
  %138 = call i32 @XSetForeground(ptr noundef %136, ptr noundef %137, i64 noundef 0) #8
  %139 = load ptr, ptr @d, align 8, !tbaa !5
  %140 = load i64, ptr %31, align 8, !tbaa !20
  %141 = load ptr, ptr @gc, align 8, !tbaa !5
  %142 = load i32, ptr @x, align 4, !tbaa !9
  %143 = add i32 %142, -16
  %144 = load i32, ptr @y, align 4, !tbaa !9
  %145 = add i32 %144, -16
  %146 = call i32 @XDrawRectangle(ptr noundef %139, i64 noundef %140, ptr noundef %141, i32 noundef %143, i32 noundef %145, i32 noundef 32, i32 noundef 32) #8
  %147 = load ptr, ptr @d, align 8, !tbaa !5
  %148 = call i32 @XFlush(ptr noundef %147) #8
  br label %.outer.backedge

149:                                              ; preds = %120
  %150 = fsub float 1.000000e+00, %118
  %151 = fmul float %150, 2.550000e+02
  %152 = fptoui float %151 to i32
  %153 = fpext float %118 to double
  %154 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.48, i32 noundef %152, i32 noundef %152, double noundef %153)
  %155 = load ptr, ptr @d, align 8, !tbaa !5
  %156 = load ptr, ptr @gc, align 8, !tbaa !5
  %157 = call i32 @XSetForeground(ptr noundef %155, ptr noundef %156, i64 noundef 16711680) #8
  %158 = load ptr, ptr @d, align 8, !tbaa !5
  %159 = load i64, ptr %31, align 8, !tbaa !20
  %160 = load ptr, ptr @gc, align 8, !tbaa !5
  %161 = load i32, ptr @x, align 4, !tbaa !9
  %162 = add i32 %161, -15
  %163 = load i32, ptr @y, align 4, !tbaa !9
  %164 = add i32 %163, -15
  %165 = call i32 @XDrawRectangle(ptr noundef %158, i64 noundef %159, ptr noundef %160, i32 noundef %162, i32 noundef %164, i32 noundef 30, i32 noundef 30) #8
  %166 = load ptr, ptr @d, align 8, !tbaa !5
  %167 = load ptr, ptr @gc, align 8, !tbaa !5
  %168 = call i32 @XSetForeground(ptr noundef %166, ptr noundef %167, i64 noundef 0) #8
  %169 = load ptr, ptr @d, align 8, !tbaa !5
  %170 = load i64, ptr %31, align 8, !tbaa !20
  %171 = load ptr, ptr @gc, align 8, !tbaa !5
  %172 = load i32, ptr @x, align 4, !tbaa !9
  %173 = add i32 %172, -16
  %174 = load i32, ptr @y, align 4, !tbaa !9
  %175 = add i32 %174, -16
  %176 = call i32 @XDrawRectangle(ptr noundef %169, i64 noundef %170, ptr noundef %171, i32 noundef %173, i32 noundef %175, i32 noundef 32, i32 noundef 32) #8
  %177 = load ptr, ptr @d, align 8, !tbaa !5
  %178 = call i32 @XFlush(ptr noundef %177) #8
  br label %.outer.backedge

179:                                              ; preds = %117
  %180 = load ptr, ptr @d, align 8, !tbaa !5
  %181 = load ptr, ptr @gc, align 8, !tbaa !5
  %182 = call i32 @XSetForeground(ptr noundef %180, ptr noundef %181, i64 noundef 16711680) #8
  %183 = load ptr, ptr @d, align 8, !tbaa !5
  %184 = load i64, ptr %31, align 8, !tbaa !20
  %185 = load ptr, ptr @gc, align 8, !tbaa !5
  %186 = load i32, ptr @x, align 4, !tbaa !9
  %187 = add i32 %186, -15
  %188 = load i32, ptr @y, align 4, !tbaa !9
  %189 = add i32 %188, -15
  %190 = call i32 @XDrawRectangle(ptr noundef %183, i64 noundef %184, ptr noundef %185, i32 noundef %187, i32 noundef %189, i32 noundef 30, i32 noundef 30) #8
  %191 = load ptr, ptr @d, align 8, !tbaa !5
  %192 = load ptr, ptr @gc, align 8, !tbaa !5
  %193 = call i32 @XSetForeground(ptr noundef %191, ptr noundef %192, i64 noundef 0) #8
  %194 = load ptr, ptr @d, align 8, !tbaa !5
  %195 = load i64, ptr %31, align 8, !tbaa !20
  %196 = load ptr, ptr @gc, align 8, !tbaa !5
  %197 = load i32, ptr @x, align 4, !tbaa !9
  %198 = add i32 %197, -16
  %199 = load i32, ptr @y, align 4, !tbaa !9
  %200 = add i32 %199, -16
  %201 = call i32 @XDrawRectangle(ptr noundef %194, i64 noundef %195, ptr noundef %196, i32 noundef %198, i32 noundef %200, i32 noundef 32, i32 noundef 32) #8
  %202 = load ptr, ptr @d, align 8, !tbaa !5
  %203 = call i32 @XFlush(ptr noundef %202) #8
  br label %.outer.backedge

.thread:                                          ; preds = %80, %115, %113
  %204 = load i32, ptr @crosshair, align 4, !tbaa !9
  %205 = icmp eq i32 %204, 1
  br i1 %205, label %206, label %231

206:                                              ; preds = %.thread
  %207 = load ptr, ptr @d, align 8, !tbaa !5
  %208 = load ptr, ptr @gc, align 8, !tbaa !5
  %209 = call i32 @XSetForeground(ptr noundef %207, ptr noundef %208, i64 noundef 65280) #8
  %210 = load ptr, ptr @d, align 8, !tbaa !5
  %211 = load i64, ptr %31, align 8, !tbaa !20
  %212 = load ptr, ptr @gc, align 8, !tbaa !5
  %213 = load i32, ptr @x, align 4, !tbaa !9
  %214 = add i32 %213, -15
  %215 = load i32, ptr @y, align 4, !tbaa !9
  %216 = add i32 %215, -15
  %217 = call i32 @XDrawRectangle(ptr noundef %210, i64 noundef %211, ptr noundef %212, i32 noundef %214, i32 noundef %216, i32 noundef 30, i32 noundef 30) #8
  %218 = load ptr, ptr @d, align 8, !tbaa !5
  %219 = load ptr, ptr @gc, align 8, !tbaa !5
  %220 = call i32 @XSetForeground(ptr noundef %218, ptr noundef %219, i64 noundef 0) #8
  %221 = load ptr, ptr @d, align 8, !tbaa !5
  %222 = load i64, ptr %31, align 8, !tbaa !20
  %223 = load ptr, ptr @gc, align 8, !tbaa !5
  %224 = load i32, ptr @x, align 4, !tbaa !9
  %225 = add i32 %224, -16
  %226 = load i32, ptr @y, align 4, !tbaa !9
  %227 = add i32 %226, -16
  %228 = call i32 @XDrawRectangle(ptr noundef %221, i64 noundef %222, ptr noundef %223, i32 noundef %225, i32 noundef %227, i32 noundef 32, i32 noundef 32) #8
  %229 = load ptr, ptr @d, align 8, !tbaa !5
  %230 = call i32 @XFlush(ptr noundef %229) #8
  br label %231

231:                                              ; preds = %206, %.thread
  %232 = call i32 @key_is_pressed(i64 noundef 87)
  %233 = icmp eq i32 %232, 0
  br i1 %233, label %234, label %.outer.backedge

234:                                              ; preds = %231
  %235 = call i32 @key_is_pressed(i64 noundef 65)
  %236 = icmp eq i32 %235, 0
  br i1 %236, label %237, label %.outer.backedge

237:                                              ; preds = %234
  %238 = call i32 @key_is_pressed(i64 noundef 83)
  %239 = icmp eq i32 %238, 0
  br i1 %239, label %240, label %.outer.backedge

240:                                              ; preds = %237
  %241 = call i32 @key_is_pressed(i64 noundef 68)
  %242 = icmp eq i32 %241, 0
  br i1 %242, label %243, label %.outer.backedge

243:                                              ; preds = %240
  %244 = call i32 @key_is_pressed(i64 noundef 65505)
  %245 = icmp eq i32 %244, 0
  br i1 %245, label %246, label %.outer.backedge

246:                                              ; preds = %243
  %247 = call float @processModel()
  %248 = fcmp ogt float %247, 0x3FEF5C2900000000
  br i1 %248, label %249, label %.outer.backedge

249:                                              ; preds = %246
  %250 = add i32 %.012.ph, 1
  %.not26 = icmp eq i32 %250, 0
  br i1 %.not26, label %.outer.backedge, label %251

251:                                              ; preds = %249
  %252 = load i32, ptr @sample_capture, align 4, !tbaa !9
  %253 = icmp eq i32 %252, 1
  br i1 %253, label %254, label %.critedge

254:                                              ; preds = %251
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #8
  %255 = call i32 @rand() #8
  %256 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.45, ptr noundef nonnull @targets_dir, i32 noundef %255) #8
  call void @writePGM(ptr noundef nonnull %6, ptr noundef nonnull @pgmbytes)
  %257 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.49, ptr noundef nonnull %6)
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #8
  br label %.critedge

.critedge:                                        ; preds = %254, %251
  store i32 4, ptr %3, align 8, !tbaa !20
  store i32 0, ptr %32, align 8, !tbaa !20
  %258 = load ptr, ptr @d, align 8, !tbaa !5
  %259 = call i32 @XSendEvent(ptr noundef %258, i64 noundef 0, i32 noundef 1, i64 noundef 4095, ptr noundef nonnull %3) #8
  %260 = load ptr, ptr @d, align 8, !tbaa !5
  %261 = call i32 @XFlush(ptr noundef %260) #8
  %262 = call i32 @usleep(i32 noundef 100000) #8
  store i32 5, ptr %3, align 8, !tbaa !20
  store i32 256, ptr %32, align 8, !tbaa !20
  %263 = load ptr, ptr @d, align 8, !tbaa !5
  %264 = call i32 @XSendEvent(ptr noundef %263, i64 noundef 0, i32 noundef 1, i64 noundef 4095, ptr noundef nonnull %3) #8
  %265 = load ptr, ptr @d, align 8, !tbaa !5
  %266 = call i32 @XFlush(ptr noundef %265) #8
  %267 = call i32 @usleep(i32 noundef 30000) #8
  %268 = call i32 @usleep(i32 noundef 100000) #8
  br label %.outer.backedge

.outer.backedge:                                  ; preds = %.critedge, %249, %246, %179, %149, %122, %243, %240, %237, %234, %231, %.loopexit
  %.012.ph.be = phi i32 [ %.012.ph, %243 ], [ %.012.ph, %240 ], [ %.012.ph, %237 ], [ %.012.ph, %234 ], [ %.012.ph, %231 ], [ %.012.ph, %.loopexit ], [ %.012.ph, %122 ], [ %.012.ph, %149 ], [ %.012.ph, %179 ], [ %250, %.critedge ], [ 0, %249 ], [ 0, %246 ]
  br label %.outer
}

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

; Function Attrs: nounwind
declare i64 @time(ptr noundef) local_unnamed_addr #0

; Function Attrs: nofree nounwind
declare noundef i32 @remove(ptr nocapture noundef readonly) local_unnamed_addr #4

declare ptr @XOpenDisplay(ptr noundef) local_unnamed_addr #5

declare i32 @XDefaultScreen(ptr noundef) local_unnamed_addr #5

declare i32 @usleep(i32 noundef) local_unnamed_addr #5

declare i32 @XGetWindowAttributes(ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #5

; Function Attrs: nofree nounwind memory(read)
declare noundef ptr @getenv(ptr nocapture noundef) local_unnamed_addr #6

; Function Attrs: nofree nounwind
declare noundef i32 @mkdir(ptr nocapture noundef readonly, i32 noundef) local_unnamed_addr #4

declare i32 @XSetForeground(ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #5

declare i32 @XDrawRectangle(ptr noundef, i64 noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #5

declare i32 @XFlush(ptr noundef) local_unnamed_addr #5

declare i32 @XSendEvent(ptr noundef, i64 noundef, i32 noundef, i64 noundef, ptr noundef) local_unnamed_addr #5

; Function Attrs: alwaysinline nounwind uwtable
declare float @processModel() local_unnamed_addr #7

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

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !6, i64 232}
!12 = !{!"", !6, i64 0, !6, i64 8, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !6, i64 32, !13, i64 40, !13, i64 48, !13, i64 56, !10, i64 64, !6, i64 72, !10, i64 80, !10, i64 84, !10, i64 88, !10, i64 92, !10, i64 96, !6, i64 104, !10, i64 112, !10, i64 116, !6, i64 120, !6, i64 128, !10, i64 136, !13, i64 144, !13, i64 152, !6, i64 160, !6, i64 168, !6, i64 176, !6, i64 184, !10, i64 192, !6, i64 200, !6, i64 208, !6, i64 216, !10, i64 224, !10, i64 228, !6, i64 232, !13, i64 240, !13, i64 248, !10, i64 256, !10, i64 260, !6, i64 264, !6, i64 272, !10, i64 280, !6, i64 288}
!13 = !{!"long", !7, i64 0}
!14 = !{!15, !6, i64 72}
!15 = !{!"", !6, i64 0, !6, i64 8, !13, i64 16, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !10, i64 40, !6, i64 48, !10, i64 56, !6, i64 64, !6, i64 72, !13, i64 80, !13, i64 88, !13, i64 96, !10, i64 104, !10, i64 108, !10, i64 112, !10, i64 116, !13, i64 120}
!16 = !{!13, !13, i64 0}
!17 = !{!18, !10, i64 8}
!18 = !{!"", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !6, i64 24, !13, i64 32, !10, i64 40, !10, i64 44, !10, i64 48, !10, i64 52, !13, i64 56, !13, i64 64, !10, i64 72, !13, i64 80, !10, i64 88, !10, i64 92, !13, i64 96, !13, i64 104, !13, i64 112, !10, i64 120, !6, i64 128}
!19 = !{!18, !10, i64 12}
!20 = !{!7, !7, i64 0}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass