; 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::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::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 }
%"class.juce::ColourGradient" = type { %"class.juce::Point.35", %"class.juce::Point.35", i8, [7 x i8], %"class.juce::Array.207" }
%"class.juce::Array.207" = type { %"class.juce::ArrayAllocationBase.208", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.208" = type <{ %"class.juce::HeapBlock.209", i32, [4 x i8] }>
%"class.juce::HeapBlock.209" = type { ptr }

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

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

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

; Function Attrs: nounwind
declare noundef zeroext i1 @_ZNK4juce15AffineTransformneERKS0_(ptr noundef nonnull align 4 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(24)) #2

; Function Attrs: nounwind
declare noundef nonnull align 4 dereferenceable(24) ptr @_ZN4juce15AffineTransformaSERKS0_(ptr noundef nonnull align 4 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(24)) #2

; Function Attrs: nounwind
declare void @_ZN4juce15AffineTransformC1Ev(ptr noundef nonnull align 4 dereferenceable(24)) unnamed_addr #2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK4juce5PointIfEneES1_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef) #3 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) #2

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN4juce13DrawableShape16RelativeFillType17recalculateCoordsEPNS_10Expression5ScopeE(ptr noundef nonnull align 8 dereferenceable(96) %0, ptr noundef %1) #4 align 2 {
  %3 = alloca i1, align 1
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca %"class.juce::Point.35", align 4
  %7 = alloca %"class.juce::Point.35", align 4
  %8 = alloca %"class.juce::AffineTransform", align 4
  %9 = alloca ptr, align 8
  %10 = alloca %"class.juce::Point.35", align 4
  %11 = alloca %"class.juce::Point.35", align 4
  %12 = alloca %"class.juce::AffineTransform", align 4
  %13 = alloca %"class.juce::Point.35", align 4
  %14 = alloca %"class.juce::Point.35", align 4
  %15 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  %16 = load ptr, ptr %4, align 8
  %17 = getelementptr inbounds %"class.juce::DrawableShape::RelativeFillType", ptr %16, i32 0, i32 0
  %18 = call noundef zeroext i1 @_ZNK4juce8FillType10isGradientEv(ptr noundef nonnull align 8 dereferenceable(48) %17) #5
  br i1 %18, label %19, label %101

19:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  %20 = getelementptr inbounds %"class.juce::DrawableShape::RelativeFillType", ptr %16, i32 0, i32 1
  %21 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZNK4juce13RelativePoint7resolveEPKNS_10Expression5ScopeE(ptr dead_on_unwind writable sret(%"class.juce::Point.35") align 4 %6, ptr noundef nonnull align 8 dereferenceable(16) %20, ptr noundef %21)
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  %22 = getelementptr inbounds %"class.juce::DrawableShape::RelativeFillType", ptr %16, i32 0, i32 2
  %23 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZNK4juce13RelativePoint7resolveEPKNS_10Expression5ScopeE(ptr dead_on_unwind writable sret(%"class.juce::Point.35") align 4 %7, ptr noundef nonnull align 8 dereferenceable(16) %22, ptr noundef %23)
  call void @llvm.lifetime.start.p0(i64 24, ptr %8) #5
  call void @_ZN4juce15AffineTransformC1Ev(ptr noundef nonnull align 4 dereferenceable(24) %8) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %24 = getelementptr inbounds %"class.juce::DrawableShape::RelativeFillType", ptr %16, i32 0, i32 0
  %25 = getelementptr inbounds %"class.juce::FillType", ptr %24, i32 0, i32 1
  %26 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNK4juce13ScopedPointerINS_14ColourGradientEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %25) #5
  store ptr %26, ptr %9, align 8, !tbaa !5
  %27 = load ptr, ptr %9, align 8, !tbaa !5
  %28 = getelementptr inbounds %"class.juce::ColourGradient", ptr %27, i32 0, i32 2
  %29 = load i8, ptr %28, align 8, !tbaa !9, !range !18, !noundef !19
  %30 = trunc i8 %29 to i1
  br i1 %30, label %31, label %75

31:                                               ; preds = %19
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %32 = getelementptr inbounds %"class.juce::DrawableShape::RelativeFillType", ptr %16, i32 0, i32 3
  %33 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZNK4juce13RelativePoint7resolveEPKNS_10Expression5ScopeE(ptr dead_on_unwind writable sret(%"class.juce::Point.35") align 4 %10, ptr noundef nonnull align 8 dereferenceable(16) %32, ptr noundef %33)
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %34 = getelementptr inbounds %"class.juce::Point.35", ptr %6, i32 0, i32 0
  %35 = load float, ptr %34, align 4, !tbaa !20
  %36 = getelementptr inbounds %"class.juce::Point.35", ptr %7, i32 0, i32 1
  %37 = load float, ptr %36, align 4, !tbaa !21
  %38 = fadd float %35, %37
  %39 = getelementptr inbounds %"class.juce::Point.35", ptr %6, i32 0, i32 1
  %40 = load float, ptr %39, align 4, !tbaa !21
  %41 = fsub float %38, %40
  %42 = getelementptr inbounds %"class.juce::Point.35", ptr %6, i32 0, i32 1
  %43 = load float, ptr %42, align 4, !tbaa !21
  %44 = getelementptr inbounds %"class.juce::Point.35", ptr %6, i32 0, i32 0
  %45 = load float, ptr %44, align 4, !tbaa !20
  %46 = fadd float %43, %45
  %47 = getelementptr inbounds %"class.juce::Point.35", ptr %7, i32 0, i32 0
  %48 = load float, ptr %47, align 4, !tbaa !20
  %49 = fsub float %46, %48
  call void @_ZN4juce5PointIfEC2Eff(ptr noundef nonnull align 4 dereferenceable(8) %11, float noundef %41, float noundef %49) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr %12) #5
  %50 = getelementptr inbounds %"class.juce::Point.35", ptr %6, i32 0, i32 0
  %51 = load float, ptr %50, align 4, !tbaa !20
  %52 = getelementptr inbounds %"class.juce::Point.35", ptr %6, i32 0, i32 1
  %53 = load float, ptr %52, align 4, !tbaa !21
  %54 = getelementptr inbounds %"class.juce::Point.35", ptr %6, i32 0, i32 0
  %55 = load float, ptr %54, align 4, !tbaa !20
  %56 = getelementptr inbounds %"class.juce::Point.35", ptr %6, i32 0, i32 1
  %57 = load float, ptr %56, align 4, !tbaa !21
  %58 = getelementptr inbounds %"class.juce::Point.35", ptr %7, i32 0, i32 0
  %59 = load float, ptr %58, align 4, !tbaa !20
  %60 = getelementptr inbounds %"class.juce::Point.35", ptr %7, i32 0, i32 1
  %61 = load float, ptr %60, align 4, !tbaa !21
  %62 = getelementptr inbounds %"class.juce::Point.35", ptr %7, i32 0, i32 0
  %63 = load float, ptr %62, align 4, !tbaa !20
  %64 = getelementptr inbounds %"class.juce::Point.35", ptr %7, i32 0, i32 1
  %65 = load float, ptr %64, align 4, !tbaa !21
  %66 = getelementptr inbounds %"class.juce::Point.35", ptr %11, i32 0, i32 0
  %67 = load float, ptr %66, align 4, !tbaa !20
  %68 = getelementptr inbounds %"class.juce::Point.35", ptr %11, i32 0, i32 1
  %69 = load float, ptr %68, align 4, !tbaa !21
  %70 = getelementptr inbounds %"class.juce::Point.35", ptr %10, i32 0, i32 0
  %71 = load float, ptr %70, align 4, !tbaa !20
  %72 = getelementptr inbounds %"class.juce::Point.35", ptr %10, i32 0, i32 1
  %73 = load float, ptr %72, align 4, !tbaa !21
  call void @_ZN4juce15AffineTransform16fromTargetPointsEffffffffffff(ptr dead_on_unwind writable sret(%"class.juce::AffineTransform") align 4 %12, float noundef %51, float noundef %53, float noundef %55, float noundef %57, float noundef %59, float noundef %61, float noundef %63, float noundef %65, float noundef %67, float noundef %69, float noundef %71, float noundef %73) #5
  %74 = call noundef nonnull align 4 dereferenceable(24) ptr @_ZN4juce15AffineTransformaSERKS0_(ptr noundef nonnull align 4 dereferenceable(24) %8, ptr noundef nonnull align 4 dereferenceable(24) %12) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  br label %75

75:                                               ; preds = %31, %19
  %76 = load ptr, ptr %9, align 8, !tbaa !5
  %77 = getelementptr inbounds %"class.juce::ColourGradient", ptr %76, i32 0, i32 0
  call void @_ZN4juce5PointIfEC2ERKS1_(ptr noundef nonnull align 4 dereferenceable(8) %13, ptr noundef nonnull align 4 dereferenceable(8) %6) #5
  %78 = call noundef zeroext i1 @_ZNK4juce5PointIfEneES1_(ptr noundef nonnull align 4 dereferenceable(8) %77, ptr noundef %13) #5
  br i1 %78, label %87, label %79

79:                                               ; preds = %75
  %80 = load ptr, ptr %9, align 8, !tbaa !5
  %81 = getelementptr inbounds %"class.juce::ColourGradient", ptr %80, i32 0, i32 1
  call void @_ZN4juce5PointIfEC2ERKS1_(ptr noundef nonnull align 4 dereferenceable(8) %14, ptr noundef nonnull align 4 dereferenceable(8) %7) #5
  %82 = call noundef zeroext i1 @_ZNK4juce5PointIfEneES1_(ptr noundef nonnull align 4 dereferenceable(8) %81, ptr noundef %14) #5
  br i1 %82, label %87, label %83

83:                                               ; preds = %79
  %84 = getelementptr inbounds %"class.juce::DrawableShape::RelativeFillType", ptr %16, i32 0, i32 0
  %85 = getelementptr inbounds %"class.juce::FillType", ptr %84, i32 0, i32 3
  %86 = call noundef zeroext i1 @_ZNK4juce15AffineTransformneERKS0_(ptr noundef nonnull align 4 dereferenceable(24) %85, ptr noundef nonnull align 4 dereferenceable(24) %8) #5
  br i1 %86, label %87, label %97

87:                                               ; preds = %83, %79, %75
  %88 = load ptr, ptr %9, align 8, !tbaa !5
  %89 = getelementptr inbounds %"class.juce::ColourGradient", ptr %88, i32 0, i32 0
  %90 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZN4juce5PointIfEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(8) %89, ptr noundef nonnull align 4 dereferenceable(8) %6) #5
  %91 = load ptr, ptr %9, align 8, !tbaa !5
  %92 = getelementptr inbounds %"class.juce::ColourGradient", ptr %91, i32 0, i32 1
  %93 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZN4juce5PointIfEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(8) %92, ptr noundef nonnull align 4 dereferenceable(8) %7) #5
  %94 = getelementptr inbounds %"class.juce::DrawableShape::RelativeFillType", ptr %16, i32 0, i32 0
  %95 = getelementptr inbounds %"class.juce::FillType", ptr %94, i32 0, i32 3
  %96 = call noundef nonnull align 4 dereferenceable(24) ptr @_ZN4juce15AffineTransformaSERKS0_(ptr noundef nonnull align 4 dereferenceable(24) %95, ptr noundef nonnull align 4 dereferenceable(24) %8) #5
  store i1 true, ptr %3, align 1
  store i32 1, ptr %15, align 4
  br label %98

97:                                               ; preds = %83
  store i32 0, ptr %15, align 4
  br label %98

98:                                               ; preds = %97, %87
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  %99 = load i32, ptr %15, align 4
  switch i32 %99, label %104 [
    i32 0, label %100
    i32 1, label %102
  ]

100:                                              ; preds = %98
  br label %101

101:                                              ; preds = %100, %2
  store i1 false, ptr %3, align 1
  br label %102

102:                                              ; preds = %101, %98
  %103 = load i1, ptr %3, align 1
  ret i1 %103

104:                                              ; preds = %98
  unreachable
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK4juce8FillType10isGradientEv(ptr noundef nonnull align 8 dereferenceable(48)) #1 align 2

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 = { 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, !13, i64 16}
!10 = !{!"_ZTSN4juce14ColourGradientE", !11, i64 0, !11, i64 8, !13, i64 16, !14, i64 24}
!11 = !{!"_ZTSN4juce5PointIfEE", !12, i64 0, !12, i64 4}
!12 = !{!"float", !7, i64 0}
!13 = !{!"bool", !7, i64 0}
!14 = !{!"_ZTSN4juce5ArrayINS_14ColourGradient11ColourPointENS_20DummyCriticalSectionELi0EEE", !15, i64 0, !17, i64 16}
!15 = !{!"_ZTSN4juce19ArrayAllocationBaseINS_14ColourGradient11ColourPointENS_20DummyCriticalSectionEEE", !16, i64 0, !17, i64 8}
!16 = !{!"_ZTSN4juce9HeapBlockINS_14ColourGradient11ColourPointELb0EEE", !6, i64 0}
!17 = !{!"int", !7, i64 0}
!18 = !{i8 0, i8 2}
!19 = !{}
!20 = !{!11, !12, i64 0}
!21 = !{!11, !12, 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 }

; 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: nounwind
declare noundef zeroext i1 @_ZNK4juce15AffineTransformneERKS0_(ptr noundef nonnull align 4 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(24)) local_unnamed_addr #2

; Function Attrs: nounwind
declare noundef nonnull align 4 dereferenceable(24) ptr @_ZN4juce15AffineTransformaSERKS0_(ptr noundef nonnull align 4 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(24)) local_unnamed_addr #2

; Function Attrs: nounwind
declare void @_ZN4juce15AffineTransformC1Ev(ptr noundef nonnull align 4 dereferenceable(24)) unnamed_addr #2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK4juce5PointIfEneES1_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef) local_unnamed_addr #3 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 #2

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN4juce13DrawableShape16RelativeFillType17recalculateCoordsEPNS_10Expression5ScopeE(ptr noundef nonnull align 8 dereferenceable(96) %0, ptr noundef %1) local_unnamed_addr #4 align 2 {
  %3 = alloca %"class.juce::Point.35", align 4
  %4 = alloca %"class.juce::Point.35", align 4
  %5 = alloca %"class.juce::AffineTransform", align 4
  %6 = alloca %"class.juce::Point.35", align 4
  %7 = alloca %"class.juce::Point.35", align 4
  %8 = alloca %"class.juce::AffineTransform", align 4
  %9 = alloca %"class.juce::Point.35", align 4
  %10 = alloca %"class.juce::Point.35", align 4
  %11 = tail call noundef zeroext i1 @_ZNK4juce8FillType10isGradientEv(ptr noundef nonnull align 8 dereferenceable(48) %0) #5
  br i1 %11, label %12, label %57

12:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #5
  %13 = getelementptr inbounds i8, ptr %0, i64 48
  call void @_ZNK4juce13RelativePoint7resolveEPKNS_10Expression5ScopeE(ptr dead_on_unwind nonnull writable sret(%"class.juce::Point.35") align 4 %3, ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef %1)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #5
  %14 = getelementptr inbounds i8, ptr %0, i64 64
  call void @_ZNK4juce13RelativePoint7resolveEPKNS_10Expression5ScopeE(ptr dead_on_unwind nonnull writable sret(%"class.juce::Point.35") align 4 %4, ptr noundef nonnull align 8 dereferenceable(16) %14, ptr noundef %1)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #5
  call void @_ZN4juce15AffineTransformC1Ev(ptr noundef nonnull align 4 dereferenceable(24) %5) #5
  %15 = getelementptr inbounds i8, ptr %0, i64 8
  %16 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNK4juce13ScopedPointerINS_14ColourGradientEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %15) #5
  %17 = getelementptr inbounds i8, ptr %16, i64 16
  %18 = load i8, ptr %17, align 8, !tbaa !5, !range !17, !noundef !18
  %19 = trunc nuw i8 %18 to i1
  br i1 %19, label %20, label %43

20:                                               ; preds = %12
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #5
  %21 = getelementptr inbounds i8, ptr %0, i64 80
  call void @_ZNK4juce13RelativePoint7resolveEPKNS_10Expression5ScopeE(ptr dead_on_unwind nonnull writable sret(%"class.juce::Point.35") align 4 %6, ptr noundef nonnull align 8 dereferenceable(16) %21, ptr noundef %1)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #5
  %22 = load float, ptr %3, align 4, !tbaa !19
  %23 = getelementptr inbounds i8, ptr %4, i64 4
  %24 = load float, ptr %23, align 4, !tbaa !20
  %25 = fadd float %22, %24
  %26 = getelementptr inbounds i8, ptr %3, i64 4
  %27 = load float, ptr %26, align 4, !tbaa !20
  %28 = fsub float %25, %27
  %29 = fadd float %22, %27
  %30 = load float, ptr %4, align 4, !tbaa !19
  %31 = fsub float %29, %30
  call void @_ZN4juce5PointIfEC2Eff(ptr noundef nonnull align 4 dereferenceable(8) %7, float noundef %28, float noundef %31) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #5
  %32 = load float, ptr %3, align 4, !tbaa !19
  %33 = load float, ptr %26, align 4, !tbaa !20
  %34 = load float, ptr %4, align 4, !tbaa !19
  %35 = load float, ptr %23, align 4, !tbaa !20
  %36 = load float, ptr %7, align 4, !tbaa !19
  %37 = getelementptr inbounds i8, ptr %7, i64 4
  %38 = load float, ptr %37, align 4, !tbaa !20
  %39 = load float, ptr %6, align 4, !tbaa !19
  %40 = getelementptr inbounds i8, ptr %6, i64 4
  %41 = load float, ptr %40, align 4, !tbaa !20
  call void @_ZN4juce15AffineTransform16fromTargetPointsEffffffffffff(ptr dead_on_unwind nonnull writable sret(%"class.juce::AffineTransform") align 4 %8, float noundef %32, float noundef %33, float noundef %32, float noundef %33, float noundef %34, float noundef %35, float noundef %34, float noundef %35, float noundef %36, float noundef %38, float noundef %39, float noundef %41) #5
  %42 = call noundef nonnull align 4 dereferenceable(24) ptr @_ZN4juce15AffineTransformaSERKS0_(ptr noundef nonnull align 4 dereferenceable(24) %5, ptr noundef nonnull align 4 dereferenceable(24) %8) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  br label %43

43:                                               ; preds = %20, %12
  call void @_ZN4juce5PointIfEC2ERKS1_(ptr noundef nonnull align 4 dereferenceable(8) %9, ptr noundef nonnull align 4 dereferenceable(8) %3) #5
  %44 = call noundef zeroext i1 @_ZNK4juce5PointIfEneES1_(ptr noundef nonnull align 4 dereferenceable(8) %16, ptr noundef nonnull %9) #5
  br i1 %44, label %51, label %45

45:                                               ; preds = %43
  %46 = getelementptr inbounds i8, ptr %16, i64 8
  call void @_ZN4juce5PointIfEC2ERKS1_(ptr noundef nonnull align 4 dereferenceable(8) %10, ptr noundef nonnull align 4 dereferenceable(8) %4) #5
  %47 = call noundef zeroext i1 @_ZNK4juce5PointIfEneES1_(ptr noundef nonnull align 4 dereferenceable(8) %46, ptr noundef nonnull %10) #5
  br i1 %47, label %51, label %48

48:                                               ; preds = %45
  %49 = getelementptr inbounds i8, ptr %0, i64 24
  %50 = call noundef zeroext i1 @_ZNK4juce15AffineTransformneERKS0_(ptr noundef nonnull align 4 dereferenceable(24) %49, ptr noundef nonnull align 4 dereferenceable(24) %5) #5
  br i1 %50, label %51, label %.thread

.thread:                                          ; preds = %48
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #5
  br label %57

51:                                               ; preds = %43, %45, %48
  %52 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZN4juce5PointIfEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(8) %16, ptr noundef nonnull align 4 dereferenceable(8) %3) #5
  %53 = getelementptr inbounds i8, ptr %16, i64 8
  %54 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZN4juce5PointIfEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(8) %53, ptr noundef nonnull align 4 dereferenceable(8) %4) #5
  %55 = getelementptr inbounds i8, ptr %0, i64 24
  %56 = call noundef nonnull align 4 dereferenceable(24) ptr @_ZN4juce15AffineTransformaSERKS0_(ptr noundef nonnull align 4 dereferenceable(24) %55, ptr noundef nonnull align 4 dereferenceable(24) %5) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #5
  br label %57

57:                                               ; preds = %2, %.thread, %51
  %.1 = phi i1 [ true, %51 ], [ false, %.thread ], [ false, %2 ]
  ret i1 %.1
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK4juce8FillType10isGradientEv(ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #1 align 2

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 = { 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, !11, i64 16}
!6 = !{!"_ZTSN4juce14ColourGradientE", !7, i64 0, !7, i64 8, !11, i64 16, !12, i64 24}
!7 = !{!"_ZTSN4juce5PointIfEE", !8, i64 0, !8, i64 4}
!8 = !{!"float", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"bool", !9, i64 0}
!12 = !{!"_ZTSN4juce5ArrayINS_14ColourGradient11ColourPointENS_20DummyCriticalSectionELi0EEE", !13, i64 0, !16, i64 16}
!13 = !{!"_ZTSN4juce19ArrayAllocationBaseINS_14ColourGradient11ColourPointENS_20DummyCriticalSectionEEE", !14, i64 0, !16, i64 8}
!14 = !{!"_ZTSN4juce9HeapBlockINS_14ColourGradient11ColourPointELb0EEE", !15, i64 0}
!15 = !{!"any pointer", !9, i64 0}
!16 = !{!"int", !9, i64 0}
!17 = !{i8 0, i8 2}
!18 = !{}
!19 = !{!7, !8, i64 0}
!20 = !{!7, !8, i64 4}


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