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

; 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::BorderSize" = type { i32, i32, i32, i32 }
%"class.juce::TabbedComponent" = type <{ %"class.juce::Component.base", [3 x i8], %"class.juce::ScopedPointer.362", %"class.juce::Array.363", %"class.juce::WeakReference", i32, i32, i32, [4 x i8] }>
%"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::ScopedPointer.362" = type { ptr }
%"class.juce::Array.363" = type { %"class.juce::ArrayAllocationBase.364", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.364" = type <{ %"class.juce::HeapBlock.365", i32, [4 x i8] }>
%"class.juce::HeapBlock.365" = type { ptr }
%"class.juce::WeakReference" = type { %"class.juce::ReferenceCountedObjectPtr" }

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(16) ptr @_ZN4juce9RectangleIiEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(16)) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNK4juce9Component14getLocalBoundsEv(ptr dead_on_unwind noalias writable sret(%"class.juce::Rectangle") align 4, ptr noundef nonnull align 8 dereferenceable(197)) #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4juce9Component9setBoundsERKNS_9RectangleIiEE(ptr noundef nonnull align 8 dereferenceable(197), ptr noundef nonnull align 4 dereferenceable(16)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNK4juce10BorderSizeIiE14subtractedFromERKNS_9RectangleIiEE(ptr dead_on_unwind noalias writable sret(%"class.juce::Rectangle") align 4, ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(16)) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK4juce13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8)) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4juce10BorderSizeIiEC2Ei(ptr noundef nonnull align 4 dereferenceable(16), i32 noundef) unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK4juce13ScopedPointerINS_15TabbedButtonBarEEptEv(ptr noundef nonnull align 8 dereferenceable(8)) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK4juce15TabbedComponent14getOrientationEv(ptr noundef nonnull align 8 dereferenceable(252)) #0 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK4juce5ArrayINS_13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEEENS_20DummyCriticalSectionELi0EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20)) #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNK4juce5ArrayINS_13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEEENS_20DummyCriticalSectionELi0EE12getReferenceEi(ptr noundef nonnull align 8 dereferenceable(20), i32 noundef) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZN4juce22TabbedComponentHelpersL10getTabAreaERNS_9RectangleIiEERNS_10BorderSizeIiEENS_15TabbedButtonBar11OrientationEi(ptr dead_on_unwind noalias writable sret(%"class.juce::Rectangle") align 4, ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(16), i32 noundef, i32 noundef) #0

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4juce15TabbedComponent7resizedEv(ptr noundef nonnull align 8 dereferenceable(252) %0) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca %"class.juce::Rectangle", align 4
  %4 = alloca %"class.juce::BorderSize", align 4
  %5 = alloca %"class.juce::Rectangle", align 4
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca %"class.juce::Rectangle", align 4
  %9 = alloca %"class.juce::BorderSize", align 4
  %10 = alloca %"class.juce::Rectangle", align 4
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %13 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %3) #4
  call void @_ZNK4juce9Component14getLocalBoundsEv(ptr dead_on_unwind writable sret(%"class.juce::Rectangle") align 4 %3, ptr noundef nonnull align 8 dereferenceable(197) %13) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %4) #4
  %14 = getelementptr inbounds %"class.juce::TabbedComponent", ptr %13, i32 0, i32 6
  %15 = load i32, ptr %14, align 4, !tbaa !9
  call void @_ZN4juce10BorderSizeIiEC2Ei(ptr noundef nonnull align 4 dereferenceable(16) %4, i32 noundef %15) #4
  %16 = getelementptr inbounds %"class.juce::TabbedComponent", ptr %13, i32 0, i32 2
  %17 = call noundef ptr @_ZNK4juce13ScopedPointerINS_15TabbedButtonBarEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %5) #4
  %18 = call noundef i32 @_ZNK4juce15TabbedComponent14getOrientationEv(ptr noundef nonnull align 8 dereferenceable(252) %13) #4
  %19 = getelementptr inbounds %"class.juce::TabbedComponent", ptr %13, i32 0, i32 5
  %20 = load i32, ptr %19, align 8, !tbaa !42
  invoke void @_ZN4juce22TabbedComponentHelpersL10getTabAreaERNS_9RectangleIiEERNS_10BorderSizeIiEENS_15TabbedButtonBar11OrientationEi(ptr dead_on_unwind writable sret(%"class.juce::Rectangle") align 4 %5, ptr noundef nonnull align 4 dereferenceable(16) %3, ptr noundef nonnull align 4 dereferenceable(16) %4, i32 noundef %18, i32 noundef %20)
          to label %21 unwind label %33

