; LLVM IR from Samson-Mano/EM_Propogation_simulation :: EM_Propogation_simulation/src/ImGui (imgui_draw)

; 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.ImVec2 = type { float, float }

; 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: mustprogress nounwind uwtable
declare dso_local void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8), float noundef, float noundef) unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef float @_ZL5ImMinIfET_S0_S0_(float noundef, float noundef) #2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN10ImDrawList13AddRectFilledERK6ImVec2S2_jfi(ptr noundef nonnull align 8 dereferenceable(196), ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8), i32 noundef, float noundef, i32 noundef) #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef float @_ZL7ImClampIfET_S0_S0_S0_(float noundef, float noundef, float noundef) #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5ImGui36RenderColorRectWithAlphaCheckerboardEP10ImDrawList6ImVec2S2_jfS2_fi(ptr noundef %0, <2 x float> %1, <2 x float> %2, i32 noundef %3, float noundef %4, <2 x float> %5, float noundef %6, i32 noundef %7) #5 {
  %9 = alloca %struct.ImVec2, align 4
  %10 = alloca %struct.ImVec2, align 4
  %11 = alloca %struct.ImVec2, align 4
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca float, align 4
  %15 = alloca float, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca float, align 4
  %21 = alloca i32, align 4
  %22 = alloca float, align 4
  %23 = alloca float, align 4
  %24 = alloca float, align 4
  %25 = alloca float, align 4
  %26 = alloca float, align 4
  %27 = alloca i32, align 4
  %28 = alloca %struct.ImVec2, align 4
  %29 = alloca %struct.ImVec2, align 4
  store <2 x float> %1, ptr %9, align 4
  store <2 x float> %2, ptr %10, align 4
  store <2 x float> %5, ptr %11, align 4
  store ptr %0, ptr %12, align 8, !tbaa !5
  store i32 %3, ptr %13, align 4, !tbaa !9
  store float %4, ptr %14, align 4, !tbaa !11
  store float %6, ptr %15, align 4, !tbaa !11
  store i32 %7, ptr %16, align 4, !tbaa !9
  %30 = load i32, ptr %16, align 4, !tbaa !9
  %31 = and i32 %30, 496
  %32 = icmp eq i32 %31, 0
  br i1 %32, label %33, label %34

33:                                               ; preds = %8
  store i32 240, ptr %16, align 4, !tbaa !9
  br label %34

34:                                               ; preds = %33, %8
  %35 = load i32, ptr %13, align 4, !tbaa !9
  %36 = and i32 %35, -16777216
  %37 = lshr i32 %36, 24
  %38 = icmp ult i32 %37, 255
  br i1 %38, label %39, label %195

39:                                               ; preds = %34
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #7
  %40 = load i32, ptr %13, align 4, !tbaa !9
  %41 = call noundef i32 @_Z18ImAlphaBlendColorsjj(i32 noundef -3355444, i32 noundef %40)
  %42 = call noundef i32 @_ZN5ImGui11GetColorU32Ej(i32 noundef %41)
  store i32 %42, ptr %17, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #7
  %43 = load i32, ptr %13, align 4, !tbaa !9
  %44 = call noundef i32 @_Z18ImAlphaBlendColorsjj(i32 noundef -8355712, i32 noundef %43)
  %45 = call noundef i32 @_ZN5ImGui11GetColorU32Ej(i32 noundef %44)
  store i32 %45, ptr %18, align 4, !tbaa !9
  %46 = load ptr, ptr %12, align 8, !tbaa !5
  %47 = load i32, ptr %17, align 4, !tbaa !9
  %48 = load float, ptr %15, align 4, !tbaa !11
  %49 = load i32, ptr %16, align 4, !tbaa !9
  call void @_ZN10ImDrawList13AddRectFilledERK6ImVec2S2_jfi(ptr noundef nonnull align 8 dereferenceable(196) %46, ptr noundef nonnull align 4 dereferenceable(8) %9, ptr noundef nonnull align 4 dereferenceable(8) %10, i32 noundef %47, float noundef %48, i32 noundef %49)
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #7
  store i32 0, ptr %19, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #7
  %50 = getelementptr inbounds %struct.ImVec2, ptr %9, i32 0, i32 1
  %51 = load float, ptr %50, align 4, !tbaa !13
  %52 = getelementptr inbounds %struct.ImVec2, ptr %11, i32 0, i32 1
  %53 = load float, ptr %52, align 4, !tbaa !13
  %54 = fadd float %51, %53
  store float %54, ptr %20, align 4, !tbaa !11
  br label %55

55:                                               ; preds = %188, %39
  %56 = load float, ptr %20, align 4, !tbaa !11
  %57 = getelementptr inbounds %struct.ImVec2, ptr %10, i32 0, i32 1
  %58 = load float, ptr %57, align 4, !tbaa !13
  %59 = fcmp olt float %56, %58
  br i1 %59, label %61, label %60

60:                                               ; preds = %55
  store i32 2, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  br label %194

61:                                               ; preds = %55
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #7
  %62 = load float, ptr %20, align 4, !tbaa !11
  %63 = getelementptr inbounds %struct.ImVec2, ptr %9, i32 0, i32 1
  %64 = load float, ptr %63, align 4, !tbaa !13
  %65 = getelementptr inbounds %struct.ImVec2, ptr %10, i32 0, i32 1
  %66 = load float, ptr %65, align 4, !tbaa !13
  %67 = call noundef float @_ZL7ImClampIfET_S0_S0_S0_(float noundef %62, float noundef %64, float noundef %66)
  store float %67, ptr %22, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #7
  %68 = load float, ptr %20, align 4, !tbaa !11
  %69 = load float, ptr %14, align 4, !tbaa !11
  %70 = fadd float %68, %69
  %71 = getelementptr inbounds %struct.ImVec2, ptr %10, i32 0, i32 1
  %72 = load float, ptr %71, align 4, !tbaa !13
  %73 = call noundef float @_ZL5ImMinIfET_S0_S0_(float noundef %70, float noundef %72)
  store float %73, ptr %23, align 4, !tbaa !11
  %74 = load float, ptr %23, align 4, !tbaa !11
  %75 = load float, ptr %22, align 4, !tbaa !11
  %76 = fcmp ole float %74, %75
  br i1 %76, label %77, label %78

77:                                               ; preds = %61
  store i32 4, ptr %21, align 4
  br label %185

78:                                               ; preds = %61
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #7
  %79 = getelementptr inbounds %struct.ImVec2, ptr %9, i32 0, i32 0
  %80 = load float, ptr %79, align 4, !tbaa !15
  %81 = getelementptr inbounds %struct.ImVec2, ptr %11, i32 0, i32 0
  %82 = load float, ptr %81, align 4, !tbaa !15
  %83 = fadd float %80, %82
  %84 = load i32, ptr %19, align 4, !tbaa !9
  %85 = and i32 %84, 1
  %86 = sitofp i32 %85 to float
  %87 = load float, ptr %14, align 4, !tbaa !11
  %88 = call float @llvm.fmuladd.f32(float %86, float %87, float %83)
  store float %88, ptr %24, align 4, !tbaa !11
  br label %89

89:                                               ; preds = %180, %78
  %90 = load float, ptr %24, align 4, !tbaa !11
  %91 = getelementptr inbounds %struct.ImVec2, ptr %10, i32 0, i32 0
  %92 = load float, ptr %91, align 4, !tbaa !15
  %93 = fcmp olt float %90, %92
  br i1 %93, label %95, label %94

94:                                               ; preds = %89
  store i32 5, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #7
  br label %184

95:                                               ; preds = %89
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #7
  %96 = load float, ptr %24, align 4, !tbaa !11
  %97 = getelementptr inbounds %struct.ImVec2, ptr %9, i32 0, i32 0
  %98 = load float, ptr %97, align 4, !tbaa !15
  %99 = getelementptr inbounds %struct.ImVec2, ptr %10, i32 0, i32 0
  %100 = load float, ptr %99, align 4, !tbaa !15
  %101 = call noundef float @_ZL7ImClampIfET_S0_S0_S0_(float noundef %96, float noundef %98, float noundef %100)
  store float %101, ptr %25, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #7
  %102 = load float, ptr %24, align 4, !tbaa !11
  %103 = load float, ptr %14, align 4, !tbaa !11
  %104 = fadd float %102, %103
  %105 = getelementptr inbounds %struct.ImVec2, ptr %10, i32 0, i32 0
  %106 = load float, ptr %105, align 4, !tbaa !15
  %107 = call noundef float @_ZL5ImMinIfET_S0_S0_(float noundef %104, float noundef %106)
  store float %107, ptr %26, align 4, !tbaa !11
  %108 = load float, ptr %26, align 4, !tbaa !11
  %109 = load float, ptr %25, align 4, !tbaa !11
  %110 = fcmp ole float %108, %109
  br i1 %110, label %111, label %112

111:                                              ; preds = %95
  store i32 7, ptr %21, align 4
  br label %177

112:                                              ; preds = %95
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #7
  store i32 256, ptr %27, align 4, !tbaa !9
  %113 = load float, ptr %22, align 4, !tbaa !11
  %114 = getelementptr inbounds %struct.ImVec2, ptr %9, i32 0, i32 1
  %115 = load float, ptr %114, align 4, !tbaa !13
  %116 = fcmp ole float %113, %115
  br i1 %116, label %117, label %134

117:                                              ; preds = %112
  %118 = load float, ptr %25, align 4, !tbaa !11
  %119 = getelementptr inbounds %struct.ImVec2, ptr %9, i32 0, i32 0
  %120 = load float, ptr %119, align 4, !tbaa !15
  %121 = fcmp ole float %118, %120
  br i1 %121, label %122, label %125

122:                                              ; preds = %117
  %123 = load i32, ptr %27, align 4, !tbaa !9
  %124 = or i32 %123, 16
  store i32 %124, ptr %27, align 4, !tbaa !9
  br label %125

125:                                              ; preds = %122, %117
  %126 = load float, ptr %26, align 4, !tbaa !11
  %127 = getelementptr inbounds %struct.ImVec2, ptr %10, i32 0, i32 0
  %128 = load float, ptr %127, align 4, !tbaa !15
  %129 = fcmp oge float %126, %128
  br i1 %129, label %130, label %133

130:                                              ; preds = %125
  %131 = load i32, ptr %27, align 4, !tbaa !9
  %132 = or i32 %131, 32
  store i32 %132, ptr %27, align 4, !tbaa !9
  br label %133

133:                                              ; preds = %130, %125
  br label %134

134:                                              ; preds = %133, %112
  %135 = load float, ptr %23, align 4, !tbaa !11
  %136 = getelementptr inbounds %struct.ImVec2, ptr %10, i32 0, i32 1
  %137 = load float, ptr %136, align 4, !tbaa !13
  %138 = fcmp oge float %135, %137
  br i1 %138, label %139, label %156

139:                                              ; preds = %134
  %140 = load float, ptr %25, align 4, !tbaa !11
  %141 = getelementptr inbounds %struct.ImVec2, ptr %9, i32 0, i32 0
  %142 = load float, ptr %141, align 4, !tbaa !15
  %143 = fcmp ole float %140, %142
  br i1 %143, label %144, label %147

144:                                              ; preds = %139
  %145 = load i32, ptr %27, align 4, !tbaa !9
  %146 = or i32 %145, 64
  store i32 %146, ptr %27, align 4, !tbaa !9
  br label %147

147:                                              ; preds = %144, %139
  %148 = load float, ptr %26, align 4, !tbaa !11
  %149 = getelementptr inbounds %struct.ImVec2, ptr %10, i32 0, i32 0
  %150 = load float, ptr %149, align 4, !tbaa !15
  %151 = fcmp oge float %148, %150
  br i1 %151, label %152, label %155

152:                                              ; preds = %147
  %153 = load i32, ptr %27, align 4, !tbaa !9
  %154 = or i32 %153, 128
  store i32 %154, ptr %27, align 4, !tbaa !9
  br label %155

155:                                              ; preds = %152, %147
  br label %156

156:                                              ; preds = %155, %134
  %157 = load i32, ptr %16, align 4, !tbaa !9
  %158 = icmp eq i32 %157, 256
  br i1 %158, label %162, label %159

159:                                              ; preds = %156
  %160 = load i32, ptr %27, align 4, !tbaa !9
  %161 = icmp eq i32 %160, 256
  br i1 %161, label %162, label %163

162:                                              ; preds = %159, %156
  br label %167

163:                                              ; preds = %159
  %164 = load i32, ptr %27, align 4, !tbaa !9
  %165 = load i32, ptr %16, align 4, !tbaa !9
  %166 = and i32 %164, %165
  br label %167

167:                                              ; preds = %163, %162
  %168 = phi i32 [ 256, %162 ], [ %166, %163 ]
  store i32 %168, ptr %27, align 4, !tbaa !9
  %169 = load ptr, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #7
  %170 = load float, ptr %25, align 4, !tbaa !11
  %171 = load float, ptr %22, align 4, !tbaa !11
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %28, float noundef %170, float noundef %171)
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #7
  %172 = load float, ptr %26, align 4, !tbaa !11
  %173 = load float, ptr %23, align 4, !tbaa !11
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %29, float noundef %172, float noundef %173)
  %174 = load i32, ptr %18, align 4, !tbaa !9
  %175 = load float, ptr %15, align 4, !tbaa !11
  %176 = load i32, ptr %27, align 4, !tbaa !9
  call void @_ZN10ImDrawList13AddRectFilledERK6ImVec2S2_jfi(ptr noundef nonnull align 8 dereferenceable(196) %169, ptr noundef nonnull align 4 dereferenceable(8) %28, ptr noundef nonnull align 4 dereferenceable(8) %29, i32 noundef %174, float noundef %175, i32 noundef %176)
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #7
  store i32 0, ptr %21, align 4
  br label %177

177:                                              ; preds = %167, %111
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #7
  %178 = load i32, ptr %21, align 4
  switch i32 %178, label %201 [
    i32 0, label %179
    i32 7, label %180
  ]

179:                                              ; preds = %177
  br label %180

180:                                              ; preds = %179, %177
  %181 = load float, ptr %14, align 4, !tbaa !11
  %182 = load float, ptr %24, align 4, !tbaa !11
  %183 = call float @llvm.fmuladd.f32(float %181, float 2.000000e+00, float %182)
  store float %183, ptr %24, align 4, !tbaa !11
  br label %89, !llvm.loop !16

184:                                              ; preds = %94
  store i32 0, ptr %21, align 4
  br label %185

185:                                              ; preds = %184, %77
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #7
  %186 = load i32, ptr %21, align 4
  switch i32 %186, label %201 [
    i32 0, label %187
    i32 4, label %188
  ]

187:                                              ; preds = %185
  br label %188

188:                                              ; preds = %187, %185
  %189 = load float, ptr %14, align 4, !tbaa !11
  %190 = load float, ptr %20, align 4, !tbaa !11
  %191 = fadd float %190, %189
  store float %191, ptr %20, align 4, !tbaa !11
  %192 = load i32, ptr %19, align 4, !tbaa !9
  %193 = add nsw i32 %192, 1
  store i32 %193, ptr %19, align 4, !tbaa !9
  br label %55, !llvm.loop !18

194:                                              ; preds = %60
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  br label %200

195:                                              ; preds = %34
  %196 = load ptr, ptr %12, align 8, !tbaa !5
  %197 = load i32, ptr %13, align 4, !tbaa !9
  %198 = load float, ptr %15, align 4, !tbaa !11
  %199 = load i32, ptr %16, align 4, !tbaa !9
  call void @_ZN10ImDrawList13AddRectFilledERK6ImVec2S2_jfi(ptr noundef nonnull align 8 dereferenceable(196) %196, ptr noundef nonnull align 4 dereferenceable(8) %9, ptr noundef nonnull align 4 dereferenceable(8) %10, i32 noundef %197, float noundef %198, i32 noundef %199)
  br label %200

200:                                              ; preds = %195, %194
  ret void

201:                                              ; preds = %185, %177
  unreachable
}

declare noundef i32 @_ZN5ImGui11GetColorU32Ej(i32 noundef) #6

declare noundef i32 @_Z18ImAlphaBlendColorsjj(i32 noundef, i32 noundef) #6

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

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

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


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

%struct.ImVec2 = type { float, float }

; 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: mustprogress nounwind uwtable
declare dso_local void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8), float noundef, float noundef) unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef float @_ZL5ImMinIfET_S0_S0_(float noundef, float 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: mustprogress uwtable
declare dso_local void @_ZN10ImDrawList13AddRectFilledERK6ImVec2S2_jfi(ptr noundef nonnull align 8 dereferenceable(196), ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8), i32 noundef, float noundef, i32 noundef) local_unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef float @_ZL7ImClampIfET_S0_S0_S0_(float noundef, float noundef, float noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5ImGui36RenderColorRectWithAlphaCheckerboardEP10ImDrawList6ImVec2S2_jfS2_fi(ptr noundef %0, <2 x float> %1, <2 x float> %2, i32 noundef %3, float noundef %4, <2 x float> %5, float noundef %6, i32 noundef %7) local_unnamed_addr #5 {
  %9 = alloca %struct.ImVec2, align 8
  %10 = alloca %struct.ImVec2, align 8
  %11 = alloca %struct.ImVec2, align 4
  %12 = alloca %struct.ImVec2, align 4
  store <2 x float> %1, ptr %9, align 8
  store <2 x float> %2, ptr %10, align 8
  %13 = and i32 %7, 496
  %14 = icmp eq i32 %13, 0
  %spec.store.select = select i1 %14, i32 240, i32 %7
  %.not = icmp ugt i32 %3, -16777217
  br i1 %.not, label %82, label %15

15:                                               ; preds = %8
  %16 = tail call noundef i32 @_Z18ImAlphaBlendColorsjj(i32 noundef -3355444, i32 noundef %3)
  %17 = tail call noundef i32 @_ZN5ImGui11GetColorU32Ej(i32 noundef %16)
  %18 = tail call noundef i32 @_Z18ImAlphaBlendColorsjj(i32 noundef -8355712, i32 noundef %3)
  %19 = tail call noundef i32 @_ZN5ImGui11GetColorU32Ej(i32 noundef %18)
  call void @_ZN10ImDrawList13AddRectFilledERK6ImVec2S2_jfi(ptr noundef nonnull align 8 dereferenceable(196) %0, ptr noundef nonnull align 4 dereferenceable(8) %9, ptr noundef nonnull align 4 dereferenceable(8) %10, i32 noundef %17, float noundef %6, i32 noundef %spec.store.select)
  %20 = getelementptr inbounds i8, ptr %9, i64 4
  %21 = load float, ptr %20, align 4, !tbaa !5
  %.sroa.0.4.vec.extract = extractelement <2 x float> %5, i64 1
  %22 = fadd float %.sroa.0.4.vec.extract, %21
  %23 = getelementptr inbounds i8, ptr %10, i64 4
  %24 = load float, ptr %23, align 4, !tbaa !5
  %25 = fcmp olt float %22, %24
  br i1 %25, label %.lr.ph66, label %.loopexit62

.lr.ph66:                                         ; preds = %15
  %.sroa.0.0.vec.extract = extractelement <2 x float> %5, i64 0
  %26 = icmp eq i32 %spec.store.select, 256
  br label %27

27:                                               ; preds = %.lr.ph66, %.loopexit
  %28 = phi float [ %24, %.lr.ph66 ], [ %80, %.loopexit ]
  %.05365 = phi i32 [ 0, %.lr.ph66 ], [ %79, %.loopexit ]
  %.05564 = phi float [ %22, %.lr.ph66 ], [ %31, %.loopexit ]
  %29 = load float, ptr %20, align 4, !tbaa !5
  %30 = call noundef float @_ZL7ImClampIfET_S0_S0_S0_(float noundef %.05564, float noundef %29, float noundef %28)
  %31 = fadd float %.05564, %4
  %32 = load float, ptr %23, align 4, !tbaa !5
  %33 = call noundef float @_ZL5ImMinIfET_S0_S0_(float noundef %31, float noundef %32)
  %34 = fcmp ugt float %33, %30
  br i1 %34, label %35, label %.loopexit

35:                                               ; preds = %27
  %36 = load float, ptr %9, align 8, !tbaa !10
  %37 = fadd float %.sroa.0.0.vec.extract, %36
  %38 = and i32 %.05365, 1
  %39 = uitofp nneg i32 %38 to float
  %40 = call float @llvm.fmuladd.f32(float %39, float %4, float %37)
  %41 = load float, ptr %10, align 8, !tbaa !10
  %42 = fcmp olt float %40, %41
  br i1 %42, label %.lr.ph, label %.loopexit

.lr.ph:                                           ; preds = %35, %75
  %43 = phi float [ %77, %75 ], [ %41, %35 ]
  %.05463 = phi float [ %76, %75 ], [ %40, %35 ]
  %44 = load float, ptr %9, align 8, !tbaa !10
  %45 = call noundef float @_ZL7ImClampIfET_S0_S0_S0_(float noundef %.05463, float noundef %44, float noundef %43)
  %46 = fadd float %.05463, %4
  %47 = load float, ptr %10, align 8, !tbaa !10
  %48 = call noundef float @_ZL5ImMinIfET_S0_S0_(float noundef %46, float noundef %47)
  %49 = fcmp ugt float %48, %45
  br i1 %49, label %50, label %75

50:                                               ; preds = %.lr.ph
  %51 = load float, ptr %20, align 4, !tbaa !5
  %52 = fcmp ugt float %30, %51
  br i1 %52, label %60, label %53

53:                                               ; preds = %50
  %54 = load float, ptr %9, align 8, !tbaa !10
  %55 = fcmp ugt float %45, %54
  %.0 = select i1 %55, i32 256, i32 272
  %56 = load float, ptr %10, align 8, !tbaa !10
  %57 = fcmp ult float %48, %56
  br i1 %57, label %60, label %58

58:                                               ; preds = %53
  %59 = or disjoint i32 %.0, 32
  br label %60

60:                                               ; preds = %53, %58, %50
  %.1 = phi i32 [ %59, %58 ], [ %.0, %53 ], [ 256, %50 ]
  %61 = load float, ptr %23, align 4, !tbaa !5
  %62 = fcmp ult float %33, %61
  br i1 %62, label %71, label %63

63:                                               ; preds = %60
  %64 = load float, ptr %9, align 8, !tbaa !10
  %65 = fcmp ugt float %45, %64
  %66 = or i32 %.1, 64
  %.2 = select i1 %65, i32 %.1, i32 %66
  %67 = load float, ptr %10, align 8, !tbaa !10
  %68 = fcmp ult float %48, %67
  br i1 %68, label %71, label %69

69:                                               ; preds = %63
  %70 = or i32 %.2, 128
  br label %71

71:                                               ; preds = %63, %69, %60
  %.3 = phi i32 [ %70, %69 ], [ %.2, %63 ], [ %.1, %60 ]
  %72 = icmp eq i32 %.3, 256
  %or.cond = select i1 %26, i1 true, i1 %72
  %73 = and i32 %.3, %spec.store.select
  %74 = select i1 %or.cond, i32 256, i32 %73
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #7
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %11, float noundef %45, float noundef %30)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #7
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %12, float noundef %48, float noundef %33)
  call void @_ZN10ImDrawList13AddRectFilledERK6ImVec2S2_jfi(ptr noundef nonnull align 8 dereferenceable(196) %0, ptr noundef nonnull align 4 dereferenceable(8) %11, ptr noundef nonnull align 4 dereferenceable(8) %12, i32 noundef %19, float noundef %6, i32 noundef %74)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #7
  br label %75

75:                                               ; preds = %.lr.ph, %71
  %76 = call float @llvm.fmuladd.f32(float %4, float 2.000000e+00, float %.05463)
  %77 = load float, ptr %10, align 8, !tbaa !10
  %78 = fcmp olt float %76, %77
  br i1 %78, label %.lr.ph, label %.loopexit, !llvm.loop !11

.loopexit:                                        ; preds = %75, %35, %27
  %79 = add nuw nsw i32 %.05365, 1
  %80 = load float, ptr %23, align 4, !tbaa !5
  %81 = fcmp olt float %31, %80
  br i1 %81, label %27, label %.loopexit62, !llvm.loop !13

82:                                               ; preds = %8
  call void @_ZN10ImDrawList13AddRectFilledERK6ImVec2S2_jfi(ptr noundef nonnull align 8 dereferenceable(196) %0, ptr noundef nonnull align 4 dereferenceable(8) %9, ptr noundef nonnull align 4 dereferenceable(8) %10, i32 noundef %3, float noundef %6, i32 noundef %spec.store.select)
  br label %.loopexit62

.loopexit62:                                      ; preds = %.loopexit, %15, %82
  ret void
}

declare noundef i32 @_ZN5ImGui11GetColorU32Ej(i32 noundef) local_unnamed_addr #6

declare noundef i32 @_Z18ImAlphaBlendColorsjj(i32 noundef, i32 noundef) local_unnamed_addr #6

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

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

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


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass