; 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::AffineTransform" = type { float, float, float, float, float, float }
%"class.juce::Point.35" = type { float, float }
%"class.juce::Line" = type { %"class.juce::Point.35", %"class.juce::Point.35" }
%"class.juce::Path" = type <{ %"class.juce::ArrayAllocationBase.123", i64, %"struct.juce::Path::PathBounds", i8, [7 x i8] }>
%"class.juce::ArrayAllocationBase.123" = type <{ %"class.juce::HeapBlock.124", i32, [4 x i8] }>
%"class.juce::HeapBlock.124" = type { ptr }
%"struct.juce::Path::PathBounds" = type { float, float, float, float }
%"class.juce::DrawableRectangle" = type { %"class.juce::DrawableShape", %"class.juce::RelativeParallelogram", %"class.juce::RelativePoint" }
%"class.juce::DrawableShape" = type { %"class.juce::Drawable", %"class.juce::PathStrokeType", [4 x i8], %"class.juce::Array.196", %"class.juce::Path", %"class.juce::Path", %"class.juce::DrawableShape::RelativeFillType", %"class.juce::DrawableShape::RelativeFillType", %"class.juce::ScopedPointer.199", %"class.juce::ScopedPointer.199" }
%"class.juce::Drawable" = type { %"class.juce::Component.base", %"class.juce::Point" }
%"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::Rectangle" = type { %"class.juce::Point", i32, i32 }
%"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::Point" = type { i32, i32 }
%"class.juce::PathStrokeType" = type { float, i32, i32 }
%"class.juce::Array.196" = type { %"class.juce::ArrayAllocationBase.123", i32, [4 x i8] }
%"class.juce::DrawableShape::RelativeFillType" = type { %"class.juce::FillType", %"class.juce::RelativePoint", %"class.juce::RelativePoint", %"class.juce::RelativePoint" }
%"class.juce::FillType" = type { %"class.juce::Colour", %"class.juce::ScopedPointer.198", %"class.juce::Image", %"class.juce::AffineTransform" }
%"class.juce::Colour" = type { %"class.juce::PixelARGB" }
%"class.juce::PixelARGB" = type { %union.anon.77 }
%union.anon.77 = type { i32 }
%"class.juce::ScopedPointer.198" = type { ptr }
%"class.juce::Image" = type { %"class.juce::ReferenceCountedObjectPtr.48" }
%"class.juce::ReferenceCountedObjectPtr.48" = type { ptr }
%"class.juce::ScopedPointer.199" = type { ptr }
%"class.juce::RelativeParallelogram" = type { %"class.juce::RelativePoint", %"class.juce::RelativePoint", %"class.juce::RelativePoint" }
%"class.juce::RelativePoint" = type { %"class.juce::RelativeCoordinate", %"class.juce::RelativeCoordinate" }
%"class.juce::RelativeCoordinate" = type { %"class.juce::Expression" }
%"class.juce::Expression" = type { %"class.juce::ReferenceCountedObjectPtr.59" }
%"class.juce::ReferenceCountedObjectPtr.59" = type { ptr }

declare i32 @__gxx_personality_v0(...)

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

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

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

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

declare void @_ZN4juce4PathC1Ev(ptr noundef nonnull align 8 dereferenceable(41)) unnamed_addr #2

; Function Attrs: nounwind
declare void @_ZN4juce4Path14applyTransformERKNS_15AffineTransformE(ptr noundef nonnull align 8 dereferenceable(41), ptr noundef nonnull align 4 dereferenceable(24)) #3

; Function Attrs: nounwind
declare void @_ZN4juce4PathD1Ev(ptr noundef nonnull align 8 dereferenceable(41)) unnamed_addr #3

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

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

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

; Function Attrs: nounwind
declare noundef zeroext i1 @_ZNK4juce4PathneERKS0_(ptr noundef nonnull align 8 dereferenceable(41), ptr noundef nonnull align 8 dereferenceable(41)) #3

; Function Attrs: nounwind
declare void @_ZN4juce4Path12swapWithPathERS0_(ptr noundef nonnull align 8 dereferenceable(41), ptr noundef nonnull align 8 dereferenceable(41)) #3

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4juce17DrawableRectangle22recalculateCoordinatesEPNS_10Expression5ScopeE(ptr noundef nonnull align 8 dereferenceable(616) %0, ptr noundef %1) #4 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca [3 x %"class.juce::Point.35"], align 16
  %6 = alloca float, align 4
  %7 = alloca float, align 4
  %8 = alloca float, align 4
  %9 = alloca %"class.juce::Line", align 4
  %10 = alloca %"class.juce::Point.35", align 4
  %11 = alloca %"class.juce::Point.35", align 4
  %12 = alloca float, align 4
  %13 = alloca %"class.juce::Line", align 4
  %14 = alloca %"class.juce::Point.35", align 4
  %15 = alloca %"class.juce::Point.35", align 4
  %16 = alloca %"class.juce::Path", align 8
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  %19 = alloca %"class.juce::AffineTransform", align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %20 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr %5) #5
  %21 = getelementptr inbounds [3 x %"class.juce::Point.35"], ptr %5, i32 0, i32 0
  %22 = getelementptr inbounds %"class.juce::Point.35", ptr %21, i64 3
  br label %23

23:                                               ; preds = %23, %2
  %24 = phi ptr [ %21, %2 ], [ %25, %23 ]
  call void @_ZN4juce5PointIfEC2Ev(ptr noundef nonnull align 4 dereferenceable(8) %24) #5
  %25 = getelementptr inbounds %"class.juce::Point.35", ptr %24, i64 1
  %26 = icmp eq ptr %25, %22
  br i1 %26, label %27, label %23

27:                                               ; preds = %23
  %28 = getelementptr inbounds %"class.juce::DrawableRectangle", ptr %20, i32 0, i32 1
  %29 = getelementptr inbounds [3 x %"class.juce::Point.35"], ptr %5, i64 0, i64 0
  %30 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZNK4juce21RelativeParallelogram18resolveThreePointsEPNS_5PointIfEEPNS_10Expression5ScopeE(ptr noundef nonnull align 8 dereferenceable(48) %28, ptr noundef %29, ptr noundef %30)
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  %31 = getelementptr inbounds %"class.juce::DrawableRectangle", ptr %20, i32 0, i32 2
  %32 = getelementptr inbounds %"class.juce::RelativePoint", ptr %31, i32 0, i32 0
  %33 = load ptr, ptr %4, align 8, !tbaa !5
  %34 = call noundef double @_ZNK4juce18RelativeCoordinate7resolveEPKNS_10Expression5ScopeE(ptr noundef nonnull align 8 dereferenceable(8) %32, ptr noundef %33)
  %35 = fptrunc double %34 to float
  store float %35, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  %36 = getelementptr inbounds %"class.juce::DrawableRectangle", ptr %20, i32 0, i32 2
  %37 = getelementptr inbounds %"class.juce::RelativePoint", ptr %36, i32 0, i32 1
  %38 = load ptr, ptr %4, align 8, !tbaa !5
  %39 = call noundef double @_ZNK4juce18RelativeCoordinate7resolveEPKNS_10Expression5ScopeE(ptr noundef nonnull align 8 dereferenceable(8) %37, ptr noundef %38)
  %40 = fptrunc double %39 to float
  store float %40, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #5
  %41 = getelementptr inbounds [3 x %"class.juce::Point.35"], ptr %5, i64 0, i64 0
  call void @_ZN4juce5PointIfEC2ERKS1_(ptr noundef nonnull align 4 dereferenceable(8) %10, ptr noundef nonnull align 4 dereferenceable(8) %41) #5
  %42 = getelementptr inbounds [3 x %"class.juce::Point.35"], ptr %5, i64 0, i64 1
  call void @_ZN4juce5PointIfEC2ERKS1_(ptr noundef nonnull align 4 dereferenceable(8) %11, ptr noundef nonnull align 4 dereferenceable(8) %42) #5
  call void @_ZN4juce4LineIfEC2ENS_5PointIfEES3_(ptr noundef nonnull align 4 dereferenceable(16) %9, ptr noundef %10, ptr noundef %11) #5
  %43 = call noundef float @_ZNK4juce4LineIfE9getLengthEv(ptr noundef nonnull align 4 dereferenceable(16) %9) #5
  call void @_ZN4juce4LineIfED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %9) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #5
  store float %43, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #5
  %44 = getelementptr inbounds [3 x %"class.juce::Point.35"], ptr %5, i64 0, i64 0
  call void @_ZN4juce5PointIfEC2ERKS1_(ptr noundef nonnull align 4 dereferenceable(8) %14, ptr noundef nonnull align 4 dereferenceable(8) %44) #5
  %45 = getelementptr inbounds [3 x %"class.juce::Point.35"], ptr %5, i64 0, i64 2
  call void @_ZN4juce5PointIfEC2ERKS1_(ptr noundef nonnull align 4 dereferenceable(8) %15, ptr noundef nonnull align 4 dereferenceable(8) %45) #5
  call void @_ZN4juce4LineIfEC2ENS_5PointIfEES3_(ptr noundef nonnull align 4 dereferenceable(16) %13, ptr noundef %14, ptr noundef %15) #5
  %46 = call noundef float @_ZNK4juce4LineIfE9getLengthEv(ptr noundef nonnull align 4 dereferenceable(16) %13) #5
  call void @_ZN4juce4LineIfED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %13) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #5
  store float %46, ptr %12, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 48, ptr %16) #5
  call void @_ZN4juce4PathC1Ev(ptr noundef nonnull align 8 dereferenceable(41) %16)
  %47 = load float, ptr %6, align 4, !tbaa !9
  %48 = fcmp ogt float %47, 0.000000e+00
  br i1 %48, label %49, label %62

49:                                               ; preds = %27
  %50 = load float, ptr %7, align 4, !tbaa !9
  %51 = fcmp ogt float %50, 0.000000e+00
  br i1 %51, label %52, label %62

52:                                               ; preds = %49
  %53 = load float, ptr %8, align 4, !tbaa !9
  %54 = load float, ptr %12, align 4, !tbaa !9
  %55 = load float, ptr %6, align 4, !tbaa !9
  %56 = load float, ptr %7, align 4, !tbaa !9
  invoke void @_ZN4juce4Path19addRoundedRectangleEffffff(ptr noundef nonnull align 8 dereferenceable(41) %16, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef %53, float noundef %54, float noundef %55, float noundef %56)
          to label %57 unwind label %58

57:                                               ; preds = %52
  br label %66

58:                                               ; preds = %89, %62, %52
  %59 = landingpad { ptr, i32 }
          cleanup
  %60 = extractvalue { ptr, i32 } %59, 0
  store ptr %60, ptr %17, align 8
  %61 = extractvalue { ptr, i32 } %59, 1
  store i32 %61, ptr %18, align 4
  call void @_ZN4juce4PathD1Ev(ptr noundef nonnull align 8 dereferenceable(41) %16) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %5) #5
  br label %93

62:                                               ; preds = %49, %27
  %63 = load float, ptr %8, align 4, !tbaa !9
  %64 = load float, ptr %12, align 4, !tbaa !9
  invoke void @_ZN4juce4Path12addRectangleEffff(ptr noundef nonnull align 8 dereferenceable(41) %16, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef %63, float noundef %64)
          to label %65 unwind label %58

65:                                               ; preds = %62
  br label %66

66:                                               ; preds = %65, %57
  call void @llvm.lifetime.start.p0(i64 24, ptr %19) #5
  %67 = getelementptr inbounds [3 x %"class.juce::Point.35"], ptr %5, i64 0, i64 0
  %68 = getelementptr inbounds %"class.juce::Point.35", ptr %67, i32 0, i32 0
  %69 = load float, ptr %68, align 16, !tbaa !11
  %70 = getelementptr inbounds [3 x %"class.juce::Point.35"], ptr %5, i64 0, i64 0
  %71 = getelementptr inbounds %"class.juce::Point.35", ptr %70, i32 0, i32 1
  %72 = load float, ptr %71, align 4, !tbaa !13
  %73 = load float, ptr %8, align 4, !tbaa !9
  %74 = getelementptr inbounds [3 x %"class.juce::Point.35"], ptr %5, i64 0, i64 1
  %75 = getelementptr inbounds %"class.juce::Point.35", ptr %74, i32 0, i32 0
  %76 = load float, ptr %75, align 8, !tbaa !11
  %77 = getelementptr inbounds [3 x %"class.juce::Point.35"], ptr %5, i64 0, i64 1
  %78 = getelementptr inbounds %"class.juce::Point.35", ptr %77, i32 0, i32 1
  %79 = load float, ptr %78, align 4, !tbaa !13
  %80 = load float, ptr %12, align 4, !tbaa !9
  %81 = getelementptr inbounds [3 x %"class.juce::Point.35"], ptr %5, i64 0, i64 2
  %82 = getelementptr inbounds %"class.juce::Point.35", ptr %81, i32 0, i32 0
  %83 = load float, ptr %82, align 16, !tbaa !11
  %84 = getelementptr inbounds [3 x %"class.juce::Point.35"], ptr %5, i64 0, i64 2
  %85 = getelementptr inbounds %"class.juce::Point.35", ptr %84, i32 0, i32 1
  %86 = load float, ptr %85, align 4, !tbaa !13
  call void @_ZN4juce15AffineTransform16fromTargetPointsEffffffffffff(ptr dead_on_unwind writable sret(%"class.juce::AffineTransform") align 4 %19, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef %69, float noundef %72, float noundef %73, float noundef 0.000000e+00, float noundef %76, float noundef %79, float noundef 0.000000e+00, float noundef %80, float noundef %83, float noundef %86) #5
  call void @_ZN4juce4Path14applyTransformERKNS_15AffineTransformE(ptr noundef nonnull align 8 dereferenceable(41) %16, ptr noundef nonnull align 4 dereferenceable(24) %19) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %19) #5
  %87 = getelementptr inbounds %"class.juce::DrawableShape", ptr %20, i32 0, i32 4
  %88 = call noundef zeroext i1 @_ZNK4juce4PathneERKS0_(ptr noundef nonnull align 8 dereferenceable(41) %87, ptr noundef nonnull align 8 dereferenceable(41) %16) #5
  br i1 %88, label %89, label %92

89:                                               ; preds = %66
  %90 = getelementptr inbounds %"class.juce::DrawableShape", ptr %20, i32 0, i32 4
  call void @_ZN4juce4Path12swapWithPathERS0_(ptr noundef nonnull align 8 dereferenceable(41) %90, ptr noundef nonnull align 8 dereferenceable(41) %16) #5
  invoke void @_ZN4juce13DrawableShape11pathChangedEv(ptr noundef nonnull align 8 dereferenceable(552) %20)
          to label %91 unwind label %58

91:                                               ; preds = %89
  br label %92

92:                                               ; preds = %91, %66
  call void @_ZN4juce4PathD1Ev(ptr noundef nonnull align 8 dereferenceable(41) %16) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %5) #5
  ret void

93:                                               ; preds = %58
  %94 = load ptr, ptr %17, align 8
  %95 = load i32, ptr %18, align 4
  %96 = insertvalue { ptr, i32 } poison, ptr %94, 0
  %97 = insertvalue { ptr, i32 } %96, i32 %95, 1
  resume { ptr, i32 } %97
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_ZNK4juce18RelativeCoordinate7resolveEPKNS_10Expression5ScopeE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #4 align 2

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

declare void @_ZN4juce4Path19addRoundedRectangleEffffff(ptr noundef nonnull align 8 dereferenceable(41), float noundef, float noundef, float noundef, float noundef, float noundef, float noundef) #2

declare void @_ZN4juce4Path12addRectangleEffff(ptr noundef nonnull align 8 dereferenceable(41), float noundef, float noundef, float noundef, float noundef) #2

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

!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 = !{!"float", !7, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"_ZTSN4juce5PointIfEE", !10, i64 0, !10, i64 4}
!13 = !{!12, !10, i64 4}


; 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::AffineTransform" = type { float, float, float, float, float, float }
%"class.juce::Point.35" = type { float, float }
%"class.juce::Line" = type { %"class.juce::Point.35", %"class.juce::Point.35" }
%"class.juce::Path" = type <{ %"class.juce::ArrayAllocationBase.123", i64, %"struct.juce::Path::PathBounds", i8, [7 x i8] }>
%"class.juce::ArrayAllocationBase.123" = type <{ %"class.juce::HeapBlock.124", i32, [4 x i8] }>
%"class.juce::HeapBlock.124" = type { ptr }
%"struct.juce::Path::PathBounds" = type { float, float, float, float }

declare i32 @__gxx_personality_v0(...)

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

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

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

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

declare void @_ZN4juce4PathC1Ev(ptr noundef nonnull align 8 dereferenceable(41)) unnamed_addr #2

; Function Attrs: nounwind
declare void @_ZN4juce4Path14applyTransformERKNS_15AffineTransformE(ptr noundef nonnull align 8 dereferenceable(41), ptr noundef nonnull align 4 dereferenceable(24)) local_unnamed_addr #3

; Function Attrs: nounwind
declare void @_ZN4juce4PathD1Ev(ptr noundef nonnull align 8 dereferenceable(41)) unnamed_addr #3

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

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

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

; Function Attrs: nounwind
declare noundef zeroext i1 @_ZNK4juce4PathneERKS0_(ptr noundef nonnull align 8 dereferenceable(41), ptr noundef nonnull align 8 dereferenceable(41)) local_unnamed_addr #3

; Function Attrs: nounwind
declare void @_ZN4juce4Path12swapWithPathERS0_(ptr noundef nonnull align 8 dereferenceable(41), ptr noundef nonnull align 8 dereferenceable(41)) local_unnamed_addr #3

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4juce17DrawableRectangle22recalculateCoordinatesEPNS_10Expression5ScopeE(ptr noundef nonnull align 8 dereferenceable(616) %0, ptr noundef %1) local_unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca [3 x %"class.juce::Point.35"], align 16
  %4 = alloca %"class.juce::Line", align 4
  %5 = alloca %"class.juce::Point.35", align 4
  %6 = alloca %"class.juce::Point.35", align 4
  %7 = alloca %"class.juce::Line", align 4
  %8 = alloca %"class.juce::Point.35", align 4
  %9 = alloca %"class.juce::Point.35", align 4
  %10 = alloca %"class.juce::Path", align 8
  %11 = alloca %"class.juce::AffineTransform", align 4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #5
  call void @_ZN4juce5PointIfEC2Ev(ptr noundef nonnull align 4 dereferenceable(8) %3) #5
  %.ptr.1 = getelementptr inbounds i8, ptr %3, i64 8
  call void @_ZN4juce5PointIfEC2Ev(ptr noundef nonnull align 4 dereferenceable(8) %.ptr.1) #5
  %.ptr.2 = getelementptr inbounds i8, ptr %3, i64 16
  call void @_ZN4juce5PointIfEC2Ev(ptr noundef nonnull align 4 dereferenceable(8) %.ptr.2) #5
  %12 = getelementptr inbounds i8, ptr %0, i64 552
  call void @_ZNK4juce21RelativeParallelogram18resolveThreePointsEPNS_5PointIfEEPNS_10Expression5ScopeE(ptr noundef nonnull align 8 dereferenceable(48) %12, ptr noundef nonnull %3, ptr noundef %1)
  %13 = getelementptr inbounds i8, ptr %0, i64 600
  %14 = call noundef double @_ZNK4juce18RelativeCoordinate7resolveEPKNS_10Expression5ScopeE(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef %1)
  %15 = fptrunc double %14 to float
  %16 = getelementptr inbounds i8, ptr %0, i64 608
  %17 = call noundef double @_ZNK4juce18RelativeCoordinate7resolveEPKNS_10Expression5ScopeE(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef %1)
  %18 = fptrunc double %17 to float
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #5
  call void @_ZN4juce5PointIfEC2ERKS1_(ptr noundef nonnull align 4 dereferenceable(8) %5, ptr noundef nonnull align 4 dereferenceable(8) %3) #5
  call void @_ZN4juce5PointIfEC2ERKS1_(ptr noundef nonnull align 4 dereferenceable(8) %6, ptr noundef nonnull align 4 dereferenceable(8) %.ptr.1) #5
  call void @_ZN4juce4LineIfEC2ENS_5PointIfEES3_(ptr noundef nonnull align 4 dereferenceable(16) %4, ptr noundef nonnull %5, ptr noundef nonnull %6) #5
  %19 = call noundef float @_ZNK4juce4LineIfE9getLengthEv(ptr noundef nonnull align 4 dereferenceable(16) %4) #5
  call void @_ZN4juce4LineIfED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %4) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #5
  call void @_ZN4juce5PointIfEC2ERKS1_(ptr noundef nonnull align 4 dereferenceable(8) %8, ptr noundef nonnull align 4 dereferenceable(8) %3) #5
  call void @_ZN4juce5PointIfEC2ERKS1_(ptr noundef nonnull align 4 dereferenceable(8) %9, ptr noundef nonnull align 4 dereferenceable(8) %.ptr.2) #5
  call void @_ZN4juce4LineIfEC2ENS_5PointIfEES3_(ptr noundef nonnull align 4 dereferenceable(16) %7, ptr noundef nonnull %8, ptr noundef nonnull %9) #5
  %20 = call noundef float @_ZNK4juce4LineIfE9getLengthEv(ptr noundef nonnull align 4 dereferenceable(16) %7) #5
  call void @_ZN4juce4LineIfED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %7) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #5
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %10) #5
  call void @_ZN4juce4PathC1Ev(ptr noundef nonnull align 8 dereferenceable(41) %10)
  %21 = fcmp ogt float %15, 0.000000e+00
  %22 = fcmp ogt float %18, 0.000000e+00
  %or.cond = and i1 %21, %22
  br i1 %or.cond, label %23, label %26

23:                                               ; preds = %2
  invoke void @_ZN4juce4Path19addRoundedRectangleEffffff(ptr noundef nonnull align 8 dereferenceable(41) %10, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef %19, float noundef %20, float noundef %15, float noundef %18)
          to label %27 unwind label %24

24:                                               ; preds = %39, %26, %23
  %25 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4juce4PathD1Ev(ptr noundef nonnull align 8 dereferenceable(41) %10) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #5
  resume { ptr, i32 } %25

26:                                               ; preds = %2
  invoke void @_ZN4juce4Path12addRectangleEffff(ptr noundef nonnull align 8 dereferenceable(41) %10, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef %19, float noundef %20)
          to label %27 unwind label %24

27:                                               ; preds = %26, %23
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %11) #5
  %28 = load float, ptr %3, align 16, !tbaa !5
  %29 = getelementptr inbounds i8, ptr %3, i64 4
  %30 = load float, ptr %29, align 4, !tbaa !10
  %31 = load float, ptr %.ptr.1, align 8, !tbaa !5
  %32 = getelementptr inbounds i8, ptr %3, i64 12
  %33 = load float, ptr %32, align 4, !tbaa !10
  %34 = load float, ptr %.ptr.2, align 16, !tbaa !5
  %35 = getelementptr inbounds i8, ptr %3, i64 20
  %36 = load float, ptr %35, align 4, !tbaa !10
  call void @_ZN4juce15AffineTransform16fromTargetPointsEffffffffffff(ptr dead_on_unwind nonnull writable sret(%"class.juce::AffineTransform") align 4 %11, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef %28, float noundef %30, float noundef %19, float noundef 0.000000e+00, float noundef %31, float noundef %33, float noundef 0.000000e+00, float noundef %20, float noundef %34, float noundef %36) #5
  call void @_ZN4juce4Path14applyTransformERKNS_15AffineTransformE(ptr noundef nonnull align 8 dereferenceable(41) %10, ptr noundef nonnull align 4 dereferenceable(24) %11) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #5
  %37 = getelementptr inbounds i8, ptr %0, i64 248
  %38 = call noundef zeroext i1 @_ZNK4juce4PathneERKS0_(ptr noundef nonnull align 8 dereferenceable(41) %37, ptr noundef nonnull align 8 dereferenceable(41) %10) #5
  br i1 %38, label %39, label %40

39:                                               ; preds = %27
  call void @_ZN4juce4Path12swapWithPathERS0_(ptr noundef nonnull align 8 dereferenceable(41) %37, ptr noundef nonnull align 8 dereferenceable(41) %10) #5
  invoke void @_ZN4juce13DrawableShape11pathChangedEv(ptr noundef nonnull align 8 dereferenceable(552) %0)
          to label %40 unwind label %24

40:                                               ; preds = %39, %27
  call void @_ZN4juce4PathD1Ev(ptr noundef nonnull align 8 dereferenceable(41) %10) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #5
  ret void
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_ZNK4juce18RelativeCoordinate7resolveEPKNS_10Expression5ScopeE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #4 align 2

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

declare void @_ZN4juce4Path19addRoundedRectangleEffffff(ptr noundef nonnull align 8 dereferenceable(41), float noundef, float noundef, float noundef, float noundef, float noundef, float noundef) local_unnamed_addr #2

declare void @_ZN4juce4Path12addRectangleEffff(ptr noundef nonnull align 8 dereferenceable(41), float noundef, float noundef, float noundef, float noundef) local_unnamed_addr #2

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

!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, !7, i64 0}
!6 = !{!"_ZTSN4juce5PointIfEE", !7, i64 0, !7, i64 4}
!7 = !{!"float", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!6, !7, i64 4}


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