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

; 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::RelativePointPath" = type <{ %"class.juce::OwnedArray.201", i8, i8, [6 x i8] }>
%"class.juce::OwnedArray.201" = type { %"class.juce::ArrayAllocationBase.202", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.202" = type <{ %"class.juce::HeapBlock.203", i32, [4 x i8] }>
%"class.juce::HeapBlock.203" = type { ptr }
%"class.juce::RelativePointPath::ElementBase" = type <{ ptr, i32, [4 x i8] }>
%"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: noinline noreturn nounwind uwtable
declare hidden void @__clang_call_terminate(ptr noundef) #0

; 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: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK4juce10OwnedArrayINS_17RelativePointPath11ElementBaseENS_20DummyCriticalSectionEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20)) #2 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK4juce13RelativePointneERKS0_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
define dso_local noundef zeroext i1 @_ZNK4juce17RelativePointPatheqERKS0_(ptr noundef nonnull align 8 dereferenceable(26) %0, ptr noundef nonnull align 8 dereferenceable(26) %1) #3 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca i1, align 1
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  %15 = load ptr, ptr %4, align 8
  %16 = getelementptr inbounds %"class.juce::RelativePointPath", ptr %15, i32 0, i32 0
  %17 = call noundef i32 @_ZNK4juce10OwnedArrayINS_17RelativePointPath11ElementBaseENS_20DummyCriticalSectionEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20) %16) #4
  %18 = load ptr, ptr %5, align 8, !tbaa !5
  %19 = getelementptr inbounds %"class.juce::RelativePointPath", ptr %18, i32 0, i32 0
  %20 = call noundef i32 @_ZNK4juce10OwnedArrayINS_17RelativePointPath11ElementBaseENS_20DummyCriticalSectionEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20) %19) #4
  %21 = icmp ne i32 %17, %20
  br i1 %21, label %44, label %22

22:                                               ; preds = %2
  %23 = getelementptr inbounds %"class.juce::RelativePointPath", ptr %15, i32 0, i32 1
  %24 = load i8, ptr %23, align 8, !tbaa !9, !range !16, !noundef !17
  %25 = trunc i8 %24 to i1
  %26 = zext i1 %25 to i32
  %27 = load ptr, ptr %5, align 8, !tbaa !5
  %28 = getelementptr inbounds %"class.juce::RelativePointPath", ptr %27, i32 0, i32 1
  %29 = load i8, ptr %28, align 8, !tbaa !9, !range !16, !noundef !17
  %30 = trunc i8 %29 to i1
  %31 = zext i1 %30 to i32
  %32 = icmp ne i32 %26, %31
  br i1 %32, label %44, label %33

33:                                               ; preds = %22
  %34 = getelementptr inbounds %"class.juce::RelativePointPath", ptr %15, i32 0, i32 2
  %35 = load i8, ptr %34, align 1, !tbaa !18, !range !16, !noundef !17
  %36 = trunc i8 %35 to i1
  %37 = zext i1 %36 to i32
  %38 = load ptr, ptr %5, align 8, !tbaa !5
  %39 = getelementptr inbounds %"class.juce::RelativePointPath", ptr %38, i32 0, i32 2
  %40 = load i8, ptr %39, align 1, !tbaa !18, !range !16, !noundef !17
  %41 = trunc i8 %40 to i1
  %42 = zext i1 %41 to i32
  %43 = icmp ne i32 %37, %42
  br i1 %43, label %44, label %45

44:                                               ; preds = %33, %22, %2
  store i1 false, ptr %3, align 1
  br label %115

45:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  store i32 0, ptr %6, align 4, !tbaa !19
  br label %46

46:                                               ; preds = %109, %45
  %47 = load i32, ptr %6, align 4, !tbaa !19
  %48 = getelementptr inbounds %"class.juce::RelativePointPath", ptr %15, i32 0, i32 0
  %49 = call noundef i32 @_ZNK4juce10OwnedArrayINS_17RelativePointPath11ElementBaseENS_20DummyCriticalSectionEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20) %48) #4
  %50 = icmp slt i32 %47, %49
  br i1 %50, label %52, label %51

51:                                               ; preds = %46
  store i32 2, ptr %7, align 4
  br label %112

52:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  %53 = getelementptr inbounds %"class.juce::RelativePointPath", ptr %15, i32 0, i32 0
  %54 = load i32, ptr %6, align 4, !tbaa !19
  %55 = call noundef ptr @_ZNK4juce10OwnedArrayINS_17RelativePointPath11ElementBaseENS_20DummyCriticalSectionEE12getUncheckedEi(ptr noundef nonnull align 8 dereferenceable(20) %53, i32 noundef %54) #4
  store ptr %55, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  %56 = load ptr, ptr %5, align 8, !tbaa !5
  %57 = getelementptr inbounds %"class.juce::RelativePointPath", ptr %56, i32 0, i32 0
  %58 = load i32, ptr %6, align 4, !tbaa !19
  %59 = call noundef ptr @_ZNK4juce10OwnedArrayINS_17RelativePointPath11ElementBaseENS_20DummyCriticalSectionEE12getUncheckedEi(ptr noundef nonnull align 8 dereferenceable(20) %57, i32 noundef %58) #4
  store ptr %59, ptr %9, align 8, !tbaa !5
  %60 = load ptr, ptr %8, align 8, !tbaa !5
  %61 = getelementptr inbounds %"class.juce::RelativePointPath::ElementBase", ptr %60, i32 0, i32 1
  %62 = load i32, ptr %61, align 8, !tbaa !20
  %63 = load ptr, ptr %9, align 8, !tbaa !5
  %64 = getelementptr inbounds %"class.juce::RelativePointPath::ElementBase", ptr %63, i32 0, i32 1
  %65 = load i32, ptr %64, align 8, !tbaa !20
  %66 = icmp ne i32 %62, %65
  br i1 %66, label %67, label %68

67:                                               ; preds = %52
  store i1 false, ptr %3, align 1
  store i32 1, ptr %7, align 4
  br label %106

68:                                               ; preds = %52
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  %69 = load ptr, ptr %8, align 8, !tbaa !5
  %70 = load ptr, ptr %69, align 8, !tbaa !23
  %71 = getelementptr inbounds ptr, ptr %70, i64 4
  %72 = load ptr, ptr %71, align 8
  %73 = invoke noundef ptr %72(ptr noundef nonnull align 8 dereferenceable(12) %69, ptr noundef nonnull align 4 dereferenceable(4) %10)
          to label %74 unwind label %117

74:                                               ; preds = %68
  store ptr %73, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  %75 = load ptr, ptr %9, align 8, !tbaa !5
  %76 = load ptr, ptr %75, align 8, !tbaa !23
  %77 = getelementptr inbounds ptr, ptr %76, i64 4
  %78 = load ptr, ptr %77, align 8
  %79 = invoke noundef ptr %78(ptr noundef nonnull align 8 dereferenceable(12) %75, ptr noundef nonnull align 4 dereferenceable(4) %11)
          to label %80 unwind label %117

80:                                               ; preds = %74
  store ptr %79, ptr %13, align 8, !tbaa !5
  br label %81

81:                                               ; preds = %80
  br label %82

82:                                               ; preds = %81
  br label %83

83:                                               ; preds = %82
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  %84 = load i32, ptr %10, align 4, !tbaa !19
  store i32 %84, ptr %14, align 4, !tbaa !19
  br label %85

85:                                               ; preds = %101, %83
  %86 = load i32, ptr %14, align 4, !tbaa !19
  %87 = add nsw i32 %86, -1
  store i32 %87, ptr %14, align 4, !tbaa !19
  %88 = icmp sge i32 %87, 0
  br i1 %88, label %90, label %89

89:                                               ; preds = %85
  store i32 7, ptr %7, align 4
  br label %102

90:                                               ; preds = %85
  %91 = load ptr, ptr %12, align 8, !tbaa !5
  %92 = load i32, ptr %14, align 4, !tbaa !19
  %93 = sext i32 %92 to i64
  %94 = getelementptr inbounds %"class.juce::RelativePoint", ptr %91, i64 %93
  %95 = load ptr, ptr %13, align 8, !tbaa !5
  %96 = load i32, ptr %14, align 4, !tbaa !19
  %97 = sext i32 %96 to i64
  %98 = getelementptr inbounds %"class.juce::RelativePoint", ptr %95, i64 %97
  %99 = call noundef zeroext i1 @_ZNK4juce13RelativePointneERKS0_(ptr noundef nonnull align 8 dereferenceable(16) %94, ptr noundef nonnull align 8 dereferenceable(16) %98) #4
  br i1 %99, label %100, label %101

100:                                              ; preds = %90
  store i1 false, ptr %3, align 1
  store i32 1, ptr %7, align 4
  br label %102

101:                                              ; preds = %90
  br label %85, !llvm.loop !25

102:                                              ; preds = %100, %89
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  %103 = load i32, ptr %7, align 4
  switch i32 %103, label %105 [
    i32 7, label %104
  ]

104:                                              ; preds = %102
  store i32 0, ptr %7, align 4
  br label %105

105:                                              ; preds = %104, %102
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  br label %106

106:                                              ; preds = %105, %67
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  %107 = load i32, ptr %7, align 4
  switch i32 %107, label %112 [
    i32 0, label %108
  ]

108:                                              ; preds = %106
  br label %109

109:                                              ; preds = %108
  %110 = load i32, ptr %6, align 4, !tbaa !19
  %111 = add nsw i32 %110, 1
  store i32 %111, ptr %6, align 4, !tbaa !19
  br label %46, !llvm.loop !27

112:                                              ; preds = %106, %51
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  %113 = load i32, ptr %7, align 4
  switch i32 %113, label %120 [
    i32 2, label %114
    i32 1, label %115
  ]

114:                                              ; preds = %112
  store i1 true, ptr %3, align 1
  br label %115

115:                                              ; preds = %114, %112, %44
  %116 = load i1, ptr %3, align 1
  ret i1 %116

117:                                              ; preds = %74, %68
  %118 = landingpad { ptr, i32 }
          catch ptr null
  %119 = extractvalue { ptr, i32 } %118, 0
  call void @__clang_call_terminate(ptr %119) #5
  unreachable

120:                                              ; preds = %112
  unreachable
}

attributes #0 = { noinline noreturn nounwind uwtable "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 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }
attributes #5 = { noreturn 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, !15, i64 24}
!10 = !{!"_ZTSN4juce17RelativePointPathE", !11, i64 0, !15, i64 24, !15, i64 25}
!11 = !{!"_ZTSN4juce10OwnedArrayINS_17RelativePointPath11ElementBaseENS_20DummyCriticalSectionEEE", !12, i64 0, !14, i64 16}
!12 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_17RelativePointPath11ElementBaseENS_20DummyCriticalSectionEEE", !13, i64 0, !14, i64 8}
!13 = !{!"_ZTSN4juce9HeapBlockIPNS_17RelativePointPath11ElementBaseELb0EEE", !6, i64 0}
!14 = !{!"int", !7, i64 0}
!15 = !{!"bool", !7, i64 0}
!16 = !{i8 0, i8 2}
!17 = !{}
!18 = !{!10, !15, i64 25}
!19 = !{!14, !14, i64 0}
!20 = !{!21, !22, i64 8}
!21 = !{!"_ZTSN4juce17RelativePointPath11ElementBaseE", !22, i64 8}
!22 = !{!"_ZTSN4juce17RelativePointPath11ElementTypeE", !7, i64 0}
!23 = !{!24, !24, i64 0}
!24 = !{!"vtable pointer", !8, i64 0}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}
!27 = distinct !{!27, !26}


; 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::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: noinline noreturn nounwind uwtable
declare hidden void @__clang_call_terminate(ptr noundef) local_unnamed_addr #0

; 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: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK4juce10OwnedArrayINS_17RelativePointPath11ElementBaseENS_20DummyCriticalSectionEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20)) local_unnamed_addr #2 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
define dso_local noundef zeroext i1 @_ZNK4juce17RelativePointPatheqERKS0_(ptr noundef nonnull align 8 dereferenceable(26) %0, ptr noundef nonnull align 8 dereferenceable(26) %1) local_unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = tail call noundef i32 @_ZNK4juce10OwnedArrayINS_17RelativePointPath11ElementBaseENS_20DummyCriticalSectionEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20) %0) #4
  %6 = tail call noundef i32 @_ZNK4juce10OwnedArrayINS_17RelativePointPath11ElementBaseENS_20DummyCriticalSectionEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20) %1) #4
  %.not = icmp eq i32 %5, %6
  br i1 %.not, label %7, label %.thread

7:                                                ; preds = %2
  %8 = getelementptr inbounds i8, ptr %0, i64 24
  %9 = load i8, ptr %8, align 8, !tbaa !5, !range !15, !noundef !16
  %10 = getelementptr inbounds i8, ptr %1, i64 24
  %11 = load i8, ptr %10, align 8, !tbaa !5, !range !15, !noundef !16
  %.not28 = icmp eq i8 %9, %11
  br i1 %.not28, label %12, label %.thread

12:                                               ; preds = %7
  %13 = getelementptr inbounds i8, ptr %0, i64 25
  %14 = load i8, ptr %13, align 1, !tbaa !17, !range !15, !noundef !16
  %15 = getelementptr inbounds i8, ptr %1, i64 25
  %16 = load i8, ptr %15, align 1, !tbaa !17, !range !15, !noundef !16
  %.not29 = icmp eq i8 %14, %16
  br i1 %.not29, label %.preheader, label %.thread

.preheader:                                       ; preds = %12
  %17 = tail call noundef i32 @_ZNK4juce10OwnedArrayINS_17RelativePointPath11ElementBaseENS_20DummyCriticalSectionEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20) %0) #4
  %18 = icmp slt i32 %17, 1
  br i1 %18, label %.thread, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader, %47
  %.02336 = phi i32 [ %48, %47 ], [ 0, %.preheader ]
  %19 = call noundef ptr @_ZNK4juce10OwnedArrayINS_17RelativePointPath11ElementBaseENS_20DummyCriticalSectionEE12getUncheckedEi(ptr noundef nonnull align 8 dereferenceable(20) %0, i32 noundef %.02336) #4
  %20 = call noundef ptr @_ZNK4juce10OwnedArrayINS_17RelativePointPath11ElementBaseENS_20DummyCriticalSectionEE12getUncheckedEi(ptr noundef nonnull align 8 dereferenceable(20) %1, i32 noundef %.02336) #4
  %21 = getelementptr inbounds i8, ptr %19, i64 8
  %22 = load i32, ptr %21, align 8, !tbaa !18
  %23 = getelementptr inbounds i8, ptr %20, i64 8
  %24 = load i32, ptr %23, align 8, !tbaa !18
  %.not30 = icmp eq i32 %22, %24
  br i1 %.not30, label %25, label %.thread

25:                                               ; preds = %.lr.ph
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #4
  %26 = load ptr, ptr %19, align 8, !tbaa !21
  %27 = getelementptr inbounds i8, ptr %26, i64 32
  %28 = load ptr, ptr %27, align 8
  %29 = invoke noundef ptr %28(ptr noundef nonnull align 8 dereferenceable(12) %19, ptr noundef nonnull align 4 dereferenceable(4) %3)
          to label %30 unwind label %50

30:                                               ; preds = %25
  %31 = load ptr, ptr %20, align 8, !tbaa !21
  %32 = getelementptr inbounds i8, ptr %31, i64 32
  %33 = load ptr, ptr %32, align 8
  %34 = invoke noundef ptr %33(ptr noundef nonnull align 8 dereferenceable(12) %20, ptr noundef nonnull align 4 dereferenceable(4) %4)
          to label %35 unwind label %50

35:                                               ; preds = %30
  %36 = load i32, ptr %3, align 4, !tbaa !23
  %37 = zext i32 %36 to i64
  br label %38

38:                                               ; preds = %41, %35
  %indvars.iv = phi i64 [ %42, %41 ], [ %37, %35 ]
  %39 = trunc nuw i64 %indvars.iv to i32
  %40 = icmp slt i32 %39, 1
  br i1 %40, label %47, label %41

41:                                               ; preds = %38
  %42 = add nsw i64 %indvars.iv, -1
  %43 = getelementptr inbounds %"class.juce::RelativePoint", ptr %29, i64 %42
  %44 = getelementptr inbounds %"class.juce::RelativePoint", ptr %34, i64 %42
  %45 = call noundef zeroext i1 @_ZNK4juce13RelativePointneERKS0_(ptr noundef nonnull align 8 dereferenceable(16) %43, ptr noundef nonnull align 8 dereferenceable(16) %44) #4
  br i1 %45, label %46, label %38, !llvm.loop !24

46:                                               ; preds = %41
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #4
  br label %.thread

47:                                               ; preds = %38
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #4
  %48 = add nuw nsw i32 %.02336, 1
  %49 = call noundef i32 @_ZNK4juce10OwnedArrayINS_17RelativePointPath11ElementBaseENS_20DummyCriticalSectionEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20) %0) #4
  %.not40 = icmp slt i32 %48, %49
  br i1 %.not40, label %.lr.ph, label %.thread, !llvm.loop !26

.thread:                                          ; preds = %.lr.ph, %47, %.preheader, %46, %2, %7, %12
  %.4 = phi i1 [ false, %12 ], [ false, %7 ], [ false, %2 ], [ false, %46 ], [ true, %.preheader ], [ false, %.lr.ph ], [ %.not30, %47 ]
  ret i1 %.4

50:                                               ; preds = %30, %25
  %51 = landingpad { ptr, i32 }
          catch ptr null
  %52 = extractvalue { ptr, i32 } %51, 0
  call void @__clang_call_terminate(ptr %52) #5
  unreachable
}

attributes #0 = { noinline noreturn nounwind uwtable "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 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }
attributes #5 = { noreturn 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, !14, i64 24}
!6 = !{!"_ZTSN4juce17RelativePointPathE", !7, i64 0, !14, i64 24, !14, i64 25}
!7 = !{!"_ZTSN4juce10OwnedArrayINS_17RelativePointPath11ElementBaseENS_20DummyCriticalSectionEEE", !8, i64 0, !13, i64 16}
!8 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_17RelativePointPath11ElementBaseENS_20DummyCriticalSectionEEE", !9, i64 0, !13, i64 8}
!9 = !{!"_ZTSN4juce9HeapBlockIPNS_17RelativePointPath11ElementBaseELb0EEE", !10, i64 0}
!10 = !{!"any pointer", !11, i64 0}
!11 = !{!"omnipotent char", !12, i64 0}
!12 = !{!"Simple C++ TBAA"}
!13 = !{!"int", !11, i64 0}
!14 = !{!"bool", !11, i64 0}
!15 = !{i8 0, i8 2}
!16 = !{}
!17 = !{!6, !14, i64 25}
!18 = !{!19, !20, i64 8}
!19 = !{!"_ZTSN4juce17RelativePointPath11ElementBaseE", !20, i64 8}
!20 = !{!"_ZTSN4juce17RelativePointPath11ElementTypeE", !11, i64 0}
!21 = !{!22, !22, i64 0}
!22 = !{!"vtable pointer", !12, i64 0}
!23 = !{!13, !13, i64 0}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"}
!26 = distinct !{!26, !25}


; Effective O3 passes: ConstraintEliminationPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass