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

; 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::ReferenceCountedObjectPtr.87" = type { ptr }
%"class.juce::AudioProcessorGraph" = type <{ %"class.juce::AudioProcessor", %"class.juce::AsyncUpdater", %"class.juce::ReferenceCountedArray", %"class.juce::OwnedArray.12", i32, [4 x i8], %"class.juce::OwnedArray.17", %"class.juce::Array.22", %"class.juce::ScopedPointer", ptr, %"class.juce::MidiBuffer", i8, [7 x i8] }>
%"class.juce::AudioProcessor" = type { ptr, i32, ptr, %"class.juce::Array", %"class.juce::Component::SafePointer", double, i32, i32, i8, i8, i32, %"class.juce::CriticalSection", %"class.juce::CriticalSection", %"class.juce::OwnedArray", %"class.juce::OwnedArray", %"class.juce::String", %"class.juce::String", i32, i32, %"class.juce::OwnedArray.3" }
%"class.juce::Array" = type { %"class.juce::ArrayAllocationBase", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase" = type <{ %"class.juce::HeapBlock", i32, [4 x i8] }>
%"class.juce::HeapBlock" = type { ptr }
%"class.juce::Component::SafePointer" = type { %"class.juce::WeakReference" }
%"class.juce::WeakReference" = type { %"class.juce::ReferenceCountedObjectPtr" }
%"class.juce::ReferenceCountedObjectPtr" = type { ptr }
%"class.juce::CriticalSection" = type { %union.pthread_mutex_t }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%"class.juce::OwnedArray" = type { %"class.juce::ArrayAllocationBase.0", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.0" = type <{ %"class.juce::HeapBlock.1", i32, [4 x i8] }>
%"class.juce::HeapBlock.1" = type { ptr }
%"class.juce::String" = type { %"class.juce::CharPointer_UTF8" }
%"class.juce::CharPointer_UTF8" = type { ptr }
%"class.juce::OwnedArray.3" = type { %"class.juce::ArrayAllocationBase.4", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.4" = type <{ %"class.juce::HeapBlock.5", i32, [4 x i8] }>
%"class.juce::HeapBlock.5" = type { ptr }
%"class.juce::AsyncUpdater" = type { ptr, %"class.juce::ReferenceCountedObjectPtr.8" }
%"class.juce::ReferenceCountedObjectPtr.8" = type { ptr }
%"class.juce::ReferenceCountedArray" = type { %"class.juce::ArrayAllocationBase.9", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.9" = type <{ %"class.juce::HeapBlock.10", i32, [4 x i8] }>
%"class.juce::HeapBlock.10" = type { ptr }
%"class.juce::OwnedArray.12" = type { %"class.juce::ArrayAllocationBase.13", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.13" = type <{ %"class.juce::HeapBlock.14", i32, [4 x i8] }>
%"class.juce::HeapBlock.14" = type { ptr }
%"class.juce::OwnedArray.17" = type { %"class.juce::ArrayAllocationBase.18", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.18" = type <{ %"class.juce::HeapBlock.19", i32, [4 x i8] }>
%"class.juce::HeapBlock.19" = type { ptr }
%"class.juce::Array.22" = type { %"class.juce::ArrayAllocationBase.23", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.23" = type <{ %"class.juce::HeapBlock.24", i32, [4 x i8] }>
%"class.juce::HeapBlock.24" = type { ptr }
%"class.juce::ScopedPointer" = type { ptr }
%"class.juce::MidiBuffer" = type { %"class.juce::Array.27" }
%"class.juce::Array.27" = type { %"class.juce::ArrayAllocationBase.28", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.28" = type <{ %"class.juce::HeapBlock.29", i32, [4 x i8] }>
%"class.juce::HeapBlock.29" = type { ptr }

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

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

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

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

declare void @_ZN4juce12AsyncUpdater18triggerAsyncUpdateEv(ptr noundef nonnull align 8 dereferenceable(16)) #3

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZNK4juce21ReferenceCountedArrayINS_19AudioProcessorGraph4NodeENS_20DummyCriticalSectionEE12getUncheckedEi(ptr dead_on_unwind noalias writable sret(%"class.juce::ReferenceCountedObjectPtr.87") align 8, ptr noundef nonnull align 8 dereferenceable(20), i32 noundef) #4 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_ZN4juce19AudioProcessorGraph7addNodeEPNS_14AudioProcessorEj(ptr noundef nonnull align 8 dereferenceable(417) %0, ptr noundef %1, i32 noundef %2) #2 align 2 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca %"class.juce::ReferenceCountedObjectPtr.87", align 8
  %11 = alloca ptr, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store i32 %2, ptr %7, align 4, !tbaa !9
  %12 = load ptr, ptr %5, align 8
  %13 = load ptr, ptr %6, align 8, !tbaa !5
  %14 = icmp eq ptr %13, null
  br i1 %14, label %18, label %15

15:                                               ; preds = %3
  %16 = load ptr, ptr %6, align 8, !tbaa !5
  %17 = icmp eq ptr %16, %12
  br i1 %17, label %18, label %21

18:                                               ; preds = %15, %3
  br label %19

19:                                               ; preds = %18
  br label %20

20:                                               ; preds = %19
  store ptr null, ptr %4, align 8
  br label %83

21:                                               ; preds = %15
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  %22 = getelementptr inbounds %"class.juce::AudioProcessorGraph", ptr %12, i32 0, i32 2
  %23 = call noundef i32 @_ZNK4juce21ReferenceCountedArrayINS_19AudioProcessorGraph4NodeENS_20DummyCriticalSectionEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20) %22) #6
  store i32 %23, ptr %8, align 4, !tbaa !9
  br label %24

24:                                               ; preds = %40, %21
  %25 = load i32, ptr %8, align 4, !tbaa !9
  %26 = add nsw i32 %25, -1
  store i32 %26, ptr %8, align 4, !tbaa !9
  %27 = icmp sge i32 %26, 0
  br i1 %27, label %29, label %28

28:                                               ; preds = %24
  store i32 4, ptr %9, align 4
  br label %41

29:                                               ; preds = %24
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  %30 = getelementptr inbounds %"class.juce::AudioProcessorGraph", ptr %12, i32 0, i32 2
  %31 = load i32, ptr %8, align 4, !tbaa !9
  call void @_ZNK4juce21ReferenceCountedArrayINS_19AudioProcessorGraph4NodeENS_20DummyCriticalSectionEE12getUncheckedEi(ptr dead_on_unwind writable sret(%"class.juce::ReferenceCountedObjectPtr.87") align 8 %10, ptr noundef nonnull align 8 dereferenceable(20) %30, i32 noundef %31) #6
  %32 = call noundef ptr @_ZNK4juce25ReferenceCountedObjectPtrINS_19AudioProcessorGraph4NodeEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #6
  %33 = call noundef ptr @_ZNK4juce19AudioProcessorGraph4Node12getProcessorEv(ptr noundef nonnull align 8 dereferenceable(57) %32) #6
  %34 = load ptr, ptr %6, align 8, !tbaa !5
  %35 = icmp eq ptr %33, %34
  call void @_ZN4juce25ReferenceCountedObjectPtrINS_19AudioProcessorGraph4NodeEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  br i1 %35, label %36, label %40

36:                                               ; preds = %29
  br label %37

37:                                               ; preds = %36
  br label %38

38:                                               ; preds = %37
  br label %39

39:                                               ; preds = %38
  store ptr null, ptr %4, align 8
  store i32 1, ptr %9, align 4
  br label %41

40:                                               ; preds = %29
  br label %24, !llvm.loop !11

41:                                               ; preds = %39, %28
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  %42 = load i32, ptr %9, align 4
  switch i32 %42, label %85 [
    i32 4, label %43
    i32 1, label %83
  ]

43:                                               ; preds = %41
  %44 = load i32, ptr %7, align 4, !tbaa !9
  %45 = icmp eq i32 %44, 0
  br i1 %45, label %46, label %50

46:                                               ; preds = %43
  %47 = getelementptr inbounds %"class.juce::AudioProcessorGraph", ptr %12, i32 0, i32 4
  %48 = load i32, ptr %47, align 8, !tbaa !13
  %49 = add i32 %48, 1
  store i32 %49, ptr %47, align 8, !tbaa !13
  store i32 %49, ptr %7, align 4, !tbaa !9
  br label %63

50:                                               ; preds = %43
  br label %51

51:                                               ; preds = %50
  br label %52

52:                                               ; preds = %51
  %53 = load i32, ptr %7, align 4, !tbaa !9
  %54 = call noundef zeroext i1 @_ZN4juce19AudioProcessorGraph10removeNodeEj(ptr noundef nonnull align 8 dereferenceable(417) %12, i32 noundef %53)
  %55 = load i32, ptr %7, align 4, !tbaa !9
  %56 = getelementptr inbounds %"class.juce::AudioProcessorGraph", ptr %12, i32 0, i32 4
  %57 = load i32, ptr %56, align 8, !tbaa !13
  %58 = icmp ugt i32 %55, %57
  br i1 %58, label %59, label %62

59:                                               ; preds = %52
  %60 = load i32, ptr %7, align 4, !tbaa !9
  %61 = getelementptr inbounds %"class.juce::AudioProcessorGraph", ptr %12, i32 0, i32 4
  store i32 %60, ptr %61, align 8, !tbaa !13
  br label %62

62:                                               ; preds = %59, %52
  br label %63

63:                                               ; preds = %62, %46
  %64 = load ptr, ptr %6, align 8, !tbaa !5
  %65 = call noundef ptr @_ZNK4juce14AudioProcessor11getPlayHeadEv(ptr noundef nonnull align 8 dereferenceable(256) %12) #6
  %66 = load ptr, ptr %64, align 8, !tbaa !54
  %67 = getelementptr inbounds ptr, ptr %66, i64 50
  %68 = load ptr, ptr %67, align 8
  call void %68(ptr noundef nonnull align 8 dereferenceable(256) %64, ptr noundef %65)
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  %69 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 64) #7
  %70 = load i32, ptr %7, align 4, !tbaa !9
  %71 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN4juce19AudioProcessorGraph4NodeC1EjPNS_14AudioProcessorE(ptr noundef nonnull align 8 dereferenceable(57) %69, i32 noundef %70, ptr noundef %71) #6
  store ptr %69, ptr %11, align 8, !tbaa !5
  %72 = getelementptr inbounds %"class.juce::AudioProcessorGraph", ptr %12, i32 0, i32 2
  %73 = load ptr, ptr %11, align 8, !tbaa !5
  %74 = call noundef ptr @_ZN4juce21ReferenceCountedArrayINS_19AudioProcessorGraph4NodeENS_20DummyCriticalSectionEE3addEPS2_(ptr noundef nonnull align 8 dereferenceable(20) %72, ptr noundef %73) #6
  %75 = getelementptr inbounds %"class.juce::AudioProcessorGraph", ptr %12, i32 0, i32 11
  %76 = load i8, ptr %75, align 8, !tbaa !56, !range !57, !noundef !58
  %77 = trunc i8 %76 to i1
  br i1 %77, label %78, label %80

78:                                               ; preds = %63
  %79 = getelementptr inbounds i8, ptr %12, i64 256
  call void @_ZN4juce12AsyncUpdater18triggerAsyncUpdateEv(ptr noundef nonnull align 8 dereferenceable(16) %79)
  br label %80

80:                                               ; preds = %78, %63
  %81 = load ptr, ptr %11, align 8, !tbaa !5
  call void @_ZNK4juce19AudioProcessorGraph4Node14setParentGraphEPS0_(ptr noundef nonnull align 8 dereferenceable(57) %81, ptr noundef %12)
  %82 = load ptr, ptr %11, align 8, !tbaa !5
  store ptr %82, ptr %4, align 8
  store i32 1, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  br label %83

83:                                               ; preds = %80, %41, %20
  %84 = load ptr, ptr %4, align 8
  ret ptr %84

85:                                               ; preds = %41
  unreachable
}

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

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

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

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

declare void @_ZN4juce19AudioProcessorGraph4NodeC1EjPNS_14AudioProcessorE(ptr, i32, ptr)

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #3 = { "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 nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind }
attributes #7 = { builtin allocsize(0) }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!14, !10, i64 320}
!14 = !{!"_ZTSN4juce19AudioProcessorGraphE", !15, i64 0, !35, i64 256, !37, i64 272, !40, i64 296, !10, i64 320, !43, i64 328, !46, i64 352, !49, i64 376, !6, i64 384, !50, i64 392, !24, i64 416}
!15 = !{!"_ZTSN4juce14AudioProcessorE", !16, i64 8, !6, i64 16, !17, i64 24, !20, i64 48, !23, i64 56, !10, i64 64, !10, i64 68, !24, i64 72, !24, i64 73, !25, i64 76, !26, i64 80, !26, i64 120, !27, i64 160, !27, i64 184, !30, i64 208, !30, i64 216, !10, i64 224, !10, i64 228, !32, i64 232}
!16 = !{!"_ZTSN4juce14AudioProcessor11WrapperTypeE", !7, i64 0}
!17 = !{!"_ZTSN4juce5ArrayIPNS_22AudioProcessorListenerENS_20DummyCriticalSectionELi0EEE", !18, i64 0, !10, i64 16}
!18 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_22AudioProcessorListenerENS_20DummyCriticalSectionEEE", !19, i64 0, !10, i64 8}
!19 = !{!"_ZTSN4juce9HeapBlockIPNS_22AudioProcessorListenerELb0EEE", !6, i64 0}
!20 = !{!"_ZTSN4juce9Component11SafePointerINS_20AudioProcessorEditorEEE", !21, i64 0}
!21 = !{!"_ZTSN4juce13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEEE", !22, i64 0}
!22 = !{!"_ZTSN4juce25ReferenceCountedObjectPtrINS_13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEE13SharedPointerEEE", !6, i64 0}
!23 = !{!"double", !7, i64 0}
!24 = !{!"bool", !7, i64 0}
!25 = !{!"_ZTSN4juce14AudioProcessor19ProcessingPrecisionE", !7, i64 0}
!26 = !{!"_ZTSN4juce15CriticalSectionE", !7, i64 0}
!27 = !{!"_ZTSN4juce10OwnedArrayINS_14AudioProcessor3BusENS_20DummyCriticalSectionEEE", !28, i64 0, !10, i64 16}
!28 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_14AudioProcessor3BusENS_20DummyCriticalSectionEEE", !29, i64 0, !10, i64 8}
!29 = !{!"_ZTSN4juce9HeapBlockIPNS_14AudioProcessor3BusELb0EEE", !6, i64 0}
!30 = !{!"_ZTSN4juce6StringE", !31, i64 0}
!31 = !{!"_ZTSN4juce16CharPointer_UTF8E", !6, i64 0}
!32 = !{!"_ZTSN4juce10OwnedArrayINS_23AudioProcessorParameterENS_20DummyCriticalSectionEEE", !33, i64 0, !10, i64 16}
!33 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_23AudioProcessorParameterENS_20DummyCriticalSectionEEE", !34, i64 0, !10, i64 8}
!34 = !{!"_ZTSN4juce9HeapBlockIPNS_23AudioProcessorParameterELb0EEE", !6, i64 0}
!35 = !{!"_ZTSN4juce12AsyncUpdaterE", !36, i64 8}
!36 = !{!"_ZTSN4juce25ReferenceCountedObjectPtrINS_12AsyncUpdater19AsyncUpdaterMessageEEE", !6, i64 0}
!37 = !{!"_ZTSN4juce21ReferenceCountedArrayINS_19AudioProcessorGraph4NodeENS_20DummyCriticalSectionEEE", !38, i64 0, !10, i64 16}
!38 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_19AudioProcessorGraph4NodeENS_20DummyCriticalSectionEEE", !39, i64 0, !10, i64 8}
!39 = !{!"_ZTSN4juce9HeapBlockIPNS_19AudioProcessorGraph4NodeELb0EEE", !6, i64 0}
!40 = !{!"_ZTSN4juce10OwnedArrayINS_19AudioProcessorGraph10ConnectionENS_20DummyCriticalSectionEEE", !41, i64 0, !10, i64 16}
!41 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_19AudioProcessorGraph10ConnectionENS_20DummyCriticalSectionEEE", !42, i64 0, !10, i64 8}
!42 = !{!"_ZTSN4juce9HeapBlockIPNS_19AudioProcessorGraph10ConnectionELb0EEE", !6, i64 0}
!43 = !{!"_ZTSN4juce10OwnedArrayINS_10MidiBufferENS_20DummyCriticalSectionEEE", !44, i64 0, !10, i64 16}
!44 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_10MidiBufferENS_20DummyCriticalSectionEEE", !45, i64 0, !10, i64 8}
!45 = !{!"_ZTSN4juce9HeapBlockIPNS_10MidiBufferELb0EEE", !6, i64 0}
!46 = !{!"_ZTSN4juce5ArrayIPvNS_20DummyCriticalSectionELi0EEE", !47, i64 0, !10, i64 16}
!47 = !{!"_ZTSN4juce19ArrayAllocationBaseIPvNS_20DummyCriticalSectionEEE", !48, i64 0, !10, i64 8}
!48 = !{!"_ZTSN4juce9HeapBlockIPvLb0EEE", !6, i64 0}
!49 = !{!"_ZTSN4juce13ScopedPointerINS_19AudioProcessorGraph32AudioProcessorGraphBufferHelpersEEE", !6, i64 0}
!50 = !{!"_ZTSN4juce10MidiBufferE", !51, i64 0}
!51 = !{!"_ZTSN4juce5ArrayIhNS_20DummyCriticalSectionELi0EEE", !52, i64 0, !10, i64 16}
!52 = !{!"_ZTSN4juce19ArrayAllocationBaseIhNS_20DummyCriticalSectionEEE", !53, i64 0, !10, i64 8}
!53 = !{!"_ZTSN4juce9HeapBlockIhLb0EEE", !6, i64 0}
!54 = !{!55, !55, i64 0}
!55 = !{!"vtable pointer", !8, i64 0}
!56 = !{!14, !24, i64 416}
!57 = !{i8 0, i8 2}
!58 = !{}


; 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::ReferenceCountedObjectPtr.87" = type { ptr }

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

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

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

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

declare void @_ZN4juce12AsyncUpdater18triggerAsyncUpdateEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #3

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZNK4juce21ReferenceCountedArrayINS_19AudioProcessorGraph4NodeENS_20DummyCriticalSectionEE12getUncheckedEi(ptr dead_on_unwind noalias writable sret(%"class.juce::ReferenceCountedObjectPtr.87") align 8, ptr noundef nonnull align 8 dereferenceable(20), i32 noundef) local_unnamed_addr #4 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_ZN4juce19AudioProcessorGraph7addNodeEPNS_14AudioProcessorEj(ptr noundef nonnull align 8 dereferenceable(417) %0, ptr noundef %1, i32 noundef %2) local_unnamed_addr #2 align 2 {
  %4 = alloca %"class.juce::ReferenceCountedObjectPtr.87", align 8
  %5 = icmp eq ptr %1, null
  %6 = icmp eq ptr %1, %0
  %or.cond = or i1 %5, %6
  br i1 %or.cond, label %.loopexit, label %7

7:                                                ; preds = %3
  %8 = getelementptr inbounds i8, ptr %0, i64 272
  %9 = tail call noundef i32 @_ZNK4juce21ReferenceCountedArrayINS_19AudioProcessorGraph4NodeENS_20DummyCriticalSectionEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20) %8) #6
  br label %10

10:                                               ; preds = %12, %7
  %.019 = phi i32 [ %9, %7 ], [ %13, %12 ]
  %11 = icmp sgt i32 %.019, 0
  br i1 %11, label %12, label %17

12:                                               ; preds = %10
  %13 = add nsw i32 %.019, -1
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #6
  call void @_ZNK4juce21ReferenceCountedArrayINS_19AudioProcessorGraph4NodeENS_20DummyCriticalSectionEE12getUncheckedEi(ptr dead_on_unwind nonnull writable sret(%"class.juce::ReferenceCountedObjectPtr.87") align 8 %4, ptr noundef nonnull align 8 dereferenceable(20) %8, i32 noundef %13) #6
  %14 = call noundef ptr @_ZNK4juce25ReferenceCountedObjectPtrINS_19AudioProcessorGraph4NodeEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #6
  %15 = call noundef ptr @_ZNK4juce19AudioProcessorGraph4Node12getProcessorEv(ptr noundef nonnull align 8 dereferenceable(57) %14) #6
  %16 = icmp eq ptr %15, %1
  call void @_ZN4juce25ReferenceCountedObjectPtrINS_19AudioProcessorGraph4NodeEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  br i1 %16, label %.loopexit, label %10, !llvm.loop !5

17:                                               ; preds = %10
  %18 = icmp eq i32 %2, 0
  br i1 %18, label %19, label %23

19:                                               ; preds = %17
  %20 = getelementptr inbounds i8, ptr %0, i64 320
  %21 = load i32, ptr %20, align 8, !tbaa !7
  %22 = add i32 %21, 1
  store i32 %22, ptr %20, align 8, !tbaa !7
  br label %29

23:                                               ; preds = %17
  %24 = call noundef zeroext i1 @_ZN4juce19AudioProcessorGraph10removeNodeEj(ptr noundef nonnull align 8 dereferenceable(417) %0, i32 noundef %2)
  %25 = getelementptr inbounds i8, ptr %0, i64 320
  %26 = load i32, ptr %25, align 8, !tbaa !7
  %27 = icmp ult i32 %26, %2
  br i1 %27, label %28, label %29

28:                                               ; preds = %23
  store i32 %2, ptr %25, align 8, !tbaa !7
  br label %29

29:                                               ; preds = %23, %28, %19
  %.020 = phi i32 [ %22, %19 ], [ %2, %28 ], [ %2, %23 ]
  %30 = call noundef ptr @_ZNK4juce14AudioProcessor11getPlayHeadEv(ptr noundef nonnull align 8 dereferenceable(256) %0) #6
  %31 = load ptr, ptr %1, align 8, !tbaa !52
  %32 = getelementptr inbounds i8, ptr %31, i64 400
  %33 = load ptr, ptr %32, align 8
  call void %33(ptr noundef nonnull align 8 dereferenceable(256) %1, ptr noundef %30)
  %34 = call noalias noundef nonnull dereferenceable(64) ptr @_Znwm(i64 noundef 64) #7
  call void @_ZN4juce19AudioProcessorGraph4NodeC1EjPNS_14AudioProcessorE(ptr noundef nonnull align 8 dereferenceable(57) %34, i32 noundef %.020, ptr noundef nonnull %1) #6
  %35 = call noundef ptr @_ZN4juce21ReferenceCountedArrayINS_19AudioProcessorGraph4NodeENS_20DummyCriticalSectionEE3addEPS2_(ptr noundef nonnull align 8 dereferenceable(20) %8, ptr noundef nonnull %34) #6
  %36 = getelementptr inbounds i8, ptr %0, i64 416
  %37 = load i8, ptr %36, align 8, !tbaa !54, !range !55, !noundef !56
  %38 = trunc nuw i8 %37 to i1
  br i1 %38, label %39, label %41

39:                                               ; preds = %29
  %40 = getelementptr inbounds i8, ptr %0, i64 256
  call void @_ZN4juce12AsyncUpdater18triggerAsyncUpdateEv(ptr noundef nonnull align 8 dereferenceable(16) %40)
  br label %41

41:                                               ; preds = %39, %29
  call void @_ZNK4juce19AudioProcessorGraph4Node14setParentGraphEPS0_(ptr noundef nonnull align 8 dereferenceable(57) %34, ptr noundef nonnull %0)
  br label %.loopexit

.loopexit:                                        ; preds = %12, %3, %41
  %.1 = phi ptr [ %34, %41 ], [ null, %3 ], [ null, %12 ]
  ret ptr %.1
}

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

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

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

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #3 = { "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 nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind }
attributes #7 = { 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 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = !{!8, !17, i64 320}
!8 = !{!"_ZTSN4juce19AudioProcessorGraphE", !9, i64 0, !33, i64 256, !35, i64 272, !38, i64 296, !17, i64 320, !41, i64 328, !44, i64 352, !47, i64 376, !13, i64 384, !48, i64 392, !22, i64 416}
!9 = !{!"_ZTSN4juce14AudioProcessorE", !10, i64 8, !13, i64 16, !14, i64 24, !18, i64 48, !21, i64 56, !17, i64 64, !17, i64 68, !22, i64 72, !22, i64 73, !23, i64 76, !24, i64 80, !24, i64 120, !25, i64 160, !25, i64 184, !28, i64 208, !28, i64 216, !17, i64 224, !17, i64 228, !30, i64 232}
!10 = !{!"_ZTSN4juce14AudioProcessor11WrapperTypeE", !11, i64 0}
!11 = !{!"omnipotent char", !12, i64 0}
!12 = !{!"Simple C++ TBAA"}
!13 = !{!"any pointer", !11, i64 0}
!14 = !{!"_ZTSN4juce5ArrayIPNS_22AudioProcessorListenerENS_20DummyCriticalSectionELi0EEE", !15, i64 0, !17, i64 16}
!15 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_22AudioProcessorListenerENS_20DummyCriticalSectionEEE", !16, i64 0, !17, i64 8}
!16 = !{!"_ZTSN4juce9HeapBlockIPNS_22AudioProcessorListenerELb0EEE", !13, i64 0}
!17 = !{!"int", !11, i64 0}
!18 = !{!"_ZTSN4juce9Component11SafePointerINS_20AudioProcessorEditorEEE", !19, i64 0}
!19 = !{!"_ZTSN4juce13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEEE", !20, i64 0}
!20 = !{!"_ZTSN4juce25ReferenceCountedObjectPtrINS_13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEE13SharedPointerEEE", !13, i64 0}
!21 = !{!"double", !11, i64 0}
!22 = !{!"bool", !11, i64 0}
!23 = !{!"_ZTSN4juce14AudioProcessor19ProcessingPrecisionE", !11, i64 0}
!24 = !{!"_ZTSN4juce15CriticalSectionE", !11, i64 0}
!25 = !{!"_ZTSN4juce10OwnedArrayINS_14AudioProcessor3BusENS_20DummyCriticalSectionEEE", !26, i64 0, !17, i64 16}
!26 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_14AudioProcessor3BusENS_20DummyCriticalSectionEEE", !27, i64 0, !17, i64 8}
!27 = !{!"_ZTSN4juce9HeapBlockIPNS_14AudioProcessor3BusELb0EEE", !13, i64 0}
!28 = !{!"_ZTSN4juce6StringE", !29, i64 0}
!29 = !{!"_ZTSN4juce16CharPointer_UTF8E", !13, i64 0}
!30 = !{!"_ZTSN4juce10OwnedArrayINS_23AudioProcessorParameterENS_20DummyCriticalSectionEEE", !31, i64 0, !17, i64 16}
!31 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_23AudioProcessorParameterENS_20DummyCriticalSectionEEE", !32, i64 0, !17, i64 8}
!32 = !{!"_ZTSN4juce9HeapBlockIPNS_23AudioProcessorParameterELb0EEE", !13, i64 0}
!33 = !{!"_ZTSN4juce12AsyncUpdaterE", !34, i64 8}
!34 = !{!"_ZTSN4juce25ReferenceCountedObjectPtrINS_12AsyncUpdater19AsyncUpdaterMessageEEE", !13, i64 0}
!35 = !{!"_ZTSN4juce21ReferenceCountedArrayINS_19AudioProcessorGraph4NodeENS_20DummyCriticalSectionEEE", !36, i64 0, !17, i64 16}
!36 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_19AudioProcessorGraph4NodeENS_20DummyCriticalSectionEEE", !37, i64 0, !17, i64 8}
!37 = !{!"_ZTSN4juce9HeapBlockIPNS_19AudioProcessorGraph4NodeELb0EEE", !13, i64 0}
!38 = !{!"_ZTSN4juce10OwnedArrayINS_19AudioProcessorGraph10ConnectionENS_20DummyCriticalSectionEEE", !39, i64 0, !17, i64 16}
!39 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_19AudioProcessorGraph10ConnectionENS_20DummyCriticalSectionEEE", !40, i64 0, !17, i64 8}
!40 = !{!"_ZTSN4juce9HeapBlockIPNS_19AudioProcessorGraph10ConnectionELb0EEE", !13, i64 0}
!41 = !{!"_ZTSN4juce10OwnedArrayINS_10MidiBufferENS_20DummyCriticalSectionEEE", !42, i64 0, !17, i64 16}
!42 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_10MidiBufferENS_20DummyCriticalSectionEEE", !43, i64 0, !17, i64 8}
!43 = !{!"_ZTSN4juce9HeapBlockIPNS_10MidiBufferELb0EEE", !13, i64 0}
!44 = !{!"_ZTSN4juce5ArrayIPvNS_20DummyCriticalSectionELi0EEE", !45, i64 0, !17, i64 16}
!45 = !{!"_ZTSN4juce19ArrayAllocationBaseIPvNS_20DummyCriticalSectionEEE", !46, i64 0, !17, i64 8}
!46 = !{!"_ZTSN4juce9HeapBlockIPvLb0EEE", !13, i64 0}
!47 = !{!"_ZTSN4juce13ScopedPointerINS_19AudioProcessorGraph32AudioProcessorGraphBufferHelpersEEE", !13, i64 0}
!48 = !{!"_ZTSN4juce10MidiBufferE", !49, i64 0}
!49 = !{!"_ZTSN4juce5ArrayIhNS_20DummyCriticalSectionELi0EEE", !50, i64 0, !17, i64 16}
!50 = !{!"_ZTSN4juce19ArrayAllocationBaseIhNS_20DummyCriticalSectionEEE", !51, i64 0, !17, i64 8}
!51 = !{!"_ZTSN4juce9HeapBlockIhLb0EEE", !13, i64 0}
!52 = !{!53, !53, i64 0}
!53 = !{!"vtable pointer", !12, i64 0}
!54 = !{!8, !22, i64 416}
!55 = !{i8 0, i8 2}
!56 = !{}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass