; 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::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 }
%"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::DrawablePath::ValueTreeWrapper::Element" = type { %"class.juce::ValueTree" }
%"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::Drawable::ValueTreeWrapperBase" = type { %"class.juce::ValueTree" }

@_ZN4juce13DrawableShape18FillAndStrokeState4pathE = external dso_local global %"class.juce::Identifier", align 8
@_ZN4juce12DrawablePath16ValueTreeWrapper7Element19startSubPathElementE = external dso_local global %"class.juce::Identifier", align 8
@_ZN4juce12DrawablePath16ValueTreeWrapper7Element19closeSubPathElementE = external dso_local global %"class.juce::Identifier", align 8
@_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: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 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: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) #2

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

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

declare void @_ZNK4juce9ValueTree16getChildWithNameERKNS_10IdentifierE(ptr dead_on_unwind writable sret(%"class.juce::ValueTree") align 8, ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(8)) #5

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK4juce12DrawablePath16ValueTreeWrapper18usesNonZeroWindingEv(ptr noundef nonnull align 8 dereferenceable(32)) #6 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK4juce12DrawablePath16ValueTreeWrapper7writeToERNS_17RelativePointPathE(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull align 8 dereferenceable(26) %1) #7 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca [3 x %"class.juce::RelativePoint"], align 16
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca %"class.juce::ValueTree", align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca %"class.juce::DrawablePath::ValueTreeWrapper::Element", align 8
  %13 = alloca %"class.juce::ValueTree", align 8
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca %"class.juce::RelativePoint", align 8
  %17 = alloca ptr, align 8
  %18 = alloca %"class.juce::Identifier", align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %19 = load ptr, ptr %3, align 8
  %20 = call noundef zeroext i1 @_ZNK4juce12DrawablePath16ValueTreeWrapper18usesNonZeroWindingEv(ptr noundef nonnull align 8 dereferenceable(32) %19)
  %21 = load ptr, ptr %4, align 8, !tbaa !5
  %22 = getelementptr inbounds %"class.juce::RelativePointPath", ptr %21, i32 0, i32 1
  %23 = zext i1 %20 to i8
  store i8 %23, ptr %22, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 48, ptr %5) #8
  %24 = getelementptr inbounds [3 x %"class.juce::RelativePoint"], ptr %5, i32 0, i32 0
  %25 = getelementptr inbounds %"class.juce::RelativePoint", ptr %24, i64 3
  br label %26

26:                                               ; preds = %28, %2
  %27 = phi ptr [ %24, %2 ], [ %29, %28 ]
  invoke void @_ZN4juce13RelativePointC1Ev(ptr noundef nonnull align 8 dereferenceable(16) %27)
          to label %28 unwind label %40

28:                                               ; preds = %26
  %29 = getelementptr inbounds %"class.juce::RelativePoint", ptr %27, i64 1
  %30 = icmp eq ptr %29, %25
  br i1 %30, label %31, label %26

31:                                               ; preds = %28
  call void @llvm.lifetime.start.p0(i64 32, ptr %8) #8
  %32 = getelementptr inbounds %"class.juce::Drawable::ValueTreeWrapperBase", ptr %19, i32 0, i32 0
  invoke void @_ZNK4juce9ValueTree16getChildWithNameERKNS_10IdentifierE(ptr dead_on_unwind writable sret(%"class.juce::ValueTree") align 8 %8, ptr noundef nonnull align 8 dereferenceable(32) %32, ptr noundef nonnull align 8 dereferenceable(8) @_ZN4juce13DrawableShape18FillAndStrokeState4pathE)
          to label %33 unwind label %50

33:                                               ; preds = %31
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #8
  %34 = call noundef i32 @_ZNK4juce9ValueTree14getNumChildrenEv(ptr noundef nonnull align 8 dereferenceable(32) %8) #8
  store i32 %34, ptr %9, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #8
  store i32 0, ptr %10, align 4, !tbaa !16
  br label %35

35:                                               ; preds = %160, %33
  %36 = load i32, ptr %10, align 4, !tbaa !16
  %37 = load i32, ptr %9, align 4, !tbaa !16
  %38 = icmp slt i32 %36, %37
  br i1 %38, label %54, label %39

39:                                               ; preds = %35
  store i32 2, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #8
  br label %166

40:                                               ; preds = %26
  %41 = landingpad { ptr, i32 }
          cleanup
  %42 = extractvalue { ptr, i32 } %41, 0
  store ptr %42, ptr %6, align 8
  %43 = extractvalue { ptr, i32 } %41, 1
  store i32 %43, ptr %7, align 4
  %44 = icmp eq ptr %24, %27
  br i1 %44, label %49, label %45

45:                                               ; preds = %45, %40
  %46 = phi ptr [ %27, %40 ], [ %47, %45 ]
  %47 = getelementptr inbounds %"class.juce::RelativePoint", ptr %46, i64 -1
  call void @_ZN4juce13RelativePointD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %47) #8
  %48 = icmp eq ptr %47, %24
  br i1 %48, label %49, label %45

49:                                               ; preds = %45, %40
  br label %182

50:                                               ; preds = %31
  %51 = landingpad { ptr, i32 }
          cleanup
  %52 = extractvalue { ptr, i32 } %51, 0
  store ptr %52, ptr %6, align 8
  %53 = extractvalue { ptr, i32 } %51, 1
  store i32 %53, ptr %7, align 4
  br label %174

54:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 32, ptr %12) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr %13) #8
  %55 = load i32, ptr %10, align 4, !tbaa !16
  invoke void @_ZNK4juce9ValueTree8getChildEi(ptr dead_on_unwind writable sret(%"class.juce::ValueTree") align 8 %13, ptr noundef nonnull align 8 dereferenceable(32) %8, i32 noundef %55)
          to label %56 unwind label %64

56:                                               ; preds = %54
  invoke void @_ZN4juce12DrawablePath16ValueTreeWrapper7ElementC1ERKNS_9ValueTreeE(ptr noundef nonnull align 8 dereferenceable(32) %12, ptr noundef nonnull align 8 dereferenceable(32) %13)
          to label %57 unwind label %68

57:                                               ; preds = %56
  call void @_ZN4juce9ValueTreeD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %13) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #8
  %58 = call noundef i32 @_ZNK4juce12DrawablePath16ValueTreeWrapper7Element19getNumControlPointsEv(ptr noundef nonnull align 8 dereferenceable(32) %12) #8
  store i32 %58, ptr %14, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #8
  store i32 0, ptr %15, align 4, !tbaa !16
  br label %59

59:                                               ; preds = %80, %57
  %60 = load i32, ptr %15, align 4, !tbaa !16
  %61 = load i32, ptr %14, align 4, !tbaa !16
  %62 = icmp slt i32 %60, %61
  br i1 %62, label %73, label %63

63:                                               ; preds = %59
  store i32 5, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #8
  br label %87

64:                                               ; preds = %54
  %65 = landingpad { ptr, i32 }
          cleanup
  %66 = extractvalue { ptr, i32 } %65, 0
  store ptr %66, ptr %6, align 8
  %67 = extractvalue { ptr, i32 } %65, 1
  store i32 %67, ptr %7, align 4
  br label %72

68:                                               ; preds = %56
  %69 = landingpad { ptr, i32 }
          cleanup
  %70 = extractvalue { ptr, i32 } %69, 0
  store ptr %70, ptr %6, align 8
  %71 = extractvalue { ptr, i32 } %69, 1
  store i32 %71, ptr %7, align 4
  call void @_ZN4juce9ValueTreeD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #8
  br label %72

72:                                               ; preds = %68, %64
  call void @llvm.lifetime.end.p0(i64 32, ptr %13) #8
  br label %165

73:                                               ; preds = %59
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #8
  %74 = load i32, ptr %15, align 4, !tbaa !16
  invoke void @_ZNK4juce12DrawablePath16ValueTreeWrapper7Element15getControlPointEi(ptr dead_on_unwind writable sret(%"class.juce::RelativePoint") align 8 %16, ptr noundef nonnull align 8 dereferenceable(32) %12, i32 noundef %74)
          to label %75 unwind label %83

75:                                               ; preds = %73
  %76 = load i32, ptr %15, align 4, !tbaa !16
  %77 = sext i32 %76 to i64
  %78 = getelementptr inbounds [3 x %"class.juce::RelativePoint"], ptr %5, i64 0, i64 %77
  %79 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN4juce13RelativePointaSEOS0_(ptr noundef nonnull align 8 dereferenceable(16) %78, ptr noundef nonnull align 8 dereferenceable(16) %16) #8
  call void @_ZN4juce13RelativePointD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %16) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #8
  br label %80

80:                                               ; preds = %75
  %81 = load i32, ptr %15, align 4, !tbaa !16
  %82 = add nsw i32 %81, 1
  store i32 %82, ptr %15, align 4, !tbaa !16
  br label %59, !llvm.loop !17

83:                                               ; preds = %73
  %84 = landingpad { ptr, i32 }
          cleanup
  %85 = extractvalue { ptr, i32 } %84, 0
  store ptr %85, ptr %6, align 8
  %86 = extractvalue { ptr, i32 } %84, 1
  store i32 %86, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #8
  br label %164

87:                                               ; preds = %63
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #8
  store ptr null, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #8
  call void @_ZNK4juce12DrawablePath16ValueTreeWrapper7Element7getTypeEv(ptr dead_on_unwind writable sret(%"class.juce::Identifier") align 8 %18, ptr noundef nonnull align 8 dereferenceable(32) %12) #8
  %88 = call noundef zeroext i1 @_ZNK4juce10IdentifiereqERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull align 8 dereferenceable(8) @_ZN4juce12DrawablePath16ValueTreeWrapper7Element19startSubPathElementE) #8
  br i1 %88, label %89, label %102

89:                                               ; preds = %87
  %90 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 32) #9
          to label %91 unwind label %94

91:                                               ; preds = %89
  %92 = getelementptr inbounds [3 x %"class.juce::RelativePoint"], ptr %5, i64 0, i64 0
  invoke void @_ZN4juce17RelativePointPath12StartSubPathC1ERKNS_13RelativePointE(ptr noundef nonnull align 8 dereferenceable(32) %90, ptr noundef nonnull align 8 dereferenceable(16) %92)
          to label %93 unwind label %98

93:                                               ; preds = %91
  store ptr %90, ptr %17, align 8, !tbaa !5
  br label %156

94:                                               ; preds = %156, %137, %125, %114, %104, %89
  %95 = landingpad { ptr, i32 }
          cleanup
  %96 = extractvalue { ptr, i32 } %95, 0
  store ptr %96, ptr %6, align 8
  %97 = extractvalue { ptr, i32 } %95, 1
  store i32 %97, ptr %7, align 4
  br label %163

98:                                               ; preds = %91
  %99 = landingpad { ptr, i32 }
          cleanup
  %100 = extractvalue { ptr, i32 } %99, 0
  store ptr %100, ptr %6, align 8
  %101 = extractvalue { ptr, i32 } %99, 1
  store i32 %101, ptr %7, align 4
  call void @_ZdlPvm(ptr noundef %90, i64 noundef 32) #10
  br label %163

102:                                              ; preds = %87
  %103 = call noundef zeroext i1 @_ZNK4juce10IdentifiereqERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull align 8 dereferenceable(8) @_ZN4juce12DrawablePath16ValueTreeWrapper7Element19closeSubPathElementE) #8
  br i1 %103, label %104, label %112

104:                                              ; preds = %102
  %105 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 16) #9
          to label %106 unwind label %94

106:                                              ; preds = %104
  invoke void @_ZN4juce17RelativePointPath12CloseSubPathC1Ev(ptr noundef nonnull align 8 dereferenceable(12) %105)
          to label %107 unwind label %108

107:                                              ; preds = %106
  store ptr %105, ptr %17, align 8, !tbaa !5
  br label %155

108:                                              ; preds = %106
  %109 = landingpad { ptr, i32 }
          cleanup
  %110 = extractvalue { ptr, i32 } %109, 0
  store ptr %110, ptr %6, align 8
  %111 = extractvalue { ptr, i32 } %109, 1
  store i32 %111, ptr %7, align 4
  call void @_ZdlPvm(ptr noundef %105, i64 noundef 16) #10
  br label %163

112:                                              ; preds = %102
  %113 = call noundef zeroext i1 @_ZNK4juce10IdentifiereqERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull align 8 dereferenceable(8) @_ZN4juce12DrawablePath16ValueTreeWrapper7Element13lineToElementE) #8
  br i1 %113, label %114, label %123

114:                                              ; preds = %112
  %115 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 32) #9
          to label %116 unwind label %94

116:                                              ; preds = %114
  %117 = getelementptr inbounds [3 x %"class.juce::RelativePoint"], ptr %5, i64 0, i64 0
  invoke void @_ZN4juce17RelativePointPath6LineToC1ERKNS_13RelativePointE(ptr noundef nonnull align 8 dereferenceable(32) %115, ptr noundef nonnull align 8 dereferenceable(16) %117)
          to label %118 unwind label %119

118:                                              ; preds = %116
  store ptr %115, ptr %17, align 8, !tbaa !5
  br label %154

119:                                              ; preds = %116
  %120 = landingpad { ptr, i32 }
          cleanup
  %121 = extractvalue { ptr, i32 } %120, 0
  store ptr %121, ptr %6, align 8
  %122 = extractvalue { ptr, i32 } %120, 1
  store i32 %122, ptr %7, align 4
  call void @_ZdlPvm(ptr noundef %115, i64 noundef 32) #10
  br label %163

123:                                              ; preds = %112
  %124 = call noundef zeroext i1 @_ZNK4juce10IdentifiereqERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull align 8 dereferenceable(8) @_ZN4juce12DrawablePath16ValueTreeWrapper7Element18quadraticToElementE) #8
  br i1 %124, label %125, label %135

125:                                              ; preds = %123
  %126 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 48) #9
          to label %127 unwind label %94

127:                                              ; preds = %125
  %128 = getelementptr inbounds [3 x %"class.juce::RelativePoint"], ptr %5, i64 0, i64 0
  %129 = getelementptr inbounds [3 x %"class.juce::RelativePoint"], ptr %5, i64 0, i64 1
  invoke void @_ZN4juce17RelativePointPath11QuadraticToC1ERKNS_13RelativePointES4_(ptr noundef nonnull align 8 dereferenceable(48) %126, ptr noundef nonnull align 8 dereferenceable(16) %128, ptr noundef nonnull align 8 dereferenceable(16) %129)
          to label %130 unwind label %131

130:                                              ; preds = %127
  store ptr %126, ptr %17, align 8, !tbaa !5
  br label %153

131:                                              ; preds = %127
  %132 = landingpad { ptr, i32 }
          cleanup
  %133 = extractvalue { ptr, i32 } %132, 0
  store ptr %133, ptr %6, align 8
  %134 = extractvalue { ptr, i32 } %132, 1
  store i32 %134, ptr %7, align 4
  call void @_ZdlPvm(ptr noundef %126, i64 noundef 48) #10
  br label %163

135:                                              ; preds = %123
  %136 = call noundef zeroext i1 @_ZNK4juce10IdentifiereqERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull align 8 dereferenceable(8) @_ZN4juce12DrawablePath16ValueTreeWrapper7Element14cubicToElementE) #8
  br i1 %136, label %137, label %148

137:                                              ; preds = %135
  %138 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 64) #9
          to label %139 unwind label %94

139:                                              ; preds = %137
  %140 = getelementptr inbounds [3 x %"class.juce::RelativePoint"], ptr %5, i64 0, i64 0
  %141 = getelementptr inbounds [3 x %"class.juce::RelativePoint"], ptr %5, i64 0, i64 1
  %142 = getelementptr inbounds [3 x %"class.juce::RelativePoint"], ptr %5, i64 0, i64 2
  invoke void @_ZN4juce17RelativePointPath7CubicToC1ERKNS_13RelativePointES4_S4_(ptr noundef nonnull align 8 dereferenceable(64) %138, ptr noundef nonnull align 8 dereferenceable(16) %140, ptr noundef nonnull align 8 dereferenceable(16) %141, ptr noundef nonnull align 8 dereferenceable(16) %142)
          to label %143 unwind label %144

143:                                              ; preds = %139
  store ptr %138, ptr %17, align 8, !tbaa !5
  br label %152

144:                                              ; preds = %139
  %145 = landingpad { ptr, i32 }
          cleanup
  %146 = extractvalue { ptr, i32 } %145, 0
  store ptr %146, ptr %6, align 8
  %147 = extractvalue { ptr, i32 } %145, 1
  store i32 %147, ptr %7, align 4
  call void @_ZdlPvm(ptr noundef %138, i64 noundef 64) #10
  br label %163

148:                                              ; preds = %135
  br label %149

149:                                              ; preds = %148
  br label %150

150:                                              ; preds = %149
  br label %151

151:                                              ; preds = %150
  br label %152

152:                                              ; preds = %151, %143
  br label %153

153:                                              ; preds = %152, %130
  br label %154

154:                                              ; preds = %153, %118
  br label %155

155:                                              ; preds = %154, %107
  br label %156

156:                                              ; preds = %155, %93
  %157 = load ptr, ptr %4, align 8, !tbaa !5
  %158 = load ptr, ptr %17, align 8, !tbaa !5
  invoke void @_ZN4juce17RelativePointPath10addElementEPNS0_11ElementBaseE(ptr noundef nonnull align 8 dereferenceable(26) %157, ptr noundef %158)
          to label %159 unwind label %94

159:                                              ; preds = %156
  call void @_ZN4juce10IdentifierD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %18) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #8
  call void @_ZN4juce12DrawablePath16ValueTreeWrapper7ElementD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %12) #8
  br label %160

160:                                              ; preds = %159
  %161 = load i32, ptr %10, align 4, !tbaa !16
  %162 = add nsw i32 %161, 1
  store i32 %162, ptr %10, align 4, !tbaa !16
  br label %35, !llvm.loop !19

163:                                              ; preds = %144, %131, %119, %108, %98, %94
  call void @_ZN4juce10IdentifierD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %18) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #8
  br label %164

164:                                              ; preds = %163, %83
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #8
  call void @_ZN4juce12DrawablePath16ValueTreeWrapper7ElementD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #8
  br label %165

165:                                              ; preds = %164, %72
  call void @llvm.lifetime.end.p0(i64 32, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #8
  call void @_ZN4juce9ValueTreeD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #8
  br label %174

166:                                              ; preds = %39
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #8
  call void @_ZN4juce9ValueTreeD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %8) #8
  %167 = getelementptr inbounds [3 x %"class.juce::RelativePoint"], ptr %5, i32 0, i32 0
  %168 = getelementptr inbounds %"class.juce::RelativePoint", ptr %167, i64 3
  br label %169

169:                                              ; preds = %169, %166
  %170 = phi ptr [ %168, %166 ], [ %171, %169 ]
  %171 = getelementptr inbounds %"class.juce::RelativePoint", ptr %170, i64 -1
  call void @_ZN4juce13RelativePointD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %171) #8
  %172 = icmp eq ptr %171, %167
  br i1 %172, label %173, label %169

173:                                              ; preds = %169
  call void @llvm.lifetime.end.p0(i64 48, ptr %5) #8
  ret void

174:                                              ; preds = %165, %50
  call void @llvm.lifetime.end.p0(i64 32, ptr %8) #8
  %175 = getelementptr inbounds [3 x %"class.juce::RelativePoint"], ptr %5, i32 0, i32 0
  %176 = getelementptr inbounds %"class.juce::RelativePoint", ptr %175, i64 3
  br label %177

177:                                              ; preds = %177, %174
  %178 = phi ptr [ %176, %174 ], [ %179, %177 ]
  %179 = getelementptr inbounds %"class.juce::RelativePoint", ptr %178, i64 -1
  call void @_ZN4juce13RelativePointD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %179) #8
  %180 = icmp eq ptr %179, %175
  br i1 %180, label %181, label %177

181:                                              ; preds = %177
  br label %182

182:                                              ; preds = %181, %49
  call void @llvm.lifetime.end.p0(i64 48, ptr %5) #8
  br label %183

183:                                              ; preds = %182
  %184 = load ptr, ptr %6, align 8
  %185 = load i32, ptr %7, align 4
  %186 = insertvalue { ptr, i32 } poison, ptr %184, 0
  %187 = insertvalue { ptr, i32 } %186, i32 %185, 1
  resume { ptr, i32 } %187
}

; Function Attrs: nounwind
declare noundef i32 @_ZNK4juce9ValueTree14getNumChildrenEv(ptr noundef nonnull align 8 dereferenceable(32)) #3

declare void @_ZNK4juce9ValueTree8getChildEi(ptr dead_on_unwind writable sret(%"class.juce::ValueTree") align 8, ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK4juce12DrawablePath16ValueTreeWrapper7Element19getNumControlPointsEv(ptr noundef nonnull align 8 dereferenceable(32)) #6 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) #7 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNK4juce12DrawablePath16ValueTreeWrapper7Element7getTypeEv(ptr dead_on_unwind noalias writable sret(%"class.juce::Identifier") align 8, ptr noundef nonnull align 8 dereferenceable(32)) #6 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)) #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4juce17RelativePointPath10addElementEPNS0_11ElementBaseE(ptr noundef nonnull align 8 dereferenceable(26), ptr noundef) #7 align 2

declare void @_ZN4juce12DrawablePath16ValueTreeWrapper7ElementC1ERKNS_9ValueTreeE(ptr, ptr)

declare void @_ZN4juce12DrawablePath16ValueTreeWrapper7ElementD1Ev(ptr)

declare void @_ZN4juce13RelativePointC1Ev(ptr)

declare void @_ZN4juce17RelativePointPath12StartSubPathC1ERKNS_13RelativePointE(ptr, ptr)

declare void @_ZN4juce17RelativePointPath12CloseSubPathC1Ev(ptr)

declare void @_ZN4juce17RelativePointPath6LineToC1ERKNS_13RelativePointE(ptr, ptr)

declare void @_ZN4juce17RelativePointPath11QuadraticToC1ERKNS_13RelativePointES4_(ptr, ptr, ptr)

declare void @_ZN4juce17RelativePointPath7CubicToC1ERKNS_13RelativePointES4_S4_(ptr, ptr, ptr, ptr)

attributes #0 = { nobuiltin 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nobuiltin allocsize(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 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 #5 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 #7 = { 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 #8 = { nounwind }
attributes #9 = { builtin allocsize(0) }
attributes #10 = { builtin 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 = !{!14, !14, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = distinct !{!19, !18}


; 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::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 }
%"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::DrawablePath::ValueTreeWrapper::Element" = type { %"class.juce::ValueTree" }

@_ZN4juce13DrawableShape18FillAndStrokeState4pathE = external dso_local global %"class.juce::Identifier", align 8
@_ZN4juce12DrawablePath16ValueTreeWrapper7Element19startSubPathElementE = external dso_local global %"class.juce::Identifier", align 8
@_ZN4juce12DrawablePath16ValueTreeWrapper7Element19closeSubPathElementE = external dso_local global %"class.juce::Identifier", align 8
@_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: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 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: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) local_unnamed_addr #2

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

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

declare void @_ZNK4juce9ValueTree16getChildWithNameERKNS_10IdentifierE(ptr dead_on_unwind writable sret(%"class.juce::ValueTree") align 8, ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #5

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK4juce12DrawablePath16ValueTreeWrapper18usesNonZeroWindingEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #6 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK4juce12DrawablePath16ValueTreeWrapper7writeToERNS_17RelativePointPathE(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull align 8 dereferenceable(26) %1) local_unnamed_addr #7 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca [3 x %"class.juce::RelativePoint"], align 16
  %4 = alloca %"class.juce::ValueTree", align 8
  %5 = alloca %"class.juce::DrawablePath::ValueTreeWrapper::Element", align 8
  %6 = alloca %"class.juce::ValueTree", align 8
  %7 = alloca %"class.juce::RelativePoint", align 8
  %8 = alloca %"class.juce::Identifier", align 8
  %9 = tail call noundef zeroext i1 @_ZNK4juce12DrawablePath16ValueTreeWrapper18usesNonZeroWindingEv(ptr noundef nonnull align 8 dereferenceable(32) %0)
  %10 = getelementptr inbounds i8, ptr %1, i64 24
  %11 = zext i1 %9 to i8
  store i8 %11, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %3) #8
  call void @_ZN4juce13RelativePointC1Ev(ptr noundef nonnull align 8 dereferenceable(16) %3)
  %.ptr.1 = getelementptr inbounds i8, ptr %3, i64 16
  invoke void @_ZN4juce13RelativePointC1Ev(ptr noundef nonnull align 8 dereferenceable(16) %.ptr.1)
          to label %12 unwind label %.preheader.preheader

12:                                               ; preds = %2
  %.ptr.2 = getelementptr inbounds i8, ptr %3, i64 32
  invoke void @_ZN4juce13RelativePointC1Ev(ptr noundef nonnull align 8 dereferenceable(16) %.ptr.2)
          to label %13 unwind label %.preheader.preheader

13:                                               ; preds = %12
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #8
  invoke void @_ZNK4juce9ValueTree16getChildWithNameERKNS_10IdentifierE(ptr dead_on_unwind nonnull writable sret(%"class.juce::ValueTree") align 8 %4, ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull align 8 dereferenceable(8) @_ZN4juce13DrawableShape18FillAndStrokeState4pathE)
          to label %14 unwind label %22

14:                                               ; preds = %13
  %15 = call noundef i32 @_ZNK4juce9ValueTree14getNumChildrenEv(ptr noundef nonnull align 8 dereferenceable(32) %4) #8
  %16 = icmp sgt i32 %15, 0
  br i1 %16, label %.lr.ph46, label %._crit_edge47

._crit_edge47:                                    ; preds = %76, %14
  call void @_ZN4juce9ValueTreeD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #8
  %17 = getelementptr inbounds i8, ptr %3, i64 32
  call void @_ZN4juce13RelativePointD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %17) #8
  %18 = getelementptr inbounds i8, ptr %3, i64 16
  call void @_ZN4juce13RelativePointD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %18) #8
  call void @_ZN4juce13RelativePointD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %3) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %3) #8
  ret void

.preheader.preheader:                             ; preds = %2, %12
  %.ptr.lcssa.ph = phi ptr [ %.ptr.2, %12 ], [ %.ptr.1, %2 ]
  %lpad.thr_comm = landingpad { ptr, i32 }
          cleanup
  br label %.preheader

.preheader:                                       ; preds = %.preheader.preheader, %.preheader
  %19 = phi ptr [ %20, %.preheader ], [ %.ptr.lcssa.ph, %.preheader.preheader ]
  %20 = getelementptr inbounds i8, ptr %19, i64 -16
  call void @_ZN4juce13RelativePointD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %20) #8
  %21 = icmp eq ptr %20, %3
  br i1 %21, label %.loopexit, label %.preheader

22:                                               ; preds = %13
  %23 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.loopexit

.lr.ph46:                                         ; preds = %14, %76
  %.01644 = phi i32 [ %77, %76 ], [ 0, %14 ]
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #8
  invoke void @_ZNK4juce9ValueTree8getChildEi(ptr dead_on_unwind nonnull writable sret(%"class.juce::ValueTree") align 8 %6, ptr noundef nonnull align 8 dereferenceable(32) %4, i32 noundef %.01644)
          to label %24 unwind label %29

24:                                               ; preds = %.lr.ph46
  invoke void @_ZN4juce12DrawablePath16ValueTreeWrapper7ElementC1ERKNS_9ValueTreeE(ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef nonnull align 8 dereferenceable(32) %6)
          to label %25 unwind label %31

25:                                               ; preds = %24
  call void @_ZN4juce9ValueTreeD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #8
  %26 = call noundef i32 @_ZNK4juce12DrawablePath16ValueTreeWrapper7Element19getNumControlPointsEv(ptr noundef nonnull align 8 dereferenceable(32) %5) #8
  %27 = icmp sgt i32 %26, 0
  br i1 %27, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %25
  %wide.trip.count = zext nneg i32 %26 to i64
  br label %.lr.ph

._crit_edge:                                      ; preds = %35, %25
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #8
  call void @_ZNK4juce12DrawablePath16ValueTreeWrapper7Element7getTypeEv(ptr dead_on_unwind nonnull writable sret(%"class.juce::Identifier") align 8 %8, ptr noundef nonnull align 8 dereferenceable(32) %5) #8
  %28 = call noundef zeroext i1 @_ZNK4juce10IdentifiereqERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) @_ZN4juce12DrawablePath16ValueTreeWrapper7Element19startSubPathElementE) #8
  br i1 %28, label %40, label %47

29:                                               ; preds = %.lr.ph46
  %30 = landingpad { ptr, i32 }
          cleanup
  br label %33

31:                                               ; preds = %24
  %32 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4juce9ValueTreeD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #8
  br label %33

33:                                               ; preds = %31, %29
  %.pn = phi { ptr, i32 } [ %32, %31 ], [ %30, %29 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #8
  br label %80

.lr.ph:                                           ; preds = %.lr.ph.preheader, %35
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %35 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #8
  %34 = trunc nuw nsw i64 %indvars.iv to i32
  invoke void @_ZNK4juce12DrawablePath16ValueTreeWrapper7Element15getControlPointEi(ptr dead_on_unwind nonnull writable sret(%"class.juce::RelativePoint") align 8 %7, ptr noundef nonnull align 8 dereferenceable(32) %5, i32 noundef %34)
          to label %35 unwind label %38

35:                                               ; preds = %.lr.ph
  %36 = getelementptr inbounds [3 x %"class.juce::RelativePoint"], ptr %3, i64 0, i64 %indvars.iv
  %37 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN4juce13RelativePointaSEOS0_(ptr noundef nonnull align 8 dereferenceable(16) %36, ptr noundef nonnull align 8 dereferenceable(16) %7) #8
  call void @_ZN4juce13RelativePointD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %7) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #8
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !15

38:                                               ; preds = %.lr.ph
  %39 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #8
  br label %79

40:                                               ; preds = %._crit_edge
  %41 = invoke noalias noundef nonnull dereferenceable(32) ptr @_Znwm(i64 noundef 32) #9
          to label %42 unwind label %43

42:                                               ; preds = %40
  invoke void @_ZN4juce17RelativePointPath12StartSubPathC1ERKNS_13RelativePointE(ptr noundef nonnull align 8 dereferenceable(32) %41, ptr noundef nonnull align 8 dereferenceable(16) %3)
          to label %75 unwind label %45

43:                                               ; preds = %75, %70, %63, %56, %49, %40
  %44 = landingpad { ptr, i32 }
          cleanup
  br label %78

45:                                               ; preds = %42
  %46 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %41, i64 noundef 32) #10
  br label %78

47:                                               ; preds = %._crit_edge
  %48 = call noundef zeroext i1 @_ZNK4juce10IdentifiereqERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) @_ZN4juce12DrawablePath16ValueTreeWrapper7Element19closeSubPathElementE) #8
  br i1 %48, label %49, label %54

49:                                               ; preds = %47
  %50 = invoke noalias noundef nonnull dereferenceable(16) ptr @_Znwm(i64 noundef 16) #9
          to label %51 unwind label %43

51:                                               ; preds = %49
  invoke void @_ZN4juce17RelativePointPath12CloseSubPathC1Ev(ptr noundef nonnull align 8 dereferenceable(12) %50)
          to label %75 unwind label %52

52:                                               ; preds = %51
  %53 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %50, i64 noundef 16) #10
  br label %78

54:                                               ; preds = %47
  %55 = call noundef zeroext i1 @_ZNK4juce10IdentifiereqERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) @_ZN4juce12DrawablePath16ValueTreeWrapper7Element13lineToElementE) #8
  br i1 %55, label %56, label %61

56:                                               ; preds = %54
  %57 = invoke noalias noundef nonnull dereferenceable(32) ptr @_Znwm(i64 noundef 32) #9
          to label %58 unwind label %43

58:                                               ; preds = %56
  invoke void @_ZN4juce17RelativePointPath6LineToC1ERKNS_13RelativePointE(ptr noundef nonnull align 8 dereferenceable(32) %57, ptr noundef nonnull align 8 dereferenceable(16) %3)
          to label %75 unwind label %59

59:                                               ; preds = %58
  %60 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %57, i64 noundef 32) #10
  br label %78

61:                                               ; preds = %54
  %62 = call noundef zeroext i1 @_ZNK4juce10IdentifiereqERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) @_ZN4juce12DrawablePath16ValueTreeWrapper7Element18quadraticToElementE) #8
  br i1 %62, label %63, label %68

63:                                               ; preds = %61
  %64 = invoke noalias noundef nonnull dereferenceable(48) ptr @_Znwm(i64 noundef 48) #9
          to label %65 unwind label %43

65:                                               ; preds = %63
  invoke void @_ZN4juce17RelativePointPath11QuadraticToC1ERKNS_13RelativePointES4_(ptr noundef nonnull align 8 dereferenceable(48) %64, ptr noundef nonnull align 8 dereferenceable(16) %3, ptr noundef nonnull align 8 dereferenceable(16) %.ptr.1)
          to label %75 unwind label %66

66:                                               ; preds = %65
  %67 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %64, i64 noundef 48) #10
  br label %78

68:                                               ; preds = %61
  %69 = call noundef zeroext i1 @_ZNK4juce10IdentifiereqERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) @_ZN4juce12DrawablePath16ValueTreeWrapper7Element14cubicToElementE) #8
  br i1 %69, label %70, label %75

70:                                               ; preds = %68
  %71 = invoke noalias noundef nonnull dereferenceable(64) ptr @_Znwm(i64 noundef 64) #9
          to label %72 unwind label %43

72:                                               ; preds = %70
  invoke void @_ZN4juce17RelativePointPath7CubicToC1ERKNS_13RelativePointES4_S4_(ptr noundef nonnull align 8 dereferenceable(64) %71, ptr noundef nonnull align 8 dereferenceable(16) %3, ptr noundef nonnull align 8 dereferenceable(16) %.ptr.1, ptr noundef nonnull align 8 dereferenceable(16) %.ptr.2)
          to label %75 unwind label %73

73:                                               ; preds = %72
  %74 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %71, i64 noundef 64) #10
  br label %78

75:                                               ; preds = %72, %65, %58, %51, %42, %68
  %.0 = phi ptr [ null, %68 ], [ %41, %42 ], [ %50, %51 ], [ %57, %58 ], [ %64, %65 ], [ %71, %72 ]
  invoke void @_ZN4juce17RelativePointPath10addElementEPNS0_11ElementBaseE(ptr noundef nonnull align 8 dereferenceable(26) %1, ptr noundef %.0)
          to label %76 unwind label %43

76:                                               ; preds = %75
  call void @_ZN4juce10IdentifierD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #8
  call void @_ZN4juce12DrawablePath16ValueTreeWrapper7ElementD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #8
  %77 = add nuw nsw i32 %.01644, 1
  %exitcond56.not = icmp eq i32 %77, %15
  br i1 %exitcond56.not, label %._crit_edge47, label %.lr.ph46, !llvm.loop !17

78:                                               ; preds = %73, %66, %59, %52, %45, %43
  %.pn29 = phi { ptr, i32 } [ %44, %43 ], [ %46, %45 ], [ %53, %52 ], [ %60, %59 ], [ %67, %66 ], [ %74, %73 ]
  call void @_ZN4juce10IdentifierD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #8
  br label %79

79:                                               ; preds = %78, %38
  %.pn31 = phi { ptr, i32 } [ %39, %38 ], [ %.pn29, %78 ]
  call void @_ZN4juce12DrawablePath16ValueTreeWrapper7ElementD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #8
  br label %80

80:                                               ; preds = %79, %33
  %.pn31.pn = phi { ptr, i32 } [ %.pn31, %79 ], [ %.pn, %33 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #8
  call void @_ZN4juce9ValueTreeD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #8
  br label %.loopexit.loopexit

.loopexit.loopexit:                               ; preds = %80, %22
  %.pn31.pn.pn = phi { ptr, i32 } [ %.pn31.pn, %80 ], [ %23, %22 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #8
  %81 = getelementptr inbounds i8, ptr %3, i64 32
  call void @_ZN4juce13RelativePointD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %81) #8
  %82 = getelementptr inbounds i8, ptr %3, i64 16
  call void @_ZN4juce13RelativePointD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %82) #8
  call void @_ZN4juce13RelativePointD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %3) #8
  br label %.loopexit

.loopexit:                                        ; preds = %.preheader, %.loopexit.loopexit
  %.pn31.pn.pn.pn = phi { ptr, i32 } [ %.pn31.pn.pn, %.loopexit.loopexit ], [ %lpad.thr_comm, %.preheader ]
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %3) #8
  resume { ptr, i32 } %.pn31.pn.pn.pn
}

; Function Attrs: nounwind
declare noundef i32 @_ZNK4juce9ValueTree14getNumChildrenEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #3

declare void @_ZNK4juce9ValueTree8getChildEi(ptr dead_on_unwind writable sret(%"class.juce::ValueTree") align 8, ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) local_unnamed_addr #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK4juce12DrawablePath16ValueTreeWrapper7Element19getNumControlPointsEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #6 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 #7 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNK4juce12DrawablePath16ValueTreeWrapper7Element7getTypeEv(ptr dead_on_unwind noalias writable sret(%"class.juce::Identifier") align 8, ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #6 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 #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4juce17RelativePointPath10addElementEPNS0_11ElementBaseE(ptr noundef nonnull align 8 dereferenceable(26), ptr noundef) local_unnamed_addr #7 align 2

declare void @_ZN4juce12DrawablePath16ValueTreeWrapper7ElementC1ERKNS_9ValueTreeE(ptr, ptr) local_unnamed_addr

declare void @_ZN4juce12DrawablePath16ValueTreeWrapper7ElementD1Ev(ptr) local_unnamed_addr

declare void @_ZN4juce13RelativePointC1Ev(ptr) local_unnamed_addr

declare void @_ZN4juce17RelativePointPath12StartSubPathC1ERKNS_13RelativePointE(ptr, ptr) local_unnamed_addr

declare void @_ZN4juce17RelativePointPath12CloseSubPathC1Ev(ptr) local_unnamed_addr

declare void @_ZN4juce17RelativePointPath6LineToC1ERKNS_13RelativePointE(ptr, ptr) local_unnamed_addr

declare void @_ZN4juce17RelativePointPath11QuadraticToC1ERKNS_13RelativePointES4_(ptr, ptr, ptr) local_unnamed_addr

declare void @_ZN4juce17RelativePointPath7CubicToC1ERKNS_13RelativePointES4_S4_(ptr, ptr, ptr, ptr) local_unnamed_addr

attributes #0 = { nobuiltin 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nobuiltin allocsize(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 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 #5 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 #7 = { 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 #8 = { nounwind }
attributes #9 = { builtin allocsize(0) }
attributes #10 = { builtin 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 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}


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