; 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::Rectangle" = type { %"class.juce::Point", i32, i32 }
%"class.juce::Point" = type { i32, i32 }
%"struct.juce::FlexBoxLayoutCalculation" = type { ptr, double, double, i32, i8, double, i32, double, %"class.juce::HeapBlock.537", %"class.juce::HeapBlock.538", %"class.juce::Array.539" }
%"class.juce::HeapBlock.537" = type { ptr }
%"class.juce::HeapBlock.538" = type { ptr }
%"class.juce::Array.539" = type { %"class.juce::ArrayAllocationBase.540", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.540" = type <{ %"class.juce::HeapBlock.541", i32, [4 x i8] }>
%"class.juce::HeapBlock.541" = type { ptr }
%"class.juce::Point.35" = type { float, float }
%"class.juce::Rectangle.148" = type { %"class.juce::Point.35", float, float }
%"class.juce::FlexBox" = type { i32, i32, i32, i32, i32, [4 x i8], %"class.juce::Array.532" }
%"class.juce::Array.532" = type { %"class.juce::ArrayAllocationBase.533", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.533" = type <{ %"class.juce::HeapBlock.534", i32, [4 x i8] }>
%"class.juce::HeapBlock.534" = type { ptr }
%"class.juce::FlexItem" = type <{ %"class.juce::Rectangle.148", ptr, ptr, i32, float, float, float, i32, float, float, float, float, float, float, %"struct.juce::FlexItem::Margin", [4 x i8] }>
%"struct.juce::FlexItem::Margin" = type { float, float, float, float }

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 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 @_ZN4juce9RectangleIfED2Ev(ptr noundef nonnull align 4 dereferenceable(16)) unnamed_addr #0 align 2

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4juce7FlexBox13performLayoutENS_9RectangleIfEE(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef %1) #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca %"struct.juce::FlexBoxLayoutCalculation", align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca %"class.juce::Point.35", align 4
  %13 = alloca ptr, align 8
  %14 = alloca %"class.juce::Rectangle", align 4
  %15 = alloca ptr, align 8
  %16 = alloca %"class.juce::Rectangle.148", align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %17 = load ptr, ptr %3, align 8
  %18 = getelementptr inbounds %"class.juce::FlexBox", ptr %17, i32 0, i32 6
  %19 = call noundef zeroext i1 @_ZNK4juce5ArrayINS_8FlexItemENS_20DummyCriticalSectionELi0EE7isEmptyEv(ptr noundef nonnull align 8 dereferenceable(20) %18) #4
  br i1 %19, label %81, label %20

20:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 96, ptr %5) #4
  %21 = call noundef float @_ZNK4juce9RectangleIfE8getWidthEv(ptr noundef nonnull align 4 dereferenceable(16) %1) #4
  %22 = fpext float %21 to double
  %23 = call noundef float @_ZNK4juce9RectangleIfE9getHeightEv(ptr noundef nonnull align 4 dereferenceable(16) %1) #4
  %24 = fpext float %23 to double
  call void @_ZN4juce24FlexBoxLayoutCalculationC2ERKNS_7FlexBoxEdd(ptr noundef nonnull align 8 dereferenceable(96) %5, ptr noundef nonnull align 8 dereferenceable(48) %17, double noundef %22, double noundef %24)
  invoke void @_ZN4juce24FlexBoxLayoutCalculation12createStatesEv(ptr noundef nonnull align 8 dereferenceable(96) %5)
          to label %25 unwind label %36

25:                                               ; preds = %20
  call void @_ZN4juce24FlexBoxLayoutCalculation15initialiseItemsEv(ptr noundef nonnull align 8 dereferenceable(96) %5) #4
  call void @_ZN4juce24FlexBoxLayoutCalculation22resolveFlexibleLengthsEv(ptr noundef nonnull align 8 dereferenceable(96) %5) #4
  call void @_ZN4juce24FlexBoxLayoutCalculation28resolveAutoMarginsOnMainAxisEv(ptr noundef nonnull align 8 dereferenceable(96) %5) #4
  call void @_ZN4juce24FlexBoxLayoutCalculation25calculateCrossSizesByLineEv(ptr noundef nonnull align 8 dereferenceable(96) %5) #4
  call void @_ZN4juce24FlexBoxLayoutCalculation28calculateCrossSizeOfAllItemsEv(ptr noundef nonnull align 8 dereferenceable(96) %5) #4
  call void @_ZN4juce24FlexBoxLayoutCalculation25alignLinesPerAlignContentEv(ptr noundef nonnull align 8 dereferenceable(96) %5) #4
  call void @_ZN4juce24FlexBoxLayoutCalculation29resolveAutoMarginsOnCrossAxisEv(ptr noundef nonnull align 8 dereferenceable(96) %5) #4
  call void @_ZN4juce24FlexBoxLayoutCalculation41alignItemsInCrossAxisInLinesPerAlignItemsEv(ptr noundef nonnull align 8 dereferenceable(96) %5) #4
  call void @_ZN4juce24FlexBoxLayoutCalculation22alignLinesPerAlignSelfEv(ptr noundef nonnull align 8 dereferenceable(96) %5) #4
  call void @_ZN4juce24FlexBoxLayoutCalculation26alignItemsByJustifyContentEv(ptr noundef nonnull align 8 dereferenceable(96) %5) #4
  call void @_ZN4juce24FlexBoxLayoutCalculation14layoutAllItemsEv(ptr noundef nonnull align 8 dereferenceable(96) %5) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  %26 = getelementptr inbounds %"class.juce::FlexBox", ptr %17, i32 0, i32 6
  store ptr %26, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  %27 = load ptr, ptr %8, align 8, !tbaa !5
  %28 = call noundef ptr @_ZNK4juce5ArrayINS_8FlexItemENS_20DummyCriticalSectionELi0EE5beginEv(ptr noundef nonnull align 8 dereferenceable(20) %27) #4
  store ptr %28, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  %29 = load ptr, ptr %8, align 8, !tbaa !5
  %30 = call noundef ptr @_ZNK4juce5ArrayINS_8FlexItemENS_20DummyCriticalSectionELi0EE3endEv(ptr noundef nonnull align 8 dereferenceable(20) %29) #4
  store ptr %30, ptr %10, align 8, !tbaa !5
  br label %31

31:                                               ; preds = %75, %25
  %32 = load ptr, ptr %9, align 8, !tbaa !5
  %33 = load ptr, ptr %10, align 8, !tbaa !5
  %34 = icmp ne ptr %32, %33
  br i1 %34, label %40, label %35

35:                                               ; preds = %31
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  br label %79

36:                                               ; preds = %20
  %37 = landingpad { ptr, i32 }
          cleanup
  %38 = extractvalue { ptr, i32 } %37, 0
  store ptr %38, ptr %6, align 8
  %39 = extractvalue { ptr, i32 } %37, 1
  store i32 %39, ptr %7, align 4
  br label %80

40:                                               ; preds = %31
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  %41 = load ptr, ptr %9, align 8, !tbaa !5
  store ptr %41, ptr %11, align 8, !tbaa !5
  call void @_ZNK4juce9RectangleIfE11getPositionEv(ptr dead_on_unwind writable sret(%"class.juce::Point.35") align 4 %12, ptr noundef nonnull align 4 dereferenceable(16) %1) #4
  %42 = load ptr, ptr %11, align 8, !tbaa !5
  %43 = getelementptr inbounds %"class.juce::FlexItem", ptr %42, i32 0, i32 0
  %44 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN4juce9RectangleIfEpLENS_5PointIfEE(ptr noundef nonnull align 4 dereferenceable(16) %43, ptr noundef %12) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  %45 = load ptr, ptr %11, align 8, !tbaa !5
  %46 = getelementptr inbounds %"class.juce::FlexItem", ptr %45, i32 0, i32 1
  %47 = load ptr, ptr %46, align 8, !tbaa !9
  store ptr %47, ptr %13, align 8, !tbaa !5
  %48 = load ptr, ptr %13, align 8, !tbaa !5
  %49 = icmp ne ptr %48, null
  br i1 %49, label %50, label %59

50:                                               ; preds = %40
  %51 = load ptr, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #4
  %52 = load ptr, ptr %11, align 8, !tbaa !5
  %53 = getelementptr inbounds %"class.juce::FlexItem", ptr %52, i32 0, i32 0
  call void @_ZNK4juce9RectangleIfE27getSmallestIntegerContainerEv(ptr dead_on_unwind writable sret(%"class.juce::Rectangle") align 4 %14, ptr noundef nonnull align 4 dereferenceable(16) %53) #4
  invoke void @_ZN4juce9Component9setBoundsERKNS_9RectangleIiEE(ptr noundef nonnull align 8 dereferenceable(197) %51, ptr noundef nonnull align 4 dereferenceable(16) %14)
          to label %54 unwind label %55

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

55:                                               ; preds = %50
  %56 = landingpad { ptr, i32 }
          cleanup
  %57 = extractvalue { ptr, i32 } %56, 0
  store ptr %57, ptr %6, align 8
  %58 = extractvalue { ptr, i32 } %56, 1
  store i32 %58, ptr %7, align 4
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %14) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  br label %78

59:                                               ; preds = %54, %40
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  %60 = load ptr, ptr %11, align 8, !tbaa !5
  %61 = getelementptr inbounds %"class.juce::FlexItem", ptr %60, i32 0, i32 2
  %62 = load ptr, ptr %61, align 8, !tbaa !17
  store ptr %62, ptr %15, align 8, !tbaa !5
  %63 = load ptr, ptr %15, align 8, !tbaa !5
  %64 = icmp ne ptr %63, null
  br i1 %64, label %65, label %74

65:                                               ; preds = %59
  %66 = load ptr, ptr %15, align 8, !tbaa !5
  %67 = load ptr, ptr %11, align 8, !tbaa !5
  %68 = getelementptr inbounds %"class.juce::FlexItem", ptr %67, i32 0, i32 0
  call void @_ZN4juce9RectangleIfEC2ERKS1_(ptr noundef nonnull align 4 dereferenceable(16) %16, ptr noundef nonnull align 4 dereferenceable(16) %68) #4
  invoke void @_ZN4juce7FlexBox13performLayoutENS_9RectangleIfEE(ptr noundef nonnull align 8 dereferenceable(48) %66, ptr noundef %16)
          to label %69 unwind label %70

69:                                               ; preds = %65
  call void @_ZN4juce9RectangleIfED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %16) #4
  br label %74

70:                                               ; preds = %65
  %71 = landingpad { ptr, i32 }
          cleanup
  %72 = extractvalue { ptr, i32 } %71, 0
  store ptr %72, ptr %6, align 8
  %73 = extractvalue { ptr, i32 } %71, 1
  store i32 %73, ptr %7, align 4
  call void @_ZN4juce9RectangleIfED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  br label %78

74:                                               ; preds = %69, %59
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  br label %75

75:                                               ; preds = %74
  %76 = load ptr, ptr %9, align 8, !tbaa !5
  %77 = getelementptr inbounds %"class.juce::FlexItem", ptr %76, i32 1
  store ptr %77, ptr %9, align 8, !tbaa !5
  br label %31

78:                                               ; preds = %70, %55
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  br label %80

79:                                               ; preds = %35
  call void @_ZN4juce24FlexBoxLayoutCalculationD2Ev(ptr noundef nonnull align 8 dereferenceable(96) %5) #4
  call void @llvm.lifetime.end.p0(i64 96, ptr %5) #4
  br label %81

80:                                               ; preds = %78, %36
  call void @_ZN4juce24FlexBoxLayoutCalculationD2Ev(ptr noundef nonnull align 8 dereferenceable(96) %5) #4
  call void @llvm.lifetime.end.p0(i64 96, ptr %5) #4
  br label %82

81:                                               ; preds = %79, %2
  ret void

82:                                               ; preds = %80
  %83 = load ptr, ptr %6, align 8
  %84 = load i32, ptr %7, align 4
  %85 = insertvalue { ptr, i32 } poison, ptr %83, 0
  %86 = insertvalue { ptr, i32 } %85, i32 %84, 1
  resume { ptr, i32 } %86
}

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4juce24FlexBoxLayoutCalculationC2ERKNS_7FlexBoxEdd(ptr noundef nonnull align 8 dereferenceable(96), ptr noundef nonnull align 8 dereferenceable(48), double noundef, double noundef) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4juce24FlexBoxLayoutCalculation12createStatesEv(ptr noundef nonnull align 8 dereferenceable(96)) #2 align 2

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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, !6, i64 16}
!10 = !{!"_ZTSN4juce8FlexItemE", !11, i64 0, !6, i64 16, !6, i64 24, !14, i64 32, !13, i64 36, !13, i64 40, !13, i64 44, !15, i64 48, !13, i64 52, !13, i64 56, !13, i64 60, !13, i64 64, !13, i64 68, !13, i64 72, !16, i64 76}
!11 = !{!"_ZTSN4juce9RectangleIfEE", !12, i64 0, !13, i64 8, !13, i64 12}
!12 = !{!"_ZTSN4juce5PointIfEE", !13, i64 0, !13, i64 4}
!13 = !{!"float", !7, i64 0}
!14 = !{!"int", !7, i64 0}
!15 = !{!"_ZTSN4juce8FlexItem9AlignSelfE", !7, i64 0}
!16 = !{!"_ZTSN4juce8FlexItem6MarginE", !13, i64 0, !13, i64 4, !13, i64 8, !13, i64 12}
!17 = !{!10, !6, i64 24}


; 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 }
%"struct.juce::FlexBoxLayoutCalculation" = type { ptr, double, double, i32, i8, double, i32, double, %"class.juce::HeapBlock.537", %"class.juce::HeapBlock.538", %"class.juce::Array.539" }
%"class.juce::HeapBlock.537" = type { ptr }
%"class.juce::HeapBlock.538" = type { ptr }
%"class.juce::Array.539" = type { %"class.juce::ArrayAllocationBase.540", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.540" = type <{ %"class.juce::HeapBlock.541", i32, [4 x i8] }>
%"class.juce::HeapBlock.541" = type { ptr }
%"class.juce::Point.35" = type { float, float }
%"class.juce::Rectangle.148" = type { %"class.juce::Point.35", float, float }

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 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 @_ZN4juce9RectangleIfED2Ev(ptr noundef nonnull align 4 dereferenceable(16)) unnamed_addr #0 align 2

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4juce7FlexBox13performLayoutENS_9RectangleIfEE(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef %1) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"struct.juce::FlexBoxLayoutCalculation", align 8
  %4 = alloca %"class.juce::Point.35", align 4
  %5 = alloca %"class.juce::Rectangle", align 4
  %6 = alloca %"class.juce::Rectangle.148", align 4
  %7 = getelementptr inbounds i8, ptr %0, i64 24
  %8 = tail call noundef zeroext i1 @_ZNK4juce5ArrayINS_8FlexItemENS_20DummyCriticalSectionELi0EE7isEmptyEv(ptr noundef nonnull align 8 dereferenceable(20) %7) #4
  br i1 %8, label %36, label %9

9:                                                ; preds = %2
  call void @llvm.lifetime.start.p0(i64 96, ptr nonnull %3) #4
  %10 = tail call noundef float @_ZNK4juce9RectangleIfE8getWidthEv(ptr noundef nonnull align 4 dereferenceable(16) %1) #4
  %11 = fpext float %10 to double
  %12 = tail call noundef float @_ZNK4juce9RectangleIfE9getHeightEv(ptr noundef nonnull align 4 dereferenceable(16) %1) #4
  %13 = fpext float %12 to double
  call void @_ZN4juce24FlexBoxLayoutCalculationC2ERKNS_7FlexBoxEdd(ptr noundef nonnull align 8 dereferenceable(96) %3, ptr noundef nonnull align 8 dereferenceable(48) %0, double noundef %11, double noundef %13)
  invoke void @_ZN4juce24FlexBoxLayoutCalculation12createStatesEv(ptr noundef nonnull align 8 dereferenceable(96) %3)
          to label %14 unwind label %17

14:                                               ; preds = %9
  call void @_ZN4juce24FlexBoxLayoutCalculation15initialiseItemsEv(ptr noundef nonnull align 8 dereferenceable(96) %3) #4
  call void @_ZN4juce24FlexBoxLayoutCalculation22resolveFlexibleLengthsEv(ptr noundef nonnull align 8 dereferenceable(96) %3) #4
  call void @_ZN4juce24FlexBoxLayoutCalculation28resolveAutoMarginsOnMainAxisEv(ptr noundef nonnull align 8 dereferenceable(96) %3) #4
  call void @_ZN4juce24FlexBoxLayoutCalculation25calculateCrossSizesByLineEv(ptr noundef nonnull align 8 dereferenceable(96) %3) #4
  call void @_ZN4juce24FlexBoxLayoutCalculation28calculateCrossSizeOfAllItemsEv(ptr noundef nonnull align 8 dereferenceable(96) %3) #4
  call void @_ZN4juce24FlexBoxLayoutCalculation25alignLinesPerAlignContentEv(ptr noundef nonnull align 8 dereferenceable(96) %3) #4
  call void @_ZN4juce24FlexBoxLayoutCalculation29resolveAutoMarginsOnCrossAxisEv(ptr noundef nonnull align 8 dereferenceable(96) %3) #4
  call void @_ZN4juce24FlexBoxLayoutCalculation41alignItemsInCrossAxisInLinesPerAlignItemsEv(ptr noundef nonnull align 8 dereferenceable(96) %3) #4
  call void @_ZN4juce24FlexBoxLayoutCalculation22alignLinesPerAlignSelfEv(ptr noundef nonnull align 8 dereferenceable(96) %3) #4
  call void @_ZN4juce24FlexBoxLayoutCalculation26alignItemsByJustifyContentEv(ptr noundef nonnull align 8 dereferenceable(96) %3) #4
  call void @_ZN4juce24FlexBoxLayoutCalculation14layoutAllItemsEv(ptr noundef nonnull align 8 dereferenceable(96) %3) #4
  %15 = call noundef ptr @_ZNK4juce5ArrayINS_8FlexItemENS_20DummyCriticalSectionELi0EE5beginEv(ptr noundef nonnull align 8 dereferenceable(20) %7) #4
  %16 = call noundef ptr @_ZNK4juce5ArrayINS_8FlexItemENS_20DummyCriticalSectionELi0EE3endEv(ptr noundef nonnull align 8 dereferenceable(20) %7) #4
  %.not26 = icmp eq ptr %15, %16
  br i1 %.not26, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %33, %14
  call void @_ZN4juce24FlexBoxLayoutCalculationD2Ev(ptr noundef nonnull align 8 dereferenceable(96) %3) #4
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %3) #4
  br label %36

17:                                               ; preds = %9
  %18 = landingpad { ptr, i32 }
          cleanup
  br label %35

.lr.ph:                                           ; preds = %14, %33
  %.01927 = phi ptr [ %34, %33 ], [ %15, %14 ]
  call void @_ZNK4juce9RectangleIfE11getPositionEv(ptr dead_on_unwind nonnull writable sret(%"class.juce::Point.35") align 4 %4, ptr noundef nonnull align 4 dereferenceable(16) %1) #4
  %19 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN4juce9RectangleIfEpLENS_5PointIfEE(ptr noundef nonnull align 4 dereferenceable(16) %.01927, ptr noundef nonnull %4) #4
  %20 = getelementptr inbounds i8, ptr %.01927, i64 16
  %21 = load ptr, ptr %20, align 8, !tbaa !5
  %.not22 = icmp eq ptr %21, null
  br i1 %.not22, label %26, label %22

22:                                               ; preds = %.lr.ph
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #4
  call void @_ZNK4juce9RectangleIfE27getSmallestIntegerContainerEv(ptr dead_on_unwind nonnull writable sret(%"class.juce::Rectangle") align 4 %5, ptr noundef nonnull align 4 dereferenceable(16) %.01927) #4
  invoke void @_ZN4juce9Component9setBoundsERKNS_9RectangleIiEE(ptr noundef nonnull align 8 dereferenceable(197) %21, ptr noundef nonnull align 4 dereferenceable(16) %5)
          to label %23 unwind label %24

23:                                               ; preds = %22
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %5) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #4
  br label %26

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

26:                                               ; preds = %23, %.lr.ph
  %27 = getelementptr inbounds i8, ptr %.01927, i64 24
  %28 = load ptr, ptr %27, align 8, !tbaa !16
  %.not23 = icmp eq ptr %28, null
  br i1 %.not23, label %33, label %29

29:                                               ; preds = %26
  call void @_ZN4juce9RectangleIfEC2ERKS1_(ptr noundef nonnull align 4 dereferenceable(16) %6, ptr noundef nonnull align 4 dereferenceable(16) %.01927) #4
  invoke void @_ZN4juce7FlexBox13performLayoutENS_9RectangleIfEE(ptr noundef nonnull align 8 dereferenceable(48) %28, ptr noundef nonnull %6)
          to label %30 unwind label %31

30:                                               ; preds = %29
  call void @_ZN4juce9RectangleIfED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %6) #4
  br label %33

31:                                               ; preds = %29
  %32 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4juce9RectangleIfED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %6) #4
  br label %35

33:                                               ; preds = %30, %26
  %34 = getelementptr inbounds i8, ptr %.01927, i64 96
  %.not = icmp eq ptr %34, %16
  br i1 %.not, label %._crit_edge, label %.lr.ph

35:                                               ; preds = %24, %31, %17
  %.pn.pn = phi { ptr, i32 } [ %18, %17 ], [ %32, %31 ], [ %25, %24 ]
  call void @_ZN4juce24FlexBoxLayoutCalculationD2Ev(ptr noundef nonnull align 8 dereferenceable(96) %3) #4
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %3) #4
  resume { ptr, i32 } %.pn.pn

36:                                               ; preds = %._crit_edge, %2
  ret void
}

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4juce24FlexBoxLayoutCalculationC2ERKNS_7FlexBoxEdd(ptr noundef nonnull align 8 dereferenceable(96), ptr noundef nonnull align 8 dereferenceable(48), double noundef, double noundef) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4juce24FlexBoxLayoutCalculation12createStatesEv(ptr noundef nonnull align 8 dereferenceable(96)) local_unnamed_addr #2 align 2

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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, !12, i64 16}
!6 = !{!"_ZTSN4juce8FlexItemE", !7, i64 0, !12, i64 16, !12, i64 24, !13, i64 32, !9, i64 36, !9, i64 40, !9, i64 44, !14, i64 48, !9, i64 52, !9, i64 56, !9, i64 60, !9, i64 64, !9, i64 68, !9, i64 72, !15, i64 76}
!7 = !{!"_ZTSN4juce9RectangleIfEE", !8, i64 0, !9, i64 8, !9, i64 12}
!8 = !{!"_ZTSN4juce5PointIfEE", !9, i64 0, !9, i64 4}
!9 = !{!"float", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C++ TBAA"}
!12 = !{!"any pointer", !10, i64 0}
!13 = !{!"int", !10, i64 0}
!14 = !{!"_ZTSN4juce8FlexItem9AlignSelfE", !10, i64 0}
!15 = !{!"_ZTSN4juce8FlexItem6MarginE", !9, i64 0, !9, i64 4, !9, i64 8, !9, i64 12}
!16 = !{!6, !12, i64 24}


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