; LLVM IR from NotManyIdeasDev/double-pendulum-sim :: double-pendulum-sim/Libraries/raygui-2.8/examples/controls_test_suite (GuiValueBox)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.Rectangle = type { float, float, float, float }
%struct.Vector2 = type { float, float }
%struct.Color = type { i8, i8, i8, i8 }

@guiState = external hidden global i32, align 4
@guiLocked = external hidden global i8, align 1
@guiAlpha = external hidden global float, align 4
@GuiValueBox.framesCounter = external hidden global i32, align 4
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #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 uwtable
declare dso_local i32 @GuiGetStyle(i32 noundef, i32 noundef) #2

; Function Attrs: nounwind uwtable
declare hidden void @GuiDrawRectangle(<2 x float>, <2 x float>, i32 noundef, i32, i32) #3

declare i32 @Fade(i32, float noundef) #4

declare i32 @GetColor(i32 noundef) #4

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

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

declare <2 x float> @GetMousePosition() #4

declare zeroext i1 @CheckCollisionPointRec(<2 x float>, <2 x float>, <2 x float>) #4

declare zeroext i1 @IsKeyDown(i32 noundef) #4

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

; Function Attrs: nounwind uwtable
declare hidden { <2 x float>, <2 x float> } @GetTextBounds(i32 noundef, <2 x float>, <2 x float>) #3

declare zeroext i1 @IsMouseButtonPressed(i32 noundef) #4

declare i32 @GetCharPressed() #4

; Function Attrs: nounwind willreturn memory(read)
declare i64 @strlen(ptr noundef) #6

declare zeroext i1 @IsKeyPressed(i32 noundef) #4

; Function Attrs: nounwind uwtable
define dso_local zeroext i1 @GuiValueBox(<2 x float> %0, <2 x float> %1, ptr noundef %2, ptr noundef %3, i32 noundef %4, i32 noundef %5, i1 noundef zeroext %6) #3 {
  %8 = alloca %struct.Rectangle, align 4
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i8, align 1
  %14 = alloca i32, align 4
  %15 = alloca i8, align 1
  %16 = alloca [33 x i8], align 16
  %17 = alloca %struct.Rectangle, align 4
  %18 = alloca %struct.Vector2, align 4
  %19 = alloca i8, align 1
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca %struct.Color, align 1
  %24 = alloca %struct.Color, align 1
  %25 = alloca %struct.Color, align 1
  %26 = alloca %struct.Color, align 1
  %27 = alloca %struct.Color, align 1
  %28 = alloca %struct.Rectangle, align 4
  %29 = alloca %struct.Color, align 1
  %30 = alloca %struct.Color, align 1
  %31 = alloca %struct.Rectangle, align 4
  %32 = alloca %struct.Color, align 1
  %33 = alloca %struct.Color, align 1
  %34 = alloca %struct.Color, align 1
  %35 = alloca %struct.Color, align 1
  %36 = alloca %struct.Color, align 1
  %37 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %8, i32 0, i32 0
  store <2 x float> %0, ptr %37, align 4
  %38 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %8, i32 0, i32 1
  store <2 x float> %1, ptr %38, align 4
  store ptr %2, ptr %9, align 8, !tbaa !5
  store ptr %3, ptr %10, align 8, !tbaa !5
  store i32 %4, ptr %11, align 4, !tbaa !9
  store i32 %5, ptr %12, align 4, !tbaa !9
  %39 = zext i1 %6 to i8
  store i8 %39, ptr %13, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #8
  %40 = load i32, ptr @guiState, align 4, !tbaa !9
  store i32 %40, ptr %14, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %15) #8
  store i8 0, ptr %15, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 33, ptr %16) #8
  call void @llvm.memset.p0.i64(ptr align 16 %16, i8 0, i64 33, i1 false)
  %41 = getelementptr inbounds [33 x i8], ptr %16, i64 0, i64 0
  %42 = load ptr, ptr %10, align 8, !tbaa !5
  %43 = load i32, ptr %42, align 4, !tbaa !9
  %44 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %41, ptr noundef @.str.1, i32 noundef %43) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #8
  call void @llvm.memset.p0.i64(ptr align 4 %17, i8 0, i64 16, i1 false)
  %45 = load ptr, ptr %9, align 8, !tbaa !5
  %46 = icmp ne ptr %45, null
  br i1 %46, label %47, label %88

47:                                               ; preds = %7
  %48 = load ptr, ptr %9, align 8, !tbaa !5
  %49 = call i32 @GetTextWidth(ptr noundef %48)
  %50 = sitofp i32 %49 to float
  %51 = getelementptr inbounds %struct.Rectangle, ptr %17, i32 0, i32 2
  store float %50, ptr %51, align 4, !tbaa !13
  %52 = call i32 @GuiGetStyle(i32 noundef 0, i32 noundef 16)
  %53 = sitofp i32 %52 to float
  %54 = getelementptr inbounds %struct.Rectangle, ptr %17, i32 0, i32 3
  store float %53, ptr %54, align 4, !tbaa !16
  %55 = getelementptr inbounds %struct.Rectangle, ptr %8, i32 0, i32 0
  %56 = load float, ptr %55, align 4, !tbaa !17
  %57 = getelementptr inbounds %struct.Rectangle, ptr %8, i32 0, i32 2
  %58 = load float, ptr %57, align 4, !tbaa !13
  %59 = fadd float %56, %58
  %60 = call i32 @GuiGetStyle(i32 noundef 10, i32 noundef 13)
  %61 = sitofp i32 %60 to float
  %62 = fadd float %59, %61
  %63 = getelementptr inbounds %struct.Rectangle, ptr %17, i32 0, i32 0
  store float %62, ptr %63, align 4, !tbaa !17
  %64 = getelementptr inbounds %struct.Rectangle, ptr %8, i32 0, i32 1
  %65 = load float, ptr %64, align 4, !tbaa !18
  %66 = getelementptr inbounds %struct.Rectangle, ptr %8, i32 0, i32 3
  %67 = load float, ptr %66, align 4, !tbaa !16
  %68 = fdiv float %67, 2.000000e+00
  %69 = fadd float %65, %68
  %70 = call i32 @GuiGetStyle(i32 noundef 0, i32 noundef 16)
  %71 = sdiv i32 %70, 2
  %72 = sitofp i32 %71 to float
  %73 = fsub float %69, %72
  %74 = getelementptr inbounds %struct.Rectangle, ptr %17, i32 0, i32 1
  store float %73, ptr %74, align 4, !tbaa !18
  %75 = call i32 @GuiGetStyle(i32 noundef 10, i32 noundef 14)
  %76 = icmp eq i32 %75, 0
  br i1 %76, label %77, label %87

77:                                               ; preds = %47
  %78 = getelementptr inbounds %struct.Rectangle, ptr %8, i32 0, i32 0
  %79 = load float, ptr %78, align 4, !tbaa !17
  %80 = getelementptr inbounds %struct.Rectangle, ptr %17, i32 0, i32 2
  %81 = load float, ptr %80, align 4, !tbaa !13
  %82 = fsub float %79, %81
  %83 = call i32 @GuiGetStyle(i32 noundef 10, i32 noundef 13)
  %84 = sitofp i32 %83 to float
  %85 = fsub float %82, %84
  %86 = getelementptr inbounds %struct.Rectangle, ptr %17, i32 0, i32 0
  store float %85, ptr %86, align 4, !tbaa !17
  br label %87

87:                                               ; preds = %77, %47
  br label %88

88:                                               ; preds = %87, %7
  %89 = load i32, ptr %14, align 4, !tbaa !9
  %90 = icmp ne i32 %89, 3
  br i1 %90, label %91, label %222

91:                                               ; preds = %88
  %92 = load i8, ptr @guiLocked, align 1, !tbaa !11, !range !19, !noundef !20
  %93 = trunc i8 %92 to i1
  br i1 %93, label %222, label %94

94:                                               ; preds = %91
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #8
  %95 = call <2 x float> @GetMousePosition()
  store <2 x float> %95, ptr %18, align 4
  call void @llvm.lifetime.start.p0(i64 1, ptr %19) #8
  store i8 0, ptr %19, align 1, !tbaa !11
  %96 = load i8, ptr %13, align 1, !tbaa !11, !range !19, !noundef !20
  %97 = trunc i8 %96 to i1
  br i1 %97, label %98, label %188

98:                                               ; preds = %94
  store i32 2, ptr %14, align 4, !tbaa !9
  %99 = load i32, ptr @GuiValueBox.framesCounter, align 4, !tbaa !9
  %100 = add nsw i32 %99, 1
  store i32 %100, ptr @GuiValueBox.framesCounter, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #8
  %101 = getelementptr inbounds [33 x i8], ptr %16, i64 0, i64 0
  %102 = call i64 @strlen(ptr noundef %101) #9
  %103 = trunc i64 %102 to i32
  store i32 %103, ptr %20, align 4, !tbaa !9
  %104 = load i32, ptr %20, align 4, !tbaa !9
  %105 = icmp slt i32 %104, 32
  br i1 %105, label %106, label %131

106:                                              ; preds = %98
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #8
  %107 = getelementptr inbounds %struct.Rectangle, ptr %8, i32 0, i32 2
  %108 = load float, ptr %107, align 4, !tbaa !13
  %109 = fptosi float %108 to i32
  store i32 %109, ptr %21, align 4, !tbaa !9
  %110 = getelementptr inbounds [33 x i8], ptr %16, i64 0, i64 0
  %111 = call i32 @GetTextWidth(ptr noundef %110)
  %112 = load i32, ptr %21, align 4, !tbaa !9
  %113 = icmp slt i32 %111, %112
  br i1 %113, label %114, label %130

114:                                              ; preds = %106
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #8
  %115 = call i32 @GetCharPressed()
  store i32 %115, ptr %22, align 4, !tbaa !9
  %116 = load i32, ptr %22, align 4, !tbaa !9
  %117 = icmp sge i32 %116, 48
  br i1 %117, label %118, label %129

118:                                              ; preds = %114
  %119 = load i32, ptr %22, align 4, !tbaa !9
  %120 = icmp sle i32 %119, 57
  br i1 %120, label %121, label %129

121:                                              ; preds = %118
  %122 = load i32, ptr %22, align 4, !tbaa !9
  %123 = trunc i32 %122 to i8
  %124 = load i32, ptr %20, align 4, !tbaa !9
  %125 = sext i32 %124 to i64
  %126 = getelementptr inbounds [33 x i8], ptr %16, i64 0, i64 %125
  store i8 %123, ptr %126, align 1, !tbaa !21
  %127 = load i32, ptr %20, align 4, !tbaa !9
  %128 = add nsw i32 %127, 1
  store i32 %128, ptr %20, align 4, !tbaa !9
  store i8 1, ptr %19, align 1, !tbaa !11
  br label %129

129:                                              ; preds = %121, %118, %114
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #8
  br label %130

130:                                              ; preds = %129, %106
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #8
  br label %131

131:                                              ; preds = %130, %98
  %132 = load i32, ptr %20, align 4, !tbaa !9
  %133 = icmp sgt i32 %132, 0
  br i1 %133, label %134, label %168

134:                                              ; preds = %131
  %135 = call zeroext i1 @IsKeyPressed(i32 noundef 259)
  br i1 %135, label %136, label %146

136:                                              ; preds = %134
  %137 = load i32, ptr %20, align 4, !tbaa !9
  %138 = add nsw i32 %137, -1
  store i32 %138, ptr %20, align 4, !tbaa !9
  %139 = load i32, ptr %20, align 4, !tbaa !9
  %140 = sext i32 %139 to i64
  %141 = getelementptr inbounds [33 x i8], ptr %16, i64 0, i64 %140
  store i8 0, ptr %141, align 1, !tbaa !21
  store i32 0, ptr @GuiValueBox.framesCounter, align 4, !tbaa !9
  %142 = load i32, ptr %20, align 4, !tbaa !9
  %143 = icmp slt i32 %142, 0
  br i1 %143, label %144, label %145

144:                                              ; preds = %136
  store i32 0, ptr %20, align 4, !tbaa !9
  br label %145

145:                                              ; preds = %144, %136
  store i8 1, ptr %19, align 1, !tbaa !11
  br label %167

146:                                              ; preds = %134
  %147 = call zeroext i1 @IsKeyDown(i32 noundef 259)
  br i1 %147, label %148, label %166

148:                                              ; preds = %146
  %149 = load i32, ptr @GuiValueBox.framesCounter, align 4, !tbaa !9
  %150 = icmp sgt i32 %149, 20
  br i1 %150, label %151, label %158

151:                                              ; preds = %148
  %152 = load i32, ptr @GuiValueBox.framesCounter, align 4, !tbaa !9
  %153 = srem i32 %152, 2
  %154 = icmp eq i32 %153, 0
  br i1 %154, label %155, label %158

155:                                              ; preds = %151
  %156 = load i32, ptr %20, align 4, !tbaa !9
  %157 = add nsw i32 %156, -1
  store i32 %157, ptr %20, align 4, !tbaa !9
  br label %158

158:                                              ; preds = %155, %151, %148
  %159 = load i32, ptr %20, align 4, !tbaa !9
  %160 = sext i32 %159 to i64
  %161 = getelementptr inbounds [33 x i8], ptr %16, i64 0, i64 %160
  store i8 0, ptr %161, align 1, !tbaa !21
  %162 = load i32, ptr %20, align 4, !tbaa !9
  %163 = icmp slt i32 %162, 0
  br i1 %163, label %164, label %165

164:                                              ; preds = %158
  store i32 0, ptr %20, align 4, !tbaa !9
  br label %165

165:                                              ; preds = %164, %158
  store i8 1, ptr %19, align 1, !tbaa !11
  br label %166

166:                                              ; preds = %165, %146
  br label %167

167:                                              ; preds = %166, %145
  br label %168

168:                                              ; preds = %167, %131
  %169 = load i8, ptr %19, align 1, !tbaa !11, !range !19, !noundef !20
  %170 = trunc i8 %169 to i1
  br i1 %170, label %171, label %175

171:                                              ; preds = %168
  %172 = getelementptr inbounds [33 x i8], ptr %16, i64 0, i64 0
  %173 = call i32 @TextToInteger(ptr noundef %172)
  %174 = load ptr, ptr %10, align 8, !tbaa !5
  store i32 %173, ptr %174, align 4, !tbaa !9
  br label %175

175:                                              ; preds = %171, %168
  %176 = call zeroext i1 @IsKeyPressed(i32 noundef 257)
  br i1 %176, label %186, label %177

177:                                              ; preds = %175
  %178 = load <2 x float>, ptr %18, align 4
  %179 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %8, i32 0, i32 0
  %180 = load <2 x float>, ptr %179, align 4
  %181 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %8, i32 0, i32 1
  %182 = load <2 x float>, ptr %181, align 4
  %183 = call zeroext i1 @CheckCollisionPointRec(<2 x float> %178, <2 x float> %180, <2 x float> %182)
  br i1 %183, label %187, label %184

184:                                              ; preds = %177
  %185 = call zeroext i1 @IsMouseButtonPressed(i32 noundef 0)
  br i1 %185, label %186, label %187

186:                                              ; preds = %184, %175
  store i8 1, ptr %15, align 1, !tbaa !11
  br label %187

187:                                              ; preds = %186, %184, %177
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #8
  br label %217

188:                                              ; preds = %94
  %189 = load ptr, ptr %10, align 8, !tbaa !5
  %190 = load i32, ptr %189, align 4, !tbaa !9
  %191 = load i32, ptr %12, align 4, !tbaa !9
  %192 = icmp sgt i32 %190, %191
  br i1 %192, label %193, label %196

193:                                              ; preds = %188
  %194 = load i32, ptr %12, align 4, !tbaa !9
  %195 = load ptr, ptr %10, align 8, !tbaa !5
  store i32 %194, ptr %195, align 4, !tbaa !9
  br label %205

196:                                              ; preds = %188
  %197 = load ptr, ptr %10, align 8, !tbaa !5
  %198 = load i32, ptr %197, align 4, !tbaa !9
  %199 = load i32, ptr %11, align 4, !tbaa !9
  %200 = icmp slt i32 %198, %199
  br i1 %200, label %201, label %204

201:                                              ; preds = %196
  %202 = load i32, ptr %11, align 4, !tbaa !9
  %203 = load ptr, ptr %10, align 8, !tbaa !5
  store i32 %202, ptr %203, align 4, !tbaa !9
  br label %204

204:                                              ; preds = %201, %196
  br label %205

205:                                              ; preds = %204, %193
  %206 = load <2 x float>, ptr %18, align 4
  %207 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %8, i32 0, i32 0
  %208 = load <2 x float>, ptr %207, align 4
  %209 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %8, i32 0, i32 1
  %210 = load <2 x float>, ptr %209, align 4
  %211 = call zeroext i1 @CheckCollisionPointRec(<2 x float> %206, <2 x float> %208, <2 x float> %210)
  br i1 %211, label %212, label %216

212:                                              ; preds = %205
  store i32 1, ptr %14, align 4, !tbaa !9
  %213 = call zeroext i1 @IsMouseButtonPressed(i32 noundef 0)
  br i1 %213, label %214, label %215

214:                                              ; preds = %212
  store i8 1, ptr %15, align 1, !tbaa !11
  br label %215

215:                                              ; preds = %214, %212
  br label %216

216:                                              ; preds = %215, %205
  br label %217

217:                                              ; preds = %216, %187
  %218 = load i8, ptr %15, align 1, !tbaa !11, !range !19, !noundef !20
  %219 = trunc i8 %218 to i1
  br i1 %219, label %220, label %221

220:                                              ; preds = %217
  store i32 0, ptr @GuiValueBox.framesCounter, align 4, !tbaa !9
  br label %221

221:                                              ; preds = %220, %217
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  br label %222

222:                                              ; preds = %221, %91, %88
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #8
  call void @llvm.memset.p0.i64(ptr align 1 %23, i8 0, i64 4, i1 false)
  %223 = load i32, ptr %14, align 4, !tbaa !9
  %224 = icmp eq i32 %223, 2
  br i1 %224, label %225, label %228

225:                                              ; preds = %222
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #8
  %226 = call i32 @GuiGetStyle(i32 noundef 10, i32 noundef 7)
  %227 = call i32 @GetColor(i32 noundef %226)
  store i32 %227, ptr %24, align 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %23, ptr align 1 %24, i64 4, i1 false), !tbaa.struct !22
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #8
  br label %235

228:                                              ; preds = %222
  %229 = load i32, ptr %14, align 4, !tbaa !9
  %230 = icmp eq i32 %229, 3
  br i1 %230, label %231, label %234

231:                                              ; preds = %228
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #8
  %232 = call i32 @GuiGetStyle(i32 noundef 10, i32 noundef 10)
  %233 = call i32 @GetColor(i32 noundef %232)
  store i32 %233, ptr %25, align 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %23, ptr align 1 %25, i64 4, i1 false), !tbaa.struct !22
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #8
  br label %234

234:                                              ; preds = %231, %228
  br label %235

235:                                              ; preds = %234, %225
  %236 = call i32 @GuiGetStyle(i32 noundef 10, i32 noundef 12)
  %237 = load i32, ptr %14, align 4, !tbaa !9
  %238 = mul i32 %237, 3
  %239 = add i32 0, %238
  %240 = call i32 @GuiGetStyle(i32 noundef 10, i32 noundef %239)
  %241 = call i32 @GetColor(i32 noundef %240)
  store i32 %241, ptr %27, align 1
  %242 = load float, ptr @guiAlpha, align 4, !tbaa !23
  %243 = load i32, ptr %27, align 1
  %244 = call i32 @Fade(i32 %243, float noundef %242)
  store i32 %244, ptr %26, align 1
  %245 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %8, i32 0, i32 0
  %246 = load <2 x float>, ptr %245, align 4
  %247 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %8, i32 0, i32 1
  %248 = load <2 x float>, ptr %247, align 4
  %249 = load i32, ptr %26, align 1
  %250 = load i32, ptr %23, align 1
  call void @GuiDrawRectangle(<2 x float> %246, <2 x float> %248, i32 noundef %236, i32 %249, i32 %250)
  %251 = getelementptr inbounds [33 x i8], ptr %16, i64 0, i64 0
  %252 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %8, i32 0, i32 0
  %253 = load <2 x float>, ptr %252, align 4
  %254 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %8, i32 0, i32 1
  %255 = load <2 x float>, ptr %254, align 4
  %256 = call { <2 x float>, <2 x float> } @GetTextBounds(i32 noundef 10, <2 x float> %253, <2 x float> %255)
  %257 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %28, i32 0, i32 0
  %258 = extractvalue { <2 x float>, <2 x float> } %256, 0
  store <2 x float> %258, ptr %257, align 4
  %259 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %28, i32 0, i32 1
  %260 = extractvalue { <2 x float>, <2 x float> } %256, 1
  store <2 x float> %260, ptr %259, align 4
  %261 = load i32, ptr %14, align 4, !tbaa !9
  %262 = mul i32 %261, 3
  %263 = add i32 2, %262
  %264 = call i32 @GuiGetStyle(i32 noundef 10, i32 noundef %263)
  %265 = call i32 @GetColor(i32 noundef %264)
  store i32 %265, ptr %30, align 1
  %266 = load float, ptr @guiAlpha, align 4, !tbaa !23
  %267 = load i32, ptr %30, align 1
  %268 = call i32 @Fade(i32 %267, float noundef %266)
  store i32 %268, ptr %29, align 1
  %269 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %28, i32 0, i32 0
  %270 = load <2 x float>, ptr %269, align 4
  %271 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %28, i32 0, i32 1
  %272 = load <2 x float>, ptr %271, align 4
  %273 = load i32, ptr %29, align 1
  call void @GuiDrawText(ptr noundef %251, <2 x float> %270, <2 x float> %272, i32 noundef 1, i32 %273)
  %274 = load i32, ptr %14, align 4, !tbaa !9
  %275 = icmp eq i32 %274, 2
  br i1 %275, label %276, label %328

276:                                              ; preds = %235
  %277 = load i8, ptr %13, align 1, !tbaa !11, !range !19, !noundef !20
  %278 = trunc i8 %277 to i1
  br i1 %278, label %279, label %328

279:                                              ; preds = %276
  %280 = load i32, ptr @GuiValueBox.framesCounter, align 4, !tbaa !9
  %281 = sdiv i32 %280, 20
  %282 = srem i32 %281, 2
  %283 = icmp eq i32 %282, 0
  br i1 %283, label %284, label %328

284:                                              ; preds = %279
  call void @llvm.lifetime.start.p0(i64 16, ptr %31) #8
  %285 = getelementptr inbounds %struct.Rectangle, ptr %31, i32 0, i32 0
  %286 = getelementptr inbounds %struct.Rectangle, ptr %8, i32 0, i32 0
  %287 = load float, ptr %286, align 4, !tbaa !17
  %288 = getelementptr inbounds [33 x i8], ptr %16, i64 0, i64 0
  %289 = call i32 @GetTextWidth(ptr noundef %288)
  %290 = sdiv i32 %289, 2
  %291 = sitofp i32 %290 to float
  %292 = fadd float %287, %291
  %293 = getelementptr inbounds %struct.Rectangle, ptr %8, i32 0, i32 2
  %294 = load float, ptr %293, align 4, !tbaa !13
  %295 = fdiv float %294, 2.000000e+00
  %296 = fadd float %292, %295
  %297 = fadd float %296, 2.000000e+00
  store float %297, ptr %285, align 4, !tbaa !17
  %298 = getelementptr inbounds %struct.Rectangle, ptr %31, i32 0, i32 1
  %299 = getelementptr inbounds %struct.Rectangle, ptr %8, i32 0, i32 1
  %300 = load float, ptr %299, align 4, !tbaa !18
  %301 = call i32 @GuiGetStyle(i32 noundef 10, i32 noundef 12)
  %302 = mul nsw i32 2, %301
  %303 = sitofp i32 %302 to float
  %304 = fadd float %300, %303
  store float %304, ptr %298, align 4, !tbaa !18
  %305 = getelementptr inbounds %struct.Rectangle, ptr %31, i32 0, i32 2
  store float 1.000000e+00, ptr %305, align 4, !tbaa !13
  %306 = getelementptr inbounds %struct.Rectangle, ptr %31, i32 0, i32 3
  %307 = getelementptr inbounds %struct.Rectangle, ptr %8, i32 0, i32 3
  %308 = load float, ptr %307, align 4, !tbaa !16
  %309 = call i32 @GuiGetStyle(i32 noundef 10, i32 noundef 12)
  %310 = mul nsw i32 4, %309
  %311 = sitofp i32 %310 to float
  %312 = fsub float %308, %311
  store float %312, ptr %306, align 4, !tbaa !16
  %313 = getelementptr inbounds %struct.Color, ptr %32, i32 0, i32 0
  store i8 0, ptr %313, align 1, !tbaa !24
  %314 = getelementptr inbounds %struct.Color, ptr %32, i32 0, i32 1
  store i8 0, ptr %314, align 1, !tbaa !26
  %315 = getelementptr inbounds %struct.Color, ptr %32, i32 0, i32 2
  store i8 0, ptr %315, align 1, !tbaa !27
  %316 = getelementptr inbounds %struct.Color, ptr %32, i32 0, i32 3
  store i8 0, ptr %316, align 1, !tbaa !28
  %317 = call i32 @GuiGetStyle(i32 noundef 10, i32 noundef 6)
  %318 = call i32 @GetColor(i32 noundef %317)
  store i32 %318, ptr %34, align 1
  %319 = load float, ptr @guiAlpha, align 4, !tbaa !23
  %320 = load i32, ptr %34, align 1
  %321 = call i32 @Fade(i32 %320, float noundef %319)
  store i32 %321, ptr %33, align 1
  %322 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %31, i32 0, i32 0
  %323 = load <2 x float>, ptr %322, align 4
  %324 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %31, i32 0, i32 1
  %325 = load <2 x float>, ptr %324, align 4
  %326 = load i32, ptr %32, align 1
  %327 = load i32, ptr %33, align 1
  call void @GuiDrawRectangle(<2 x float> %323, <2 x float> %325, i32 noundef 0, i32 %326, i32 %327)
  call void @llvm.lifetime.end.p0(i64 16, ptr %31) #8
  br label %328

328:                                              ; preds = %284, %279, %276, %235
  %329 = load ptr, ptr %9, align 8, !tbaa !5
  %330 = icmp ne ptr %329, null
  br i1 %330, label %331, label %350

331:                                              ; preds = %328
  %332 = load ptr, ptr %9, align 8, !tbaa !5
  %333 = call i32 @GuiGetStyle(i32 noundef 10, i32 noundef 14)
  %334 = icmp eq i32 %333, 2
  %335 = zext i1 %334 to i64
  %336 = select i1 %334, i32 0, i32 2
  %337 = load i32, ptr %14, align 4, !tbaa !9
  %338 = mul i32 %337, 3
  %339 = add i32 2, %338
  %340 = call i32 @GuiGetStyle(i32 noundef 1, i32 noundef %339)
  %341 = call i32 @GetColor(i32 noundef %340)
  store i32 %341, ptr %36, align 1
  %342 = load float, ptr @guiAlpha, align 4, !tbaa !23
  %343 = load i32, ptr %36, align 1
  %344 = call i32 @Fade(i32 %343, float noundef %342)
  store i32 %344, ptr %35, align 1
  %345 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %17, i32 0, i32 0
  %346 = load <2 x float>, ptr %345, align 4
  %347 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %17, i32 0, i32 1
  %348 = load <2 x float>, ptr %347, align 4
  %349 = load i32, ptr %35, align 1
  call void @GuiDrawText(ptr noundef %332, <2 x float> %346, <2 x float> %348, i32 noundef %336, i32 %349)
  br label %350

350:                                              ; preds = %331, %328
  %351 = load i8, ptr %15, align 1, !tbaa !11, !range !19, !noundef !20
  %352 = trunc i8 %351 to i1
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 33, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #8
  ret i1 %352
}

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

declare i32 @TextToInteger(ptr noundef) #4

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"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, !12, i64 0}
!12 = !{!"_Bool", !7, i64 0}
!13 = !{!14, !15, i64 8}
!14 = !{!"Rectangle", !15, i64 0, !15, i64 4, !15, i64 8, !15, i64 12}
!15 = !{!"float", !7, i64 0}
!16 = !{!14, !15, i64 12}
!17 = !{!14, !15, i64 0}
!18 = !{!14, !15, i64 4}
!19 = !{i8 0, i8 2}
!20 = !{}
!21 = !{!7, !7, i64 0}
!22 = !{i64 0, i64 1, !21, i64 1, i64 1, !21, i64 2, i64 1, !21, i64 3, i64 1, !21}
!23 = !{!15, !15, i64 0}
!24 = !{!25, !7, i64 0}
!25 = !{!"Color", !7, i64 0, !7, i64 1, !7, i64 2, !7, i64 3}
!26 = !{!25, !7, i64 1}
!27 = !{!25, !7, i64 2}
!28 = !{!25, !7, i64 3}


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

@guiState = external hidden local_unnamed_addr global i32, align 4
@guiLocked = external hidden local_unnamed_addr global i8, align 1
@guiAlpha = external hidden local_unnamed_addr global float, align 4
@GuiValueBox.framesCounter = external hidden local_unnamed_addr global i32, align 4
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1

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

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

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

; Function Attrs: nounwind uwtable
declare hidden void @GuiDrawRectangle(<2 x float>, <2 x float>, i32 noundef, i32, i32) local_unnamed_addr #2

declare i32 @Fade(i32, float noundef) local_unnamed_addr #3

declare i32 @GetColor(i32 noundef) local_unnamed_addr #3

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

; Function Attrs: nounwind uwtable
declare hidden i32 @GetTextWidth(ptr noundef) local_unnamed_addr #2

declare <2 x float> @GetMousePosition() local_unnamed_addr #3

declare zeroext i1 @CheckCollisionPointRec(<2 x float>, <2 x float>, <2 x float>) local_unnamed_addr #3

declare zeroext i1 @IsKeyDown(i32 noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
declare hidden void @GuiDrawText(ptr noundef, <2 x float>, <2 x float>, i32 noundef, i32) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare hidden { <2 x float>, <2 x float> } @GetTextBounds(i32 noundef, <2 x float>, <2 x float>) local_unnamed_addr #2

declare zeroext i1 @IsMouseButtonPressed(i32 noundef) local_unnamed_addr #3

declare i32 @GetCharPressed() local_unnamed_addr #3

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i64 @strlen(ptr nocapture noundef) local_unnamed_addr #5

declare zeroext i1 @IsKeyPressed(i32 noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
define dso_local noundef zeroext i1 @GuiValueBox(<2 x float> %0, <2 x float> %1, ptr noundef %2, ptr nocapture noundef %3, i32 noundef %4, i32 noundef %5, i1 noundef zeroext %6) local_unnamed_addr #2 {
  %8 = alloca [33 x i8], align 16
  %9 = load i32, ptr @guiState, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 33, ptr nonnull %8) #7
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(33) %8, i8 0, i64 33, i1 false)
  %10 = load i32, ptr %3, align 4, !tbaa !5
  %11 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %8, ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %10) #7
  %.not = icmp eq ptr %2, null
  br i1 %.not, label %37, label %12

12:                                               ; preds = %7
  %13 = tail call i32 @GetTextWidth(ptr noundef nonnull %2)
  %14 = tail call i32 @GuiGetStyle(i32 noundef 0, i32 noundef 16)
  %15 = insertelement <2 x i32> poison, i32 %13, i64 0
  %16 = insertelement <2 x i32> %15, i32 %14, i64 1
  %17 = sitofp <2 x i32> %16 to <2 x float>
  %18 = fadd <2 x float> %0, %1
  %19 = extractelement <2 x float> %18, i64 0
  %20 = tail call i32 @GuiGetStyle(i32 noundef 10, i32 noundef 13)
  %21 = sitofp i32 %20 to float
  %22 = fadd float %19, %21
  %.sroa.035.0.vec.insert = insertelement <2 x float> poison, float %22, i64 0
  %.sroa.065.4.vec.extract = extractelement <2 x float> %0, i64 1
  %.sroa.10.12.vec.extract = extractelement <2 x float> %1, i64 1
  %23 = fmul float %.sroa.10.12.vec.extract, 5.000000e-01
  %24 = fadd float %.sroa.065.4.vec.extract, %23
  %25 = tail call i32 @GuiGetStyle(i32 noundef 0, i32 noundef 16)
  %26 = sdiv i32 %25, 2
  %27 = sitofp i32 %26 to float
  %28 = fsub float %24, %27
  %.sroa.035.4.vec.insert = insertelement <2 x float> %.sroa.035.0.vec.insert, float %28, i64 1
  %29 = tail call i32 @GuiGetStyle(i32 noundef 10, i32 noundef 14)
  %30 = icmp eq i32 %29, 0
  br i1 %30, label %31, label %37

31:                                               ; preds = %12
  %32 = fsub <2 x float> %0, %17
  %33 = extractelement <2 x float> %32, i64 0
  %34 = tail call i32 @GuiGetStyle(i32 noundef 10, i32 noundef 13)
  %35 = sitofp i32 %34 to float
  %36 = fsub float %33, %35
  %.sroa.035.0.vec.insert38 = insertelement <2 x float> %.sroa.035.4.vec.insert, float %36, i64 0
  br label %37

37:                                               ; preds = %12, %31, %7
  %.sroa.035.0 = phi <2 x float> [ %.sroa.035.0.vec.insert38, %31 ], [ %.sroa.035.4.vec.insert, %12 ], [ zeroinitializer, %7 ]
  %.sroa.7.0 = phi <2 x float> [ %17, %31 ], [ %17, %12 ], [ zeroinitializer, %7 ]
  %.not106 = icmp eq i32 %9, 3
  br i1 %.not106, label %98, label %38

38:                                               ; preds = %37
  %39 = load i8, ptr @guiLocked, align 1, !tbaa !9, !range !11, !noundef !12
  %40 = trunc nuw i8 %39 to i1
  br i1 %40, label %.thread118, label %41

41:                                               ; preds = %38
  %42 = tail call <2 x float> @GetMousePosition() #7
  br i1 %6, label %43, label %86

43:                                               ; preds = %41
  %44 = load i32, ptr @GuiValueBox.framesCounter, align 4, !tbaa !5
  %45 = add nsw i32 %44, 1
  store i32 %45, ptr @GuiValueBox.framesCounter, align 4, !tbaa !5
  %46 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %8) #8
  %47 = trunc i64 %46 to i32
  %48 = icmp slt i32 %47, 32
  br i1 %48, label %49, label %.thread

49:                                               ; preds = %43
  %.sroa.10.8.vec.extract81 = extractelement <2 x float> %1, i64 0
  %50 = fptosi float %.sroa.10.8.vec.extract81 to i32
  %51 = call i32 @GetTextWidth(ptr noundef nonnull %8)
  %52 = icmp slt i32 %51, %50
  br i1 %52, label %53, label %61

53:                                               ; preds = %49
  %54 = call i32 @GetCharPressed() #7
  %55 = add i32 %54, -48
  %or.cond = icmp ult i32 %55, 10
  br i1 %or.cond, label %56, label %61

56:                                               ; preds = %53
  %57 = trunc nuw nsw i32 %54 to i8
  %sext = shl i64 %46, 32
  %58 = ashr exact i64 %sext, 32
  %59 = getelementptr inbounds [33 x i8], ptr %8, i64 0, i64 %58
  store i8 %57, ptr %59, align 1, !tbaa !13
  %60 = add nsw i32 %47, 1
  br label %61

61:                                               ; preds = %49, %56, %53
  %.293 = phi i32 [ %47, %49 ], [ %60, %56 ], [ %47, %53 ]
  %.290 = phi i1 [ false, %49 ], [ true, %56 ], [ false, %53 ]
  %62 = icmp sgt i32 %.293, 0
  br i1 %62, label %.thread, label %78

.thread:                                          ; preds = %43, %61
  %.290114 = phi i1 [ %.290, %61 ], [ false, %43 ]
  %.293113 = phi i32 [ %.293, %61 ], [ %47, %43 ]
  %63 = call zeroext i1 @IsKeyPressed(i32 noundef 259) #7
  br i1 %63, label %64, label %68

64:                                               ; preds = %.thread
  %65 = add nsw i32 %.293113, -1
  %66 = zext nneg i32 %65 to i64
  %67 = getelementptr inbounds [33 x i8], ptr %8, i64 0, i64 %66
  store i8 0, ptr %67, align 1, !tbaa !13
  store i32 0, ptr @GuiValueBox.framesCounter, align 4, !tbaa !5
  br label %.thread115

68:                                               ; preds = %.thread
  %69 = call zeroext i1 @IsKeyDown(i32 noundef 259) #7
  br i1 %69, label %70, label %78

70:                                               ; preds = %68
  %71 = load i32, ptr @GuiValueBox.framesCounter, align 4, !tbaa !5
  %72 = icmp sgt i32 %71, 20
  %73 = and i32 %71, 1
  %74 = icmp eq i32 %73, 0
  %or.cond108 = and i1 %72, %74
  %75 = sext i1 %or.cond108 to i32
  %.394 = add nsw i32 %.293113, %75
  %76 = zext nneg i32 %.394 to i64
  %77 = getelementptr inbounds [33 x i8], ptr %8, i64 0, i64 %76
  store i8 0, ptr %77, align 1, !tbaa !13
  br label %.thread115

78:                                               ; preds = %68, %61
  %.3 = phi i1 [ %.290114, %68 ], [ %.290, %61 ]
  br i1 %.3, label %.thread115, label %80

.thread115:                                       ; preds = %70, %64, %78
  %79 = call i32 @TextToInteger(ptr noundef nonnull %8) #7
  store i32 %79, ptr %3, align 4, !tbaa !5
  br label %80

80:                                               ; preds = %.thread115, %78
  %81 = call zeroext i1 @IsKeyPressed(i32 noundef 257) #7
  br i1 %81, label %.thread121, label %82

82:                                               ; preds = %80
  %83 = call zeroext i1 @CheckCollisionPointRec(<2 x float> %42, <2 x float> %0, <2 x float> %1) #7
  br i1 %83, label %.thread118.thread, label %84

84:                                               ; preds = %82
  %85 = call zeroext i1 @IsMouseButtonPressed(i32 noundef 0) #7
  br i1 %85, label %.thread121, label %.thread118.thread

86:                                               ; preds = %41
  %87 = load i32, ptr %3, align 4, !tbaa !5
  %88 = icmp sgt i32 %87, %5
  br i1 %88, label %.sink.split, label %89

89:                                               ; preds = %86
  %90 = icmp slt i32 %87, %4
  br i1 %90, label %.sink.split, label %91

.sink.split:                                      ; preds = %89, %86
  %.sink = phi i32 [ %5, %86 ], [ %4, %89 ]
  store i32 %.sink, ptr %3, align 4, !tbaa !5
  br label %91

91:                                               ; preds = %.sink.split, %89
  %92 = tail call zeroext i1 @CheckCollisionPointRec(<2 x float> %42, <2 x float> %0, <2 x float> %1) #7
  br i1 %92, label %93, label %.thread118

93:                                               ; preds = %91
  %94 = tail call zeroext i1 @IsMouseButtonPressed(i32 noundef 0) #7
  br i1 %94, label %.thread121, label %.thread134

.thread121:                                       ; preds = %84, %80, %93
  %.0125 = phi i32 [ 1, %93 ], [ 2, %80 ], [ 2, %84 ]
  store i32 0, ptr @GuiValueBox.framesCounter, align 4, !tbaa !5
  br label %.thread118

.thread118:                                       ; preds = %91, %.thread121, %38
  %.2 = phi i1 [ false, %38 ], [ true, %.thread121 ], [ false, %91 ]
  %.1 = phi i32 [ %9, %38 ], [ %.0125, %.thread121 ], [ %9, %91 ]
  %95 = icmp eq i32 %.1, 2
  br i1 %95, label %.thread118.thread, label %.thread134

.thread118.thread:                                ; preds = %84, %82, %.thread118
  %.2144 = phi i1 [ %.2, %.thread118 ], [ false, %82 ], [ false, %84 ]
  %96 = call i32 @GuiGetStyle(i32 noundef 10, i32 noundef 7)
  %97 = call i32 @GetColor(i32 noundef %96) #7
  br label %.thread134

98:                                               ; preds = %37
  %99 = tail call i32 @GuiGetStyle(i32 noundef 10, i32 noundef 10)
  %100 = tail call i32 @GetColor(i32 noundef %99) #7
  br label %.thread134

.thread134:                                       ; preds = %.thread118, %93, %98, %.thread118.thread
  %.not109.not = phi i1 [ true, %.thread118.thread ], [ false, %98 ], [ false, %93 ], [ false, %.thread118 ]
  %.1132 = phi i32 [ 2, %.thread118.thread ], [ 3, %98 ], [ 1, %93 ], [ %.1, %.thread118 ]
  %.2130 = phi i1 [ %.2144, %.thread118.thread ], [ false, %98 ], [ false, %93 ], [ %.2, %.thread118 ]
  %.sroa.018.0 = phi i32 [ %97, %.thread118.thread ], [ %100, %98 ], [ 0, %93 ], [ 0, %.thread118 ]
  %101 = call i32 @GuiGetStyle(i32 noundef 10, i32 noundef 12)
  %102 = mul i32 %.1132, 3
  %103 = call i32 @GuiGetStyle(i32 noundef 10, i32 noundef %102)
  %104 = call i32 @GetColor(i32 noundef %103) #7
  %105 = load float, ptr @guiAlpha, align 4, !tbaa !14
  %106 = call i32 @Fade(i32 %104, float noundef %105) #7
  call void @GuiDrawRectangle(<2 x float> %0, <2 x float> %1, i32 noundef %101, i32 %106, i32 %.sroa.018.0)
  %107 = call { <2 x float>, <2 x float> } @GetTextBounds(i32 noundef 10, <2 x float> %0, <2 x float> %1)
  %108 = extractvalue { <2 x float>, <2 x float> } %107, 0
  %109 = extractvalue { <2 x float>, <2 x float> } %107, 1
  %110 = add i32 %102, 2
  %111 = call i32 @GuiGetStyle(i32 noundef 10, i32 noundef %110)
  %112 = call i32 @GetColor(i32 noundef %111) #7
  %113 = load float, ptr @guiAlpha, align 4, !tbaa !14
  %114 = call i32 @Fade(i32 %112, float noundef %113) #7
  call void @GuiDrawText(ptr noundef nonnull %8, <2 x float> %108, <2 x float> %109, i32 noundef 1, i32 %114)
  %brmerge.not = and i1 %.not109.not, %6
  br i1 %brmerge.not, label %115, label %141

115:                                              ; preds = %.thread134
  %116 = load i32, ptr @GuiValueBox.framesCounter, align 4, !tbaa !5
  %117 = sdiv i32 %116, 20
  %118 = and i32 %117, 1
  %119 = icmp eq i32 %118, 0
  br i1 %119, label %120, label %141

120:                                              ; preds = %115
  %.sroa.065.0.vec.extract73 = extractelement <2 x float> %0, i64 0
  %121 = call i32 @GetTextWidth(ptr noundef nonnull %8)
  %122 = sdiv i32 %121, 2
  %123 = sitofp i32 %122 to float
  %124 = fadd float %.sroa.065.0.vec.extract73, %123
  %.sroa.10.8.vec.extract83 = extractelement <2 x float> %1, i64 0
  %125 = fmul float %.sroa.10.8.vec.extract83, 5.000000e-01
  %126 = fadd float %125, %124
  %127 = call i32 @GuiGetStyle(i32 noundef 10, i32 noundef 12)
  %128 = shl nsw i32 %127, 1
  %129 = sitofp i32 %128 to float
  %130 = insertelement <2 x float> %0, float %126, i64 0
  %131 = insertelement <2 x float> <float 2.000000e+00, float poison>, float %129, i64 1
  %132 = fadd <2 x float> %130, %131
  %.sroa.10.12.vec.extract85 = extractelement <2 x float> %1, i64 1
  %133 = call i32 @GuiGetStyle(i32 noundef 10, i32 noundef 12)
  %134 = shl nsw i32 %133, 2
  %135 = sitofp i32 %134 to float
  %136 = fsub float %.sroa.10.12.vec.extract85, %135
  %.sroa.5.12.vec.insert = insertelement <2 x float> <float 1.000000e+00, float poison>, float %136, i64 1
  %137 = call i32 @GuiGetStyle(i32 noundef 10, i32 noundef 6)
  %138 = call i32 @GetColor(i32 noundef %137) #7
  %139 = load float, ptr @guiAlpha, align 4, !tbaa !14
  %140 = call i32 @Fade(i32 %138, float noundef %139) #7
  call void @GuiDrawRectangle(<2 x float> %132, <2 x float> %.sroa.5.12.vec.insert, i32 noundef 0, i32 0, i32 %140)
  br label %141

141:                                              ; preds = %.thread134, %120, %115
  br i1 %.not, label %150, label %142

142:                                              ; preds = %141
  %143 = call i32 @GuiGetStyle(i32 noundef 10, i32 noundef 14)
  %144 = icmp eq i32 %143, 2
  %145 = select i1 %144, i32 0, i32 2
  %146 = call i32 @GuiGetStyle(i32 noundef 1, i32 noundef %110)
  %147 = call i32 @GetColor(i32 noundef %146) #7
  %148 = load float, ptr @guiAlpha, align 4, !tbaa !14
  %149 = call i32 @Fade(i32 %147, float noundef %148) #7
  call void @GuiDrawText(ptr noundef nonnull %2, <2 x float> %.sroa.035.0, <2 x float> %.sroa.7.0, i32 noundef %145, i32 %149)
  br label %150

150:                                              ; preds = %142, %141
  call void @llvm.lifetime.end.p0(i64 33, ptr nonnull %8) #7
  ret i1 %.2130
}

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

declare i32 @TextToInteger(ptr noundef) local_unnamed_addr #3

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"_Bool", !7, i64 0}
!11 = !{i8 0, i8 2}
!12 = !{}
!13 = !{!7, !7, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"float", !7, i64 0}


; Effective O3 passes: AggressiveInstCombinePass,CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,PostOrderFunctionAttrsPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass,VectorCombinePass