; LLVM IR from glaretechnologies/substrata :: resonance-audio/resonance_audio/dsp (fir_filter)

; 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.NullLogger = type { i8 }
%"class.vraudio::FirFilter" = type { i64, i64, %"class.vraudio::AudioBuffer", %"class.vraudio::AudioBuffer" }
%"class.vraudio::AudioBuffer" = type <{ i64, %"class.std::vector", i64, %"class.std::vector.0", i32, [4 x i8] }>
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<float, vraudio::AlignedAllocator<float, 64>>::_Vector_impl" }
%"struct.std::_Vector_base<float, vraudio::AlignedAllocator<float, 64>>::_Vector_impl" = type { %"struct.std::_Vector_base<float, vraudio::AlignedAllocator<float, 64>>::_Vector_impl_data" }
%"struct.std::_Vector_base<float, vraudio::AlignedAllocator<float, 64>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<vraudio::ChannelView, std::allocator<vraudio::ChannelView>>::_Vector_impl" }
%"struct.std::_Vector_base<vraudio::ChannelView, std::allocator<vraudio::ChannelView>>::_Vector_impl" = type { %"struct.std::_Vector_base<vraudio::ChannelView, std::allocator<vraudio::ChannelView>>::_Vector_impl_data" }
%"struct.std::_Vector_base<vraudio::ChannelView, std::allocator<vraudio::ChannelView>>::_Vector_impl_data" = type { ptr, ptr, ptr }

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN10NullLogger9GetStreamEv(ptr noundef nonnull align 1 dereferenceable(1)) #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 nounwind uwtable
declare dso_local noundef i64 @_ZNK7vraudio11ChannelView4sizeEv(ptr noundef nonnull align 8 dereferenceable(17)) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(17) ptr @_ZN7vraudio11AudioBufferixEm(ptr noundef nonnull align 8 dereferenceable(68), i64 noundef) #1 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7vraudio9FirFilter7ProcessERKNS_11ChannelViewEPS1_(ptr noundef nonnull align 8 dereferenceable(160) %0, ptr noundef nonnull align 8 dereferenceable(17) %1, ptr noundef %2) #3 align 2 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca %class.NullLogger, align 1
  %8 = alloca %class.NullLogger, align 1
  %9 = alloca i64, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i64, align 8
  %14 = alloca %class.NullLogger, align 1
  %15 = alloca <4 x float>, align 16
  %16 = alloca <4 x float>, align 16
  %17 = alloca i64, align 8
  %18 = alloca i32, align 4
  %19 = alloca ptr, align 8
  %20 = alloca %class.NullLogger, align 1
  %21 = alloca i64, align 8
  %22 = alloca i64, align 8
  %23 = alloca ptr, align 8
  %24 = alloca ptr, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  %25 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr %7) #6
  %26 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN10NullLogger9GetStreamEv(ptr noundef nonnull align 1 dereferenceable(1) %7)
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %8) #6
  %27 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN10NullLogger9GetStreamEv(ptr noundef nonnull align 1 dereferenceable(1) %8)
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  %28 = load ptr, ptr %5, align 8, !tbaa !5
  %29 = call noundef i64 @_ZNK7vraudio11ChannelView4sizeEv(ptr noundef nonnull align 8 dereferenceable(17) %28)
  store i64 %29, ptr %9, align 8, !tbaa !9
  %30 = getelementptr inbounds %"class.vraudio::FirFilter", ptr %25, i32 0, i32 3
  %31 = call noundef nonnull align 8 dereferenceable(17) ptr @_ZN7vraudio11AudioBufferixEm(ptr noundef nonnull align 8 dereferenceable(68) %30, i64 noundef 0)
  %32 = call noundef ptr @_ZN7vraudio11ChannelView3endEv(ptr noundef nonnull align 8 dereferenceable(17) %31)
  %33 = getelementptr inbounds %"class.vraudio::FirFilter", ptr %25, i32 0, i32 0
  %34 = load i64, ptr %33, align 8, !tbaa !11
  %35 = sub i64 0, %34
  %36 = getelementptr inbounds float, ptr %32, i64 %35
  %37 = getelementptr inbounds %"class.vraudio::FirFilter", ptr %25, i32 0, i32 0
  %38 = load i64, ptr %37, align 8, !tbaa !11
  %39 = getelementptr inbounds %"class.vraudio::FirFilter", ptr %25, i32 0, i32 3
  %40 = call noundef nonnull align 8 dereferenceable(17) ptr @_ZN7vraudio11AudioBufferixEm(ptr noundef nonnull align 8 dereferenceable(68) %39, i64 noundef 0)
  %41 = call noundef ptr @_ZN7vraudio11ChannelView5beginEv(ptr noundef nonnull align 8 dereferenceable(17) %40)
  %42 = call noundef ptr @_ZSt6copy_nIPfmS0_ET1_T_T0_S1_(ptr noundef %36, i64 noundef %38, ptr noundef %41)
  %43 = load ptr, ptr %5, align 8, !tbaa !5
  %44 = call noundef ptr @_ZNK7vraudio11ChannelView5beginEv(ptr noundef nonnull align 8 dereferenceable(17) %43)
  %45 = load i64, ptr %9, align 8, !tbaa !9
  %46 = getelementptr inbounds %"class.vraudio::FirFilter", ptr %25, i32 0, i32 3
  %47 = call noundef nonnull align 8 dereferenceable(17) ptr @_ZN7vraudio11AudioBufferixEm(ptr noundef nonnull align 8 dereferenceable(68) %46, i64 noundef 0)
  %48 = call noundef ptr @_ZN7vraudio11ChannelView5beginEv(ptr noundef nonnull align 8 dereferenceable(17) %47)
  %49 = getelementptr inbounds %"class.vraudio::FirFilter", ptr %25, i32 0, i32 0
  %50 = load i64, ptr %49, align 8, !tbaa !11
  %51 = getelementptr inbounds float, ptr %48, i64 %50
  %52 = call noundef ptr @_ZSt6copy_nIPKfmPfET1_T_T0_S3_(ptr noundef %44, i64 noundef %45, ptr noundef %51)
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  %53 = getelementptr inbounds %"class.vraudio::FirFilter", ptr %25, i32 0, i32 3
  %54 = call noundef nonnull align 8 dereferenceable(17) ptr @_ZN7vraudio11AudioBufferixEm(ptr noundef nonnull align 8 dereferenceable(68) %53, i64 noundef 0)
  %55 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7vraudio11ChannelViewixEm(ptr noundef nonnull align 8 dereferenceable(17) %54, i64 noundef 0)
  store ptr %55, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  %56 = getelementptr inbounds %"class.vraudio::FirFilter", ptr %25, i32 0, i32 2
  %57 = call noundef nonnull align 8 dereferenceable(17) ptr @_ZN7vraudio11AudioBufferixEm(ptr noundef nonnull align 8 dereferenceable(68) %56, i64 noundef 0)
  %58 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7vraudio11ChannelViewixEm(ptr noundef nonnull align 8 dereferenceable(17) %57, i64 noundef 0)
  store ptr %58, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %59 = load ptr, ptr %6, align 8, !tbaa !5
  %60 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7vraudio11ChannelViewixEm(ptr noundef nonnull align 8 dereferenceable(17) %59, i64 noundef 0)
  store ptr %60, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  %61 = load i64, ptr %9, align 8, !tbaa !9
  %62 = udiv i64 %61, 4
  store i64 %62, ptr %13, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %14) #6
  %63 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN10NullLogger9GetStreamEv(ptr noundef nonnull align 1 dereferenceable(1) %14)
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  %64 = getelementptr inbounds %"class.vraudio::FirFilter", ptr %25, i32 0, i32 1
  %65 = load i64, ptr %64, align 8, !tbaa !23
  store i64 %65, ptr %17, align 8, !tbaa !9
  br label %66

66:                                               ; preds = %163, %3
  %67 = load i64, ptr %17, align 8, !tbaa !9
  %68 = load i64, ptr %13, align 8, !tbaa !9
  %69 = getelementptr inbounds %"class.vraudio::FirFilter", ptr %25, i32 0, i32 1
  %70 = load i64, ptr %69, align 8, !tbaa !23
  %71 = add i64 %68, %70
  %72 = icmp ult i64 %67, %71
  br i1 %72, label %74, label %73

73:                                               ; preds = %66
  store i32 2, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  br label %166

74:                                               ; preds = %66
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #6
  %75 = load ptr, ptr %12, align 8, !tbaa !5
  %76 = load i64, ptr %17, align 8, !tbaa !9
  %77 = getelementptr inbounds %"class.vraudio::FirFilter", ptr %25, i32 0, i32 1
  %78 = load i64, ptr %77, align 8, !tbaa !23
  %79 = sub i64 %76, %78
  %80 = getelementptr inbounds <4 x float>, ptr %75, i64 %79
  store ptr %80, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %20) #6
  %81 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN10NullLogger9GetStreamEv(ptr noundef nonnull align 1 dereferenceable(1) %20)
  call void @llvm.lifetime.end.p0(i64 1, ptr %20) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #6
  store i64 0, ptr %21, align 8, !tbaa !9
  br label %82

82:                                               ; preds = %159, %74
  %83 = load i64, ptr %21, align 8, !tbaa !9
  %84 = getelementptr inbounds %"class.vraudio::FirFilter", ptr %25, i32 0, i32 1
  %85 = load i64, ptr %84, align 8, !tbaa !23
  %86 = icmp ult i64 %83, %85
  br i1 %86, label %88, label %87

87:                                               ; preds = %82
  store i32 5, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  br label %162

88:                                               ; preds = %82
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #6
  %89 = load i64, ptr %21, align 8, !tbaa !9
  %90 = mul i64 %89, 4
  store i64 %90, ptr %22, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #6
  %91 = load ptr, ptr %10, align 8, !tbaa !5
  %92 = load i64, ptr %17, align 8, !tbaa !9
  %93 = load i64, ptr %21, align 8, !tbaa !9
  %94 = add i64 %93, 1
  %95 = sub i64 %92, %94
  %96 = getelementptr inbounds <4 x float>, ptr %91, i64 %95
  store ptr %96, ptr %23, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #6
  %97 = load ptr, ptr %10, align 8, !tbaa !5
  %98 = load i64, ptr %17, align 8, !tbaa !9
  %99 = load i64, ptr %21, align 8, !tbaa !9
  %100 = sub i64 %98, %99
  %101 = getelementptr inbounds <4 x float>, ptr %97, i64 %100
  store ptr %101, ptr %24, align 8, !tbaa !5
  %102 = load ptr, ptr %23, align 8, !tbaa !5
  %103 = load <4 x float>, ptr %102, align 16, !tbaa !24
  %104 = load ptr, ptr %24, align 8, !tbaa !5
  %105 = load <4 x float>, ptr %104, align 16, !tbaa !24
  %106 = shufflevector <4 x float> %103, <4 x float> %105, <4 x i32> <i32 2, i32 3, i32 4, i32 5>
  store <4 x float> %106, ptr %16, align 16, !tbaa !24
  %107 = load ptr, ptr %24, align 8, !tbaa !5
  %108 = load <4 x float>, ptr %107, align 16, !tbaa !24
  %109 = load ptr, ptr %11, align 8, !tbaa !5
  %110 = load i64, ptr %22, align 8, !tbaa !9
  %111 = getelementptr inbounds <4 x float>, ptr %109, i64 %110
  %112 = load <4 x float>, ptr %111, align 16, !tbaa !24
  %113 = call noundef <4 x float> @_ZL10_mm_mul_psDv4_fS_(<4 x float> noundef %108, <4 x float> noundef %112)
  %114 = load ptr, ptr %19, align 8, !tbaa !5
  %115 = load <4 x float>, ptr %114, align 16, !tbaa !24
  %116 = call noundef <4 x float> @_ZL10_mm_add_psDv4_fS_(<4 x float> noundef %113, <4 x float> noundef %115)
  %117 = load ptr, ptr %19, align 8, !tbaa !5
  store <4 x float> %116, ptr %117, align 16, !tbaa !24
  %118 = load <4 x float>, ptr %16, align 16, !tbaa !24
  %119 = load ptr, ptr %24, align 8, !tbaa !5
  %120 = load <4 x float>, ptr %119, align 16, !tbaa !24
  %121 = shufflevector <4 x float> %118, <4 x float> %120, <4 x i32> <i32 1, i32 2, i32 5, i32 6>
  store <4 x float> %121, ptr %15, align 16, !tbaa !24
  %122 = load <4 x float>, ptr %15, align 16, !tbaa !24
  %123 = load ptr, ptr %11, align 8, !tbaa !5
  %124 = load i64, ptr %22, align 8, !tbaa !9
  %125 = add i64 1, %124
  %126 = getelementptr inbounds <4 x float>, ptr %123, i64 %125
  %127 = load <4 x float>, ptr %126, align 16, !tbaa !24
  %128 = call noundef <4 x float> @_ZL10_mm_mul_psDv4_fS_(<4 x float> noundef %122, <4 x float> noundef %127)
  %129 = load ptr, ptr %19, align 8, !tbaa !5
  %130 = load <4 x float>, ptr %129, align 16, !tbaa !24
  %131 = call noundef <4 x float> @_ZL10_mm_add_psDv4_fS_(<4 x float> noundef %128, <4 x float> noundef %130)
  %132 = load ptr, ptr %19, align 8, !tbaa !5
  store <4 x float> %131, ptr %132, align 16, !tbaa !24
  %133 = load <4 x float>, ptr %16, align 16, !tbaa !24
  %134 = load ptr, ptr %11, align 8, !tbaa !5
  %135 = load i64, ptr %22, align 8, !tbaa !9
  %136 = add i64 2, %135
  %137 = getelementptr inbounds <4 x float>, ptr %134, i64 %136
  %138 = load <4 x float>, ptr %137, align 16, !tbaa !24
  %139 = call noundef <4 x float> @_ZL10_mm_mul_psDv4_fS_(<4 x float> noundef %133, <4 x float> noundef %138)
  %140 = load ptr, ptr %19, align 8, !tbaa !5
  %141 = load <4 x float>, ptr %140, align 16, !tbaa !24
  %142 = call noundef <4 x float> @_ZL10_mm_add_psDv4_fS_(<4 x float> noundef %139, <4 x float> noundef %141)
  %143 = load ptr, ptr %19, align 8, !tbaa !5
  store <4 x float> %142, ptr %143, align 16, !tbaa !24
  %144 = load ptr, ptr %23, align 8, !tbaa !5
  %145 = load <4 x float>, ptr %144, align 16, !tbaa !24
  %146 = load <4 x float>, ptr %16, align 16, !tbaa !24
  %147 = shufflevector <4 x float> %145, <4 x float> %146, <4 x i32> <i32 1, i32 2, i32 5, i32 6>
  store <4 x float> %147, ptr %15, align 16, !tbaa !24
  %148 = load <4 x float>, ptr %15, align 16, !tbaa !24
  %149 = load ptr, ptr %11, align 8, !tbaa !5
  %150 = load i64, ptr %22, align 8, !tbaa !9
  %151 = add i64 3, %150
  %152 = getelementptr inbounds <4 x float>, ptr %149, i64 %151
  %153 = load <4 x float>, ptr %152, align 16, !tbaa !24
  %154 = call noundef <4 x float> @_ZL10_mm_mul_psDv4_fS_(<4 x float> noundef %148, <4 x float> noundef %153)
  %155 = load ptr, ptr %19, align 8, !tbaa !5
  %156 = load <4 x float>, ptr %155, align 16, !tbaa !24
  %157 = call noundef <4 x float> @_ZL10_mm_add_psDv4_fS_(<4 x float> noundef %154, <4 x float> noundef %156)
  %158 = load ptr, ptr %19, align 8, !tbaa !5
  store <4 x float> %157, ptr %158, align 16, !tbaa !24
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  br label %159

159:                                              ; preds = %88
  %160 = load i64, ptr %21, align 8, !tbaa !9
  %161 = add i64 %160, 1
  store i64 %161, ptr %21, align 8, !tbaa !9
  br label %82, !llvm.loop !25

162:                                              ; preds = %87
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  br label %163

163:                                              ; preds = %162
  %164 = load i64, ptr %17, align 8, !tbaa !9
  %165 = add i64 %164, 1
  store i64 %165, ptr %17, align 8, !tbaa !9
  br label %66, !llvm.loop !27

166:                                              ; preds = %73
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  ret void
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZSt6copy_nIPfmS0_ET1_T_T0_S1_(ptr noundef, i64 noundef, ptr noundef) #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZSt6copy_nIPKfmPfET1_T_T0_S3_(ptr noundef, i64 noundef, ptr noundef) #4

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN7vraudio11ChannelViewixEm(ptr noundef nonnull align 8 dereferenceable(17), i64 noundef) #1 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare hidden noundef <4 x float> @_ZL10_mm_add_psDv4_fS_(<4 x float> noundef, <4 x float> noundef) #5

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare hidden noundef <4 x float> @_ZL10_mm_mul_psDv4_fS_(<4 x float> noundef, <4 x float> noundef) #5

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 = { mustprogress uwtable "min-legal-vector-width"="128" "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 = { 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 #5 = { alwaysinline mustprogress nounwind uwtable "min-legal-vector-width"="128" "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 = { 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 = !{!"long", !7, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"_ZTSN7vraudio9FirFilterE", !10, i64 0, !10, i64 8, !13, i64 16, !13, i64 88}
!13 = !{!"_ZTSN7vraudio11AudioBufferE", !10, i64 0, !14, i64 8, !10, i64 32, !18, i64 40, !22, i64 64}
!14 = !{!"_ZTSSt6vectorIfN7vraudio16AlignedAllocatorIfLm64EEEE", !15, i64 0}
!15 = !{!"_ZTSSt12_Vector_baseIfN7vraudio16AlignedAllocatorIfLm64EEEE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseIfN7vraudio16AlignedAllocatorIfLm64EEEE12_Vector_implE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIfN7vraudio16AlignedAllocatorIfLm64EEEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!18 = !{!"_ZTSSt6vectorIN7vraudio11ChannelViewESaIS1_EE", !19, i64 0}
!19 = !{!"_ZTSSt12_Vector_baseIN7vraudio11ChannelViewESaIS1_EE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseIN7vraudio11ChannelViewESaIS1_EE12_Vector_implE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseIN7vraudio11ChannelViewESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!22 = !{!"int", !7, i64 0}
!23 = !{!12, !10, i64 8}
!24 = !{!7, !7, i64 0}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}
!27 = distinct !{!27, !26}


; 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.NullLogger = type { i8 }

; 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 uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN10NullLogger9GetStreamEv(ptr noundef nonnull align 1 dereferenceable(1)) 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 nounwind uwtable
declare dso_local noundef i64 @_ZNK7vraudio11ChannelView4sizeEv(ptr noundef nonnull align 8 dereferenceable(17)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(17) ptr @_ZN7vraudio11AudioBufferixEm(ptr noundef nonnull align 8 dereferenceable(68), i64 noundef) local_unnamed_addr #1 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7vraudio9FirFilter7ProcessERKNS_11ChannelViewEPS1_(ptr noundef nonnull align 8 dereferenceable(160) %0, ptr noundef nonnull align 8 dereferenceable(17) %1, ptr noundef %2) local_unnamed_addr #3 align 2 {
  %4 = alloca %class.NullLogger, align 1
  %5 = alloca %class.NullLogger, align 1
  %6 = alloca %class.NullLogger, align 1
  %7 = alloca %class.NullLogger, align 1
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #6
  %8 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN10NullLogger9GetStreamEv(ptr noundef nonnull align 1 dereferenceable(1) %4)
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %5) #6
  %9 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN10NullLogger9GetStreamEv(ptr noundef nonnull align 1 dereferenceable(1) %5)
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #6
  %10 = call noundef i64 @_ZNK7vraudio11ChannelView4sizeEv(ptr noundef nonnull align 8 dereferenceable(17) %1)
  %11 = getelementptr inbounds i8, ptr %0, i64 88
  %12 = call noundef nonnull align 8 dereferenceable(17) ptr @_ZN7vraudio11AudioBufferixEm(ptr noundef nonnull align 8 dereferenceable(68) %11, i64 noundef 0)
  %13 = call noundef ptr @_ZN7vraudio11ChannelView3endEv(ptr noundef nonnull align 8 dereferenceable(17) %12)
  %14 = load i64, ptr %0, align 8, !tbaa !5
  %15 = sub i64 0, %14
  %16 = getelementptr inbounds float, ptr %13, i64 %15
  %17 = call noundef nonnull align 8 dereferenceable(17) ptr @_ZN7vraudio11AudioBufferixEm(ptr noundef nonnull align 8 dereferenceable(68) %11, i64 noundef 0)
  %18 = call noundef ptr @_ZN7vraudio11ChannelView5beginEv(ptr noundef nonnull align 8 dereferenceable(17) %17)
  %19 = call noundef ptr @_ZSt6copy_nIPfmS0_ET1_T_T0_S1_(ptr noundef %16, i64 noundef %14, ptr noundef %18)
  %20 = call noundef ptr @_ZNK7vraudio11ChannelView5beginEv(ptr noundef nonnull align 8 dereferenceable(17) %1)
  %21 = call noundef nonnull align 8 dereferenceable(17) ptr @_ZN7vraudio11AudioBufferixEm(ptr noundef nonnull align 8 dereferenceable(68) %11, i64 noundef 0)
  %22 = call noundef ptr @_ZN7vraudio11ChannelView5beginEv(ptr noundef nonnull align 8 dereferenceable(17) %21)
  %23 = load i64, ptr %0, align 8, !tbaa !5
  %24 = getelementptr inbounds float, ptr %22, i64 %23
  %25 = call noundef ptr @_ZSt6copy_nIPKfmPfET1_T_T0_S3_(ptr noundef %20, i64 noundef %10, ptr noundef %24)
  %26 = call noundef nonnull align 8 dereferenceable(17) ptr @_ZN7vraudio11AudioBufferixEm(ptr noundef nonnull align 8 dereferenceable(68) %11, i64 noundef 0)
  %27 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7vraudio11ChannelViewixEm(ptr noundef nonnull align 8 dereferenceable(17) %26, i64 noundef 0)
  %28 = getelementptr inbounds i8, ptr %0, i64 16
  %29 = call noundef nonnull align 8 dereferenceable(17) ptr @_ZN7vraudio11AudioBufferixEm(ptr noundef nonnull align 8 dereferenceable(68) %28, i64 noundef 0)
  %30 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7vraudio11ChannelViewixEm(ptr noundef nonnull align 8 dereferenceable(17) %29, i64 noundef 0)
  %31 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7vraudio11ChannelViewixEm(ptr noundef nonnull align 8 dereferenceable(17) %2, i64 noundef 0)
  %32 = lshr i64 %10, 2
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #6
  %33 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN10NullLogger9GetStreamEv(ptr noundef nonnull align 1 dereferenceable(1) %6)
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #6
  %34 = getelementptr inbounds i8, ptr %0, i64 8
  %35 = load i64, ptr %34, align 8, !tbaa !21
  %36 = add i64 %35, %32
  %37 = icmp ult i64 %35, %36
  br i1 %37, label %.lr.ph49, label %._crit_edge50

._crit_edge50:                                    ; preds = %._crit_edge, %3
  ret void

.lr.ph49:                                         ; preds = %3, %._crit_edge
  %38 = phi i64 [ %43, %._crit_edge ], [ %35, %3 ]
  %.047 = phi i64 [ %44, %._crit_edge ], [ %35, %3 ]
  %39 = sub i64 %.047, %38
  %40 = getelementptr inbounds <4 x float>, ptr %31, i64 %39
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %7) #6
  %41 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN10NullLogger9GetStreamEv(ptr noundef nonnull align 1 dereferenceable(1) %7)
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #6
  %42 = load i64, ptr %34, align 8, !tbaa !21
  %.not = icmp eq i64 %42, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %.lr.ph, %.lr.ph49
  %43 = phi i64 [ 0, %.lr.ph49 ], [ %83, %.lr.ph ]
  %44 = add nuw i64 %.047, 1
  %45 = add i64 %43, %32
  %46 = icmp ult i64 %44, %45
  br i1 %46, label %.lr.ph49, label %._crit_edge50, !llvm.loop !22

.lr.ph:                                           ; preds = %.lr.ph49, %.lr.ph
  %.04546 = phi i64 [ %48, %.lr.ph ], [ 0, %.lr.ph49 ]
  %47 = shl i64 %.04546, 2
  %48 = add nuw i64 %.04546, 1
  %49 = sub i64 %.047, %48
  %50 = getelementptr inbounds <4 x float>, ptr %27, i64 %49
  %51 = sub i64 %.047, %.04546
  %52 = getelementptr inbounds <4 x float>, ptr %27, i64 %51
  %53 = load <4 x float>, ptr %50, align 16, !tbaa !24
  %54 = load <4 x float>, ptr %52, align 16, !tbaa !24
  %55 = shufflevector <4 x float> %53, <4 x float> %54, <4 x i32> <i32 2, i32 3, i32 4, i32 5>
  %56 = getelementptr inbounds <4 x float>, ptr %30, i64 %47
  %57 = load <4 x float>, ptr %56, align 16, !tbaa !24
  %58 = call noundef <4 x float> @_ZL10_mm_mul_psDv4_fS_(<4 x float> noundef %54, <4 x float> noundef %57)
  %59 = load <4 x float>, ptr %40, align 16, !tbaa !24
  %60 = call noundef <4 x float> @_ZL10_mm_add_psDv4_fS_(<4 x float> noundef %58, <4 x float> noundef %59)
  store <4 x float> %60, ptr %40, align 16, !tbaa !24
  %61 = load <4 x float>, ptr %52, align 16, !tbaa !24
  %62 = shufflevector <4 x float> %55, <4 x float> %61, <4 x i32> <i32 1, i32 2, i32 5, i32 6>
  %63 = or disjoint i64 %47, 1
  %64 = getelementptr inbounds <4 x float>, ptr %30, i64 %63
  %65 = load <4 x float>, ptr %64, align 16, !tbaa !24
  %66 = call noundef <4 x float> @_ZL10_mm_mul_psDv4_fS_(<4 x float> noundef %62, <4 x float> noundef %65)
  %67 = load <4 x float>, ptr %40, align 16, !tbaa !24
  %68 = call noundef <4 x float> @_ZL10_mm_add_psDv4_fS_(<4 x float> noundef %66, <4 x float> noundef %67)
  store <4 x float> %68, ptr %40, align 16, !tbaa !24
  %69 = or disjoint i64 %47, 2
  %70 = getelementptr inbounds <4 x float>, ptr %30, i64 %69
  %71 = load <4 x float>, ptr %70, align 16, !tbaa !24
  %72 = call noundef <4 x float> @_ZL10_mm_mul_psDv4_fS_(<4 x float> noundef %55, <4 x float> noundef %71)
  %73 = load <4 x float>, ptr %40, align 16, !tbaa !24
  %74 = call noundef <4 x float> @_ZL10_mm_add_psDv4_fS_(<4 x float> noundef %72, <4 x float> noundef %73)
  store <4 x float> %74, ptr %40, align 16, !tbaa !24
  %75 = load <4 x float>, ptr %50, align 16, !tbaa !24
  %76 = shufflevector <4 x float> %75, <4 x float> %55, <4 x i32> <i32 1, i32 2, i32 5, i32 6>
  %77 = or disjoint i64 %47, 3
  %78 = getelementptr inbounds <4 x float>, ptr %30, i64 %77
  %79 = load <4 x float>, ptr %78, align 16, !tbaa !24
  %80 = call noundef <4 x float> @_ZL10_mm_mul_psDv4_fS_(<4 x float> noundef %76, <4 x float> noundef %79)
  %81 = load <4 x float>, ptr %40, align 16, !tbaa !24
  %82 = call noundef <4 x float> @_ZL10_mm_add_psDv4_fS_(<4 x float> noundef %80, <4 x float> noundef %81)
  store <4 x float> %82, ptr %40, align 16, !tbaa !24
  %83 = load i64, ptr %34, align 8, !tbaa !21
  %84 = icmp ult i64 %48, %83
  br i1 %84, label %.lr.ph, label %._crit_edge, !llvm.loop !25
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZSt6copy_nIPfmS0_ET1_T_T0_S1_(ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZSt6copy_nIPKfmPfET1_T_T0_S3_(ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #4

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN7vraudio11ChannelViewixEm(ptr noundef nonnull align 8 dereferenceable(17), i64 noundef) local_unnamed_addr #1 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare hidden noundef <4 x float> @_ZL10_mm_add_psDv4_fS_(<4 x float> noundef, <4 x float> noundef) local_unnamed_addr #5

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare hidden noundef <4 x float> @_ZL10_mm_mul_psDv4_fS_(<4 x float> noundef, <4 x float> noundef) local_unnamed_addr #5

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 = { mustprogress uwtable "min-legal-vector-width"="128" "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 = { 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 #5 = { alwaysinline mustprogress nounwind uwtable "min-legal-vector-width"="128" "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 = { 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 = !{!"_ZTSN7vraudio9FirFilterE", !7, i64 0, !7, i64 8, !10, i64 16, !10, i64 88}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTSN7vraudio11AudioBufferE", !7, i64 0, !11, i64 8, !7, i64 32, !16, i64 40, !20, i64 64}
!11 = !{!"_ZTSSt6vectorIfN7vraudio16AlignedAllocatorIfLm64EEEE", !12, i64 0}
!12 = !{!"_ZTSSt12_Vector_baseIfN7vraudio16AlignedAllocatorIfLm64EEEE", !13, i64 0}
!13 = !{!"_ZTSNSt12_Vector_baseIfN7vraudio16AlignedAllocatorIfLm64EEEE12_Vector_implE", !14, i64 0}
!14 = !{!"_ZTSNSt12_Vector_baseIfN7vraudio16AlignedAllocatorIfLm64EEEE17_Vector_impl_dataE", !15, i64 0, !15, i64 8, !15, i64 16}
!15 = !{!"any pointer", !8, i64 0}
!16 = !{!"_ZTSSt6vectorIN7vraudio11ChannelViewESaIS1_EE", !17, i64 0}
!17 = !{!"_ZTSSt12_Vector_baseIN7vraudio11ChannelViewESaIS1_EE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIN7vraudio11ChannelViewESaIS1_EE12_Vector_implE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIN7vraudio11ChannelViewESaIS1_EE17_Vector_impl_dataE", !15, i64 0, !15, i64 8, !15, i64 16}
!20 = !{!"int", !8, i64 0}
!21 = !{!6, !7, i64 8}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}
!24 = !{!8, !8, i64 0}
!25 = distinct !{!25, !23}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass