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

; 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::Array.35" = 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::StringRef" = type { %"class.juce::CharPointer_UTF8" }
%"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::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 @_ZN4juce6StringC1ERKS0_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #0

; 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 void @_ZN4juce9StringRefC1ERKNS_6StringE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #0

; 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 ptr @_ZNK4juce10OwnedArrayINS_16CodeDocumentLineENS_20DummyCriticalSectionEEixEi(ptr noundef nonnull align 8 dereferenceable(20), i32 noundef) #3 align 2

; 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 @_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 uwtable
define dso_local void @_ZN4juce12CodeDocument6insertERKNS_6StringEib(ptr noundef nonnull align 8 dereferenceable(232) %0, ptr noundef nonnull align 8 dereferenceable(8) %1, i32 noundef %2, i1 noundef zeroext %3) #4 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i8, align 1
  %9 = alloca %"class.juce::CodeDocument::Position", align 8
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca %"class.juce::String", align 8
  %13 = alloca i32, align 4
  %14 = alloca %"class.juce::String", align 8
  %15 = alloca %"class.juce::String", align 8
  %16 = alloca %"class.juce::String", align 8
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  %19 = alloca %"class.juce::String", align 8
  %20 = alloca %"class.juce::Array.35", align 8
  %21 = alloca %"class.juce::StringRef", align 8
  %22 = alloca ptr, align 8
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca ptr, align 8
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca ptr, align 8
  %29 = alloca { i64, i64 }, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store i32 %2, ptr %7, align 4, !tbaa !9
  %30 = zext i1 %3 to i8
  store i8 %30, ptr %8, align 1, !tbaa !11
  %31 = load ptr, ptr %5, align 8
  %32 = load ptr, ptr %6, align 8, !tbaa !5
  %33 = call noundef zeroext i1 @_ZNK4juce6String10isNotEmptyEv(ptr noundef nonnull align 8 dereferenceable(8) %32) #7
  br i1 %33, label %34, label %210

34:                                               ; preds = %4
  %35 = load i8, ptr %8, align 1, !tbaa !11, !range !13, !noundef !14
  %36 = trunc i8 %35 to i1
  br i1 %36, label %37, label %43

37:                                               ; preds = %34
  %38 = getelementptr inbounds %"class.juce::CodeDocument", ptr %31, i32 0, i32 2
  %39 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 32) #8
  %40 = load ptr, ptr %6, align 8, !tbaa !5
  %41 = load i32, ptr %7, align 4, !tbaa !9
  call void @_ZN4juce24CodeDocumentInsertActionC2ERNS_12CodeDocumentERKNS_6StringEi(ptr noundef nonnull align 8 dereferenceable(28) %39, ptr noundef nonnull align 8 dereferenceable(232) %31, ptr noundef nonnull align 8 dereferenceable(8) %40, i32 noundef %41) #7
  %42 = call noundef zeroext i1 @_ZN4juce11UndoManager7performEPNS_14UndoableActionE(ptr noundef nonnull align 8 dereferenceable(130) %38, ptr noundef %39)
  br label %209

43:                                               ; preds = %34
  call void @llvm.lifetime.start.p0(i64 24, ptr %9) #7
  %44 = load i32, ptr %7, align 4, !tbaa !9
  call void @_ZN4juce12CodeDocument8PositionC1ERKS0_i(ptr noundef nonnull align 8 dereferenceable(21) %9, ptr noundef nonnull align 8 dereferenceable(232) %31, i32 noundef %44) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  %45 = call noundef i32 @_ZNK4juce12CodeDocument8Position13getLineNumberEv(ptr noundef nonnull align 8 dereferenceable(21) %9) #7
  store i32 %45, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  %46 = getelementptr inbounds %"class.juce::CodeDocument", ptr %31, i32 0, i32 0
  %47 = load i32, ptr %10, align 4, !tbaa !9
  %48 = call noundef ptr @_ZNK4juce10OwnedArrayINS_16CodeDocumentLineENS_20DummyCriticalSectionEEixEi(ptr noundef nonnull align 8 dereferenceable(20) %46, i32 noundef %47) #7
  store ptr %48, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  %49 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN4juce6StringC1ERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %49) #7
  %50 = load ptr, ptr %11, align 8, !tbaa !5
  %51 = icmp ne ptr %50, null
  br i1 %51, label %52, label %84

52:                                               ; preds = %43
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  %53 = call noundef i32 @_ZNK4juce12CodeDocument8Position14getIndexInLineEv(ptr noundef nonnull align 8 dereferenceable(21) %9) #7
  store i32 %53, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  %54 = load ptr, ptr %11, align 8, !tbaa !5
  %55 = getelementptr inbounds %"class.juce::CodeDocumentLine", ptr %54, i32 0, i32 0
  %56 = load i32, ptr %13, align 4, !tbaa !9
  invoke void @_ZNK4juce6String9substringEii(ptr dead_on_unwind writable sret(%"class.juce::String") align 8 %16, ptr noundef nonnull align 8 dereferenceable(8) %55, i32 noundef 0, i32 noundef %56)
          to label %57 unwind label %65

57:                                               ; preds = %52
  invoke void @_ZN4juceplENS_6StringERKS0_(ptr dead_on_unwind writable sret(%"class.juce::String") align 8 %15, ptr noundef %16, ptr noundef nonnull align 8 dereferenceable(8) %12)
          to label %58 unwind label %69

58:                                               ; preds = %57
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #7
  %59 = load ptr, ptr %11, align 8, !tbaa !5
  %60 = getelementptr inbounds %"class.juce::CodeDocumentLine", ptr %59, i32 0, i32 0
  %61 = load i32, ptr %13, align 4, !tbaa !9
  invoke void @_ZNK4juce6String9substringEi(ptr dead_on_unwind writable sret(%"class.juce::String") align 8 %19, ptr noundef nonnull align 8 dereferenceable(8) %60, i32 noundef %61)
          to label %62 unwind label %73

62:                                               ; preds = %58
  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) %19)
          to label %63 unwind label %77

63:                                               ; preds = %62
  %64 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4juce6StringaSEOS0_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %14) #7
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %14) #7
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %19) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %15) #7
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %16) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  br label %84

65:                                               ; preds = %52
  %66 = landingpad { ptr, i32 }
          cleanup
  %67 = extractvalue { ptr, i32 } %66, 0
  store ptr %67, ptr %17, align 8
  %68 = extractvalue { ptr, i32 } %66, 1
  store i32 %68, ptr %18, align 4
  br label %83

69:                                               ; preds = %57
  %70 = landingpad { ptr, i32 }
          cleanup
  %71 = extractvalue { ptr, i32 } %70, 0
  store ptr %71, ptr %17, align 8
  %72 = extractvalue { ptr, i32 } %70, 1
  store i32 %72, ptr %18, align 4
  br label %82

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

77:                                               ; preds = %62
  %78 = landingpad { ptr, i32 }
          cleanup
  %79 = extractvalue { ptr, i32 } %78, 0
  store ptr %79, ptr %17, align 8
  %80 = extractvalue { ptr, i32 } %78, 1
  store i32 %80, ptr %18, align 4
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %19) #7
  br label %81

81:                                               ; preds = %77, %73
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %15) #7
  br label %82

82:                                               ; preds = %81, %69
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %16) #7
  br label %83

83:                                               ; preds = %82, %65
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  br label %208

84:                                               ; preds = %63, %43
  %85 = getelementptr inbounds %"class.juce::CodeDocument", ptr %31, i32 0, i32 5
  store i32 -1, ptr %85, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 24, ptr %20) #7
  call void @_ZN4juce5ArrayIPNS_16CodeDocumentLineENS_20DummyCriticalSectionELi0EEC2Ev(ptr noundef nonnull align 8 dereferenceable(20) %20) #7
  call void @_ZN4juce9StringRefC1ERKNS_6StringE(ptr noundef nonnull align 8 dereferenceable(8) %21, ptr noundef nonnull align 8 dereferenceable(8) %12) #7
  invoke void @_ZN4juce16CodeDocumentLine11createLinesERNS_5ArrayIPS0_NS_20DummyCriticalSectionELi0EEENS_9StringRefE(ptr noundef nonnull align 8 dereferenceable(20) %20, ptr noundef %21)
          to label %86 unwind label %119

86:                                               ; preds = %84
  br label %87

87:                                               ; preds = %86
  br label %88

88:                                               ; preds = %87
  br label %89

89:                                               ; preds = %88
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #7
  %90 = invoke noundef ptr @_ZNK4juce5ArrayIPNS_16CodeDocumentLineENS_20DummyCriticalSectionELi0EE12getUncheckedEi(ptr noundef nonnull align 8 dereferenceable(20) %20, i32 noundef 0)
          to label %91 unwind label %123

91:                                               ; preds = %89
  store ptr %90, ptr %22, align 8, !tbaa !5
  %92 = load ptr, ptr %11, align 8, !tbaa !5
  %93 = icmp ne ptr %92, null
  br i1 %93, label %94, label %98

94:                                               ; preds = %91
  %95 = load ptr, ptr %11, align 8, !tbaa !5
  %96 = getelementptr inbounds %"class.juce::CodeDocumentLine", ptr %95, i32 0, i32 1
  %97 = load i32, ptr %96, align 8, !tbaa !41
  br label %99

98:                                               ; preds = %91
  br label %99

99:                                               ; preds = %98, %94
  %100 = phi i32 [ %97, %94 ], [ 0, %98 ]
  %101 = load ptr, ptr %22, align 8, !tbaa !5
  %102 = getelementptr inbounds %"class.juce::CodeDocumentLine", ptr %101, i32 0, i32 1
  store i32 %100, ptr %102, align 8, !tbaa !41
  %103 = getelementptr inbounds %"class.juce::CodeDocument", ptr %31, i32 0, i32 0
  %104 = load i32, ptr %10, align 4, !tbaa !9
  %105 = load ptr, ptr %22, align 8, !tbaa !5
  %106 = invoke noundef ptr @_ZN4juce10OwnedArrayINS_16CodeDocumentLineENS_20DummyCriticalSectionEE3setEiPS1_b(ptr noundef nonnull align 8 dereferenceable(20) %103, i32 noundef %104, ptr noundef %105, i1 noundef zeroext true)
          to label %107 unwind label %123

107:                                              ; preds = %99
  %108 = call noundef i32 @_ZNK4juce5ArrayIPNS_16CodeDocumentLineENS_20DummyCriticalSectionELi0EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20) %20) #7
  %109 = icmp sgt i32 %108, 1
  br i1 %109, label %110, label %127

110:                                              ; preds = %107
  %111 = getelementptr inbounds %"class.juce::CodeDocument", ptr %31, i32 0, i32 0
  %112 = load i32, ptr %10, align 4, !tbaa !9
  %113 = add nsw i32 %112, 1
  %114 = call noundef ptr @_ZN4juce5ArrayIPNS_16CodeDocumentLineENS_20DummyCriticalSectionELi0EE17getRawDataPointerEv(ptr noundef nonnull align 8 dereferenceable(20) %20) #7
  %115 = getelementptr inbounds ptr, ptr %114, i64 1
  %116 = call noundef i32 @_ZNK4juce5ArrayIPNS_16CodeDocumentLineENS_20DummyCriticalSectionELi0EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20) %20) #7
  %117 = sub nsw i32 %116, 1
  invoke void @_ZN4juce10OwnedArrayINS_16CodeDocumentLineENS_20DummyCriticalSectionEE11insertArrayEiPKPS1_i(ptr noundef nonnull align 8 dereferenceable(20) %111, i32 noundef %113, ptr noundef %115, i32 noundef %117)
          to label %118 unwind label %123

118:                                              ; preds = %110
  br label %127

119:                                              ; preds = %84
  %120 = landingpad { ptr, i32 }
          cleanup
  %121 = extractvalue { ptr, i32 } %120, 0
  store ptr %121, ptr %17, align 8
  %122 = extractvalue { ptr, i32 } %120, 1
  store i32 %122, ptr %18, align 4
  br label %207

123:                                              ; preds = %110, %99, %89
  %124 = landingpad { ptr, i32 }
          cleanup
  %125 = extractvalue { ptr, i32 } %124, 0
  store ptr %125, ptr %17, align 8
  %126 = extractvalue { ptr, i32 } %124, 1
  store i32 %126, ptr %18, align 4
  br label %206

127:                                              ; preds = %118, %107
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #7
  %128 = load ptr, ptr %22, align 8, !tbaa !5
  %129 = getelementptr inbounds %"class.juce::CodeDocumentLine", ptr %128, i32 0, i32 1
  %130 = load i32, ptr %129, align 8, !tbaa !41
  store i32 %130, ptr %23, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #7
  %131 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %131, ptr %24, align 4, !tbaa !9
  br label %132

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

137:                                              ; preds = %132
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #7
  br label %153

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

150:                                              ; preds = %138
  %151 = load i32, ptr %24, align 4, !tbaa !9
  %152 = add nsw i32 %151, 1
  store i32 %152, ptr %24, align 4, !tbaa !9
  br label %132, !llvm.loop !44

153:                                              ; preds = %137
  invoke void @_ZN4juce12CodeDocument19checkLastLineStatusEv(ptr noundef nonnull align 8 dereferenceable(232) %31)
          to label %154 unwind label %163

154:                                              ; preds = %153
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #7
  %155 = load ptr, ptr %6, align 8, !tbaa !5
  %156 = call noundef i32 @_ZNK4juce6String6lengthEv(ptr noundef nonnull align 8 dereferenceable(8) %155) #7
  store i32 %156, ptr %26, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #7
  store i32 0, ptr %27, align 4, !tbaa !9
  br label %157

157:                                              ; preds = %188, %154
  %158 = load i32, ptr %27, align 4, !tbaa !9
  %159 = getelementptr inbounds %"class.juce::CodeDocument", ptr %31, i32 0, i32 1
  %160 = call noundef i32 @_ZNK4juce5ArrayIPNS_12CodeDocument8PositionENS_20DummyCriticalSectionELi0EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20) %159) #7
  %161 = icmp slt i32 %158, %160
  br i1 %161, label %167, label %162

162:                                              ; preds = %157
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #7
  br label %191

163:                                              ; preds = %153
  %164 = landingpad { ptr, i32 }
          cleanup
  %165 = extractvalue { ptr, i32 } %164, 0
  store ptr %165, ptr %17, align 8
  %166 = extractvalue { ptr, i32 } %164, 1
  store i32 %166, ptr %18, align 4
  br label %205

167:                                              ; preds = %157
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #7
  %168 = getelementptr inbounds %"class.juce::CodeDocument", ptr %31, i32 0, i32 1
  %169 = load i32, ptr %27, align 4, !tbaa !9
  %170 = invoke noundef ptr @_ZNK4juce5ArrayIPNS_12CodeDocument8PositionENS_20DummyCriticalSectionELi0EE12getUncheckedEi(ptr noundef nonnull align 8 dereferenceable(20) %168, i32 noundef %169)
          to label %171 unwind label %183

171:                                              ; preds = %167
  store ptr %170, ptr %28, align 8, !tbaa !5
  %172 = load ptr, ptr %28, align 8, !tbaa !5
  %173 = call noundef i32 @_ZNK4juce12CodeDocument8Position11getPositionEv(ptr noundef nonnull align 8 dereferenceable(21) %172) #7
  %174 = load i32, ptr %7, align 4, !tbaa !9
  %175 = icmp sge i32 %173, %174
  br i1 %175, label %176, label %187

176:                                              ; preds = %171
  %177 = load ptr, ptr %28, align 8, !tbaa !5
  %178 = load ptr, ptr %28, align 8, !tbaa !5
  %179 = call noundef i32 @_ZNK4juce12CodeDocument8Position11getPositionEv(ptr noundef nonnull align 8 dereferenceable(21) %178) #7
  %180 = load i32, ptr %26, align 4, !tbaa !9
  %181 = add nsw i32 %179, %180
  invoke void @_ZN4juce12CodeDocument8Position11setPositionEi(ptr noundef nonnull align 8 dereferenceable(21) %177, i32 noundef %181)
          to label %182 unwind label %183

182:                                              ; preds = %176
  br label %187

183:                                              ; preds = %176, %167
  %184 = landingpad { ptr, i32 }
          cleanup
  %185 = extractvalue { ptr, i32 } %184, 0
  store ptr %185, ptr %17, align 8
  %186 = extractvalue { ptr, i32 } %184, 1
  store i32 %186, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #7
  br label %204

187:                                              ; preds = %182, %171
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #7
  br label %188

188:                                              ; preds = %187
  %189 = load i32, ptr %27, align 4, !tbaa !9
  %190 = add nsw i32 %189, 1
  store i32 %190, ptr %27, align 4, !tbaa !9
  br label %157, !llvm.loop !46

191:                                              ; preds = %162
  %192 = getelementptr inbounds %"class.juce::CodeDocument", ptr %31, i32 0, i32 7
  %193 = load ptr, ptr %6, align 8, !tbaa !5
  %194 = load i32, ptr %7, align 4, !tbaa !9
  store { i64, i64 } { i64 17, i64 0 }, ptr %29, align 8, !tbaa !47
  %195 = getelementptr inbounds { i64, i64 }, ptr %29, i32 0, i32 0
  %196 = load i64, ptr %195, align 8
  %197 = getelementptr inbounds { i64, i64 }, ptr %29, i32 0, i32 1
  %198 = load i64, ptr %197, align 8
  invoke void @_ZN4juce12ListenerListINS_12CodeDocument8ListenerENS_5ArrayIPS2_NS_20DummyCriticalSectionELi0EEEE4callIRKNS_6StringEiEEvMS2_FvT_T0_ENS_11TypeHelpers13ParameterTypeISC_E4typeENSH_ISD_E4typeE(ptr noundef nonnull align 8 dereferenceable(24) %192, i64 %196, i64 %198, ptr noundef nonnull align 8 dereferenceable(8) %193, i32 noundef %194)
          to label %199 unwind label %200

199:                                              ; preds = %191
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #7
  call void @_ZN4juce5ArrayIPNS_16CodeDocumentLineENS_20DummyCriticalSectionELi0EED2Ev(ptr noundef nonnull align 8 dereferenceable(20) %20) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %20) #7
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  call void @_ZN4juce12CodeDocument8PositionD1Ev(ptr noundef nonnull align 8 dereferenceable(21) %9) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %9) #7
  br label %209

200:                                              ; preds = %191
  %201 = landingpad { ptr, i32 }
          cleanup
  %202 = extractvalue { ptr, i32 } %201, 0
  store ptr %202, ptr %17, align 8
  %203 = extractvalue { ptr, i32 } %201, 1
  store i32 %203, ptr %18, align 4
  br label %204

204:                                              ; preds = %200, %183
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #7
  br label %205

205:                                              ; preds = %204, %163
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #7
  br label %206

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

207:                                              ; preds = %206, %119
  call void @_ZN4juce5ArrayIPNS_16CodeDocumentLineENS_20DummyCriticalSectionELi0EED2Ev(ptr noundef nonnull align 8 dereferenceable(20) %20) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %20) #7
  br label %208

208:                                              ; preds = %207, %83
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  call void @_ZN4juce12CodeDocument8PositionD1Ev(ptr noundef nonnull align 8 dereferenceable(21) %9) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %9) #7
  br label %211

209:                                              ; preds = %199, %37
  br label %210

210:                                              ; preds = %209, %4
  ret void

211:                                              ; preds = %208
  %212 = load ptr, ptr %17, align 8
  %213 = load i32, ptr %18, align 4
  %214 = insertvalue { ptr, i32 } poison, ptr %212, 0
  %215 = insertvalue { ptr, i32 } %214, i32 %213, 1
  resume { ptr, i32 } %215
}

; 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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4juce24CodeDocumentInsertActionC2ERNS_12CodeDocumentERKNS_6StringEi(ptr noundef nonnull align 8 dereferenceable(28), ptr noundef nonnull align 8 dereferenceable(232), ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) unnamed_addr #5 align 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: mustprogress nounwind uwtable
declare dso_local void @_ZN4juce5ArrayIPNS_16CodeDocumentLineENS_20DummyCriticalSectionELi0EEC2Ev(ptr noundef nonnull align 8 dereferenceable(20)) unnamed_addr #5 align 2

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

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

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

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

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

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

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

; 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 uwtable
declare dso_local void @_ZN4juce12ListenerListINS_12CodeDocument8ListenerENS_5ArrayIPS2_NS_20DummyCriticalSectionELi0EEEE4callIRKNS_6StringEiEEvMS2_FvT_T0_ENS_11TypeHelpers13ParameterTypeISC_E4typeENSH_ISD_E4typeE(ptr noundef nonnull align 8 dereferenceable(24), i64, i64, ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4juce5ArrayIPNS_16CodeDocumentLineENS_20DummyCriticalSectionELi0EED2Ev(ptr noundef nonnull align 8 dereferenceable(20)) unnamed_addr #5 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 = { nounwind }
attributes #8 = { builtin allocsize(0) }

!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] }>
%"class.juce::Array.35" = 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::StringRef" = type { %"class.juce::CharPointer_UTF8" }

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

; 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 void @_ZN4juce9StringRefC1ERKNS_6StringE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #0

; 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 ptr @_ZNK4juce10OwnedArrayINS_16CodeDocumentLineENS_20DummyCriticalSectionEEixEi(ptr noundef nonnull align 8 dereferenceable(20), i32 noundef) local_unnamed_addr #3 align 2

; 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 @_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 uwtable
define dso_local void @_ZN4juce12CodeDocument6insertERKNS_6StringEib(ptr noundef nonnull align 8 dereferenceable(232) %0, ptr noundef nonnull align 8 dereferenceable(8) %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::String", 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::Array.35", align 8
  %12 = alloca %"class.juce::StringRef", align 8
  %13 = tail call noundef zeroext i1 @_ZNK4juce6String10isNotEmptyEv(ptr noundef nonnull align 8 dereferenceable(8) %1) #7
  br i1 %13, label %14, label %100

14:                                               ; preds = %4
  br i1 %3, label %15, label %19

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

19:                                               ; preds = %14
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #7
  call void @_ZN4juce12CodeDocument8PositionC1ERKS0_i(ptr noundef nonnull align 8 dereferenceable(21) %5, ptr noundef nonnull align 8 dereferenceable(232) %0, i32 noundef %2) #7
  %20 = call noundef i32 @_ZNK4juce12CodeDocument8Position13getLineNumberEv(ptr noundef nonnull align 8 dereferenceable(21) %5) #7
  %21 = call noundef ptr @_ZNK4juce10OwnedArrayINS_16CodeDocumentLineENS_20DummyCriticalSectionEEixEi(ptr noundef nonnull align 8 dereferenceable(20) %0, i32 noundef %20) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #7
  call void @_ZN4juce6StringC1ERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %1) #7
  %.not = icmp eq ptr %21, null
  br i1 %.not, label %40, label %22

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

24:                                               ; preds = %22
  invoke void @_ZN4juceplENS_6StringERKS0_(ptr dead_on_unwind nonnull writable sret(%"class.juce::String") align 8 %8, ptr noundef nonnull %9, ptr noundef nonnull align 8 dereferenceable(8) %6)
          to label %25 unwind label %31

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

26:                                               ; preds = %25
  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) %10)
          to label %27 unwind label %35

27:                                               ; preds = %26
  %28 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4juce6StringaSEOS0_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #7
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #7
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #7
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #7
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  br label %40

29:                                               ; preds = %22
  %30 = landingpad { ptr, i32 }
          cleanup
  br label %39

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

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

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

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

38:                                               ; preds = %37, %31
  %.pn.pn = phi { ptr, i32 } [ %.pn, %37 ], [ %32, %31 ]
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #7
  br label %39

39:                                               ; preds = %38, %29
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %38 ], [ %30, %29 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  br label %99

40:                                               ; preds = %27, %19
  %41 = getelementptr inbounds i8, ptr %0, i64 192
  store i32 -1, ptr %41, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %11) #7
  call void @_ZN4juce5ArrayIPNS_16CodeDocumentLineENS_20DummyCriticalSectionELi0EEC2Ev(ptr noundef nonnull align 8 dereferenceable(20) %11) #7
  call void @_ZN4juce9StringRefC1ERKNS_6StringE(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %6) #7
  invoke void @_ZN4juce16CodeDocumentLine11createLinesERNS_5ArrayIPS0_NS_20DummyCriticalSectionELi0EEENS_9StringRefE(ptr noundef nonnull align 8 dereferenceable(20) %11, ptr noundef nonnull %12)
          to label %42 unwind label %60

42:                                               ; preds = %40
  %43 = call noundef ptr @_ZNK4juce5ArrayIPNS_16CodeDocumentLineENS_20DummyCriticalSectionELi0EE12getUncheckedEi(ptr noundef nonnull align 8 dereferenceable(20) %11, i32 noundef 0)
  br i1 %.not, label %47, label %44

44:                                               ; preds = %42
  %45 = getelementptr inbounds i8, ptr %21, i64 8
  %46 = load i32, ptr %45, align 8, !tbaa !36
  br label %47

47:                                               ; preds = %42, %44
  %48 = phi i32 [ %46, %44 ], [ 0, %42 ]
  %49 = getelementptr inbounds i8, ptr %43, i64 8
  store i32 %48, ptr %49, align 8, !tbaa !36
  %50 = invoke noundef ptr @_ZN4juce10OwnedArrayINS_16CodeDocumentLineENS_20DummyCriticalSectionEE3setEiPS1_b(ptr noundef nonnull align 8 dereferenceable(20) %0, i32 noundef %20, ptr noundef nonnull %43, i1 noundef zeroext true)
          to label %51 unwind label %62

51:                                               ; preds = %47
  %52 = call noundef i32 @_ZNK4juce5ArrayIPNS_16CodeDocumentLineENS_20DummyCriticalSectionELi0EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20) %11) #7
  %53 = icmp sgt i32 %52, 1
  br i1 %53, label %54, label %64

54:                                               ; preds = %51
  %55 = add nsw i32 %20, 1
  %56 = call noundef ptr @_ZN4juce5ArrayIPNS_16CodeDocumentLineENS_20DummyCriticalSectionELi0EE17getRawDataPointerEv(ptr noundef nonnull align 8 dereferenceable(20) %11) #7
  %57 = getelementptr inbounds i8, ptr %56, i64 8
  %58 = call noundef i32 @_ZNK4juce5ArrayIPNS_16CodeDocumentLineENS_20DummyCriticalSectionELi0EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20) %11) #7
  %59 = add nsw i32 %58, -1
  invoke void @_ZN4juce10OwnedArrayINS_16CodeDocumentLineENS_20DummyCriticalSectionEE11insertArrayEiPKPS1_i(ptr noundef nonnull align 8 dereferenceable(20) %0, i32 noundef %55, ptr noundef nonnull %57, i32 noundef %59)
          to label %64 unwind label %62

60:                                               ; preds = %40
  %61 = landingpad { ptr, i32 }
          cleanup
  br label %98

62:                                               ; preds = %54, %47
  %63 = landingpad { ptr, i32 }
          cleanup
  br label %98

64:                                               ; preds = %54, %51
  %65 = load i32, ptr %49, align 8, !tbaa !36
  %66 = call noundef i32 @_ZNK4juce10OwnedArrayINS_16CodeDocumentLineENS_20DummyCriticalSectionEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20) %0) #7
  %67 = icmp slt i32 %20, %66
  br i1 %67, label %.lr.ph, label %._crit_edge

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

.lr.ph:                                           ; preds = %64, %.lr.ph
  %.04864 = phi i32 [ %72, %.lr.ph ], [ %65, %64 ]
  %.05063 = phi i32 [ %73, %.lr.ph ], [ %20, %64 ]
  %68 = call noundef ptr @_ZNK4juce10OwnedArrayINS_16CodeDocumentLineENS_20DummyCriticalSectionEE12getUncheckedEi(ptr noundef nonnull align 8 dereferenceable(20) %0, i32 noundef %.05063) #7
  %69 = getelementptr inbounds i8, ptr %68, i64 8
  store i32 %.04864, ptr %69, align 8, !tbaa !36
  %70 = getelementptr inbounds i8, ptr %68, i64 12
  %71 = load i32, ptr %70, align 4, !tbaa !38
  %72 = add nsw i32 %71, %.04864
  %73 = add nsw i32 %.05063, 1
  %74 = call noundef i32 @_ZNK4juce10OwnedArrayINS_16CodeDocumentLineENS_20DummyCriticalSectionEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20) %0) #7
  %75 = icmp slt i32 %73, %74
  br i1 %75, label %.lr.ph, label %._crit_edge, !llvm.loop !39

76:                                               ; preds = %._crit_edge
  %77 = call noundef i32 @_ZNK4juce6String6lengthEv(ptr noundef nonnull align 8 dereferenceable(8) %1) #7
  %78 = getelementptr inbounds i8, ptr %0, i64 24
  %79 = call noundef i32 @_ZNK4juce5ArrayIPNS_12CodeDocument8PositionENS_20DummyCriticalSectionELi0EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20) %78) #7
  %80 = icmp sgt i32 %79, 0
  br i1 %80, label %.lr.ph67, label %._crit_edge68

._crit_edge68:                                    ; preds = %91, %76
  %81 = getelementptr inbounds i8, ptr %0, i64 200
  invoke void @_ZN4juce12ListenerListINS_12CodeDocument8ListenerENS_5ArrayIPS2_NS_20DummyCriticalSectionELi0EEEE4callIRKNS_6StringEiEEvMS2_FvT_T0_ENS_11TypeHelpers13ParameterTypeISC_E4typeENSH_ISD_E4typeE(ptr noundef nonnull align 8 dereferenceable(24) %81, i64 17, i64 0, ptr noundef nonnull align 8 dereferenceable(8) %1, i32 noundef %2)
          to label %95 unwind label %96

82:                                               ; preds = %._crit_edge
  %83 = landingpad { ptr, i32 }
          cleanup
  br label %98

.lr.ph67:                                         ; preds = %76, %91
  %.04965 = phi i32 [ %92, %91 ], [ 0, %76 ]
  %84 = call noundef ptr @_ZNK4juce5ArrayIPNS_12CodeDocument8PositionENS_20DummyCriticalSectionELi0EE12getUncheckedEi(ptr noundef nonnull align 8 dereferenceable(20) %78, i32 noundef %.04965)
  %85 = call noundef i32 @_ZNK4juce12CodeDocument8Position11getPositionEv(ptr noundef nonnull align 8 dereferenceable(21) %84) #7
  %.not56 = icmp slt i32 %85, %2
  br i1 %.not56, label %91, label %86

86:                                               ; preds = %.lr.ph67
  %87 = call noundef i32 @_ZNK4juce12CodeDocument8Position11getPositionEv(ptr noundef nonnull align 8 dereferenceable(21) %84) #7
  %88 = add nsw i32 %87, %77
  invoke void @_ZN4juce12CodeDocument8Position11setPositionEi(ptr noundef nonnull align 8 dereferenceable(21) %84, i32 noundef %88)
          to label %91 unwind label %89

89:                                               ; preds = %86
  %90 = landingpad { ptr, i32 }
          cleanup
  br label %98

91:                                               ; preds = %86, %.lr.ph67
  %92 = add nuw nsw i32 %.04965, 1
  %93 = call noundef i32 @_ZNK4juce5ArrayIPNS_12CodeDocument8PositionENS_20DummyCriticalSectionELi0EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20) %78) #7
  %94 = icmp slt i32 %92, %93
  br i1 %94, label %.lr.ph67, label %._crit_edge68, !llvm.loop !41

95:                                               ; preds = %._crit_edge68
  call void @_ZN4juce5ArrayIPNS_16CodeDocumentLineENS_20DummyCriticalSectionELi0EED2Ev(ptr noundef nonnull align 8 dereferenceable(20) %11) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #7
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  call void @_ZN4juce12CodeDocument8PositionD1Ev(ptr noundef nonnull align 8 dereferenceable(21) %5) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #7
  br label %100

96:                                               ; preds = %._crit_edge68
  %97 = landingpad { ptr, i32 }
          cleanup
  br label %98

98:                                               ; preds = %62, %89, %96, %82, %60
  %.pn57.pn.pn.pn = phi { ptr, i32 } [ %61, %60 ], [ %63, %62 ], [ %83, %82 ], [ %90, %89 ], [ %97, %96 ]
  call void @_ZN4juce5ArrayIPNS_16CodeDocumentLineENS_20DummyCriticalSectionELi0EED2Ev(ptr noundef nonnull align 8 dereferenceable(20) %11) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #7
  br label %99

99:                                               ; preds = %98, %39
  %.pn57.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn57.pn.pn.pn, %98 ], [ %.pn.pn.pn, %39 ]
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  call void @_ZN4juce12CodeDocument8PositionD1Ev(ptr noundef nonnull align 8 dereferenceable(21) %5) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #7
  resume { ptr, i32 } %.pn57.pn.pn.pn.pn

100:                                              ; preds = %15, %95, %4
  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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4juce24CodeDocumentInsertActionC2ERNS_12CodeDocumentERKNS_6StringEi(ptr noundef nonnull align 8 dereferenceable(28), ptr noundef nonnull align 8 dereferenceable(232), ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) unnamed_addr #5 align 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: mustprogress nounwind uwtable
declare dso_local void @_ZN4juce5ArrayIPNS_16CodeDocumentLineENS_20DummyCriticalSectionELi0EEC2Ev(ptr noundef nonnull align 8 dereferenceable(20)) unnamed_addr #5 align 2

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

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

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

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

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

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

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

; 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 uwtable
declare dso_local void @_ZN4juce12ListenerListINS_12CodeDocument8ListenerENS_5ArrayIPS2_NS_20DummyCriticalSectionELi0EEEE4callIRKNS_6StringEiEEvMS2_FvT_T0_ENS_11TypeHelpers13ParameterTypeISC_E4typeENSH_ISD_E4typeE(ptr noundef nonnull align 8 dereferenceable(24), i64, i64, ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4juce5ArrayIPNS_16CodeDocumentLineENS_20DummyCriticalSectionELi0EED2Ev(ptr noundef nonnull align 8 dereferenceable(20)) unnamed_addr #5 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 = { nounwind }
attributes #8 = { builtin allocsize(0) }

!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: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass