; LLVM IR from glaretechnologies/substrata :: resonance-audio/resonance_audio/node (processing_node)

; 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.std::unordered_map" = type { %"class.std::_Hashtable" }
%"class.std::_Hashtable" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%"struct.std::__detail::_Node_const_iterator" = type { %"struct.std::__detail::_Node_iterator_base" }
%"struct.std::__detail::_Node_iterator_base" = type { ptr }
%"class.std::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"class.vraudio::ProcessingNode" = type <{ %"class.vraudio::Node", %"class.vraudio::SubscriberNode", %"class.vraudio::PublisherNode", %"class.vraudio::Node::Input", %"class.vraudio::Node::Output", i8, [7 x i8] }>
%"class.vraudio::Node" = type { ptr, %"class.std::enable_shared_from_this" }
%"class.std::enable_shared_from_this" = type { %"class.std::weak_ptr" }
%"class.std::weak_ptr" = type { %"class.std::__weak_ptr" }
%"class.std::__weak_ptr" = type { ptr, %"class.std::__weak_count" }
%"class.std::__weak_count" = type { ptr }
%"class.vraudio::SubscriberNode" = type { ptr }
%"class.vraudio::PublisherNode" = type { ptr }
%"class.vraudio::Node::Input" = type { %"class.std::unordered_map", %"class.std::vector" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<const vraudio::AudioBuffer *, std::allocator<const vraudio::AudioBuffer *>>::_Vector_impl" }
%"struct.std::_Vector_base<const vraudio::AudioBuffer *, std::allocator<const vraudio::AudioBuffer *>>::_Vector_impl" = type { %"struct.std::_Vector_base<const vraudio::AudioBuffer *, std::allocator<const vraudio::AudioBuffer *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<const vraudio::AudioBuffer *, std::allocator<const vraudio::AudioBuffer *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.vraudio::Node::Output" = type { %"class.std::set", %"class.std::vector", ptr }
%"class.std::set" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<vraudio::Node::Input<const vraudio::AudioBuffer *> *, vraudio::Node::Input<const vraudio::AudioBuffer *> *, std::_Identity<vraudio::Node::Input<const vraudio::AudioBuffer *> *>, std::less<vraudio::Node::Input<const vraudio::AudioBuffer *> *>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<vraudio::Node::Input<const vraudio::AudioBuffer *> *, vraudio::Node::Input<const vraudio::AudioBuffer *> *, std::_Identity<vraudio::Node::Input<const vraudio::AudioBuffer *> *>, std::less<vraudio::Node::Input<const vraudio::AudioBuffer *> *>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"struct.std::pair" = type { ptr, %"class.std::shared_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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7vraudio14ProcessingNode23CallCleanUpOnInputNodesEv(ptr noundef nonnull align 8 dereferenceable(201) %0) #2 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca %"class.std::unordered_map", align 8
  %4 = alloca ptr, align 8
  %5 = alloca %"struct.std::__detail::_Node_const_iterator", align 8
  %6 = alloca %"struct.std::__detail::_Node_const_iterator", align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca %"class.std::shared_ptr", align 8
  %10 = alloca i8, align 1
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  %13 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 56, ptr %3) #4
  %14 = getelementptr inbounds %"class.vraudio::ProcessingNode", ptr %13, i32 0, i32 3
  %15 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZN7vraudio4Node5InputIPKNS_11AudioBufferEE27GetConnectedNodeOutputPairsEv(ptr noundef nonnull align 8 dereferenceable(80) %14)
  call void @_ZNSt13unordered_mapIPN7vraudio4Node6OutputIPKNS0_11AudioBufferEEESt10shared_ptrIS1_ESt4hashIS7_ESt8equal_toIS7_ESaISt4pairIKS7_S9_EEEC2ERKSI_(ptr noundef nonnull align 8 dereferenceable(56) %3, ptr noundef nonnull align 8 dereferenceable(56) %15)
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #4
  store ptr %3, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
  %16 = load ptr, ptr %4, align 8, !tbaa !5
  %17 = call ptr @_ZNKSt13unordered_mapIPN7vraudio4Node6OutputIPKNS0_11AudioBufferEEESt10shared_ptrIS1_ESt4hashIS7_ESt8equal_toIS7_ESaISt4pairIKS7_S9_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(56) %16) #4
  %18 = getelementptr inbounds %"struct.std::__detail::_Node_const_iterator", ptr %5, i32 0, i32 0
  %19 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %18, i32 0, i32 0
  store ptr %17, ptr %19, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  %20 = load ptr, ptr %4, align 8, !tbaa !5
  %21 = call ptr @_ZNKSt13unordered_mapIPN7vraudio4Node6OutputIPKNS0_11AudioBufferEEESt10shared_ptrIS1_ESt4hashIS7_ESt8equal_toIS7_ESaISt4pairIKS7_S9_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %20) #4
  %22 = getelementptr inbounds %"struct.std::__detail::_Node_const_iterator", ptr %6, i32 0, i32 0
  %23 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %22, i32 0, i32 0
  store ptr %21, ptr %23, align 8
  br label %24

24:                                               ; preds = %52, %1
  %25 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKPN7vraudio4Node6OutputIPKNS2_11AudioBufferEEESt10shared_ptrIS3_EELb0EEESG_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6) #4
  br i1 %25, label %27, label %26

26:                                               ; preds = %24
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #4
  br label %54

27:                                               ; preds = %24
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  %28 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt8__detail20_Node_const_iteratorISt4pairIKPN7vraudio4Node6OutputIPKNS2_11AudioBufferEEESt10shared_ptrIS3_EELb0ELb0EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #4
  store ptr %28, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  %29 = load ptr, ptr %7, align 8, !tbaa !5
  %30 = getelementptr inbounds %"struct.std::pair", ptr %29, i32 0, i32 0
  %31 = load ptr, ptr %30, align 8, !tbaa !9
  store ptr %31, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #4
  %32 = load ptr, ptr %7, align 8, !tbaa !5
  %33 = getelementptr inbounds %"struct.std::pair", ptr %32, i32 0, i32 1
  call void @_ZNSt10shared_ptrIN7vraudio4NodeEEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull align 8 dereferenceable(16) %33) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr %10) #4
  %34 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN7vraudio4NodeELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %9) #4
  %35 = load ptr, ptr %34, align 8, !tbaa !14
  %36 = getelementptr inbounds ptr, ptr %35, i64 3
  %37 = load ptr, ptr %36, align 8
  %38 = invoke noundef zeroext i1 %37(ptr noundef nonnull align 8 dereferenceable(24) %34)
          to label %39 unwind label %47

39:                                               ; preds = %27
  %40 = zext i1 %38 to i8
  store i8 %40, ptr %10, align 1, !tbaa !16
  %41 = load i8, ptr %10, align 1, !tbaa !16, !range !18, !noundef !19
  %42 = trunc i8 %41 to i1
  br i1 %42, label %43, label %51

43:                                               ; preds = %39
  %44 = getelementptr inbounds %"class.vraudio::ProcessingNode", ptr %13, i32 0, i32 3
  %45 = load ptr, ptr %8, align 8, !tbaa !5
  invoke void @_ZN7vraudio4Node5InputIPKNS_11AudioBufferEE10DisconnectEPNS0_6OutputIS4_EE(ptr noundef nonnull align 8 dereferenceable(80) %44, ptr noundef %45)
          to label %46 unwind label %47

46:                                               ; preds = %43
  br label %51

47:                                               ; preds = %43, %27
  %48 = landingpad { ptr, i32 }
          cleanup
  %49 = extractvalue { ptr, i32 } %48, 0
  store ptr %49, ptr %11, align 8
  %50 = extractvalue { ptr, i32 } %48, 1
  store i32 %50, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #4
  call void @_ZNSt12__shared_ptrIN7vraudio4NodeELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #4
  call void @_ZNSt13unordered_mapIPN7vraudio4Node6OutputIPKNS0_11AudioBufferEEESt10shared_ptrIS1_ESt4hashIS7_ESt8equal_toIS7_ESaISt4pairIKS7_S9_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %3) #4
  call void @llvm.lifetime.end.p0(i64 56, ptr %3) #4
  br label %55

51:                                               ; preds = %46, %39
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #4
  call void @_ZNSt12__shared_ptrIN7vraudio4NodeELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  br label %52

52:                                               ; preds = %51
  %53 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8__detail20_Node_const_iteratorISt4pairIKPN7vraudio4Node6OutputIPKNS2_11AudioBufferEEESt10shared_ptrIS3_EELb0ELb0EEppEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #4
  br label %24

54:                                               ; preds = %26
  call void @_ZNSt13unordered_mapIPN7vraudio4Node6OutputIPKNS0_11AudioBufferEEESt10shared_ptrIS1_ESt4hashIS7_ESt8equal_toIS7_ESaISt4pairIKS7_S9_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %3) #4
  call void @llvm.lifetime.end.p0(i64 56, ptr %3) #4
  ret void

55:                                               ; preds = %47
  %56 = load ptr, ptr %11, align 8
  %57 = load i32, ptr %12, align 4
  %58 = insertvalue { ptr, i32 } poison, ptr %56, 0
  %59 = insertvalue { ptr, i32 } %58, i32 %57, 1
  resume { ptr, i32 } %59
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(56) ptr @_ZN7vraudio4Node5InputIPKNS_11AudioBufferEE27GetConnectedNodeOutputPairsEv(ptr noundef nonnull align 8 dereferenceable(80)) #1 align 2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKPN7vraudio4Node6OutputIPKNS2_11AudioBufferEEESt10shared_ptrIS3_EELb0EEESG_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #1

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

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

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

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

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

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

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 = { 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 = { 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 = { 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, !6, i64 0}
!10 = !{!"_ZTSSt4pairIKPN7vraudio4Node6OutputIPKNS0_11AudioBufferEEESt10shared_ptrIS1_EE", !6, i64 0, !11, i64 8}
!11 = !{!"_ZTSSt10shared_ptrIN7vraudio4NodeEE", !12, i64 0}
!12 = !{!"_ZTSSt12__shared_ptrIN7vraudio4NodeELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !13, i64 8}
!13 = !{!"_ZTSSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"vtable pointer", !8, i64 0}
!16 = !{!17, !17, i64 0}
!17 = !{!"bool", !7, i64 0}
!18 = !{i8 0, i8 2}
!19 = !{}


; 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.std::unordered_map" = type { %"class.std::_Hashtable" }
%"class.std::_Hashtable" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%"struct.std::__detail::_Node_const_iterator" = type { %"struct.std::__detail::_Node_iterator_base" }
%"struct.std::__detail::_Node_iterator_base" = type { ptr }
%"class.std::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = 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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7vraudio14ProcessingNode23CallCleanUpOnInputNodesEv(ptr noundef nonnull align 8 dereferenceable(201) %0) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.std::unordered_map", align 8
  %3 = alloca %"struct.std::__detail::_Node_const_iterator", align 8
  %4 = alloca %"struct.std::__detail::_Node_const_iterator", align 8
  %5 = alloca %"class.std::shared_ptr", align 8
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %2) #4
  %6 = getelementptr inbounds i8, ptr %0, i64 40
  %7 = tail call noundef nonnull align 8 dereferenceable(56) ptr @_ZN7vraudio4Node5InputIPKNS_11AudioBufferEE27GetConnectedNodeOutputPairsEv(ptr noundef nonnull align 8 dereferenceable(80) %6)
  call void @_ZNSt13unordered_mapIPN7vraudio4Node6OutputIPKNS0_11AudioBufferEEESt10shared_ptrIS1_ESt4hashIS7_ESt8equal_toIS7_ESaISt4pairIKS7_S9_EEEC2ERKSI_(ptr noundef nonnull align 8 dereferenceable(56) %2, ptr noundef nonnull align 8 dereferenceable(56) %7)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #4
  %8 = call ptr @_ZNKSt13unordered_mapIPN7vraudio4Node6OutputIPKNS0_11AudioBufferEEESt10shared_ptrIS1_ESt4hashIS7_ESt8equal_toIS7_ESaISt4pairIKS7_S9_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(56) %2) #4
  store ptr %8, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #4
  %9 = call ptr @_ZNKSt13unordered_mapIPN7vraudio4Node6OutputIPKNS0_11AudioBufferEEESt10shared_ptrIS1_ESt4hashIS7_ESt8equal_toIS7_ESaISt4pairIKS7_S9_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %2) #4
  store ptr %9, ptr %4, align 8
  %10 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKPN7vraudio4Node6OutputIPKNS2_11AudioBufferEEESt10shared_ptrIS3_EELb0EEESG_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %4) #4
  br i1 %10, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %23, %1
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #4
  call void @_ZNSt13unordered_mapIPN7vraudio4Node6OutputIPKNS0_11AudioBufferEEESt10shared_ptrIS1_ESt4hashIS7_ESt8equal_toIS7_ESaISt4pairIKS7_S9_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %2) #4
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %2) #4
  ret void

.lr.ph:                                           ; preds = %1, %23
  %11 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt8__detail20_Node_const_iteratorISt4pairIKPN7vraudio4Node6OutputIPKNS2_11AudioBufferEEESt10shared_ptrIS3_EELb0ELb0EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #4
  %12 = load ptr, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #4
  %13 = getelementptr inbounds i8, ptr %11, i64 8
  call void @_ZNSt10shared_ptrIN7vraudio4NodeEEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef nonnull align 8 dereferenceable(16) %13) #4
  %14 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN7vraudio4NodeELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %5) #4
  %15 = load ptr, ptr %14, align 8, !tbaa !13
  %16 = getelementptr inbounds i8, ptr %15, i64 24
  %17 = load ptr, ptr %16, align 8
  %18 = invoke noundef zeroext i1 %17(ptr noundef nonnull align 8 dereferenceable(24) %14)
          to label %19 unwind label %21

19:                                               ; preds = %.lr.ph
  br i1 %18, label %20, label %23

20:                                               ; preds = %19
  invoke void @_ZN7vraudio4Node5InputIPKNS_11AudioBufferEE10DisconnectEPNS0_6OutputIS4_EE(ptr noundef nonnull align 8 dereferenceable(80) %6, ptr noundef %12)
          to label %23 unwind label %21

21:                                               ; preds = %20, %.lr.ph
  %22 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt12__shared_ptrIN7vraudio4NodeELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #4
  call void @_ZNSt13unordered_mapIPN7vraudio4Node6OutputIPKNS0_11AudioBufferEEESt10shared_ptrIS1_ESt4hashIS7_ESt8equal_toIS7_ESaISt4pairIKS7_S9_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %2) #4
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %2) #4
  resume { ptr, i32 } %22

23:                                               ; preds = %20, %19
  call void @_ZNSt12__shared_ptrIN7vraudio4NodeELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #4
  %24 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8__detail20_Node_const_iteratorISt4pairIKPN7vraudio4Node6OutputIPKNS2_11AudioBufferEEESt10shared_ptrIS3_EELb0ELb0EEppEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #4
  %25 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKPN7vraudio4Node6OutputIPKNS2_11AudioBufferEEESt10shared_ptrIS3_EELb0EEESG_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %4) #4
  br i1 %25, label %.lr.ph, label %._crit_edge
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(56) ptr @_ZN7vraudio4Node5InputIPKNS_11AudioBufferEE27GetConnectedNodeOutputPairsEv(ptr noundef nonnull align 8 dereferenceable(80)) local_unnamed_addr #1 align 2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKPN7vraudio4Node6OutputIPKNS2_11AudioBufferEEESt10shared_ptrIS3_EELb0EEESG_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1

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

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

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

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

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

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

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 = { 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 = { 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 = { 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, !7, i64 0}
!6 = !{!"_ZTSSt4pairIKPN7vraudio4Node6OutputIPKNS0_11AudioBufferEEESt10shared_ptrIS1_EE", !7, i64 0, !10, i64 8}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTSSt10shared_ptrIN7vraudio4NodeEE", !11, i64 0}
!11 = !{!"_ZTSSt12__shared_ptrIN7vraudio4NodeELN9__gnu_cxx12_Lock_policyE2EE", !7, i64 0, !12, i64 8}
!12 = !{!"_ZTSSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EE", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"vtable pointer", !9, i64 0}


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