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

; 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.Color = type { i8, i8, i8, i8 }

@guiState = external hidden global i32, align 4
@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

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

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

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

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

63:                                               ; preds = %7
  %64 = load float, ptr %11, align 4, !tbaa !9
  %65 = load float, ptr %13, align 4, !tbaa !9
  %66 = load float, ptr %12, align 4, !tbaa !9
  %67 = fsub float %65, %66
  %68 = fdiv float %64, %67
  %69 = getelementptr inbounds %struct.Rectangle, ptr %8, i32 0, i32 2
  %70 = load float, ptr %69, align 4, !tbaa !16
  %71 = call i32 @GuiGetStyle(i32 noundef 5, i32 noundef 12)
  %72 = mul nsw i32 2, %71
  %73 = sitofp i32 %72 to float
  %74 = fsub float %70, %73
  %75 = fmul float %68, %74
  %76 = fptosi float %75 to i32
  %77 = sitofp i32 %76 to float
  %78 = getelementptr inbounds %struct.Rectangle, ptr %15, i32 0, i32 2
  store float %77, ptr %78, align 4, !tbaa !16
  br label %79

79:                                               ; preds = %63, %7
  %80 = call i32 @GuiGetStyle(i32 noundef 5, i32 noundef 12)
  %81 = load i32, ptr %14, align 4, !tbaa !11
  %82 = mul i32 %81, 3
  %83 = add i32 0, %82
  %84 = call i32 @GuiGetStyle(i32 noundef 5, i32 noundef %83)
  %85 = call i32 @GetColor(i32 noundef %84)
  store i32 %85, ptr %17, align 1
  %86 = load float, ptr @guiAlpha, align 4, !tbaa !9
  %87 = load i32, ptr %17, align 1
  %88 = call i32 @Fade(i32 %87, float noundef %86)
  store i32 %88, ptr %16, align 1
  %89 = getelementptr inbounds %struct.Color, ptr %18, i32 0, i32 0
  store i8 0, ptr %89, align 1, !tbaa !18
  %90 = getelementptr inbounds %struct.Color, ptr %18, i32 0, i32 1
  store i8 0, ptr %90, align 1, !tbaa !20
  %91 = getelementptr inbounds %struct.Color, ptr %18, i32 0, i32 2
  store i8 0, ptr %91, align 1, !tbaa !21
  %92 = getelementptr inbounds %struct.Color, ptr %18, i32 0, i32 3
  store i8 0, ptr %92, align 1, !tbaa !22
  %93 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %8, i32 0, i32 0
  %94 = load <2 x float>, ptr %93, align 4
  %95 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %8, i32 0, i32 1
  %96 = load <2 x float>, ptr %95, align 4
  %97 = load i32, ptr %16, align 1
  %98 = load i32, ptr %18, align 1
  call void @GuiDrawRectangle(<2 x float> %94, <2 x float> %96, i32 noundef %80, i32 %97, i32 %98)
  %99 = load i32, ptr %14, align 4, !tbaa !11
  %100 = icmp eq i32 %99, 0
  br i1 %100, label %104, label %101

101:                                              ; preds = %79
  %102 = load i32, ptr %14, align 4, !tbaa !11
  %103 = icmp eq i32 %102, 2
  br i1 %103, label %104, label %120

104:                                              ; preds = %101, %79
  %105 = getelementptr inbounds %struct.Color, ptr %19, i32 0, i32 0
  store i8 0, ptr %105, align 1, !tbaa !18
  %106 = getelementptr inbounds %struct.Color, ptr %19, i32 0, i32 1
  store i8 0, ptr %106, align 1, !tbaa !20
  %107 = getelementptr inbounds %struct.Color, ptr %19, i32 0, i32 2
  store i8 0, ptr %107, align 1, !tbaa !21
  %108 = getelementptr inbounds %struct.Color, ptr %19, i32 0, i32 3
  store i8 0, ptr %108, align 1, !tbaa !22
  %109 = call i32 @GuiGetStyle(i32 noundef 5, i32 noundef 7)
  %110 = call i32 @GetColor(i32 noundef %109)
  store i32 %110, ptr %21, align 1
  %111 = load float, ptr @guiAlpha, align 4, !tbaa !9
  %112 = load i32, ptr %21, align 1
  %113 = call i32 @Fade(i32 %112, float noundef %111)
  store i32 %113, ptr %20, align 1
  %114 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %15, i32 0, i32 0
  %115 = load <2 x float>, ptr %114, align 4
  %116 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %15, i32 0, i32 1
  %117 = load <2 x float>, ptr %116, align 4
  %118 = load i32, ptr %19, align 1
  %119 = load i32, ptr %20, align 1
  call void @GuiDrawRectangle(<2 x float> %115, <2 x float> %117, i32 noundef 0, i32 %118, i32 %119)
  br label %140

120:                                              ; preds = %101
  %121 = load i32, ptr %14, align 4, !tbaa !11
  %122 = icmp eq i32 %121, 1
  br i1 %122, label %123, label %139

123:                                              ; preds = %120
  %124 = getelementptr inbounds %struct.Color, ptr %22, i32 0, i32 0
  store i8 0, ptr %124, align 1, !tbaa !18
  %125 = getelementptr inbounds %struct.Color, ptr %22, i32 0, i32 1
  store i8 0, ptr %125, align 1, !tbaa !20
  %126 = getelementptr inbounds %struct.Color, ptr %22, i32 0, i32 2
  store i8 0, ptr %126, align 1, !tbaa !21
  %127 = getelementptr inbounds %struct.Color, ptr %22, i32 0, i32 3
  store i8 0, ptr %127, align 1, !tbaa !22
  %128 = call i32 @GuiGetStyle(i32 noundef 5, i32 noundef 5)
  %129 = call i32 @GetColor(i32 noundef %128)
  store i32 %129, ptr %24, align 1
  %130 = load float, ptr @guiAlpha, align 4, !tbaa !9
  %131 = load i32, ptr %24, align 1
  %132 = call i32 @Fade(i32 %131, float noundef %130)
  store i32 %132, ptr %23, align 1
  %133 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %15, i32 0, i32 0
  %134 = load <2 x float>, ptr %133, align 4
  %135 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %15, i32 0, i32 1
  %136 = load <2 x float>, ptr %135, align 4
  %137 = load i32, ptr %22, align 1
  %138 = load i32, ptr %23, align 1
  call void @GuiDrawRectangle(<2 x float> %134, <2 x float> %136, i32 noundef 0, i32 %137, i32 %138)
  br label %139

139:                                              ; preds = %123, %120
  br label %140

140:                                              ; preds = %139, %104
  %141 = load ptr, ptr %9, align 8, !tbaa !5
  %142 = icmp ne ptr %141, null
  br i1 %142, label %143, label %185

143:                                              ; preds = %140
  call void @llvm.lifetime.start.p0(i64 16, ptr %25) #5
  call void @llvm.memset.p0.i64(ptr align 4 %25, i8 0, i64 16, i1 false)
  %144 = load ptr, ptr %9, align 8, !tbaa !5
  %145 = call i32 @GetTextWidth(ptr noundef %144)
  %146 = sitofp i32 %145 to float
  %147 = getelementptr inbounds %struct.Rectangle, ptr %25, i32 0, i32 2
  store float %146, ptr %147, align 4, !tbaa !16
  %148 = call i32 @GuiGetStyle(i32 noundef 0, i32 noundef 16)
  %149 = sitofp i32 %148 to float
  %150 = getelementptr inbounds %struct.Rectangle, ptr %25, i32 0, i32 3
  store float %149, ptr %150, align 4, !tbaa !17
  %151 = getelementptr inbounds %struct.Rectangle, ptr %8, i32 0, i32 0
  %152 = load float, ptr %151, align 4, !tbaa !13
  %153 = getelementptr inbounds %struct.Rectangle, ptr %25, i32 0, i32 2
  %154 = load float, ptr %153, align 4, !tbaa !16
  %155 = fsub float %152, %154
  %156 = call i32 @GuiGetStyle(i32 noundef 5, i32 noundef 13)
  %157 = sitofp i32 %156 to float
  %158 = fsub float %155, %157
  %159 = getelementptr inbounds %struct.Rectangle, ptr %25, i32 0, i32 0
  store float %158, ptr %159, align 4, !tbaa !13
  %160 = getelementptr inbounds %struct.Rectangle, ptr %8, i32 0, i32 1
  %161 = load float, ptr %160, align 4, !tbaa !15
  %162 = getelementptr inbounds %struct.Rectangle, ptr %8, i32 0, i32 3
  %163 = load float, ptr %162, align 4, !tbaa !17
  %164 = fdiv float %163, 2.000000e+00
  %165 = fadd float %161, %164
  %166 = call i32 @GuiGetStyle(i32 noundef 0, i32 noundef 16)
  %167 = sdiv i32 %166, 2
  %168 = sitofp i32 %167 to float
  %169 = fsub float %165, %168
  %170 = getelementptr inbounds %struct.Rectangle, ptr %25, i32 0, i32 1
  store float %169, ptr %170, align 4, !tbaa !15
  %171 = load ptr, ptr %9, align 8, !tbaa !5
  %172 = load i32, ptr %14, align 4, !tbaa !11
  %173 = mul i32 %172, 3
  %174 = add i32 2, %173
  %175 = call i32 @GuiGetStyle(i32 noundef 5, i32 noundef %174)
  %176 = call i32 @GetColor(i32 noundef %175)
  store i32 %176, ptr %27, align 1
  %177 = load float, ptr @guiAlpha, align 4, !tbaa !9
  %178 = load i32, ptr %27, align 1
  %179 = call i32 @Fade(i32 %178, float noundef %177)
  store i32 %179, ptr %26, align 1
  %180 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %25, i32 0, i32 0
  %181 = load <2 x float>, ptr %180, align 4
  %182 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %25, i32 0, i32 1
  %183 = load <2 x float>, ptr %182, align 4
  %184 = load i32, ptr %26, align 1
  call void @GuiDrawText(ptr noundef %171, <2 x float> %181, <2 x float> %183, i32 noundef 2, i32 %184)
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #5
  br label %185

185:                                              ; preds = %143, %140
  %186 = load ptr, ptr %10, align 8, !tbaa !5
  %187 = icmp ne ptr %186, null
  br i1 %187, label %188, label %230

