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

; 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

; 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

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

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

declare zeroext i1 @IsMouseButtonDown(i32 noundef) #3

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #4

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

76:                                               ; preds = %3
  %77 = load i8, ptr @guiLocked, align 1, !tbaa !16, !range !18, !noundef !19
  %78 = trunc i8 %77 to i1
  br i1 %78, label %124, label %79

79:                                               ; preds = %76
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  %80 = call <2 x float> @GetMousePosition()
  store <2 x float> %80, ptr %8, align 4
  %81 = load <2 x float>, ptr %8, align 4
  %82 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %4, i32 0, i32 0
  %83 = load <2 x float>, ptr %82, align 4
  %84 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %4, i32 0, i32 1
  %85 = load <2 x float>, ptr %84, align 4
  %86 = call zeroext i1 @CheckCollisionPointRec(<2 x float> %81, <2 x float> %83, <2 x float> %85)
  br i1 %86, label %94, label %87

87:                                               ; preds = %79
  %88 = load <2 x float>, ptr %8, align 4
  %89 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %7, i32 0, i32 0
  %90 = load <2 x float>, ptr %89, align 4
  %91 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %7, i32 0, i32 1
  %92 = load <2 x float>, ptr %91, align 4
  %93 = call zeroext i1 @CheckCollisionPointRec(<2 x float> %88, <2 x float> %90, <2 x float> %92)
  br i1 %93, label %94, label %123

94:                                               ; preds = %87, %79
  %95 = call zeroext i1 @IsMouseButtonDown(i32 noundef 0)
  br i1 %95, label %96, label %121

96:                                               ; preds = %94
  store i32 2, ptr %6, align 4, !tbaa !9
  %97 = getelementptr inbounds %struct.Vector2, ptr %8, i32 0, i32 1
  %98 = load float, ptr %97, align 4, !tbaa !20
  %99 = getelementptr inbounds %struct.Rectangle, ptr %7, i32 0, i32 3
  %100 = load float, ptr %99, align 4, !tbaa !14
  %101 = fdiv float %100, 2.000000e+00
  %102 = fsub float %98, %101
  %103 = getelementptr inbounds %struct.Rectangle, ptr %7, i32 0, i32 1
  store float %102, ptr %103, align 4, !tbaa !13
  %104 = getelementptr inbounds %struct.Vector2, ptr %8, i32 0, i32 1
  %105 = load float, ptr %104, align 4, !tbaa !20
  %106 = getelementptr inbounds %struct.Rectangle, ptr %4, i32 0, i32 1
  %107 = load float, ptr %106, align 4, !tbaa !13
  %108 = fsub float %105, %107
  %109 = fmul float %108, 3.600000e+02
  %110 = getelementptr inbounds %struct.Rectangle, ptr %4, i32 0, i32 3
  %111 = load float, ptr %110, align 4, !tbaa !14
  %112 = fdiv float %109, %111
  store float %112, ptr %5, align 4, !tbaa !5
  %113 = load float, ptr %5, align 4, !tbaa !5
  %114 = fcmp ole float %113, 0.000000e+00
  br i1 %114, label %115, label %116

115:                                              ; preds = %96
  store float 0.000000e+00, ptr %5, align 4, !tbaa !5
  br label %116

116:                                              ; preds = %115, %96
  %117 = load float, ptr %5, align 4, !tbaa !5
  %118 = fcmp oge float %117, 3.590000e+02
  br i1 %118, label %119, label %120

119:                                              ; preds = %116
  store float 3.590000e+02, ptr %5, align 4, !tbaa !5
  br label %120

120:                                              ; preds = %119, %116
  br label %122

121:                                              ; preds = %94
  store i32 1, ptr %6, align 4, !tbaa !9
  br label %122

122:                                              ; preds = %121, %120
  br label %123

123:                                              ; preds = %122, %87
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  br label %124

124:                                              ; preds = %123, %76, %3
  %125 = load i32, ptr %6, align 4, !tbaa !9
  %126 = icmp ne i32 %125, 3
  br i1 %126, label %127, label %404

127:                                              ; preds = %124
  %128 = getelementptr inbounds %struct.Rectangle, ptr %4, i32 0, i32 0
  %129 = load float, ptr %128, align 4, !tbaa !11
  %130 = call i32 @GuiGetStyle(i32 noundef 13, i32 noundef 20)
  %131 = sdiv i32 %130, 2
  %132 = sitofp i32 %131 to float
  %133 = fadd float %129, %132
  %134 = fptosi float %133 to i32
  %135 = getelementptr inbounds %struct.Rectangle, ptr %4, i32 0, i32 1
  %136 = load float, ptr %135, align 4, !tbaa !13
  %137 = call i32 @GuiGetStyle(i32 noundef 13, i32 noundef 20)
  %138 = sdiv i32 %137, 2
  %139 = sitofp i32 %138 to float
  %140 = fadd float %136, %139
  %141 = fptosi float %140 to i32
  %142 = getelementptr inbounds %struct.Rectangle, ptr %4, i32 0, i32 2
  %143 = load float, ptr %142, align 4, !tbaa !15
  %144 = call i32 @GuiGetStyle(i32 noundef 13, i32 noundef 20)
  %145 = sitofp i32 %144 to float
  %146 = fsub float %143, %145
  %147 = fptosi float %146 to i32
  %148 = getelementptr inbounds %struct.Rectangle, ptr %4, i32 0, i32 3
  %149 = load float, ptr %148, align 4, !tbaa !14
  %150 = fptosi float %149 to i32
  %151 = sdiv i32 %150, 6
  %152 = getelementptr inbounds %struct.Color, ptr %10, i32 0, i32 0
  store i8 -1, ptr %152, align 1, !tbaa !22
  %153 = getelementptr inbounds %struct.Color, ptr %10, i32 0, i32 1
  store i8 0, ptr %153, align 1, !tbaa !24
  %154 = getelementptr inbounds %struct.Color, ptr %10, i32 0, i32 2
  store i8 0, ptr %154, align 1, !tbaa !25
  %155 = getelementptr inbounds %struct.Color, ptr %10, i32 0, i32 3
  store i8 -1, ptr %155, align 1, !tbaa !26
  %156 = load float, ptr @guiAlpha, align 4, !tbaa !5
  %157 = load i32, ptr %10, align 1
  %158 = call i32 @Fade(i32 %157, float noundef %156)
  store i32 %158, ptr %9, align 1
  %159 = getelementptr inbounds %struct.Color, ptr %12, i32 0, i32 0
  store i8 -1, ptr %159, align 1, !tbaa !22
  %160 = getelementptr inbounds %struct.Color, ptr %12, i32 0, i32 1
  store i8 -1, ptr %160, align 1, !tbaa !24
  %161 = getelementptr inbounds %struct.Color, ptr %12, i32 0, i32 2
  store i8 0, ptr %161, align 1, !tbaa !25
  %162 = getelementptr inbounds %struct.Color, ptr %12, i32 0, i32 3
  store i8 -1, ptr %162, align 1, !tbaa !26
  %163 = load float, ptr @guiAlpha, align 4, !tbaa !5
  %164 = load i32, ptr %12, align 1
  %165 = call i32 @Fade(i32 %164, float noundef %163)
  store i32 %165, ptr %11, align 1
  %166 = load i32, ptr %9, align 1
  %167 = load i32, ptr %11, align 1
  call void @DrawRectangleGradientV(i32 noundef %134, i32 noundef %141, i32 noundef %147, i32 noundef %151, i32 %166, i32 %167)
  %168 = getelementptr inbounds %struct.Rectangle, ptr %4, i32 0, i32 0
  %169 = load float, ptr %168, align 4, !tbaa !11
  %170 = call i32 @GuiGetStyle(i32 noundef 13, i32 noundef 20)
  %171 = sdiv i32 %170, 2
  %172 = sitofp i32 %171 to float
  %173 = fadd float %169, %172
  %174 = fptosi float %173 to i32
  %175 = getelementptr inbounds %struct.Rectangle, ptr %4, i32 0, i32 1
  %176 = load float, ptr %175, align 4, !tbaa !13
  %177 = getelementptr inbounds %struct.Rectangle, ptr %4, i32 0, i32 3
  %178 = load float, ptr %177, align 4, !tbaa !14
  %179 = fptosi float %178 to i32
  %180 = sdiv i32 %179, 6
  %181 = sitofp i32 %180 to float
  %182 = fadd float %176, %181
  %183 = call i32 @GuiGetStyle(i32 noundef 13, i32 noundef 20)
  %184 = sdiv i32 %183, 2
  %185 = sitofp i32 %184 to float
  %186 = fadd float %182, %185
  %187 = fptosi float %186 to i32
  %188 = getelementptr inbounds %struct.Rectangle, ptr %4, i32 0, i32 2
  %189 = load float, ptr %188, align 4, !tbaa !15
  %190 = call i32 @GuiGetStyle(i32 noundef 13, i32 noundef 20)
  %191 = sitofp i32 %190 to float
  %192 = fsub float %189, %191
  %193 = fptosi float %192 to i32
  %194 = getelementptr inbounds %struct.Rectangle, ptr %4, i32 0, i32 3
  %195 = load float, ptr %194, align 4, !tbaa !14
  %196 = fptosi float %195 to i32
  %197 = sdiv i32 %196, 6
  %198 = getelementptr inbounds %struct.Color, ptr %14, i32 0, i32 0
  store i8 -1, ptr %198, align 1, !tbaa !22
  %199 = getelementptr inbounds %struct.Color, ptr %14, i32 0, i32 1
  store i8 -1, ptr %199, align 1, !tbaa !24
  %200 = getelementptr inbounds %struct.Color, ptr %14, i32 0, i32 2
  store i8 0, ptr %200, align 1, !tbaa !25
  %201 = getelementptr inbounds %struct.Color, ptr %14, i32 0, i32 3
  store i8 -1, ptr %201, align 1, !tbaa !26
  %202 = load float, ptr @guiAlpha, align 4, !tbaa !5
  %203 = load i32, ptr %14, align 1
  %204 = call i32 @Fade(i32 %203, float noundef %202)
  store i32 %204, ptr %13, align 1
  %205 = getelementptr inbounds %struct.Color, ptr %16, i32 0, i32 0
  store i8 0, ptr %205, align 1, !tbaa !22
  %206 = getelementptr inbounds %struct.Color, ptr %16, i32 0, i32 1
  store i8 -1, ptr %206, align 1, !tbaa !24
  %207 = getelementptr inbounds %struct.Color, ptr %16, i32 0, i32 2
  store i8 0, ptr %207, align 1, !tbaa !25
  %208 = getelementptr inbounds %struct.Color, ptr %16, i32 0, i32 3
  store i8 -1, ptr %208, align 1, !tbaa !26
  %209 = load float, ptr @guiAlpha, align 4, !tbaa !5
  %210 = load i32, ptr %16, align 1
  %211 = call i32 @Fade(i32 %210, float noundef %209)
  store i32 %211, ptr %15, align 1
  %212 = load i32, ptr %13, align 1
  %213 = load i32, ptr %15, align 1
  call void @DrawRectangleGradientV(i32 noundef %174, i32 noundef %187, i32 noundef %193, i32 noundef %197, i32 %212, i32 %213)
  %214 = getelementptr inbounds %struct.Rectangle, ptr %4, i32 0, i32 0
  %215 = load float, ptr %214, align 4, !tbaa !11
  %216 = call i32 @GuiGetStyle(i32 noundef 13, i32 noundef 20)
  %217 = sdiv i32 %216, 2
  %218 = sitofp i32 %217 to float
  %219 = fadd float %215, %218
  %220 = fptosi float %219 to i32
  %221 = getelementptr inbounds %struct.Rectangle, ptr %4, i32 0, i32 1
  %222 = load float, ptr %221, align 4, !tbaa !13
  %223 = getelementptr inbounds %struct.Rectangle, ptr %4, i32 0, i32 3
  %224 = load float, ptr %223, align 4, !tbaa !14
  %225 = fptosi float %224 to i32
  %226 = sdiv i32 %225, 6
  %227 = mul nsw i32 2, %226
  %228 = sitofp i32 %227 to float
  %229 = fadd float %222, %228
  %230 = call i32 @GuiGetStyle(i32 noundef 13, i32 noundef 20)
  %231 = sdiv i32 %230, 2
  %232 = sitofp i32 %231 to float
  %233 = fadd float %229, %232
  %234 = fptosi float %233 to i32
  %235 = getelementptr inbounds %struct.Rectangle, ptr %4, i32 0, i32 2
  %236 = load float, ptr %235, align 4, !tbaa !15
  %237 = call i32 @GuiGetStyle(i32 noundef 13, i32 noundef 20)
  %238 = sitofp i32 %237 to float
  %239 = fsub float %236, %238
  %240 = fptosi float %239 to i32
  %241 = getelementptr inbounds %struct.Rectangle, ptr %4, i32 0, i32 3
  %242 = load float, ptr %241, align 4, !tbaa !14
  %243 = fptosi float %242 to i32
  %244 = sdiv i32 %243, 6
  %245 = getelementptr inbounds %struct.Color, ptr %18, i32 0, i32 0
  store i8 0, ptr %245, align 1, !tbaa !22
  %246 = getelementptr inbounds %struct.Color, ptr %18, i32 0, i32 1
  store i8 -1, ptr %246, align 1, !tbaa !24
  %247 = getelementptr inbounds %struct.Color, ptr %18, i32 0, i32 2
  store i8 0, ptr %247, align 1, !tbaa !25
  %248 = getelementptr inbounds %struct.Color, ptr %18, i32 0, i32 3
  store i8 -1, ptr %248, align 1, !tbaa !26
  %249 = load float, ptr @guiAlpha, align 4, !tbaa !5
  %250 = load i32, ptr %18, align 1
  %251 = call i32 @Fade(i32 %250, float noundef %249)
  store i32 %251, ptr %17, align 1
  %252 = getelementptr inbounds %struct.Color, ptr %20, i32 0, i32 0
  store i8 0, ptr %252, align 1, !tbaa !22
  %253 = getelementptr inbounds %struct.Color, ptr %20, i32 0, i32 1
  store i8 -1, ptr %253, align 1, !tbaa !24
  %254 = getelementptr inbounds %struct.Color, ptr %20, i32 0, i32 2
  store i8 -1, ptr %254, align 1, !tbaa !25
  %255 = getelementptr inbounds %struct.Color, ptr %20, i32 0, i32 3
  store i8 -1, ptr %255, align 1, !tbaa !26
  %256 = load float, ptr @guiAlpha, align 4, !tbaa !5
  %257 = load i32, ptr %20, align 1
  %258 = call i32 @Fade(i32 %257, float noundef %256)
  store i32 %258, ptr %19, align 1
  %259 = load i32, ptr %17, align 1
  %260 = load i32, ptr %19, align 1
  call void @DrawRectangleGradientV(i32 noundef %220, i32 noundef %234, i32 noundef %240, i32 noundef %244, i32 %259, i32 %260)
  %261 = getelementptr inbounds %struct.Rectangle, ptr %4, i32 0, i32 0
  %262 = load float, ptr %261, align 4, !tbaa !11
  %263 = call i32 @GuiGetStyle(i32 noundef 13, i32 noundef 20)
  %264 = sdiv i32 %263, 2
  %265 = sitofp i32 %264 to float
  %266 = fadd float %262, %265
  %267 = fptosi float %266 to i32
  %268 = getelementptr inbounds %struct.Rectangle, ptr %4, i32 0, i32 1
  %269 = load float, ptr %268, align 4, !tbaa !13
  %270 = getelementptr inbounds %struct.Rectangle, ptr %4, i32 0, i32 3
  %271 = load float, ptr %270, align 4, !tbaa !14
  %272 = fptosi float %271 to i32
  %273 = sdiv i32 %272, 6
  %274 = mul nsw i32 3, %273
  %275 = sitofp i32 %274 to float
  %276 = fadd float %269, %275
  %277 = call i32 @GuiGetStyle(i32 noundef 13, i32 noundef 20)
  %278 = sdiv i32 %277, 2
  %279 = sitofp i32 %278 to float
  %280 = fadd float %276, %279
  %281 = fptosi float %280 to i32
  %282 = getelementptr inbounds %struct.Rectangle, ptr %4, i32 0, i32 2
  %283 = load float, ptr %282, align 4, !tbaa !15
  %284 = call i32 @GuiGetStyle(i32 noundef 13, i32 noundef 20)
  %285 = sitofp i32 %284 to float
  %286 = fsub float %283, %285
  %287 = fptosi float %286 to i32
  %288 = getelementptr inbounds %struct.Rectangle, ptr %4, i32 0, i32 3
  %289 = load float, ptr %288, align 4, !tbaa !14
  %290 = fptosi float %289 to i32
  %291 = sdiv i32 %290, 6
  %292 = getelementptr inbounds %struct.Color, ptr %22, i32 0, i32 0
  store i8 0, ptr %292, align 1, !tbaa !22
  %293 = getelementptr inbounds %struct.Color, ptr %22, i32 0, i32 1
  store i8 -1, ptr %293, align 1, !tbaa !24
  %294 = getelementptr inbounds %struct.Color, ptr %22, i32 0, i32 2
  store i8 -1, ptr %294, align 1, !tbaa !25
  %295 = getelementptr inbounds %struct.Color, ptr %22, i32 0, i32 3
  store i8 -1, ptr %295, align 1, !tbaa !26
  %296 = load float, ptr @guiAlpha, align 4, !tbaa !5
  %297 = load i32, ptr %22, align 1
  %298 = call i32 @Fade(i32 %297, float noundef %296)
  store i32 %298, ptr %21, align 1
  %299 = getelementptr inbounds %struct.Color, ptr %24, i32 0, i32 0
  store i8 0, ptr %299, align 1, !tbaa !22
  %300 = getelementptr inbounds %struct.Color, ptr %24, i32 0, i32 1
  store i8 0, ptr %300, align 1, !tbaa !24
  %301 = getelementptr inbounds %struct.Color, ptr %24, i32 0, i32 2
  store i8 -1, ptr %301, align 1, !tbaa !25
  %302 = getelementptr inbounds %struct.Color, ptr %24, i32 0, i32 3
  store i8 -1, ptr %302, align 1, !tbaa !26
  %303 = load float, ptr @guiAlpha, align 4, !tbaa !5
  %304 = load i32, ptr %24, align 1
  %305 = call i32 @Fade(i32 %304, float noundef %303)
  store i32 %305, ptr %23, align 1
  %306 = load i32, ptr %21, align 1
  %307 = load i32, ptr %23, align 1
  call void @DrawRectangleGradientV(i32 noundef %267, i32 noundef %281, i32 noundef %287, i32 noundef %291, i32 %306, i32 %307)
  %308 = getelementptr inbounds %struct.Rectangle, ptr %4, i32 0, i32 0
  %309 = load float, ptr %308, align 4, !tbaa !11
  %310 = call i32 @GuiGetStyle(i32 noundef 13, i32 noundef 20)
  %311 = sdiv i32 %310, 2
  %312 = sitofp i32 %311 to float
  %313 = fadd float %309, %312
  %314 = fptosi float %313 to i32
  %315 = getelementptr inbounds %struct.Rectangle, ptr %4, i32 0, i32 1
  %316 = load float, ptr %315, align 4, !tbaa !13
  %317 = getelementptr inbounds %struct.Rectangle, ptr %4, i32 0, i32 3
  %318 = load float, ptr %317, align 4, !tbaa !14
  %319 = fptosi float %318 to i32
  %320 = sdiv i32 %319, 6
  %321 = mul nsw i32 4, %320
  %322 = sitofp i32 %321 to float
  %323 = fadd float %316, %322
  %324 = call i32 @GuiGetStyle(i32 noundef 13, i32 noundef 20)
  %325 = sdiv i32 %324, 2
  %326 = sitofp i32 %325 to float
  %327 = fadd float %323, %326
  %328 = fptosi float %327 to i32
  %329 = getelementptr inbounds %struct.Rectangle, ptr %4, i32 0, i32 2
  %330 = load float, ptr %329, align 4, !tbaa !15
  %331 = call i32 @GuiGetStyle(i32 noundef 13, i32 noundef 20)
  %332 = sitofp i32 %331 to float
  %333 = fsub float %330, %332
  %334 = fptosi float %333 to i32
  %335 = getelementptr inbounds %struct.Rectangle, ptr %4, i32 0, i32 3
  %336 = load float, ptr %335, align 4, !tbaa !14
  %337 = fptosi float %336 to i32
  %338 = sdiv i32 %337, 6
  %339 = getelementptr inbounds %struct.Color, ptr %26, i32 0, i32 0
  store i8 0, ptr %339, align 1, !tbaa !22
  %340 = getelementptr inbounds %struct.Color, ptr %26, i32 0, i32 1
  store i8 0, ptr %340, align 1, !tbaa !24
  %341 = getelementptr inbounds %struct.Color, ptr %26, i32 0, i32 2
  store i8 -1, ptr %341, align 1, !tbaa !25
  %342 = getelementptr inbounds %struct.Color, ptr %26, i32 0, i32 3
  store i8 -1, ptr %342, align 1, !tbaa !26
  %343 = load float, ptr @guiAlpha, align 4, !tbaa !5
  %344 = load i32, ptr %26, align 1
  %345 = call i32 @Fade(i32 %344, float noundef %343)
  store i32 %345, ptr %25, align 1
  %346 = getelementptr inbounds %struct.Color, ptr %28, i32 0, i32 0
  store i8 -1, ptr %346, align 1, !tbaa !22
  %347 = getelementptr inbounds %struct.Color, ptr %28, i32 0, i32 1
  store i8 0, ptr %347, align 1, !tbaa !24
  %348 = getelementptr inbounds %struct.Color, ptr %28, i32 0, i32 2
  store i8 -1, ptr %348, align 1, !tbaa !25
  %349 = getelementptr inbounds %struct.Color, ptr %28, i32 0, i32 3
  store i8 -1, ptr %349, align 1, !tbaa !26
  %350 = load float, ptr @guiAlpha, align 4, !tbaa !5
  %351 = load i32, ptr %28, align 1
  %352 = call i32 @Fade(i32 %351, float noundef %350)
  store i32 %352, ptr %27, align 1
  %353 = load i32, ptr %25, align 1
  %354 = load i32, ptr %27, align 1
  call void @DrawRectangleGradientV(i32 noundef %314, i32 noundef %328, i32 noundef %334, i32 noundef %338, i32 %353, i32 %354)
  %355 = getelementptr inbounds %struct.Rectangle, ptr %4, i32 0, i32 0
  %356 = load float, ptr %355, align 4, !tbaa !11
  %357 = call i32 @GuiGetStyle(i32 noundef 13, i32 noundef 20)
  %358 = sdiv i32 %357, 2
  %359 = sitofp i32 %358 to float
  %360 = fadd float %356, %359
  %361 = fptosi float %360 to i32
  %362 = getelementptr inbounds %struct.Rectangle, ptr %4, i32 0, i32 1
  %363 = load float, ptr %362, align 4, !tbaa !13
  %364 = getelementptr inbounds %struct.Rectangle, ptr %4, i32 0, i32 3
  %365 = load float, ptr %364, align 4, !tbaa !14
  %366 = fptosi float %365 to i32
  %367 = sdiv i32 %366, 6
  %368 = mul nsw i32 5, %367
  %369 = sitofp i32 %368 to float
  %370 = fadd float %363, %369
  %371 = call i32 @GuiGetStyle(i32 noundef 13, i32 noundef 20)
  %372 = sdiv i32 %371, 2
  %373 = sitofp i32 %372 to float
  %374 = fadd float %370, %373
  %375 = fptosi float %374 to i32
  %376 = getelementptr inbounds %struct.Rectangle, ptr %4, i32 0, i32 2
  %377 = load float, ptr %376, align 4, !tbaa !15
  %378 = call i32 @GuiGetStyle(i32 noundef 13, i32 noundef 20)
  %379 = sitofp i32 %378 to float
  %380 = fsub float %377, %379
  %381 = fptosi float %380 to i32
  %382 = getelementptr inbounds %struct.Rectangle, ptr %4, i32 0, i32 3
  %383 = load float, ptr %382, align 4, !tbaa !14
  %384 = fptosi float %383 to i32
  %385 = sdiv i32 %384, 6
  %386 = call i32 @GuiGetStyle(i32 noundef 13, i32 noundef 20)
  %387 = sub nsw i32 %385, %386
  %388 = getelementptr inbounds %struct.Color, ptr %30, i32 0, i32 0
  store i8 -1, ptr %388, align 1, !tbaa !22
  %389 = getelementptr inbounds %struct.Color, ptr %30, i32 0, i32 1
  store i8 0, ptr %389, align 1, !tbaa !24
  %390 = getelementptr inbounds %struct.Color, ptr %30, i32 0, i32 2
  store i8 -1, ptr %390, align 1, !tbaa !25
  %391 = getelementptr inbounds %struct.Color, ptr %30, i32 0, i32 3
  store i8 -1, ptr %391, align 1, !tbaa !26
  %392 = load float, ptr @guiAlpha, align 4, !tbaa !5
  %393 = load i32, ptr %30, align 1
  %394 = call i32 @Fade(i32 %393, float noundef %392)
  store i32 %394, ptr %29, align 1
  %395 = getelementptr inbounds %struct.Color, ptr %32, i32 0, i32 0
  store i8 -1, ptr %395, align 1, !tbaa !22
  %396 = getelementptr inbounds %struct.Color, ptr %32, i32 0, i32 1
  store i8 0, ptr %396, align 1, !tbaa !24
  %397 = getelementptr inbounds %struct.Color, ptr %32, i32 0, i32 2
  store i8 0, ptr %397, align 1, !tbaa !25
  %398 = getelementptr inbounds %struct.Color, ptr %32, i32 0, i32 3
  store i8 -1, ptr %398, align 1, !tbaa !26
  %399 = load float, ptr @guiAlpha, align 4, !tbaa !5
  %400 = load i32, ptr %32, align 1
  %401 = call i32 @Fade(i32 %400, float noundef %399)
  store i32 %401, ptr %31, align 1
  %402 = load i32, ptr %29, align 1
  %403 = load i32, ptr %31, align 1
  call void @DrawRectangleGradientV(i32 noundef %361, i32 noundef %375, i32 noundef %381, i32 noundef %387, i32 %402, i32 %403)
  br label %431

404:                                              ; preds = %124
  %405 = getelementptr inbounds %struct.Rectangle, ptr %4, i32 0, i32 0
  %406 = load float, ptr %405, align 4, !tbaa !11
  %407 = fptosi float %406 to i32
  %408 = getelementptr inbounds %struct.Rectangle, ptr %4, i32 0, i32 1
  %409 = load float, ptr %408, align 4, !tbaa !13
  %410 = fptosi float %409 to i32
  %411 = getelementptr inbounds %struct.Rectangle, ptr %4, i32 0, i32 2
  %412 = load float, ptr %411, align 4, !tbaa !15
  %413 = fptosi float %412 to i32
  %414 = getelementptr inbounds %struct.Rectangle, ptr %4, i32 0, i32 3
  %415 = load float, ptr %414, align 4, !tbaa !14
  %416 = fptosi float %415 to i32
  %417 = call i32 @GuiGetStyle(i32 noundef 13, i32 noundef 10)
  %418 = call i32 @GetColor(i32 noundef %417)
  store i32 %418, ptr %35, align 1
  %419 = load i32, ptr %35, align 1
  %420 = call i32 @Fade(i32 %419, float noundef 0x3FB99999A0000000)
  store i32 %420, ptr %34, align 1
  %421 = load float, ptr @guiAlpha, align 4, !tbaa !5
  %422 = load i32, ptr %34, align 1
  %423 = call i32 @Fade(i32 %422, float noundef %421)
  store i32 %423, ptr %33, align 1
  %424 = call i32 @GuiGetStyle(i32 noundef 13, i32 noundef 9)
  %425 = call i32 @GetColor(i32 noundef %424)
  store i32 %425, ptr %37, align 1
  %426 = load float, ptr @guiAlpha, align 4, !tbaa !5
  %427 = load i32, ptr %37, align 1
  %428 = call i32 @Fade(i32 %427, float noundef %426)
  store i32 %428, ptr %36, align 1
  %429 = load i32, ptr %33, align 1
  %430 = load i32, ptr %36, align 1
  call void @DrawRectangleGradientV(i32 noundef %407, i32 noundef %410, i32 noundef %413, i32 noundef %416, i32 %429, i32 %430)
  br label %431

431:                                              ; preds = %404, %127
  %432 = load i32, ptr %6, align 4, !tbaa !9
  %433 = mul i32 %432, 3
  %434 = add i32 0, %433
  %435 = call i32 @GuiGetStyle(i32 noundef 13, i32 noundef %434)
  %436 = call i32 @GetColor(i32 noundef %435)
  store i32 %436, ptr %39, align 1
  %437 = load float, ptr @guiAlpha, align 4, !tbaa !5
  %438 = load i32, ptr %39, align 1
  %439 = call i32 @Fade(i32 %438, float noundef %437)
  store i32 %439, ptr %38, align 1
  %440 = getelementptr inbounds %struct.Color, ptr %40, i32 0, i32 0
  store i8 0, ptr %440, align 1, !tbaa !22
  %441 = getelementptr inbounds %struct.Color, ptr %40, i32 0, i32 1
  store i8 0, ptr %441, align 1, !tbaa !24
  %442 = getelementptr inbounds %struct.Color, ptr %40, i32 0, i32 2
  store i8 0, ptr %442, align 1, !tbaa !25
  %443 = getelementptr inbounds %struct.Color, ptr %40, i32 0, i32 3
  store i8 0, ptr %443, align 1, !tbaa !26
  %444 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %4, i32 0, i32 0
  %445 = load <2 x float>, ptr %444, align 4
  %446 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %4, i32 0, i32 1
  %447 = load <2 x float>, ptr %446, align 4
  %448 = load i32, ptr %38, align 1
  %449 = load i32, ptr %40, align 1
  call void @GuiDrawRectangle(<2 x float> %445, <2 x float> %447, i32 noundef 1, i32 %448, i32 %449)
  %450 = getelementptr inbounds %struct.Color, ptr %41, i32 0, i32 0
  store i8 0, ptr %450, align 1, !tbaa !22
  %451 = getelementptr inbounds %struct.Color, ptr %41, i32 0, i32 1
  store i8 0, ptr %451, align 1, !tbaa !24
  %452 = getelementptr inbounds %struct.Color, ptr %41, i32 0, i32 2
  store i8 0, ptr %452, align 1, !tbaa !25
  %453 = getelementptr inbounds %struct.Color, ptr %41, i32 0, i32 3
  store i8 0, ptr %453, align 1, !tbaa !26
  %454 = load i32, ptr %6, align 4, !tbaa !9
  %455 = mul i32 %454, 3
  %456 = add i32 0, %455
  %457 = call i32 @GuiGetStyle(i32 noundef 13, i32 noundef %456)
  %458 = call i32 @GetColor(i32 noundef %457)
  store i32 %458, ptr %43, align 1
  %459 = load float, ptr @guiAlpha, align 4, !tbaa !5
  %460 = load i32, ptr %43, align 1
  %461 = call i32 @Fade(i32 %460, float noundef %459)
  store i32 %461, ptr %42, align 1
  %462 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %7, i32 0, i32 0
  %463 = load <2 x float>, ptr %462, align 4
  %464 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %7, i32 0, i32 1
  %465 = load <2 x float>, ptr %464, align 4
  %466 = load i32, ptr %41, align 1
  %467 = load i32, ptr %42, align 1
  call void @GuiDrawRectangle(<2 x float> %463, <2 x float> %465, i32 noundef 0, i32 %466, i32 %467)
  %468 = load float, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  ret float %468
}

declare void @DrawRectangleGradientV(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32, i32) #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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { nounwind }

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

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

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

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

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

declare i32 @GetColor(i32 noundef) local_unnamed_addr #2

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

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

declare zeroext i1 @IsMouseButtonDown(i32 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #3

; Function Attrs: nounwind uwtable
define dso_local float @GuiColorBarHue(<2 x float> %0, <2 x float> %1, float noundef %2) local_unnamed_addr #1 {
  %4 = load i32, ptr @guiState, align 4, !tbaa !5
  %.sroa.092.0.vec.extract = extractelement <2 x float> %0, i64 0
  %5 = tail call i32 @GuiGetStyle(i32 noundef 13, i32 noundef 20)
  %.sroa.092.4.vec.extract = extractelement <2 x float> %0, i64 1
  %6 = fdiv float %2, 3.600000e+02
  %.sroa.20.12.vec.extract = extractelement <2 x float> %1, i64 1
  %7 = tail call float @llvm.fmuladd.f32(float %6, float %.sroa.20.12.vec.extract, float %.sroa.092.4.vec.extract)
  %8 = tail call i32 @GuiGetStyle(i32 noundef 13, i32 noundef 20)
  %9 = insertelement <2 x i32> poison, i32 %5, i64 0
  %10 = insertelement <2 x i32> %9, i32 %8, i64 1
  %11 = sitofp <2 x i32> %10 to <2 x float>
  %12 = insertelement <2 x float> %0, float %7, i64 1
  %13 = fsub <2 x float> %12, %11
  %.sroa.20.8.vec.extract = extractelement <2 x float> %1, i64 0
  %14 = tail call i32 @GuiGetStyle(i32 noundef 13, i32 noundef 20)
  %15 = shl nsw i32 %14, 1
  %16 = sitofp i32 %15 to float
  %17 = fadd float %.sroa.20.8.vec.extract, %16
  %.sroa.7.8.vec.insert = insertelement <2 x float> poison, float %17, i64 0
  %18 = tail call i32 @GuiGetStyle(i32 noundef 13, i32 noundef 19)
  %19 = sitofp i32 %18 to float
  %.sroa.7.12.vec.insert = insertelement <2 x float> %.sroa.7.8.vec.insert, float %19, i64 1
  %.not = icmp eq i32 %4, 3
  br i1 %.not, label %166, label %20

20:                                               ; preds = %3
  %21 = load i8, ptr @guiLocked, align 1, !tbaa !9, !range !11, !noundef !12
  %22 = trunc nuw i8 %21 to i1
  br i1 %22, label %38, label %23

23:                                               ; preds = %20
  %24 = tail call <2 x float> @GetMousePosition() #4
  %25 = tail call zeroext i1 @CheckCollisionPointRec(<2 x float> %24, <2 x float> %0, <2 x float> %1) #4
  br i1 %25, label %28, label %26

26:                                               ; preds = %23
  %27 = tail call zeroext i1 @CheckCollisionPointRec(<2 x float> %24, <2 x float> %13, <2 x float> %.sroa.7.12.vec.insert) #4
  br i1 %27, label %28, label %38

28:                                               ; preds = %26, %23
  %29 = tail call zeroext i1 @IsMouseButtonDown(i32 noundef 0) #4
  br i1 %29, label %30, label %38

30:                                               ; preds = %28
  %.sroa.074.4.vec.extract = extractelement <2 x float> %24, i64 1
  %31 = fmul float %19, 5.000000e-01
  %32 = fsub float %.sroa.074.4.vec.extract, %31
  %.sroa.078.4.vec.insert82 = insertelement <2 x float> %13, float %32, i64 1
  %33 = fsub float %.sroa.074.4.vec.extract, %.sroa.092.4.vec.extract
  %34 = fmul float %33, 3.600000e+02
  %35 = fdiv float %34, %.sroa.20.12.vec.extract
  %.inv = fcmp ole float %35, 0.000000e+00
  %.0 = select i1 %.inv, float 0.000000e+00, float %35
  %36 = fcmp ult float %.0, 3.590000e+02
  br i1 %36, label %38, label %37

37:                                               ; preds = %30
  br label %38

38:                                               ; preds = %20, %37, %30, %26, %28
  %.sroa.078.1.ph = phi <2 x float> [ %13, %28 ], [ %13, %26 ], [ %.sroa.078.4.vec.insert82, %30 ], [ %.sroa.078.4.vec.insert82, %37 ], [ %13, %20 ]
  %.1168.ph = phi i32 [ 1, %28 ], [ %4, %26 ], [ 2, %30 ], [ 2, %37 ], [ %4, %20 ]
  %.2.ph = phi float [ %2, %28 ], [ %2, %26 ], [ %.0, %30 ], [ 3.590000e+02, %37 ], [ %2, %20 ]
  %39 = tail call i32 @GuiGetStyle(i32 noundef 13, i32 noundef 20)
  %40 = sdiv i32 %39, 2
  %41 = sitofp i32 %40 to float
  %42 = fadd float %.sroa.092.0.vec.extract, %41
  %43 = fptosi float %42 to i32
  %44 = tail call i32 @GuiGetStyle(i32 noundef 13, i32 noundef 20)
  %45 = sdiv i32 %44, 2
  %46 = sitofp i32 %45 to float
  %47 = fadd float %.sroa.092.4.vec.extract, %46
  %48 = fptosi float %47 to i32
  %49 = tail call i32 @GuiGetStyle(i32 noundef 13, i32 noundef 20)
  %50 = sitofp i32 %49 to float
  %51 = fsub float %.sroa.20.8.vec.extract, %50
  %52 = fptosi float %51 to i32
  %53 = fptosi float %.sroa.20.12.vec.extract to i32
  %54 = sdiv i32 %53, 6
  %55 = load float, ptr @guiAlpha, align 4, !tbaa !13
  %56 = tail call i32 @Fade(i32 -16776961, float noundef %55) #4
  %57 = load float, ptr @guiAlpha, align 4, !tbaa !13
  %58 = tail call i32 @Fade(i32 -16711681, float noundef %57) #4
  tail call void @DrawRectangleGradientV(i32 noundef %43, i32 noundef %48, i32 noundef %52, i32 noundef %54, i32 %56, i32 %58) #4
  %59 = tail call i32 @GuiGetStyle(i32 noundef 13, i32 noundef 20)
  %60 = sdiv i32 %59, 2
  %61 = sitofp i32 %60 to float
  %62 = fadd float %.sroa.092.0.vec.extract, %61
  %63 = fptosi float %62 to i32
  %64 = sitofp i32 %54 to float
  %65 = fadd float %.sroa.092.4.vec.extract, %64
  %66 = tail call i32 @GuiGetStyle(i32 noundef 13, i32 noundef 20)
  %67 = sdiv i32 %66, 2
  %68 = sitofp i32 %67 to float
  %69 = fadd float %65, %68
  %70 = fptosi float %69 to i32
  %71 = tail call i32 @GuiGetStyle(i32 noundef 13, i32 noundef 20)
  %72 = sitofp i32 %71 to float
  %73 = fsub float %.sroa.20.8.vec.extract, %72
  %74 = fptosi float %73 to i32
  %75 = load float, ptr @guiAlpha, align 4, !tbaa !13
  %76 = tail call i32 @Fade(i32 -16711681, float noundef %75) #4
  %77 = load float, ptr @guiAlpha, align 4, !tbaa !13
  %78 = tail call i32 @Fade(i32 -16711936, float noundef %77) #4
  tail call void @DrawRectangleGradientV(i32 noundef %63, i32 noundef %70, i32 noundef %74, i32 noundef %54, i32 %76, i32 %78) #4
  %79 = tail call i32 @GuiGetStyle(i32 noundef 13, i32 noundef 20)
  %80 = sdiv i32 %79, 2
  %81 = sitofp i32 %80 to float
  %82 = fadd float %.sroa.092.0.vec.extract, %81
  %83 = fptosi float %82 to i32
  %84 = shl nsw i32 %54, 1
  %85 = sitofp i32 %84 to float
  %86 = fadd float %.sroa.092.4.vec.extract, %85
  %87 = tail call i32 @GuiGetStyle(i32 noundef 13, i32 noundef 20)
  %88 = sdiv i32 %87, 2
  %89 = sitofp i32 %88 to float
  %90 = fadd float %86, %89
  %91 = fptosi float %90 to i32
  %92 = tail call i32 @GuiGetStyle(i32 noundef 13, i32 noundef 20)
  %93 = sitofp i32 %92 to float
  %94 = fsub float %.sroa.20.8.vec.extract, %93
  %95 = fptosi float %94 to i32
  %96 = load float, ptr @guiAlpha, align 4, !tbaa !13
  %97 = tail call i32 @Fade(i32 -16711936, float noundef %96) #4
  %98 = load float, ptr @guiAlpha, align 4, !tbaa !13
  %99 = tail call i32 @Fade(i32 -256, float noundef %98) #4
  tail call void @DrawRectangleGradientV(i32 noundef %83, i32 noundef %91, i32 noundef %95, i32 noundef %54, i32 %97, i32 %99) #4
  %100 = tail call i32 @GuiGetStyle(i32 noundef 13, i32 noundef 20)
  %101 = sdiv i32 %100, 2
  %102 = sitofp i32 %101 to float
  %103 = fadd float %.sroa.092.0.vec.extract, %102
  %104 = fptosi float %103 to i32
  %105 = mul nsw i32 %54, 3
  %106 = sitofp i32 %105 to float
  %107 = fadd float %.sroa.092.4.vec.extract, %106
  %108 = tail call i32 @GuiGetStyle(i32 noundef 13, i32 noundef 20)
  %109 = sdiv i32 %108, 2
  %110 = sitofp i32 %109 to float
  %111 = fadd float %107, %110
  %112 = fptosi float %111 to i32
  %113 = tail call i32 @GuiGetStyle(i32 noundef 13, i32 noundef 20)
  %114 = sitofp i32 %113 to float
  %115 = fsub float %.sroa.20.8.vec.extract, %114
  %116 = fptosi float %115 to i32
  %117 = load float, ptr @guiAlpha, align 4, !tbaa !13
  %118 = tail call i32 @Fade(i32 -256, float noundef %117) #4
  %119 = load float, ptr @guiAlpha, align 4, !tbaa !13
  %120 = tail call i32 @Fade(i32 -65536, float noundef %119) #4
  tail call void @DrawRectangleGradientV(i32 noundef %104, i32 noundef %112, i32 noundef %116, i32 noundef %54, i32 %118, i32 %120) #4
  %121 = tail call i32 @GuiGetStyle(i32 noundef 13, i32 noundef 20)
  %122 = sdiv i32 %121, 2
  %123 = sitofp i32 %122 to float
  %124 = fadd float %.sroa.092.0.vec.extract, %123
  %125 = fptosi float %124 to i32
  %126 = shl nsw i32 %54, 2
  %127 = sitofp i32 %126 to float
  %128 = fadd float %.sroa.092.4.vec.extract, %127
  %129 = tail call i32 @GuiGetStyle(i32 noundef 13, i32 noundef 20)
  %130 = sdiv i32 %129, 2
  %131 = sitofp i32 %130 to float
  %132 = fadd float %128, %131
  %133 = fptosi float %132 to i32
  %134 = tail call i32 @GuiGetStyle(i32 noundef 13, i32 noundef 20)
  %135 = sitofp i32 %134 to float
  %136 = fsub float %.sroa.20.8.vec.extract, %135
  %137 = fptosi float %136 to i32
  %138 = load float, ptr @guiAlpha, align 4, !tbaa !13
  %139 = tail call i32 @Fade(i32 -65536, float noundef %138) #4
  %140 = load float, ptr @guiAlpha, align 4, !tbaa !13
  %141 = tail call i32 @Fade(i32 -65281, float noundef %140) #4
  tail call void @DrawRectangleGradientV(i32 noundef %125, i32 noundef %133, i32 noundef %137, i32 noundef %54, i32 %139, i32 %141) #4
  %142 = tail call i32 @GuiGetStyle(i32 noundef 13, i32 noundef 20)
  %143 = sdiv i32 %142, 2
  %144 = sitofp i32 %143 to float
  %145 = fadd float %.sroa.092.0.vec.extract, %144
  %146 = fptosi float %145 to i32
  %147 = mul nsw i32 %54, 5
  %148 = sitofp i32 %147 to float
  %149 = fadd float %.sroa.092.4.vec.extract, %148
  %150 = tail call i32 @GuiGetStyle(i32 noundef 13, i32 noundef 20)
  %151 = sdiv i32 %150, 2
  %152 = sitofp i32 %151 to float
  %153 = fadd float %149, %152
  %154 = fptosi float %153 to i32
  %155 = tail call i32 @GuiGetStyle(i32 noundef 13, i32 noundef 20)
  %156 = sitofp i32 %155 to float
  %157 = fsub float %.sroa.20.8.vec.extract, %156
  %158 = fptosi float %157 to i32
  %159 = tail call i32 @GuiGetStyle(i32 noundef 13, i32 noundef 20)
  %160 = sub nsw i32 %54, %159
  %161 = load float, ptr @guiAlpha, align 4, !tbaa !13
  %162 = tail call i32 @Fade(i32 -65281, float noundef %161) #4
  %163 = load float, ptr @guiAlpha, align 4, !tbaa !13
  %164 = tail call i32 @Fade(i32 -16776961, float noundef %163) #4
  tail call void @DrawRectangleGradientV(i32 noundef %146, i32 noundef %154, i32 noundef %158, i32 noundef %160, i32 %162, i32 %164) #4
  %165 = mul i32 %.1168.ph, 3
  br label %180

166:                                              ; preds = %3
  %167 = fptosi float %.sroa.092.0.vec.extract to i32
  %168 = fptosi float %.sroa.092.4.vec.extract to i32
  %169 = fptosi float %.sroa.20.8.vec.extract to i32
  %170 = fptosi float %.sroa.20.12.vec.extract to i32
  %171 = tail call i32 @GuiGetStyle(i32 noundef 13, i32 noundef 10)
  %172 = tail call i32 @GetColor(i32 noundef %171) #4
  %173 = tail call i32 @Fade(i32 %172, float noundef 0x3FB99999A0000000) #4
  %174 = load float, ptr @guiAlpha, align 4, !tbaa !13
  %175 = tail call i32 @Fade(i32 %173, float noundef %174) #4
  %176 = tail call i32 @GuiGetStyle(i32 noundef 13, i32 noundef 9)
  %177 = tail call i32 @GetColor(i32 noundef %176) #4
  %178 = load float, ptr @guiAlpha, align 4, !tbaa !13
  %179 = tail call i32 @Fade(i32 %177, float noundef %178) #4
  tail call void @DrawRectangleGradientV(i32 noundef %167, i32 noundef %168, i32 noundef %169, i32 noundef %170, i32 %175, i32 %179) #4
  br label %180

180:                                              ; preds = %166, %38
  %.2181 = phi float [ %2, %166 ], [ %.2.ph, %38 ]
  %.1168179 = phi i32 [ 9, %166 ], [ %165, %38 ]
  %.sroa.078.1177 = phi <2 x float> [ %13, %166 ], [ %.sroa.078.1.ph, %38 ]
  %181 = tail call i32 @GuiGetStyle(i32 noundef 13, i32 noundef %.1168179)
  %182 = tail call i32 @GetColor(i32 noundef %181) #4
  %183 = load float, ptr @guiAlpha, align 4, !tbaa !13
  %184 = tail call i32 @Fade(i32 %182, float noundef %183) #4
  tail call void @GuiDrawRectangle(<2 x float> %0, <2 x float> %1, i32 noundef 1, i32 %184, i32 0)
  %185 = tail call i32 @GuiGetStyle(i32 noundef 13, i32 noundef %.1168179)
  %186 = tail call i32 @GetColor(i32 noundef %185) #4
  %187 = load float, ptr @guiAlpha, align 4, !tbaa !13
  %188 = tail call i32 @Fade(i32 %186, float noundef %187) #4
  tail call void @GuiDrawRectangle(<2 x float> %.sroa.078.1177, <2 x float> %.sroa.7.12.vec.insert, i32 noundef 0, i32 0, i32 %188)
  ret float %.2181
}

declare void @DrawRectangleGradientV(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32, i32) local_unnamed_addr #2

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

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

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


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