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

; 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::Rectangle" = type { %"class.juce::Point", i32, i32 }
%"class.juce::Point" = type { i32, i32 }
%"class.juce::MidiKeyboardComponent" = type { %"class.juce::Component.base", %"class.juce::MidiKeyboardStateListener", %"class.juce::ChangeBroadcaster", %"class.juce::Timer", ptr, float, i32, float, i32, i32, i32, float, [4 x i8], %"class.juce::Array.97", %"class.juce::Array.97", %"class.juce::BigInteger", %"class.juce::BigInteger", i8, i32, i32, float, i8, i8, i8, %"class.juce::ScopedPointer.164", %"class.juce::ScopedPointer.164", %"class.juce::Array.102", %"class.juce::Array.97", i32, i32 }
%"class.juce::Component.base" = type <{ %"class.juce::MouseListener", %"class.juce::String", %"class.juce::String", ptr, %"class.juce::Rectangle", %"class.juce::ScopedPointer", %"class.juce::ScopedPointer.0", %"class.juce::Array", ptr, %"class.juce::MouseCursor", ptr, %"class.juce::ScopedPointer.1", %"class.juce::ScopedPointer.2", %"class.juce::ScopedPointer.3", %"class.juce::ListenerList", %"class.juce::NamedValueSet", %"class.juce::WeakReference<juce::Component>::Master", %union.anon, i8 }>
%"class.juce::MouseListener" = type { ptr }
%"class.juce::String" = type { %"class.juce::CharPointer_UTF8" }
%"class.juce::CharPointer_UTF8" = type { ptr }
%"class.juce::ScopedPointer" = type { ptr }
%"class.juce::ScopedPointer.0" = type { ptr }
%"class.juce::Array" = type { %"class.juce::ArrayAllocationBase", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase" = type <{ %"class.juce::HeapBlock", i32, [4 x i8] }>
%"class.juce::HeapBlock" = type { ptr }
%"class.juce::MouseCursor" = type { ptr }
%"class.juce::ScopedPointer.1" = type { ptr }
%"class.juce::ScopedPointer.2" = type { ptr }
%"class.juce::ScopedPointer.3" = type { ptr }
%"class.juce::ListenerList" = type { %"class.juce::Array.4" }
%"class.juce::Array.4" = type { %"class.juce::ArrayAllocationBase.5", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.5" = type <{ %"class.juce::HeapBlock.6", i32, [4 x i8] }>
%"class.juce::HeapBlock.6" = type { ptr }
%"class.juce::NamedValueSet" = type { %"class.juce::Array.9" }
%"class.juce::Array.9" = type { %"class.juce::ArrayAllocationBase.10", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.10" = type <{ %"class.juce::HeapBlock.11", i32, [4 x i8] }>
%"class.juce::HeapBlock.11" = type { ptr }
%"class.juce::WeakReference<juce::Component>::Master" = type { %"class.juce::ReferenceCountedObjectPtr" }
%"class.juce::ReferenceCountedObjectPtr" = type { ptr }
%union.anon = type { i32 }
%"class.juce::MidiKeyboardStateListener" = type { ptr }
%"class.juce::ChangeBroadcaster" = type { ptr, %"class.juce::ChangeBroadcaster::ChangeBroadcasterCallback", %"class.juce::ListenerList.20" }
%"class.juce::ChangeBroadcaster::ChangeBroadcasterCallback" = type { %"class.juce::AsyncUpdater", ptr }
%"class.juce::AsyncUpdater" = type { ptr, %"class.juce::ReferenceCountedObjectPtr.19" }
%"class.juce::ReferenceCountedObjectPtr.19" = type { ptr }
%"class.juce::ListenerList.20" = type { %"class.juce::Array.21" }
%"class.juce::Array.21" = type { %"class.juce::ArrayAllocationBase.22", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.22" = type <{ %"class.juce::HeapBlock.23", i32, [4 x i8] }>
%"class.juce::HeapBlock.23" = type { ptr }
%"class.juce::Timer" = type { ptr, i32, i32, ptr, ptr }
%"class.juce::BigInteger" = type <{ %"class.juce::HeapBlock.34", [4 x i32], i64, i32, i8, [3 x i8] }>
%"class.juce::HeapBlock.34" = type { ptr }
%"class.juce::ScopedPointer.164" = type { ptr }
%"class.juce::Array.102" = type { %"class.juce::ArrayAllocationBase.103", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.103" = type <{ %"class.juce::HeapBlock.104", i32, [4 x i8] }>
%"class.juce::HeapBlock.104" = type { ptr }
%"class.juce::Array.97" = type { %"class.juce::ArrayAllocationBase.98", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.98" = type <{ %"class.juce::HeapBlock.99", i32, [4 x i8] }>
%"class.juce::HeapBlock.99" = type { ptr }

; 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 @_ZN4juce9RectangleIiEC2Eiiii(ptr noundef nonnull align 4 dereferenceable(16), i32 noundef, i32 noundef, i32 noundef, i32 noundef) unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK4juce9Component9getHeightEv(ptr noundef nonnull align 8 dereferenceable(197)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK4juce9Component8getWidthEv(ptr noundef nonnull align 8 dereferenceable(197)) #1 align 2

; Function Attrs: nounwind
declare noundef zeroext i1 @_ZN4juce11MidiMessage15isMidiNoteBlackEi(i32 noundef) #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK4juce21MidiKeyboardComponent9getKeyPosEiRiS1_(ptr noundef nonnull align 8 dereferenceable(560), i32 noundef, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK4juce21MidiKeyboardComponent18getRectangleForKeyEi(ptr dead_on_unwind noalias writable sret(%"class.juce::Rectangle") align 4 %0, ptr noundef nonnull align 8 dereferenceable(560) %1, i32 noundef %2) #3 align 2 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  store ptr %0, ptr %4, align 8
  store ptr %1, ptr %5, align 8, !tbaa !5
  store i32 %2, ptr %6, align 4, !tbaa !9
  %11 = load ptr, ptr %5, align 8
  br label %12

12:                                               ; preds = %3
  br label %13

13:                                               ; preds = %12
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  %14 = load i32, ptr %6, align 4, !tbaa !9
  call void @_ZNK4juce21MidiKeyboardComponent9getKeyPosEiRiS1_(ptr noundef nonnull align 8 dereferenceable(560) %11, i32 noundef %14, ptr noundef nonnull align 4 dereferenceable(4) %7, ptr noundef nonnull align 4 dereferenceable(4) %8)
  %15 = load i32, ptr %6, align 4, !tbaa !9
  %16 = call noundef zeroext i1 @_ZN4juce11MidiMessage15isMidiNoteBlackEi(i32 noundef %15) #4
  br i1 %16, label %17, label %48

17:                                               ; preds = %13
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  %18 = call noundef i32 @_ZNK4juce21MidiKeyboardComponent18getBlackNoteLengthEv(ptr noundef nonnull align 8 dereferenceable(560) %11) #4
  store i32 %18, ptr %9, align 4, !tbaa !9
  %19 = getelementptr inbounds %"class.juce::MidiKeyboardComponent", ptr %11, i32 0, i32 8
  %20 = load i32, ptr %19, align 4, !tbaa !11
  switch i32 %20, label %40 [
    i32 0, label %21
    i32 1, label %25
    i32 2, label %32
  ]

21:                                               ; preds = %17
  %22 = load i32, ptr %7, align 4, !tbaa !9
  %23 = load i32, ptr %8, align 4, !tbaa !9
  %24 = load i32, ptr %9, align 4, !tbaa !9
  call void @_ZN4juce9RectangleIiEC2Eiiii(ptr noundef nonnull align 4 dereferenceable(16) %0, i32 noundef %22, i32 noundef 0, i32 noundef %23, i32 noundef %24) #4
  store i32 1, ptr %10, align 4
  br label %45

25:                                               ; preds = %17
  %26 = call noundef i32 @_ZNK4juce9Component8getWidthEv(ptr noundef nonnull align 8 dereferenceable(197) %11) #4
  %27 = load i32, ptr %9, align 4, !tbaa !9
  %28 = sub nsw i32 %26, %27
  %29 = load i32, ptr %7, align 4, !tbaa !9
  %30 = load i32, ptr %9, align 4, !tbaa !9
  %31 = load i32, ptr %8, align 4, !tbaa !9
  call void @_ZN4juce9RectangleIiEC2Eiiii(ptr noundef nonnull align 4 dereferenceable(16) %0, i32 noundef %28, i32 noundef %29, i32 noundef %30, i32 noundef %31) #4
  store i32 1, ptr %10, align 4
  br label %45

32:                                               ; preds = %17
  %33 = call noundef i32 @_ZNK4juce9Component9getHeightEv(ptr noundef nonnull align 8 dereferenceable(197) %11) #4
  %34 = load i32, ptr %7, align 4, !tbaa !9
  %35 = sub nsw i32 %33, %34
  %36 = load i32, ptr %8, align 4, !tbaa !9
  %37 = sub nsw i32 %35, %36
  %38 = load i32, ptr %9, align 4, !tbaa !9
  %39 = load i32, ptr %8, align 4, !tbaa !9
  call void @_ZN4juce9RectangleIiEC2Eiiii(ptr noundef nonnull align 4 dereferenceable(16) %0, i32 noundef 0, i32 noundef %37, i32 noundef %38, i32 noundef %39) #4
  store i32 1, ptr %10, align 4
  br label %45

40:                                               ; preds = %17
  br label %41

41:                                               ; preds = %40
  br label %42

42:                                               ; preds = %41
  br label %43

43:                                               ; preds = %42
  br label %44

44:                                               ; preds = %43
  store i32 0, ptr %10, align 4
  br label %45

45:                                               ; preds = %44, %32, %25, %21
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  %46 = load i32, ptr %10, align 4
  switch i32 %46, label %73 [
    i32 0, label %47
  ]

47:                                               ; preds = %45
  br label %72

48:                                               ; preds = %13
  %49 = getelementptr inbounds %"class.juce::MidiKeyboardComponent", ptr %11, i32 0, i32 8
  %50 = load i32, ptr %49, align 4, !tbaa !11
  switch i32 %50, label %67 [
    i32 0, label %51
    i32 1, label %55
    i32 2, label %59
  ]

51:                                               ; preds = %48
  %52 = load i32, ptr %7, align 4, !tbaa !9
  %53 = load i32, ptr %8, align 4, !tbaa !9
  %54 = call noundef i32 @_ZNK4juce9Component9getHeightEv(ptr noundef nonnull align 8 dereferenceable(197) %11) #4
  call void @_ZN4juce9RectangleIiEC2Eiiii(ptr noundef nonnull align 4 dereferenceable(16) %0, i32 noundef %52, i32 noundef 0, i32 noundef %53, i32 noundef %54) #4
  store i32 1, ptr %10, align 4
  br label %73

55:                                               ; preds = %48
  %56 = load i32, ptr %7, align 4, !tbaa !9
  %57 = call noundef i32 @_ZNK4juce9Component8getWidthEv(ptr noundef nonnull align 8 dereferenceable(197) %11) #4
  %58 = load i32, ptr %8, align 4, !tbaa !9
  call void @_ZN4juce9RectangleIiEC2Eiiii(ptr noundef nonnull align 4 dereferenceable(16) %0, i32 noundef 0, i32 noundef %56, i32 noundef %57, i32 noundef %58) #4
  store i32 1, ptr %10, align 4
  br label %73

59:                                               ; preds = %48
  %60 = call noundef i32 @_ZNK4juce9Component9getHeightEv(ptr noundef nonnull align 8 dereferenceable(197) %11) #4
  %61 = load i32, ptr %7, align 4, !tbaa !9
  %62 = sub nsw i32 %60, %61
  %63 = load i32, ptr %8, align 4, !tbaa !9
  %64 = sub nsw i32 %62, %63
  %65 = call noundef i32 @_ZNK4juce9Component8getWidthEv(ptr noundef nonnull align 8 dereferenceable(197) %11) #4
  %66 = load i32, ptr %8, align 4, !tbaa !9
  call void @_ZN4juce9RectangleIiEC2Eiiii(ptr noundef nonnull align 4 dereferenceable(16) %0, i32 noundef 0, i32 noundef %64, i32 noundef %65, i32 noundef %66) #4
  store i32 1, ptr %10, align 4
  br label %73

67:                                               ; preds = %48
  br label %68

68:                                               ; preds = %67
  br label %69

69:                                               ; preds = %68
  br label %70

70:                                               ; preds = %69
  br label %71

71:                                               ; preds = %70
  br label %72

72:                                               ; preds = %71, %47
  call void @_ZN4juce9RectangleIiEC2Ev(ptr noundef nonnull align 4 dereferenceable(16) %0) #4
  store i32 1, ptr %10, align 4
  br label %73

73:                                               ; preds = %72, %59, %55, %51, %45
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  ret void
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK4juce21MidiKeyboardComponent18getBlackNoteLengthEv(ptr noundef nonnull align 8 dereferenceable(560)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4juce9RectangleIiEC2Ev(ptr noundef nonnull align 4 dereferenceable(16)) unnamed_addr #1 align 2

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 = { 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 #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 = !{!"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, !49, i64 316}
!12 = !{!"_ZTSN4juce21MidiKeyboardComponentE", !13, i64 0, !38, i64 200, !39, i64 208, !47, i64 264, !6, i64 296, !48, i64 304, !10, i64 308, !48, i64 312, !49, i64 316, !10, i64 320, !10, i64 324, !48, i64 328, !50, i64 336, !50, i64 360, !53, i64 384, !53, i64 424, !56, i64 464, !10, i64 468, !10, i64 472, !48, i64 476, !56, i64 480, !56, i64 481, !56, i64 482, !57, i64 488, !57, i64 496, !58, i64 504, !50, i64 528, !10, i64 552, !10, i64 556}
!13 = !{!"_ZTSN4juce9ComponentE", !14, i64 0, !15, i64 8, !15, i64 16, !6, i64 24, !17, i64 32, !19, i64 48, !20, i64 56, !21, i64 64, !6, i64 88, !24, i64 96, !6, i64 104, !25, i64 112, !26, i64 120, !27, i64 128, !28, i64 136, !32, i64 160, !36, i64 184, !7, i64 192, !7, i64 196}
!14 = !{!"_ZTSN4juce13MouseListenerE"}
!15 = !{!"_ZTSN4juce6StringE", !16, i64 0}
!16 = !{!"_ZTSN4juce16CharPointer_UTF8E", !6, i64 0}
!17 = !{!"_ZTSN4juce9RectangleIiEE", !18, i64 0, !10, i64 8, !10, i64 12}
!18 = !{!"_ZTSN4juce5PointIiEE", !10, i64 0, !10, i64 4}
!19 = !{!"_ZTSN4juce13ScopedPointerINS_9Component10PositionerEEE", !6, i64 0}
!20 = !{!"_ZTSN4juce13ScopedPointerINS_15AffineTransformEEE", !6, i64 0}
!21 = !{!"_ZTSN4juce5ArrayIPNS_9ComponentENS_20DummyCriticalSectionELi0EEE", !22, i64 0, !10, i64 16}
!22 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_9ComponentENS_20DummyCriticalSectionEEE", !23, i64 0, !10, i64 8}
!23 = !{!"_ZTSN4juce9HeapBlockIPNS_9ComponentELb0EEE", !6, i64 0}
!24 = !{!"_ZTSN4juce11MouseCursorE", !6, i64 0}
!25 = !{!"_ZTSN4juce13ScopedPointerINS_20CachedComponentImageEEE", !6, i64 0}
!26 = !{!"_ZTSN4juce13ScopedPointerINS_9Component17MouseListenerListEEE", !6, i64 0}
!27 = !{!"_ZTSN4juce13ScopedPointerINS_5ArrayIPNS_11KeyListenerENS_20DummyCriticalSectionELi0EEEEE", !6, i64 0}
!28 = !{!"_ZTSN4juce12ListenerListINS_17ComponentListenerENS_5ArrayIPS1_NS_20DummyCriticalSectionELi0EEEEE", !29, i64 0}
!29 = !{!"_ZTSN4juce5ArrayIPNS_17ComponentListenerENS_20DummyCriticalSectionELi0EEE", !30, i64 0, !10, i64 16}
!30 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_17ComponentListenerENS_20DummyCriticalSectionEEE", !31, i64 0, !10, i64 8}
!31 = !{!"_ZTSN4juce9HeapBlockIPNS_17ComponentListenerELb0EEE", !6, i64 0}
!32 = !{!"_ZTSN4juce13NamedValueSetE", !33, i64 0}
!33 = !{!"_ZTSN4juce5ArrayINS_13NamedValueSet10NamedValueENS_20DummyCriticalSectionELi0EEE", !34, i64 0, !10, i64 16}
!34 = !{!"_ZTSN4juce19ArrayAllocationBaseINS_13NamedValueSet10NamedValueENS_20DummyCriticalSectionEEE", !35, i64 0, !10, i64 8}
!35 = !{!"_ZTSN4juce9HeapBlockINS_13NamedValueSet10NamedValueELb0EEE", !6, i64 0}
!36 = !{!"_ZTSN4juce13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEE6MasterE", !37, i64 0}
!37 = !{!"_ZTSN4juce25ReferenceCountedObjectPtrINS_13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEE13SharedPointerEEE", !6, i64 0}
!38 = !{!"_ZTSN4juce25MidiKeyboardStateListenerE"}
!39 = !{!"_ZTSN4juce17ChangeBroadcasterE", !40, i64 8, !43, i64 32}
!40 = !{!"_ZTSN4juce17ChangeBroadcaster25ChangeBroadcasterCallbackE", !41, i64 0, !6, i64 16}
!41 = !{!"_ZTSN4juce12AsyncUpdaterE", !42, i64 8}
!42 = !{!"_ZTSN4juce25ReferenceCountedObjectPtrINS_12AsyncUpdater19AsyncUpdaterMessageEEE", !6, i64 0}
!43 = !{!"_ZTSN4juce12ListenerListINS_14ChangeListenerENS_5ArrayIPS1_NS_20DummyCriticalSectionELi0EEEEE", !44, i64 0}
!44 = !{!"_ZTSN4juce5ArrayIPNS_14ChangeListenerENS_20DummyCriticalSectionELi0EEE", !45, i64 0, !10, i64 16}
!45 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_14ChangeListenerENS_20DummyCriticalSectionEEE", !46, i64 0, !10, i64 8}
!46 = !{!"_ZTSN4juce9HeapBlockIPNS_14ChangeListenerELb0EEE", !6, i64 0}
!47 = !{!"_ZTSN4juce5TimerE", !10, i64 8, !10, i64 12, !6, i64 16, !6, i64 24}
!48 = !{!"float", !7, i64 0}
!49 = !{!"_ZTSN4juce21MidiKeyboardComponent11OrientationE", !7, i64 0}
!50 = !{!"_ZTSN4juce5ArrayIiNS_20DummyCriticalSectionELi0EEE", !51, i64 0, !10, i64 16}
!51 = !{!"_ZTSN4juce19ArrayAllocationBaseIiNS_20DummyCriticalSectionEEE", !52, i64 0, !10, i64 8}
!52 = !{!"_ZTSN4juce9HeapBlockIiLb0EEE", !6, i64 0}
!53 = !{!"_ZTSN4juce10BigIntegerE", !54, i64 0, !7, i64 8, !55, i64 24, !10, i64 32, !56, i64 36}
!54 = !{!"_ZTSN4juce9HeapBlockIjLb0EEE", !6, i64 0}
!55 = !{!"long", !7, i64 0}
!56 = !{!"bool", !7, i64 0}
!57 = !{!"_ZTSN4juce13ScopedPointerINS_6ButtonEEE", !6, i64 0}
!58 = !{!"_ZTSN4juce5ArrayINS_8KeyPressENS_20DummyCriticalSectionELi0EEE", !59, i64 0, !10, i64 16}
!59 = !{!"_ZTSN4juce19ArrayAllocationBaseINS_8KeyPressENS_20DummyCriticalSectionEEE", !60, i64 0, !10, i64 8}
!60 = !{!"_ZTSN4juce9HeapBlockINS_8KeyPressELb0EEE", !6, i64 0}


; 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::Rectangle" = type { %"class.juce::Point", i32, i32 }
%"class.juce::Point" = type { i32, i32 }

; 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 @_ZN4juce9RectangleIiEC2Eiiii(ptr noundef nonnull align 4 dereferenceable(16), i32 noundef, i32 noundef, i32 noundef, i32 noundef) unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK4juce9Component9getHeightEv(ptr noundef nonnull align 8 dereferenceable(197)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK4juce9Component8getWidthEv(ptr noundef nonnull align 8 dereferenceable(197)) local_unnamed_addr #1 align 2

; Function Attrs: nounwind
declare noundef zeroext i1 @_ZN4juce11MidiMessage15isMidiNoteBlackEi(i32 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK4juce21MidiKeyboardComponent9getKeyPosEiRiS1_(ptr noundef nonnull align 8 dereferenceable(560), i32 noundef, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK4juce21MidiKeyboardComponent18getRectangleForKeyEi(ptr dead_on_unwind noalias writable sret(%"class.juce::Rectangle") align 4 %0, ptr noundef nonnull align 8 dereferenceable(560) %1, i32 noundef %2) local_unnamed_addr #3 align 2 {
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #4
  call void @_ZNK4juce21MidiKeyboardComponent9getKeyPosEiRiS1_(ptr noundef nonnull align 8 dereferenceable(560) %1, i32 noundef %2, ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 4 dereferenceable(4) %5)
  %6 = call noundef zeroext i1 @_ZN4juce11MidiMessage15isMidiNoteBlackEi(i32 noundef %2) #4
  br i1 %6, label %7, label %25

7:                                                ; preds = %3
  %8 = call noundef i32 @_ZNK4juce21MidiKeyboardComponent18getBlackNoteLengthEv(ptr noundef nonnull align 8 dereferenceable(560) %1) #4
  %9 = getelementptr inbounds i8, ptr %1, i64 316
  %10 = load i32, ptr %9, align 4, !tbaa !5
  switch i32 %10, label %44 [
    i32 0, label %11
    i32 1, label %14
    i32 2, label %19
  ]

11:                                               ; preds = %7
  %12 = load i32, ptr %4, align 4, !tbaa !59
  %13 = load i32, ptr %5, align 4, !tbaa !59
  call void @_ZN4juce9RectangleIiEC2Eiiii(ptr noundef nonnull align 4 dereferenceable(16) %0, i32 noundef %12, i32 noundef 0, i32 noundef %13, i32 noundef %8) #4
  br label %.critedge

14:                                               ; preds = %7
  %15 = call noundef i32 @_ZNK4juce9Component8getWidthEv(ptr noundef nonnull align 8 dereferenceable(197) %1) #4
  %16 = sub nsw i32 %15, %8
  %17 = load i32, ptr %4, align 4, !tbaa !59
  %18 = load i32, ptr %5, align 4, !tbaa !59
  call void @_ZN4juce9RectangleIiEC2Eiiii(ptr noundef nonnull align 4 dereferenceable(16) %0, i32 noundef %16, i32 noundef %17, i32 noundef %8, i32 noundef %18) #4
  br label %.critedge

19:                                               ; preds = %7
  %20 = call noundef i32 @_ZNK4juce9Component9getHeightEv(ptr noundef nonnull align 8 dereferenceable(197) %1) #4
  %21 = load i32, ptr %4, align 4, !tbaa !59
  %22 = load i32, ptr %5, align 4, !tbaa !59
  %23 = add i32 %21, %22
  %24 = sub i32 %20, %23
  call void @_ZN4juce9RectangleIiEC2Eiiii(ptr noundef nonnull align 4 dereferenceable(16) %0, i32 noundef 0, i32 noundef %24, i32 noundef %8, i32 noundef %22) #4
  br label %.critedge

25:                                               ; preds = %3
  %26 = getelementptr inbounds i8, ptr %1, i64 316
  %27 = load i32, ptr %26, align 4, !tbaa !5
  switch i32 %27, label %44 [
    i32 0, label %28
    i32 1, label %32
    i32 2, label %36
  ]

28:                                               ; preds = %25
  %29 = load i32, ptr %4, align 4, !tbaa !59
  %30 = load i32, ptr %5, align 4, !tbaa !59
  %31 = call noundef i32 @_ZNK4juce9Component9getHeightEv(ptr noundef nonnull align 8 dereferenceable(197) %1) #4
  call void @_ZN4juce9RectangleIiEC2Eiiii(ptr noundef nonnull align 4 dereferenceable(16) %0, i32 noundef %29, i32 noundef 0, i32 noundef %30, i32 noundef %31) #4
  br label %.critedge

32:                                               ; preds = %25
  %33 = load i32, ptr %4, align 4, !tbaa !59
  %34 = call noundef i32 @_ZNK4juce9Component8getWidthEv(ptr noundef nonnull align 8 dereferenceable(197) %1) #4
  %35 = load i32, ptr %5, align 4, !tbaa !59
  call void @_ZN4juce9RectangleIiEC2Eiiii(ptr noundef nonnull align 4 dereferenceable(16) %0, i32 noundef 0, i32 noundef %33, i32 noundef %34, i32 noundef %35) #4
  br label %.critedge

36:                                               ; preds = %25
  %37 = call noundef i32 @_ZNK4juce9Component9getHeightEv(ptr noundef nonnull align 8 dereferenceable(197) %1) #4
  %38 = load i32, ptr %4, align 4, !tbaa !59
  %39 = load i32, ptr %5, align 4, !tbaa !59
  %40 = add i32 %38, %39
  %41 = sub i32 %37, %40
  %42 = call noundef i32 @_ZNK4juce9Component8getWidthEv(ptr noundef nonnull align 8 dereferenceable(197) %1) #4
  %43 = load i32, ptr %5, align 4, !tbaa !59
  call void @_ZN4juce9RectangleIiEC2Eiiii(ptr noundef nonnull align 4 dereferenceable(16) %0, i32 noundef 0, i32 noundef %41, i32 noundef %42, i32 noundef %43) #4
  br label %.critedge

44:                                               ; preds = %7, %25
  call void @_ZN4juce9RectangleIiEC2Ev(ptr noundef nonnull align 4 dereferenceable(16) %0) #4
  br label %.critedge

.critedge:                                        ; preds = %19, %14, %11, %44, %36, %32, %28
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #4
  ret void
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK4juce21MidiKeyboardComponent18getBlackNoteLengthEv(ptr noundef nonnull align 8 dereferenceable(560)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4juce9RectangleIiEC2Ev(ptr noundef nonnull align 4 dereferenceable(16)) unnamed_addr #1 align 2

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 = { 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 = { 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 #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, !47, i64 316}
!6 = !{!"_ZTSN4juce21MidiKeyboardComponentE", !7, i64 0, !36, i64 200, !37, i64 208, !45, i64 264, !11, i64 296, !46, i64 304, !16, i64 308, !46, i64 312, !47, i64 316, !16, i64 320, !16, i64 324, !46, i64 328, !48, i64 336, !48, i64 360, !51, i64 384, !51, i64 424, !54, i64 464, !16, i64 468, !16, i64 472, !46, i64 476, !54, i64 480, !54, i64 481, !54, i64 482, !55, i64 488, !55, i64 496, !56, i64 504, !48, i64 528, !16, i64 552, !16, i64 556}
!7 = !{!"_ZTSN4juce9ComponentE", !8, i64 0, !9, i64 8, !9, i64 16, !11, i64 24, !14, i64 32, !17, i64 48, !18, i64 56, !19, i64 64, !11, i64 88, !22, i64 96, !11, i64 104, !23, i64 112, !24, i64 120, !25, i64 128, !26, i64 136, !30, i64 160, !34, i64 184, !12, i64 192, !12, i64 196}
!8 = !{!"_ZTSN4juce13MouseListenerE"}
!9 = !{!"_ZTSN4juce6StringE", !10, i64 0}
!10 = !{!"_ZTSN4juce16CharPointer_UTF8E", !11, i64 0}
!11 = !{!"any pointer", !12, i64 0}
!12 = !{!"omnipotent char", !13, i64 0}
!13 = !{!"Simple C++ TBAA"}
!14 = !{!"_ZTSN4juce9RectangleIiEE", !15, i64 0, !16, i64 8, !16, i64 12}
!15 = !{!"_ZTSN4juce5PointIiEE", !16, i64 0, !16, i64 4}
!16 = !{!"int", !12, i64 0}
!17 = !{!"_ZTSN4juce13ScopedPointerINS_9Component10PositionerEEE", !11, i64 0}
!18 = !{!"_ZTSN4juce13ScopedPointerINS_15AffineTransformEEE", !11, i64 0}
!19 = !{!"_ZTSN4juce5ArrayIPNS_9ComponentENS_20DummyCriticalSectionELi0EEE", !20, i64 0, !16, i64 16}
!20 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_9ComponentENS_20DummyCriticalSectionEEE", !21, i64 0, !16, i64 8}
!21 = !{!"_ZTSN4juce9HeapBlockIPNS_9ComponentELb0EEE", !11, i64 0}
!22 = !{!"_ZTSN4juce11MouseCursorE", !11, i64 0}
!23 = !{!"_ZTSN4juce13ScopedPointerINS_20CachedComponentImageEEE", !11, i64 0}
!24 = !{!"_ZTSN4juce13ScopedPointerINS_9Component17MouseListenerListEEE", !11, i64 0}
!25 = !{!"_ZTSN4juce13ScopedPointerINS_5ArrayIPNS_11KeyListenerENS_20DummyCriticalSectionELi0EEEEE", !11, i64 0}
!26 = !{!"_ZTSN4juce12ListenerListINS_17ComponentListenerENS_5ArrayIPS1_NS_20DummyCriticalSectionELi0EEEEE", !27, i64 0}
!27 = !{!"_ZTSN4juce5ArrayIPNS_17ComponentListenerENS_20DummyCriticalSectionELi0EEE", !28, i64 0, !16, i64 16}
!28 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_17ComponentListenerENS_20DummyCriticalSectionEEE", !29, i64 0, !16, i64 8}
!29 = !{!"_ZTSN4juce9HeapBlockIPNS_17ComponentListenerELb0EEE", !11, i64 0}
!30 = !{!"_ZTSN4juce13NamedValueSetE", !31, i64 0}
!31 = !{!"_ZTSN4juce5ArrayINS_13NamedValueSet10NamedValueENS_20DummyCriticalSectionELi0EEE", !32, i64 0, !16, i64 16}
!32 = !{!"_ZTSN4juce19ArrayAllocationBaseINS_13NamedValueSet10NamedValueENS_20DummyCriticalSectionEEE", !33, i64 0, !16, i64 8}
!33 = !{!"_ZTSN4juce9HeapBlockINS_13NamedValueSet10NamedValueELb0EEE", !11, i64 0}
!34 = !{!"_ZTSN4juce13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEE6MasterE", !35, i64 0}
!35 = !{!"_ZTSN4juce25ReferenceCountedObjectPtrINS_13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEE13SharedPointerEEE", !11, i64 0}
!36 = !{!"_ZTSN4juce25MidiKeyboardStateListenerE"}
!37 = !{!"_ZTSN4juce17ChangeBroadcasterE", !38, i64 8, !41, i64 32}
!38 = !{!"_ZTSN4juce17ChangeBroadcaster25ChangeBroadcasterCallbackE", !39, i64 0, !11, i64 16}
!39 = !{!"_ZTSN4juce12AsyncUpdaterE", !40, i64 8}
!40 = !{!"_ZTSN4juce25ReferenceCountedObjectPtrINS_12AsyncUpdater19AsyncUpdaterMessageEEE", !11, i64 0}
!41 = !{!"_ZTSN4juce12ListenerListINS_14ChangeListenerENS_5ArrayIPS1_NS_20DummyCriticalSectionELi0EEEEE", !42, i64 0}
!42 = !{!"_ZTSN4juce5ArrayIPNS_14ChangeListenerENS_20DummyCriticalSectionELi0EEE", !43, i64 0, !16, i64 16}
!43 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_14ChangeListenerENS_20DummyCriticalSectionEEE", !44, i64 0, !16, i64 8}
!44 = !{!"_ZTSN4juce9HeapBlockIPNS_14ChangeListenerELb0EEE", !11, i64 0}
!45 = !{!"_ZTSN4juce5TimerE", !16, i64 8, !16, i64 12, !11, i64 16, !11, i64 24}
!46 = !{!"float", !12, i64 0}
!47 = !{!"_ZTSN4juce21MidiKeyboardComponent11OrientationE", !12, i64 0}
!48 = !{!"_ZTSN4juce5ArrayIiNS_20DummyCriticalSectionELi0EEE", !49, i64 0, !16, i64 16}
!49 = !{!"_ZTSN4juce19ArrayAllocationBaseIiNS_20DummyCriticalSectionEEE", !50, i64 0, !16, i64 8}
!50 = !{!"_ZTSN4juce9HeapBlockIiLb0EEE", !11, i64 0}
!51 = !{!"_ZTSN4juce10BigIntegerE", !52, i64 0, !12, i64 8, !53, i64 24, !16, i64 32, !54, i64 36}
!52 = !{!"_ZTSN4juce9HeapBlockIjLb0EEE", !11, i64 0}
!53 = !{!"long", !12, i64 0}
!54 = !{!"bool", !12, i64 0}
!55 = !{!"_ZTSN4juce13ScopedPointerINS_6ButtonEEE", !11, i64 0}
!56 = !{!"_ZTSN4juce5ArrayINS_8KeyPressENS_20DummyCriticalSectionELi0EEE", !57, i64 0, !16, i64 16}
!57 = !{!"_ZTSN4juce19ArrayAllocationBaseINS_8KeyPressENS_20DummyCriticalSectionEEE", !58, i64 0, !16, i64 8}
!58 = !{!"_ZTSN4juce9HeapBlockINS_8KeyPressELb0EEE", !11, i64 0}
!59 = !{!16, !16, i64 0}


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