188:                                              ; preds = %185
  call void @llvm.lifetime.start.p0(i64 16, ptr %28) #5
  call void @llvm.memset.p0.i64(ptr align 4 %28, i8 0, i64 16, i1 false)
  %189 = load ptr, ptr %10, align 8, !tbaa !5
  %190 = call i32 @GetTextWidth(ptr noundef %189)
  %191 = sitofp i32 %190 to float
  %192 = getelementptr inbounds %struct.Rectangle, ptr %28, i32 0, i32 2
  store float %191, ptr %192, align 4, !tbaa !16
  %193 = call i32 @GuiGetStyle(i32 noundef 0, i32 noundef 16)
  %194 = sitofp i32 %193 to float
  %195 = getelementptr inbounds %struct.Rectangle, ptr %28, i32 0, i32 3
  store float %194, ptr %195, align 4, !tbaa !17
  %196 = getelementptr inbounds %struct.Rectangle, ptr %8, i32 0, i32 0
  %197 = load float, ptr %196, align 4, !tbaa !13
  %198 = getelementptr inbounds %struct.Rectangle, ptr %8, i32 0, i32 2
  %199 = load float, ptr %198, align 4, !tbaa !16
  %200 = fadd float %197, %199
  %201 = call i32 @GuiGetStyle(i32 noundef 5, i32 noundef 13)
  %202 = sitofp i32 %201 to float
  %203 = fadd float %200, %202
  %204 = getelementptr inbounds %struct.Rectangle, ptr %28, i32 0, i32 0
  store float %203, ptr %204, align 4, !tbaa !13
  %205 = getelementptr inbounds %struct.Rectangle, ptr %8, i32 0, i32 1
  %206 = load float, ptr %205, align 4, !tbaa !15
  %207 = getelementptr inbounds %struct.Rectangle, ptr %8, i32 0, i32 3
  %208 = load float, ptr %207, align 4, !tbaa !17
  %209 = fdiv float %208, 2.000000e+00
  %210 = fadd float %206, %209
  %211 = call i32 @GuiGetStyle(i32 noundef 0, i32 noundef 16)
  %212 = sdiv i32 %211, 2
  %213 = sitofp i32 %212 to float
  %214 = fsub float %210, %213
  %215 = getelementptr inbounds %struct.Rectangle, ptr %28, i32 0, i32 1
  store float %214, ptr %215, align 4, !tbaa !15
  %216 = load ptr, ptr %10, align 8, !tbaa !5
  %217 = load i32, ptr %14, align 4, !tbaa !11
  %218 = mul i32 %217, 3
  %219 = add i32 2, %218
  %220 = call i32 @GuiGetStyle(i32 noundef 5, i32 noundef %219)
  %221 = call i32 @GetColor(i32 noundef %220)
  store i32 %221, ptr %30, align 1
  %222 = load float, ptr @guiAlpha, align 4, !tbaa !9
  %223 = load i32, ptr %30, align 1
  %224 = call i32 @Fade(i32 %223, float noundef %222)
  store i32 %224, ptr %29, align 1
  %225 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %28, i32 0, i32 0
  %226 = load <2 x float>, ptr %225, align 4
  %227 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %28, i32 0, i32 1
  %228 = load <2 x float>, ptr %227, align 4
  %229 = load i32, ptr %29, align 1
  call void @GuiDrawText(ptr noundef %216, <2 x float> %226, <2 x float> %228, i32 noundef 0, i32 %229)
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #5
  br label %230

230:                                              ; preds = %188, %185
  %231 = load float, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  ret float %231
}

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 nounwind willreturn memory(argmem: write) }
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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"float", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !10, i64 0}
!14 = !{!"Rectangle", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12}
!15 = !{!14, !10, i64 4}
!16 = !{!14, !10, i64 8}
!17 = !{!14, !10, i64 12}
!18 = !{!19, !7, i64 0}
!19 = !{!"Color", !7, i64 0, !7, i64 1, !7, i64 2, !7, i64 3}
!20 = !{!19, !7, i64 1}
!21 = !{!19, !7, i64 2}
!22 = !{!19, !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
@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

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

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

; Function Attrs: nounwind uwtable
define dso_local noundef float @GuiProgressBar(<2 x float> %0, <2 x float> %1, ptr noundef %2, ptr noundef %3, float noundef returned %4, float noundef %5, float noundef %6) local_unnamed_addr #1 {
  %8 = load i32, ptr @guiState, align 4, !tbaa !5
  %9 = tail call i32 @GuiGetStyle(i32 noundef 5, i32 noundef 12)
  %.sroa.051.4.vec.extract = extractelement <2 x float> %0, i64 1
  %10 = tail call i32 @GuiGetStyle(i32 noundef 5, i32 noundef 12)
  %11 = sitofp i32 %10 to float
  %12 = fadd float %.sroa.051.4.vec.extract, %11
  %13 = tail call i32 @GuiGetStyle(i32 noundef 5, i32 noundef 16)
  %14 = insertelement <2 x i32> poison, i32 %9, i64 0
  %15 = insertelement <2 x i32> %14, i32 %13, i64 1
  %16 = sitofp <2 x i32> %15 to <2 x float>
  %17 = insertelement <2 x float> %0, float %12, i64 1
  %18 = fadd <2 x float> %17, %16
  %.sroa.8.12.vec.extract = extractelement <2 x float> %1, i64 1
  %19 = tail call i32 @GuiGetStyle(i32 noundef 5, i32 noundef 12)
  %20 = shl nsw i32 %19, 1
  %21 = sitofp i32 %20 to float
  %22 = fsub float %.sroa.8.12.vec.extract, %21
  %23 = tail call i32 @GuiGetStyle(i32 noundef 5, i32 noundef 16)
  %24 = shl nsw i32 %23, 1
  %25 = sitofp i32 %24 to float
  %26 = fsub float %22, %25
  %.sroa.631.12.vec.insert = insertelement <2 x float> <float 0.000000e+00, float poison>, float %26, i64 1
  %.not = icmp eq i32 %8, 3
  br i1 %.not, label %37, label %27

27:                                               ; preds = %7
  %28 = fsub float %6, %5
  %29 = fdiv float %4, %28
  %.sroa.8.8.vec.extract = extractelement <2 x float> %1, i64 0
  %30 = tail call i32 @GuiGetStyle(i32 noundef 5, i32 noundef 12)
  %31 = shl nsw i32 %30, 1
  %32 = sitofp i32 %31 to float
  %33 = fsub float %.sroa.8.8.vec.extract, %32
  %34 = fmul float %29, %33
  %35 = fptosi float %34 to i32
  %36 = sitofp i32 %35 to float
  %.sroa.631.8.vec.insert35 = insertelement <2 x float> %.sroa.631.12.vec.insert, float %36, i64 0
  br label %37

37:                                               ; preds = %27, %7
  %.sroa.631.0 = phi <2 x float> [ %.sroa.631.8.vec.insert35, %27 ], [ %.sroa.631.12.vec.insert, %7 ]
  %38 = tail call i32 @GuiGetStyle(i32 noundef 5, i32 noundef 12)
  %39 = mul i32 %8, 3
  %40 = tail call i32 @GuiGetStyle(i32 noundef 5, i32 noundef %39)
  %41 = tail call i32 @GetColor(i32 noundef %40) #3
  %42 = load float, ptr @guiAlpha, align 4, !tbaa !9
  %43 = tail call i32 @Fade(i32 %41, float noundef %42) #3
  tail call void @GuiDrawRectangle(<2 x float> %0, <2 x float> %1, i32 noundef %38, i32 %43, i32 0)
  %44 = and i32 %8, -3
  %or.cond = icmp eq i32 %44, 0
  br i1 %or.cond, label %.sink.split, label %45

45:                                               ; preds = %37
  %46 = icmp eq i32 %8, 1
  br i1 %46, label %.sink.split, label %51

.sink.split:                                      ; preds = %45, %37
  %.sink74 = phi i32 [ 7, %37 ], [ 5, %45 ]
  %47 = tail call i32 @GuiGetStyle(i32 noundef 5, i32 noundef %.sink74)
  %48 = tail call i32 @GetColor(i32 noundef %47) #3
  %49 = load float, ptr @guiAlpha, align 4, !tbaa !9
  %50 = tail call i32 @Fade(i32 %48, float noundef %49) #3
  tail call void @GuiDrawRectangle(<2 x float> %18, <2 x float> %.sroa.631.0, i32 noundef 0, i32 0, i32 %50)
  br label %51

51:                                               ; preds = %.sink.split, %45
  %.not70 = icmp eq ptr %2, null
  br i1 %.not70, label %74, label %52

52:                                               ; preds = %51
  %53 = tail call i32 @GetTextWidth(ptr noundef nonnull %2)
  %54 = tail call i32 @GuiGetStyle(i32 noundef 0, i32 noundef 16)
  %55 = insertelement <2 x i32> poison, i32 %53, i64 0
  %56 = insertelement <2 x i32> %55, i32 %54, i64 1
  %57 = sitofp <2 x i32> %56 to <2 x float>
  %58 = fsub <2 x float> %0, %57
  %59 = extractelement <2 x float> %58, i64 0
  %60 = tail call i32 @GuiGetStyle(i32 noundef 5, i32 noundef 13)
  %61 = sitofp i32 %60 to float
  %62 = fsub float %59, %61
  %.sroa.08.0.vec.insert = insertelement <2 x float> poison, float %62, i64 0
  %63 = fmul float %.sroa.8.12.vec.extract, 5.000000e-01
  %64 = fadd float %.sroa.051.4.vec.extract, %63
  %65 = tail call i32 @GuiGetStyle(i32 noundef 0, i32 noundef 16)
  %66 = sdiv i32 %65, 2
  %67 = sitofp i32 %66 to float
  %68 = fsub float %64, %67
  %.sroa.08.4.vec.insert = insertelement <2 x float> %.sroa.08.0.vec.insert, float %68, i64 1
  %69 = add i32 %39, 2
  %70 = tail call i32 @GuiGetStyle(i32 noundef 5, i32 noundef %69)
  %71 = tail call i32 @GetColor(i32 noundef %70) #3
  %72 = load float, ptr @guiAlpha, align 4, !tbaa !9
  %73 = tail call i32 @Fade(i32 %71, float noundef %72) #3
  tail call void @GuiDrawText(ptr noundef nonnull %2, <2 x float> %.sroa.08.4.vec.insert, <2 x float> %57, i32 noundef 2, i32 %73)
  br label %74

74:                                               ; preds = %52, %51
  %.not71 = icmp eq ptr %3, null
  br i1 %.not71, label %97, label %75

75:                                               ; preds = %74
  %76 = tail call i32 @GetTextWidth(ptr noundef nonnull %3)
  %77 = tail call i32 @GuiGetStyle(i32 noundef 0, i32 noundef 16)
  %78 = insertelement <2 x i32> poison, i32 %76, i64 0
  %79 = insertelement <2 x i32> %78, i32 %77, i64 1
  %80 = sitofp <2 x i32> %79 to <2 x float>
  %81 = fadd <2 x float> %0, %1
  %82 = extractelement <2 x float> %81, i64 0
  %83 = tail call i32 @GuiGetStyle(i32 noundef 5, i32 noundef 13)
  %84 = sitofp i32 %83 to float
  %85 = fadd float %82, %84
  %.sroa.03.0.vec.insert = insertelement <2 x float> poison, float %85, i64 0
  %86 = fmul float %.sroa.8.12.vec.extract, 5.000000e-01
  %87 = fadd float %.sroa.051.4.vec.extract, %86
  %88 = tail call i32 @GuiGetStyle(i32 noundef 0, i32 noundef 16)
  %89 = sdiv i32 %88, 2
  %90 = sitofp i32 %89 to float
  %91 = fsub float %87, %90
  %.sroa.03.4.vec.insert = insertelement <2 x float> %.sroa.03.0.vec.insert, float %91, i64 1
  %92 = add i32 %39, 2
  %93 = tail call i32 @GuiGetStyle(i32 noundef 5, i32 noundef %92)
  %94 = tail call i32 @GetColor(i32 noundef %93) #3
  %95 = load float, ptr @guiAlpha, align 4, !tbaa !9
  %96 = tail call i32 @Fade(i32 %94, float noundef %95) #3
  tail call void @GuiDrawText(ptr noundef nonnull %3, <2 x float> %.sroa.03.4.vec.insert, <2 x float> %80, i32 noundef 0, i32 %96)
  br label %97

97:                                               ; preds = %75, %74
  ret float %4
}

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { 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 = { 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 = !{!"float", !7, i64 0}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass,VectorCombinePass