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

; 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
@GuiTextBox.framesCounter = external hidden global i32, align 4

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

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

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

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

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

declare i32 @GetColor(i32 noundef) #3

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

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

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

declare zeroext i1 @IsKeyDown(i32 noundef) #3

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

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

declare zeroext i1 @IsMouseButtonPressed(i32 noundef) #3

; Function Attrs: nounwind uwtable
define dso_local zeroext i1 @GuiTextBox(<2 x float> %0, <2 x float> %1, ptr noundef %2, i32 noundef %3, i1 noundef zeroext %4) #2 {
  %6 = alloca %struct.Rectangle, align 4
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i8, align 1
  %10 = alloca i32, align 4
  %11 = alloca i8, align 1
  %12 = alloca %struct.Rectangle, align 4
  %13 = alloca %struct.Vector2, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca ptr, align 8
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca %struct.Color, align 1
  %22 = alloca %struct.Color, align 1
  %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.Color, align 1
  %29 = alloca %struct.Color, align 1
  %30 = alloca %struct.Color, align 1
  %31 = alloca %struct.Color, align 1
  %32 = alloca %struct.Color, align 1
  %33 = alloca %struct.Color, align 1
  %34 = alloca %struct.Color, align 1
  %35 = alloca %struct.Rectangle, align 4
  %36 = alloca %struct.Color, align 1
  %37 = alloca %struct.Color, align 1
  %38 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %6, i32 0, i32 0
  store <2 x float> %0, ptr %38, align 4
  %39 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %6, i32 0, i32 1
  store <2 x float> %1, ptr %39, align 4
  store ptr %2, ptr %7, align 8, !tbaa !5
  store i32 %3, ptr %8, align 4, !tbaa !9
  %40 = zext i1 %4 to i8
  store i8 %40, ptr %9, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  %41 = load i32, ptr @guiState, align 4, !tbaa !9
  store i32 %41, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %11) #5
  store i8 0, ptr %11, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #5
  %42 = getelementptr inbounds %struct.Rectangle, ptr %12, i32 0, i32 0
  %43 = getelementptr inbounds %struct.Rectangle, ptr %6, i32 0, i32 0
  %44 = load float, ptr %43, align 4, !tbaa !13
  %45 = call i32 @GuiGetStyle(i32 noundef 9, i32 noundef 13)
  %46 = sitofp i32 %45 to float
  %47 = fadd float %44, %46
  %48 = load ptr, ptr %7, align 8, !tbaa !5
  %49 = call i32 @GetTextWidth(ptr noundef %48)
  %50 = sitofp i32 %49 to float
  %51 = fadd float %47, %50
  %52 = fadd float %51, 2.000000e+00
  store float %52, ptr %42, align 4, !tbaa !13
  %53 = getelementptr inbounds %struct.Rectangle, ptr %12, i32 0, i32 1
  %54 = getelementptr inbounds %struct.Rectangle, ptr %6, i32 0, i32 1
  %55 = load float, ptr %54, align 4, !tbaa !16
  %56 = getelementptr inbounds %struct.Rectangle, ptr %6, i32 0, i32 3
  %57 = load float, ptr %56, align 4, !tbaa !17
  %58 = fdiv float %57, 2.000000e+00
  %59 = fadd float %55, %58
  %60 = call i32 @GuiGetStyle(i32 noundef 0, i32 noundef 16)
  %61 = sitofp i32 %60 to float
  %62 = fsub float %59, %61
  store float %62, ptr %53, align 4, !tbaa !16
  %63 = getelementptr inbounds %struct.Rectangle, ptr %12, i32 0, i32 2
  store float 1.000000e+00, ptr %63, align 4, !tbaa !18
  %64 = getelementptr inbounds %struct.Rectangle, ptr %12, i32 0, i32 3
  %65 = call i32 @GuiGetStyle(i32 noundef 0, i32 noundef 16)
  %66 = mul nsw i32 %65, 2
  %67 = sitofp i32 %66 to float
  store float %67, ptr %64, align 4, !tbaa !17
  %68 = load i32, ptr %10, align 4, !tbaa !9
  %69 = icmp ne i32 %68, 3
  br i1 %69, label %70, label %235

70:                                               ; preds = %5
  %71 = load i8, ptr @guiLocked, align 1, !tbaa !11, !range !19, !noundef !20
  %72 = trunc i8 %71 to i1
  br i1 %72, label %235, label %73

73:                                               ; preds = %70
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  %74 = call <2 x float> @GetMousePosition()
  store <2 x float> %74, ptr %13, align 4
  %75 = load i8, ptr %9, align 1, !tbaa !11, !range !19, !noundef !20
  %76 = trunc i8 %75 to i1
  br i1 %76, label %77, label %218

77:                                               ; preds = %73
  store i32 2, ptr %10, align 4, !tbaa !9
  %78 = load i32, ptr @GuiTextBox.framesCounter, align 4, !tbaa !9
  %79 = add nsw i32 %78, 1
  store i32 %79, ptr @GuiTextBox.framesCounter, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  %80 = call i32 @GetCharPressed()
  store i32 %80, ptr %14, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  %81 = load ptr, ptr %7, align 8, !tbaa !5
  %82 = call i64 @strlen(ptr noundef %81) #6
  %83 = trunc i64 %82 to i32
  store i32 %83, ptr %15, align 4, !tbaa !9
  %84 = load i32, ptr %15, align 4, !tbaa !9
  %85 = load i32, ptr %8, align 4, !tbaa !9
  %86 = sub nsw i32 %85, 1
  %87 = icmp slt i32 %84, %86
  br i1 %87, label %88, label %134

88:                                               ; preds = %77
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  %89 = getelementptr inbounds %struct.Rectangle, ptr %6, i32 0, i32 2
  %90 = load float, ptr %89, align 4, !tbaa !18
  %91 = call i32 @GuiGetStyle(i32 noundef 9, i32 noundef 16)
  %92 = mul nsw i32 %91, 2
  %93 = sitofp i32 %92 to float
  %94 = fsub float %90, %93
  %95 = fptosi float %94 to i32
  store i32 %95, ptr %16, align 4, !tbaa !9
  %96 = load ptr, ptr %7, align 8, !tbaa !5
  %97 = call i32 @GetTextWidth(ptr noundef %96)
  %98 = load i32, ptr %16, align 4, !tbaa !9
  %99 = call i32 @GuiGetStyle(i32 noundef 0, i32 noundef 16)
  %100 = sub nsw i32 %98, %99
  %101 = icmp slt i32 %97, %100
  br i1 %101, label %102, label %133

102:                                              ; preds = %88
  %103 = load i32, ptr %14, align 4, !tbaa !9
  %104 = icmp sge i32 %103, 32
  br i1 %104, label %105, label %133

105:                                              ; preds = %102
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  store i32 0, ptr %17, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  %106 = load i32, ptr %14, align 4, !tbaa !9
  %107 = call ptr @CodepointToUtf8(i32 noundef %106, ptr noundef %17)
  store ptr %107, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #5
  store i32 0, ptr %19, align 4, !tbaa !9
  br label %108

108:                                              ; preds = %125, %105
  %109 = load i32, ptr %19, align 4, !tbaa !9
  %110 = load i32, ptr %17, align 4, !tbaa !9
  %111 = icmp slt i32 %109, %110
  br i1 %111, label %113, label %112

112:                                              ; preds = %108
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  br label %128

113:                                              ; preds = %108
  %114 = load ptr, ptr %18, align 8, !tbaa !5
  %115 = load i32, ptr %19, align 4, !tbaa !9
  %116 = sext i32 %115 to i64
  %117 = getelementptr inbounds i8, ptr %114, i64 %116
  %118 = load i8, ptr %117, align 1, !tbaa !21
  %119 = load ptr, ptr %7, align 8, !tbaa !5
  %120 = load i32, ptr %15, align 4, !tbaa !9
  %121 = sext i32 %120 to i64
  %122 = getelementptr inbounds i8, ptr %119, i64 %121
  store i8 %118, ptr %122, align 1, !tbaa !21
  %123 = load i32, ptr %15, align 4, !tbaa !9
  %124 = add nsw i32 %123, 1
  store i32 %124, ptr %15, align 4, !tbaa !9
  br label %125

125:                                              ; preds = %113
  %126 = load i32, ptr %19, align 4, !tbaa !9
  %127 = add nsw i32 %126, 1
  store i32 %127, ptr %19, align 4, !tbaa !9
  br label %108, !llvm.loop !22

128:                                              ; preds = %112
  %129 = load ptr, ptr %7, align 8, !tbaa !5
  %130 = load i32, ptr %15, align 4, !tbaa !9
  %131 = sext i32 %130 to i64
  %132 = getelementptr inbounds i8, ptr %129, i64 %131
  store i8 0, ptr %132, align 1, !tbaa !21
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  br label %133

133:                                              ; preds = %128, %102, %88
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  br label %134

134:                                              ; preds = %133, %77
  %135 = load i32, ptr %15, align 4, !tbaa !9
  %136 = icmp sgt i32 %135, 0
  br i1 %136, label %137, label %173

137:                                              ; preds = %134
  %138 = call zeroext i1 @IsKeyPressed(i32 noundef 259)
  br i1 %138, label %139, label %150

139:                                              ; preds = %137
  %140 = load i32, ptr %15, align 4, !tbaa !9
  %141 = add nsw i32 %140, -1
  store i32 %141, ptr %15, align 4, !tbaa !9
  %142 = load ptr, ptr %7, align 8, !tbaa !5
  %143 = load i32, ptr %15, align 4, !tbaa !9
  %144 = sext i32 %143 to i64
  %145 = getelementptr inbounds i8, ptr %142, i64 %144
  store i8 0, ptr %145, align 1, !tbaa !21
  store i32 0, ptr @GuiTextBox.framesCounter, align 4, !tbaa !9
  %146 = load i32, ptr %15, align 4, !tbaa !9
  %147 = icmp slt i32 %146, 0
  br i1 %147, label %148, label %149

148:                                              ; preds = %139
  store i32 0, ptr %15, align 4, !tbaa !9
  br label %149

149:                                              ; preds = %148, %139
  br label %172

150:                                              ; preds = %137
  %151 = call zeroext i1 @IsKeyDown(i32 noundef 259)
  br i1 %151, label %152, label %171

152:                                              ; preds = %150
  %153 = load i32, ptr @GuiTextBox.framesCounter, align 4, !tbaa !9
  %154 = icmp sgt i32 %153, 20
  br i1 %154, label %155, label %162

155:                                              ; preds = %152
  %156 = load i32, ptr @GuiTextBox.framesCounter, align 4, !tbaa !9
  %157 = srem i32 %156, 2
  %158 = icmp eq i32 %157, 0
  br i1 %158, label %159, label %162

159:                                              ; preds = %155
  %160 = load i32, ptr %15, align 4, !tbaa !9
  %161 = add nsw i32 %160, -1
  store i32 %161, ptr %15, align 4, !tbaa !9
  br label %162

162:                                              ; preds = %159, %155, %152
  %163 = load ptr, ptr %7, align 8, !tbaa !5
  %164 = load i32, ptr %15, align 4, !tbaa !9
  %165 = sext i32 %164 to i64
  %166 = getelementptr inbounds i8, ptr %163, i64 %165
  store i8 0, ptr %166, align 1, !tbaa !21
  %167 = load i32, ptr %15, align 4, !tbaa !9
  %168 = icmp slt i32 %167, 0
  br i1 %168, label %169, label %170

169:                                              ; preds = %162
  store i32 0, ptr %15, align 4, !tbaa !9
  br label %170

170:                                              ; preds = %169, %162
  br label %171

171:                                              ; preds = %170, %150
  br label %172

172:                                              ; preds = %171, %149
  br label %173

173:                                              ; preds = %172, %134
  %174 = call zeroext i1 @IsKeyPressed(i32 noundef 257)
  br i1 %174, label %184, label %175

175:                                              ; preds = %173
  %176 = load <2 x float>, ptr %13, align 4
  %177 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %6, i32 0, i32 0
  %178 = load <2 x float>, ptr %177, align 4
  %179 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %6, i32 0, i32 1
  %180 = load <2 x float>, ptr %179, align 4
  %181 = call zeroext i1 @CheckCollisionPointRec(<2 x float> %176, <2 x float> %178, <2 x float> %180)
  br i1 %181, label %185, label %182

182:                                              ; preds = %175
  %183 = call zeroext i1 @IsMouseButtonPressed(i32 noundef 0)
  br i1 %183, label %184, label %185

184:                                              ; preds = %182, %173
  store i8 1, ptr %11, align 1, !tbaa !11
  br label %185

185:                                              ; preds = %184, %182, %175
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #5
  %186 = call i32 @GuiGetStyle(i32 noundef 9, i32 noundef 14)
  store i32 %186, ptr %20, align 4, !tbaa !9
  %187 = load i32, ptr %20, align 4, !tbaa !9
  %188 = icmp eq i32 %187, 1
  br i1 %188, label %189, label %203

189:                                              ; preds = %185
  %190 = getelementptr inbounds %struct.Rectangle, ptr %6, i32 0, i32 0
  %191 = load float, ptr %190, align 4, !tbaa !13
  %192 = load ptr, ptr %7, align 8, !tbaa !5
  %193 = call i32 @GetTextWidth(ptr noundef %192)
  %194 = sdiv i32 %193, 2
  %195 = sitofp i32 %194 to float
  %196 = fadd float %191, %195
  %197 = getelementptr inbounds %struct.Rectangle, ptr %6, i32 0, i32 2
  %198 = load float, ptr %197, align 4, !tbaa !18
  %199 = fdiv float %198, 2.000000e+00
  %200 = fadd float %196, %199
  %201 = fadd float %200, 1.000000e+00
  %202 = getelementptr inbounds %struct.Rectangle, ptr %12, i32 0, i32 0
  store float %201, ptr %202, align 4, !tbaa !13
  br label %217

203:                                              ; preds = %185
  %204 = load i32, ptr %20, align 4, !tbaa !9
  %205 = icmp eq i32 %204, 2
  br i1 %205, label %206, label %216

206:                                              ; preds = %203
  %207 = getelementptr inbounds %struct.Rectangle, ptr %6, i32 0, i32 0
  %208 = load float, ptr %207, align 4, !tbaa !13
  %209 = getelementptr inbounds %struct.Rectangle, ptr %6, i32 0, i32 2
  %210 = load float, ptr %209, align 4, !tbaa !18
  %211 = fadd float %208, %210
  %212 = call i32 @GuiGetStyle(i32 noundef 9, i32 noundef 16)
  %213 = sitofp i32 %212 to float
  %214 = fsub float %211, %213
  %215 = getelementptr inbounds %struct.Rectangle, ptr %12, i32 0, i32 0
  store float %214, ptr %215, align 4, !tbaa !13
  br label %216

216:                                              ; preds = %206, %203
  br label %217

217:                                              ; preds = %216, %189
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  br label %230

218:                                              ; preds = %73
  %219 = load <2 x float>, ptr %13, align 4
  %220 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %6, i32 0, i32 0
  %221 = load <2 x float>, ptr %220, align 4
  %222 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %6, i32 0, i32 1
  %223 = load <2 x float>, ptr %222, align 4
  %224 = call zeroext i1 @CheckCollisionPointRec(<2 x float> %219, <2 x float> %221, <2 x float> %223)
  br i1 %224, label %225, label %229

225:                                              ; preds = %218
  store i32 1, ptr %10, align 4, !tbaa !9
  %226 = call zeroext i1 @IsMouseButtonPressed(i32 noundef 0)
  br i1 %226, label %227, label %228

227:                                              ; preds = %225
  store i8 1, ptr %11, align 1, !tbaa !11
  br label %228

228:                                              ; preds = %227, %225
  br label %229

229:                                              ; preds = %228, %218
  br label %230

230:                                              ; preds = %229, %217
  %231 = load i8, ptr %11, align 1, !tbaa !11, !range !19, !noundef !20
  %232 = trunc i8 %231 to i1
  br i1 %232, label %233, label %234

233:                                              ; preds = %230
  store i32 0, ptr @GuiTextBox.framesCounter, align 4, !tbaa !9
  br label %234

234:                                              ; preds = %233, %230
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  br label %235

235:                                              ; preds = %234, %70, %5
  %236 = load i32, ptr %10, align 4, !tbaa !9
  %237 = icmp eq i32 %236, 2
  br i1 %237, label %238, label %283

238:                                              ; preds = %235
  %239 = call i32 @GuiGetStyle(i32 noundef 9, i32 noundef 12)
  %240 = load i32, ptr %10, align 4, !tbaa !9
  %241 = mul i32 %240, 3
  %242 = add i32 0, %241
  %243 = call i32 @GuiGetStyle(i32 noundef 9, i32 noundef %242)
  %244 = call i32 @GetColor(i32 noundef %243)
  store i32 %244, ptr %22, align 1
  %245 = load float, ptr @guiAlpha, align 4, !tbaa !24
  %246 = load i32, ptr %22, align 1
  %247 = call i32 @Fade(i32 %246, float noundef %245)
  store i32 %247, ptr %21, align 1
  %248 = call i32 @GuiGetStyle(i32 noundef 9, i32 noundef 7)
  %249 = call i32 @GetColor(i32 noundef %248)
  store i32 %249, ptr %24, align 1
  %250 = load float, ptr @guiAlpha, align 4, !tbaa !24
  %251 = load i32, ptr %24, align 1
  %252 = call i32 @Fade(i32 %251, float noundef %250)
  store i32 %252, ptr %23, align 1
  %253 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %6, i32 0, i32 0
  %254 = load <2 x float>, ptr %253, align 4
  %255 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %6, i32 0, i32 1
  %256 = load <2 x float>, ptr %255, align 4
  %257 = load i32, ptr %21, align 1
  %258 = load i32, ptr %23, align 1
  call void @GuiDrawRectangle(<2 x float> %254, <2 x float> %256, i32 noundef %239, i32 %257, i32 %258)
  %259 = load i8, ptr %9, align 1, !tbaa !11, !range !19, !noundef !20
  %260 = trunc i8 %259 to i1
  br i1 %260, label %261, label %282

261:                                              ; preds = %238
  %262 = load i32, ptr @GuiTextBox.framesCounter, align 4, !tbaa !9
  %263 = sdiv i32 %262, 20
  %264 = srem i32 %263, 2
  %265 = icmp eq i32 %264, 0
  br i1 %265, label %266, label %282

266:                                              ; preds = %261
  %267 = getelementptr inbounds %struct.Color, ptr %25, i32 0, i32 0
  store i8 0, ptr %267, align 1, !tbaa !25
  %268 = getelementptr inbounds %struct.Color, ptr %25, i32 0, i32 1
  store i8 0, ptr %268, align 1, !tbaa !27
  %269 = getelementptr inbounds %struct.Color, ptr %25, i32 0, i32 2
  store i8 0, ptr %269, align 1, !tbaa !28
  %270 = getelementptr inbounds %struct.Color, ptr %25, i32 0, i32 3
  store i8 0, ptr %270, align 1, !tbaa !29
  %271 = call i32 @GuiGetStyle(i32 noundef 9, i32 noundef 6)
  %272 = call i32 @GetColor(i32 noundef %271)
  store i32 %272, ptr %27, align 1
  %273 = load float, ptr @guiAlpha, align 4, !tbaa !24
  %274 = load i32, ptr %27, align 1
  %275 = call i32 @Fade(i32 %274, float noundef %273)
  store i32 %275, ptr %26, align 1
  %276 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %12, i32 0, i32 0
  %277 = load <2 x float>, ptr %276, align 4
  %278 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %12, i32 0, i32 1
  %279 = load <2 x float>, ptr %278, align 4
  %280 = load i32, ptr %25, align 1
  %281 = load i32, ptr %26, align 1
  call void @GuiDrawRectangle(<2 x float> %277, <2 x float> %279, i32 noundef 0, i32 %280, i32 %281)
  br label %282

282:                                              ; preds = %266, %261, %238
  br label %327

283:                                              ; preds = %235
  %284 = load i32, ptr %10, align 4, !tbaa !9
  %285 = icmp eq i32 %284, 3
  br i1 %285, label %286, label %307

286:                                              ; preds = %283
  %287 = call i32 @GuiGetStyle(i32 noundef 9, i32 noundef 12)
  %288 = load i32, ptr %10, align 4, !tbaa !9
  %289 = mul i32 %288, 3
  %290 = add i32 0, %289
  %291 = call i32 @GuiGetStyle(i32 noundef 9, i32 noundef %290)
  %292 = call i32 @GetColor(i32 noundef %291)
  store i32 %292, ptr %29, align 1
  %293 = load float, ptr @guiAlpha, align 4, !tbaa !24
  %294 = load i32, ptr %29, align 1
  %295 = call i32 @Fade(i32 %294, float noundef %293)
  store i32 %295, ptr %28, align 1
  %296 = call i32 @GuiGetStyle(i32 noundef 9, i32 noundef 10)
  %297 = call i32 @GetColor(i32 noundef %296)
  store i32 %297, ptr %31, align 1
  %298 = load float, ptr @guiAlpha, align 4, !tbaa !24
  %299 = load i32, ptr %31, align 1
  %300 = call i32 @Fade(i32 %299, float noundef %298)
  store i32 %300, ptr %30, align 1
  %301 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %6, i32 0, i32 0
  %302 = load <2 x float>, ptr %301, align 4
  %303 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %6, i32 0, i32 1
  %304 = load <2 x float>, ptr %303, align 4
  %305 = load i32, ptr %28, align 1
  %306 = load i32, ptr %30, align 1
  call void @GuiDrawRectangle(<2 x float> %302, <2 x float> %304, i32 noundef %287, i32 %305, i32 %306)
  br label %326

307:                                              ; preds = %283
  %308 = load i32, ptr %10, align 4, !tbaa !9
  %309 = mul i32 %308, 3
  %310 = add i32 0, %309
  %311 = call i32 @GuiGetStyle(i32 noundef 9, i32 noundef %310)
  %312 = call i32 @GetColor(i32 noundef %311)
  store i32 %312, ptr %33, align 1
  %313 = load float, ptr @guiAlpha, align 4, !tbaa !24
  %314 = load i32, ptr %33, align 1
  %315 = call i32 @Fade(i32 %314, float noundef %313)
  store i32 %315, ptr %32, align 1
  %316 = getelementptr inbounds %struct.Color, ptr %34, i32 0, i32 0
  store i8 0, ptr %316, align 1, !tbaa !25
  %317 = getelementptr inbounds %struct.Color, ptr %34, i32 0, i32 1
  store i8 0, ptr %317, align 1, !tbaa !27
  %318 = getelementptr inbounds %struct.Color, ptr %34, i32 0, i32 2
  store i8 0, ptr %318, align 1, !tbaa !28
  %319 = getelementptr inbounds %struct.Color, ptr %34, i32 0, i32 3
  store i8 0, ptr %319, align 1, !tbaa !29
  %320 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %6, i32 0, i32 0
  %321 = load <2 x float>, ptr %320, align 4
  %322 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %6, i32 0, i32 1
  %323 = load <2 x float>, ptr %322, align 4
  %324 = load i32, ptr %32, align 1
  %325 = load i32, ptr %34, align 1
  call void @GuiDrawRectangle(<2 x float> %321, <2 x float> %323, i32 noundef 1, i32 %324, i32 %325)
  br label %326

326:                                              ; preds = %307, %286
  br label %327

327:                                              ; preds = %326, %282
  %328 = load ptr, ptr %7, align 8, !tbaa !5
  %329 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %6, i32 0, i32 0
  %330 = load <2 x float>, ptr %329, align 4
  %331 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %6, i32 0, i32 1
  %332 = load <2 x float>, ptr %331, align 4
  %333 = call { <2 x float>, <2 x float> } @GetTextBounds(i32 noundef 9, <2 x float> %330, <2 x float> %332)
  %334 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %35, i32 0, i32 0
  %335 = extractvalue { <2 x float>, <2 x float> } %333, 0
  store <2 x float> %335, ptr %334, align 4
  %336 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %35, i32 0, i32 1
  %337 = extractvalue { <2 x float>, <2 x float> } %333, 1
  store <2 x float> %337, ptr %336, align 4
  %338 = call i32 @GuiGetStyle(i32 noundef 9, i32 noundef 14)
  %339 = load i32, ptr %10, align 4, !tbaa !9
  %340 = mul i32 %339, 3
  %341 = add i32 2, %340
  %342 = call i32 @GuiGetStyle(i32 noundef 9, i32 noundef %341)
  %343 = call i32 @GetColor(i32 noundef %342)
  store i32 %343, ptr %37, align 1
  %344 = load float, ptr @guiAlpha, align 4, !tbaa !24
  %345 = load i32, ptr %37, align 1
  %346 = call i32 @Fade(i32 %345, float noundef %344)
  store i32 %346, ptr %36, align 1
  %347 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %35, i32 0, i32 0
  %348 = load <2 x float>, ptr %347, align 4
  %349 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %35, i32 0, i32 1
  %350 = load <2 x float>, ptr %349, align 4
  %351 = load i32, ptr %36, align 1
  call void @GuiDrawText(ptr noundef %328, <2 x float> %348, <2 x float> %350, i32 noundef %338, i32 %351)
  %352 = load i8, ptr %11, align 1, !tbaa !11, !range !19, !noundef !20
  %353 = trunc i8 %352 to i1
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  ret i1 %353
}

declare i32 @GetCharPressed() #3

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

declare ptr @CodepointToUtf8(i32 noundef, ptr noundef) #3

declare zeroext i1 @IsKeyPressed(i32 noundef) #3

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 = { 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 #5 = { nounwind }
attributes #6 = { 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 0}
!14 = !{!"Rectangle", !15, i64 0, !15, i64 4, !15, i64 8, !15, i64 12}
!15 = !{!"float", !7, i64 0}
!16 = !{!14, !15, i64 4}
!17 = !{!14, !15, i64 12}
!18 = !{!14, !15, i64 8}
!19 = !{i8 0, i8 2}
!20 = !{}
!21 = !{!7, !7, i64 0}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}
!24 = !{!15, !15, i64 0}
!25 = !{!26, !7, i64 0}
!26 = !{!"Color", !7, i64 0, !7, i64 1, !7, i64 2, !7, i64 3}
!27 = !{!26, !7, i64 1}
!28 = !{!26, !7, i64 2}
!29 = !{!26, !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
@GuiTextBox.framesCounter = external hidden local_unnamed_addr global i32, align 4

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

; Function Attrs: nounwind uwtable
define dso_local noundef zeroext i1 @GuiTextBox(<2 x float> %0, <2 x float> %1, ptr noundef %2, i32 noundef %3, i1 noundef zeroext %4) local_unnamed_addr #2 {
  %6 = ptrtoint ptr %2 to i64
  %7 = alloca i32, align 4
  %8 = load i32, ptr @guiState, align 4, !tbaa !5
  %.sroa.071.0.vec.extract = extractelement <2 x float> %0, i64 0
  %9 = tail call i32 @GuiGetStyle(i32 noundef 9, i32 noundef 13)
  %10 = sitofp i32 %9 to float
  %11 = fadd float %.sroa.071.0.vec.extract, %10
  %12 = tail call i32 @GetTextWidth(ptr noundef %2)
  %13 = sitofp i32 %12 to float
  %14 = fadd float %11, %13
  %15 = fadd float %14, 2.000000e+00
  %.sroa.043.0.vec.insert = insertelement <2 x float> poison, float %15, i64 0
  %.sroa.071.4.vec.extract = extractelement <2 x float> %0, i64 1
  %.sroa.11.12.vec.extract = extractelement <2 x float> %1, i64 1
  %16 = fmul float %.sroa.11.12.vec.extract, 5.000000e-01
  %17 = fadd float %.sroa.071.4.vec.extract, %16
  %18 = tail call i32 @GuiGetStyle(i32 noundef 0, i32 noundef 16)
  %19 = sitofp i32 %18 to float
  %20 = fsub float %17, %19
  %.sroa.043.4.vec.insert = insertelement <2 x float> %.sroa.043.0.vec.insert, float %20, i64 1
  %21 = tail call i32 @GuiGetStyle(i32 noundef 0, i32 noundef 16)
  %22 = shl nsw i32 %21, 1
  %23 = sitofp i32 %22 to float
  %.sroa.7.12.vec.insert = insertelement <2 x float> <float 1.000000e+00, float poison>, float %23, i64 1
  %.not = icmp eq i32 %8, 3
  br i1 %.not, label %.thread128, label %24

24:                                               ; preds = %5
  %25 = load i8, ptr @guiLocked, align 1, !tbaa !9, !range !11, !noundef !12
  %26 = trunc nuw i8 %25 to i1
  br i1 %26, label %.thread, label %27

27:                                               ; preds = %24
  %28 = tail call <2 x float> @GetMousePosition() #5
  br i1 %4, label %29, label %117

29:                                               ; preds = %27
  %30 = load i32, ptr @GuiTextBox.framesCounter, align 4, !tbaa !5
  %31 = add nsw i32 %30, 1
  store i32 %31, ptr @GuiTextBox.framesCounter, align 4, !tbaa !5
  %32 = tail call i32 @GetCharPressed() #5
  %33 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %2) #6
  %34 = trunc i64 %33 to i32
  %35 = add nsw i32 %3, -1
  %36 = icmp sgt i32 %35, %34
  br i1 %36, label %37, label %76

37:                                               ; preds = %29
  %.sroa.11.8.vec.extract = extractelement <2 x float> %1, i64 0
  %38 = tail call i32 @GuiGetStyle(i32 noundef 9, i32 noundef 16)
  %39 = shl nsw i32 %38, 1
  %40 = sitofp i32 %39 to float
  %41 = fsub float %.sroa.11.8.vec.extract, %40
  %42 = fptosi float %41 to i32
  %43 = tail call i32 @GetTextWidth(ptr noundef %2)
  %44 = tail call i32 @GuiGetStyle(i32 noundef 0, i32 noundef 16)
  %45 = sub nsw i32 %42, %44
  %46 = icmp slt i32 %43, %45
  %47 = icmp sgt i32 %32, 31
  %or.cond = select i1 %46, i1 %47, i1 false
  br i1 %or.cond, label %48, label %76

48:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #5
  store i32 0, ptr %7, align 4, !tbaa !5
  %49 = call ptr @CodepointToUtf8(i32 noundef %32, ptr noundef nonnull %7) #5
  %50 = ptrtoint ptr %49 to i64
  %51 = load i32, ptr %7, align 4, !tbaa !5
  %52 = icmp sgt i32 %51, 0
  br i1 %52, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %48
  %sext = shl i64 %33, 32
  %53 = ashr exact i64 %sext, 32
  %wide.trip.count = zext nneg i32 %51 to i64
  %min.iters.check = icmp ult i32 %51, 32
  br i1 %min.iters.check, label %.lr.ph.preheader143, label %vector.memcheck

.lr.ph.preheader143:                              ; preds = %middle.block, %vector.memcheck, %.lr.ph.preheader
  %indvars.iv136.ph = phi i64 [ 0, %vector.memcheck ], [ 0, %.lr.ph.preheader ], [ %n.vec, %middle.block ]
  %indvars.iv.ph = phi i64 [ %53, %vector.memcheck ], [ %53, %.lr.ph.preheader ], [ %ind.end, %middle.block ]
  %xtraiter = and i64 %wide.trip.count, 3
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.lr.ph.prol.loopexit, label %.lr.ph.prol

.lr.ph.prol:                                      ; preds = %.lr.ph.preheader143, %.lr.ph.prol
  %indvars.iv136.prol = phi i64 [ %indvars.iv.next137.prol, %.lr.ph.prol ], [ %indvars.iv136.ph, %.lr.ph.preheader143 ]
  %indvars.iv.prol = phi i64 [ %indvars.iv.next.prol, %.lr.ph.prol ], [ %indvars.iv.ph, %.lr.ph.preheader143 ]
  %prol.iter = phi i64 [ %prol.iter.next, %.lr.ph.prol ], [ 0, %.lr.ph.preheader143 ]
  %54 = getelementptr inbounds i8, ptr %49, i64 %indvars.iv136.prol
  %55 = load i8, ptr %54, align 1, !tbaa !13
  %56 = getelementptr inbounds i8, ptr %2, i64 %indvars.iv.prol
  store i8 %55, ptr %56, align 1, !tbaa !13
  %indvars.iv.next.prol = add nsw i64 %indvars.iv.prol, 1
  %indvars.iv.next137.prol = add nuw nsw i64 %indvars.iv136.prol, 1
  %prol.iter.next = add i64 %prol.iter, 1
  %prol.iter.cmp.not = icmp eq i64 %prol.iter.next, %xtraiter
  br i1 %prol.iter.cmp.not, label %.lr.ph.prol.loopexit, label %.lr.ph.prol, !llvm.loop !14

.lr.ph.prol.loopexit:                             ; preds = %.lr.ph.prol, %.lr.ph.preheader143
  %indvars.iv.next.lcssa144.unr = phi i64 [ poison, %.lr.ph.preheader143 ], [ %indvars.iv.next.prol, %.lr.ph.prol ]
  %indvars.iv136.unr = phi i64 [ %indvars.iv136.ph, %.lr.ph.preheader143 ], [ %indvars.iv.next137.prol, %.lr.ph.prol ]
  %indvars.iv.unr = phi i64 [ %indvars.iv.ph, %.lr.ph.preheader143 ], [ %indvars.iv.next.prol, %.lr.ph.prol ]
  %57 = sub nsw i64 %indvars.iv136.ph, %wide.trip.count
  %58 = icmp ugt i64 %57, -4
  br i1 %58, label %._crit_edge.loopexit, label %.lr.ph.preheader143.new

.lr.ph.preheader143.new:                          ; preds = %.lr.ph.prol.loopexit
  %invariant.gep = getelementptr i8, ptr %49, i64 1
  %invariant.gep145 = getelementptr i8, ptr %2, i64 1
  %invariant.gep147 = getelementptr i8, ptr %49, i64 2
  %invariant.gep149 = getelementptr i8, ptr %2, i64 2
  %invariant.gep151 = getelementptr i8, ptr %49, i64 3
  %invariant.gep153 = getelementptr i8, ptr %2, i64 3
  br label %.lr.ph

vector.memcheck:                                  ; preds = %.lr.ph.preheader
  %59 = add i64 %53, %6
  %60 = sub i64 %59, %50
  %diff.check = icmp ult i64 %60, 32
  br i1 %diff.check, label %.lr.ph.preheader143, label %vector.ph

vector.ph:                                        ; preds = %vector.memcheck
  %n.vec = and i64 %wide.trip.count, 2147483616
  %ind.end = add nsw i64 %53, %n.vec
  %61 = getelementptr i8, ptr %2, i64 %53
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %62 = getelementptr inbounds i8, ptr %49, i64 %index
  %63 = getelementptr inbounds i8, ptr %62, i64 16
  %wide.load = load <16 x i8>, ptr %62, align 1, !tbaa !13
  %wide.load142 = load <16 x i8>, ptr %63, align 1, !tbaa !13
  %64 = getelementptr i8, ptr %61, i64 %index
  %65 = getelementptr inbounds i8, ptr %64, i64 16
  store <16 x i8> %wide.load, ptr %64, align 1, !tbaa !13
  store <16 x i8> %wide.load142, ptr %65, align 1, !tbaa !13
  %index.next = add nuw i64 %index, 32
  %66 = icmp eq i64 %index.next, %n.vec
  br i1 %66, label %middle.block, label %vector.body, !llvm.loop !16

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count
  br i1 %cmp.n, label %._crit_edge.loopexit, label %.lr.ph.preheader143

._crit_edge.loopexit:                             ; preds = %.lr.ph.prol.loopexit, %.lr.ph, %middle.block
  %indvars.iv.next.lcssa = phi i64 [ %ind.end, %middle.block ], [ %indvars.iv.next.lcssa144.unr, %.lr.ph.prol.loopexit ], [ %indvars.iv.next.3, %.lr.ph ]
  %67 = trunc nsw i64 %indvars.iv.next.lcssa to i32
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %48
  %.094.lcssa = phi i32 [ %34, %48 ], [ %67, %._crit_edge.loopexit ]
  %68 = sext i32 %.094.lcssa to i64
  %69 = getelementptr inbounds i8, ptr %2, i64 %68
  store i8 0, ptr %69, align 1, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #5
  br label %76

.lr.ph:                                           ; preds = %.lr.ph, %.lr.ph.preheader143.new
  %indvars.iv136 = phi i64 [ %indvars.iv136.unr, %.lr.ph.preheader143.new ], [ %indvars.iv.next137.3, %.lr.ph ]
  %indvars.iv = phi i64 [ %indvars.iv.unr, %.lr.ph.preheader143.new ], [ %indvars.iv.next.3, %.lr.ph ]
  %70 = getelementptr inbounds i8, ptr %49, i64 %indvars.iv136
  %71 = load i8, ptr %70, align 1, !tbaa !13
  %72 = getelementptr inbounds i8, ptr %2, i64 %indvars.iv
  store i8 %71, ptr %72, align 1, !tbaa !13
  %gep = getelementptr i8, ptr %invariant.gep, i64 %indvars.iv136
  %73 = load i8, ptr %gep, align 1, !tbaa !13
  %gep146 = getelementptr i8, ptr %invariant.gep145, i64 %indvars.iv
  store i8 %73, ptr %gep146, align 1, !tbaa !13
  %gep148 = getelementptr i8, ptr %invariant.gep147, i64 %indvars.iv136
  %74 = load i8, ptr %gep148, align 1, !tbaa !13
  %gep150 = getelementptr i8, ptr %invariant.gep149, i64 %indvars.iv
  store i8 %74, ptr %gep150, align 1, !tbaa !13
  %gep152 = getelementptr i8, ptr %invariant.gep151, i64 %indvars.iv136
  %75 = load i8, ptr %gep152, align 1, !tbaa !13
  %gep154 = getelementptr i8, ptr %invariant.gep153, i64 %indvars.iv
  store i8 %75, ptr %gep154, align 1, !tbaa !13
  %indvars.iv.next.3 = add nsw i64 %indvars.iv, 4
  %indvars.iv.next137.3 = add nuw nsw i64 %indvars.iv136, 4
  %exitcond.not.3 = icmp eq i64 %indvars.iv.next137.3, %wide.trip.count
  br i1 %exitcond.not.3, label %._crit_edge.loopexit, label %.lr.ph, !llvm.loop !20

76:                                               ; preds = %37, %._crit_edge, %29
  %.296 = phi i32 [ %34, %29 ], [ %.094.lcssa, %._crit_edge ], [ %34, %37 ]
  %77 = icmp sgt i32 %.296, 0
  br i1 %77, label %78, label %94

78:                                               ; preds = %76
  %79 = call zeroext i1 @IsKeyPressed(i32 noundef 259) #5
  br i1 %79, label %80, label %84

80:                                               ; preds = %78
  %81 = zext nneg i32 %.296 to i64
  %82 = getelementptr i8, ptr %2, i64 %81
  %83 = getelementptr i8, ptr %82, i64 -1
  store i8 0, ptr %83, align 1, !tbaa !13
  store i32 0, ptr @GuiTextBox.framesCounter, align 4, !tbaa !5
  br label %94

84:                                               ; preds = %78
  %85 = call zeroext i1 @IsKeyDown(i32 noundef 259) #5
  br i1 %85, label %86, label %94

86:                                               ; preds = %84
  %87 = load i32, ptr @GuiTextBox.framesCounter, align 4, !tbaa !5
  %88 = icmp sgt i32 %87, 20
  %89 = and i32 %87, 1
  %90 = icmp eq i32 %89, 0
  %or.cond106 = and i1 %88, %90
  %91 = sext i1 %or.cond106 to i32
  %.3 = add nsw i32 %.296, %91
  %92 = zext nneg i32 %.3 to i64
  %93 = getelementptr inbounds i8, ptr %2, i64 %92
  store i8 0, ptr %93, align 1, !tbaa !13
  br label %94

94:                                               ; preds = %80, %86, %84, %76
  %95 = call zeroext i1 @IsKeyPressed(i32 noundef 257) #5
  br i1 %95, label %100, label %96

96:                                               ; preds = %94
  %97 = call zeroext i1 @CheckCollisionPointRec(<2 x float> %28, <2 x float> %0, <2 x float> %1) #5
  br i1 %97, label %101, label %98

98:                                               ; preds = %96
  %99 = call zeroext i1 @IsMouseButtonPressed(i32 noundef 0) #5
  br i1 %99, label %100, label %101

100:                                              ; preds = %98, %94
  br label %101

101:                                              ; preds = %100, %98, %96
  %.092 = phi i1 [ true, %100 ], [ false, %96 ], [ false, %98 ]
  %102 = call i32 @GuiGetStyle(i32 noundef 9, i32 noundef 14)
  switch i32 %102, label %121 [
    i32 1, label %103
    i32 2, label %111
  ]

103:                                              ; preds = %101
  %104 = call i32 @GetTextWidth(ptr noundef %2)
  %105 = sdiv i32 %104, 2
  %106 = sitofp i32 %105 to float
  %107 = fadd float %.sroa.071.0.vec.extract, %106
  %.sroa.11.8.vec.extract89 = extractelement <2 x float> %1, i64 0
  %108 = fmul float %.sroa.11.8.vec.extract89, 5.000000e-01
  %109 = fadd float %108, %107
  %110 = fadd float %109, 1.000000e+00
  %.sroa.043.0.vec.insert46 = insertelement <2 x float> %.sroa.043.4.vec.insert, float %110, i64 0
  br i1 %.092, label %122, label %.thread113

111:                                              ; preds = %101
  %112 = fadd <2 x float> %0, %1
  %113 = extractelement <2 x float> %112, i64 0
  %114 = call i32 @GuiGetStyle(i32 noundef 9, i32 noundef 16)
  %115 = sitofp i32 %114 to float
  %116 = fsub float %113, %115
  %.sroa.043.0.vec.insert48 = insertelement <2 x float> %.sroa.043.4.vec.insert, float %116, i64 0
  br i1 %.092, label %122, label %.thread113

117:                                              ; preds = %27
  %118 = tail call zeroext i1 @CheckCollisionPointRec(<2 x float> %28, <2 x float> %0, <2 x float> %1) #5
  br i1 %118, label %119, label %.thread

119:                                              ; preds = %117
  %120 = tail call zeroext i1 @IsMouseButtonPressed(i32 noundef 0) #5
  br i1 %120, label %122, label %.thread122

121:                                              ; preds = %101
  br i1 %.092, label %122, label %.thread113

122:                                              ; preds = %119, %103, %111, %121
  %.0112 = phi i32 [ 2, %111 ], [ 2, %121 ], [ 2, %103 ], [ 1, %119 ]
  %.sroa.043.1110 = phi <2 x float> [ %.sroa.043.0.vec.insert48, %111 ], [ %.sroa.043.4.vec.insert, %121 ], [ %.sroa.043.0.vec.insert46, %103 ], [ %.sroa.043.4.vec.insert, %119 ]
  store i32 0, ptr @GuiTextBox.framesCounter, align 4, !tbaa !5
  br label %.thread

.thread:                                          ; preds = %117, %122, %24
  %.sroa.043.2 = phi <2 x float> [ %.sroa.043.4.vec.insert, %24 ], [ %.sroa.043.1110, %122 ], [ %.sroa.043.4.vec.insert, %117 ]
  %.2 = phi i1 [ false, %24 ], [ true, %122 ], [ false, %117 ]
  %.1 = phi i32 [ %8, %24 ], [ %.0112, %122 ], [ %8, %117 ]
  %cond = icmp eq i32 %.1, 2
  br i1 %cond, label %.thread113, label %.thread122

.thread113:                                       ; preds = %.thread, %103, %111, %121
  %.2119 = phi i1 [ %.2, %.thread ], [ false, %103 ], [ false, %111 ], [ false, %121 ]
  %.sroa.043.2117 = phi <2 x float> [ %.sroa.043.2, %.thread ], [ %.sroa.043.0.vec.insert46, %103 ], [ %.sroa.043.0.vec.insert48, %111 ], [ %.sroa.043.4.vec.insert, %121 ]
  %123 = call i32 @GuiGetStyle(i32 noundef 9, i32 noundef 12)
  %124 = call i32 @GuiGetStyle(i32 noundef 9, i32 noundef 6)
  %125 = call i32 @GetColor(i32 noundef %124) #5
  %126 = load float, ptr @guiAlpha, align 4, !tbaa !21
  %127 = call i32 @Fade(i32 %125, float noundef %126) #5
  %128 = call i32 @GuiGetStyle(i32 noundef 9, i32 noundef 7)
  %129 = call i32 @GetColor(i32 noundef %128) #5
  %130 = load float, ptr @guiAlpha, align 4, !tbaa !21
  %131 = call i32 @Fade(i32 %129, float noundef %130) #5
  call void @GuiDrawRectangle(<2 x float> %0, <2 x float> %1, i32 noundef %123, i32 %127, i32 %131)
  br i1 %4, label %132, label %157

132:                                              ; preds = %.thread113
  %133 = load i32, ptr @GuiTextBox.framesCounter, align 4, !tbaa !5
  %134 = sdiv i32 %133, 20
  %135 = and i32 %134, 1
  %136 = icmp eq i32 %135, 0
  br i1 %136, label %137, label %157

137:                                              ; preds = %132
  %138 = call i32 @GuiGetStyle(i32 noundef 9, i32 noundef 6)
  %139 = call i32 @GetColor(i32 noundef %138) #5
  %140 = load float, ptr @guiAlpha, align 4, !tbaa !21
  %141 = call i32 @Fade(i32 %139, float noundef %140) #5
  call void @GuiDrawRectangle(<2 x float> %.sroa.043.2117, <2 x float> %.sroa.7.12.vec.insert, i32 noundef 0, i32 0, i32 %141)
  br label %157

.thread128:                                       ; preds = %5
  %142 = tail call i32 @GuiGetStyle(i32 noundef 9, i32 noundef 12)
  %143 = tail call i32 @GuiGetStyle(i32 noundef 9, i32 noundef 9)
  %144 = tail call i32 @GetColor(i32 noundef %143) #5
  %145 = load float, ptr @guiAlpha, align 4, !tbaa !21
  %146 = tail call i32 @Fade(i32 %144, float noundef %145) #5
  %147 = tail call i32 @GuiGetStyle(i32 noundef 9, i32 noundef 10)
  %148 = tail call i32 @GetColor(i32 noundef %147) #5
  %149 = load float, ptr @guiAlpha, align 4, !tbaa !21
  %150 = tail call i32 @Fade(i32 %148, float noundef %149) #5
  tail call void @GuiDrawRectangle(<2 x float> %0, <2 x float> %1, i32 noundef %142, i32 %146, i32 %150)
  br label %157

.thread122:                                       ; preds = %.thread, %119
  %.1127 = phi i32 [ %.1, %.thread ], [ 1, %119 ]
  %.2126 = phi i1 [ %.2, %.thread ], [ false, %119 ]
  %151 = mul i32 %.1127, 3
  %152 = call i32 @GuiGetStyle(i32 noundef 9, i32 noundef %151)
  %153 = call i32 @GetColor(i32 noundef %152) #5
  %154 = load float, ptr @guiAlpha, align 4, !tbaa !21
  %155 = call i32 @Fade(i32 %153, float noundef %154) #5
  call void @GuiDrawRectangle(<2 x float> %0, <2 x float> %1, i32 noundef 1, i32 %155, i32 0)
  %156 = add i32 %151, 2
  br label %157

157:                                              ; preds = %.thread128, %.thread122, %.thread113, %132, %137
  %.1120 = phi i32 [ 11, %.thread128 ], [ %156, %.thread122 ], [ 8, %.thread113 ], [ 8, %132 ], [ 8, %137 ]
  %.2118 = phi i1 [ false, %.thread128 ], [ %.2126, %.thread122 ], [ %.2119, %.thread113 ], [ %.2119, %132 ], [ %.2119, %137 ]
  %158 = call { <2 x float>, <2 x float> } @GetTextBounds(i32 noundef 9, <2 x float> %0, <2 x float> %1)
  %159 = extractvalue { <2 x float>, <2 x float> } %158, 0
  %160 = extractvalue { <2 x float>, <2 x float> } %158, 1
  %161 = call i32 @GuiGetStyle(i32 noundef 9, i32 noundef 14)
  %162 = call i32 @GuiGetStyle(i32 noundef 9, i32 noundef %.1120)
  %163 = call i32 @GetColor(i32 noundef %162) #5
  %164 = load float, ptr @guiAlpha, align 4, !tbaa !21
  %165 = call i32 @Fade(i32 %163, float noundef %164) #5
  call void @GuiDrawText(ptr noundef %2, <2 x float> %159, <2 x float> %160, i32 noundef %161, i32 %165)
  ret i1 %.2118
}

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 #4

declare ptr @CodepointToUtf8(i32 noundef, ptr noundef) local_unnamed_addr #3

declare zeroext i1 @IsKeyPressed(i32 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 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 #5 = { nounwind }
attributes #6 = { 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 = distinct !{!14, !15}
!15 = !{!"llvm.loop.unroll.disable"}
!16 = distinct !{!16, !17, !18, !19}
!17 = !{!"llvm.loop.mustprogress"}
!18 = !{!"llvm.loop.isvectorized", i32 1}
!19 = !{!"llvm.loop.unroll.runtime.disable"}
!20 = distinct !{!20, !17, !18}
!21 = !{!22, !22, i64 0}
!22 = !{!"float", !7, i64 0}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass,VectorCombinePass