; LLVM IR from modlfo/AudioEngine :: AudioEngine/JuceLibraryCode (juce_gui_basics)

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

%"class.juce::Colour" = type { %"class.juce::PixelARGB" }
%"class.juce::PixelARGB" = type { %union.anon.77 }
%union.anon.77 = type { i32 }

declare i32 @__gxx_personality_v0(...)

; 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 noundef i32 @_ZN4juce10roundToIntIfEEiT_(float noundef) #1

; Function Attrs: nounwind
declare void @_ZN4juce6ColourC1Ej(ptr noundef nonnull align 1 dereferenceable(4), i32 noundef) unnamed_addr #2

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

declare void @_ZN4juce8Graphics9setColourENS_6ColourE(ptr noundef nonnull align 8 dereferenceable(17), ptr noundef) #4

; Function Attrs: nounwind
declare void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4)) unnamed_addr #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK4juce9RectangleIfE4getXEv(ptr noundef nonnull align 4 dereferenceable(16)) #5 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK4juce9RectangleIfE4getYEv(ptr noundef nonnull align 4 dereferenceable(16)) #5 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK4juce9RectangleIfE8getWidthEv(ptr noundef nonnull align 4 dereferenceable(16)) #5 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK4juce9RectangleIfE9getHeightEv(ptr noundef nonnull align 4 dereferenceable(16)) #5 align 2

declare void @_ZNK4juce8Graphics8drawRectEiiiii(ptr noundef nonnull align 8 dereferenceable(17), i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #4

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4juce14LookAndFeel_V224drawTreeviewPlusMinusBoxERNS_8GraphicsERKNS_9RectangleIfEENS_6ColourEbb(ptr noundef nonnull align 8 dereferenceable(304) %0, ptr noundef nonnull align 8 dereferenceable(17) %1, ptr noundef nonnull align 4 dereferenceable(16) %2, ptr noundef %3, i1 noundef zeroext %4, i1 noundef zeroext %5) unnamed_addr #6 align 2 personality ptr @__gxx_personality_v0 {
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i8, align 1
  %12 = alloca i8, align 1
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca %"class.juce::Colour", align 1
  %19 = alloca ptr, align 8
  %20 = alloca i32, align 4
  %21 = alloca %"class.juce::Colour", align 1
  %22 = alloca float, align 4
  %23 = alloca float, align 4
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store ptr %2, ptr %9, align 8, !tbaa !5
  store ptr %3, ptr %10, align 8, !tbaa !5
  %24 = zext i1 %4 to i8
  store i8 %24, ptr %11, align 1, !tbaa !9
  %25 = zext i1 %5 to i8
  store i8 %25, ptr %12, align 1, !tbaa !9
  %26 = load ptr, ptr %7, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  %27 = load ptr, ptr %9, align 8, !tbaa !5
  %28 = call noundef float @_ZNK4juce9RectangleIfE8getWidthEv(ptr noundef nonnull align 4 dereferenceable(16) %27) #7
  %29 = load ptr, ptr %9, align 8, !tbaa !5
  %30 = call noundef float @_ZNK4juce9RectangleIfE9getHeightEv(ptr noundef nonnull align 4 dereferenceable(16) %29) #7
  %31 = call noundef float @_ZN4juce4jminIfEET_S1_S1_S1_(float noundef 1.600000e+01, float noundef %28, float noundef %30)
  %32 = fmul float %31, 0x3FE6666660000000
  %33 = call noundef i32 @_ZN4juce10roundToIntIfEEiT_(float noundef %32) #7
  %34 = or i32 %33, 1
  store i32 %34, ptr %13, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  %35 = load ptr, ptr %9, align 8, !tbaa !5
  %36 = call noundef float @_ZNK4juce9RectangleIfE8getWidthEv(ptr noundef nonnull align 4 dereferenceable(16) %35) #7
  %37 = fptosi float %36 to i32
  %38 = load i32, ptr %13, align 4, !tbaa !11
  %39 = sub nsw i32 %37, %38
  %40 = sdiv i32 %39, 2
  %41 = load ptr, ptr %9, align 8, !tbaa !5
  %42 = call noundef float @_ZNK4juce9RectangleIfE4getXEv(ptr noundef nonnull align 4 dereferenceable(16) %41) #7
  %43 = fptosi float %42 to i32
  %44 = add nsw i32 %40, %43
  store i32 %44, ptr %14, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  %45 = load ptr, ptr %9, align 8, !tbaa !5
  %46 = call noundef float @_ZNK4juce9RectangleIfE9getHeightEv(ptr noundef nonnull align 4 dereferenceable(16) %45) #7
  %47 = fptosi float %46 to i32
  %48 = load i32, ptr %13, align 4, !tbaa !11
  %49 = sub nsw i32 %47, %48
  %50 = sdiv i32 %49, 2
  %51 = load ptr, ptr %9, align 8, !tbaa !5
  %52 = call noundef float @_ZNK4juce9RectangleIfE4getYEv(ptr noundef nonnull align 4 dereferenceable(16) %51) #7
  %53 = fptosi float %52 to i32
  %54 = add nsw i32 %50, %53
  store i32 %54, ptr %15, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  %55 = load i32, ptr %13, align 4, !tbaa !11
  store i32 %55, ptr %16, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #7
  %56 = load i32, ptr %13, align 4, !tbaa !11
  store i32 %56, ptr %17, align 4, !tbaa !11
  %57 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN4juce6ColourC1Ej(ptr noundef nonnull align 1 dereferenceable(4) %18, i32 noundef -436207617) #7
  invoke void @_ZN4juce8Graphics9setColourENS_6ColourE(ptr noundef nonnull align 8 dereferenceable(17) %57, ptr noundef %18)
          to label %58 unwind label %107

58:                                               ; preds = %6
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %18) #7
  %59 = load ptr, ptr %8, align 8, !tbaa !5
  %60 = load i32, ptr %14, align 4, !tbaa !11
  %61 = load i32, ptr %15, align 4, !tbaa !11
  %62 = load i32, ptr %16, align 4, !tbaa !11
  %63 = load i32, ptr %17, align 4, !tbaa !11
  call void @_ZNK4juce8Graphics8fillRectEiiii(ptr noundef nonnull align 8 dereferenceable(17) %59, i32 noundef %60, i32 noundef %61, i32 noundef %62, i32 noundef %63)
  %64 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN4juce6ColourC1Ej(ptr noundef nonnull align 1 dereferenceable(4) %21, i32 noundef -2147483648) #7
  invoke void @_ZN4juce8Graphics9setColourENS_6ColourE(ptr noundef nonnull align 8 dereferenceable(17) %64, ptr noundef %21)
          to label %65 unwind label %111

65:                                               ; preds = %58
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %21) #7
  %66 = load ptr, ptr %8, align 8, !tbaa !5
  %67 = load i32, ptr %14, align 4, !tbaa !11
  %68 = load i32, ptr %15, align 4, !tbaa !11
  %69 = load i32, ptr %16, align 4, !tbaa !11
  %70 = load i32, ptr %17, align 4, !tbaa !11
  call void @_ZNK4juce8Graphics8drawRectEiiiii(ptr noundef nonnull align 8 dereferenceable(17) %66, i32 noundef %67, i32 noundef %68, i32 noundef %69, i32 noundef %70, i32 noundef 1)
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #7
  %71 = load i32, ptr %13, align 4, !tbaa !11
  %72 = sdiv i32 %71, 2
  %73 = sitofp i32 %72 to float
  %74 = fadd float %73, 1.000000e+00
  store float %74, ptr %22, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #7
  %75 = load i32, ptr %13, align 4, !tbaa !11
  %76 = sdiv i32 %75, 2
  %77 = sitofp i32 %76 to float
  store float %77, ptr %23, align 4, !tbaa !13
  %78 = load ptr, ptr %8, align 8, !tbaa !5
  %79 = load i32, ptr %14, align 4, !tbaa !11
  %80 = sitofp i32 %79 to float
  %81 = load i32, ptr %16, align 4, !tbaa !11
  %82 = sitofp i32 %81 to float
  %83 = load float, ptr %22, align 4, !tbaa !13
  %84 = fsub float %82, %83
  %85 = call float @llvm.fmuladd.f32(float %84, float 5.000000e-01, float %80)
  %86 = load i32, ptr %15, align 4, !tbaa !11
  %87 = sitofp i32 %86 to float
  %88 = load float, ptr %23, align 4, !tbaa !13
  %89 = fadd float %87, %88
  %90 = load float, ptr %22, align 4, !tbaa !13
  call void @_ZNK4juce8Graphics8fillRectEffff(ptr noundef nonnull align 8 dereferenceable(17) %78, float noundef %85, float noundef %89, float noundef %90, float noundef 1.000000e+00)
  %91 = load i8, ptr %11, align 1, !tbaa !9, !range !15, !noundef !16
  %92 = trunc i8 %91 to i1
  br i1 %92, label %115, label %93

93:                                               ; preds = %65
  %94 = load ptr, ptr %8, align 8, !tbaa !5
  %95 = load i32, ptr %14, align 4, !tbaa !11
  %96 = sitofp i32 %95 to float
  %97 = load float, ptr %23, align 4, !tbaa !13
  %98 = fadd float %96, %97
  %99 = load i32, ptr %15, align 4, !tbaa !11
  %100 = sitofp i32 %99 to float
  %101 = load i32, ptr %17, align 4, !tbaa !11
  %102 = sitofp i32 %101 to float
  %103 = load float, ptr %22, align 4, !tbaa !13
  %104 = fsub float %102, %103
  %105 = call float @llvm.fmuladd.f32(float %104, float 5.000000e-01, float %100)
  %106 = load float, ptr %22, align 4, !tbaa !13
  call void @_ZNK4juce8Graphics8fillRectEffff(ptr noundef nonnull align 8 dereferenceable(17) %94, float noundef %98, float noundef %105, float noundef 1.000000e+00, float noundef %106)
  br label %115

107:                                              ; preds = %6
  %108 = landingpad { ptr, i32 }
          cleanup
  %109 = extractvalue { ptr, i32 } %108, 0
  store ptr %109, ptr %19, align 8
  %110 = extractvalue { ptr, i32 } %108, 1
  store i32 %110, ptr %20, align 4
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %18) #7
  br label %116

111:                                              ; preds = %58
  %112 = landingpad { ptr, i32 }
          cleanup
  %113 = extractvalue { ptr, i32 } %112, 0
  store ptr %113, ptr %19, align 8
  %114 = extractvalue { ptr, i32 } %112, 1
  store i32 %114, ptr %20, align 4
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %21) #7
  br label %116

115:                                              ; preds = %93, %65
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  ret void

116:                                              ; preds = %111, %107
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  br label %117

117:                                              ; preds = %116
  %118 = load ptr, ptr %19, align 8
  %119 = load i32, ptr %20, align 4
  %120 = insertvalue { ptr, i32 } poison, ptr %118, 0
  %121 = insertvalue { ptr, i32 } %120, i32 %119, 1
  resume { ptr, i32 } %121
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_ZN4juce4jminIfEET_S1_S1_S1_(float noundef, float noundef, float noundef) #1

declare void @_ZNK4juce8Graphics8fillRectEiiii(ptr noundef nonnull align 8 dereferenceable(17), i32 noundef, i32 noundef, i32 noundef, i32 noundef) #4

declare void @_ZNK4juce8Graphics8fillRectEffff(ptr noundef nonnull align 8 dereferenceable(17), float noundef, float noundef, float noundef, float noundef) #4

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 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 #6 = { 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 #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 = !{!"bool", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"float", !7, i64 0}
!15 = !{i8 0, i8 2}
!16 = !{}


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

%"class.juce::Colour" = type { %"class.juce::PixelARGB" }
%"class.juce::PixelARGB" = type { %union.anon.77 }
%union.anon.77 = type { i32 }

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN4juce10roundToIntIfEEiT_(float noundef) local_unnamed_addr #0

; Function Attrs: nounwind
declare void @_ZN4juce6ColourC1Ej(ptr noundef nonnull align 1 dereferenceable(4), i32 noundef) unnamed_addr #1

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

declare void @_ZN4juce8Graphics9setColourENS_6ColourE(ptr noundef nonnull align 8 dereferenceable(17), ptr noundef) local_unnamed_addr #3

; Function Attrs: nounwind
declare void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4)) unnamed_addr #1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK4juce9RectangleIfE4getXEv(ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK4juce9RectangleIfE4getYEv(ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK4juce9RectangleIfE8getWidthEv(ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK4juce9RectangleIfE9getHeightEv(ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #4 align 2

declare void @_ZNK4juce8Graphics8drawRectEiiiii(ptr noundef nonnull align 8 dereferenceable(17), i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4juce14LookAndFeel_V224drawTreeviewPlusMinusBoxERNS_8GraphicsERKNS_9RectangleIfEENS_6ColourEbb(ptr nocapture noundef nonnull readnone align 8 dereferenceable(304) %0, ptr noundef nonnull align 8 dereferenceable(17) %1, ptr noundef nonnull align 4 dereferenceable(16) %2, ptr nocapture noundef readnone %3, i1 noundef zeroext %4, i1 noundef zeroext %5) unnamed_addr #5 align 2 personality ptr @__gxx_personality_v0 {
  %7 = alloca %"class.juce::Colour", align 1
  %8 = alloca %"class.juce::Colour", align 1
  %9 = tail call noundef float @_ZNK4juce9RectangleIfE8getWidthEv(ptr noundef nonnull align 4 dereferenceable(16) %2) #6
  %10 = tail call noundef float @_ZNK4juce9RectangleIfE9getHeightEv(ptr noundef nonnull align 4 dereferenceable(16) %2) #6
  %11 = tail call noundef float @_ZN4juce4jminIfEET_S1_S1_S1_(float noundef 1.600000e+01, float noundef %9, float noundef %10)
  %12 = fmul float %11, 0x3FE6666660000000
  %13 = tail call noundef i32 @_ZN4juce10roundToIntIfEEiT_(float noundef %12) #6
  %14 = or i32 %13, 1
  %15 = tail call noundef float @_ZNK4juce9RectangleIfE8getWidthEv(ptr noundef nonnull align 4 dereferenceable(16) %2) #6
  %16 = fptosi float %15 to i32
  %17 = sub nsw i32 %16, %14
  %18 = sdiv i32 %17, 2
  %19 = tail call noundef float @_ZNK4juce9RectangleIfE4getXEv(ptr noundef nonnull align 4 dereferenceable(16) %2) #6
  %20 = fptosi float %19 to i32
  %21 = add nsw i32 %18, %20
  %22 = tail call noundef float @_ZNK4juce9RectangleIfE9getHeightEv(ptr noundef nonnull align 4 dereferenceable(16) %2) #6
  %23 = fptosi float %22 to i32
  %24 = sub nsw i32 %23, %14
  %25 = sdiv i32 %24, 2
  %26 = tail call noundef float @_ZNK4juce9RectangleIfE4getYEv(ptr noundef nonnull align 4 dereferenceable(16) %2) #6
  %27 = fptosi float %26 to i32
  %28 = add nsw i32 %25, %27
  call void @_ZN4juce6ColourC1Ej(ptr noundef nonnull align 1 dereferenceable(4) %7, i32 noundef -436207617) #6
  invoke void @_ZN4juce8Graphics9setColourENS_6ColourE(ptr noundef nonnull align 8 dereferenceable(17) %1, ptr noundef nonnull %7)
          to label %29 unwind label %43

29:                                               ; preds = %6
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %7) #6
  call void @_ZNK4juce8Graphics8fillRectEiiii(ptr noundef nonnull align 8 dereferenceable(17) %1, i32 noundef %21, i32 noundef %28, i32 noundef %14, i32 noundef %14)
  call void @_ZN4juce6ColourC1Ej(ptr noundef nonnull align 1 dereferenceable(4) %8, i32 noundef -2147483648) #6
  invoke void @_ZN4juce8Graphics9setColourENS_6ColourE(ptr noundef nonnull align 8 dereferenceable(17) %1, ptr noundef nonnull %8)
          to label %30 unwind label %45

30:                                               ; preds = %29
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %8) #6
  call void @_ZNK4juce8Graphics8drawRectEiiiii(ptr noundef nonnull align 8 dereferenceable(17) %1, i32 noundef %21, i32 noundef %28, i32 noundef %14, i32 noundef %14, i32 noundef 1)
  %31 = sdiv i32 %14, 2
  %32 = sitofp i32 %31 to float
  %33 = fadd float %32, 1.000000e+00
  %34 = sitofp i32 %21 to float
  %35 = sitofp i32 %14 to float
  %36 = fsub float %35, %33
  %37 = call float @llvm.fmuladd.f32(float %36, float 5.000000e-01, float %34)
  %38 = sitofp i32 %28 to float
  %39 = fadd float %32, %38
  call void @_ZNK4juce8Graphics8fillRectEffff(ptr noundef nonnull align 8 dereferenceable(17) %1, float noundef %37, float noundef %39, float noundef %33, float noundef 1.000000e+00)
  br i1 %4, label %47, label %40

40:                                               ; preds = %30
  %41 = fadd float %32, %34
  %42 = call float @llvm.fmuladd.f32(float %36, float 5.000000e-01, float %38)
  call void @_ZNK4juce8Graphics8fillRectEffff(ptr noundef nonnull align 8 dereferenceable(17) %1, float noundef %41, float noundef %42, float noundef 1.000000e+00, float noundef %33)
  br label %47

43:                                               ; preds = %6
  %44 = landingpad { ptr, i32 }
          cleanup
  br label %48

45:                                               ; preds = %29
  %46 = landingpad { ptr, i32 }
          cleanup
  br label %48

47:                                               ; preds = %40, %30
  ret void

48:                                               ; preds = %45, %43
  %.sink = phi ptr [ %8, %45 ], [ %7, %43 ]
  %.pn = phi { ptr, i32 } [ %46, %45 ], [ %44, %43 ]
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %.sink) #6
  resume { ptr, i32 } %.pn
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_ZN4juce4jminIfEET_S1_S1_S1_(float noundef, float noundef, float noundef) local_unnamed_addr #0

declare void @_ZNK4juce8Graphics8fillRectEiiii(ptr noundef nonnull align 8 dereferenceable(17), i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #3

declare void @_ZNK4juce8Graphics8fillRectEffff(ptr noundef nonnull align 8 dereferenceable(17), float noundef, float noundef, float noundef, float noundef) local_unnamed_addr #3

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


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