; 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::CodeDocument::Iterator" = type { ptr, %"class.juce::CharPointer_UTF8", i32, i32 }
%"class.juce::CharPointer_UTF8" = type { ptr }
%"class.juce::CodeDocument::Position" = type <{ ptr, i32, i32, i32, i8, [3 x i8] }>
%"class.juce::CodeEditorComponent" = type { %"class.juce::Component.base", %"class.juce::ApplicationCommandTarget", %"class.juce::TextInputTarget", ptr, %"class.juce::Font", i32, i32, float, i32, i32, i32, i32, i32, i8, i8, i8, i8, double, %"class.juce::CodeDocument::Position", %"class.juce::CodeDocument::Position", %"class.juce::CodeDocument::Position", %"class.juce::ScopedPointer.60", %"class.juce::ScrollBar", %"class.juce::ScrollBar", ptr, %"class.juce::ScopedPointer.68", %"class.juce::ScopedPointer.69", i32, ptr, %"struct.juce::CodeEditorComponent::ColourScheme", %"class.juce::OwnedArray.75", %"class.juce::OwnedArray.80" }
%"class.juce::Component.base" = type <{ %"class.juce::MouseListener", %"class.juce::String", %"class.juce::String", ptr, %"class.juce::Rectangle", %"class.juce::ScopedPointer", %"class.juce::ScopedPointer.37", %"class.juce::Array.38", ptr, %"class.juce::MouseCursor", ptr, %"class.juce::ScopedPointer.43", %"class.juce::ScopedPointer.44", %"class.juce::ScopedPointer.45", %"class.juce::ListenerList.46", %"class.juce::NamedValueSet", %"class.juce::WeakReference<juce::Component>::Master", %union.anon, i8 }>
%"class.juce::MouseListener" = type { ptr }
%"class.juce::String" = type { %"class.juce::CharPointer_UTF8" }
%"class.juce::Rectangle" = type { %"class.juce::Point", i32, i32 }
%"class.juce::Point" = type { i32, i32 }
%"class.juce::ScopedPointer" = type { ptr }
%"class.juce::ScopedPointer.37" = type { ptr }
%"class.juce::Array.38" = type { %"class.juce::ArrayAllocationBase.39", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.39" = type <{ %"class.juce::HeapBlock.40", i32, [4 x i8] }>
%"class.juce::HeapBlock.40" = type { ptr }
%"class.juce::MouseCursor" = type { ptr }
%"class.juce::ScopedPointer.43" = type { ptr }
%"class.juce::ScopedPointer.44" = type { ptr }
%"class.juce::ScopedPointer.45" = type { ptr }
%"class.juce::ListenerList.46" = type { %"class.juce::Array.47" }
%"class.juce::Array.47" = type { %"class.juce::ArrayAllocationBase.48", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.48" = type <{ %"class.juce::HeapBlock.49", i32, [4 x i8] }>
%"class.juce::HeapBlock.49" = type { ptr }
%"class.juce::NamedValueSet" = type { %"class.juce::Array.52" }
%"class.juce::Array.52" = type { %"class.juce::ArrayAllocationBase.53", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.53" = type <{ %"class.juce::HeapBlock.54", i32, [4 x i8] }>
%"class.juce::HeapBlock.54" = type { ptr }
%"class.juce::WeakReference<juce::Component>::Master" = type { %"class.juce::ReferenceCountedObjectPtr.57" }
%"class.juce::ReferenceCountedObjectPtr.57" = type { ptr }
%union.anon = type { i32 }
%"class.juce::ApplicationCommandTarget" = type { ptr, %"class.juce::WeakReference<juce::ApplicationCommandTarget>::Master" }
%"class.juce::WeakReference<juce::ApplicationCommandTarget>::Master" = type { %"class.juce::ReferenceCountedObjectPtr.58" }
%"class.juce::ReferenceCountedObjectPtr.58" = type { ptr }
%"class.juce::TextInputTarget" = type { ptr }
%"class.juce::Font" = type { %"class.juce::ReferenceCountedObjectPtr.59" }
%"class.juce::ReferenceCountedObjectPtr.59" = type { ptr }
%"class.juce::ScopedPointer.60" = type { ptr }
%"class.juce::ScrollBar" = type { %"class.juce::Component.base", %"class.juce::AsyncUpdater", %"class.juce::Timer", %"class.juce::Range", %"class.juce::Range", double, double, i32, i32, i32, i32, i32, i32, i32, i32, i32, i8, i8, i8, %"class.juce::ScopedPointer.61", %"class.juce::ScopedPointer.61", %"class.juce::ListenerList.62" }
%"class.juce::AsyncUpdater" = type { ptr, %"class.juce::ReferenceCountedObjectPtr" }
%"class.juce::ReferenceCountedObjectPtr" = type { ptr }
%"class.juce::Timer" = type { ptr, i32, i32, ptr, ptr }
%"class.juce::Range" = type { double, double }
%"class.juce::ScopedPointer.61" = type { ptr }
%"class.juce::ListenerList.62" = type { %"class.juce::Array.63" }
%"class.juce::Array.63" = type { %"class.juce::ArrayAllocationBase.64", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.64" = type <{ %"class.juce::HeapBlock.65", i32, [4 x i8] }>
%"class.juce::HeapBlock.65" = type { ptr }
%"class.juce::ScopedPointer.68" = type { ptr }
%"class.juce::ScopedPointer.69" = type { ptr }
%"struct.juce::CodeEditorComponent::ColourScheme" = type { %"class.juce::Array.70" }
%"class.juce::Array.70" = type { %"class.juce::ArrayAllocationBase.71", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.71" = type <{ %"class.juce::HeapBlock.72", i32, [4 x i8] }>
%"class.juce::HeapBlock.72" = type { ptr }
%"class.juce::OwnedArray.75" = type { %"class.juce::ArrayAllocationBase.76", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.76" = type <{ %"class.juce::HeapBlock.77", i32, [4 x i8] }>
%"class.juce::HeapBlock.77" = type { ptr }
%"class.juce::OwnedArray.80" = type { %"class.juce::ArrayAllocationBase.81", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.81" = type <{ %"class.juce::HeapBlock.82", i32, [4 x i8] }>
%"class.juce::HeapBlock.82" = type { ptr }

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

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) #0

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4juce19CodeEditorComponent17rebuildLineTokensEv(ptr noundef nonnull align 8 dereferenceable(1232) %0) #4 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca %"class.juce::CodeDocument::Iterator", align 8
  %8 = alloca %"class.juce::CodeDocument::Position", align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  %12 = load ptr, ptr %2, align 8
  %13 = getelementptr inbounds %"class.juce::CodeEditorComponent", ptr %12, i32 0, i32 25
  %14 = call noundef ptr @_ZNK4juce13ScopedPointerINS_19CodeEditorComponent5PimplEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #7
  %15 = getelementptr inbounds i8, ptr %14, i64 32
  call void @_ZN4juce12AsyncUpdater19cancelPendingUpdateEv(ptr noundef nonnull align 8 dereferenceable(16) %15) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #7
  %16 = getelementptr inbounds %"class.juce::CodeEditorComponent", ptr %12, i32 0, i32 9
  %17 = load i32, ptr %16, align 8, !tbaa !9
  %18 = add nsw i32 %17, 1
  store i32 %18, ptr %3, align 4, !tbaa !71
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #7
  %19 = load i32, ptr %3, align 4, !tbaa !71
  store i32 %19, ptr %4, align 4, !tbaa !71
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #7
  store i32 0, ptr %5, align 4, !tbaa !71
  %20 = load i32, ptr %3, align 4, !tbaa !71
  %21 = getelementptr inbounds %"class.juce::CodeEditorComponent", ptr %12, i32 0, i32 30
  %22 = call noundef i32 @_ZNK4juce10OwnedArrayINS_19CodeEditorComponent14CodeEditorLineENS_20DummyCriticalSectionEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20) %21) #7
  %23 = icmp ne i32 %20, %22
  br i1 %23, label %24, label %38

24:                                               ; preds = %1
  %25 = getelementptr inbounds %"class.juce::CodeEditorComponent", ptr %12, i32 0, i32 30
  call void @_ZN4juce10OwnedArrayINS_19CodeEditorComponent14CodeEditorLineENS_20DummyCriticalSectionEE5clearEb(ptr noundef nonnull align 8 dereferenceable(20) %25, i1 noundef zeroext true)
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #7
  %26 = load i32, ptr %3, align 4, !tbaa !71
  store i32 %26, ptr %6, align 4, !tbaa !71
  br label %27

27:                                               ; preds = %32, %24
  %28 = load i32, ptr %6, align 4, !tbaa !71
  %29 = add nsw i32 %28, -1
  store i32 %29, ptr %6, align 4, !tbaa !71
  %30 = icmp sge i32 %29, 0
  br i1 %30, label %32, label %31

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

32:                                               ; preds = %27
  %33 = getelementptr inbounds %"class.juce::CodeEditorComponent", ptr %12, i32 0, i32 30
  %34 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 32) #8
  call void @_ZN4juce19CodeEditorComponent14CodeEditorLineC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %34) #7
  %35 = call noundef ptr @_ZN4juce10OwnedArrayINS_19CodeEditorComponent14CodeEditorLineENS_20DummyCriticalSectionEE3addEPS2_(ptr noundef nonnull align 8 dereferenceable(20) %33, ptr noundef %34) #7
  br label %27, !llvm.loop !72

36:                                               ; preds = %31
  store i32 0, ptr %4, align 4, !tbaa !71
  %37 = load i32, ptr %3, align 4, !tbaa !71
  store i32 %37, ptr %5, align 4, !tbaa !71
  br label %38

38:                                               ; preds = %36, %1
  br label %39

39:                                               ; preds = %38
  br label %40

40:                                               ; preds = %39
  br label %41

41:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 24, ptr %7) #7
  %42 = getelementptr inbounds %"class.juce::CodeEditorComponent", ptr %12, i32 0, i32 3
  %43 = load ptr, ptr %42, align 8, !tbaa !74
  call void @_ZN4juce12CodeDocument8IteratorC1ERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 8 dereferenceable(232) %43) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr %8) #7
  %44 = getelementptr inbounds %"class.juce::CodeEditorComponent", ptr %12, i32 0, i32 3
  %45 = load ptr, ptr %44, align 8, !tbaa !74
  %46 = getelementptr inbounds %"class.juce::CodeEditorComponent", ptr %12, i32 0, i32 5
  %47 = load i32, ptr %46, align 8, !tbaa !75
  call void @_ZN4juce12CodeDocument8PositionC1ERKS0_ii(ptr noundef nonnull align 8 dereferenceable(21) %8, ptr noundef nonnull align 8 dereferenceable(232) %45, i32 noundef %47, i32 noundef 0) #7
  %48 = call noundef i32 @_ZNK4juce12CodeDocument8Position11getPositionEv(ptr noundef nonnull align 8 dereferenceable(21) %8) #7
  invoke void @_ZN4juce19CodeEditorComponent22getIteratorForPositionEiRNS_12CodeDocument8IteratorE(ptr noundef nonnull align 8 dereferenceable(1232) %12, i32 noundef %48, ptr noundef nonnull align 8 dereferenceable(24) %7)
          to label %49 unwind label %55

49:                                               ; preds = %41
  call void @_ZN4juce12CodeDocument8PositionD1Ev(ptr noundef nonnull align 8 dereferenceable(21) %8) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %8) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  store i32 0, ptr %11, align 4, !tbaa !71
  br label %50

50:                                               ; preds = %91, %49
  %51 = load i32, ptr %11, align 4, !tbaa !71
  %52 = load i32, ptr %3, align 4, !tbaa !71
  %53 = icmp slt i32 %51, %52
  br i1 %53, label %59, label %54

54:                                               ; preds = %50
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  br label %94

55:                                               ; preds = %41
  %56 = landingpad { ptr, i32 }
          cleanup
  %57 = extractvalue { ptr, i32 } %56, 0
  store ptr %57, ptr %9, align 8
  %58 = extractvalue { ptr, i32 } %56, 1
  store i32 %58, ptr %10, align 4
  call void @_ZN4juce12CodeDocument8PositionD1Ev(ptr noundef nonnull align 8 dereferenceable(21) %8) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %8) #7
  br label %132

59:                                               ; preds = %50
  %60 = getelementptr inbounds %"class.juce::CodeEditorComponent", ptr %12, i32 0, i32 30
  %61 = load i32, ptr %11, align 4, !tbaa !71
  %62 = call noundef ptr @_ZNK4juce10OwnedArrayINS_19CodeEditorComponent14CodeEditorLineENS_20DummyCriticalSectionEE12getUncheckedEi(ptr noundef nonnull align 8 dereferenceable(20) %60, i32 noundef %61) #7
  %63 = getelementptr inbounds %"class.juce::CodeEditorComponent", ptr %12, i32 0, i32 3
  %64 = load ptr, ptr %63, align 8, !tbaa !74
  %65 = getelementptr inbounds %"class.juce::CodeEditorComponent", ptr %12, i32 0, i32 5
  %66 = load i32, ptr %65, align 8, !tbaa !75
  %67 = load i32, ptr %11, align 4, !tbaa !71
  %68 = add nsw i32 %66, %67
  %69 = getelementptr inbounds %"class.juce::CodeEditorComponent", ptr %12, i32 0, i32 28
  %70 = load ptr, ptr %69, align 8, !tbaa !76
  %71 = getelementptr inbounds %"class.juce::CodeEditorComponent", ptr %12, i32 0, i32 6
  %72 = load i32, ptr %71, align 4, !tbaa !77
  %73 = getelementptr inbounds %"class.juce::CodeEditorComponent", ptr %12, i32 0, i32 19
  %74 = getelementptr inbounds %"class.juce::CodeEditorComponent", ptr %12, i32 0, i32 20
  %75 = invoke noundef zeroext i1 @_ZN4juce19CodeEditorComponent14CodeEditorLine6updateERNS_12CodeDocumentEiRNS2_8IteratorEPNS_13CodeTokeniserEiRKNS2_8PositionESA_(ptr noundef nonnull align 8 dereferenceable(32) %62, ptr noundef nonnull align 8 dereferenceable(232) %64, i32 noundef %68, ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef %70, i32 noundef %72, ptr noundef nonnull align 8 dereferenceable(21) %73, ptr noundef nonnull align 8 dereferenceable(21) %74)
          to label %76 unwind label %86

76:                                               ; preds = %59
  br i1 %75, label %77, label %90

77:                                               ; preds = %76
  %78 = load i32, ptr %4, align 4, !tbaa !71
  %79 = load i32, ptr %11, align 4, !tbaa !71
  %80 = invoke noundef i32 @_ZN4juce4jminIiEET_S1_S1_(i32 noundef %78, i32 noundef %79)
          to label %81 unwind label %86

81:                                               ; preds = %77
  store i32 %80, ptr %4, align 4, !tbaa !71
  %82 = load i32, ptr %5, align 4, !tbaa !71
  %83 = load i32, ptr %11, align 4, !tbaa !71
  %84 = invoke noundef i32 @_ZN4juce4jmaxIiEET_S1_S1_(i32 noundef %82, i32 noundef %83)
          to label %85 unwind label %86

85:                                               ; preds = %81
  store i32 %84, ptr %5, align 4, !tbaa !71
  br label %90

86:                                               ; preds = %81, %77, %59
  %87 = landingpad { ptr, i32 }
          cleanup
  %88 = extractvalue { ptr, i32 } %87, 0
  store ptr %88, ptr %9, align 8
  %89 = extractvalue { ptr, i32 } %87, 1
  store i32 %89, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  br label %132

90:                                               ; preds = %85, %76
  br label %91

91:                                               ; preds = %90
  %92 = load i32, ptr %11, align 4, !tbaa !71
  %93 = add nsw i32 %92, 1
  store i32 %93, ptr %11, align 4, !tbaa !71
  br label %50, !llvm.loop !78

94:                                               ; preds = %54
  %95 = load i32, ptr %4, align 4, !tbaa !71
  %96 = load i32, ptr %5, align 4, !tbaa !71
  %97 = icmp sle i32 %95, %96
  br i1 %97, label %98, label %119

98:                                               ; preds = %94
  %99 = getelementptr inbounds %"class.juce::CodeEditorComponent", ptr %12, i32 0, i32 8
  %100 = load i32, ptr %99, align 4, !tbaa !79
  %101 = load i32, ptr %4, align 4, !tbaa !71
  %102 = mul nsw i32 %100, %101
  %103 = sub nsw i32 %102, 1
  %104 = getelementptr inbounds %"class.juce::CodeEditorComponent", ptr %12, i32 0, i32 22
  %105 = call noundef i32 @_ZNK4juce9Component4getXEv(ptr noundef nonnull align 8 dereferenceable(197) %104) #7
  %106 = getelementptr inbounds %"class.juce::CodeEditorComponent", ptr %12, i32 0, i32 8
  %107 = load i32, ptr %106, align 4, !tbaa !79
  %108 = load i32, ptr %5, align 4, !tbaa !71
  %109 = add nsw i32 1, %108
  %110 = load i32, ptr %4, align 4, !tbaa !71
  %111 = sub nsw i32 %109, %110
  %112 = mul nsw i32 %107, %111
  %113 = add nsw i32 %112, 2
  invoke void @_ZN4juce9Component7repaintEiiii(ptr noundef nonnull align 8 dereferenceable(197) %12, i32 noundef 0, i32 noundef %103, i32 noundef %105, i32 noundef %113)
          to label %114 unwind label %115

114:                                              ; preds = %98
  br label %119

115:                                              ; preds = %123, %98
  %116 = landingpad { ptr, i32 }
          cleanup
  %117 = extractvalue { ptr, i32 } %116, 0
  store ptr %117, ptr %9, align 8
  %118 = extractvalue { ptr, i32 } %116, 1
  store i32 %118, ptr %10, align 4
  br label %132

119:                                              ; preds = %114, %94
  %120 = getelementptr inbounds %"class.juce::CodeEditorComponent", ptr %12, i32 0, i32 26
  %121 = call noundef ptr @_ZNK4juce13ScopedPointerINS_19CodeEditorComponent15GutterComponentEEcvPS2_Ev(ptr noundef nonnull align 8 dereferenceable(8) %120) #7
  %122 = icmp ne ptr %121, null
  br i1 %122, label %123, label %131

123:                                              ; preds = %119
  %124 = getelementptr inbounds %"class.juce::CodeEditorComponent", ptr %12, i32 0, i32 26
  %125 = call noundef ptr @_ZNK4juce13ScopedPointerINS_19CodeEditorComponent15GutterComponentEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %124) #7
  %126 = getelementptr inbounds %"class.juce::CodeEditorComponent", ptr %12, i32 0, i32 3
  %127 = load ptr, ptr %126, align 8, !tbaa !74
  %128 = getelementptr inbounds %"class.juce::CodeEditorComponent", ptr %12, i32 0, i32 5
  %129 = load i32, ptr %128, align 8, !tbaa !75
  invoke void @_ZN4juce19CodeEditorComponent15GutterComponent15documentChangedERNS_12CodeDocumentEi(ptr noundef nonnull align 8 dereferenceable(208) %125, ptr noundef nonnull align 8 dereferenceable(232) %127, i32 noundef %129)
          to label %130 unwind label %115

130:                                              ; preds = %123
  br label %131

131:                                              ; preds = %130, %119
  call void @_ZN4juce12CodeDocument8IteratorD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #7
  ret void

132:                                              ; preds = %115, %86, %55
  call void @_ZN4juce12CodeDocument8IteratorD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #7
  br label %133

133:                                              ; preds = %132
  %134 = load ptr, ptr %9, align 8
  %135 = load i32, ptr %10, align 4
  %136 = insertvalue { ptr, i32 } poison, ptr %134, 0
  %137 = insertvalue { ptr, i32 } %136, i32 %135, 1
  resume { ptr, i32 } %137
}

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK4juce9Component4getXEv(ptr noundef nonnull align 8 dereferenceable(197)) #1 align 2

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

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

; Function Attrs: nounwind
declare void @_ZN4juce12AsyncUpdater19cancelPendingUpdateEv(ptr noundef nonnull align 8 dereferenceable(16)) #5

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4juce19CodeEditorComponent14CodeEditorLineC2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN4juce19CodeEditorComponent14CodeEditorLine6updateERNS_12CodeDocumentEiRNS2_8IteratorEPNS_13CodeTokeniserEiRKNS2_8PositionESA_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(232), i32 noundef, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef, i32 noundef, ptr noundef nonnull align 8 dereferenceable(21), ptr noundef nonnull align 8 dereferenceable(21)) #4 align 2

declare void @_ZN4juce9Component7repaintEiiii(ptr noundef nonnull align 8 dereferenceable(197), i32 noundef, i32 noundef, i32 noundef, i32 noundef) #6

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

declare void @_ZN4juce12CodeDocument8IteratorC1ERKS0_(ptr, ptr)

declare void @_ZN4juce12CodeDocument8IteratorD1Ev(ptr)

declare void @_ZN4juce12CodeDocument8PositionC1ERKS0_ii(ptr, ptr, i32, i32)

declare void @_ZN4juce12CodeDocument8PositionD1Ev(ptr)

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nobuiltin allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind "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 = { "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, !17, i64 256}
!10 = !{!"_ZTSN4juce19CodeEditorComponentE", !11, i64 0, !37, i64 200, !40, i64 216, !6, i64 224, !41, i64 232, !17, i64 240, !17, i64 244, !43, i64 248, !17, i64 252, !17, i64 256, !17, i64 260, !17, i64 264, !17, i64 268, !44, i64 272, !44, i64 273, !44, i64 274, !44, i64 275, !45, i64 280, !46, i64 288, !46, i64 312, !46, i64 336, !47, i64 360, !48, i64 368, !48, i64 744, !6, i64 1120, !58, i64 1128, !59, i64 1136, !60, i64 1144, !6, i64 1152, !61, i64 1160, !65, i64 1184, !68, i64 1208}
!11 = !{!"_ZTSN4juce9ComponentE", !12, i64 0, !13, i64 8, !13, i64 16, !6, i64 24, !15, i64 32, !18, i64 48, !19, i64 56, !20, i64 64, !6, i64 88, !23, i64 96, !6, i64 104, !24, i64 112, !25, i64 120, !26, i64 128, !27, i64 136, !31, i64 160, !35, i64 184, !7, i64 192, !7, i64 196}
!12 = !{!"_ZTSN4juce13MouseListenerE"}
!13 = !{!"_ZTSN4juce6StringE", !14, i64 0}
!14 = !{!"_ZTSN4juce16CharPointer_UTF8E", !6, i64 0}
!15 = !{!"_ZTSN4juce9RectangleIiEE", !16, i64 0, !17, i64 8, !17, i64 12}
!16 = !{!"_ZTSN4juce5PointIiEE", !17, i64 0, !17, i64 4}
!17 = !{!"int", !7, i64 0}
!18 = !{!"_ZTSN4juce13ScopedPointerINS_9Component10PositionerEEE", !6, i64 0}
!19 = !{!"_ZTSN4juce13ScopedPointerINS_15AffineTransformEEE", !6, i64 0}
!20 = !{!"_ZTSN4juce5ArrayIPNS_9ComponentENS_20DummyCriticalSectionELi0EEE", !21, i64 0, !17, i64 16}
!21 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_9ComponentENS_20DummyCriticalSectionEEE", !22, i64 0, !17, i64 8}
!22 = !{!"_ZTSN4juce9HeapBlockIPNS_9ComponentELb0EEE", !6, i64 0}
!23 = !{!"_ZTSN4juce11MouseCursorE", !6, i64 0}
!24 = !{!"_ZTSN4juce13ScopedPointerINS_20CachedComponentImageEEE", !6, i64 0}
!25 = !{!"_ZTSN4juce13ScopedPointerINS_9Component17MouseListenerListEEE", !6, i64 0}
!26 = !{!"_ZTSN4juce13ScopedPointerINS_5ArrayIPNS_11KeyListenerENS_20DummyCriticalSectionELi0EEEEE", !6, i64 0}
!27 = !{!"_ZTSN4juce12ListenerListINS_17ComponentListenerENS_5ArrayIPS1_NS_20DummyCriticalSectionELi0EEEEE", !28, i64 0}
!28 = !{!"_ZTSN4juce5ArrayIPNS_17ComponentListenerENS_20DummyCriticalSectionELi0EEE", !29, i64 0, !17, i64 16}
!29 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_17ComponentListenerENS_20DummyCriticalSectionEEE", !30, i64 0, !17, i64 8}
!30 = !{!"_ZTSN4juce9HeapBlockIPNS_17ComponentListenerELb0EEE", !6, i64 0}
!31 = !{!"_ZTSN4juce13NamedValueSetE", !32, i64 0}
!32 = !{!"_ZTSN4juce5ArrayINS_13NamedValueSet10NamedValueENS_20DummyCriticalSectionELi0EEE", !33, i64 0, !17, i64 16}
!33 = !{!"_ZTSN4juce19ArrayAllocationBaseINS_13NamedValueSet10NamedValueENS_20DummyCriticalSectionEEE", !34, i64 0, !17, i64 8}
!34 = !{!"_ZTSN4juce9HeapBlockINS_13NamedValueSet10NamedValueELb0EEE", !6, i64 0}
!35 = !{!"_ZTSN4juce13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEE6MasterE", !36, i64 0}
!36 = !{!"_ZTSN4juce25ReferenceCountedObjectPtrINS_13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEE13SharedPointerEEE", !6, i64 0}
!37 = !{!"_ZTSN4juce24ApplicationCommandTargetE", !38, i64 8}
!38 = !{!"_ZTSN4juce13WeakReferenceINS_24ApplicationCommandTargetENS_22ReferenceCountedObjectEE6MasterE", !39, i64 0}
!39 = !{!"_ZTSN4juce25ReferenceCountedObjectPtrINS_13WeakReferenceINS_24ApplicationCommandTargetENS_22ReferenceCountedObjectEE13SharedPointerEEE", !6, i64 0}
!40 = !{!"_ZTSN4juce15TextInputTargetE"}
!41 = !{!"_ZTSN4juce4FontE", !42, i64 0}
!42 = !{!"_ZTSN4juce25ReferenceCountedObjectPtrINS_4Font18SharedFontInternalEEE", !6, i64 0}
!43 = !{!"float", !7, i64 0}
!44 = !{!"bool", !7, i64 0}
!45 = !{!"double", !7, i64 0}
!46 = !{!"_ZTSN4juce12CodeDocument8PositionE", !6, i64 0, !17, i64 8, !17, i64 12, !17, i64 16, !44, i64 20}
!47 = !{!"_ZTSN4juce13ScopedPointerINS_14CaretComponentEEE", !6, i64 0}
!48 = !{!"_ZTSN4juce9ScrollBarE", !11, i64 0, !49, i64 200, !51, i64 216, !52, i64 248, !52, i64 264, !45, i64 280, !45, i64 288, !17, i64 296, !17, i64 300, !17, i64 304, !17, i64 308, !17, i64 312, !17, i64 316, !17, i64 320, !17, i64 324, !17, i64 328, !44, i64 332, !44, i64 333, !44, i64 334, !53, i64 336, !53, i64 344, !54, i64 352}
!49 = !{!"_ZTSN4juce12AsyncUpdaterE", !50, i64 8}
!50 = !{!"_ZTSN4juce25ReferenceCountedObjectPtrINS_12AsyncUpdater19AsyncUpdaterMessageEEE", !6, i64 0}
!51 = !{!"_ZTSN4juce5TimerE", !17, i64 8, !17, i64 12, !6, i64 16, !6, i64 24}
!52 = !{!"_ZTSN4juce5RangeIdEE", !45, i64 0, !45, i64 8}
!53 = !{!"_ZTSN4juce13ScopedPointerINS_9ScrollBar15ScrollbarButtonEEE", !6, i64 0}
!54 = !{!"_ZTSN4juce12ListenerListINS_9ScrollBar8ListenerENS_5ArrayIPS2_NS_20DummyCriticalSectionELi0EEEEE", !55, i64 0}
!55 = !{!"_ZTSN4juce5ArrayIPNS_9ScrollBar8ListenerENS_20DummyCriticalSectionELi0EEE", !56, i64 0, !17, i64 16}
!56 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_9ScrollBar8ListenerENS_20DummyCriticalSectionEEE", !57, i64 0, !17, i64 8}
!57 = !{!"_ZTSN4juce9HeapBlockIPNS_9ScrollBar8ListenerELb0EEE", !6, i64 0}
!58 = !{!"_ZTSN4juce13ScopedPointerINS_19CodeEditorComponent5PimplEEE", !6, i64 0}
!59 = !{!"_ZTSN4juce13ScopedPointerINS_19CodeEditorComponent15GutterComponentEEE", !6, i64 0}
!60 = !{!"_ZTSN4juce19CodeEditorComponent8DragTypeE", !7, i64 0}
!61 = !{!"_ZTSN4juce19CodeEditorComponent12ColourSchemeE", !62, i64 0}
!62 = !{!"_ZTSN4juce5ArrayINS_19CodeEditorComponent12ColourScheme9TokenTypeENS_20DummyCriticalSectionELi0EEE", !63, i64 0, !17, i64 16}
!63 = !{!"_ZTSN4juce19ArrayAllocationBaseINS_19CodeEditorComponent12ColourScheme9TokenTypeENS_20DummyCriticalSectionEEE", !64, i64 0, !17, i64 8}
!64 = !{!"_ZTSN4juce9HeapBlockINS_19CodeEditorComponent12ColourScheme9TokenTypeELb0EEE", !6, i64 0}
!65 = !{!"_ZTSN4juce10OwnedArrayINS_19CodeEditorComponent14CodeEditorLineENS_20DummyCriticalSectionEEE", !66, i64 0, !17, i64 16}
!66 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_19CodeEditorComponent14CodeEditorLineENS_20DummyCriticalSectionEEE", !67, i64 0, !17, i64 8}
!67 = !{!"_ZTSN4juce9HeapBlockIPNS_19CodeEditorComponent14CodeEditorLineELb0EEE", !6, i64 0}
!68 = !{!"_ZTSN4juce10OwnedArrayINS_12CodeDocument8IteratorENS_20DummyCriticalSectionEEE", !69, i64 0, !17, i64 16}
!69 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_12CodeDocument8IteratorENS_20DummyCriticalSectionEEE", !70, i64 0, !17, i64 8}
!70 = !{!"_ZTSN4juce9HeapBlockIPNS_12CodeDocument8IteratorELb0EEE", !6, i64 0}
!71 = !{!17, !17, i64 0}
!72 = distinct !{!72, !73}
!73 = !{!"llvm.loop.mustprogress"}
!74 = !{!10, !6, i64 224}
!75 = !{!10, !17, i64 240}
!76 = !{!10, !6, i64 1152}
!77 = !{!10, !17, i64 244}
!78 = distinct !{!78, !73}
!79 = !{!10, !17, i64 252}


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

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

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) #0

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4juce19CodeEditorComponent17rebuildLineTokensEv(ptr noundef nonnull align 8 dereferenceable(1232) %0) local_unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.juce::CodeDocument::Iterator", align 8
  %3 = alloca %"class.juce::CodeDocument::Position", align 8
  %4 = getelementptr inbounds i8, ptr %0, i64 1128
  %5 = tail call noundef ptr @_ZNK4juce13ScopedPointerINS_19CodeEditorComponent5PimplEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #7
  %6 = getelementptr inbounds i8, ptr %5, i64 32
  tail call void @_ZN4juce12AsyncUpdater19cancelPendingUpdateEv(ptr noundef nonnull align 8 dereferenceable(16) %6) #7
  %7 = getelementptr inbounds i8, ptr %0, i64 256
  %8 = load i32, ptr %7, align 8, !tbaa !5
  %9 = add i32 %8, 1
  %10 = getelementptr inbounds i8, ptr %0, i64 1184
  %11 = tail call noundef i32 @_ZNK4juce10OwnedArrayINS_19CodeEditorComponent14CodeEditorLineENS_20DummyCriticalSectionEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20) %10) #7
  %.not = icmp eq i32 %9, %11
  br i1 %.not, label %.loopexit, label %12

12:                                               ; preds = %1
  tail call void @_ZN4juce10OwnedArrayINS_19CodeEditorComponent14CodeEditorLineENS_20DummyCriticalSectionEE5clearEb(ptr noundef nonnull align 8 dereferenceable(20) %10, i1 noundef zeroext true)
  %13 = icmp sgt i32 %8, -1
  br i1 %13, label %.lr.ph, label %.loopexit

.lr.ph:                                           ; preds = %12, %.lr.ph
  %.02337 = phi i32 [ %14, %.lr.ph ], [ %9, %12 ]
  %14 = add nsw i32 %.02337, -1
  %15 = tail call noalias noundef nonnull dereferenceable(32) ptr @_Znwm(i64 noundef 32) #8
  tail call void @_ZN4juce19CodeEditorComponent14CodeEditorLineC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #7
  %16 = tail call noundef ptr @_ZN4juce10OwnedArrayINS_19CodeEditorComponent14CodeEditorLineENS_20DummyCriticalSectionEE3addEPS2_(ptr noundef nonnull align 8 dereferenceable(20) %10, ptr noundef nonnull %15) #7
  %17 = icmp sgt i32 %.02337, 1
  br i1 %17, label %.lr.ph, label %.loopexit, !llvm.loop !70

.loopexit:                                        ; preds = %.lr.ph, %12, %1
  %.025 = phi i32 [ %9, %1 ], [ 0, %12 ], [ 0, %.lr.ph ]
  %.024 = phi i32 [ 0, %1 ], [ %9, %12 ], [ %9, %.lr.ph ]
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %2) #7
  %18 = getelementptr inbounds i8, ptr %0, i64 224
  %19 = load ptr, ptr %18, align 8, !tbaa !72
  call void @_ZN4juce12CodeDocument8IteratorC1ERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(232) %19) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #7
  %20 = load ptr, ptr %18, align 8, !tbaa !72
  %21 = getelementptr inbounds i8, ptr %0, i64 240
  %22 = load i32, ptr %21, align 8, !tbaa !73
  call void @_ZN4juce12CodeDocument8PositionC1ERKS0_ii(ptr noundef nonnull align 8 dereferenceable(21) %3, ptr noundef nonnull align 8 dereferenceable(232) %20, i32 noundef %22, i32 noundef 0) #7
  %23 = call noundef i32 @_ZNK4juce12CodeDocument8Position11getPositionEv(ptr noundef nonnull align 8 dereferenceable(21) %3) #7
  invoke void @_ZN4juce19CodeEditorComponent22getIteratorForPositionEiRNS_12CodeDocument8IteratorE(ptr noundef nonnull align 8 dereferenceable(1232) %0, i32 noundef %23, ptr noundef nonnull align 8 dereferenceable(24) %2)
          to label %24 unwind label %29

24:                                               ; preds = %.loopexit
  call void @_ZN4juce12CodeDocument8PositionD1Ev(ptr noundef nonnull align 8 dereferenceable(21) %3) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #7
  %.not3138 = icmp slt i32 %8, 0
  br i1 %.not3138, label %._crit_edge, label %.lr.ph42

.lr.ph42:                                         ; preds = %24
  %25 = getelementptr inbounds i8, ptr %0, i64 1152
  %26 = getelementptr inbounds i8, ptr %0, i64 244
  %27 = getelementptr inbounds i8, ptr %0, i64 312
  %28 = getelementptr inbounds i8, ptr %0, i64 336
  br label %31

._crit_edge:                                      ; preds = %45, %24
  %.126.lcssa = phi i32 [ %.025, %24 ], [ %.227, %45 ]
  %.1.lcssa = phi i32 [ %.024, %24 ], [ %.2, %45 ]
  %.not32 = icmp sgt i32 %.126.lcssa, %.1.lcssa
  br i1 %.not32, label %60, label %47

29:                                               ; preds = %.loopexit
  %30 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4juce12CodeDocument8PositionD1Ev(ptr noundef nonnull align 8 dereferenceable(21) %3) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #7
  br label %68

31:                                               ; preds = %.lr.ph42, %45
  %.041 = phi i32 [ 0, %.lr.ph42 ], [ %46, %45 ]
  %.140 = phi i32 [ %.024, %.lr.ph42 ], [ %.2, %45 ]
  %.12639 = phi i32 [ %.025, %.lr.ph42 ], [ %.227, %45 ]
  %32 = call noundef ptr @_ZNK4juce10OwnedArrayINS_19CodeEditorComponent14CodeEditorLineENS_20DummyCriticalSectionEE12getUncheckedEi(ptr noundef nonnull align 8 dereferenceable(20) %10, i32 noundef %.041) #7
  %33 = load ptr, ptr %18, align 8, !tbaa !72
  %34 = load i32, ptr %21, align 8, !tbaa !73
  %35 = add nsw i32 %34, %.041
  %36 = load ptr, ptr %25, align 8, !tbaa !74
  %37 = load i32, ptr %26, align 4, !tbaa !75
  %38 = invoke noundef zeroext i1 @_ZN4juce19CodeEditorComponent14CodeEditorLine6updateERNS_12CodeDocumentEiRNS2_8IteratorEPNS_13CodeTokeniserEiRKNS2_8PositionESA_(ptr noundef nonnull align 8 dereferenceable(32) %32, ptr noundef nonnull align 8 dereferenceable(232) %33, i32 noundef %35, ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef %36, i32 noundef %37, ptr noundef nonnull align 8 dereferenceable(21) %27, ptr noundef nonnull align 8 dereferenceable(21) %28)
          to label %39 unwind label %43

39:                                               ; preds = %31
  br i1 %38, label %40, label %45

40:                                               ; preds = %39
  %41 = call noundef i32 @_ZN4juce4jminIiEET_S1_S1_(i32 noundef %.12639, i32 noundef %.041)
  %42 = call noundef i32 @_ZN4juce4jmaxIiEET_S1_S1_(i32 noundef %.140, i32 noundef %.041)
  br label %45

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

45:                                               ; preds = %39, %40
  %.227 = phi i32 [ %41, %40 ], [ %.12639, %39 ]
  %.2 = phi i32 [ %42, %40 ], [ %.140, %39 ]
  %46 = add nuw i32 %.041, 1
  %exitcond.not = icmp eq i32 %.041, %8
  br i1 %exitcond.not, label %._crit_edge, label %31, !llvm.loop !76

47:                                               ; preds = %._crit_edge
  %48 = getelementptr inbounds i8, ptr %0, i64 252
  %49 = load i32, ptr %48, align 4, !tbaa !77
  %50 = mul nsw i32 %49, %.126.lcssa
  %51 = add nsw i32 %50, -1
  %52 = getelementptr inbounds i8, ptr %0, i64 368
  %53 = call noundef i32 @_ZNK4juce9Component4getXEv(ptr noundef nonnull align 8 dereferenceable(197) %52) #7
  %54 = load i32, ptr %48, align 4, !tbaa !77
  %reass.sub = sub i32 %.1.lcssa, %.126.lcssa
  %55 = add i32 %reass.sub, 1
  %56 = mul nsw i32 %54, %55
  %57 = add nsw i32 %56, 2
  invoke void @_ZN4juce9Component7repaintEiiii(ptr noundef nonnull align 8 dereferenceable(197) %0, i32 noundef 0, i32 noundef %51, i32 noundef %53, i32 noundef %57)
          to label %60 unwind label %58

58:                                               ; preds = %63, %47
  %59 = landingpad { ptr, i32 }
          cleanup
  br label %68

60:                                               ; preds = %47, %._crit_edge
  %61 = getelementptr inbounds i8, ptr %0, i64 1136
  %62 = call noundef ptr @_ZNK4juce13ScopedPointerINS_19CodeEditorComponent15GutterComponentEEcvPS2_Ev(ptr noundef nonnull align 8 dereferenceable(8) %61) #7
  %.not33 = icmp eq ptr %62, null
  br i1 %.not33, label %67, label %63

63:                                               ; preds = %60
  %64 = call noundef ptr @_ZNK4juce13ScopedPointerINS_19CodeEditorComponent15GutterComponentEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %61) #7
  %65 = load ptr, ptr %18, align 8, !tbaa !72
  %66 = load i32, ptr %21, align 8, !tbaa !73
  invoke void @_ZN4juce19CodeEditorComponent15GutterComponent15documentChangedERNS_12CodeDocumentEi(ptr noundef nonnull align 8 dereferenceable(208) %64, ptr noundef nonnull align 8 dereferenceable(232) %65, i32 noundef %66)
          to label %67 unwind label %58

67:                                               ; preds = %63, %60
  call void @_ZN4juce12CodeDocument8IteratorD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #7
  ret void

68:                                               ; preds = %58, %43, %29
  %.pn = phi { ptr, i32 } [ %44, %43 ], [ %59, %58 ], [ %30, %29 ]
  call void @_ZN4juce12CodeDocument8IteratorD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #7
  resume { ptr, i32 } %.pn
}

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK4juce9Component4getXEv(ptr noundef nonnull align 8 dereferenceable(197)) local_unnamed_addr #1 align 2

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

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

; Function Attrs: nounwind
declare void @_ZN4juce12AsyncUpdater19cancelPendingUpdateEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #5

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4juce19CodeEditorComponent14CodeEditorLineC2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN4juce19CodeEditorComponent14CodeEditorLine6updateERNS_12CodeDocumentEiRNS2_8IteratorEPNS_13CodeTokeniserEiRKNS2_8PositionESA_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(232), i32 noundef, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef, i32 noundef, ptr noundef nonnull align 8 dereferenceable(21), ptr noundef nonnull align 8 dereferenceable(21)) local_unnamed_addr #4 align 2

declare void @_ZN4juce9Component7repaintEiiii(ptr noundef nonnull align 8 dereferenceable(197), i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #6

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

declare void @_ZN4juce12CodeDocument8IteratorC1ERKS0_(ptr, ptr) local_unnamed_addr

declare void @_ZN4juce12CodeDocument8IteratorD1Ev(ptr) local_unnamed_addr

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

declare void @_ZN4juce12CodeDocument8PositionD1Ev(ptr) local_unnamed_addr

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nobuiltin allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind "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 = { "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, !16, i64 256}
!6 = !{!"_ZTSN4juce19CodeEditorComponentE", !7, i64 0, !36, i64 200, !39, i64 216, !11, i64 224, !40, i64 232, !16, i64 240, !16, i64 244, !42, i64 248, !16, i64 252, !16, i64 256, !16, i64 260, !16, i64 264, !16, i64 268, !43, i64 272, !43, i64 273, !43, i64 274, !43, i64 275, !44, i64 280, !45, i64 288, !45, i64 312, !45, i64 336, !46, i64 360, !47, i64 368, !47, i64 744, !11, i64 1120, !57, i64 1128, !58, i64 1136, !59, i64 1144, !11, i64 1152, !60, i64 1160, !64, i64 1184, !67, i64 1208}
!7 = !{!"_ZTSN4juce9ComponentE", !8, i64 0, !9, i64 8, !9, i64 16, !11, i64 24, !14, i64 32, !17, i64 48, !18, i64 56, !19, i64 64, !11, i64 88, !22, i64 96, !11, i64 104, !23, i64 112, !24, i64 120, !25, i64 128, !26, i64 136, !30, i64 160, !34, i64 184, !12, i64 192, !12, i64 196}
!8 = !{!"_ZTSN4juce13MouseListenerE"}
!9 = !{!"_ZTSN4juce6StringE", !10, i64 0}
!10 = !{!"_ZTSN4juce16CharPointer_UTF8E", !11, i64 0}
!11 = !{!"any pointer", !12, i64 0}
!12 = !{!"omnipotent char", !13, i64 0}
!13 = !{!"Simple C++ TBAA"}
!14 = !{!"_ZTSN4juce9RectangleIiEE", !15, i64 0, !16, i64 8, !16, i64 12}
!15 = !{!"_ZTSN4juce5PointIiEE", !16, i64 0, !16, i64 4}
!16 = !{!"int", !12, i64 0}
!17 = !{!"_ZTSN4juce13ScopedPointerINS_9Component10PositionerEEE", !11, i64 0}
!18 = !{!"_ZTSN4juce13ScopedPointerINS_15AffineTransformEEE", !11, i64 0}
!19 = !{!"_ZTSN4juce5ArrayIPNS_9ComponentENS_20DummyCriticalSectionELi0EEE", !20, i64 0, !16, i64 16}
!20 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_9ComponentENS_20DummyCriticalSectionEEE", !21, i64 0, !16, i64 8}
!21 = !{!"_ZTSN4juce9HeapBlockIPNS_9ComponentELb0EEE", !11, i64 0}
!22 = !{!"_ZTSN4juce11MouseCursorE", !11, i64 0}
!23 = !{!"_ZTSN4juce13ScopedPointerINS_20CachedComponentImageEEE", !11, i64 0}
!24 = !{!"_ZTSN4juce13ScopedPointerINS_9Component17MouseListenerListEEE", !11, i64 0}
!25 = !{!"_ZTSN4juce13ScopedPointerINS_5ArrayIPNS_11KeyListenerENS_20DummyCriticalSectionELi0EEEEE", !11, i64 0}
!26 = !{!"_ZTSN4juce12ListenerListINS_17ComponentListenerENS_5ArrayIPS1_NS_20DummyCriticalSectionELi0EEEEE", !27, i64 0}
!27 = !{!"_ZTSN4juce5ArrayIPNS_17ComponentListenerENS_20DummyCriticalSectionELi0EEE", !28, i64 0, !16, i64 16}
!28 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_17ComponentListenerENS_20DummyCriticalSectionEEE", !29, i64 0, !16, i64 8}
!29 = !{!"_ZTSN4juce9HeapBlockIPNS_17ComponentListenerELb0EEE", !11, i64 0}
!30 = !{!"_ZTSN4juce13NamedValueSetE", !31, i64 0}
!31 = !{!"_ZTSN4juce5ArrayINS_13NamedValueSet10NamedValueENS_20DummyCriticalSectionELi0EEE", !32, i64 0, !16, i64 16}
!32 = !{!"_ZTSN4juce19ArrayAllocationBaseINS_13NamedValueSet10NamedValueENS_20DummyCriticalSectionEEE", !33, i64 0, !16, i64 8}
!33 = !{!"_ZTSN4juce9HeapBlockINS_13NamedValueSet10NamedValueELb0EEE", !11, i64 0}
!34 = !{!"_ZTSN4juce13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEE6MasterE", !35, i64 0}
!35 = !{!"_ZTSN4juce25ReferenceCountedObjectPtrINS_13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEE13SharedPointerEEE", !11, i64 0}
!36 = !{!"_ZTSN4juce24ApplicationCommandTargetE", !37, i64 8}
!37 = !{!"_ZTSN4juce13WeakReferenceINS_24ApplicationCommandTargetENS_22ReferenceCountedObjectEE6MasterE", !38, i64 0}
!38 = !{!"_ZTSN4juce25ReferenceCountedObjectPtrINS_13WeakReferenceINS_24ApplicationCommandTargetENS_22ReferenceCountedObjectEE13SharedPointerEEE", !11, i64 0}
!39 = !{!"_ZTSN4juce15TextInputTargetE"}
!40 = !{!"_ZTSN4juce4FontE", !41, i64 0}
!41 = !{!"_ZTSN4juce25ReferenceCountedObjectPtrINS_4Font18SharedFontInternalEEE", !11, i64 0}
!42 = !{!"float", !12, i64 0}
!43 = !{!"bool", !12, i64 0}
!44 = !{!"double", !12, i64 0}
!45 = !{!"_ZTSN4juce12CodeDocument8PositionE", !11, i64 0, !16, i64 8, !16, i64 12, !16, i64 16, !43, i64 20}
!46 = !{!"_ZTSN4juce13ScopedPointerINS_14CaretComponentEEE", !11, i64 0}
!47 = !{!"_ZTSN4juce9ScrollBarE", !7, i64 0, !48, i64 200, !50, i64 216, !51, i64 248, !51, i64 264, !44, i64 280, !44, i64 288, !16, i64 296, !16, i64 300, !16, i64 304, !16, i64 308, !16, i64 312, !16, i64 316, !16, i64 320, !16, i64 324, !16, i64 328, !43, i64 332, !43, i64 333, !43, i64 334, !52, i64 336, !52, i64 344, !53, i64 352}
!48 = !{!"_ZTSN4juce12AsyncUpdaterE", !49, i64 8}
!49 = !{!"_ZTSN4juce25ReferenceCountedObjectPtrINS_12AsyncUpdater19AsyncUpdaterMessageEEE", !11, i64 0}
!50 = !{!"_ZTSN4juce5TimerE", !16, i64 8, !16, i64 12, !11, i64 16, !11, i64 24}
!51 = !{!"_ZTSN4juce5RangeIdEE", !44, i64 0, !44, i64 8}
!52 = !{!"_ZTSN4juce13ScopedPointerINS_9ScrollBar15ScrollbarButtonEEE", !11, i64 0}
!53 = !{!"_ZTSN4juce12ListenerListINS_9ScrollBar8ListenerENS_5ArrayIPS2_NS_20DummyCriticalSectionELi0EEEEE", !54, i64 0}
!54 = !{!"_ZTSN4juce5ArrayIPNS_9ScrollBar8ListenerENS_20DummyCriticalSectionELi0EEE", !55, i64 0, !16, i64 16}
!55 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_9ScrollBar8ListenerENS_20DummyCriticalSectionEEE", !56, i64 0, !16, i64 8}
!56 = !{!"_ZTSN4juce9HeapBlockIPNS_9ScrollBar8ListenerELb0EEE", !11, i64 0}
!57 = !{!"_ZTSN4juce13ScopedPointerINS_19CodeEditorComponent5PimplEEE", !11, i64 0}
!58 = !{!"_ZTSN4juce13ScopedPointerINS_19CodeEditorComponent15GutterComponentEEE", !11, i64 0}
!59 = !{!"_ZTSN4juce19CodeEditorComponent8DragTypeE", !12, i64 0}
!60 = !{!"_ZTSN4juce19CodeEditorComponent12ColourSchemeE", !61, i64 0}
!61 = !{!"_ZTSN4juce5ArrayINS_19CodeEditorComponent12ColourScheme9TokenTypeENS_20DummyCriticalSectionELi0EEE", !62, i64 0, !16, i64 16}
!62 = !{!"_ZTSN4juce19ArrayAllocationBaseINS_19CodeEditorComponent12ColourScheme9TokenTypeENS_20DummyCriticalSectionEEE", !63, i64 0, !16, i64 8}
!63 = !{!"_ZTSN4juce9HeapBlockINS_19CodeEditorComponent12ColourScheme9TokenTypeELb0EEE", !11, i64 0}
!64 = !{!"_ZTSN4juce10OwnedArrayINS_19CodeEditorComponent14CodeEditorLineENS_20DummyCriticalSectionEEE", !65, i64 0, !16, i64 16}
!65 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_19CodeEditorComponent14CodeEditorLineENS_20DummyCriticalSectionEEE", !66, i64 0, !16, i64 8}
!66 = !{!"_ZTSN4juce9HeapBlockIPNS_19CodeEditorComponent14CodeEditorLineELb0EEE", !11, i64 0}
!67 = !{!"_ZTSN4juce10OwnedArrayINS_12CodeDocument8IteratorENS_20DummyCriticalSectionEEE", !68, i64 0, !16, i64 16}
!68 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_12CodeDocument8IteratorENS_20DummyCriticalSectionEEE", !69, i64 0, !16, i64 8}
!69 = !{!"_ZTSN4juce9HeapBlockIPNS_12CodeDocument8IteratorELb0EEE", !11, i64 0}
!70 = distinct !{!70, !71}
!71 = !{!"llvm.loop.mustprogress"}
!72 = !{!6, !11, i64 224}
!73 = !{!6, !16, i64 240}
!74 = !{!6, !11, i64 1152}
!75 = !{!6, !16, i64 244}
!76 = distinct !{!76, !71}
!77 = !{!6, !16, i64 252}


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