; 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::Identifier" = type { %"class.juce::String" }
%"class.juce::String" = type { %"class.juce::CharPointer_UTF8" }
%"class.juce::CharPointer_UTF8" = 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::Point.35" = type { float, float }
%"class.juce::Line" = type { %"class.juce::Point.35", %"class.juce::Point.35" }
%"class.juce::DrawablePath::ValueTreeWrapper::Element" = type { %"class.juce::ValueTree" }
%"class.juce::ValueTree" = type { %"class.juce::ReferenceCountedObjectPtr.174", %"class.juce::ListenerList.175" }
%"class.juce::ReferenceCountedObjectPtr.174" = type { ptr }
%"class.juce::ListenerList.175" = type { %"class.juce::Array.176" }
%"class.juce::Array.176" = type { %"class.juce::ArrayAllocationBase.177", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.177" = type <{ %"class.juce::HeapBlock.178", i32, [4 x i8] }>
%"class.juce::HeapBlock.178" = type { ptr }

@_ZN4juce12DrawablePath16ValueTreeWrapper7Element13lineToElementE = external dso_local global %"class.juce::Identifier", align 8
@_ZN4juce12DrawablePath16ValueTreeWrapper7Element18quadraticToElementE = external dso_local global %"class.juce::Identifier", align 8
@_ZN4juce12DrawablePath16ValueTreeWrapper7Element14cubicToElementE = external dso_local global %"class.juce::Identifier", align 8

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: nounwind
declare void @_ZN4juce10IdentifierD1Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK4juce12DrawablePath16ValueTreeWrapper7Element15getControlPointEi(ptr dead_on_unwind noalias writable sret(%"class.juce::RelativePoint") align 8, ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) #4 align 2

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

; Function Attrs: nounwind
declare void @_ZNK4juce9ValueTree7getTypeEv(ptr dead_on_unwind writable sret(%"class.juce::Identifier") align 8, ptr noundef nonnull align 8 dereferenceable(32)) #2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK4juce12DrawablePath16ValueTreeWrapper7Element11getEndPointEv(ptr dead_on_unwind noalias writable sret(%"class.juce::RelativePoint") align 8, ptr noundef nonnull align 8 dereferenceable(32)) #4 align 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 float @_ZNK4juce12DrawablePath16ValueTreeWrapper7Element23findProportionAlongLineENS_5PointIfEEPNS_10Expression5ScopeE(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef %1, ptr noundef %2) #4 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca %"class.juce::Identifier", align 8
  %8 = alloca float, align 4
  %9 = alloca %"class.juce::RelativePoint", align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca %"class.juce::RelativePoint", align 8
  %13 = alloca %"class.juce::RelativePoint", align 8
  %14 = alloca %"class.juce::RelativePoint", align 8
  %15 = alloca [4 x %"class.juce::Point.35"], align 16
  %16 = alloca float, align 4
  %17 = alloca i32, align 4
  %18 = alloca float, align 4
  %19 = alloca %"class.juce::Point.35", align 4
  %20 = alloca float, align 4
  %21 = alloca %"class.juce::Point.35", align 4
  %22 = alloca %"class.juce::RelativePoint", align 8
  %23 = alloca %"class.juce::RelativePoint", align 8
  %24 = alloca %"class.juce::RelativePoint", align 8
  %25 = alloca [3 x %"class.juce::Point.35"], align 16
  %26 = alloca float, align 4
  %27 = alloca i32, align 4
  %28 = alloca float, align 4
  %29 = alloca %"class.juce::Point.35", align 4
  %30 = alloca float, align 4
  %31 = alloca %"class.juce::Point.35", align 4
  %32 = alloca %"class.juce::RelativePoint", align 8
  %33 = alloca %"class.juce::RelativePoint", align 8
  %34 = alloca %"class.juce::Line", align 4
  %35 = alloca %"class.juce::Point.35", align 4
  %36 = alloca %"class.juce::Point.35", align 4
  %37 = alloca %"class.juce::Point.35", align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  %38 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  %39 = getelementptr inbounds %"class.juce::DrawablePath::ValueTreeWrapper::Element", ptr %38, i32 0, i32 0
  call void @_ZNK4juce9ValueTree7getTypeEv(ptr dead_on_unwind writable sret(%"class.juce::Identifier") align 8 %7, ptr noundef nonnull align 8 dereferenceable(32) %39) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  store float 0.000000e+00, ptr %8, align 4, !tbaa !9
  %40 = call noundef zeroext i1 @_ZNK4juce10IdentifiereqERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) @_ZN4juce12DrawablePath16ValueTreeWrapper7Element14cubicToElementE) #5
  br i1 %40, label %41, label %121

41:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #5
  invoke void @_ZNK4juce12DrawablePath16ValueTreeWrapper7Element13getStartPointEv(ptr dead_on_unwind writable sret(%"class.juce::RelativePoint") align 8 %9, ptr noundef nonnull align 8 dereferenceable(32) %38)
          to label %42 unwind label %63

42:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #5
  invoke void @_ZNK4juce12DrawablePath16ValueTreeWrapper7Element15getControlPointEi(ptr dead_on_unwind writable sret(%"class.juce::RelativePoint") align 8 %12, ptr noundef nonnull align 8 dereferenceable(32) %38, i32 noundef 0)
          to label %43 unwind label %67

43:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #5
  invoke void @_ZNK4juce12DrawablePath16ValueTreeWrapper7Element15getControlPointEi(ptr dead_on_unwind writable sret(%"class.juce::RelativePoint") align 8 %13, ptr noundef nonnull align 8 dereferenceable(32) %38, i32 noundef 1)
          to label %44 unwind label %71

44:                                               ; preds = %43
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #5
  invoke void @_ZNK4juce12DrawablePath16ValueTreeWrapper7Element11getEndPointEv(ptr dead_on_unwind writable sret(%"class.juce::RelativePoint") align 8 %14, ptr noundef nonnull align 8 dereferenceable(32) %38)
          to label %45 unwind label %75

45:                                               ; preds = %44
  call void @llvm.lifetime.start.p0(i64 32, ptr %15) #5
  %46 = load ptr, ptr %6, align 8, !tbaa !5
  invoke void @_ZNK4juce13RelativePoint7resolveEPKNS_10Expression5ScopeE(ptr dead_on_unwind writable sret(%"class.juce::Point.35") align 4 %15, ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef %46)
          to label %47 unwind label %79

47:                                               ; preds = %45
  %48 = getelementptr inbounds %"class.juce::Point.35", ptr %15, i64 1
  %49 = load ptr, ptr %6, align 8, !tbaa !5
  invoke void @_ZNK4juce13RelativePoint7resolveEPKNS_10Expression5ScopeE(ptr dead_on_unwind writable sret(%"class.juce::Point.35") align 4 %48, ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef %49)
          to label %50 unwind label %79

50:                                               ; preds = %47
  %51 = getelementptr inbounds %"class.juce::Point.35", ptr %15, i64 2
  %52 = load ptr, ptr %6, align 8, !tbaa !5
  invoke void @_ZNK4juce13RelativePoint7resolveEPKNS_10Expression5ScopeE(ptr dead_on_unwind writable sret(%"class.juce::Point.35") align 4 %51, ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef %52)
          to label %53 unwind label %79

53:                                               ; preds = %50
  %54 = getelementptr inbounds %"class.juce::Point.35", ptr %15, i64 3
  %55 = load ptr, ptr %6, align 8, !tbaa !5
  invoke void @_ZNK4juce13RelativePoint7resolveEPKNS_10Expression5ScopeE(ptr dead_on_unwind writable sret(%"class.juce::Point.35") align 4 %54, ptr noundef nonnull align 8 dereferenceable(16) %14, ptr noundef %55)
          to label %56 unwind label %79

56:                                               ; preds = %53
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  %57 = call noundef float @_ZNSt14numeric_limitsIfE3maxEv() #5
  store float %57, ptr %16, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  store i32 110, ptr %17, align 4, !tbaa !11
  br label %58

58:                                               ; preds = %114, %56
  %59 = load i32, ptr %17, align 4, !tbaa !11
  %60 = add nsw i32 %59, -1
  store i32 %60, ptr %17, align 4, !tbaa !11
  %61 = icmp sge i32 %60, 0
  br i1 %61, label %83, label %62

62:                                               ; preds = %58
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  br label %115

63:                                               ; preds = %41
  %64 = landingpad { ptr, i32 }
          cleanup
  %65 = extractvalue { ptr, i32 } %64, 0
  store ptr %65, ptr %10, align 8
  %66 = extractvalue { ptr, i32 } %64, 1
  store i32 %66, ptr %11, align 4
  br label %120

67:                                               ; preds = %42
  %68 = landingpad { ptr, i32 }
          cleanup
  %69 = extractvalue { ptr, i32 } %68, 0
  store ptr %69, ptr %10, align 8
  %70 = extractvalue { ptr, i32 } %68, 1
  store i32 %70, ptr %11, align 4
  br label %119

71:                                               ; preds = %43
  %72 = landingpad { ptr, i32 }
          cleanup
  %73 = extractvalue { ptr, i32 } %72, 0
  store ptr %73, ptr %10, align 8
  %74 = extractvalue { ptr, i32 } %72, 1
  store i32 %74, ptr %11, align 4
  br label %118

75:                                               ; preds = %44
  %76 = landingpad { ptr, i32 }
          cleanup
  %77 = extractvalue { ptr, i32 } %76, 0
  store ptr %77, ptr %10, align 8
  %78 = extractvalue { ptr, i32 } %76, 1
  store i32 %78, ptr %11, align 4
  br label %117

79:                                               ; preds = %53, %50, %47, %45
  %80 = landingpad { ptr, i32 }
          cleanup
  %81 = extractvalue { ptr, i32 } %80, 0
  store ptr %81, ptr %10, align 8
  %82 = extractvalue { ptr, i32 } %80, 1
  store i32 %82, ptr %11, align 4
  br label %116

83:                                               ; preds = %58
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  %84 = load i32, ptr %17, align 4, !tbaa !11
  %85 = icmp sgt i32 %84, 10
  br i1 %85, label %86, label %91

86:                                               ; preds = %83
  %87 = load i32, ptr %17, align 4, !tbaa !11
  %88 = sub nsw i32 %87, 10
  %89 = sitofp i32 %88 to float
  %90 = fdiv float %89, 1.000000e+02
  br label %98

91:                                               ; preds = %83
  %92 = load float, ptr %8, align 4, !tbaa !9
  %93 = load i32, ptr %17, align 4, !tbaa !11
  %94 = sub nsw i32 %93, 5
  %95 = sitofp i32 %94 to float
  %96 = fdiv float %95, 1.000000e+03
  %97 = fadd float %92, %96
  br label %98

98:                                               ; preds = %91, %86
  %99 = phi float [ %90, %86 ], [ %97, %91 ]
  store float %99, ptr %18, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  %100 = load float, ptr %18, align 4, !tbaa !9
  %101 = getelementptr inbounds [4 x %"class.juce::Point.35"], ptr %15, i64 0, i64 0
  invoke void @_ZN4juce19DrawablePathHelpersL25findCubicSubdivisionPointEfPKNS_5PointIfEE(ptr dead_on_unwind writable sret(%"class.juce::Point.35") align 4 %19, float noundef %100, ptr noundef %101)
          to label %102 unwind label %110

102:                                              ; preds = %98
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #5
  call void @_ZN4juce5PointIfEC2ERKS1_(ptr noundef nonnull align 4 dereferenceable(8) %21, ptr noundef nonnull align 4 dereferenceable(8) %1) #5
  %103 = call noundef float @_ZNK4juce5PointIfE15getDistanceFromES1_(ptr noundef nonnull align 4 dereferenceable(8) %19, ptr noundef %21) #5
  store float %103, ptr %20, align 4, !tbaa !9
  %104 = load float, ptr %20, align 4, !tbaa !9
  %105 = load float, ptr %16, align 4, !tbaa !9
  %106 = fcmp olt float %104, %105
  br i1 %106, label %107, label %114

107:                                              ; preds = %102
  %108 = load float, ptr %18, align 4, !tbaa !9
  store float %108, ptr %8, align 4, !tbaa !9
  %109 = load float, ptr %20, align 4, !tbaa !9
  store float %109, ptr %16, align 4, !tbaa !9
  br label %114

110:                                              ; preds = %98
  %111 = landingpad { ptr, i32 }
          cleanup
  %112 = extractvalue { ptr, i32 } %111, 0
  store ptr %112, ptr %10, align 8
  %113 = extractvalue { ptr, i32 } %111, 1
  store i32 %113, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  br label %116

114:                                              ; preds = %107, %102
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  br label %58, !llvm.loop !13

115:                                              ; preds = %62
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #5
  call void @_ZN4juce13RelativePointD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %14) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #5
  call void @_ZN4juce13RelativePointD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %13) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #5
  call void @_ZN4juce13RelativePointD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %12) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #5
  call void @_ZN4juce13RelativePointD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #5
  br label %220

116:                                              ; preds = %110, %79
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #5
  call void @_ZN4juce13RelativePointD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %14) #5
  br label %117

117:                                              ; preds = %116, %75
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #5
  call void @_ZN4juce13RelativePointD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %13) #5
  br label %118

118:                                              ; preds = %117, %71
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #5
  call void @_ZN4juce13RelativePointD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %12) #5
  br label %119

119:                                              ; preds = %118, %67
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #5
  call void @_ZN4juce13RelativePointD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #5
  br label %120

120:                                              ; preds = %119, %63
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #5
  br label %222

121:                                              ; preds = %3
  %122 = call noundef zeroext i1 @_ZNK4juce10IdentifiereqERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) @_ZN4juce12DrawablePath16ValueTreeWrapper7Element18quadraticToElementE) #5
  br i1 %122, label %123, label %194

123:                                              ; preds = %121
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #5
  invoke void @_ZNK4juce12DrawablePath16ValueTreeWrapper7Element13getStartPointEv(ptr dead_on_unwind writable sret(%"class.juce::RelativePoint") align 8 %22, ptr noundef nonnull align 8 dereferenceable(32) %38)
          to label %124 unwind label %141

124:                                              ; preds = %123
  call void @llvm.lifetime.start.p0(i64 16, ptr %23) #5
  invoke void @_ZNK4juce12DrawablePath16ValueTreeWrapper7Element15getControlPointEi(ptr dead_on_unwind writable sret(%"class.juce::RelativePoint") align 8 %23, ptr noundef nonnull align 8 dereferenceable(32) %38, i32 noundef 0)
          to label %125 unwind label %145

125:                                              ; preds = %124
  call void @llvm.lifetime.start.p0(i64 16, ptr %24) #5
  invoke void @_ZNK4juce12DrawablePath16ValueTreeWrapper7Element11getEndPointEv(ptr dead_on_unwind writable sret(%"class.juce::RelativePoint") align 8 %24, ptr noundef nonnull align 8 dereferenceable(32) %38)
          to label %126 unwind label %149

126:                                              ; preds = %125
  call void @llvm.lifetime.start.p0(i64 24, ptr %25) #5
  %127 = load ptr, ptr %6, align 8, !tbaa !5
  invoke void @_ZNK4juce13RelativePoint7resolveEPKNS_10Expression5ScopeE(ptr dead_on_unwind writable sret(%"class.juce::Point.35") align 4 %25, ptr noundef nonnull align 8 dereferenceable(16) %22, ptr noundef %127)
          to label %128 unwind label %153

128:                                              ; preds = %126
  %129 = getelementptr inbounds %"class.juce::Point.35", ptr %25, i64 1
  %130 = load ptr, ptr %6, align 8, !tbaa !5
  invoke void @_ZNK4juce13RelativePoint7resolveEPKNS_10Expression5ScopeE(ptr dead_on_unwind writable sret(%"class.juce::Point.35") align 4 %129, ptr noundef nonnull align 8 dereferenceable(16) %23, ptr noundef %130)
          to label %131 unwind label %153

131:                                              ; preds = %128
  %132 = getelementptr inbounds %"class.juce::Point.35", ptr %25, i64 2
  %133 = load ptr, ptr %6, align 8, !tbaa !5
  invoke void @_ZNK4juce13RelativePoint7resolveEPKNS_10Expression5ScopeE(ptr dead_on_unwind writable sret(%"class.juce::Point.35") align 4 %132, ptr noundef nonnull align 8 dereferenceable(16) %24, ptr noundef %133)
          to label %134 unwind label %153

134:                                              ; preds = %131
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #5
  %135 = call noundef float @_ZNSt14numeric_limitsIfE3maxEv() #5
  store float %135, ptr %26, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #5
  store i32 110, ptr %27, align 4, !tbaa !11
  br label %136

136:                                              ; preds = %188, %134
  %137 = load i32, ptr %27, align 4, !tbaa !11
  %138 = add nsw i32 %137, -1
  store i32 %138, ptr %27, align 4, !tbaa !11
  %139 = icmp sge i32 %138, 0
  br i1 %139, label %157, label %140

140:                                              ; preds = %136
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #5
  br label %189

141:                                              ; preds = %123
  %142 = landingpad { ptr, i32 }
          cleanup
  %143 = extractvalue { ptr, i32 } %142, 0
  store ptr %143, ptr %10, align 8
  %144 = extractvalue { ptr, i32 } %142, 1
  store i32 %144, ptr %11, align 4
  br label %193

145:                                              ; preds = %124
  %146 = landingpad { ptr, i32 }
          cleanup
  %147 = extractvalue { ptr, i32 } %146, 0
  store ptr %147, ptr %10, align 8
  %148 = extractvalue { ptr, i32 } %146, 1
  store i32 %148, ptr %11, align 4
  br label %192

149:                                              ; preds = %125
  %150 = landingpad { ptr, i32 }
          cleanup
  %151 = extractvalue { ptr, i32 } %150, 0
  store ptr %151, ptr %10, align 8
  %152 = extractvalue { ptr, i32 } %150, 1
  store i32 %152, ptr %11, align 4
  br label %191

153:                                              ; preds = %131, %128, %126
  %154 = landingpad { ptr, i32 }
          cleanup
  %155 = extractvalue { ptr, i32 } %154, 0
  store ptr %155, ptr %10, align 8
  %156 = extractvalue { ptr, i32 } %154, 1
  store i32 %156, ptr %11, align 4
  br label %190

157:                                              ; preds = %136
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #5
  %158 = load i32, ptr %27, align 4, !tbaa !11
  %159 = icmp sgt i32 %158, 10
  br i1 %159, label %160, label %165

160:                                              ; preds = %157
  %161 = load i32, ptr %27, align 4, !tbaa !11
  %162 = sub nsw i32 %161, 10
  %163 = sitofp i32 %162 to float
  %164 = fdiv float %163, 1.000000e+02
  br label %172

165:                                              ; preds = %157
  %166 = load float, ptr %8, align 4, !tbaa !9
  %167 = load i32, ptr %27, align 4, !tbaa !11
  %168 = sub nsw i32 %167, 5
  %169 = sitofp i32 %168 to float
  %170 = fdiv float %169, 1.000000e+03
  %171 = fadd float %166, %170
  br label %172

172:                                              ; preds = %165, %160
  %173 = phi float [ %164, %160 ], [ %171, %165 ]
  store float %173, ptr %28, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #5
  %174 = load float, ptr %28, align 4, !tbaa !9
  %175 = getelementptr inbounds [3 x %"class.juce::Point.35"], ptr %25, i64 0, i64 0
  invoke void @_ZN4juce19DrawablePathHelpersL29findQuadraticSubdivisionPointEfPKNS_5PointIfEE(ptr dead_on_unwind writable sret(%"class.juce::Point.35") align 4 %29, float noundef %174, ptr noundef %175)
          to label %176 unwind label %184

176:                                              ; preds = %172
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #5
  call void @_ZN4juce5PointIfEC2ERKS1_(ptr noundef nonnull align 4 dereferenceable(8) %31, ptr noundef nonnull align 4 dereferenceable(8) %1) #5
  %177 = call noundef float @_ZNK4juce5PointIfE15getDistanceFromES1_(ptr noundef nonnull align 4 dereferenceable(8) %29, ptr noundef %31) #5
  store float %177, ptr %30, align 4, !tbaa !9
  %178 = load float, ptr %30, align 4, !tbaa !9
  %179 = load float, ptr %26, align 4, !tbaa !9
  %180 = fcmp olt float %178, %179
  br i1 %180, label %181, label %188

181:                                              ; preds = %176
  %182 = load float, ptr %28, align 4, !tbaa !9
  store float %182, ptr %8, align 4, !tbaa !9
  %183 = load float, ptr %30, align 4, !tbaa !9
  store float %183, ptr %26, align 4, !tbaa !9
  br label %188

184:                                              ; preds = %172
  %185 = landingpad { ptr, i32 }
          cleanup
  %186 = extractvalue { ptr, i32 } %185, 0
  store ptr %186, ptr %10, align 8
  %187 = extractvalue { ptr, i32 } %185, 1
  store i32 %187, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #5
  br label %190

188:                                              ; preds = %181, %176
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #5
  br label %136, !llvm.loop !15

189:                                              ; preds = %140
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %25) #5
  call void @_ZN4juce13RelativePointD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %24) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %24) #5
  call void @_ZN4juce13RelativePointD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %23) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #5
  call void @_ZN4juce13RelativePointD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %22) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #5
  br label %219

190:                                              ; preds = %184, %153
  call void @llvm.lifetime.end.p0(i64 24, ptr %25) #5
  call void @_ZN4juce13RelativePointD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %24) #5
  br label %191

191:                                              ; preds = %190, %149
  call void @llvm.lifetime.end.p0(i64 16, ptr %24) #5
  call void @_ZN4juce13RelativePointD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %23) #5
  br label %192

192:                                              ; preds = %191, %145
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #5
  call void @_ZN4juce13RelativePointD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %22) #5
  br label %193

193:                                              ; preds = %192, %141
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #5
  br label %222

194:                                              ; preds = %121
  %195 = call noundef zeroext i1 @_ZNK4juce10IdentifiereqERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) @_ZN4juce12DrawablePath16ValueTreeWrapper7Element13lineToElementE) #5
  br i1 %195, label %196, label %218

196:                                              ; preds = %194
  call void @llvm.lifetime.start.p0(i64 16, ptr %32) #5
  invoke void @_ZNK4juce12DrawablePath16ValueTreeWrapper7Element13getStartPointEv(ptr dead_on_unwind writable sret(%"class.juce::RelativePoint") align 8 %32, ptr noundef nonnull align 8 dereferenceable(32) %38)
          to label %197 unwind label %204

197:                                              ; preds = %196
  call void @llvm.lifetime.start.p0(i64 16, ptr %33) #5
  invoke void @_ZNK4juce12DrawablePath16ValueTreeWrapper7Element11getEndPointEv(ptr dead_on_unwind writable sret(%"class.juce::RelativePoint") align 8 %33, ptr noundef nonnull align 8 dereferenceable(32) %38)
          to label %198 unwind label %208

198:                                              ; preds = %197
  call void @llvm.lifetime.start.p0(i64 16, ptr %34) #5
  %199 = load ptr, ptr %6, align 8, !tbaa !5
  invoke void @_ZNK4juce13RelativePoint7resolveEPKNS_10Expression5ScopeE(ptr dead_on_unwind writable sret(%"class.juce::Point.35") align 4 %35, ptr noundef nonnull align 8 dereferenceable(16) %32, ptr noundef %199)
          to label %200 unwind label %212

200:                                              ; preds = %198
  %201 = load ptr, ptr %6, align 8, !tbaa !5
  invoke void @_ZNK4juce13RelativePoint7resolveEPKNS_10Expression5ScopeE(ptr dead_on_unwind writable sret(%"class.juce::Point.35") align 4 %36, ptr noundef nonnull align 8 dereferenceable(16) %33, ptr noundef %201)
          to label %202 unwind label %212

202:                                              ; preds = %200
  call void @_ZN4juce4LineIfEC2ENS_5PointIfEES3_(ptr noundef nonnull align 4 dereferenceable(16) %34, ptr noundef %35, ptr noundef %36) #5
  call void @_ZN4juce5PointIfEC2ERKS1_(ptr noundef nonnull align 4 dereferenceable(8) %37, ptr noundef nonnull align 4 dereferenceable(8) %1) #5
  %203 = call noundef float @_ZNK4juce4LineIfE33findNearestProportionalPositionToENS_5PointIfEE(ptr noundef nonnull align 4 dereferenceable(16) %34, ptr noundef %37) #5
  store float %203, ptr %8, align 4, !tbaa !9
  call void @_ZN4juce4LineIfED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %34) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %34) #5
  call void @_ZN4juce13RelativePointD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %33) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %33) #5
  call void @_ZN4juce13RelativePointD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %32) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %32) #5
  br label %218

204:                                              ; preds = %196
  %205 = landingpad { ptr, i32 }
          cleanup
  %206 = extractvalue { ptr, i32 } %205, 0
  store ptr %206, ptr %10, align 8
  %207 = extractvalue { ptr, i32 } %205, 1
  store i32 %207, ptr %11, align 4
  br label %217

208:                                              ; preds = %197
  %209 = landingpad { ptr, i32 }
          cleanup
  %210 = extractvalue { ptr, i32 } %209, 0
  store ptr %210, ptr %10, align 8
  %211 = extractvalue { ptr, i32 } %209, 1
  store i32 %211, ptr %11, align 4
  br label %216

212:                                              ; preds = %200, %198
  %213 = landingpad { ptr, i32 }
          cleanup
  %214 = extractvalue { ptr, i32 } %213, 0
  store ptr %214, ptr %10, align 8
  %215 = extractvalue { ptr, i32 } %213, 1
  store i32 %215, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %34) #5
  call void @_ZN4juce13RelativePointD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %33) #5
  br label %216

216:                                              ; preds = %212, %208
  call void @llvm.lifetime.end.p0(i64 16, ptr %33) #5
  call void @_ZN4juce13RelativePointD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %32) #5
  br label %217

217:                                              ; preds = %216, %204
  call void @llvm.lifetime.end.p0(i64 16, ptr %32) #5
  br label %222

218:                                              ; preds = %202, %194
  br label %219

219:                                              ; preds = %218, %189
  br label %220

220:                                              ; preds = %219, %115
  %221 = load float, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @_ZN4juce10IdentifierD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  ret float %221

222:                                              ; preds = %217, %193, %120
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @_ZN4juce10IdentifierD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  br label %223

223:                                              ; preds = %222
  %224 = load ptr, ptr %10, align 8
  %225 = load i32, ptr %11, align 4
  %226 = insertvalue { ptr, i32 } poison, ptr %224, 0
  %227 = insertvalue { ptr, i32 } %226, i32 %225, 1
  resume { ptr, i32 } %227
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_ZNSt14numeric_limitsIfE3maxEv() #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZN4juce19DrawablePathHelpersL25findCubicSubdivisionPointEfPKNS_5PointIfEE(ptr dead_on_unwind noalias writable sret(%"class.juce::Point.35") align 4, float noundef, ptr noundef) #1

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZN4juce19DrawablePathHelpersL29findQuadraticSubdivisionPointEfPKNS_5PointIfEE(ptr dead_on_unwind noalias writable sret(%"class.juce::Point.35") align 4, float noundef, ptr noundef) #1

; 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 noundef float @_ZNK4juce4LineIfE33findNearestProportionalPositionToENS_5PointIfEE(ptr noundef nonnull align 4 dereferenceable(16), ptr noundef) #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

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, !10, i64 0}
!10 = !{!"float", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}


; 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::Identifier" = type { %"class.juce::String" }
%"class.juce::String" = type { %"class.juce::CharPointer_UTF8" }
%"class.juce::CharPointer_UTF8" = 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::Point.35" = type { float, float }
%"class.juce::Line" = type { %"class.juce::Point.35", %"class.juce::Point.35" }

@_ZN4juce12DrawablePath16ValueTreeWrapper7Element13lineToElementE = external dso_local global %"class.juce::Identifier", align 8
@_ZN4juce12DrawablePath16ValueTreeWrapper7Element18quadraticToElementE = external dso_local global %"class.juce::Identifier", align 8
@_ZN4juce12DrawablePath16ValueTreeWrapper7Element14cubicToElementE = external dso_local global %"class.juce::Identifier", align 8

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: nounwind
declare void @_ZN4juce10IdentifierD1Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #2

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

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

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

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

; Function Attrs: nounwind
declare void @_ZNK4juce9ValueTree7getTypeEv(ptr dead_on_unwind writable sret(%"class.juce::Identifier") align 8, ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK4juce12DrawablePath16ValueTreeWrapper7Element11getEndPointEv(ptr dead_on_unwind noalias writable sret(%"class.juce::RelativePoint") align 8, ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #4 align 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 float @_ZNK4juce12DrawablePath16ValueTreeWrapper7Element23findProportionAlongLineENS_5PointIfEEPNS_10Expression5ScopeE(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef %1, ptr noundef %2) local_unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.juce::Identifier", align 8
  %5 = alloca %"class.juce::RelativePoint", align 8
  %6 = alloca %"class.juce::RelativePoint", align 8
  %7 = alloca %"class.juce::RelativePoint", align 8
  %8 = alloca %"class.juce::RelativePoint", align 8
  %9 = alloca [4 x %"class.juce::Point.35"], align 16
  %10 = alloca %"class.juce::Point.35", align 4
  %11 = alloca %"class.juce::Point.35", align 4
  %12 = alloca %"class.juce::RelativePoint", align 8
  %13 = alloca %"class.juce::RelativePoint", align 8
  %14 = alloca %"class.juce::RelativePoint", align 8
  %15 = alloca [3 x %"class.juce::Point.35"], align 16
  %16 = alloca %"class.juce::Point.35", align 4
  %17 = alloca %"class.juce::Point.35", align 4
  %18 = alloca %"class.juce::RelativePoint", align 8
  %19 = alloca %"class.juce::RelativePoint", align 8
  %20 = alloca %"class.juce::Line", align 4
  %21 = alloca %"class.juce::Point.35", align 4
  %22 = alloca %"class.juce::Point.35", align 4
  %23 = alloca %"class.juce::Point.35", align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #5
  call void @_ZNK4juce9ValueTree7getTypeEv(ptr dead_on_unwind nonnull writable sret(%"class.juce::Identifier") align 8 %4, ptr noundef nonnull align 8 dereferenceable(32) %0) #5
  %24 = call noundef zeroext i1 @_ZNK4juce10IdentifiereqERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) @_ZN4juce12DrawablePath16ValueTreeWrapper7Element14cubicToElementE) #5
  br i1 %24, label %25, label %70

25:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #5
  invoke void @_ZNK4juce12DrawablePath16ValueTreeWrapper7Element13getStartPointEv(ptr dead_on_unwind nonnull writable sret(%"class.juce::RelativePoint") align 8 %5, ptr noundef nonnull align 8 dereferenceable(32) %0)
          to label %26 unwind label %39

26:                                               ; preds = %25
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #5
  invoke void @_ZNK4juce12DrawablePath16ValueTreeWrapper7Element15getControlPointEi(ptr dead_on_unwind nonnull writable sret(%"class.juce::RelativePoint") align 8 %6, ptr noundef nonnull align 8 dereferenceable(32) %0, i32 noundef 0)
          to label %27 unwind label %41

27:                                               ; preds = %26
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #5
  invoke void @_ZNK4juce12DrawablePath16ValueTreeWrapper7Element15getControlPointEi(ptr dead_on_unwind nonnull writable sret(%"class.juce::RelativePoint") align 8 %7, ptr noundef nonnull align 8 dereferenceable(32) %0, i32 noundef 1)
          to label %28 unwind label %43

28:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #5
  invoke void @_ZNK4juce12DrawablePath16ValueTreeWrapper7Element11getEndPointEv(ptr dead_on_unwind nonnull writable sret(%"class.juce::RelativePoint") align 8 %8, ptr noundef nonnull align 8 dereferenceable(32) %0)
          to label %29 unwind label %45

29:                                               ; preds = %28
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %9) #5
  invoke void @_ZNK4juce13RelativePoint7resolveEPKNS_10Expression5ScopeE(ptr dead_on_unwind nonnull writable sret(%"class.juce::Point.35") align 4 %9, ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef %2)
          to label %30 unwind label %47

30:                                               ; preds = %29
  %31 = getelementptr inbounds i8, ptr %9, i64 8
  invoke void @_ZNK4juce13RelativePoint7resolveEPKNS_10Expression5ScopeE(ptr dead_on_unwind nonnull writable sret(%"class.juce::Point.35") align 4 %31, ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef %2)
          to label %32 unwind label %47

32:                                               ; preds = %30
  %33 = getelementptr inbounds i8, ptr %9, i64 16
  invoke void @_ZNK4juce13RelativePoint7resolveEPKNS_10Expression5ScopeE(ptr dead_on_unwind nonnull writable sret(%"class.juce::Point.35") align 4 %33, ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef %2)
          to label %34 unwind label %47

34:                                               ; preds = %32
  %35 = getelementptr inbounds i8, ptr %9, i64 24
  invoke void @_ZNK4juce13RelativePoint7resolveEPKNS_10Expression5ScopeE(ptr dead_on_unwind nonnull writable sret(%"class.juce::Point.35") align 4 %35, ptr noundef nonnull align 8 dereferenceable(16) %8, ptr noundef %2)
          to label %36 unwind label %47

36:                                               ; preds = %34
  %37 = call noundef float @_ZNSt14numeric_limitsIfE3maxEv() #5
  br label %49

38:                                               ; preds = %61
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #5
  call void @_ZN4juce13RelativePointD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %8) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #5
  call void @_ZN4juce13RelativePointD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %7) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #5
  call void @_ZN4juce13RelativePointD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #5
  call void @_ZN4juce13RelativePointD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #5
  br label %127

39:                                               ; preds = %25
  %40 = landingpad { ptr, i32 }
          cleanup
  br label %69

41:                                               ; preds = %26
  %42 = landingpad { ptr, i32 }
          cleanup
  br label %68

43:                                               ; preds = %27
  %44 = landingpad { ptr, i32 }
          cleanup
  br label %67

45:                                               ; preds = %28
  %46 = landingpad { ptr, i32 }
          cleanup
  br label %66

47:                                               ; preds = %34, %32, %30, %29
  %48 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #5
  call void @_ZN4juce13RelativePointD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %8) #5
  br label %66

49:                                               ; preds = %36, %61
  %50 = phi i32 [ 109, %36 ], [ %65, %61 ]
  %.074 = phi float [ 0.000000e+00, %36 ], [ %.1, %61 ]
  %.05073 = phi float [ %37, %36 ], [ %.151, %61 ]
  %.05272 = phi i32 [ 110, %36 ], [ %50, %61 ]
  %51 = icmp ugt i32 %.05272, 11
  br i1 %51, label %52, label %56

52:                                               ; preds = %49
  %53 = add nsw i32 %.05272, -11
  %54 = uitofp nneg i32 %53 to float
  %55 = fdiv float %54, 1.000000e+02
  br label %61

56:                                               ; preds = %49
  %57 = add nsw i32 %.05272, -6
  %58 = sitofp i32 %57 to float
  %59 = fdiv float %58, 1.000000e+03
  %60 = fadd float %.074, %59
  br label %61

61:                                               ; preds = %56, %52
  %62 = phi float [ %55, %52 ], [ %60, %56 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #5
  call void @_ZN4juce19DrawablePathHelpersL25findCubicSubdivisionPointEfPKNS_5PointIfEE(ptr dead_on_unwind nonnull writable sret(%"class.juce::Point.35") align 4 %10, float noundef %62, ptr noundef nonnull %9)
  call void @_ZN4juce5PointIfEC2ERKS1_(ptr noundef nonnull align 4 dereferenceable(8) %11, ptr noundef nonnull align 4 dereferenceable(8) %1) #5
  %63 = call noundef float @_ZNK4juce5PointIfE15getDistanceFromES1_(ptr noundef nonnull align 4 dereferenceable(8) %10, ptr noundef nonnull %11) #5
  %64 = fcmp olt float %63, %.05073
  %.151 = select i1 %64, float %63, float %.05073
  %.1 = select i1 %64, float %62, float %.074
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #5
  %65 = add nsw i32 %50, -1
  %.not75 = icmp eq i32 %50, 0
  br i1 %.not75, label %38, label %49, !llvm.loop !5

66:                                               ; preds = %47, %45
  %.pn63 = phi { ptr, i32 } [ %48, %47 ], [ %46, %45 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #5
  call void @_ZN4juce13RelativePointD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %7) #5
  br label %67

67:                                               ; preds = %66, %43
  %.pn63.pn = phi { ptr, i32 } [ %.pn63, %66 ], [ %44, %43 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #5
  call void @_ZN4juce13RelativePointD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #5
  br label %68

68:                                               ; preds = %67, %41
  %.pn63.pn.pn = phi { ptr, i32 } [ %.pn63.pn, %67 ], [ %42, %41 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #5
  call void @_ZN4juce13RelativePointD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #5
  br label %69

69:                                               ; preds = %68, %39
  %.pn63.pn.pn.pn = phi { ptr, i32 } [ %.pn63.pn.pn, %68 ], [ %40, %39 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #5
  br label %128

70:                                               ; preds = %3
  %71 = call noundef zeroext i1 @_ZNK4juce10IdentifiereqERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) @_ZN4juce12DrawablePath16ValueTreeWrapper7Element18quadraticToElementE) #5
  br i1 %71, label %72, label %111

72:                                               ; preds = %70
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #5
  invoke void @_ZNK4juce12DrawablePath16ValueTreeWrapper7Element13getStartPointEv(ptr dead_on_unwind nonnull writable sret(%"class.juce::RelativePoint") align 8 %12, ptr noundef nonnull align 8 dereferenceable(32) %0)
          to label %73 unwind label %83

73:                                               ; preds = %72
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #5
  invoke void @_ZNK4juce12DrawablePath16ValueTreeWrapper7Element15getControlPointEi(ptr dead_on_unwind nonnull writable sret(%"class.juce::RelativePoint") align 8 %13, ptr noundef nonnull align 8 dereferenceable(32) %0, i32 noundef 0)
          to label %74 unwind label %85

74:                                               ; preds = %73
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %14) #5
  invoke void @_ZNK4juce12DrawablePath16ValueTreeWrapper7Element11getEndPointEv(ptr dead_on_unwind nonnull writable sret(%"class.juce::RelativePoint") align 8 %14, ptr noundef nonnull align 8 dereferenceable(32) %0)
          to label %75 unwind label %87

75:                                               ; preds = %74
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %15) #5
  invoke void @_ZNK4juce13RelativePoint7resolveEPKNS_10Expression5ScopeE(ptr dead_on_unwind nonnull writable sret(%"class.juce::Point.35") align 4 %15, ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef %2)
          to label %76 unwind label %89

76:                                               ; preds = %75
  %77 = getelementptr inbounds i8, ptr %15, i64 8
  invoke void @_ZNK4juce13RelativePoint7resolveEPKNS_10Expression5ScopeE(ptr dead_on_unwind nonnull writable sret(%"class.juce::Point.35") align 4 %77, ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef %2)
          to label %78 unwind label %89

78:                                               ; preds = %76
  %79 = getelementptr inbounds i8, ptr %15, i64 16
  invoke void @_ZNK4juce13RelativePoint7resolveEPKNS_10Expression5ScopeE(ptr dead_on_unwind nonnull writable sret(%"class.juce::Point.35") align 4 %79, ptr noundef nonnull align 8 dereferenceable(16) %14, ptr noundef %2)
          to label %80 unwind label %89

80:                                               ; preds = %78
  %81 = call noundef float @_ZNSt14numeric_limitsIfE3maxEv() #5
  br label %91

82:                                               ; preds = %103
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %15) #5
  call void @_ZN4juce13RelativePointD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %14) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #5
  call void @_ZN4juce13RelativePointD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %13) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #5
  call void @_ZN4juce13RelativePointD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %12) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #5
  br label %127

83:                                               ; preds = %72
  %84 = landingpad { ptr, i32 }
          cleanup
  br label %110

85:                                               ; preds = %73
  %86 = landingpad { ptr, i32 }
          cleanup
  br label %109

87:                                               ; preds = %74
  %88 = landingpad { ptr, i32 }
          cleanup
  br label %108

89:                                               ; preds = %78, %76, %75
  %90 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %15) #5
  call void @_ZN4juce13RelativePointD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %14) #5
  br label %108

91:                                               ; preds = %80, %103
  %92 = phi i32 [ 109, %80 ], [ %107, %103 ]
  %.271 = phi float [ 0.000000e+00, %80 ], [ %.3, %103 ]
  %.03770 = phi i32 [ 110, %80 ], [ %92, %103 ]
  %.03869 = phi float [ %81, %80 ], [ %.139, %103 ]
  %93 = icmp ugt i32 %.03770, 11
  br i1 %93, label %94, label %98

94:                                               ; preds = %91
  %95 = add nsw i32 %.03770, -11
  %96 = uitofp nneg i32 %95 to float
  %97 = fdiv float %96, 1.000000e+02
  br label %103

98:                                               ; preds = %91
  %99 = add nsw i32 %.03770, -6
  %100 = sitofp i32 %99 to float
  %101 = fdiv float %100, 1.000000e+03
  %102 = fadd float %.271, %101
  br label %103

103:                                              ; preds = %98, %94
  %104 = phi float [ %97, %94 ], [ %102, %98 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #5
  call void @_ZN4juce19DrawablePathHelpersL29findQuadraticSubdivisionPointEfPKNS_5PointIfEE(ptr dead_on_unwind nonnull writable sret(%"class.juce::Point.35") align 4 %16, float noundef %104, ptr noundef nonnull %15)
  call void @_ZN4juce5PointIfEC2ERKS1_(ptr noundef nonnull align 4 dereferenceable(8) %17, ptr noundef nonnull align 4 dereferenceable(8) %1) #5
  %105 = call noundef float @_ZNK4juce5PointIfE15getDistanceFromES1_(ptr noundef nonnull align 4 dereferenceable(8) %16, ptr noundef nonnull %17) #5
  %106 = fcmp olt float %105, %.03869
  %.139 = select i1 %106, float %105, float %.03869
  %.3 = select i1 %106, float %104, float %.271
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #5
  %107 = add nsw i32 %92, -1
  %.not = icmp eq i32 %92, 0
  br i1 %.not, label %82, label %91, !llvm.loop !7

108:                                              ; preds = %89, %87
  %.pn59 = phi { ptr, i32 } [ %90, %89 ], [ %88, %87 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #5
  call void @_ZN4juce13RelativePointD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %13) #5
  br label %109

109:                                              ; preds = %108, %85
  %.pn59.pn = phi { ptr, i32 } [ %.pn59, %108 ], [ %86, %85 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #5
  call void @_ZN4juce13RelativePointD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %12) #5
  br label %110

110:                                              ; preds = %109, %83
  %.pn59.pn.pn = phi { ptr, i32 } [ %.pn59.pn, %109 ], [ %84, %83 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #5
  br label %128

111:                                              ; preds = %70
  %112 = call noundef zeroext i1 @_ZNK4juce10IdentifiereqERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) @_ZN4juce12DrawablePath16ValueTreeWrapper7Element13lineToElementE) #5
  br i1 %112, label %113, label %127

113:                                              ; preds = %111
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %18) #5
  invoke void @_ZNK4juce12DrawablePath16ValueTreeWrapper7Element13getStartPointEv(ptr dead_on_unwind nonnull writable sret(%"class.juce::RelativePoint") align 8 %18, ptr noundef nonnull align 8 dereferenceable(32) %0)
          to label %114 unwind label %119

114:                                              ; preds = %113
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %19) #5
  invoke void @_ZNK4juce12DrawablePath16ValueTreeWrapper7Element11getEndPointEv(ptr dead_on_unwind nonnull writable sret(%"class.juce::RelativePoint") align 8 %19, ptr noundef nonnull align 8 dereferenceable(32) %0)
          to label %115 unwind label %121

115:                                              ; preds = %114
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %20) #5
  invoke void @_ZNK4juce13RelativePoint7resolveEPKNS_10Expression5ScopeE(ptr dead_on_unwind nonnull writable sret(%"class.juce::Point.35") align 4 %21, ptr noundef nonnull align 8 dereferenceable(16) %18, ptr noundef %2)
          to label %116 unwind label %123

116:                                              ; preds = %115
  invoke void @_ZNK4juce13RelativePoint7resolveEPKNS_10Expression5ScopeE(ptr dead_on_unwind nonnull writable sret(%"class.juce::Point.35") align 4 %22, ptr noundef nonnull align 8 dereferenceable(16) %19, ptr noundef %2)
          to label %117 unwind label %123

117:                                              ; preds = %116
  call void @_ZN4juce4LineIfEC2ENS_5PointIfEES3_(ptr noundef nonnull align 4 dereferenceable(16) %20, ptr noundef nonnull %21, ptr noundef nonnull %22) #5
  call void @_ZN4juce5PointIfEC2ERKS1_(ptr noundef nonnull align 4 dereferenceable(8) %23, ptr noundef nonnull align 4 dereferenceable(8) %1) #5
  %118 = call noundef float @_ZNK4juce4LineIfE33findNearestProportionalPositionToENS_5PointIfEE(ptr noundef nonnull align 4 dereferenceable(16) %20, ptr noundef nonnull %23) #5
  call void @_ZN4juce4LineIfED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %20) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %20) #5
  call void @_ZN4juce13RelativePointD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %19) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %19) #5
  call void @_ZN4juce13RelativePointD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %18) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %18) #5
  br label %127

119:                                              ; preds = %113
  %120 = landingpad { ptr, i32 }
          cleanup
  br label %126

121:                                              ; preds = %114
  %122 = landingpad { ptr, i32 }
          cleanup
  br label %125

123:                                              ; preds = %116, %115
  %124 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %20) #5
  call void @_ZN4juce13RelativePointD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %19) #5
  br label %125

125:                                              ; preds = %123, %121
  %.pn = phi { ptr, i32 } [ %124, %123 ], [ %122, %121 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %19) #5
  call void @_ZN4juce13RelativePointD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %18) #5
  br label %126

126:                                              ; preds = %125, %119
  %.pn.pn = phi { ptr, i32 } [ %.pn, %125 ], [ %120, %119 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %18) #5
  br label %128

127:                                              ; preds = %82, %117, %111, %38
  %.4 = phi float [ %.1, %38 ], [ %.3, %82 ], [ %118, %117 ], [ 0.000000e+00, %111 ]
  call void @_ZN4juce10IdentifierD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %4) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #5
  ret float %.4

128:                                              ; preds = %126, %110, %69
  %.pn63.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn63.pn.pn.pn, %69 ], [ %.pn59.pn.pn, %110 ], [ %.pn.pn, %126 ]
  call void @_ZN4juce10IdentifierD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %4) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #5
  resume { ptr, i32 } %.pn63.pn.pn.pn.pn
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_ZNSt14numeric_limitsIfE3maxEv() local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZN4juce19DrawablePathHelpersL25findCubicSubdivisionPointEfPKNS_5PointIfEE(ptr dead_on_unwind noalias writable sret(%"class.juce::Point.35") align 4, float noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZN4juce19DrawablePathHelpersL29findQuadraticSubdivisionPointEfPKNS_5PointIfEE(ptr dead_on_unwind noalias writable sret(%"class.juce::Point.35") align 4, float noundef, ptr noundef) local_unnamed_addr #1

; 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 noundef float @_ZNK4juce4LineIfE33findNearestProportionalPositionToENS_5PointIfEE(ptr noundef nonnull align 4 dereferenceable(16), ptr noundef) local_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

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 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = distinct !{!7, !6}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,LCSSAPass,LoopRotatePass,LoopUnrollPass,SROAPass,SimplifyCFGPass