; LLVM IR from TobiasKozel/VAE :: external/rtaudio (rtaudio_c)

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

%struct.rtaudio_device_info = type { i32, i32, i32, i32, i32, i32, i64, i32, [16 x i32], [512 x i8] }
%"struct.RtAudio::DeviceInfo" = type { i8, %"class.std::__cxx11::basic_string", i32, i32, i32, i8, i8, %"class.std::vector", i32, i32, i64 }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.rtaudio = type { ptr, ptr, ptr, i32, [512 x i8] }

; 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: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1

; Function Attrs: mustprogress uwtable
define dso_local void @rtaudio_get_device_info(ptr dead_on_unwind noalias writable sret(%struct.rtaudio_device_info) align 8 %0, ptr noundef %1, i32 noundef %2) #2 {
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca %"struct.RtAudio::DeviceInfo", align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  store ptr %1, ptr %4, align 8, !tbaa !5
  store i32 %2, ptr %5, align 4, !tbaa !9
  call void @llvm.memset.p0.i64(ptr align 8 %0, i8 0, i64 616, i1 false)
  %9 = load ptr, ptr %4, align 8, !tbaa !5
  %10 = getelementptr inbounds %struct.rtaudio, ptr %9, i32 0, i32 3
  store i32 -1, ptr %10, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 96, ptr %6) #7
  %11 = load ptr, ptr %4, align 8, !tbaa !5
  %12 = getelementptr inbounds %struct.rtaudio, ptr %11, i32 0, i32 0
  %13 = load ptr, ptr %12, align 8, !tbaa !14
  %14 = load i32, ptr %5, align 4, !tbaa !9
  call void @_ZN7RtAudio13getDeviceInfoEj(ptr dead_on_unwind writable sret(%"struct.RtAudio::DeviceInfo") align 8 %6, ptr noundef nonnull align 8 dereferenceable(8) %13, i32 noundef %14)
  %15 = load ptr, ptr %4, align 8, !tbaa !5
  %16 = getelementptr inbounds %struct.rtaudio, ptr %15, i32 0, i32 3
  %17 = load i32, ptr %16, align 8, !tbaa !11
  %18 = icmp ne i32 %17, -1
  br i1 %18, label %19, label %20

19:                                               ; preds = %3
  store i32 1, ptr %7, align 4
  br label %82

20:                                               ; preds = %3
  %21 = getelementptr inbounds %"struct.RtAudio::DeviceInfo", ptr %6, i32 0, i32 0
  %22 = load i8, ptr %21, align 8, !tbaa !15, !range !25, !noundef !26
  %23 = trunc i8 %22 to i1
  %24 = zext i1 %23 to i32
  %25 = getelementptr inbounds %struct.rtaudio_device_info, ptr %0, i32 0, i32 0
  store i32 %24, ptr %25, align 8, !tbaa !27
  %26 = getelementptr inbounds %"struct.RtAudio::DeviceInfo", ptr %6, i32 0, i32 2
  %27 = load i32, ptr %26, align 8, !tbaa !29
  %28 = getelementptr inbounds %struct.rtaudio_device_info, ptr %0, i32 0, i32 1
  store i32 %27, ptr %28, align 4, !tbaa !30
  %29 = getelementptr inbounds %"struct.RtAudio::DeviceInfo", ptr %6, i32 0, i32 3
  %30 = load i32, ptr %29, align 4, !tbaa !31
  %31 = getelementptr inbounds %struct.rtaudio_device_info, ptr %0, i32 0, i32 2
  store i32 %30, ptr %31, align 8, !tbaa !32
  %32 = getelementptr inbounds %"struct.RtAudio::DeviceInfo", ptr %6, i32 0, i32 4
  %33 = load i32, ptr %32, align 8, !tbaa !33
  %34 = getelementptr inbounds %struct.rtaudio_device_info, ptr %0, i32 0, i32 3
  store i32 %33, ptr %34, align 4, !tbaa !34
  %35 = getelementptr inbounds %"struct.RtAudio::DeviceInfo", ptr %6, i32 0, i32 5
  %36 = load i8, ptr %35, align 4, !tbaa !35, !range !25, !noundef !26
  %37 = trunc i8 %36 to i1
  %38 = zext i1 %37 to i32
  %39 = getelementptr inbounds %struct.rtaudio_device_info, ptr %0, i32 0, i32 4
  store i32 %38, ptr %39, align 8, !tbaa !36
  %40 = getelementptr inbounds %"struct.RtAudio::DeviceInfo", ptr %6, i32 0, i32 6
  %41 = load i8, ptr %40, align 1, !tbaa !37, !range !25, !noundef !26
  %42 = trunc i8 %41 to i1
  %43 = zext i1 %42 to i32
  %44 = getelementptr inbounds %struct.rtaudio_device_info, ptr %0, i32 0, i32 5
  store i32 %43, ptr %44, align 4, !tbaa !38
  %45 = getelementptr inbounds %"struct.RtAudio::DeviceInfo", ptr %6, i32 0, i32 10
  %46 = load i64, ptr %45, align 8, !tbaa !39
  %47 = getelementptr inbounds %struct.rtaudio_device_info, ptr %0, i32 0, i32 6
  store i64 %46, ptr %47, align 8, !tbaa !40
  %48 = getelementptr inbounds %"struct.RtAudio::DeviceInfo", ptr %6, i32 0, i32 9
  %49 = load i32, ptr %48, align 4, !tbaa !41
  %50 = getelementptr inbounds %struct.rtaudio_device_info, ptr %0, i32 0, i32 7
  store i32 %49, ptr %50, align 8, !tbaa !42
  %51 = getelementptr inbounds %struct.rtaudio_device_info, ptr %0, i32 0, i32 9
  %52 = getelementptr inbounds [512 x i8], ptr %51, i64 0, i64 0
  %53 = getelementptr inbounds %"struct.RtAudio::DeviceInfo", ptr %6, i32 0, i32 1
  %54 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %53) #7
  %55 = call ptr @strncpy(ptr noundef %52, ptr noundef %54, i64 noundef 511) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  store i32 0, ptr %8, align 4, !tbaa !9
  br label %56

56:                                               ; preds = %78, %20
  %57 = load i32, ptr %8, align 4, !tbaa !9
  %58 = zext i32 %57 to i64
  %59 = getelementptr inbounds %"struct.RtAudio::DeviceInfo", ptr %6, i32 0, i32 7
  %60 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %59) #7
  %61 = icmp ult i64 %58, %60
  br i1 %61, label %63, label %62

62:                                               ; preds = %56
  store i32 2, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  br label %81

63:                                               ; preds = %56
  %64 = load i32, ptr %8, align 4, !tbaa !9
  %65 = zext i32 %64 to i64
  %66 = icmp ult i64 %65, 16
  br i1 %66, label %67, label %77

67:                                               ; preds = %63
  %68 = getelementptr inbounds %"struct.RtAudio::DeviceInfo", ptr %6, i32 0, i32 7
  %69 = load i32, ptr %8, align 4, !tbaa !9
  %70 = zext i32 %69 to i64
  %71 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %68, i64 noundef %70) #7
  %72 = load i32, ptr %71, align 4, !tbaa !9
  %73 = getelementptr inbounds %struct.rtaudio_device_info, ptr %0, i32 0, i32 8
  %74 = load i32, ptr %8, align 4, !tbaa !9
  %75 = zext i32 %74 to i64
  %76 = getelementptr inbounds [16 x i32], ptr %73, i64 0, i64 %75
  store i32 %72, ptr %76, align 4, !tbaa !9
  br label %77

77:                                               ; preds = %67, %63
  br label %78

78:                                               ; preds = %77
  %79 = load i32, ptr %8, align 4, !tbaa !9
  %80 = add i32 %79, 1
  store i32 %80, ptr %8, align 4, !tbaa !9
  br label %56, !llvm.loop !43

81:                                               ; preds = %62
  store i32 1, ptr %7, align 4
  br label %82

82:                                               ; preds = %81, %19
  call void @_ZN7RtAudio10DeviceInfoD2Ev(ptr noundef nonnull align 8 dereferenceable(96) %6) #7
  call void @llvm.lifetime.end.p0(i64 96, ptr %6) #7
  ret void
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN7RtAudio13getDeviceInfoEj(ptr dead_on_unwind noalias writable sret(%"struct.RtAudio::DeviceInfo") align 8, ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #3 align 2

; Function Attrs: nounwind
declare ptr @strncpy(ptr noundef, ptr noundef, i64 noundef) #4

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #5 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN7RtAudio10DeviceInfoD2Ev(ptr noundef nonnull align 8 dereferenceable(96)) unnamed_addr #6 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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 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 "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 = { 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 #7 = { 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, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !13, i64 24}
!12 = !{!"_ZTS7rtaudio", !6, i64 0, !6, i64 8, !6, i64 16, !13, i64 24, !7, i64 28}
!13 = !{!"_ZTS13rtaudio_error", !7, i64 0}
!14 = !{!12, !6, i64 0}
!15 = !{!16, !17, i64 0}
!16 = !{!"_ZTSN7RtAudio10DeviceInfoE", !17, i64 0, !18, i64 8, !10, i64 40, !10, i64 44, !10, i64 48, !17, i64 52, !17, i64 53, !21, i64 56, !10, i64 80, !10, i64 84, !20, i64 88}
!17 = !{!"bool", !7, i64 0}
!18 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !19, i64 0, !20, i64 8, !7, i64 16}
!19 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!20 = !{!"long", !7, i64 0}
!21 = !{!"_ZTSSt6vectorIjSaIjEE", !22, i64 0}
!22 = !{!"_ZTSSt12_Vector_baseIjSaIjEE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE12_Vector_implE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!25 = !{i8 0, i8 2}
!26 = !{}
!27 = !{!28, !10, i64 0}
!28 = !{!"_ZTS19rtaudio_device_info", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !20, i64 24, !10, i64 32, !7, i64 36, !7, i64 100}
!29 = !{!16, !10, i64 40}
!30 = !{!28, !10, i64 4}
!31 = !{!16, !10, i64 44}
!32 = !{!28, !10, i64 8}
!33 = !{!16, !10, i64 48}
!34 = !{!28, !10, i64 12}
!35 = !{!16, !17, i64 52}
!36 = !{!28, !10, i64 16}
!37 = !{!16, !17, i64 53}
!38 = !{!28, !10, i64 20}
!39 = !{!16, !20, i64 88}
!40 = !{!28, !20, i64 24}
!41 = !{!16, !10, i64 84}
!42 = !{!28, !10, i64 32}
!43 = distinct !{!43, !44}
!44 = !{!"llvm.loop.mustprogress"}


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

%struct.rtaudio_device_info = type { i32, i32, i32, i32, i32, i32, i64, i32, [16 x i32], [512 x i8] }
%"struct.RtAudio::DeviceInfo" = type { i8, %"class.std::__cxx11::basic_string", i32, i32, i32, i8, i8, %"class.std::vector", i32, i32, i64 }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" = type { ptr, ptr, 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: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1

; Function Attrs: mustprogress uwtable
define dso_local void @rtaudio_get_device_info(ptr dead_on_unwind noalias writable sret(%struct.rtaudio_device_info) align 8 %0, ptr nocapture noundef %1, i32 noundef %2) local_unnamed_addr #2 {
  %4 = alloca %"struct.RtAudio::DeviceInfo", align 8
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(616) %0, i8 0, i64 616, i1 false)
  %5 = getelementptr inbounds i8, ptr %1, i64 24
  store i32 -1, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 96, ptr nonnull %4) #7
  %6 = load ptr, ptr %1, align 8, !tbaa !11
  call void @_ZN7RtAudio13getDeviceInfoEj(ptr dead_on_unwind nonnull writable sret(%"struct.RtAudio::DeviceInfo") align 8 %4, ptr noundef nonnull align 8 dereferenceable(8) %6, i32 noundef %2)
  %7 = load i32, ptr %5, align 8, !tbaa !5
  %.not = icmp eq i32 %7, -1
  br i1 %.not, label %8, label %.loopexit

8:                                                ; preds = %3
  %9 = load i8, ptr %4, align 8, !tbaa !12, !range !23, !noundef !24
  %10 = zext nneg i8 %9 to i32
  store i32 %10, ptr %0, align 8, !tbaa !25
  %11 = getelementptr inbounds i8, ptr %4, i64 40
  %12 = getelementptr inbounds i8, ptr %0, i64 4
  %13 = load <2 x i32>, ptr %11, align 8, !tbaa !27
  store <2 x i32> %13, ptr %12, align 4, !tbaa !27
  %14 = getelementptr inbounds i8, ptr %4, i64 48
  %15 = load i32, ptr %14, align 8, !tbaa !28
  %16 = getelementptr inbounds i8, ptr %0, i64 12
  store i32 %15, ptr %16, align 4, !tbaa !29
  %17 = getelementptr inbounds i8, ptr %4, i64 52
  %18 = load i8, ptr %17, align 4, !tbaa !30, !range !23, !noundef !24
  %19 = zext nneg i8 %18 to i32
  %20 = getelementptr inbounds i8, ptr %0, i64 16
  store i32 %19, ptr %20, align 8, !tbaa !31
  %21 = getelementptr inbounds i8, ptr %4, i64 53
  %22 = load i8, ptr %21, align 1, !tbaa !32, !range !23, !noundef !24
  %23 = zext nneg i8 %22 to i32
  %24 = getelementptr inbounds i8, ptr %0, i64 20
  store i32 %23, ptr %24, align 4, !tbaa !33
  %25 = getelementptr inbounds i8, ptr %4, i64 88
  %26 = load i64, ptr %25, align 8, !tbaa !34
  %27 = getelementptr inbounds i8, ptr %0, i64 24
  store i64 %26, ptr %27, align 8, !tbaa !35
  %28 = getelementptr inbounds i8, ptr %4, i64 84
  %29 = load i32, ptr %28, align 4, !tbaa !36
  %30 = getelementptr inbounds i8, ptr %0, i64 32
  store i32 %29, ptr %30, align 8, !tbaa !37
  %31 = getelementptr inbounds i8, ptr %0, i64 100
  %32 = getelementptr inbounds i8, ptr %4, i64 8
  %33 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %32) #7
  %34 = call ptr @strncpy(ptr noundef nonnull dereferenceable(1) %31, ptr noundef nonnull dereferenceable(1) %33, i64 noundef 511) #7
  %35 = getelementptr inbounds i8, ptr %4, i64 56
  %36 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %35) #7
  %.not10 = icmp eq i64 %36, 0
  br i1 %.not10, label %.loopexit, label %.lr.ph

.lr.ph:                                           ; preds = %8
  %37 = getelementptr inbounds i8, ptr %0, i64 36
  br label %38

38:                                               ; preds = %.lr.ph, %45
  %39 = phi i64 [ 0, %.lr.ph ], [ %47, %45 ]
  %.09 = phi i32 [ 0, %.lr.ph ], [ %46, %45 ]
  %40 = icmp ult i32 %.09, 16
  br i1 %40, label %41, label %45

41:                                               ; preds = %38
  %42 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %35, i64 noundef %39) #7
  %43 = load i32, ptr %42, align 4, !tbaa !27
  %44 = getelementptr inbounds [16 x i32], ptr %37, i64 0, i64 %39
  store i32 %43, ptr %44, align 4, !tbaa !27
  br label %45

45:                                               ; preds = %38, %41
  %46 = add i32 %.09, 1
  %47 = zext i32 %46 to i64
  %48 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %35) #7
  %49 = icmp ugt i64 %48, %47
  br i1 %49, label %38, label %.loopexit, !llvm.loop !38

.loopexit:                                        ; preds = %45, %8, %3
  call void @_ZN7RtAudio10DeviceInfoD2Ev(ptr noundef nonnull align 8 dereferenceable(96) %4) #7
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %4) #7
  ret void
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN7RtAudio13getDeviceInfoEj(ptr dead_on_unwind noalias writable sret(%"struct.RtAudio::DeviceInfo") align 8, ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: readwrite)
declare ptr @strncpy(ptr noalias noundef returned writeonly, ptr noalias nocapture noundef readonly, i64 noundef) local_unnamed_addr #4

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN7RtAudio10DeviceInfoD2Ev(ptr noundef nonnull align 8 dereferenceable(96)) unnamed_addr #6 align 2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
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 uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress nofree nounwind willreturn memory(argmem: readwrite) "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 = { 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 #7 = { 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, !10, i64 24}
!6 = !{!"_ZTS7rtaudio", !7, i64 0, !7, i64 8, !7, i64 16, !10, i64 24, !8, i64 28}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTS13rtaudio_error", !8, i64 0}
!11 = !{!6, !7, i64 0}
!12 = !{!13, !14, i64 0}
!13 = !{!"_ZTSN7RtAudio10DeviceInfoE", !14, i64 0, !15, i64 8, !18, i64 40, !18, i64 44, !18, i64 48, !14, i64 52, !14, i64 53, !19, i64 56, !18, i64 80, !18, i64 84, !17, i64 88}
!14 = !{!"bool", !8, i64 0}
!15 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !16, i64 0, !17, i64 8, !8, i64 16}
!16 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !7, i64 0}
!17 = !{!"long", !8, i64 0}
!18 = !{!"int", !8, i64 0}
!19 = !{!"_ZTSSt6vectorIjSaIjEE", !20, i64 0}
!20 = !{!"_ZTSSt12_Vector_baseIjSaIjEE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE12_Vector_implE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE17_Vector_impl_dataE", !7, i64 0, !7, i64 8, !7, i64 16}
!23 = !{i8 0, i8 2}
!24 = !{}
!25 = !{!26, !18, i64 0}
!26 = !{!"_ZTS19rtaudio_device_info", !18, i64 0, !18, i64 4, !18, i64 8, !18, i64 12, !18, i64 16, !18, i64 20, !17, i64 24, !18, i64 32, !8, i64 36, !8, i64 100}
!27 = !{!18, !18, i64 0}
!28 = !{!13, !18, i64 48}
!29 = !{!26, !18, i64 12}
!30 = !{!13, !14, i64 52}
!31 = !{!26, !18, i64 16}
!32 = !{!13, !14, i64 53}
!33 = !{!26, !18, i64 20}
!34 = !{!13, !17, i64 88}
!35 = !{!26, !17, i64 24}
!36 = !{!13, !18, i64 84}
!37 = !{!26, !18, i64 32}
!38 = distinct !{!38, !39}
!39 = !{!"llvm.loop.mustprogress"}


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