; 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 }
%"class.juce::AffineTransform" = type { float, float, float, float, float, float }
%"class.juce::Image" = type { %"class.juce::ReferenceCountedObjectPtr.48" }
%"class.juce::ReferenceCountedObjectPtr.48" = type { ptr }
%"class.juce::Graphics" = type <{ ptr, %"class.juce::ScopedPointer.71", i8, [7 x i8] }>
%"class.juce::ScopedPointer.71" = type { ptr }
%"class.juce::Component" = 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, [3 x 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 }

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 i32 @_ZNK4juce9Component8getWidthEv(ptr noundef nonnull align 8 dereferenceable(197)) #0 align 2

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK4juce9RectangleIiE9getHeightEv(ptr noundef nonnull align 4 dereferenceable(16)) #2 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 nounwind uwtable
declare dso_local void @_ZN4juce9RectangleIiEC2ERKS1_(ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(16)) unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNK4juce9RectangleIiE15getIntersectionERKS1_(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 zeroext i1 @_ZNK4juce9RectangleIiE7isEmptyEv(ptr noundef nonnull align 4 dereferenceable(16)) #0 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4juce9Component20paintEntireComponentERNS_8GraphicsEb(ptr noundef nonnull align 8 dereferenceable(197), ptr noundef nonnull align 8 dereferenceable(17), i1 noundef zeroext) #4 align 2

declare void @_ZN4juce8Graphics12addTransformERKNS_15AffineTransformE(ptr noundef nonnull align 8 dereferenceable(17), ptr noundef nonnull align 4 dereferenceable(24)) #3

declare void @_ZN4juce5ImageC1ENS0_11PixelFormatEiib(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef, i32 noundef, i32 noundef, i1 noundef zeroext) unnamed_addr #3

declare void @_ZN4juce8GraphicsC1ERKNS_5ImageE(ptr noundef nonnull align 8 dereferenceable(17), ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #3

; Function Attrs: nounwind
declare void @_ZN4juce15AffineTransform5scaleEff(ptr dead_on_unwind writable sret(%"class.juce::AffineTransform") align 4, float noundef, float noundef) #5

; Function Attrs: nounwind
declare void @_ZN4juce8GraphicsD1Ev(ptr noundef nonnull align 8 dereferenceable(17)) unnamed_addr #5

; Function Attrs: nounwind
declare void @_ZN4juce5ImageD1Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #5

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4juce9Component23createComponentSnapshotERKNS_9RectangleIiEEbf(ptr dead_on_unwind noalias writable sret(%"class.juce::Image") align 8 %0, ptr noundef nonnull align 8 dereferenceable(197) %1, ptr noundef nonnull align 4 dereferenceable(16) %2, i1 noundef zeroext %3, float noundef %4) #4 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i8, align 1
  %10 = alloca float, align 4
  %11 = alloca %"class.juce::Rectangle", align 4
  %12 = alloca %"class.juce::Rectangle", align 4
  %13 = alloca %"class.juce::Rectangle", align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i1, align 1
  %18 = alloca ptr, align 8
  %19 = alloca i32, align 4
  %20 = alloca %"class.juce::Graphics", align 8
  %21 = alloca %"class.juce::AffineTransform", align 4
  %22 = alloca %"class.juce::Point", align 4
  %23 = alloca %"class.juce::Point", align 4
  store ptr %0, ptr %6, align 8
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  %24 = zext i1 %3 to i8
  store i8 %24, ptr %9, align 1, !tbaa !9
  store float %4, ptr %10, align 4, !tbaa !11
  %25 = load ptr, ptr %7, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #6
  %26 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN4juce9RectangleIiEC2ERKS1_(ptr noundef nonnull align 4 dereferenceable(16) %11, ptr noundef nonnull align 4 dereferenceable(16) %26) #6
  %27 = load i8, ptr %9, align 1, !tbaa !9, !range !13, !noundef !14
  %28 = trunc i8 %27 to i1
  br i1 %28, label %29, label %31

29:                                               ; preds = %5
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #6
  call void @_ZNK4juce9Component14getLocalBoundsEv(ptr dead_on_unwind writable sret(%"class.juce::Rectangle") align 4 %13, ptr noundef nonnull align 8 dereferenceable(197) %25) #6
  call void @_ZNK4juce9RectangleIiE15getIntersectionERKS1_(ptr dead_on_unwind writable sret(%"class.juce::Rectangle") align 4 %12, ptr noundef nonnull align 4 dereferenceable(16) %11, ptr noundef nonnull align 4 dereferenceable(16) %13) #6
  %30 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN4juce9RectangleIiEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(16) %11, ptr noundef nonnull align 4 dereferenceable(16) %12) #6
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %12) #6
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %13) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #6
  br label %31

31:                                               ; preds = %29, %5
  %32 = call noundef zeroext i1 @_ZNK4juce9RectangleIiE7isEmptyEv(ptr noundef nonnull align 4 dereferenceable(16) %11) #6
  br i1 %32, label %33, label %34

33:                                               ; preds = %31
  call void @_ZN4juce5ImageC1Ev(ptr noundef nonnull align 8 dereferenceable(8) %0) #6
  store i32 1, ptr %14, align 4
  br label %104

34:                                               ; preds = %31
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  %35 = load float, ptr %10, align 4, !tbaa !11
  %36 = call noundef i32 @_ZNK4juce9RectangleIiE8getWidthEv(ptr noundef nonnull align 4 dereferenceable(16) %11) #6
  %37 = sitofp i32 %36 to float
  %38 = fmul float %35, %37
  %39 = call noundef i32 @_ZN4juce10roundToIntIfEEiT_(float noundef %38) #6
  store i32 %39, ptr %15, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  %40 = load float, ptr %10, align 4, !tbaa !11
  %41 = call noundef i32 @_ZNK4juce9RectangleIiE9getHeightEv(ptr noundef nonnull align 4 dereferenceable(16) %11) #6
  %42 = sitofp i32 %41 to float
  %43 = fmul float %40, %42
  %44 = call noundef i32 @_ZN4juce10roundToIntIfEEiT_(float noundef %43) #6
  store i32 %44, ptr %16, align 4, !tbaa !15
  store i1 false, ptr %17, align 1
  %45 = getelementptr inbounds %"class.juce::Component", ptr %25, i32 0, i32 17
  %46 = load i16, ptr %45, align 8
  %47 = lshr i16 %46, 2
  %48 = and i16 %47, 1
  %49 = trunc i16 %48 to i1
  %50 = zext i1 %49 to i64
  %51 = select i1 %49, i32 1, i32 2
  %52 = load i32, ptr %15, align 4, !tbaa !15
  %53 = load i32, ptr %16, align 4, !tbaa !15
  invoke void @_ZN4juce5ImageC1ENS0_11PixelFormatEiib(ptr noundef nonnull align 8 dereferenceable(8) %0, i32 noundef %51, i32 noundef %52, i32 noundef %53, i1 noundef zeroext true)
          to label %54 unwind label %75

54:                                               ; preds = %34
  call void @llvm.lifetime.start.p0(i64 24, ptr %20) #6
  invoke void @_ZN4juce8GraphicsC1ERKNS_5ImageE(ptr noundef nonnull align 8 dereferenceable(17) %20, ptr noundef nonnull align 8 dereferenceable(8) %0)
          to label %55 unwind label %79

55:                                               ; preds = %54
  %56 = load i32, ptr %15, align 4, !tbaa !15
  %57 = call noundef i32 @_ZNK4juce9Component8getWidthEv(ptr noundef nonnull align 8 dereferenceable(197) %25) #6
  %58 = icmp ne i32 %56, %57
  br i1 %58, label %63, label %59

59:                                               ; preds = %55
  %60 = load i32, ptr %16, align 4, !tbaa !15
  %61 = call noundef i32 @_ZNK4juce9Component9getHeightEv(ptr noundef nonnull align 8 dereferenceable(197) %25) #6
  %62 = icmp ne i32 %60, %61
  br i1 %62, label %63, label %87

63:                                               ; preds = %59, %55
  call void @llvm.lifetime.start.p0(i64 24, ptr %21) #6
  %64 = load i32, ptr %15, align 4, !tbaa !15
  %65 = sitofp i32 %64 to float
  %66 = call noundef i32 @_ZNK4juce9RectangleIiE8getWidthEv(ptr noundef nonnull align 4 dereferenceable(16) %11) #6
  %67 = sitofp i32 %66 to float
  %68 = fdiv float %65, %67
  %69 = load i32, ptr %16, align 4, !tbaa !15
  %70 = sitofp i32 %69 to float
  %71 = call noundef i32 @_ZNK4juce9RectangleIiE9getHeightEv(ptr noundef nonnull align 4 dereferenceable(16) %11) #6
  %72 = sitofp i32 %71 to float
  %73 = fdiv float %70, %72
  call void @_ZN4juce15AffineTransform5scaleEff(ptr dead_on_unwind writable sret(%"class.juce::AffineTransform") align 4 %21, float noundef %68, float noundef %73) #6
  invoke void @_ZN4juce8Graphics12addTransformERKNS_15AffineTransformE(ptr noundef nonnull align 8 dereferenceable(17) %20, ptr noundef nonnull align 4 dereferenceable(24) %21)
          to label %74 unwind label %83

74:                                               ; preds = %63
  call void @llvm.lifetime.end.p0(i64 24, ptr %21) #6
  br label %87

75:                                               ; preds = %34
  %76 = landingpad { ptr, i32 }
          cleanup
  %77 = extractvalue { ptr, i32 } %76, 0
  store ptr %77, ptr %18, align 8
  %78 = extractvalue { ptr, i32 } %76, 1
  store i32 %78, ptr %19, align 4
  br label %103

79:                                               ; preds = %54
  %80 = landingpad { ptr, i32 }
          cleanup
  %81 = extractvalue { ptr, i32 } %80, 0
  store ptr %81, ptr %18, align 8
  %82 = extractvalue { ptr, i32 } %80, 1
  store i32 %82, ptr %19, align 4
  br label %100

83:                                               ; preds = %63
  %84 = landingpad { ptr, i32 }
          cleanup
  %85 = extractvalue { ptr, i32 } %84, 0
  store ptr %85, ptr %18, align 8
  %86 = extractvalue { ptr, i32 } %84, 1
  store i32 %86, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 24, ptr %21) #6
  br label %99

87:                                               ; preds = %74, %59
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #6
  call void @_ZNK4juce9RectangleIiE11getPositionEv(ptr dead_on_unwind writable sret(%"class.juce::Point") align 4 %23, ptr noundef nonnull align 4 dereferenceable(16) %11) #6
  call void @_ZNK4juce5PointIiEngEv(ptr dead_on_unwind writable sret(%"class.juce::Point") align 4 %22, ptr noundef nonnull align 4 dereferenceable(8) %23) #6
  invoke void @_ZN4juce8Graphics9setOriginENS_5PointIiEE(ptr noundef nonnull align 8 dereferenceable(17) %20, ptr noundef %22)
          to label %88 unwind label %91

88:                                               ; preds = %87
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  invoke void @_ZN4juce9Component20paintEntireComponentERNS_8GraphicsEb(ptr noundef nonnull align 8 dereferenceable(197) %25, ptr noundef nonnull align 8 dereferenceable(17) %20, i1 noundef zeroext true)
          to label %89 unwind label %95

89:                                               ; preds = %88
  store i1 true, ptr %17, align 1
  store i32 1, ptr %14, align 4
  call void @_ZN4juce8GraphicsD1Ev(ptr noundef nonnull align 8 dereferenceable(17) %20) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %20) #6
  %90 = load i1, ptr %17, align 1
  br i1 %90, label %102, label %101

91:                                               ; preds = %87
  %92 = landingpad { ptr, i32 }
          cleanup
  %93 = extractvalue { ptr, i32 } %92, 0
  store ptr %93, ptr %18, align 8
  %94 = extractvalue { ptr, i32 } %92, 1
  store i32 %94, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  br label %99

95:                                               ; preds = %88
  %96 = landingpad { ptr, i32 }
          cleanup
  %97 = extractvalue { ptr, i32 } %96, 0
  store ptr %97, ptr %18, align 8
  %98 = extractvalue { ptr, i32 } %96, 1
  store i32 %98, ptr %19, align 4
  br label %99

99:                                               ; preds = %95, %91, %83
  call void @_ZN4juce8GraphicsD1Ev(ptr noundef nonnull align 8 dereferenceable(17) %20) #6
  br label %100

100:                                              ; preds = %99, %79
  call void @llvm.lifetime.end.p0(i64 24, ptr %20) #6
  call void @_ZN4juce5ImageD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %0) #6
  br label %103

101:                                              ; preds = %89
  call void @_ZN4juce5ImageD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %0) #6
  br label %102

102:                                              ; preds = %101, %89
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  br label %104

103:                                              ; preds = %100, %75
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %11) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #6
  br label %105

104:                                              ; preds = %102, %33
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %11) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #6
  ret void

105:                                              ; preds = %103
  %106 = load ptr, ptr %18, align 8
  %107 = load i32, ptr %19, align 4
  %108 = insertvalue { ptr, i32 } poison, ptr %106, 0
  %109 = insertvalue { ptr, i32 } %108, i32 %107, 1
  resume { ptr, i32 } %109
}

; Function Attrs: nounwind
declare void @_ZN4juce5ImageC1Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #5

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNK4juce5PointIiEngEv(ptr dead_on_unwind noalias writable sret(%"class.juce::Point") align 4, ptr noundef nonnull align 4 dereferenceable(8)) #0 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 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "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 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 #6 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"bool", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = !{i8 0, i8 2}
!14 = !{}
!15 = !{!16, !16, i64 0}
!16 = !{!"int", !7, 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 }
%"class.juce::AffineTransform" = type { float, float, float, float, float, float }
%"class.juce::Image" = type { %"class.juce::ReferenceCountedObjectPtr.48" }
%"class.juce::ReferenceCountedObjectPtr.48" = type { ptr }
%"class.juce::Graphics" = type <{ ptr, %"class.juce::ScopedPointer.71", i8, [7 x i8] }>
%"class.juce::ScopedPointer.71" = type { ptr }

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 i32 @_ZNK4juce9Component8getWidthEv(ptr noundef nonnull align 8 dereferenceable(197)) local_unnamed_addr #0 align 2

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK4juce9RectangleIiE9getHeightEv(ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #2 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 nounwind uwtable
declare dso_local void @_ZN4juce9RectangleIiEC2ERKS1_(ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(16)) unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNK4juce9RectangleIiE15getIntersectionERKS1_(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 zeroext i1 @_ZNK4juce9RectangleIiE7isEmptyEv(ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #0 align 2

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

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

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

declare void @_ZN4juce5ImageC1ENS0_11PixelFormatEiib(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef, i32 noundef, i32 noundef, i1 noundef zeroext) unnamed_addr #3

declare void @_ZN4juce8GraphicsC1ERKNS_5ImageE(ptr noundef nonnull align 8 dereferenceable(17), ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #3

; Function Attrs: nounwind
declare void @_ZN4juce15AffineTransform5scaleEff(ptr dead_on_unwind writable sret(%"class.juce::AffineTransform") align 4, float noundef, float noundef) local_unnamed_addr #5

; Function Attrs: nounwind
declare void @_ZN4juce8GraphicsD1Ev(ptr noundef nonnull align 8 dereferenceable(17)) unnamed_addr #5

; Function Attrs: nounwind
declare void @_ZN4juce5ImageD1Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #5

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4juce9Component23createComponentSnapshotERKNS_9RectangleIiEEbf(ptr dead_on_unwind noalias writable sret(%"class.juce::Image") align 8 %0, ptr noundef nonnull align 8 dereferenceable(197) %1, ptr noundef nonnull align 4 dereferenceable(16) %2, i1 noundef zeroext %3, float noundef %4) local_unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca %"class.juce::Rectangle", align 4
  %7 = alloca %"class.juce::Rectangle", align 4
  %8 = alloca %"class.juce::Rectangle", align 4
  %9 = alloca %"class.juce::Graphics", align 8
  %10 = alloca %"class.juce::AffineTransform", align 4
  %11 = alloca %"class.juce::Point", align 4
  %12 = alloca %"class.juce::Point", align 4
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #6
  call void @_ZN4juce9RectangleIiEC2ERKS1_(ptr noundef nonnull align 4 dereferenceable(16) %6, ptr noundef nonnull align 4 dereferenceable(16) %2) #6
  br i1 %3, label %13, label %15

13:                                               ; preds = %5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #6
  call void @_ZNK4juce9Component14getLocalBoundsEv(ptr dead_on_unwind nonnull writable sret(%"class.juce::Rectangle") align 4 %8, ptr noundef nonnull align 8 dereferenceable(197) %1) #6
  call void @_ZNK4juce9RectangleIiE15getIntersectionERKS1_(ptr dead_on_unwind nonnull writable sret(%"class.juce::Rectangle") align 4 %7, ptr noundef nonnull align 4 dereferenceable(16) %6, ptr noundef nonnull align 4 dereferenceable(16) %8) #6
  %14 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN4juce9RectangleIiEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(16) %6, ptr noundef nonnull align 4 dereferenceable(16) %7) #6
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %7) #6
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %8) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #6
  br label %15

15:                                               ; preds = %13, %5
  %16 = call noundef zeroext i1 @_ZNK4juce9RectangleIiE7isEmptyEv(ptr noundef nonnull align 4 dereferenceable(16) %6) #6
  br i1 %16, label %17, label %18

17:                                               ; preds = %15
  call void @_ZN4juce5ImageC1Ev(ptr noundef nonnull align 8 dereferenceable(8) %0) #6
  br label %62

18:                                               ; preds = %15
  %19 = call noundef i32 @_ZNK4juce9RectangleIiE8getWidthEv(ptr noundef nonnull align 4 dereferenceable(16) %6) #6
  %20 = sitofp i32 %19 to float
  %21 = fmul float %20, %4
  %22 = call noundef i32 @_ZN4juce10roundToIntIfEEiT_(float noundef %21) #6
  %23 = call noundef i32 @_ZNK4juce9RectangleIiE9getHeightEv(ptr noundef nonnull align 4 dereferenceable(16) %6) #6
  %24 = sitofp i32 %23 to float
  %25 = fmul float %24, %4
  %26 = call noundef i32 @_ZN4juce10roundToIntIfEEiT_(float noundef %25) #6
  %27 = getelementptr inbounds i8, ptr %1, i64 192
  %28 = load i16, ptr %27, align 8
  %29 = and i16 %28, 4
  %.not = icmp eq i16 %29, 0
  %30 = select i1 %.not, i32 2, i32 1
  invoke void @_ZN4juce5ImageC1ENS0_11PixelFormatEiib(ptr noundef nonnull align 8 dereferenceable(8) %0, i32 noundef %30, i32 noundef %22, i32 noundef %26, i1 noundef zeroext true)
          to label %31 unwind label %46

31:                                               ; preds = %18
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %9) #6
  invoke void @_ZN4juce8GraphicsC1ERKNS_5ImageE(ptr noundef nonnull align 8 dereferenceable(17) %9, ptr noundef nonnull align 8 dereferenceable(8) %0)
          to label %32 unwind label %48

32:                                               ; preds = %31
  %33 = call noundef i32 @_ZNK4juce9Component8getWidthEv(ptr noundef nonnull align 8 dereferenceable(197) %1) #6
  %.not16 = icmp eq i32 %22, %33
  br i1 %.not16, label %34, label %36

34:                                               ; preds = %32
  %35 = call noundef i32 @_ZNK4juce9Component9getHeightEv(ptr noundef nonnull align 8 dereferenceable(197) %1) #6
  %.not17 = icmp eq i32 %26, %35
  br i1 %.not17, label %52, label %36

36:                                               ; preds = %34, %32
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %10) #6
  %37 = sitofp i32 %22 to float
  %38 = call noundef i32 @_ZNK4juce9RectangleIiE8getWidthEv(ptr noundef nonnull align 4 dereferenceable(16) %6) #6
  %39 = sitofp i32 %38 to float
  %40 = fdiv float %37, %39
  %41 = sitofp i32 %26 to float
  %42 = call noundef i32 @_ZNK4juce9RectangleIiE9getHeightEv(ptr noundef nonnull align 4 dereferenceable(16) %6) #6
  %43 = sitofp i32 %42 to float
  %44 = fdiv float %41, %43
  call void @_ZN4juce15AffineTransform5scaleEff(ptr dead_on_unwind nonnull writable sret(%"class.juce::AffineTransform") align 4 %10, float noundef %40, float noundef %44) #6
  invoke void @_ZN4juce8Graphics12addTransformERKNS_15AffineTransformE(ptr noundef nonnull align 8 dereferenceable(17) %9, ptr noundef nonnull align 4 dereferenceable(24) %10)
          to label %45 unwind label %50

45:                                               ; preds = %36
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #6
  br label %52

46:                                               ; preds = %18
  %47 = landingpad { ptr, i32 }
          cleanup
  br label %61

48:                                               ; preds = %31
  %49 = landingpad { ptr, i32 }
          cleanup
  br label %60

50:                                               ; preds = %36
  %51 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #6
  br label %59

52:                                               ; preds = %45, %34
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #6
  call void @_ZNK4juce9RectangleIiE11getPositionEv(ptr dead_on_unwind nonnull writable sret(%"class.juce::Point") align 4 %12, ptr noundef nonnull align 4 dereferenceable(16) %6) #6
  call void @_ZNK4juce5PointIiEngEv(ptr dead_on_unwind nonnull writable sret(%"class.juce::Point") align 4 %11, ptr noundef nonnull align 4 dereferenceable(8) %12) #6
  invoke void @_ZN4juce8Graphics9setOriginENS_5PointIiEE(ptr noundef nonnull align 8 dereferenceable(17) %9, ptr noundef nonnull %11)
          to label %53 unwind label %55

53:                                               ; preds = %52
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #6
  invoke void @_ZN4juce9Component20paintEntireComponentERNS_8GraphicsEb(ptr noundef nonnull align 8 dereferenceable(197) %1, ptr noundef nonnull align 8 dereferenceable(17) %9, i1 noundef zeroext true)
          to label %54 unwind label %57

54:                                               ; preds = %53
  call void @_ZN4juce8GraphicsD1Ev(ptr noundef nonnull align 8 dereferenceable(17) %9) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #6
  br label %62

55:                                               ; preds = %52
  %56 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #6
  br label %59

57:                                               ; preds = %53
  %58 = landingpad { ptr, i32 }
          cleanup
  br label %59

59:                                               ; preds = %57, %55, %50
  %.pn = phi { ptr, i32 } [ %58, %57 ], [ %56, %55 ], [ %51, %50 ]
  call void @_ZN4juce8GraphicsD1Ev(ptr noundef nonnull align 8 dereferenceable(17) %9) #6
  br label %60

60:                                               ; preds = %59, %48
  %.pn.pn = phi { ptr, i32 } [ %.pn, %59 ], [ %49, %48 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #6
  call void @_ZN4juce5ImageD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %0) #6
  br label %61

61:                                               ; preds = %60, %46
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %60 ], [ %47, %46 ]
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %6) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #6
  resume { ptr, i32 } %.pn.pn.pn

62:                                               ; preds = %54, %17
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %6) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #6
  ret void
}

; Function Attrs: nounwind
declare void @_ZN4juce5ImageC1Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #5

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNK4juce5PointIiEngEv(ptr dead_on_unwind noalias writable sret(%"class.juce::Point") align 4, ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #0 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 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "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 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 #6 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}


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