21:                                               ; preds = %1
  invoke void @_ZN4juce9Component9setBoundsERKNS_9RectangleIiEE(ptr noundef nonnull align 8 dereferenceable(197) %17, ptr noundef nonnull align 4 dereferenceable(16) %5)
          to label %22 unwind label %37

22:                                               ; preds = %21
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %5) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %5) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #4
  %23 = getelementptr inbounds %"class.juce::TabbedComponent", ptr %13, i32 0, i32 7
  %24 = load i32, ptr %23, align 8, !tbaa !43
  call void @_ZN4juce10BorderSizeIiEC2Ei(ptr noundef nonnull align 4 dereferenceable(16) %9, i32 noundef %24) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #4
  call void @_ZNK4juce10BorderSizeIiE14subtractedFromERKNS_9RectangleIiEE(ptr dead_on_unwind writable sret(%"class.juce::Rectangle") align 4 %10, ptr noundef nonnull align 4 dereferenceable(16) %4, ptr noundef nonnull align 4 dereferenceable(16) %3) #4
  call void @_ZNK4juce10BorderSizeIiE14subtractedFromERKNS_9RectangleIiEE(ptr dead_on_unwind writable sret(%"class.juce::Rectangle") align 4 %8, ptr noundef nonnull align 4 dereferenceable(16) %9, ptr noundef nonnull align 4 dereferenceable(16) %10) #4
  %25 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN4juce9RectangleIiEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(16) %3, ptr noundef nonnull align 4 dereferenceable(16) %8) #4
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %8) #4
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %10) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  %26 = getelementptr inbounds %"class.juce::TabbedComponent", ptr %13, i32 0, i32 3
  %27 = call noundef i32 @_ZNK4juce5ArrayINS_13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEEENS_20DummyCriticalSectionELi0EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20) %26) #4
  store i32 %27, ptr %11, align 4, !tbaa !44
  br label %28

28:                                               ; preds = %56, %22
  %29 = load i32, ptr %11, align 4, !tbaa !44
  %30 = add nsw i32 %29, -1
  store i32 %30, ptr %11, align 4, !tbaa !44
  %31 = icmp sge i32 %30, 0
  br i1 %31, label %42, label %32

32:                                               ; preds = %28
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  br label %57

33:                                               ; preds = %1
  %34 = landingpad { ptr, i32 }
          cleanup
  %35 = extractvalue { ptr, i32 } %34, 0
  store ptr %35, ptr %6, align 8
  %36 = extractvalue { ptr, i32 } %34, 1
  store i32 %36, ptr %7, align 4
  br label %41

37:                                               ; preds = %21
  %38 = landingpad { ptr, i32 }
          cleanup
  %39 = extractvalue { ptr, i32 } %38, 0
  store ptr %39, ptr %6, align 8
  %40 = extractvalue { ptr, i32 } %38, 1
  store i32 %40, ptr %7, align 4
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %5) #4
  br label %41

41:                                               ; preds = %37, %33
  call void @llvm.lifetime.end.p0(i64 16, ptr %5) #4
  br label %58

42:                                               ; preds = %28
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  %43 = getelementptr inbounds %"class.juce::TabbedComponent", ptr %13, i32 0, i32 3
  %44 = load i32, ptr %11, align 4, !tbaa !44
  %45 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK4juce5ArrayINS_13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEEENS_20DummyCriticalSectionELi0EE12getReferenceEi(ptr noundef nonnull align 8 dereferenceable(20) %43, i32 noundef %44) #4
  %46 = call noundef ptr @_ZNK4juce13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %45) #4
  store ptr %46, ptr %12, align 8, !tbaa !5
  %47 = load ptr, ptr %12, align 8, !tbaa !5
  %48 = icmp ne ptr %47, null
  br i1 %48, label %49, label %56

49:                                               ; preds = %42
  %50 = load ptr, ptr %12, align 8, !tbaa !5
  invoke void @_ZN4juce9Component9setBoundsERKNS_9RectangleIiEE(ptr noundef nonnull align 8 dereferenceable(197) %50, ptr noundef nonnull align 4 dereferenceable(16) %3)
          to label %51 unwind label %52

51:                                               ; preds = %49
  br label %56

52:                                               ; preds = %49
  %53 = landingpad { ptr, i32 }
          cleanup
  %54 = extractvalue { ptr, i32 } %53, 0
  store ptr %54, ptr %6, align 8
  %55 = extractvalue { ptr, i32 } %53, 1
  store i32 %55, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  br label %58

