; LLVM IR from mrbid/CSGO_TENSOR_TRIGGER :: GOBOT15/LIBONNX (aim)

; 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
@ctx = external dso_local global ptr, align 8
@d = external dso_local global ptr, align 8
@.str.30 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [24 x i8], align 1
@si = external dso_local global i32, align 4
@.str.33 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [4 x i8], align 1
@main.st = external hidden global i64, align 8
@.str.37 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.41 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.42 = external hidden unnamed_addr constant [5 x i8], align 1
@targets_dir = external dso_local global [256 x i8], align 16
@.str.43 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.44 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.45 = external hidden unnamed_addr constant [7 x i8], align 1
@main.scd = external hidden global i64, align 8
@.str.46 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.47 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.48 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.49 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.50 = external hidden unnamed_addr constant [11 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local float @processNet() #0

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

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

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

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

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

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

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

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

declare i32 @sleep(i32 noundef) #4

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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca %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) #5
  %17 = trunc i64 %16 to i32
  call void @srand(i32 noundef %17) #5
  %18 = call ptr @onnx_context_alloc_from_file(ptr noundef @.str.30, ptr noundef null, i32 noundef 0)
  store ptr %18, ptr @ctx, align 8, !tbaa !9
  call void @reprint()
  %19 = call ptr @XOpenDisplay(ptr noundef @.str.31)
  store ptr %19, ptr @d, align 8, !tbaa !9
  %20 = load ptr, ptr @d, align 8, !tbaa !9
  %21 = icmp eq ptr %20, null
  br i1 %21, label %22, label %24

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

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

39:                                               ; preds = %24
  call void @reprint()
  br label %40

40:                                               ; preds = %39, %24
  call void @llvm.lifetime.start.p0(i64 192, ptr %6) #5
  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) #5
  store i32 0, ptr %7, align 4, !tbaa !5
  br label %41

41:                                               ; preds = %375, %57, %40
  br label %42

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

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

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

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

57:                                               ; preds = %52
  %58 = call i32 (ptr, ...) @printf(ptr noundef @.str.34)
  %59 = call i32 @sleep(i32 noundef 1)
  br label %41

60:                                               ; preds = %52
  call void @llvm.lifetime.start.p0(i64 136, ptr %8) #5
  %61 = load ptr, ptr @d, align 8, !tbaa !9
  %62 = load i64, ptr @twin, align 8, !tbaa !16
  %63 = call i32 @XGetWindowAttributes(ptr noundef %61, i64 noundef %62, ptr noundef %8)
  %64 = getelementptr inbounds %struct.XWindowAttributes, ptr %8, i32 0, i32 2
  %65 = load i32, ptr %64, align 8, !tbaa !17
  %66 = sdiv i32 %65, 2
  store i32 %66, ptr @x, align 4, !tbaa !5
  %67 = getelementptr inbounds %struct.XWindowAttributes, ptr %8, i32 0, i32 3
  %68 = load i32, ptr %67, align 4, !tbaa !19
  %69 = sdiv i32 %68, 2
  store i32 %69, 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
  %70 = getelementptr inbounds %struct.XButtonEvent, ptr %6, i32 0, i32 13
  store i32 1, ptr %70, align 4, !tbaa !20
  %71 = getelementptr inbounds %struct.XButtonEvent, ptr %6, i32 0, i32 14
  store i32 1, ptr %71, align 8, !tbaa !20
  %72 = load i64, ptr @twin, align 8, !tbaa !16
  %73 = getelementptr inbounds %struct.XButtonEvent, ptr %6, i32 0, i32 6
  store i64 %72, ptr %73, align 8, !tbaa !20
  %74 = load i64, ptr @twin, align 8, !tbaa !16
  %75 = getelementptr inbounds %struct.XButtonEvent, ptr %6, i32 0, i32 4
  store i64 %74, ptr %75, align 8, !tbaa !20
  store i32 1, ptr @enable, align 4, !tbaa !5
  %76 = call i32 @usleep(i32 noundef 100000)
  call void @reprint()
  call void @speakS(ptr noundef @.str.35)
  call void @llvm.lifetime.end.p0(i64 136, ptr %8) #5
  br label %79

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

79:                                               ; preds = %77, %60
  br label %80

80:                                               ; preds = %79, %46, %42
  %81 = load i32, ptr @enable, align 4, !tbaa !5
  %82 = icmp eq i32 %81, 1
  br i1 %82, label %83, label %375

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

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

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

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

96:                                               ; preds = %94, %83
  %97 = call i32 @key_is_pressed(i64 noundef 65508)
  %98 = icmp ne i32 %97, 0
  br i1 %98, label %99, label %110

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

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

105:                                              ; preds = %102
  store i32 1, ptr @hotkeys, align 4, !tbaa !5
  %106 = call i32 @usleep(i32 noundef 100000)
  call void @reprint()
  call void @speakS(ptr noundef @.str.38)
  br label %109

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

109:                                              ; preds = %107, %105
  br label %110

110:                                              ; preds = %109, %99, %96
  %111 = load i32, ptr @hotkeys, align 4, !tbaa !5
  %112 = icmp eq i32 %111, 1
  br i1 %112, label %113, label %159

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

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

119:                                              ; preds = %116
  store i32 1, ptr @crosshair, align 4, !tbaa !5
  %120 = call i32 @usleep(i32 noundef 100000)
  call void @reprint()
  call void @speakS(ptr noundef @.str.40)
  br label %123

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

123:                                              ; preds = %121, %119
  br label %124

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

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

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

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

138:                                              ; preds = %136, %130
  br label %139

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

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

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

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

158:                                              ; preds = %149, %145, %142, %139
  br label %159

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

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

165:                                              ; preds = %162
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  %166 = call float @processNet()
  store float %166, ptr %11, align 4, !tbaa !21
  %167 = load float, ptr %11, align 4, !tbaa !21
  %168 = fcmp ogt float %167, 0x3F50624DE0000000
  br i1 %168, label %169, label %247

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

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

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

246:                                              ; preds = %206, %172
  br label %278

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

278:                                              ; preds = %247, %246
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  br label %374

279:                                              ; preds = %162, %159
  %280 = load i32, ptr @crosshair, align 4, !tbaa !5
  %281 = icmp eq i32 %280, 1
  br i1 %281, label %282, label %313

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

313:                                              ; preds = %282, %279
  %314 = call i32 @key_is_pressed(i64 noundef 87)
  %315 = icmp eq i32 %314, 0
  br i1 %315, label %316, label %373

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

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

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

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

328:                                              ; preds = %325
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  %329 = call float @processNet()
  store float %329, ptr %13, align 4, !tbaa !21
  %330 = load float, ptr %13, align 4, !tbaa !21
  %331 = fcmp ogt float %330, 0x3FEF5C2900000000
  br i1 %331, label %332, label %371

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

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

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

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

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

351:                                              ; preds = %348
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  br label %368

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

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

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

370:                                              ; preds = %368, %332
  br label %372

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

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

373:                                              ; preds = %372, %325, %322, %319, %316, %313
  br label %374

374:                                              ; preds = %373, %278
  br label %375

375:                                              ; preds = %374, %80
  br label %41
}

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

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

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

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

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

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

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #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 = { 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
@ctx = external dso_local local_unnamed_addr global ptr, align 8
@d = external dso_local local_unnamed_addr global ptr, align 8
@.str.30 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [24 x i8], align 1
@si = external dso_local local_unnamed_addr global i32, align 4
@.str.33 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [4 x i8], align 1
@main.st = external hidden local_unnamed_addr global i64, align 8
@.str.37 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.41 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.42 = external hidden unnamed_addr constant [5 x i8], align 1
@targets_dir = external dso_local global [256 x i8], align 16
@.str.43 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.44 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.45 = external hidden unnamed_addr constant [7 x i8], align 1
@main.scd = external hidden local_unnamed_addr global i64, align 8
@.str.46 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.47 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.48 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.49 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.50 = external hidden unnamed_addr constant [11 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local float @processNet() local_unnamed_addr #0

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

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

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

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

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

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr nocapture noundef readnone %1) local_unnamed_addr #0 {
  %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) #7
  %8 = trunc i64 %7 to i32
  tail call void @srand(i32 noundef %8) #7
  %9 = tail call ptr @onnx_context_alloc_from_file(ptr noundef nonnull @.str.30, ptr noundef null, i32 noundef 0) #7
  store ptr %9, ptr @ctx, align 8, !tbaa !5
  tail call void @reprint()
  %10 = tail call ptr @XOpenDisplay(ptr noundef nonnull @.str.31) #7
  store ptr %10, ptr @d, align 8, !tbaa !5
  %11 = icmp eq ptr %10, null
  br i1 %11, label %12, label %14

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

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

23:                                               ; preds = %14
  tail call void @reprint()
  br label %24

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

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

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

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

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

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

47:                                               ; preds = %38
  call void @llvm.lifetime.start.p0(i64 136, ptr nonnull %4) #7
  %48 = load ptr, ptr @d, align 8, !tbaa !5
  %49 = call i32 @XGetWindowAttributes(ptr noundef %48, i64 noundef %40, ptr noundef nonnull %4) #7
  %50 = load i32, ptr %25, align 8, !tbaa !17
  %51 = sdiv i32 %50, 2
  store i32 %51, ptr @x, align 4, !tbaa !9
  %52 = load i32, ptr %26, align 4, !tbaa !19
  %53 = sdiv i32 %52, 2
  store i32 %53, 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 %27, align 4, !tbaa !20
  store i32 1, ptr %28, align 8, !tbaa !20
  %54 = load i64, ptr @twin, align 8, !tbaa !16
  store i64 %54, ptr %29, align 8, !tbaa !20
  store i64 %54, ptr %30, align 8, !tbaa !20
  store i32 1, ptr @enable, align 4, !tbaa !9
  %55 = call i32 @usleep(i32 noundef 100000) #7
  call void @reprint()
  call void @speakS(ptr noundef nonnull @.str.35)
  call void @llvm.lifetime.end.p0(i64 136, ptr nonnull %4) #7
  br label %.loopexit

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

.loopexit:                                        ; preds = %42, %.lr.ph, %.outer, %47, %56
  %58 = load i32, ptr @enable, align 4, !tbaa !9
  %59 = icmp eq i32 %58, 1
  br i1 %59, label %60, label %.outer.backedge

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

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

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

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

72:                                               ; preds = %70, %60
  %73 = call i32 @key_is_pressed(i64 noundef 65508)
  %.not20 = icmp eq i32 %73, 0
  br i1 %.not20, label %79, label %74

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

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

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

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

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

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

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

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

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

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

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

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

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

112:                                              ; preds = %97, %100, %102, %106
  %.pr = load i32, ptr @hotkeys, align 4, !tbaa !9
  %113 = icmp eq i32 %.pr, 1
  br i1 %113, label %114, label %.thread

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

116:                                              ; preds = %114
  %117 = call float @processNet()
  %118 = fcmp ogt float %117, 0x3F50624DE0000000
  br i1 %118, label %119, label %178

119:                                              ; preds = %116
  %120 = fcmp ogt float %117, 0x3FEF5C2900000000
  br i1 %120, label %121, label %148

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

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

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

.thread:                                          ; preds = %79, %114, %112
  %203 = load i32, ptr @crosshair, align 4, !tbaa !9
  %204 = icmp eq i32 %203, 1
  br i1 %204, label %205, label %230

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

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

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

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

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

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

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

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

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

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

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

.outer.backedge:                                  ; preds = %.critedge, %248, %245, %178, %148, %121, %242, %239, %236, %233, %230, %.loopexit
  %.012.ph.be = phi i32 [ %.012.ph, %242 ], [ %.012.ph, %239 ], [ %.012.ph, %236 ], [ %.012.ph, %233 ], [ %.012.ph, %230 ], [ %.012.ph, %.loopexit ], [ %.012.ph, %121 ], [ %.012.ph, %148 ], [ %.012.ph, %178 ], [ %249, %.critedge ], [ 0, %248 ], [ 0, %245 ]
  br label %.outer
}

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

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

declare ptr @onnx_context_alloc_from_file(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #5

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

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