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

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

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

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZN4juce17PluginDescriptionC2Ev(ptr noundef nonnull align 8 dereferenceable(89) %0) unnamed_addr #1 align 2 {
  %2 = alloca ptr, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %3 = load ptr, ptr %2, align 8
  %4 = getelementptr inbounds %"class.juce::PluginDescription", ptr %3, i32 0, i32 0
  call void @_ZN4juce6StringC1Ev(ptr noundef nonnull align 8 dereferenceable(8) %4) #2
  %5 = getelementptr inbounds %"class.juce::PluginDescription", ptr %3, i32 0, i32 1
  call void @_ZN4juce6StringC1Ev(ptr noundef nonnull align 8 dereferenceable(8) %5) #2
  %6 = getelementptr inbounds %"class.juce::PluginDescription", ptr %3, i32 0, i32 2
  call void @_ZN4juce6StringC1Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #2
  %7 = getelementptr inbounds %"class.juce::PluginDescription", ptr %3, i32 0, i32 3
  call void @_ZN4juce6StringC1Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #2
  %8 = getelementptr inbounds %"class.juce::PluginDescription", ptr %3, i32 0, i32 4
  call void @_ZN4juce6StringC1Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #2
  %9 = getelementptr inbounds %"class.juce::PluginDescription", ptr %3, i32 0, i32 5
  call void @_ZN4juce6StringC1Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #2
  %10 = getelementptr inbounds %"class.juce::PluginDescription", ptr %3, i32 0, i32 6
  call void @_ZN4juce6StringC1Ev(ptr noundef nonnull align 8 dereferenceable(8) %10) #2
  %11 = getelementptr inbounds %"class.juce::PluginDescription", ptr %3, i32 0, i32 7
  call void @_ZN4juce4TimeC1Ev(ptr noundef nonnull align 8 dereferenceable(8) %11) #2
  %12 = getelementptr inbounds %"class.juce::PluginDescription", ptr %3, i32 0, i32 8
  call void @_ZN4juce4TimeC1Ev(ptr noundef nonnull align 8 dereferenceable(8) %12) #2
  %13 = getelementptr inbounds %"class.juce::PluginDescription", ptr %3, i32 0, i32 9
  store i32 0, ptr %13, align 8, !tbaa !9
  %14 = getelementptr inbounds %"class.juce::PluginDescription", ptr %3, i32 0, i32 10
  store i8 0, ptr %14, align 4, !tbaa !17
  %15 = getelementptr inbounds %"class.juce::PluginDescription", ptr %3, i32 0, i32 12
  store i32 0, ptr %15, align 8, !tbaa !18
  %16 = getelementptr inbounds %"class.juce::PluginDescription", ptr %3, i32 0, i32 13
  store i32 0, ptr %16, align 4, !tbaa !19
  %17 = getelementptr inbounds %"class.juce::PluginDescription", ptr %3, i32 0, i32 14
  store i8 0, ptr %17, align 8, !tbaa !20
  ret void
}

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

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 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 = { 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, !15, i64 72}
!10 = !{!"_ZTSN4juce17PluginDescriptionE", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !11, i64 32, !11, i64 40, !11, i64 48, !13, i64 56, !13, i64 64, !15, i64 72, !16, i64 76, !15, i64 80, !15, i64 84, !16, i64 88}
!11 = !{!"_ZTSN4juce6StringE", !12, i64 0}
!12 = !{!"_ZTSN4juce16CharPointer_UTF8E", !6, i64 0}
!13 = !{!"_ZTSN4juce4TimeE", !14, i64 0}
!14 = !{!"long long", !7, i64 0}
!15 = !{!"int", !7, i64 0}
!16 = !{!"bool", !7, i64 0}
!17 = !{!10, !16, i64 76}
!18 = !{!10, !15, i64 80}
!19 = !{!10, !15, i64 84}
!20 = !{!10, !16, i64 88}


; 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"

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

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZN4juce17PluginDescriptionC2Ev(ptr noundef nonnull align 8 dereferenceable(89) %0) unnamed_addr #1 align 2 {
  tail call void @_ZN4juce6StringC1Ev(ptr noundef nonnull align 8 dereferenceable(8) %0) #3
  %2 = getelementptr inbounds i8, ptr %0, i64 8
  tail call void @_ZN4juce6StringC1Ev(ptr noundef nonnull align 8 dereferenceable(8) %2) #3
  %3 = getelementptr inbounds i8, ptr %0, i64 16
  tail call void @_ZN4juce6StringC1Ev(ptr noundef nonnull align 8 dereferenceable(8) %3) #3
  %4 = getelementptr inbounds i8, ptr %0, i64 24
  tail call void @_ZN4juce6StringC1Ev(ptr noundef nonnull align 8 dereferenceable(8) %4) #3
  %5 = getelementptr inbounds i8, ptr %0, i64 32
  tail call void @_ZN4juce6StringC1Ev(ptr noundef nonnull align 8 dereferenceable(8) %5) #3
  %6 = getelementptr inbounds i8, ptr %0, i64 40
  tail call void @_ZN4juce6StringC1Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #3
  %7 = getelementptr inbounds i8, ptr %0, i64 48
  tail call void @_ZN4juce6StringC1Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #3
  %8 = getelementptr inbounds i8, ptr %0, i64 56
  tail call void @_ZN4juce4TimeC1Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #3
  %9 = getelementptr inbounds i8, ptr %0, i64 64
  tail call void @_ZN4juce4TimeC1Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #3
  %10 = getelementptr inbounds i8, ptr %0, i64 72
  store i32 0, ptr %10, align 8, !tbaa !5
  %11 = getelementptr inbounds i8, ptr %0, i64 76
  store i8 0, ptr %11, align 4, !tbaa !16
  %12 = getelementptr inbounds i8, ptr %0, i64 80
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(9) %12, i8 0, i64 9, i1 false)
  ret void
}

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #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 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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { 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, !14, i64 72}
!6 = !{!"_ZTSN4juce17PluginDescriptionE", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !7, i64 48, !12, i64 56, !12, i64 64, !14, i64 72, !15, i64 76, !14, i64 80, !14, i64 84, !15, i64 88}
!7 = !{!"_ZTSN4juce6StringE", !8, i64 0}
!8 = !{!"_ZTSN4juce16CharPointer_UTF8E", !9, i64 0}
!9 = !{!"any pointer", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C++ TBAA"}
!12 = !{!"_ZTSN4juce4TimeE", !13, i64 0}
!13 = !{!"long long", !10, i64 0}
!14 = !{!"int", !10, i64 0}
!15 = !{!"bool", !10, i64 0}
!16 = !{!6, !15, i64 76}


; Effective O3 passes: EarlyCSEPass,InstCombinePass,MemCpyOptPass,SROAPass,TailCallElimPass