; LLVM IR from modlfo/AudioEngine :: AudioEngine/JuceLibraryCode/juce_gui_extra.ll (ZN4juce12CodeDocument6removeEiib)

; 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::String" = type { %"class.juce::CharPointer_UTF8" }
%"class.juce::CharPointer_UTF8" = type { ptr }
%"class.juce::CodeDocument::Position" = type <{ ptr, i32, i32, i32, i8, [3 x i8] }>
%"class.juce::CodeDocument" = type { %"class.juce::OwnedArray", %"class.juce::Array.8", %"class.juce::UndoManager", i32, i32, i32, [4 x i8], %"class.juce::ListenerList.18", %"class.juce::String" }
%"class.juce::OwnedArray" = type { %"class.juce::ArrayAllocationBase.5", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.5" = type <{ %"class.juce::HeapBlock.6", i32, [4 x i8] }>
%"class.juce::HeapBlock.6" = type { ptr }
%"class.juce::Array.8" = type { %"class.juce::ArrayAllocationBase.9", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.9" = type <{ %"class.juce::HeapBlock.10", i32, [4 x i8] }>
%"class.juce::HeapBlock.10" = type { ptr }
%"class.juce::UndoManager" = type <{ %"class.juce::ChangeBroadcaster", %"class.juce::OwnedArray.13", %"class.juce::OwnedArray.13", %"class.juce::String", i32, i32, i32, i32, i8, i8, [6 x i8] }>
%"class.juce::ChangeBroadcaster" = type { ptr, %"class.juce::ChangeBroadcaster::ChangeBroadcasterCallback", %"class.juce::ListenerList" }
%"class.juce::ChangeBroadcaster::ChangeBroadcasterCallback" = type { %"class.juce::AsyncUpdater", ptr }
%"class.juce::AsyncUpdater" = type { ptr, %"class.juce::ReferenceCountedObjectPtr" }
%"class.juce::ReferenceCountedObjectPtr" = type { ptr }
%"class.juce::ListenerList" = type { %"class.juce::Array" }
%"class.juce::Array" = type { %"class.juce::ArrayAllocationBase", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase" = type <{ %"class.juce::HeapBlock", i32, [4 x i8] }>
%"class.juce::HeapBlock" = type { ptr }
%"class.juce::OwnedArray.13" = type { %"class.juce::ArrayAllocationBase.14", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.14" = type <{ %"class.juce::HeapBlock.15", i32, [4 x i8] }>
%"class.juce::HeapBlock.15" = type { ptr }
%"class.juce::ListenerList.18" = type { %"class.juce::Array.19" }
%"class.juce::Array.19" = type { %"class.juce::ArrayAllocationBase.20", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.20" = type <{ %"class.juce::HeapBlock.21", i32, [4 x i8] }>
%"class.juce::HeapBlock.21" = type { ptr }
%"class.juce::CodeDocumentLine" = type <{ %"class.juce::String", i32, i32, i32, [4 x i8] }>

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

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

declare i32 @__gxx_personality_v0(...)

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

declare void @_ZN4juceplENS_6StringERKS0_(ptr dead_on_unwind writable sret(%"class.juce::String") align 8, ptr noundef, ptr noundef nonnull align 8 dereferenceable(8)) #2

; Function Attrs: nounwind
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZN4juce6StringaSEOS0_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #0

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN4juce4jmaxIiEET_S1_S1_(i32 noundef, i32 noundef) #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK4juce12CodeDocument8Position11getPositionEv(ptr noundef nonnull align 8 dereferenceable(21)) #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK4juce12CodeDocument8Position13getLineNumberEv(ptr noundef nonnull align 8 dereferenceable(21)) #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK4juce12CodeDocument8Position14getIndexInLineEv(ptr noundef nonnull align 8 dereferenceable(21)) #5 align 2

declare void @_ZNK4juce6String9substringEii(ptr dead_on_unwind writable sret(%"class.juce::String") align 8, ptr noundef nonnull align 8 dereferenceable(8), i32 noundef, i32 noundef) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK4juce12CodeDocument16getNumCharactersEv(ptr noundef nonnull align 8 dereferenceable(232)) #5 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4juce12CodeDocument6removeEiib(ptr noundef nonnull align 8 dereferenceable(232) %0, i32 noundef %1, i32 noundef %2, i1 noundef zeroext %3) #4 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i8, align 1
  %9 = alloca %"class.juce::CodeDocument::Position", align 8
  %10 = alloca %"class.juce::CodeDocument::Position", align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca %"class.juce::String", align 8
  %15 = alloca %"class.juce::String", align 8
  %16 = alloca ptr, align 8
  %17 = alloca i32, align 4
  %18 = alloca %"class.juce::String", align 8
  %19 = alloca ptr, align 8
  %20 = alloca %"class.juce::String", align 8
  %21 = alloca %"class.juce::String", align 8
  %22 = alloca %"class.juce::String", align 8
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca ptr, align 8
  %26 = alloca ptr, align 8
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  %29 = alloca ptr, align 8
  %30 = alloca { i64, i64 }, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store i32 %1, ptr %6, align 4, !tbaa !9
  store i32 %2, ptr %7, align 4, !tbaa !9
  %31 = zext i1 %3 to i8
  store i8 %31, ptr %8, align 1, !tbaa !11
  %32 = load ptr, ptr %5, align 8
  %33 = load i32, ptr %7, align 4, !tbaa !9
  %34 = load i32, ptr %6, align 4, !tbaa !9
  %35 = icmp sle i32 %33, %34
  br i1 %35, label %36, label %37

36:                                               ; preds = %4
  br label %225

37:                                               ; preds = %4
  %38 = load i8, ptr %8, align 1, !tbaa !11, !range !13, !noundef !14
  %39 = trunc i8 %38 to i1
  br i1 %39, label %40, label %46

40:                                               ; preds = %37
  %41 = getelementptr inbounds %"class.juce::CodeDocument", ptr %32, i32 0, i32 2
  %42 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 32) #7
  %43 = load i32, ptr %6, align 4, !tbaa !9
  %44 = load i32, ptr %7, align 4, !tbaa !9
  call void @_ZN4juce24CodeDocumentDeleteActionC2ERNS_12CodeDocumentEii(ptr noundef nonnull align 8 dereferenceable(32) %42, ptr noundef nonnull align 8 dereferenceable(232) %32, i32 noundef %43, i32 noundef %44) #8
  %45 = call noundef zeroext i1 @_ZN4juce11UndoManager7performEPNS_14UndoableActionE(ptr noundef nonnull align 8 dereferenceable(130) %41, ptr noundef %42)
  br label %225

46:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 24, ptr %9) #8
  %47 = load i32, ptr %6, align 4, !tbaa !9
  call void @_ZN4juce12CodeDocument8PositionC1ERKS0_i(ptr noundef nonnull align 8 dereferenceable(21) %9, ptr noundef nonnull align 8 dereferenceable(232) %32, i32 noundef %47) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %10) #8
  %48 = load i32, ptr %7, align 4, !tbaa !9
  call void @_ZN4juce12CodeDocument8PositionC1ERKS0_i(ptr noundef nonnull align 8 dereferenceable(21) %10, ptr noundef nonnull align 8 dereferenceable(232) %32, i32 noundef %48) #8
  %49 = getelementptr inbounds %"class.juce::CodeDocument", ptr %32, i32 0, i32 5
  store i32 -1, ptr %49, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #8
  %50 = call noundef i32 @_ZNK4juce12CodeDocument8Position13getLineNumberEv(ptr noundef nonnull align 8 dereferenceable(21) %9) #8
  store i32 %50, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #8
  %51 = call noundef i32 @_ZNK4juce12CodeDocument8Position13getLineNumberEv(ptr noundef nonnull align 8 dereferenceable(21) %10) #8
  store i32 %51, ptr %12, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #8
  %52 = getelementptr inbounds %"class.juce::CodeDocument", ptr %32, i32 0, i32 0
  %53 = load i32, ptr %11, align 4, !tbaa !9
  %54 = call noundef ptr @_ZNK4juce10OwnedArrayINS_16CodeDocumentLineENS_20DummyCriticalSectionEE12getUncheckedEi(ptr noundef nonnull align 8 dereferenceable(20) %52, i32 noundef %53) #8
  store ptr %54, ptr %13, align 8, !tbaa !5
  %55 = load i32, ptr %11, align 4, !tbaa !9
  %56 = load i32, ptr %12, align 4, !tbaa !9
  %57 = icmp eq i32 %55, %56
  br i1 %57, label %58, label %86

58:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #8
  %59 = load ptr, ptr %13, align 8, !tbaa !5
  %60 = getelementptr inbounds %"class.juce::CodeDocumentLine", ptr %59, i32 0, i32 0
  %61 = call noundef i32 @_ZNK4juce12CodeDocument8Position14getIndexInLineEv(ptr noundef nonnull align 8 dereferenceable(21) %9) #8
  invoke void @_ZNK4juce6String9substringEii(ptr dead_on_unwind writable sret(%"class.juce::String") align 8 %15, ptr noundef nonnull align 8 dereferenceable(8) %60, i32 noundef 0, i32 noundef %61)
          to label %62 unwind label %72

62:                                               ; preds = %58
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #8
  %63 = load ptr, ptr %13, align 8, !tbaa !5
  %64 = getelementptr inbounds %"class.juce::CodeDocumentLine", ptr %63, i32 0, i32 0
  %65 = call noundef i32 @_ZNK4juce12CodeDocument8Position14getIndexInLineEv(ptr noundef nonnull align 8 dereferenceable(21) %10) #8
  invoke void @_ZNK4juce6String9substringEi(ptr dead_on_unwind writable sret(%"class.juce::String") align 8 %18, ptr noundef nonnull align 8 dereferenceable(8) %64, i32 noundef %65)
          to label %66 unwind label %76

66:                                               ; preds = %62
  invoke void @_ZN4juceplENS_6StringERKS0_(ptr dead_on_unwind writable sret(%"class.juce::String") align 8 %14, ptr noundef %15, ptr noundef nonnull align 8 dereferenceable(8) %18)
          to label %67 unwind label %80

67:                                               ; preds = %66
  %68 = load ptr, ptr %13, align 8, !tbaa !5
  %69 = getelementptr inbounds %"class.juce::CodeDocumentLine", ptr %68, i32 0, i32 0
  %70 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4juce6StringaSEOS0_(ptr noundef nonnull align 8 dereferenceable(8) %69, ptr noundef nonnull align 8 dereferenceable(8) %14) #8
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %14) #8
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %18) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %15) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  %71 = load ptr, ptr %13, align 8, !tbaa !5
  call void @_ZN4juce16CodeDocumentLine12updateLengthEv(ptr noundef nonnull align 8 dereferenceable(20) %71) #8
  br label %130

72:                                               ; preds = %58
  %73 = landingpad { ptr, i32 }
          cleanup
  %74 = extractvalue { ptr, i32 } %73, 0
  store ptr %74, ptr %16, align 8
  %75 = extractvalue { ptr, i32 } %73, 1
  store i32 %75, ptr %17, align 4
  br label %85

76:                                               ; preds = %62
  %77 = landingpad { ptr, i32 }
          cleanup
  %78 = extractvalue { ptr, i32 } %77, 0
  store ptr %78, ptr %16, align 8
  %79 = extractvalue { ptr, i32 } %77, 1
  store i32 %79, ptr %17, align 4
  br label %84

80:                                               ; preds = %66
  %81 = landingpad { ptr, i32 }
          cleanup
  %82 = extractvalue { ptr, i32 } %81, 0
  store ptr %82, ptr %16, align 8
  %83 = extractvalue { ptr, i32 } %81, 1
  store i32 %83, ptr %17, align 4
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %18) #8
  br label %84

84:                                               ; preds = %80, %76
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %15) #8
  br label %85

85:                                               ; preds = %84, %72
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  br label %224

86:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #8
  %87 = getelementptr inbounds %"class.juce::CodeDocument", ptr %32, i32 0, i32 0
  %88 = load i32, ptr %12, align 4, !tbaa !9
  %89 = call noundef ptr @_ZNK4juce10OwnedArrayINS_16CodeDocumentLineENS_20DummyCriticalSectionEE12getUncheckedEi(ptr noundef nonnull align 8 dereferenceable(20) %87, i32 noundef %88) #8
  store ptr %89, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #8
  %90 = load ptr, ptr %13, align 8, !tbaa !5
  %91 = getelementptr inbounds %"class.juce::CodeDocumentLine", ptr %90, i32 0, i32 0
  %92 = call noundef i32 @_ZNK4juce12CodeDocument8Position14getIndexInLineEv(ptr noundef nonnull align 8 dereferenceable(21) %9) #8
  invoke void @_ZNK4juce6String9substringEii(ptr dead_on_unwind writable sret(%"class.juce::String") align 8 %21, ptr noundef nonnull align 8 dereferenceable(8) %91, i32 noundef 0, i32 noundef %92)
          to label %93 unwind label %111

93:                                               ; preds = %86
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #8
  %94 = load ptr, ptr %19, align 8, !tbaa !5
  %95 = getelementptr inbounds %"class.juce::CodeDocumentLine", ptr %94, i32 0, i32 0
  %96 = call noundef i32 @_ZNK4juce12CodeDocument8Position14getIndexInLineEv(ptr noundef nonnull align 8 dereferenceable(21) %10) #8
  invoke void @_ZNK4juce6String9substringEi(ptr dead_on_unwind writable sret(%"class.juce::String") align 8 %22, ptr noundef nonnull align 8 dereferenceable(8) %95, i32 noundef %96)
          to label %97 unwind label %115

97:                                               ; preds = %93
  invoke void @_ZN4juceplENS_6StringERKS0_(ptr dead_on_unwind writable sret(%"class.juce::String") align 8 %20, ptr noundef %21, ptr noundef nonnull align 8 dereferenceable(8) %22)
          to label %98 unwind label %119

98:                                               ; preds = %97
  %99 = load ptr, ptr %13, align 8, !tbaa !5
  %100 = getelementptr inbounds %"class.juce::CodeDocumentLine", ptr %99, i32 0, i32 0
  %101 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4juce6StringaSEOS0_(ptr noundef nonnull align 8 dereferenceable(8) %100, ptr noundef nonnull align 8 dereferenceable(8) %20) #8
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %20) #8
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %22) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #8
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %21) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #8
  %102 = load ptr, ptr %13, align 8, !tbaa !5
  call void @_ZN4juce16CodeDocumentLine12updateLengthEv(ptr noundef nonnull align 8 dereferenceable(20) %102) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #8
  %103 = load i32, ptr %12, align 4, !tbaa !9
  %104 = load i32, ptr %11, align 4, !tbaa !9
  %105 = sub nsw i32 %103, %104
  store i32 %105, ptr %23, align 4, !tbaa !9
  %106 = getelementptr inbounds %"class.juce::CodeDocument", ptr %32, i32 0, i32 0
  %107 = load i32, ptr %11, align 4, !tbaa !9
  %108 = add nsw i32 %107, 1
  %109 = load i32, ptr %23, align 4, !tbaa !9
  invoke void @_ZN4juce10OwnedArrayINS_16CodeDocumentLineENS_20DummyCriticalSectionEE11removeRangeEiib(ptr noundef nonnull align 8 dereferenceable(20) %106, i32 noundef %108, i32 noundef %109, i1 noundef zeroext true)
          to label %110 unwind label %125

110:                                              ; preds = %98
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #8
  br label %130

111:                                              ; preds = %86
  %112 = landingpad { ptr, i32 }
          cleanup
  %113 = extractvalue { ptr, i32 } %112, 0
  store ptr %113, ptr %16, align 8
  %114 = extractvalue { ptr, i32 } %112, 1
  store i32 %114, ptr %17, align 4
  br label %124

115:                                              ; preds = %93
  %116 = landingpad { ptr, i32 }
          cleanup
  %117 = extractvalue { ptr, i32 } %116, 0
  store ptr %117, ptr %16, align 8
  %118 = extractvalue { ptr, i32 } %116, 1
  store i32 %118, ptr %17, align 4
  br label %123

119:                                              ; preds = %97
  %120 = landingpad { ptr, i32 }
          cleanup
  %121 = extractvalue { ptr, i32 } %120, 0
  store ptr %121, ptr %16, align 8
  %122 = extractvalue { ptr, i32 } %120, 1
  store i32 %122, ptr %17, align 4
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %22) #8
  br label %123

123:                                              ; preds = %119, %115
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #8
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %21) #8
  br label %124

124:                                              ; preds = %123, %111
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #8
  br label %129

125:                                              ; preds = %98
  %126 = landingpad { ptr, i32 }
          cleanup
  %127 = extractvalue { ptr, i32 } %126, 0
  store ptr %127, ptr %16, align 8
  %128 = extractvalue { ptr, i32 } %126, 1
  store i32 %128, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #8
  br label %129

129:                                              ; preds = %125, %124
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #8
  br label %224

130:                                              ; preds = %110, %67
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #8
  %131 = load i32, ptr %11, align 4, !tbaa !9
  %132 = add nsw i32 %131, 1
  store i32 %132, ptr %24, align 4, !tbaa !9
  br label %133

133:                                              ; preds = %156, %130
  %134 = load i32, ptr %24, align 4, !tbaa !9
  %135 = getelementptr inbounds %"class.juce::CodeDocument", ptr %32, i32 0, i32 0
  %136 = call noundef i32 @_ZNK4juce10OwnedArrayINS_16CodeDocumentLineENS_20DummyCriticalSectionEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20) %135) #8
  %137 = icmp slt i32 %134, %136
  br i1 %137, label %139, label %138

138:                                              ; preds = %133
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #8
  br label %159

139:                                              ; preds = %133
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #8
  %140 = getelementptr inbounds %"class.juce::CodeDocument", ptr %32, i32 0, i32 0
  %141 = load i32, ptr %24, align 4, !tbaa !9
  %142 = call noundef ptr @_ZNK4juce10OwnedArrayINS_16CodeDocumentLineENS_20DummyCriticalSectionEE12getUncheckedEi(ptr noundef nonnull align 8 dereferenceable(20) %140, i32 noundef %141) #8
  store ptr %142, ptr %25, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #8
  %143 = getelementptr inbounds %"class.juce::CodeDocument", ptr %32, i32 0, i32 0
  %144 = load i32, ptr %24, align 4, !tbaa !9
  %145 = sub nsw i32 %144, 1
  %146 = call noundef ptr @_ZNK4juce10OwnedArrayINS_16CodeDocumentLineENS_20DummyCriticalSectionEE12getUncheckedEi(ptr noundef nonnull align 8 dereferenceable(20) %143, i32 noundef %145) #8
  store ptr %146, ptr %26, align 8, !tbaa !5
  %147 = load ptr, ptr %26, align 8, !tbaa !5
  %148 = getelementptr inbounds %"class.juce::CodeDocumentLine", ptr %147, i32 0, i32 1
  %149 = load i32, ptr %148, align 8, !tbaa !41
  %150 = load ptr, ptr %26, align 8, !tbaa !5
  %151 = getelementptr inbounds %"class.juce::CodeDocumentLine", ptr %150, i32 0, i32 2
  %152 = load i32, ptr %151, align 4, !tbaa !43
  %153 = add nsw i32 %149, %152
  %154 = load ptr, ptr %25, align 8, !tbaa !5
  %155 = getelementptr inbounds %"class.juce::CodeDocumentLine", ptr %154, i32 0, i32 1
  store i32 %153, ptr %155, align 8, !tbaa !41
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #8
  br label %156

156:                                              ; preds = %139
  %157 = load i32, ptr %24, align 4, !tbaa !9
  %158 = add nsw i32 %157, 1
  store i32 %158, ptr %24, align 4, !tbaa !9
  br label %133, !llvm.loop !44

159:                                              ; preds = %138
  invoke void @_ZN4juce12CodeDocument19checkLastLineStatusEv(ptr noundef nonnull align 8 dereferenceable(232) %32)
          to label %160 unwind label %168

160:                                              ; preds = %159
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #8
  %161 = call noundef i32 @_ZNK4juce12CodeDocument16getNumCharactersEv(ptr noundef nonnull align 8 dereferenceable(232) %32) #8
  store i32 %161, ptr %27, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #8
  store i32 0, ptr %28, align 4, !tbaa !9
  br label %162

162:                                              ; preds = %207, %160
  %163 = load i32, ptr %28, align 4, !tbaa !9
  %164 = getelementptr inbounds %"class.juce::CodeDocument", ptr %32, i32 0, i32 1
  %165 = call noundef i32 @_ZNK4juce5ArrayIPNS_12CodeDocument8PositionENS_20DummyCriticalSectionELi0EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20) %164) #8
  %166 = icmp slt i32 %163, %165
  br i1 %166, label %172, label %167

167:                                              ; preds = %162
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #8
  br label %210

168:                                              ; preds = %159
  %169 = landingpad { ptr, i32 }
          cleanup
  %170 = extractvalue { ptr, i32 } %169, 0
  store ptr %170, ptr %16, align 8
  %171 = extractvalue { ptr, i32 } %169, 1
  store i32 %171, ptr %17, align 4
  br label %224

172:                                              ; preds = %162
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #8
  %173 = getelementptr inbounds %"class.juce::CodeDocument", ptr %32, i32 0, i32 1
  %174 = load i32, ptr %28, align 4, !tbaa !9
  %175 = invoke noundef ptr @_ZNK4juce5ArrayIPNS_12CodeDocument8PositionENS_20DummyCriticalSectionELi0EE12getUncheckedEi(ptr noundef nonnull align 8 dereferenceable(20) %173, i32 noundef %174)
          to label %176 unwind label %193

176:                                              ; preds = %172
  store ptr %175, ptr %29, align 8, !tbaa !5
  %177 = load ptr, ptr %29, align 8, !tbaa !5
  %178 = call noundef i32 @_ZNK4juce12CodeDocument8Position11getPositionEv(ptr noundef nonnull align 8 dereferenceable(21) %177) #8
  %179 = call noundef i32 @_ZNK4juce12CodeDocument8Position11getPositionEv(ptr noundef nonnull align 8 dereferenceable(21) %9) #8
  %180 = icmp sgt i32 %178, %179
  br i1 %180, label %181, label %197

181:                                              ; preds = %176
  %182 = load ptr, ptr %29, align 8, !tbaa !5
  %183 = load i32, ptr %6, align 4, !tbaa !9
  %184 = load ptr, ptr %29, align 8, !tbaa !5
  %185 = call noundef i32 @_ZNK4juce12CodeDocument8Position11getPositionEv(ptr noundef nonnull align 8 dereferenceable(21) %184) #8
  %186 = load i32, ptr %6, align 4, !tbaa !9
  %187 = add nsw i32 %185, %186
  %188 = load i32, ptr %7, align 4, !tbaa !9
  %189 = sub nsw i32 %187, %188
  %190 = invoke noundef i32 @_ZN4juce4jmaxIiEET_S1_S1_(i32 noundef %183, i32 noundef %189)
          to label %191 unwind label %193

191:                                              ; preds = %181
  invoke void @_ZN4juce12CodeDocument8Position11setPositionEi(ptr noundef nonnull align 8 dereferenceable(21) %182, i32 noundef %190)
          to label %192 unwind label %193

192:                                              ; preds = %191
  br label %197

193:                                              ; preds = %202, %191, %181, %172
  %194 = landingpad { ptr, i32 }
          cleanup
  %195 = extractvalue { ptr, i32 } %194, 0
  store ptr %195, ptr %16, align 8
  %196 = extractvalue { ptr, i32 } %194, 1
  store i32 %196, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #8
  br label %223

197:                                              ; preds = %192, %176
  %198 = load ptr, ptr %29, align 8, !tbaa !5
  %199 = call noundef i32 @_ZNK4juce12CodeDocument8Position11getPositionEv(ptr noundef nonnull align 8 dereferenceable(21) %198) #8
  %200 = load i32, ptr %27, align 4, !tbaa !9
  %201 = icmp sgt i32 %199, %200
  br i1 %201, label %202, label %206

202:                                              ; preds = %197
  %203 = load ptr, ptr %29, align 8, !tbaa !5
  %204 = load i32, ptr %27, align 4, !tbaa !9
  invoke void @_ZN4juce12CodeDocument8Position11setPositionEi(ptr noundef nonnull align 8 dereferenceable(21) %203, i32 noundef %204)
          to label %205 unwind label %193

205:                                              ; preds = %202
  br label %206

206:                                              ; preds = %205, %197
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #8
  br label %207

207:                                              ; preds = %206
  %208 = load i32, ptr %28, align 4, !tbaa !9
  %209 = add nsw i32 %208, 1
  store i32 %209, ptr %28, align 4, !tbaa !9
  br label %162, !llvm.loop !46

210:                                              ; preds = %167
  %211 = getelementptr inbounds %"class.juce::CodeDocument", ptr %32, i32 0, i32 7
  %212 = load i32, ptr %6, align 4, !tbaa !9
  %213 = load i32, ptr %7, align 4, !tbaa !9
  store { i64, i64 } { i64 25, i64 0 }, ptr %30, align 8, !tbaa !47
  %214 = getelementptr inbounds { i64, i64 }, ptr %30, i32 0, i32 0
  %215 = load i64, ptr %214, align 8
  %216 = getelementptr inbounds { i64, i64 }, ptr %30, i32 0, i32 1
  %217 = load i64, ptr %216, align 8
  invoke void @_ZN4juce12ListenerListINS_12CodeDocument8ListenerENS_5ArrayIPS2_NS_20DummyCriticalSectionELi0EEEE4callIiiEEvMS2_FvT_T0_ENS_11TypeHelpers13ParameterTypeIS9_E4typeENSE_ISA_E4typeE(ptr noundef nonnull align 8 dereferenceable(24) %211, i64 %215, i64 %217, i32 noundef %212, i32 noundef %213)
          to label %218 unwind label %219

218:                                              ; preds = %210
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #8
  call void @_ZN4juce12CodeDocument8PositionD1Ev(ptr noundef nonnull align 8 dereferenceable(21) %10) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #8
  call void @_ZN4juce12CodeDocument8PositionD1Ev(ptr noundef nonnull align 8 dereferenceable(21) %9) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %9) #8
  br label %225

219:                                              ; preds = %210
  %220 = landingpad { ptr, i32 }
          cleanup
  %221 = extractvalue { ptr, i32 } %220, 0
  store ptr %221, ptr %16, align 8
  %222 = extractvalue { ptr, i32 } %220, 1
  store i32 %222, ptr %17, align 4
  br label %223

223:                                              ; preds = %219, %193
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #8
  br label %224

224:                                              ; preds = %223, %168, %129, %85
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #8
  call void @_ZN4juce12CodeDocument8PositionD1Ev(ptr noundef nonnull align 8 dereferenceable(21) %10) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #8
  call void @_ZN4juce12CodeDocument8PositionD1Ev(ptr noundef nonnull align 8 dereferenceable(21) %9) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %9) #8
  br label %226

225:                                              ; preds = %218, %40, %36
  ret void

226:                                              ; preds = %224
  %227 = load ptr, ptr %16, align 8
  %228 = load i32, ptr %17, align 4
  %229 = insertvalue { ptr, i32 } poison, ptr %227, 0
  %230 = insertvalue { ptr, i32 } %229, i32 %228, 1
  resume { ptr, i32 } %230
}

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

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) #6

declare noundef zeroext i1 @_ZN4juce11UndoManager7performEPNS_14UndoableActionE(ptr noundef nonnull align 8 dereferenceable(130), ptr noundef) #2

declare void @_ZNK4juce6String9substringEi(ptr dead_on_unwind writable sret(%"class.juce::String") align 8, ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4juce24CodeDocumentDeleteActionC2ERNS_12CodeDocumentEii(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(232), i32 noundef, i32 noundef) unnamed_addr #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4juce16CodeDocumentLine12updateLengthEv(ptr noundef nonnull align 8 dereferenceable(20)) #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4juce10OwnedArrayINS_16CodeDocumentLineENS_20DummyCriticalSectionEE11removeRangeEiib(ptr noundef nonnull align 8 dereferenceable(20), i32 noundef, i32 noundef, i1 noundef zeroext) #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4juce12ListenerListINS_12CodeDocument8ListenerENS_5ArrayIPS2_NS_20DummyCriticalSectionELi0EEEE4callIiiEEvMS2_FvT_T0_ENS_11TypeHelpers13ParameterTypeIS9_E4typeENSE_ISA_E4typeE(ptr noundef nonnull align 8 dereferenceable(24), i64, i64, i32 noundef, i32 noundef) #4 align 2

declare void @_ZN4juce12CodeDocument8PositionC1ERKS0_i(ptr, ptr, i32)

declare void @_ZN4juce12CodeDocument8PositionD1Ev(ptr)

attributes #0 = { 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 = { "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 = { 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 #6 = { 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 #7 = { builtin allocsize(0) }
attributes #8 = { 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 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{i8 0, i8 2}
!14 = !{}
!15 = !{!16, !10, i64 192}
!16 = !{!"_ZTSN4juce12CodeDocumentE", !17, i64 0, !20, i64 24, !23, i64 48, !10, i64 184, !10, i64 188, !10, i64 192, !37, i64 200, !35, i64 224}
!17 = !{!"_ZTSN4juce10OwnedArrayINS_16CodeDocumentLineENS_20DummyCriticalSectionEEE", !18, i64 0, !10, i64 16}
!18 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_16CodeDocumentLineENS_20DummyCriticalSectionEEE", !19, i64 0, !10, i64 8}
!19 = !{!"_ZTSN4juce9HeapBlockIPNS_16CodeDocumentLineELb0EEE", !6, i64 0}
!20 = !{!"_ZTSN4juce5ArrayIPNS_12CodeDocument8PositionENS_20DummyCriticalSectionELi0EEE", !21, i64 0, !10, i64 16}
!21 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_12CodeDocument8PositionENS_20DummyCriticalSectionEEE", !22, i64 0, !10, i64 8}
!22 = !{!"_ZTSN4juce9HeapBlockIPNS_12CodeDocument8PositionELb0EEE", !6, i64 0}
!23 = !{!"_ZTSN4juce11UndoManagerE", !24, i64 0, !32, i64 56, !32, i64 80, !35, i64 104, !10, i64 112, !10, i64 116, !10, i64 120, !10, i64 124, !12, i64 128, !12, i64 129}
!24 = !{!"_ZTSN4juce17ChangeBroadcasterE", !25, i64 8, !28, i64 32}
!25 = !{!"_ZTSN4juce17ChangeBroadcaster25ChangeBroadcasterCallbackE", !26, i64 0, !6, i64 16}
!26 = !{!"_ZTSN4juce12AsyncUpdaterE", !27, i64 8}
!27 = !{!"_ZTSN4juce25ReferenceCountedObjectPtrINS_12AsyncUpdater19AsyncUpdaterMessageEEE", !6, i64 0}
!28 = !{!"_ZTSN4juce12ListenerListINS_14ChangeListenerENS_5ArrayIPS1_NS_20DummyCriticalSectionELi0EEEEE", !29, i64 0}
!29 = !{!"_ZTSN4juce5ArrayIPNS_14ChangeListenerENS_20DummyCriticalSectionELi0EEE", !30, i64 0, !10, i64 16}
!30 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_14ChangeListenerENS_20DummyCriticalSectionEEE", !31, i64 0, !10, i64 8}
!31 = !{!"_ZTSN4juce9HeapBlockIPNS_14ChangeListenerELb0EEE", !6, i64 0}
!32 = !{!"_ZTSN4juce10OwnedArrayINS_11UndoManager9ActionSetENS_20DummyCriticalSectionEEE", !33, i64 0, !10, i64 16}
!33 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_11UndoManager9ActionSetENS_20DummyCriticalSectionEEE", !34, i64 0, !10, i64 8}
!34 = !{!"_ZTSN4juce9HeapBlockIPNS_11UndoManager9ActionSetELb0EEE", !6, i64 0}
!35 = !{!"_ZTSN4juce6StringE", !36, i64 0}
!36 = !{!"_ZTSN4juce16CharPointer_UTF8E", !6, i64 0}
!37 = !{!"_ZTSN4juce12ListenerListINS_12CodeDocument8ListenerENS_5ArrayIPS2_NS_20DummyCriticalSectionELi0EEEEE", !38, i64 0}
!38 = !{!"_ZTSN4juce5ArrayIPNS_12CodeDocument8ListenerENS_20DummyCriticalSectionELi0EEE", !39, i64 0, !10, i64 16}
!39 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_12CodeDocument8ListenerENS_20DummyCriticalSectionEEE", !40, i64 0, !10, i64 8}
!40 = !{!"_ZTSN4juce9HeapBlockIPNS_12CodeDocument8ListenerELb0EEE", !6, i64 0}
!41 = !{!42, !10, i64 8}
!42 = !{!"_ZTSN4juce16CodeDocumentLineE", !35, i64 0, !10, i64 8, !10, i64 12, !10, i64 16}
!43 = !{!42, !10, i64 12}
!44 = distinct !{!44, !45}
!45 = !{!"llvm.loop.mustprogress"}
!46 = distinct !{!46, !45}
!47 = !{!7, !7, i64 0}


; 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::String" = type { %"class.juce::CharPointer_UTF8" }
%"class.juce::CharPointer_UTF8" = type { ptr }
%"class.juce::CodeDocument::Position" = type <{ ptr, i32, i32, i32, i8, [3 x i8] }>

; Function Attrs: nounwind
declare void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8)) 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

declare i32 @__gxx_personality_v0(...)

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

declare void @_ZN4juceplENS_6StringERKS0_(ptr dead_on_unwind writable sret(%"class.juce::String") align 8, ptr noundef, ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2

; Function Attrs: nounwind
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZN4juce6StringaSEOS0_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #0

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN4juce4jmaxIiEET_S1_S1_(i32 noundef, i32 noundef) local_unnamed_addr #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK4juce12CodeDocument8Position11getPositionEv(ptr noundef nonnull align 8 dereferenceable(21)) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK4juce12CodeDocument8Position13getLineNumberEv(ptr noundef nonnull align 8 dereferenceable(21)) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK4juce12CodeDocument8Position14getIndexInLineEv(ptr noundef nonnull align 8 dereferenceable(21)) local_unnamed_addr #5 align 2

declare void @_ZNK4juce6String9substringEii(ptr dead_on_unwind writable sret(%"class.juce::String") align 8, ptr noundef nonnull align 8 dereferenceable(8), i32 noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK4juce12CodeDocument16getNumCharactersEv(ptr noundef nonnull align 8 dereferenceable(232)) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4juce12CodeDocument6removeEiib(ptr noundef nonnull align 8 dereferenceable(232) %0, i32 noundef %1, i32 noundef %2, i1 noundef zeroext %3) local_unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca %"class.juce::CodeDocument::Position", align 8
  %6 = alloca %"class.juce::CodeDocument::Position", align 8
  %7 = alloca %"class.juce::String", align 8
  %8 = alloca %"class.juce::String", align 8
  %9 = alloca %"class.juce::String", align 8
  %10 = alloca %"class.juce::String", align 8
  %11 = alloca %"class.juce::String", align 8
  %12 = alloca %"class.juce::String", align 8
  %.not = icmp sgt i32 %2, %1
  br i1 %.not, label %13, label %102

13:                                               ; preds = %4
  br i1 %3, label %14, label %18

14:                                               ; preds = %13
  %15 = getelementptr inbounds i8, ptr %0, i64 48
  %16 = tail call noalias noundef nonnull dereferenceable(32) ptr @_Znwm(i64 noundef 32) #7
  tail call void @_ZN4juce24CodeDocumentDeleteActionC2ERNS_12CodeDocumentEii(ptr noundef nonnull align 8 dereferenceable(32) %16, ptr noundef nonnull align 8 dereferenceable(232) %0, i32 noundef %1, i32 noundef %2) #8
  %17 = tail call noundef zeroext i1 @_ZN4juce11UndoManager7performEPNS_14UndoableActionE(ptr noundef nonnull align 8 dereferenceable(130) %15, ptr noundef nonnull %16)
  br label %102

18:                                               ; preds = %13
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #8
  call void @_ZN4juce12CodeDocument8PositionC1ERKS0_i(ptr noundef nonnull align 8 dereferenceable(21) %5, ptr noundef nonnull align 8 dereferenceable(232) %0, i32 noundef %1) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #8
  call void @_ZN4juce12CodeDocument8PositionC1ERKS0_i(ptr noundef nonnull align 8 dereferenceable(21) %6, ptr noundef nonnull align 8 dereferenceable(232) %0, i32 noundef %2) #8
  %19 = getelementptr inbounds i8, ptr %0, i64 192
  store i32 -1, ptr %19, align 8, !tbaa !5
  %20 = call noundef i32 @_ZNK4juce12CodeDocument8Position13getLineNumberEv(ptr noundef nonnull align 8 dereferenceable(21) %5) #8
  %21 = call noundef i32 @_ZNK4juce12CodeDocument8Position13getLineNumberEv(ptr noundef nonnull align 8 dereferenceable(21) %6) #8
  %22 = call noundef ptr @_ZNK4juce10OwnedArrayINS_16CodeDocumentLineENS_20DummyCriticalSectionEE12getUncheckedEi(ptr noundef nonnull align 8 dereferenceable(20) %0, i32 noundef %20) #8
  %23 = icmp eq i32 %20, %21
  br i1 %23, label %24, label %39

24:                                               ; preds = %18
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #8
  %25 = call noundef i32 @_ZNK4juce12CodeDocument8Position14getIndexInLineEv(ptr noundef nonnull align 8 dereferenceable(21) %5) #8
  invoke void @_ZNK4juce6String9substringEii(ptr dead_on_unwind nonnull writable sret(%"class.juce::String") align 8 %8, ptr noundef nonnull align 8 dereferenceable(8) %22, i32 noundef 0, i32 noundef %25)
          to label %26 unwind label %31

26:                                               ; preds = %24
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #8
  %27 = call noundef i32 @_ZNK4juce12CodeDocument8Position14getIndexInLineEv(ptr noundef nonnull align 8 dereferenceable(21) %6) #8
  invoke void @_ZNK4juce6String9substringEi(ptr dead_on_unwind nonnull writable sret(%"class.juce::String") align 8 %9, ptr noundef nonnull align 8 dereferenceable(8) %22, i32 noundef %27)
          to label %28 unwind label %33

28:                                               ; preds = %26
  invoke void @_ZN4juceplENS_6StringERKS0_(ptr dead_on_unwind nonnull writable sret(%"class.juce::String") align 8 %7, ptr noundef nonnull %8, ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %29 unwind label %35

29:                                               ; preds = %28
  %30 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4juce6StringaSEOS0_(ptr noundef nonnull align 8 dereferenceable(8) %22, ptr noundef nonnull align 8 dereferenceable(8) %7) #8
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #8
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #8
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #8
  call void @_ZN4juce16CodeDocumentLine12updateLengthEv(ptr noundef nonnull align 8 dereferenceable(20) %22) #8
  %.pre = add nsw i32 %20, 1
  br label %57

31:                                               ; preds = %24
  %32 = landingpad { ptr, i32 }
          cleanup
  br label %38

33:                                               ; preds = %26
  %34 = landingpad { ptr, i32 }
          cleanup
  br label %37

35:                                               ; preds = %28
  %36 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #8
  br label %37

37:                                               ; preds = %35, %33
  %.pn63 = phi { ptr, i32 } [ %36, %35 ], [ %34, %33 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #8
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #8
  br label %38

38:                                               ; preds = %37, %31
  %.pn63.pn = phi { ptr, i32 } [ %.pn63, %37 ], [ %32, %31 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #8
  br label %101

39:                                               ; preds = %18
  %40 = call noundef ptr @_ZNK4juce10OwnedArrayINS_16CodeDocumentLineENS_20DummyCriticalSectionEE12getUncheckedEi(ptr noundef nonnull align 8 dereferenceable(20) %0, i32 noundef %21) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #8
  %41 = call noundef i32 @_ZNK4juce12CodeDocument8Position14getIndexInLineEv(ptr noundef nonnull align 8 dereferenceable(21) %5) #8
  invoke void @_ZNK4juce6String9substringEii(ptr dead_on_unwind nonnull writable sret(%"class.juce::String") align 8 %11, ptr noundef nonnull align 8 dereferenceable(8) %22, i32 noundef 0, i32 noundef %41)
          to label %42 unwind label %49

42:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #8
  %43 = call noundef i32 @_ZNK4juce12CodeDocument8Position14getIndexInLineEv(ptr noundef nonnull align 8 dereferenceable(21) %6) #8
  invoke void @_ZNK4juce6String9substringEi(ptr dead_on_unwind nonnull writable sret(%"class.juce::String") align 8 %12, ptr noundef nonnull align 8 dereferenceable(8) %40, i32 noundef %43)
          to label %44 unwind label %51

44:                                               ; preds = %42
  invoke void @_ZN4juceplENS_6StringERKS0_(ptr dead_on_unwind nonnull writable sret(%"class.juce::String") align 8 %10, ptr noundef nonnull %11, ptr noundef nonnull align 8 dereferenceable(8) %12)
          to label %45 unwind label %53

45:                                               ; preds = %44
  %46 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4juce6StringaSEOS0_(ptr noundef nonnull align 8 dereferenceable(8) %22, ptr noundef nonnull align 8 dereferenceable(8) %10) #8
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %10) #8
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %12) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #8
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %11) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #8
  call void @_ZN4juce16CodeDocumentLine12updateLengthEv(ptr noundef nonnull align 8 dereferenceable(20) %22) #8
  %47 = sub nsw i32 %21, %20
  %48 = add nsw i32 %20, 1
  call void @_ZN4juce10OwnedArrayINS_16CodeDocumentLineENS_20DummyCriticalSectionEE11removeRangeEiib(ptr noundef nonnull align 8 dereferenceable(20) %0, i32 noundef %48, i32 noundef %47, i1 noundef zeroext true)
  br label %57

49:                                               ; preds = %39
  %50 = landingpad { ptr, i32 }
          cleanup
  br label %56

51:                                               ; preds = %42
  %52 = landingpad { ptr, i32 }
          cleanup
  br label %55

53:                                               ; preds = %44
  %54 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %12) #8
  br label %55

55:                                               ; preds = %53, %51
  %.pn = phi { ptr, i32 } [ %54, %53 ], [ %52, %51 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #8
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %11) #8
  br label %56

56:                                               ; preds = %55, %49
  %.pn.pn = phi { ptr, i32 } [ %.pn, %55 ], [ %50, %49 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #8
  br label %101

57:                                               ; preds = %45, %29
  %.05469.pre-phi = phi i32 [ %48, %45 ], [ %.pre, %29 ]
  %58 = call noundef i32 @_ZNK4juce10OwnedArrayINS_16CodeDocumentLineENS_20DummyCriticalSectionEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20) %0) #8
  %59 = icmp slt i32 %.05469.pre-phi, %58
  br i1 %59, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph, %57
  invoke void @_ZN4juce12CodeDocument19checkLastLineStatusEv(ptr noundef nonnull align 8 dereferenceable(232) %0)
          to label %70 unwind label %77

.lr.ph:                                           ; preds = %57, %.lr.ph
  %.05471 = phi i32 [ %.054, %.lr.ph ], [ %.05469.pre-phi, %57 ]
  %.054.in70 = phi i32 [ %.05471, %.lr.ph ], [ %20, %57 ]
  %60 = call noundef ptr @_ZNK4juce10OwnedArrayINS_16CodeDocumentLineENS_20DummyCriticalSectionEE12getUncheckedEi(ptr noundef nonnull align 8 dereferenceable(20) %0, i32 noundef %.05471) #8
  %61 = call noundef ptr @_ZNK4juce10OwnedArrayINS_16CodeDocumentLineENS_20DummyCriticalSectionEE12getUncheckedEi(ptr noundef nonnull align 8 dereferenceable(20) %0, i32 noundef %.054.in70) #8
  %62 = getelementptr inbounds i8, ptr %61, i64 8
  %63 = load i32, ptr %62, align 8, !tbaa !36
  %64 = getelementptr inbounds i8, ptr %61, i64 12
  %65 = load i32, ptr %64, align 4, !tbaa !38
  %66 = add nsw i32 %65, %63
  %67 = getelementptr inbounds i8, ptr %60, i64 8
  store i32 %66, ptr %67, align 8, !tbaa !36
  %.054 = add nsw i32 %.05471, 1
  %68 = call noundef i32 @_ZNK4juce10OwnedArrayINS_16CodeDocumentLineENS_20DummyCriticalSectionEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20) %0) #8
  %69 = icmp slt i32 %.054, %68
  br i1 %69, label %.lr.ph, label %._crit_edge, !llvm.loop !39

70:                                               ; preds = %._crit_edge
  %71 = call noundef i32 @_ZNK4juce12CodeDocument16getNumCharactersEv(ptr noundef nonnull align 8 dereferenceable(232) %0) #8
  %72 = getelementptr inbounds i8, ptr %0, i64 24
  %73 = call noundef i32 @_ZNK4juce5ArrayIPNS_12CodeDocument8PositionENS_20DummyCriticalSectionELi0EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20) %72) #8
  %74 = icmp sgt i32 %73, 0
  br i1 %74, label %.lr.ph74, label %._crit_edge75

.lr.ph74:                                         ; preds = %70
  %75 = sub i32 %1, %2
  br label %79

._crit_edge75:                                    ; preds = %94, %70
  %76 = getelementptr inbounds i8, ptr %0, i64 200
  invoke void @_ZN4juce12ListenerListINS_12CodeDocument8ListenerENS_5ArrayIPS2_NS_20DummyCriticalSectionELi0EEEE4callIiiEEvMS2_FvT_T0_ENS_11TypeHelpers13ParameterTypeIS9_E4typeENSE_ISA_E4typeE(ptr noundef nonnull align 8 dereferenceable(24) %76, i64 25, i64 0, i32 noundef %1, i32 noundef %2)
          to label %98 unwind label %99

77:                                               ; preds = %._crit_edge
  %78 = landingpad { ptr, i32 }
          cleanup
  br label %101

79:                                               ; preds = %.lr.ph74, %94
  %.05572 = phi i32 [ 0, %.lr.ph74 ], [ %95, %94 ]
  %80 = call noundef ptr @_ZNK4juce5ArrayIPNS_12CodeDocument8PositionENS_20DummyCriticalSectionELi0EE12getUncheckedEi(ptr noundef nonnull align 8 dereferenceable(20) %72, i32 noundef %.05572)
  %81 = call noundef i32 @_ZNK4juce12CodeDocument8Position11getPositionEv(ptr noundef nonnull align 8 dereferenceable(21) %80) #8
  %82 = call noundef i32 @_ZNK4juce12CodeDocument8Position11getPositionEv(ptr noundef nonnull align 8 dereferenceable(21) %5) #8
  %83 = icmp sgt i32 %81, %82
  br i1 %83, label %84, label %90

84:                                               ; preds = %79
  %85 = call noundef i32 @_ZNK4juce12CodeDocument8Position11getPositionEv(ptr noundef nonnull align 8 dereferenceable(21) %80) #8
  %86 = add i32 %75, %85
  %87 = call noundef i32 @_ZN4juce4jmaxIiEET_S1_S1_(i32 noundef %1, i32 noundef %86)
  invoke void @_ZN4juce12CodeDocument8Position11setPositionEi(ptr noundef nonnull align 8 dereferenceable(21) %80, i32 noundef %87)
          to label %90 unwind label %88

88:                                               ; preds = %93, %84
  %89 = landingpad { ptr, i32 }
          cleanup
  br label %101

90:                                               ; preds = %84, %79
  %91 = call noundef i32 @_ZNK4juce12CodeDocument8Position11getPositionEv(ptr noundef nonnull align 8 dereferenceable(21) %80) #8
  %92 = icmp sgt i32 %91, %71
  br i1 %92, label %93, label %94

93:                                               ; preds = %90
  invoke void @_ZN4juce12CodeDocument8Position11setPositionEi(ptr noundef nonnull align 8 dereferenceable(21) %80, i32 noundef %71)
          to label %94 unwind label %88

94:                                               ; preds = %93, %90
  %95 = add nuw nsw i32 %.05572, 1
  %96 = call noundef i32 @_ZNK4juce5ArrayIPNS_12CodeDocument8PositionENS_20DummyCriticalSectionELi0EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20) %72) #8
  %97 = icmp slt i32 %95, %96
  br i1 %97, label %79, label %._crit_edge75, !llvm.loop !41

98:                                               ; preds = %._crit_edge75
  call void @_ZN4juce12CodeDocument8PositionD1Ev(ptr noundef nonnull align 8 dereferenceable(21) %6) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #8
  call void @_ZN4juce12CodeDocument8PositionD1Ev(ptr noundef nonnull align 8 dereferenceable(21) %5) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #8
  br label %102

99:                                               ; preds = %._crit_edge75
  %100 = landingpad { ptr, i32 }
          cleanup
  br label %101

101:                                              ; preds = %88, %99, %77, %56, %38
  %.pn66.pn = phi { ptr, i32 } [ %78, %77 ], [ %.pn63.pn, %38 ], [ %.pn.pn, %56 ], [ %89, %88 ], [ %100, %99 ]
  call void @_ZN4juce12CodeDocument8PositionD1Ev(ptr noundef nonnull align 8 dereferenceable(21) %6) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #8
  call void @_ZN4juce12CodeDocument8PositionD1Ev(ptr noundef nonnull align 8 dereferenceable(21) %5) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #8
  resume { ptr, i32 } %.pn66.pn

102:                                              ; preds = %4, %98, %14
  ret void
}

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

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) local_unnamed_addr #6

declare noundef zeroext i1 @_ZN4juce11UndoManager7performEPNS_14UndoableActionE(ptr noundef nonnull align 8 dereferenceable(130), ptr noundef) local_unnamed_addr #2

declare void @_ZNK4juce6String9substringEi(ptr dead_on_unwind writable sret(%"class.juce::String") align 8, ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4juce24CodeDocumentDeleteActionC2ERNS_12CodeDocumentEii(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(232), i32 noundef, i32 noundef) unnamed_addr #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4juce16CodeDocumentLine12updateLengthEv(ptr noundef nonnull align 8 dereferenceable(20)) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4juce10OwnedArrayINS_16CodeDocumentLineENS_20DummyCriticalSectionEE11removeRangeEiib(ptr noundef nonnull align 8 dereferenceable(20), i32 noundef, i32 noundef, i1 noundef zeroext) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4juce12ListenerListINS_12CodeDocument8ListenerENS_5ArrayIPS2_NS_20DummyCriticalSectionELi0EEEE4callIiiEEvMS2_FvT_T0_ENS_11TypeHelpers13ParameterTypeIS9_E4typeENSE_ISA_E4typeE(ptr noundef nonnull align 8 dereferenceable(24), i64, i64, i32 noundef, i32 noundef) local_unnamed_addr #4 align 2

declare void @_ZN4juce12CodeDocument8PositionC1ERKS0_i(ptr, ptr, i32) local_unnamed_addr

declare void @_ZN4juce12CodeDocument8PositionD1Ev(ptr) local_unnamed_addr

attributes #0 = { 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 = { "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 = { 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 #6 = { 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 #7 = { builtin allocsize(0) }
attributes #8 = { 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, !13, i64 192}
!6 = !{!"_ZTSN4juce12CodeDocumentE", !7, i64 0, !14, i64 24, !17, i64 48, !13, i64 184, !13, i64 188, !13, i64 192, !32, i64 200, !29, i64 224}
!7 = !{!"_ZTSN4juce10OwnedArrayINS_16CodeDocumentLineENS_20DummyCriticalSectionEEE", !8, i64 0, !13, i64 16}
!8 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_16CodeDocumentLineENS_20DummyCriticalSectionEEE", !9, i64 0, !13, i64 8}
!9 = !{!"_ZTSN4juce9HeapBlockIPNS_16CodeDocumentLineELb0EEE", !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 = !{!"_ZTSN4juce5ArrayIPNS_12CodeDocument8PositionENS_20DummyCriticalSectionELi0EEE", !15, i64 0, !13, i64 16}
!15 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_12CodeDocument8PositionENS_20DummyCriticalSectionEEE", !16, i64 0, !13, i64 8}
!16 = !{!"_ZTSN4juce9HeapBlockIPNS_12CodeDocument8PositionELb0EEE", !10, i64 0}
!17 = !{!"_ZTSN4juce11UndoManagerE", !18, i64 0, !26, i64 56, !26, i64 80, !29, i64 104, !13, i64 112, !13, i64 116, !13, i64 120, !13, i64 124, !31, i64 128, !31, i64 129}
!18 = !{!"_ZTSN4juce17ChangeBroadcasterE", !19, i64 8, !22, i64 32}
!19 = !{!"_ZTSN4juce17ChangeBroadcaster25ChangeBroadcasterCallbackE", !20, i64 0, !10, i64 16}
!20 = !{!"_ZTSN4juce12AsyncUpdaterE", !21, i64 8}
!21 = !{!"_ZTSN4juce25ReferenceCountedObjectPtrINS_12AsyncUpdater19AsyncUpdaterMessageEEE", !10, i64 0}
!22 = !{!"_ZTSN4juce12ListenerListINS_14ChangeListenerENS_5ArrayIPS1_NS_20DummyCriticalSectionELi0EEEEE", !23, i64 0}
!23 = !{!"_ZTSN4juce5ArrayIPNS_14ChangeListenerENS_20DummyCriticalSectionELi0EEE", !24, i64 0, !13, i64 16}
!24 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_14ChangeListenerENS_20DummyCriticalSectionEEE", !25, i64 0, !13, i64 8}
!25 = !{!"_ZTSN4juce9HeapBlockIPNS_14ChangeListenerELb0EEE", !10, i64 0}
!26 = !{!"_ZTSN4juce10OwnedArrayINS_11UndoManager9ActionSetENS_20DummyCriticalSectionEEE", !27, i64 0, !13, i64 16}
!27 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_11UndoManager9ActionSetENS_20DummyCriticalSectionEEE", !28, i64 0, !13, i64 8}
!28 = !{!"_ZTSN4juce9HeapBlockIPNS_11UndoManager9ActionSetELb0EEE", !10, i64 0}
!29 = !{!"_ZTSN4juce6StringE", !30, i64 0}
!30 = !{!"_ZTSN4juce16CharPointer_UTF8E", !10, i64 0}
!31 = !{!"bool", !11, i64 0}
!32 = !{!"_ZTSN4juce12ListenerListINS_12CodeDocument8ListenerENS_5ArrayIPS2_NS_20DummyCriticalSectionELi0EEEEE", !33, i64 0}
!33 = !{!"_ZTSN4juce5ArrayIPNS_12CodeDocument8ListenerENS_20DummyCriticalSectionELi0EEE", !34, i64 0, !13, i64 16}
!34 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_12CodeDocument8ListenerENS_20DummyCriticalSectionEEE", !35, i64 0, !13, i64 8}
!35 = !{!"_ZTSN4juce9HeapBlockIPNS_12CodeDocument8ListenerELb0EEE", !10, i64 0}
!36 = !{!37, !13, i64 8}
!37 = !{!"_ZTSN4juce16CodeDocumentLineE", !29, i64 0, !13, i64 8, !13, i64 12, !13, i64 16}
!38 = !{!37, !13, i64 12}
!39 = distinct !{!39, !40}
!40 = !{!"llvm.loop.mustprogress"}
!41 = distinct !{!41, !40}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass