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

@.str.20 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [5 x i8], align 1

; 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(...)

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

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

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

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

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

; Function Attrs: nounwind
declare noundef zeroext i1 @_ZNK4juce11UndoManager7canUndoEv(ptr noundef nonnull align 8 dereferenceable(130)) #0

; Function Attrs: nounwind
declare noundef zeroext i1 @_ZNK4juce11UndoManager7canRedoEv(ptr noundef nonnull align 8 dereferenceable(130)) #0

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4juce19CodeEditorComponent17addPopupMenuItemsERNS_9PopupMenuEPKNS_10MouseEventE(ptr noundef nonnull align 8 dereferenceable(1232) %0, ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef %2) unnamed_addr #5 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca %"class.juce::String", align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca %"class.juce::String", align 8
  %11 = alloca %"class.juce::Range.115", align 4
  %12 = alloca %"class.juce::String", align 8
  %13 = alloca %"class.juce::String", align 8
  %14 = alloca %"class.juce::String", align 8
  %15 = alloca %"class.juce::String", align 8
  %16 = alloca %"class.juce::String", align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  %17 = load ptr, ptr %4, align 8
  %18 = load ptr, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  call void @_ZN4juce9translateEPKc(ptr dead_on_unwind writable sret(%"class.juce::String") align 8 %7, ptr noundef @.str.20)
  %19 = call noundef zeroext i1 @_ZNK4juce19CodeEditorComponent17isHighlightActiveEv(ptr noundef nonnull align 8 dereferenceable(1232) %17) #6
  br i1 %19, label %20, label %25

20:                                               ; preds = %3
  %21 = getelementptr inbounds %"class.juce::CodeEditorComponent", ptr %17, i32 0, i32 13
  %22 = load i8, ptr %21, align 8, !tbaa !9, !range !71, !noundef !72
  %23 = trunc i8 %22 to i1
  %24 = xor i1 %23, true
  br label %25

25:                                               ; preds = %20, %3
  %26 = phi i1 [ false, %3 ], [ %24, %20 ]
  invoke void @_ZN4juce9PopupMenu7addItemEiRKNS_6StringEbb(ptr noundef nonnull align 8 dereferenceable(32) %18, i32 noundef 4099, ptr noundef nonnull align 8 dereferenceable(8) %7, i1 noundef zeroext %26, i1 noundef zeroext false)
          to label %27 unwind label %64

27:                                               ; preds = %25
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  %28 = load ptr, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  call void @_ZN4juce9translateEPKc(ptr dead_on_unwind writable sret(%"class.juce::String") align 8 %10, ptr noundef @.str.23)
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  %29 = load ptr, ptr %17, align 8, !tbaa !73
  %30 = getelementptr inbounds ptr, ptr %29, i64 50
  %31 = load ptr, ptr %30, align 8
  invoke void %31(ptr dead_on_unwind writable sret(%"class.juce::Range.115") align 4 %11, ptr noundef nonnull align 8 dereferenceable(1232) %17)
          to label %32 unwind label %68

32:                                               ; preds = %27
  %33 = call noundef zeroext i1 @_ZNK4juce5RangeIiE7isEmptyEv(ptr noundef nonnull align 4 dereferenceable(8) %11) #6
  %34 = xor i1 %33, true
  invoke void @_ZN4juce9PopupMenu7addItemEiRKNS_6StringEbb(ptr noundef nonnull align 8 dereferenceable(32) %28, i32 noundef 4100, ptr noundef nonnull align 8 dereferenceable(8) %10, i1 noundef zeroext %34, i1 noundef zeroext false)
          to label %35 unwind label %68

35:                                               ; preds = %32
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  %36 = load ptr, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  call void @_ZN4juce9translateEPKc(ptr dead_on_unwind writable sret(%"class.juce::String") align 8 %12, ptr noundef @.str.25)
  %37 = getelementptr inbounds %"class.juce::CodeEditorComponent", ptr %17, i32 0, i32 13
  %38 = load i8, ptr %37, align 8, !tbaa !9, !range !71, !noundef !72
  %39 = trunc i8 %38 to i1
  %40 = xor i1 %39, true
  invoke void @_ZN4juce9PopupMenu7addItemEiRKNS_6StringEbb(ptr noundef nonnull align 8 dereferenceable(32) %36, i32 noundef 4101, ptr noundef nonnull align 8 dereferenceable(8) %12, i1 noundef zeroext %40, i1 noundef zeroext false)
          to label %41 unwind label %72

41:                                               ; preds = %35
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  %42 = load ptr, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  call void @_ZN4juce9translateEPKc(ptr dead_on_unwind writable sret(%"class.juce::String") align 8 %13, ptr noundef @.str.27)
  %43 = getelementptr inbounds %"class.juce::CodeEditorComponent", ptr %17, i32 0, i32 13
  %44 = load i8, ptr %43, align 8, !tbaa !9, !range !71, !noundef !72
  %45 = trunc i8 %44 to i1
  %46 = xor i1 %45, true
  invoke void @_ZN4juce9PopupMenu7addItemEiRKNS_6StringEbb(ptr noundef nonnull align 8 dereferenceable(32) %42, i32 noundef 4098, ptr noundef nonnull align 8 dereferenceable(8) %13, i1 noundef zeroext %46, i1 noundef zeroext false)
          to label %47 unwind label %76

47:                                               ; preds = %41
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  %48 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN4juce9PopupMenu12addSeparatorEv(ptr noundef nonnull align 8 dereferenceable(32) %48)
  %49 = load ptr, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  call void @_ZN4juce9translateEPKc(ptr dead_on_unwind writable sret(%"class.juce::String") align 8 %14, ptr noundef @.str.29)
  invoke void @_ZN4juce9PopupMenu7addItemEiRKNS_6StringEbb(ptr noundef nonnull align 8 dereferenceable(32) %49, i32 noundef 4102, ptr noundef nonnull align 8 dereferenceable(8) %14, i1 noundef zeroext true, i1 noundef zeroext false)
          to label %50 unwind label %80

50:                                               ; preds = %47
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  %51 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN4juce9PopupMenu12addSeparatorEv(ptr noundef nonnull align 8 dereferenceable(32) %51)
  %52 = load ptr, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  call void @_ZN4juce9translateEPKc(ptr dead_on_unwind writable sret(%"class.juce::String") align 8 %15, ptr noundef @.str.31)
  %53 = getelementptr inbounds %"class.juce::CodeEditorComponent", ptr %17, i32 0, i32 3
  %54 = load ptr, ptr %53, align 8, !tbaa !75
  %55 = call noundef nonnull align 8 dereferenceable(130) ptr @_ZN4juce12CodeDocument14getUndoManagerEv(ptr noundef nonnull align 8 dereferenceable(232) %54) #6
  %56 = call noundef zeroext i1 @_ZNK4juce11UndoManager7canUndoEv(ptr noundef nonnull align 8 dereferenceable(130) %55) #6
  invoke void @_ZN4juce9PopupMenu7addItemEiRKNS_6StringEbb(ptr noundef nonnull align 8 dereferenceable(32) %52, i32 noundef 4104, ptr noundef nonnull align 8 dereferenceable(8) %15, i1 noundef zeroext %56, i1 noundef zeroext false)
          to label %57 unwind label %84

57:                                               ; preds = %50
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  %58 = load ptr, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  call void @_ZN4juce9translateEPKc(ptr dead_on_unwind writable sret(%"class.juce::String") align 8 %16, ptr noundef @.str.32)
  %59 = getelementptr inbounds %"class.juce::CodeEditorComponent", ptr %17, i32 0, i32 3
  %60 = load ptr, ptr %59, align 8, !tbaa !75
  %61 = call noundef nonnull align 8 dereferenceable(130) ptr @_ZN4juce12CodeDocument14getUndoManagerEv(ptr noundef nonnull align 8 dereferenceable(232) %60) #6
  %62 = call noundef zeroext i1 @_ZNK4juce11UndoManager7canRedoEv(ptr noundef nonnull align 8 dereferenceable(130) %61) #6
  invoke void @_ZN4juce9PopupMenu7addItemEiRKNS_6StringEbb(ptr noundef nonnull align 8 dereferenceable(32) %58, i32 noundef 4105, ptr noundef nonnull align 8 dereferenceable(8) %16, i1 noundef zeroext %62, i1 noundef zeroext false)
          to label %63 unwind label %88

63:                                               ; preds = %57
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  ret void

64:                                               ; preds = %25
  %65 = landingpad { ptr, i32 }
          cleanup
  %66 = extractvalue { ptr, i32 } %65, 0
  store ptr %66, ptr %8, align 8
  %67 = extractvalue { ptr, i32 } %65, 1
  store i32 %67, ptr %9, align 4
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  br label %92

68:                                               ; preds = %32, %27
  %69 = landingpad { ptr, i32 }
          cleanup
  %70 = extractvalue { ptr, i32 } %69, 0
  store ptr %70, ptr %8, align 8
  %71 = extractvalue { ptr, i32 } %69, 1
  store i32 %71, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  br label %92

72:                                               ; preds = %35
  %73 = landingpad { ptr, i32 }
          cleanup
  %74 = extractvalue { ptr, i32 } %73, 0
  store ptr %74, ptr %8, align 8
  %75 = extractvalue { ptr, i32 } %73, 1
  store i32 %75, ptr %9, align 4
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  br label %92

76:                                               ; preds = %41
  %77 = landingpad { ptr, i32 }
          cleanup
  %78 = extractvalue { ptr, i32 } %77, 0
  store ptr %78, ptr %8, align 8
  %79 = extractvalue { ptr, i32 } %77, 1
  store i32 %79, ptr %9, align 4
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  br label %92

80:                                               ; preds = %47
  %81 = landingpad { ptr, i32 }
          cleanup
  %82 = extractvalue { ptr, i32 } %81, 0
  store ptr %82, ptr %8, align 8
  %83 = extractvalue { ptr, i32 } %81, 1
  store i32 %83, ptr %9, align 4
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  br label %92

84:                                               ; preds = %50
  %85 = landingpad { ptr, i32 }
          cleanup
  %86 = extractvalue { ptr, i32 } %85, 0
  store ptr %86, ptr %8, align 8
  %87 = extractvalue { ptr, i32 } %85, 1
  store i32 %87, ptr %9, align 4
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  br label %92

88:                                               ; preds = %57
  %89 = landingpad { ptr, i32 }
          cleanup
  %90 = extractvalue { ptr, i32 } %89, 0
  store ptr %90, ptr %8, align 8
  %91 = extractvalue { ptr, i32 } %89, 1
  store i32 %91, ptr %9, align 4
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  br label %92

92:                                               ; preds = %88, %84, %80, %76, %72, %68, %64
  %93 = load ptr, ptr %8, align 8
  %94 = load i32, ptr %9, align 4
  %95 = insertvalue { ptr, i32 } poison, ptr %93, 0
  %96 = insertvalue { ptr, i32 } %95, i32 %94, 1
  resume { ptr, i32 } %96
}

declare void @_ZN4juce9PopupMenu7addItemEiRKNS_6StringEbb(ptr noundef nonnull align 8 dereferenceable(32), i32 noundef, ptr noundef nonnull align 8 dereferenceable(8), i1 noundef zeroext, i1 noundef zeroext) #2

declare void @_ZN4juce9PopupMenu12addSeparatorEv(ptr noundef nonnull align 8 dereferenceable(32)) #2

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 = { 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 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 #6 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !44, i64 272}
!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 = !{i8 0, i8 2}
!72 = !{}
!73 = !{!74, !74, i64 0}
!74 = !{!"vtable pointer", !8, i64 0}
!75 = !{!10, !6, i64 224}


; 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::Range.115" = type { i32, i32 }

@.str.20 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [5 x i8], align 1

; 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(...)

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

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

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

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

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

; Function Attrs: nounwind
declare noundef zeroext i1 @_ZNK4juce11UndoManager7canUndoEv(ptr noundef nonnull align 8 dereferenceable(130)) local_unnamed_addr #0

; Function Attrs: nounwind
declare noundef zeroext i1 @_ZNK4juce11UndoManager7canRedoEv(ptr noundef nonnull align 8 dereferenceable(130)) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4juce19CodeEditorComponent17addPopupMenuItemsERNS_9PopupMenuEPKNS_10MouseEventE(ptr noundef nonnull align 8 dereferenceable(1232) %0, ptr noundef nonnull align 8 dereferenceable(32) %1, ptr nocapture noundef readnone %2) unnamed_addr #5 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.juce::String", align 8
  %5 = alloca %"class.juce::String", align 8
  %6 = alloca %"class.juce::Range.115", align 4
  %7 = alloca %"class.juce::String", align 8
  %8 = alloca %"class.juce::String", align 8
  %9 = alloca %"class.juce::String", align 8
  %10 = alloca %"class.juce::String", align 8
  %11 = alloca %"class.juce::String", align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #6
  call void @_ZN4juce9translateEPKc(ptr dead_on_unwind nonnull writable sret(%"class.juce::String") align 8 %4, ptr noundef nonnull @.str.20)
  %12 = call noundef zeroext i1 @_ZNK4juce19CodeEditorComponent17isHighlightActiveEv(ptr noundef nonnull align 8 dereferenceable(1232) %0) #6
  %13 = getelementptr inbounds i8, ptr %0, i64 272
  %14 = load i8, ptr %13, align 8, !range !5
  %15 = trunc nuw i8 %14 to i1
  %16 = xor i1 %15, true
  %17 = select i1 %12, i1 %16, i1 false
  invoke void @_ZN4juce9PopupMenu7addItemEiRKNS_6StringEbb(ptr noundef nonnull align 8 dereferenceable(32) %1, i32 noundef 4099, ptr noundef nonnull align 8 dereferenceable(8) %4, i1 noundef zeroext %17, i1 noundef zeroext false)
          to label %18 unwind label %44

18:                                               ; preds = %3
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #6
  call void @_ZN4juce9translateEPKc(ptr dead_on_unwind nonnull writable sret(%"class.juce::String") align 8 %5, ptr noundef nonnull @.str.23)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #6
  %19 = load ptr, ptr %0, align 8, !tbaa !6
  %20 = getelementptr inbounds i8, ptr %19, i64 400
  %21 = load ptr, ptr %20, align 8
  invoke void %21(ptr dead_on_unwind nonnull writable sret(%"class.juce::Range.115") align 4 %6, ptr noundef nonnull align 8 dereferenceable(1232) %0)
          to label %22 unwind label %46

22:                                               ; preds = %18
  %23 = call noundef zeroext i1 @_ZNK4juce5RangeIiE7isEmptyEv(ptr noundef nonnull align 4 dereferenceable(8) %6) #6
  %24 = xor i1 %23, true
  invoke void @_ZN4juce9PopupMenu7addItemEiRKNS_6StringEbb(ptr noundef nonnull align 8 dereferenceable(32) %1, i32 noundef 4100, ptr noundef nonnull align 8 dereferenceable(8) %5, i1 noundef zeroext %24, i1 noundef zeroext false)
          to label %25 unwind label %46

25:                                               ; preds = %22
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #6
  call void @_ZN4juce9translateEPKc(ptr dead_on_unwind nonnull writable sret(%"class.juce::String") align 8 %7, ptr noundef nonnull @.str.25)
  %26 = load i8, ptr %13, align 8, !tbaa !9, !range !5, !noundef !73
  %27 = trunc nuw i8 %26 to i1
  %28 = xor i1 %27, true
  invoke void @_ZN4juce9PopupMenu7addItemEiRKNS_6StringEbb(ptr noundef nonnull align 8 dereferenceable(32) %1, i32 noundef 4101, ptr noundef nonnull align 8 dereferenceable(8) %7, i1 noundef zeroext %28, i1 noundef zeroext false)
          to label %29 unwind label %48

29:                                               ; preds = %25
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #6
  call void @_ZN4juce9translateEPKc(ptr dead_on_unwind nonnull writable sret(%"class.juce::String") align 8 %8, ptr noundef nonnull @.str.27)
  %30 = load i8, ptr %13, align 8, !tbaa !9, !range !5, !noundef !73
  %31 = trunc nuw i8 %30 to i1
  %32 = xor i1 %31, true
  invoke void @_ZN4juce9PopupMenu7addItemEiRKNS_6StringEbb(ptr noundef nonnull align 8 dereferenceable(32) %1, i32 noundef 4098, ptr noundef nonnull align 8 dereferenceable(8) %8, i1 noundef zeroext %32, i1 noundef zeroext false)
          to label %33 unwind label %50

33:                                               ; preds = %29
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
  call void @_ZN4juce9PopupMenu12addSeparatorEv(ptr noundef nonnull align 8 dereferenceable(32) %1)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #6
  call void @_ZN4juce9translateEPKc(ptr dead_on_unwind nonnull writable sret(%"class.juce::String") align 8 %9, ptr noundef nonnull @.str.29)
  invoke void @_ZN4juce9PopupMenu7addItemEiRKNS_6StringEbb(ptr noundef nonnull align 8 dereferenceable(32) %1, i32 noundef 4102, ptr noundef nonnull align 8 dereferenceable(8) %9, i1 noundef zeroext true, i1 noundef zeroext false)
          to label %34 unwind label %52

34:                                               ; preds = %33
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  call void @_ZN4juce9PopupMenu12addSeparatorEv(ptr noundef nonnull align 8 dereferenceable(32) %1)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #6
  call void @_ZN4juce9translateEPKc(ptr dead_on_unwind nonnull writable sret(%"class.juce::String") align 8 %10, ptr noundef nonnull @.str.31)
  %35 = getelementptr inbounds i8, ptr %0, i64 224
  %36 = load ptr, ptr %35, align 8, !tbaa !74
  %37 = call noundef nonnull align 8 dereferenceable(130) ptr @_ZN4juce12CodeDocument14getUndoManagerEv(ptr noundef nonnull align 8 dereferenceable(232) %36) #6
  %38 = call noundef zeroext i1 @_ZNK4juce11UndoManager7canUndoEv(ptr noundef nonnull align 8 dereferenceable(130) %37) #6
  invoke void @_ZN4juce9PopupMenu7addItemEiRKNS_6StringEbb(ptr noundef nonnull align 8 dereferenceable(32) %1, i32 noundef 4104, ptr noundef nonnull align 8 dereferenceable(8) %10, i1 noundef zeroext %38, i1 noundef zeroext false)
          to label %39 unwind label %54

39:                                               ; preds = %34
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #6
  call void @_ZN4juce9translateEPKc(ptr dead_on_unwind nonnull writable sret(%"class.juce::String") align 8 %11, ptr noundef nonnull @.str.32)
  %40 = load ptr, ptr %35, align 8, !tbaa !74
  %41 = call noundef nonnull align 8 dereferenceable(130) ptr @_ZN4juce12CodeDocument14getUndoManagerEv(ptr noundef nonnull align 8 dereferenceable(232) %40) #6
  %42 = call noundef zeroext i1 @_ZNK4juce11UndoManager7canRedoEv(ptr noundef nonnull align 8 dereferenceable(130) %41) #6
  invoke void @_ZN4juce9PopupMenu7addItemEiRKNS_6StringEbb(ptr noundef nonnull align 8 dereferenceable(32) %1, i32 noundef 4105, ptr noundef nonnull align 8 dereferenceable(8) %11, i1 noundef zeroext %42, i1 noundef zeroext false)
          to label %43 unwind label %56

43:                                               ; preds = %39
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #6
  ret void

44:                                               ; preds = %3
  %45 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  br label %58

46:                                               ; preds = %22, %18
  %47 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #6
  br label %58

48:                                               ; preds = %25
  %49 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  br label %58

50:                                               ; preds = %29
  %51 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
  br label %58

52:                                               ; preds = %33
  %53 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  br label %58

54:                                               ; preds = %34
  %55 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #6
  br label %58

56:                                               ; preds = %39
  %57 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #6
  br label %58

58:                                               ; preds = %56, %54, %52, %50, %48, %46, %44
  %.pn = phi { ptr, i32 } [ %57, %56 ], [ %55, %54 ], [ %53, %52 ], [ %51, %50 ], [ %49, %48 ], [ %47, %46 ], [ %45, %44 ]
  resume { ptr, i32 } %.pn
}

declare void @_ZN4juce9PopupMenu7addItemEiRKNS_6StringEbb(ptr noundef nonnull align 8 dereferenceable(32), i32 noundef, ptr noundef nonnull align 8 dereferenceable(8), i1 noundef zeroext, i1 noundef zeroext) local_unnamed_addr #2

declare void @_ZN4juce9PopupMenu12addSeparatorEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #2

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 = { 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 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 #6 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{i8 0, i8 2}
!6 = !{!7, !7, i64 0}
!7 = !{!"vtable pointer", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !46, i64 272}
!10 = !{!"_ZTSN4juce19CodeEditorComponentE", !11, i64 0, !39, i64 200, !42, i64 216, !15, i64 224, !43, i64 232, !19, i64 240, !19, i64 244, !45, i64 248, !19, i64 252, !19, i64 256, !19, i64 260, !19, i64 264, !19, i64 268, !46, i64 272, !46, i64 273, !46, i64 274, !46, i64 275, !47, i64 280, !48, i64 288, !48, i64 312, !48, i64 336, !49, i64 360, !50, i64 368, !50, i64 744, !15, i64 1120, !60, i64 1128, !61, i64 1136, !62, i64 1144, !15, i64 1152, !63, i64 1160, !67, i64 1184, !70, i64 1208}
!11 = !{!"_ZTSN4juce9ComponentE", !12, i64 0, !13, i64 8, !13, i64 16, !15, i64 24, !17, i64 32, !20, i64 48, !21, i64 56, !22, i64 64, !15, i64 88, !25, i64 96, !15, i64 104, !26, i64 112, !27, i64 120, !28, i64 128, !29, i64 136, !33, i64 160, !37, i64 184, !16, i64 192, !16, i64 196}
!12 = !{!"_ZTSN4juce13MouseListenerE"}
!13 = !{!"_ZTSN4juce6StringE", !14, i64 0}
!14 = !{!"_ZTSN4juce16CharPointer_UTF8E", !15, i64 0}
!15 = !{!"any pointer", !16, i64 0}
!16 = !{!"omnipotent char", !8, i64 0}
!17 = !{!"_ZTSN4juce9RectangleIiEE", !18, i64 0, !19, i64 8, !19, i64 12}
!18 = !{!"_ZTSN4juce5PointIiEE", !19, i64 0, !19, i64 4}
!19 = !{!"int", !16, i64 0}
!20 = !{!"_ZTSN4juce13ScopedPointerINS_9Component10PositionerEEE", !15, i64 0}
!21 = !{!"_ZTSN4juce13ScopedPointerINS_15AffineTransformEEE", !15, i64 0}
!22 = !{!"_ZTSN4juce5ArrayIPNS_9ComponentENS_20DummyCriticalSectionELi0EEE", !23, i64 0, !19, i64 16}
!23 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_9ComponentENS_20DummyCriticalSectionEEE", !24, i64 0, !19, i64 8}
!24 = !{!"_ZTSN4juce9HeapBlockIPNS_9ComponentELb0EEE", !15, i64 0}
!25 = !{!"_ZTSN4juce11MouseCursorE", !15, i64 0}
!26 = !{!"_ZTSN4juce13ScopedPointerINS_20CachedComponentImageEEE", !15, i64 0}
!27 = !{!"_ZTSN4juce13ScopedPointerINS_9Component17MouseListenerListEEE", !15, i64 0}
!28 = !{!"_ZTSN4juce13ScopedPointerINS_5ArrayIPNS_11KeyListenerENS_20DummyCriticalSectionELi0EEEEE", !15, i64 0}
!29 = !{!"_ZTSN4juce12ListenerListINS_17ComponentListenerENS_5ArrayIPS1_NS_20DummyCriticalSectionELi0EEEEE", !30, i64 0}
!30 = !{!"_ZTSN4juce5ArrayIPNS_17ComponentListenerENS_20DummyCriticalSectionELi0EEE", !31, i64 0, !19, i64 16}
!31 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_17ComponentListenerENS_20DummyCriticalSectionEEE", !32, i64 0, !19, i64 8}
!32 = !{!"_ZTSN4juce9HeapBlockIPNS_17ComponentListenerELb0EEE", !15, i64 0}
!33 = !{!"_ZTSN4juce13NamedValueSetE", !34, i64 0}
!34 = !{!"_ZTSN4juce5ArrayINS_13NamedValueSet10NamedValueENS_20DummyCriticalSectionELi0EEE", !35, i64 0, !19, i64 16}
!35 = !{!"_ZTSN4juce19ArrayAllocationBaseINS_13NamedValueSet10NamedValueENS_20DummyCriticalSectionEEE", !36, i64 0, !19, i64 8}
!36 = !{!"_ZTSN4juce9HeapBlockINS_13NamedValueSet10NamedValueELb0EEE", !15, i64 0}
!37 = !{!"_ZTSN4juce13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEE6MasterE", !38, i64 0}
!38 = !{!"_ZTSN4juce25ReferenceCountedObjectPtrINS_13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEE13SharedPointerEEE", !15, i64 0}
!39 = !{!"_ZTSN4juce24ApplicationCommandTargetE", !40, i64 8}
!40 = !{!"_ZTSN4juce13WeakReferenceINS_24ApplicationCommandTargetENS_22ReferenceCountedObjectEE6MasterE", !41, i64 0}
!41 = !{!"_ZTSN4juce25ReferenceCountedObjectPtrINS_13WeakReferenceINS_24ApplicationCommandTargetENS_22ReferenceCountedObjectEE13SharedPointerEEE", !15, i64 0}
!42 = !{!"_ZTSN4juce15TextInputTargetE"}
!43 = !{!"_ZTSN4juce4FontE", !44, i64 0}
!44 = !{!"_ZTSN4juce25ReferenceCountedObjectPtrINS_4Font18SharedFontInternalEEE", !15, i64 0}
!45 = !{!"float", !16, i64 0}
!46 = !{!"bool", !16, i64 0}
!47 = !{!"double", !16, i64 0}
!48 = !{!"_ZTSN4juce12CodeDocument8PositionE", !15, i64 0, !19, i64 8, !19, i64 12, !19, i64 16, !46, i64 20}
!49 = !{!"_ZTSN4juce13ScopedPointerINS_14CaretComponentEEE", !15, i64 0}
!50 = !{!"_ZTSN4juce9ScrollBarE", !11, i64 0, !51, i64 200, !53, i64 216, !54, i64 248, !54, i64 264, !47, i64 280, !47, i64 288, !19, i64 296, !19, i64 300, !19, i64 304, !19, i64 308, !19, i64 312, !19, i64 316, !19, i64 320, !19, i64 324, !19, i64 328, !46, i64 332, !46, i64 333, !46, i64 334, !55, i64 336, !55, i64 344, !56, i64 352}
!51 = !{!"_ZTSN4juce12AsyncUpdaterE", !52, i64 8}
!52 = !{!"_ZTSN4juce25ReferenceCountedObjectPtrINS_12AsyncUpdater19AsyncUpdaterMessageEEE", !15, i64 0}
!53 = !{!"_ZTSN4juce5TimerE", !19, i64 8, !19, i64 12, !15, i64 16, !15, i64 24}
!54 = !{!"_ZTSN4juce5RangeIdEE", !47, i64 0, !47, i64 8}
!55 = !{!"_ZTSN4juce13ScopedPointerINS_9ScrollBar15ScrollbarButtonEEE", !15, i64 0}
!56 = !{!"_ZTSN4juce12ListenerListINS_9ScrollBar8ListenerENS_5ArrayIPS2_NS_20DummyCriticalSectionELi0EEEEE", !57, i64 0}
!57 = !{!"_ZTSN4juce5ArrayIPNS_9ScrollBar8ListenerENS_20DummyCriticalSectionELi0EEE", !58, i64 0, !19, i64 16}
!58 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_9ScrollBar8ListenerENS_20DummyCriticalSectionEEE", !59, i64 0, !19, i64 8}
!59 = !{!"_ZTSN4juce9HeapBlockIPNS_9ScrollBar8ListenerELb0EEE", !15, i64 0}
!60 = !{!"_ZTSN4juce13ScopedPointerINS_19CodeEditorComponent5PimplEEE", !15, i64 0}
!61 = !{!"_ZTSN4juce13ScopedPointerINS_19CodeEditorComponent15GutterComponentEEE", !15, i64 0}
!62 = !{!"_ZTSN4juce19CodeEditorComponent8DragTypeE", !16, i64 0}
!63 = !{!"_ZTSN4juce19CodeEditorComponent12ColourSchemeE", !64, i64 0}
!64 = !{!"_ZTSN4juce5ArrayINS_19CodeEditorComponent12ColourScheme9TokenTypeENS_20DummyCriticalSectionELi0EEE", !65, i64 0, !19, i64 16}
!65 = !{!"_ZTSN4juce19ArrayAllocationBaseINS_19CodeEditorComponent12ColourScheme9TokenTypeENS_20DummyCriticalSectionEEE", !66, i64 0, !19, i64 8}
!66 = !{!"_ZTSN4juce9HeapBlockINS_19CodeEditorComponent12ColourScheme9TokenTypeELb0EEE", !15, i64 0}
!67 = !{!"_ZTSN4juce10OwnedArrayINS_19CodeEditorComponent14CodeEditorLineENS_20DummyCriticalSectionEEE", !68, i64 0, !19, i64 16}
!68 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_19CodeEditorComponent14CodeEditorLineENS_20DummyCriticalSectionEEE", !69, i64 0, !19, i64 8}
!69 = !{!"_ZTSN4juce9HeapBlockIPNS_19CodeEditorComponent14CodeEditorLineELb0EEE", !15, i64 0}
!70 = !{!"_ZTSN4juce10OwnedArrayINS_12CodeDocument8IteratorENS_20DummyCriticalSectionEEE", !71, i64 0, !19, i64 16}
!71 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_12CodeDocument8IteratorENS_20DummyCriticalSectionEEE", !72, i64 0, !19, i64 8}
!72 = !{!"_ZTSN4juce9HeapBlockIPNS_12CodeDocument8IteratorELb0EEE", !15, i64 0}
!73 = !{}
!74 = !{!10, !15, i64 224}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass