; LLVM IR from suxiaojack/sapDecoder :: src/hrtf.ll (ZN4HRTF20SampleTransformHRTFsEv)

; 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.HRTFDataT = type { %"class.std::__cxx11::basic_string", i32, i32, i32, ptr, float, ptr }
%"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.13" = type { %"struct.std::_Vector_base.14" }
%"struct.std::_Vector_base.14" = type { %"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl" }
%"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl" = type { %"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl_data" }
%"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.15" = type { i8 }
%class.HRTF = type { ptr, i32, i32, ptr, i32, i8, float, float, i32, %"class.std::vector", %"class.std::vector" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::pair<std::vector<float>, std::vector<float>>, std::allocator<std::pair<std::vector<float>, std::vector<float>>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<std::vector<float>, std::vector<float>>, std::allocator<std::pair<std::vector<float>, std::vector<float>>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<std::vector<float>, std::vector<float>>, std::allocator<std::pair<std::vector<float>, std::vector<float>>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<std::vector<float>, std::vector<float>>, std::allocator<std::pair<std::vector<float>, std::vector<float>>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::pair" = type { %"class.std::vector.13", %"class.std::vector.13" }

@_ZL12kHRTFDataSet = external hidden global %struct.HRTFDataT, align 8

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

declare i32 @__gxx_personality_v0(...)

; 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 @_ZN4HRTF20SampleTransformHRTFsEv(ptr noundef nonnull align 8 dereferenceable(96) %0) #1 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca %"class.std::vector.13", align 8
  %4 = alloca %"class.std::allocator.15", align 1
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca %"class.std::vector.13", align 8
  %8 = alloca %"class.std::allocator.15", align 1
  %9 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  %10 = load ptr, ptr %2, align 8
  %11 = getelementptr inbounds %class.HRTF, ptr %10, i32 0, i32 1
  %12 = load i32, ptr %11, align 8, !tbaa !9
  %13 = load i32, ptr getelementptr inbounds (%struct.HRTFDataT, ptr @_ZL12kHRTFDataSet, i32 0, i32 3), align 8, !tbaa !18
  %14 = icmp ne i32 %12, %13
  br i1 %14, label %15, label %16

15:                                               ; preds = %1
  br label %79

16:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 24, ptr %3) #3
  %17 = load i32, ptr getelementptr inbounds (%struct.HRTFDataT, ptr @_ZL12kHRTFDataSet, i32 0, i32 2), align 4, !tbaa !23
  %18 = sext i32 %17 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr %4) #3
  call void @_ZNSaIfEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #3
  invoke void @_ZNSt6vectorIfSaIfEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %18, ptr noundef nonnull align 1 dereferenceable(1) %4)
          to label %19 unwind label %32

19:                                               ; preds = %16
  call void @_ZNSt15__new_allocatorIfED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr %4) #3
  call void @llvm.lifetime.start.p0(i64 24, ptr %7) #3
  %20 = load i32, ptr getelementptr inbounds (%struct.HRTFDataT, ptr @_ZL12kHRTFDataSet, i32 0, i32 2), align 4, !tbaa !23
  %21 = sext i32 %20 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr %8) #3
  call void @_ZNSaIfEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #3
  invoke void @_ZNSt6vectorIfSaIfEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %21, ptr noundef nonnull align 1 dereferenceable(1) %8)
          to label %22 unwind label %36

22:                                               ; preds = %19
  call void @_ZNSt15__new_allocatorIfED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #3
  %23 = getelementptr inbounds %class.HRTF, ptr %10, i32 0, i32 9
  %24 = load i32, ptr getelementptr inbounds (%struct.HRTFDataT, ptr @_ZL12kHRTFDataSet, i32 0, i32 1), align 8, !tbaa !24
  %25 = sext i32 %24 to i64
  invoke void @_ZNSt6vectorISt4pairIS_IfSaIfEES2_ESaIS3_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %23, i64 noundef %25)
          to label %26 unwind label %40

26:                                               ; preds = %22
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #3
  store i32 0, ptr %9, align 4, !tbaa !25
  br label %27

27:                                               ; preds = %71, %26
  %28 = load i32, ptr %9, align 4, !tbaa !25
  %29 = load i32, ptr getelementptr inbounds (%struct.HRTFDataT, ptr @_ZL12kHRTFDataSet, i32 0, i32 1), align 8, !tbaa !24
  %30 = icmp slt i32 %28, %29
  br i1 %30, label %44, label %31

31:                                               ; preds = %27
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #3
  br label %78

32:                                               ; preds = %16
  %33 = landingpad { ptr, i32 }
          cleanup
  %34 = extractvalue { ptr, i32 } %33, 0
  store ptr %34, ptr %5, align 8
  %35 = extractvalue { ptr, i32 } %33, 1
  store i32 %35, ptr %6, align 4
  call void @_ZNSt15__new_allocatorIfED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr %4) #3
  br label %82

36:                                               ; preds = %19
  %37 = landingpad { ptr, i32 }
          cleanup
  %38 = extractvalue { ptr, i32 } %37, 0
  store ptr %38, ptr %5, align 8
  %39 = extractvalue { ptr, i32 } %37, 1
  store i32 %39, ptr %6, align 4
  call void @_ZNSt15__new_allocatorIfED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #3
  br label %81

40:                                               ; preds = %22
  %41 = landingpad { ptr, i32 }
          cleanup
  %42 = extractvalue { ptr, i32 } %41, 0
  store ptr %42, ptr %5, align 8
  %43 = extractvalue { ptr, i32 } %41, 1
  store i32 %43, ptr %6, align 4
  br label %80

44:                                               ; preds = %27
  %45 = load ptr, ptr getelementptr inbounds (%struct.HRTFDataT, ptr @_ZL12kHRTFDataSet, i32 0, i32 6), align 8, !tbaa !26
  %46 = load i32, ptr %9, align 4, !tbaa !25
  %47 = sext i32 %46 to i64
  %48 = getelementptr inbounds [2 x [128 x i16]], ptr %45, i64 %47
  %49 = getelementptr inbounds [2 x [128 x i16]], ptr %48, i64 0, i64 0
  %50 = getelementptr inbounds [128 x i16], ptr %49, i64 0, i64 0
  %51 = load i32, ptr getelementptr inbounds (%struct.HRTFDataT, ptr @_ZL12kHRTFDataSet, i32 0, i32 2), align 4, !tbaa !23
  invoke void @_ZN4HRTF25ConvertShortToFloatVectorEPKsiPSt6vectorIfSaIfEE(ptr noundef %50, i32 noundef %51, ptr noundef %3)
          to label %52 unwind label %74

52:                                               ; preds = %44
  %53 = load ptr, ptr getelementptr inbounds (%struct.HRTFDataT, ptr @_ZL12kHRTFDataSet, i32 0, i32 6), align 8, !tbaa !26
  %54 = load i32, ptr %9, align 4, !tbaa !25
  %55 = sext i32 %54 to i64
  %56 = getelementptr inbounds [2 x [128 x i16]], ptr %53, i64 %55
  %57 = getelementptr inbounds [2 x [128 x i16]], ptr %56, i64 0, i64 1
  %58 = getelementptr inbounds [128 x i16], ptr %57, i64 0, i64 0
  %59 = load i32, ptr getelementptr inbounds (%struct.HRTFDataT, ptr @_ZL12kHRTFDataSet, i32 0, i32 2), align 4, !tbaa !23
  invoke void @_ZN4HRTF25ConvertShortToFloatVectorEPKsiPSt6vectorIfSaIfEE(ptr noundef %58, i32 noundef %59, ptr noundef %7)
          to label %60 unwind label %74

60:                                               ; preds = %52
  %61 = getelementptr inbounds %class.HRTF, ptr %10, i32 0, i32 9
  %62 = load i32, ptr %9, align 4, !tbaa !25
  %63 = sext i32 %62 to i64
  %64 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt4pairIS_IfSaIfEES2_ESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %61, i64 noundef %63) #3
  %65 = getelementptr inbounds %"struct.std::pair", ptr %64, i32 0, i32 0
  call void @_ZNSt6vectorIfSaIfEE4swapERS1_(ptr noundef nonnull align 8 dereferenceable(24) %65, ptr noundef nonnull align 8 dereferenceable(24) %3) #3
  %66 = getelementptr inbounds %class.HRTF, ptr %10, i32 0, i32 9
  %67 = load i32, ptr %9, align 4, !tbaa !25
  %68 = sext i32 %67 to i64
  %69 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt4pairIS_IfSaIfEES2_ESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %66, i64 noundef %68) #3
  %70 = getelementptr inbounds %"struct.std::pair", ptr %69, i32 0, i32 1
  call void @_ZNSt6vectorIfSaIfEE4swapERS1_(ptr noundef nonnull align 8 dereferenceable(24) %70, ptr noundef nonnull align 8 dereferenceable(24) %7) #3
  br label %71

71:                                               ; preds = %60
  %72 = load i32, ptr %9, align 4, !tbaa !25
  %73 = add nsw i32 %72, 1
  store i32 %73, ptr %9, align 4, !tbaa !25
  br label %27, !llvm.loop !27

74:                                               ; preds = %52, %44
  %75 = landingpad { ptr, i32 }
          cleanup
  %76 = extractvalue { ptr, i32 } %75, 0
  store ptr %76, ptr %5, align 8
  %77 = extractvalue { ptr, i32 } %75, 1
  store i32 %77, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #3
  br label %80

78:                                               ; preds = %31
  call void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #3
  call void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr %3) #3
  br label %79

79:                                               ; preds = %78, %15
  ret void

80:                                               ; preds = %74, %40
  call void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #3
  br label %81

81:                                               ; preds = %80, %36
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #3
  call void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #3
  br label %82

82:                                               ; preds = %81, %32
  call void @llvm.lifetime.end.p0(i64 24, ptr %3) #3
  br label %83

83:                                               ; preds = %82
  %84 = load ptr, ptr %5, align 8
  %85 = load i32, ptr %6, align 4
  %86 = insertvalue { ptr, i32 } poison, ptr %84, 0
  %87 = insertvalue { ptr, i32 } %86, i32 %85, 1
  resume { ptr, i32 } %87
}

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIfSaIfEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4HRTF25ConvertShortToFloatVectorEPKsiPSt6vectorIfSaIfEE(ptr noundef, i32 noundef, ptr noundef) #1 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIfSaIfEE4swapERS1_(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 void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #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, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !11, i64 8}
!10 = !{!"_ZTS4HRTF", !11, i64 8, !11, i64 12, !6, i64 16, !11, i64 24, !12, i64 28, !13, i64 32, !13, i64 36, !11, i64 40, !14, i64 48, !14, i64 72}
!11 = !{!"int", !7, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{!"float", !7, i64 0}
!14 = !{!"_ZTSSt6vectorISt4pairIS_IfSaIfEES2_ESaIS3_EE", !15, i64 0}
!15 = !{!"_ZTSSt12_Vector_baseISt4pairISt6vectorIfSaIfEES3_ESaIS4_EE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseISt4pairISt6vectorIfSaIfEES3_ESaIS4_EE12_Vector_implE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseISt4pairISt6vectorIfSaIfEES3_ESaIS4_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!18 = !{!19, !11, i64 40}
!19 = !{!"_ZTS9HRTFDataT", !20, i64 0, !11, i64 32, !11, i64 36, !11, i64 40, !6, i64 48, !13, i64 56, !6, i64 64}
!20 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !21, i64 0, !22, i64 8, !7, i64 16}
!21 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!22 = !{!"long", !7, i64 0}
!23 = !{!19, !11, i64 36}
!24 = !{!19, !11, i64 32}
!25 = !{!11, !11, i64 0}
!26 = !{!19, !6, i64 64}
!27 = distinct !{!27, !28}
!28 = !{!"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.HRTFDataT = type { %"class.std::__cxx11::basic_string", i32, i32, i32, ptr, float, ptr }
%"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.13" = type { %"struct.std::_Vector_base.14" }
%"struct.std::_Vector_base.14" = type { %"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl" }
%"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl" = type { %"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl_data" }
%"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.15" = type { i8 }

@_ZL12kHRTFDataSet = external hidden local_unnamed_addr global %struct.HRTFDataT, align 8

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

declare i32 @__gxx_personality_v0(...)

; 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 @_ZN4HRTF20SampleTransformHRTFsEv(ptr noundef nonnull align 8 dereferenceable(96) %0) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.std::vector.13", align 8
  %3 = alloca %"class.std::allocator.15", align 1
  %4 = alloca %"class.std::vector.13", align 8
  %5 = alloca %"class.std::allocator.15", align 1
  %6 = getelementptr inbounds i8, ptr %0, i64 8
  %7 = load i32, ptr %6, align 8, !tbaa !5
  %8 = load i32, ptr getelementptr inbounds (i8, ptr @_ZL12kHRTFDataSet, i64 40), align 8, !tbaa !17
  %.not = icmp eq i32 %7, %8
  br i1 %.not, label %9, label %43

9:                                                ; preds = %1
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %2) #3
  %10 = load i32, ptr getelementptr inbounds (i8, ptr @_ZL12kHRTFDataSet, i64 36), align 4, !tbaa !22
  %11 = sext i32 %10 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %3) #3
  call void @_ZNSaIfEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %3) #3
  invoke void @_ZNSt6vectorIfSaIfEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %11, ptr noundef nonnull align 1 dereferenceable(1) %3)
          to label %12 unwind label %21

12:                                               ; preds = %9
  call void @_ZNSt15__new_allocatorIfED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %3) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %3) #3
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #3
  %13 = load i32, ptr getelementptr inbounds (i8, ptr @_ZL12kHRTFDataSet, i64 36), align 4, !tbaa !22
  %14 = sext i32 %13 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %5) #3
  call void @_ZNSaIfEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #3
  invoke void @_ZNSt6vectorIfSaIfEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %14, ptr noundef nonnull align 1 dereferenceable(1) %5)
          to label %15 unwind label %23

15:                                               ; preds = %12
  call void @_ZNSt15__new_allocatorIfED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #3
  %16 = getelementptr inbounds i8, ptr %0, i64 48
  %17 = load i32, ptr getelementptr inbounds (i8, ptr @_ZL12kHRTFDataSet, i64 32), align 8, !tbaa !23
  %18 = sext i32 %17 to i64
  invoke void @_ZNSt6vectorISt4pairIS_IfSaIfEES2_ESaIS3_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %16, i64 noundef %18)
          to label %.preheader unwind label %25

.preheader:                                       ; preds = %15
  %19 = load i32, ptr getelementptr inbounds (i8, ptr @_ZL12kHRTFDataSet, i64 32), align 8, !tbaa !23
  %20 = icmp sgt i32 %19, 0
  br i1 %20, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %34, %.preheader
  call void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #3
  call void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #3
  br label %43

21:                                               ; preds = %9
  %22 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIfED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %3) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %3) #3
  br label %46

23:                                               ; preds = %12
  %24 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIfED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #3
  br label %45

25:                                               ; preds = %15
  %26 = landingpad { ptr, i32 }
          cleanup
  br label %44

.lr.ph:                                           ; preds = %.preheader, %34
  %indvars.iv = phi i64 [ %indvars.iv.next, %34 ], [ 0, %.preheader ]
  %27 = load ptr, ptr getelementptr inbounds (i8, ptr @_ZL12kHRTFDataSet, i64 64), align 8, !tbaa !24
  %28 = getelementptr inbounds [2 x [128 x i16]], ptr %27, i64 %indvars.iv
  %29 = load i32, ptr getelementptr inbounds (i8, ptr @_ZL12kHRTFDataSet, i64 36), align 4, !tbaa !22
  invoke void @_ZN4HRTF25ConvertShortToFloatVectorEPKsiPSt6vectorIfSaIfEE(ptr noundef %28, i32 noundef %29, ptr noundef nonnull %2)
          to label %30 unwind label %41

30:                                               ; preds = %.lr.ph
  %31 = load ptr, ptr getelementptr inbounds (i8, ptr @_ZL12kHRTFDataSet, i64 64), align 8, !tbaa !24
  %32 = getelementptr inbounds [2 x [128 x i16]], ptr %31, i64 %indvars.iv, i64 1
  %33 = load i32, ptr getelementptr inbounds (i8, ptr @_ZL12kHRTFDataSet, i64 36), align 4, !tbaa !22
  invoke void @_ZN4HRTF25ConvertShortToFloatVectorEPKsiPSt6vectorIfSaIfEE(ptr noundef nonnull %32, i32 noundef %33, ptr noundef nonnull %4)
          to label %34 unwind label %41

34:                                               ; preds = %30
  %35 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt4pairIS_IfSaIfEES2_ESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %16, i64 noundef %indvars.iv) #3
  call void @_ZNSt6vectorIfSaIfEE4swapERS1_(ptr noundef nonnull align 8 dereferenceable(24) %35, ptr noundef nonnull align 8 dereferenceable(24) %2) #3
  %36 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt4pairIS_IfSaIfEES2_ESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %16, i64 noundef %indvars.iv) #3
  %37 = getelementptr inbounds i8, ptr %36, i64 24
  call void @_ZNSt6vectorIfSaIfEE4swapERS1_(ptr noundef nonnull align 8 dereferenceable(24) %37, ptr noundef nonnull align 8 dereferenceable(24) %4) #3
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %38 = load i32, ptr getelementptr inbounds (i8, ptr @_ZL12kHRTFDataSet, i64 32), align 8, !tbaa !23
  %39 = sext i32 %38 to i64
  %40 = icmp slt i64 %indvars.iv.next, %39
  br i1 %40, label %.lr.ph, label %._crit_edge, !llvm.loop !25

41:                                               ; preds = %30, %.lr.ph
  %42 = landingpad { ptr, i32 }
          cleanup
  br label %44

43:                                               ; preds = %1, %._crit_edge
  ret void

44:                                               ; preds = %41, %25
  %.pn = phi { ptr, i32 } [ %42, %41 ], [ %26, %25 ]
  call void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #3
  br label %45

45:                                               ; preds = %44, %23
  %.pn.pn = phi { ptr, i32 } [ %.pn, %44 ], [ %24, %23 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #3
  call void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #3
  br label %46

46:                                               ; preds = %45, %21
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %45 ], [ %22, %21 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #3
  resume { ptr, i32 } %.pn.pn.pn
}

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIfSaIfEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4HRTF25ConvertShortToFloatVectorEPKsiPSt6vectorIfSaIfEE(ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIfSaIfEE4swapERS1_(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 void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 align 2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #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, !7, i64 8}
!6 = !{!"_ZTS4HRTF", !7, i64 8, !7, i64 12, !10, i64 16, !7, i64 24, !11, i64 28, !12, i64 32, !12, i64 36, !7, i64 40, !13, i64 48, !13, i64 72}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!"bool", !8, i64 0}
!12 = !{!"float", !8, i64 0}
!13 = !{!"_ZTSSt6vectorISt4pairIS_IfSaIfEES2_ESaIS3_EE", !14, i64 0}
!14 = !{!"_ZTSSt12_Vector_baseISt4pairISt6vectorIfSaIfEES3_ESaIS4_EE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseISt4pairISt6vectorIfSaIfEES3_ESaIS4_EE12_Vector_implE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseISt4pairISt6vectorIfSaIfEES3_ESaIS4_EE17_Vector_impl_dataE", !10, i64 0, !10, i64 8, !10, i64 16}
!17 = !{!18, !7, i64 40}
!18 = !{!"_ZTS9HRTFDataT", !19, i64 0, !7, i64 32, !7, i64 36, !7, i64 40, !10, i64 48, !12, i64 56, !10, i64 64}
!19 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !20, i64 0, !21, i64 8, !8, i64 16}
!20 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !10, i64 0}
!21 = !{!"long", !8, i64 0}
!22 = !{!18, !7, i64 36}
!23 = !{!18, !7, i64 32}
!24 = !{!18, !10, i64 64}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}


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