56:                                               ; preds = %51, %42
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  br label %28, !llvm.loop !45

57:                                               ; preds = %32
  call void @llvm.lifetime.end.p0(i64 16, ptr %4) #4
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %3) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %3) #4
  ret void

58:                                               ; preds = %52, %41
  call void @llvm.lifetime.end.p0(i64 16, ptr %4) #4
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %3) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %3) #4
  br label %59

59:                                               ; preds = %58
  %60 = load ptr, ptr %6, align 8
  %61 = load i32, ptr %7, align 4
  %62 = insertvalue { ptr, i32 } poison, ptr %60, 0
  %63 = insertvalue { ptr, i32 } %62, i32 %61, 1
  resume { ptr, i32 } %63
}

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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { 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 #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, !17, i64 244}
!10 = !{!"_ZTSN4juce15TabbedComponentE", !11, i64 0, !37, i64 200, !38, i64 208, !41, i64 232, !17, i64 240, !17, i64 244, !17, i64 248}
!11 = !{!"_ZTSN4juce9ComponentE", !12, i64 0, !13, i64 8, !13, i64 16, !6, i64 24, !15, i64 32, !18, i64 48, !19, i64 56, !20, i64 64, !6, i64 88, !23, i64 96, !6, i64 104, !24, i64 112, !25, i64 120, !26, i64 128, !27, i64 136, !31, i64 160, !35, i64 184, !7, i64 192, !7, i64 196}
!12 = !{!"_ZTSN4juce13MouseListenerE"}
!13 = !{!"_ZTSN4juce6StringE", !14, i64 0}
!14 = !{!"_ZTSN4juce16CharPointer_UTF8E", !6, i64 0}
!15 = !{!"_ZTSN4juce9RectangleIiEE", !16, i64 0, !17, i64 8, !17, i64 12}
!16 = !{!"_ZTSN4juce5PointIiEE", !17, i64 0, !17, i64 4}
!17 = !{!"int", !7, i64 0}
!18 = !{!"_ZTSN4juce13ScopedPointerINS_9Component10PositionerEEE", !6, i64 0}
!19 = !{!"_ZTSN4juce13ScopedPointerINS_15AffineTransformEEE", !6, i64 0}
!20 = !{!"_ZTSN4juce5ArrayIPNS_9ComponentENS_20DummyCriticalSectionELi0EEE", !21, i64 0, !17, i64 16}
!21 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_9ComponentENS_20DummyCriticalSectionEEE", !22, i64 0, !17, i64 8}
!22 = !{!"_ZTSN4juce9HeapBlockIPNS_9ComponentELb0EEE", !6, i64 0}
!23 = !{!"_ZTSN4juce11MouseCursorE", !6, i64 0}
!24 = !{!"_ZTSN4juce13ScopedPointerINS_20CachedComponentImageEEE", !6, i64 0}
!25 = !{!"_ZTSN4juce13ScopedPointerINS_9Component17MouseListenerListEEE", !6, i64 0}
!26 = !{!"_ZTSN4juce13ScopedPointerINS_5ArrayIPNS_11KeyListenerENS_20DummyCriticalSectionELi0EEEEE", !6, i64 0}
!27 = !{!"_ZTSN4juce12ListenerListINS_17ComponentListenerENS_5ArrayIPS1_NS_20DummyCriticalSectionELi0EEEEE", !28, i64 0}
!28 = !{!"_ZTSN4juce5ArrayIPNS_17ComponentListenerENS_20DummyCriticalSectionELi0EEE", !29, i64 0, !17, i64 16}
!29 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_17ComponentListenerENS_20DummyCriticalSectionEEE", !30, i64 0, !17, i64 8}
!30 = !{!"_ZTSN4juce9HeapBlockIPNS_17ComponentListenerELb0EEE", !6, i64 0}
!31 = !{!"_ZTSN4juce13NamedValueSetE", !32, i64 0}
!32 = !{!"_ZTSN4juce5ArrayINS_13NamedValueSet10NamedValueENS_20DummyCriticalSectionELi0EEE", !33, i64 0, !17, i64 16}
!33 = !{!"_ZTSN4juce19ArrayAllocationBaseINS_13NamedValueSet10NamedValueENS_20DummyCriticalSectionEEE", !34, i64 0, !17, i64 8}
!34 = !{!"_ZTSN4juce9HeapBlockINS_13NamedValueSet10NamedValueELb0EEE", !6, i64 0}
!35 = !{!"_ZTSN4juce13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEE6MasterE", !36, i64 0}
!36 = !{!"_ZTSN4juce25ReferenceCountedObjectPtrINS_13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEE13SharedPointerEEE", !6, i64 0}
!37 = !{!"_ZTSN4juce13ScopedPointerINS_15TabbedButtonBarEEE", !6, i64 0}
!38 = !{!"_ZTSN4juce5ArrayINS_13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEEENS_20DummyCriticalSectionELi0EEE", !39, i64 0, !17, i64 16}
!39 = !{!"_ZTSN4juce19ArrayAllocationBaseINS_13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEEENS_20DummyCriticalSectionEEE", !40, i64 0, !17, i64 8}
!40 = !{!"_ZTSN4juce9HeapBlockINS_13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEEELb0EEE", !6, i64 0}
!41 = !{!"_ZTSN4juce13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEEE", !36, i64 0}
!42 = !{!10, !17, i64 240}
!43 = !{!10, !17, i64 248}
!44 = !{!17, !17, i64 0}
!45 = distinct !{!45, !46}
!46 = !{!"llvm.loop.mustprogress"}


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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(16) ptr @_ZN4juce9RectangleIiEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNK4juce9Component14getLocalBoundsEv(ptr dead_on_unwind noalias writable sret(%"class.juce::Rectangle") align 4, ptr noundef nonnull align 8 dereferenceable(197)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4juce9Component9setBoundsERKNS_9RectangleIiEE(ptr noundef nonnull align 8 dereferenceable(197), ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNK4juce10BorderSizeIiE14subtractedFromERKNS_9RectangleIiEE(ptr dead_on_unwind noalias writable sret(%"class.juce::Rectangle") align 4, ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK4juce13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4juce10BorderSizeIiEC2Ei(ptr noundef nonnull align 4 dereferenceable(16), i32 noundef) unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK4juce13ScopedPointerINS_15TabbedButtonBarEEptEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK4juce15TabbedComponent14getOrientationEv(ptr noundef nonnull align 8 dereferenceable(252)) local_unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK4juce5ArrayINS_13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEEENS_20DummyCriticalSectionELi0EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20)) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNK4juce5ArrayINS_13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEEENS_20DummyCriticalSectionELi0EE12getReferenceEi(ptr noundef nonnull align 8 dereferenceable(20), i32 noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZN4juce22TabbedComponentHelpersL10getTabAreaERNS_9RectangleIiEERNS_10BorderSizeIiEENS_15TabbedButtonBar11OrientationEi(ptr dead_on_unwind noalias writable sret(%"class.juce::Rectangle") align 4, ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(16), i32 noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4juce15TabbedComponent7resizedEv(ptr noundef nonnull align 8 dereferenceable(252) %0) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.juce::Rectangle", align 4
  %3 = alloca %"class.juce::BorderSize", align 4
  %4 = alloca %"class.juce::Rectangle", align 4
  %5 = alloca %"class.juce::Rectangle", align 4
  %6 = alloca %"class.juce::BorderSize", align 4
  %7 = alloca %"class.juce::Rectangle", align 4
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %2) #4
  call void @_ZNK4juce9Component14getLocalBoundsEv(ptr dead_on_unwind nonnull writable sret(%"class.juce::Rectangle") align 4 %2, ptr noundef nonnull align 8 dereferenceable(197) %0) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #4
  %8 = getelementptr inbounds i8, ptr %0, i64 244
  %9 = load i32, ptr %8, align 4, !tbaa !5
  call void @_ZN4juce10BorderSizeIiEC2Ei(ptr noundef nonnull align 4 dereferenceable(16) %3, i32 noundef %9) #4
  %10 = getelementptr inbounds i8, ptr %0, i64 200
  %11 = call noundef ptr @_ZNK4juce13ScopedPointerINS_15TabbedButtonBarEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #4
  %12 = call noundef i32 @_ZNK4juce15TabbedComponent14getOrientationEv(ptr noundef nonnull align 8 dereferenceable(252) %0) #4
  %13 = getelementptr inbounds i8, ptr %0, i64 240
  %14 = load i32, ptr %13, align 8, !tbaa !41
  call void @_ZN4juce22TabbedComponentHelpersL10getTabAreaERNS_9RectangleIiEERNS_10BorderSizeIiEENS_15TabbedButtonBar11OrientationEi(ptr dead_on_unwind nonnull writable sret(%"class.juce::Rectangle") align 4 %4, ptr noundef nonnull align 4 dereferenceable(16) %2, ptr noundef nonnull align 4 dereferenceable(16) %3, i32 noundef %12, i32 noundef %14)
  invoke void @_ZN4juce9Component9setBoundsERKNS_9RectangleIiEE(ptr noundef nonnull align 8 dereferenceable(197) %11, ptr noundef nonnull align 4 dereferenceable(16) %4)
          to label %15 unwind label %22

15:                                               ; preds = %1
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %4) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #4
  %16 = getelementptr inbounds i8, ptr %0, i64 248
  %17 = load i32, ptr %16, align 8, !tbaa !42
  call void @_ZN4juce10BorderSizeIiEC2Ei(ptr noundef nonnull align 4 dereferenceable(16) %6, i32 noundef %17) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #4
  call void @_ZNK4juce10BorderSizeIiE14subtractedFromERKNS_9RectangleIiEE(ptr dead_on_unwind nonnull writable sret(%"class.juce::Rectangle") align 4 %7, ptr noundef nonnull align 4 dereferenceable(16) %3, ptr noundef nonnull align 4 dereferenceable(16) %2) #4
  call void @_ZNK4juce10BorderSizeIiE14subtractedFromERKNS_9RectangleIiEE(ptr dead_on_unwind nonnull writable sret(%"class.juce::Rectangle") align 4 %5, ptr noundef nonnull align 4 dereferenceable(16) %6, ptr noundef nonnull align 4 dereferenceable(16) %7) #4
  %18 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN4juce9RectangleIiEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(16) %2, ptr noundef nonnull align 4 dereferenceable(16) %5) #4
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %5) #4
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %7) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #4
  %19 = getelementptr inbounds i8, ptr %0, i64 208
  %20 = call noundef i32 @_ZNK4juce5ArrayINS_13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEEENS_20DummyCriticalSectionELi0EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20) %19) #4
  %21 = icmp sgt i32 %20, 0
  br i1 %21, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %30, %15
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #4
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %2) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #4
  ret void

22:                                               ; preds = %1
  %23 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %4) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #4
  br label %32

.lr.ph:                                           ; preds = %15, %30
  %.in = phi i32 [ %24, %30 ], [ %20, %15 ]
  %24 = add nsw i32 %.in, -1
  %25 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK4juce5ArrayINS_13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEEENS_20DummyCriticalSectionELi0EE12getReferenceEi(ptr noundef nonnull align 8 dereferenceable(20) %19, i32 noundef %24) #4
  %26 = call noundef ptr @_ZNK4juce13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %25) #4
  %.not = icmp eq ptr %26, null
  br i1 %.not, label %30, label %27

27:                                               ; preds = %.lr.ph
  invoke void @_ZN4juce9Component9setBoundsERKNS_9RectangleIiEE(ptr noundef nonnull align 8 dereferenceable(197) %26, ptr noundef nonnull align 4 dereferenceable(16) %2)
          to label %30 unwind label %28

28:                                               ; preds = %27
  %29 = landingpad { ptr, i32 }
          cleanup
  br label %32

30:                                               ; preds = %27, %.lr.ph
  %31 = icmp ugt i32 %.in, 1
  br i1 %31, label %.lr.ph, label %._crit_edge, !llvm.loop !43

32:                                               ; preds = %28, %22
  %.pn = phi { ptr, i32 } [ %29, %28 ], [ %23, %22 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #4
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %2) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #4
  resume { ptr, i32 } %.pn
}

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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { 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 #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, !16, i64 244}
!6 = !{!"_ZTSN4juce15TabbedComponentE", !7, i64 0, !36, i64 200, !37, i64 208, !40, i64 232, !16, i64 240, !16, i64 244, !16, i64 248}
!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 = !{!"_ZTSN4juce13ScopedPointerINS_15TabbedButtonBarEEE", !11, i64 0}
!37 = !{!"_ZTSN4juce5ArrayINS_13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEEENS_20DummyCriticalSectionELi0EEE", !38, i64 0, !16, i64 16}
!38 = !{!"_ZTSN4juce19ArrayAllocationBaseINS_13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEEENS_20DummyCriticalSectionEEE", !39, i64 0, !16, i64 8}
!39 = !{!"_ZTSN4juce9HeapBlockINS_13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEEELb0EEE", !11, i64 0}
!40 = !{!"_ZTSN4juce13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEEE", !35, i64 0}
!41 = !{!6, !16, i64 240}
!42 = !{!6, !16, i64 248}
!43 = distinct !{!43, !44}
!44 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass