; LLVM IR from googlecreativelab/open-nsynth-super :: app/open-nsynth/src/NSynth.ll (ZN6NSynth26set_interpolation_positionEff)

; 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.__gnu_cxx::__normal_iterator" = type { ptr }
%class.NSynth = type { %class.Multisampler, %"class.std::__cxx11::basic_string", i32, %"class.std::vector.8", %"class.std::vector.3", float, float }
%class.Multisampler = type { %class.NoteQueueCollection, %class.ADSR, i64, i64, i32, float, float, float, i64, float, float, %"class.std::mutex", %"class.std::deque", %class.BinaryDataAsync, %"class.std::vector.3", float, float, float, float, i8, i32, i64, i64 }
%class.NoteQueueCollection = type { i32, i32, %"class.std::vector" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<NoteQueue, std::allocator<NoteQueue>>::_Vector_impl" }
%"struct.std::_Vector_base<NoteQueue, std::allocator<NoteQueue>>::_Vector_impl" = type { %"struct.std::_Vector_base<NoteQueue, std::allocator<NoteQueue>>::_Vector_impl_data" }
%"struct.std::_Vector_base<NoteQueue, std::allocator<NoteQueue>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.ADSR = type { %"struct.ADSR::adr", %"struct.ADSR::adr", float }
%"struct.ADSR::adr" = type { float, float, float }
%"class.std::mutex" = type { %"class.std::__mutex_base" }
%"class.std::__mutex_base" = 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.std::deque" = type { %"class.std::_Deque_base" }
%"class.std::_Deque_base" = type { %"struct.std::_Deque_base<std::pair<int, float>, std::allocator<std::pair<int, float>>>::_Deque_impl" }
%"struct.std::_Deque_base<std::pair<int, float>, std::allocator<std::pair<int, float>>>::_Deque_impl" = type { %"struct.std::_Deque_base<std::pair<int, float>, std::allocator<std::pair<int, float>>>::_Deque_impl_data" }
%"struct.std::_Deque_base<std::pair<int, float>, std::allocator<std::pair<int, float>>>::_Deque_impl_data" = type { ptr, i64, %"struct.std::_Deque_iterator", %"struct.std::_Deque_iterator" }
%"struct.std::_Deque_iterator" = type { ptr, ptr, ptr, ptr }
%class.BinaryDataAsync = type { ptr, i64, i64, 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.8" = type { %"struct.std::_Vector_base.9" }
%"struct.std::_Vector_base.9" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.3" = type { %"struct.std::_Vector_base.4" }
%"struct.std::_Vector_base.4" = type { %"struct.std::_Vector_base<std::pair<int, float>, std::allocator<std::pair<int, float>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<int, float>, std::allocator<std::pair<int, float>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<int, float>, std::allocator<std::pair<int, float>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<int, float>, std::allocator<std::pair<int, float>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::pair" = type { i32, float }

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6NSynth26set_interpolation_positionEff(ptr noundef nonnull align 8 dereferenceable(424) %0, float noundef %1, float noundef %2) #2 align 2 {
  %4 = alloca ptr, align 8
  %5 = alloca float, align 4
  %6 = alloca float, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %13 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %14 = alloca ptr, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store float %1, ptr %5, align 4, !tbaa !9
  store float %2, ptr %6, align 4, !tbaa !9
  %15 = load ptr, ptr %4, align 8
  %16 = load float, ptr %5, align 4, !tbaa !9
  %17 = getelementptr inbounds %class.NSynth, ptr %15, i32 0, i32 5
  store float %16, ptr %17, align 8, !tbaa !11
  %18 = load float, ptr %6, align 4, !tbaa !9
  %19 = getelementptr inbounds %class.NSynth, ptr %15, i32 0, i32 6
  store float %18, ptr %19, align 4, !tbaa !42
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  %20 = load float, ptr %5, align 4, !tbaa !9
  %21 = getelementptr inbounds %class.NSynth, ptr %15, i32 0, i32 2
  %22 = load i32, ptr %21, align 8, !tbaa !43
  %23 = sub nsw i32 %22, 1
  %24 = sitofp i32 %23 to float
  %25 = fmul float %20, %24
  %26 = fpext float %25 to double
  %27 = call double @llvm.round.f64(double %26)
  %28 = fptosi double %27 to i32
  store i32 %28, ptr %7, align 4, !tbaa !44
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  %29 = load float, ptr %6, align 4, !tbaa !9
  %30 = getelementptr inbounds %class.NSynth, ptr %15, i32 0, i32 2
  %31 = load i32, ptr %30, align 8, !tbaa !43
  %32 = sub nsw i32 %31, 1
  %33 = sitofp i32 %32 to float
  %34 = fmul float %29, %33
  %35 = fpext float %34 to double
  %36 = call double @llvm.round.f64(double %35)
  %37 = fptosi double %36 to i32
  store i32 %37, ptr %8, align 4, !tbaa !44
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  %38 = load i32, ptr %8, align 4, !tbaa !44
  %39 = getelementptr inbounds %class.NSynth, ptr %15, i32 0, i32 2
  %40 = load i32, ptr %39, align 8, !tbaa !43
  %41 = mul nsw i32 %38, %40
  %42 = load i32, ptr %7, align 4, !tbaa !44
  %43 = add nsw i32 %41, %42
  store i32 %43, ptr %9, align 4, !tbaa !44
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  %44 = load i32, ptr %9, align 4, !tbaa !44
  %45 = sext i32 %44 to i64
  %46 = getelementptr inbounds %class.NSynth, ptr %15, i32 0, i32 3
  %47 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %46) #5
  %48 = mul i64 %45, %47
  %49 = trunc i64 %48 to i32
  store i32 %49, ptr %10, align 4, !tbaa !44
  %50 = getelementptr inbounds %class.NSynth, ptr %15, i32 0, i32 4
  %51 = getelementptr inbounds %class.Multisampler, ptr %15, i32 0, i32 14
  %52 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorISt4pairIifESaIS1_EEaSERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %51, ptr noundef nonnull align 8 dereferenceable(24) %50)
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %53 = getelementptr inbounds %class.Multisampler, ptr %15, i32 0, i32 14
  store ptr %53, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %54 = load ptr, ptr %11, align 8, !tbaa !5
  %55 = call ptr @_ZNSt6vectorISt4pairIifESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %54) #5
  %56 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %12, i32 0, i32 0
  store ptr %55, ptr %56, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  %57 = load ptr, ptr %11, align 8, !tbaa !5
  %58 = call ptr @_ZNSt6vectorISt4pairIifESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %57) #5
  %59 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %13, i32 0, i32 0
  store ptr %58, ptr %59, align 8
  br label %60

60:                                               ; preds = %70, %3
  %61 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIifESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %13) #5
  br i1 %61, label %63, label %62

62:                                               ; preds = %60
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  br label %72

63:                                               ; preds = %60
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  %64 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIifESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #5
  store ptr %64, ptr %14, align 8, !tbaa !5
  %65 = load i32, ptr %10, align 4, !tbaa !44
  %66 = load ptr, ptr %14, align 8, !tbaa !5
  %67 = getelementptr inbounds %"struct.std::pair", ptr %66, i32 0, i32 0
  %68 = load i32, ptr %67, align 4, !tbaa !45
  %69 = add nsw i32 %68, %65
  store i32 %69, ptr %67, align 4, !tbaa !45
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  br label %70

70:                                               ; preds = %63
  %71 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt4pairIifESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #5
  br label %60

72:                                               ; preds = %62
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  ret void
}

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.round.f64(double) #3

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt4pairIifESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) #1 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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = { 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 = !{!"float", !7, i64 0}
!11 = !{!12, !10, i64 416}
!12 = !{!"_ZTS6NSynth", !13, i64 0, !36, i64 328, !15, i64 360, !38, i64 368, !31, i64 392, !10, i64 416, !10, i64 420}
!13 = !{!"_ZTS12Multisampler", !14, i64 0, !20, i64 32, !22, i64 64, !22, i64 72, !15, i64 80, !10, i64 84, !10, i64 88, !10, i64 92, !22, i64 96, !10, i64 104, !10, i64 108, !23, i64 112, !25, i64 152, !30, i64 232, !31, i64 264, !10, i64 288, !10, i64 292, !10, i64 296, !10, i64 300, !35, i64 304, !15, i64 308, !22, i64 312, !22, i64 320}
!14 = !{!"_ZTS19NoteQueueCollection", !15, i64 0, !15, i64 4, !16, i64 8}
!15 = !{!"int", !7, i64 0}
!16 = !{!"_ZTSSt6vectorI9NoteQueueSaIS0_EE", !17, i64 0}
!17 = !{!"_ZTSSt12_Vector_baseI9NoteQueueSaIS0_EE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseI9NoteQueueSaIS0_EE12_Vector_implE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseI9NoteQueueSaIS0_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!20 = !{!"_ZTS4ADSR", !21, i64 0, !21, i64 12, !10, i64 24}
!21 = !{!"_ZTSN4ADSR3adrE", !10, i64 0, !10, i64 4, !10, i64 8}
!22 = !{!"long", !7, i64 0}
!23 = !{!"_ZTSSt5mutex", !24, i64 0}
!24 = !{!"_ZTSSt12__mutex_base", !7, i64 0}
!25 = !{!"_ZTSSt5dequeISt4pairIifESaIS1_EE", !26, i64 0}
!26 = !{!"_ZTSSt11_Deque_baseISt4pairIifESaIS1_EE", !27, i64 0}
!27 = !{!"_ZTSNSt11_Deque_baseISt4pairIifESaIS1_EE11_Deque_implE", !28, i64 0}
!28 = !{!"_ZTSNSt11_Deque_baseISt4pairIifESaIS1_EE16_Deque_impl_dataE", !6, i64 0, !22, i64 8, !29, i64 16, !29, i64 48}
!29 = !{!"_ZTSSt15_Deque_iteratorISt4pairIifERS1_PS1_E", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!30 = !{!"_ZTS15BinaryDataAsyncIsE", !6, i64 0, !22, i64 8, !22, i64 16, !22, i64 24}
!31 = !{!"_ZTSSt6vectorISt4pairIifESaIS1_EE", !32, i64 0}
!32 = !{!"_ZTSSt12_Vector_baseISt4pairIifESaIS1_EE", !33, i64 0}
!33 = !{!"_ZTSNSt12_Vector_baseISt4pairIifESaIS1_EE12_Vector_implE", !34, i64 0}
!34 = !{!"_ZTSNSt12_Vector_baseISt4pairIifESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!35 = !{!"bool", !7, i64 0}
!36 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !37, i64 0, !22, i64 8, !7, i64 16}
!37 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!38 = !{!"_ZTSSt6vectorIiSaIiEE", !39, i64 0}
!39 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !40, i64 0}
!40 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !41, i64 0}
!41 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!42 = !{!12, !10, i64 420}
!43 = !{!12, !15, i64 360}
!44 = !{!15, !15, i64 0}
!45 = !{!46, !15, i64 0}
!46 = !{!"_ZTSSt4pairIifE", !15, i64 0, !10, i64 4}


; 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.__gnu_cxx::__normal_iterator" = 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 nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2

; 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 uwtable
define dso_local void @_ZN6NSynth26set_interpolation_positionEff(ptr noundef nonnull align 8 dereferenceable(424) %0, float noundef %1, float noundef %2) local_unnamed_addr #2 align 2 {
  %4 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %5 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %6 = getelementptr inbounds i8, ptr %0, i64 416
  store float %1, ptr %6, align 8, !tbaa !5
  %7 = getelementptr inbounds i8, ptr %0, i64 420
  store float %2, ptr %7, align 4, !tbaa !40
  %8 = getelementptr inbounds i8, ptr %0, i64 360
  %9 = load i32, ptr %8, align 8, !tbaa !41
  %10 = add nsw i32 %9, -1
  %11 = sitofp i32 %10 to float
  %12 = fmul float %11, %1
  %13 = tail call float @llvm.round.f32(float %12)
  %14 = fptosi float %13 to i32
  %15 = fmul float %11, %2
  %16 = tail call float @llvm.round.f32(float %15)
  %17 = fptosi float %16 to i32
  %18 = mul nsw i32 %9, %17
  %19 = add nsw i32 %18, %14
  %20 = getelementptr inbounds i8, ptr %0, i64 368
  %21 = tail call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %20) #5
  %22 = trunc i64 %21 to i32
  %23 = mul i32 %19, %22
  %24 = getelementptr inbounds i8, ptr %0, i64 392
  %25 = getelementptr inbounds i8, ptr %0, i64 264
  %26 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorISt4pairIifESaIS1_EEaSERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %25, ptr noundef nonnull align 8 dereferenceable(24) %24)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #5
  %27 = tail call ptr @_ZNSt6vectorISt4pairIifESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %25) #5
  store ptr %27, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #5
  %28 = tail call ptr @_ZNSt6vectorISt4pairIifESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %25) #5
  store ptr %28, ptr %5, align 8
  %29 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIifESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #5
  br i1 %29, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph, %3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #5
  ret void

.lr.ph:                                           ; preds = %3, %.lr.ph
  %30 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIifESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #5
  %31 = load i32, ptr %30, align 4, !tbaa !42
  %32 = add nsw i32 %31, %23
  store i32 %32, ptr %30, align 4, !tbaa !42
  %33 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt4pairIifESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #5
  %34 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIifESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #5
  br i1 %34, label %.lr.ph, label %._crit_edge
}

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

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

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

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

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.round.f32(float) #4

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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { 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, !19, i64 416}
!6 = !{!"_ZTS6NSynth", !7, i64 0, !34, i64 328, !9, i64 360, !36, i64 368, !29, i64 392, !19, i64 416, !19, i64 420}
!7 = !{!"_ZTS12Multisampler", !8, i64 0, !17, i64 32, !20, i64 64, !20, i64 72, !9, i64 80, !19, i64 84, !19, i64 88, !19, i64 92, !20, i64 96, !19, i64 104, !19, i64 108, !21, i64 112, !23, i64 152, !28, i64 232, !29, i64 264, !19, i64 288, !19, i64 292, !19, i64 296, !19, i64 300, !33, i64 304, !9, i64 308, !20, i64 312, !20, i64 320}
!8 = !{!"_ZTS19NoteQueueCollection", !9, i64 0, !9, i64 4, !12, i64 8}
!9 = !{!"int", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C++ TBAA"}
!12 = !{!"_ZTSSt6vectorI9NoteQueueSaIS0_EE", !13, i64 0}
!13 = !{!"_ZTSSt12_Vector_baseI9NoteQueueSaIS0_EE", !14, i64 0}
!14 = !{!"_ZTSNSt12_Vector_baseI9NoteQueueSaIS0_EE12_Vector_implE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseI9NoteQueueSaIS0_EE17_Vector_impl_dataE", !16, i64 0, !16, i64 8, !16, i64 16}
!16 = !{!"any pointer", !10, i64 0}
!17 = !{!"_ZTS4ADSR", !18, i64 0, !18, i64 12, !19, i64 24}
!18 = !{!"_ZTSN4ADSR3adrE", !19, i64 0, !19, i64 4, !19, i64 8}
!19 = !{!"float", !10, i64 0}
!20 = !{!"long", !10, i64 0}
!21 = !{!"_ZTSSt5mutex", !22, i64 0}
!22 = !{!"_ZTSSt12__mutex_base", !10, i64 0}
!23 = !{!"_ZTSSt5dequeISt4pairIifESaIS1_EE", !24, i64 0}
!24 = !{!"_ZTSSt11_Deque_baseISt4pairIifESaIS1_EE", !25, i64 0}
!25 = !{!"_ZTSNSt11_Deque_baseISt4pairIifESaIS1_EE11_Deque_implE", !26, i64 0}
!26 = !{!"_ZTSNSt11_Deque_baseISt4pairIifESaIS1_EE16_Deque_impl_dataE", !16, i64 0, !20, i64 8, !27, i64 16, !27, i64 48}
!27 = !{!"_ZTSSt15_Deque_iteratorISt4pairIifERS1_PS1_E", !16, i64 0, !16, i64 8, !16, i64 16, !16, i64 24}
!28 = !{!"_ZTS15BinaryDataAsyncIsE", !16, i64 0, !20, i64 8, !20, i64 16, !20, i64 24}
!29 = !{!"_ZTSSt6vectorISt4pairIifESaIS1_EE", !30, i64 0}
!30 = !{!"_ZTSSt12_Vector_baseISt4pairIifESaIS1_EE", !31, i64 0}
!31 = !{!"_ZTSNSt12_Vector_baseISt4pairIifESaIS1_EE12_Vector_implE", !32, i64 0}
!32 = !{!"_ZTSNSt12_Vector_baseISt4pairIifESaIS1_EE17_Vector_impl_dataE", !16, i64 0, !16, i64 8, !16, i64 16}
!33 = !{!"bool", !10, i64 0}
!34 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !35, i64 0, !20, i64 8, !10, i64 16}
!35 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !16, i64 0}
!36 = !{!"_ZTSSt6vectorIiSaIiEE", !37, i64 0}
!37 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !38, i64 0}
!38 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !39, i64 0}
!39 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !16, i64 0, !16, i64 8, !16, i64 16}
!40 = !{!6, !19, i64 420}
!41 = !{!6, !9, i64 360}
!42 = !{!43, !9, i64 0}
!43 = !{!"_ZTSSt4pairIifE", !9, i64 0, !19, i64 4}


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