; 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::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 }
%"class.vraudio::FirFilter" = type { i64, i64, %"class.vraudio::AudioBuffer", %"class.vraudio::AudioBuffer" }

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7vraudio9FirFilterC2ERKNS_11ChannelViewEm(ptr noundef nonnull align 8 dereferenceable(160) %0, ptr noundef nonnull align 8 dereferenceable(17) %1, i64 noundef %2) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i64, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca %class.NullLogger, align 1
  %10 = alloca i64, align 8
  %11 = alloca %class.NullLogger, align 1
  %12 = alloca %"class.vraudio::AudioBuffer", align 8
  %13 = alloca ptr, align 8
  %14 = alloca i64, align 8
  %15 = alloca ptr, align 8
  %16 = alloca float, align 4
  %17 = alloca %"class.vraudio::AudioBuffer", align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store i64 %2, ptr %6, align 8, !tbaa !9
  %18 = load ptr, ptr %4, align 8
  %19 = getelementptr inbounds %"class.vraudio::FirFilter", ptr %18, i32 0, i32 2
  call void @_ZN7vraudio11AudioBufferC1Ev(ptr noundef nonnull align 8 dereferenceable(68) %19)
  %20 = getelementptr inbounds %"class.vraudio::FirFilter", ptr %18, i32 0, i32 3
  invoke void @_ZN7vraudio11AudioBufferC1Ev(ptr noundef nonnull align 8 dereferenceable(68) %20)
          to label %21 unwind label %61

21:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 1, ptr %9) #6
  %22 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN10NullLogger9GetStreamEv(ptr noundef nonnull align 1 dereferenceable(1) %9)
          to label %23 unwind label %65

23:                                               ; preds = %21
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  %24 = load ptr, ptr %5, align 8, !tbaa !5
  %25 = invoke noundef i64 @_ZNK7vraudio11ChannelView4sizeEv(ptr noundef nonnull align 8 dereferenceable(17) %24)
          to label %26 unwind label %69

26:                                               ; preds = %23
  store i64 %25, ptr %10, align 8, !tbaa !9
  %27 = load i64, ptr %10, align 8, !tbaa !9
  %28 = load i64, ptr %10, align 8, !tbaa !9
  %29 = urem i64 %28, 4
  %30 = icmp eq i64 %29, 0
  br i1 %30, label %31, label %32

31:                                               ; preds = %26
  br label %36

32:                                               ; preds = %26
  %33 = load i64, ptr %10, align 8, !tbaa !9
  %34 = urem i64 %33, 4
  %35 = sub i64 4, %34
  br label %36

36:                                               ; preds = %32, %31
  %37 = phi i64 [ 0, %31 ], [ %35, %32 ]
  %38 = add i64 %27, %37
  %39 = getelementptr inbounds %"class.vraudio::FirFilter", ptr %18, i32 0, i32 0
  store i64 %38, ptr %39, align 8, !tbaa !11
  %40 = getelementptr inbounds %"class.vraudio::FirFilter", ptr %18, i32 0, i32 0
  %41 = load i64, ptr %40, align 8, !tbaa !11
  %42 = udiv i64 %41, 4
  %43 = getelementptr inbounds %"class.vraudio::FirFilter", ptr %18, i32 0, i32 1
  store i64 %42, ptr %43, align 8, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 1, ptr %11) #6
  %44 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN10NullLogger9GetStreamEv(ptr noundef nonnull align 1 dereferenceable(1) %11)
          to label %45 unwind label %73

45:                                               ; preds = %36
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #6
  call void @llvm.lifetime.start.p0(i64 72, ptr %12) #6
  %46 = getelementptr inbounds %"class.vraudio::FirFilter", ptr %18, i32 0, i32 0
  %47 = load i64, ptr %46, align 8, !tbaa !11
  %48 = mul i64 %47, 4
  invoke void @_ZN7vraudio11AudioBufferC1Emm(ptr noundef nonnull align 8 dereferenceable(68) %12, i64 noundef 1, i64 noundef %48)
          to label %49 unwind label %77

49:                                               ; preds = %45
  %50 = getelementptr inbounds %"class.vraudio::FirFilter", ptr %18, i32 0, i32 2
  %51 = invoke noundef nonnull align 8 dereferenceable(68) ptr @_ZN7vraudio11AudioBufferaSERKS0_(ptr noundef nonnull align 8 dereferenceable(68) %50, ptr noundef nonnull align 8 dereferenceable(68) %12)
          to label %52 unwind label %81

52:                                               ; preds = %49
  call void @_ZN7vraudio11AudioBufferD2Ev(ptr noundef nonnull align 8 dereferenceable(68) %12) #6
  call void @llvm.lifetime.end.p0(i64 72, ptr %12) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  %53 = getelementptr inbounds %"class.vraudio::FirFilter", ptr %18, i32 0, i32 2
  %54 = invoke noundef nonnull align 8 dereferenceable(17) ptr @_ZN7vraudio11AudioBufferixEm(ptr noundef nonnull align 8 dereferenceable(68) %53, i64 noundef 0)
          to label %55 unwind label %86

55:                                               ; preds = %52
  store ptr %54, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  store i64 0, ptr %14, align 8, !tbaa !9
  br label %56

56:                                               ; preds = %105, %55
  %57 = load i64, ptr %14, align 8, !tbaa !9
  %58 = load i64, ptr %10, align 8, !tbaa !9
  %59 = icmp ult i64 %57, %58
  br i1 %59, label %90, label %60

60:                                               ; preds = %56
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  br label %112

61:                                               ; preds = %3
  %62 = landingpad { ptr, i32 }
          cleanup
  %63 = extractvalue { ptr, i32 } %62, 0
  store ptr %63, ptr %7, align 8
  %64 = extractvalue { ptr, i32 } %62, 1
  store i32 %64, ptr %8, align 4
  br label %149

65:                                               ; preds = %21
  %66 = landingpad { ptr, i32 }
          cleanup
  %67 = extractvalue { ptr, i32 } %66, 0
  store ptr %67, ptr %7, align 8
  %68 = extractvalue { ptr, i32 } %66, 1
  store i32 %68, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #6
  br label %148

69:                                               ; preds = %23
  %70 = landingpad { ptr, i32 }
          cleanup
  %71 = extractvalue { ptr, i32 } %70, 0
  store ptr %71, ptr %7, align 8
  %72 = extractvalue { ptr, i32 } %70, 1
  store i32 %72, ptr %8, align 4
  br label %147

73:                                               ; preds = %36
  %74 = landingpad { ptr, i32 }
          cleanup
  %75 = extractvalue { ptr, i32 } %74, 0
  store ptr %75, ptr %7, align 8
  %76 = extractvalue { ptr, i32 } %74, 1
  store i32 %76, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #6
  br label %147

77:                                               ; preds = %45
  %78 = landingpad { ptr, i32 }
          cleanup
  %79 = extractvalue { ptr, i32 } %78, 0
  store ptr %79, ptr %7, align 8
  %80 = extractvalue { ptr, i32 } %78, 1
  store i32 %80, ptr %8, align 4
  br label %85

81:                                               ; preds = %49
  %82 = landingpad { ptr, i32 }
          cleanup
  %83 = extractvalue { ptr, i32 } %82, 0
  store ptr %83, ptr %7, align 8
  %84 = extractvalue { ptr, i32 } %82, 1
  store i32 %84, ptr %8, align 4
  call void @_ZN7vraudio11AudioBufferD2Ev(ptr noundef nonnull align 8 dereferenceable(68) %12) #6
  br label %85

85:                                               ; preds = %81, %77
  call void @llvm.lifetime.end.p0(i64 72, ptr %12) #6
  br label %147

86:                                               ; preds = %130, %115, %112, %52
  %87 = landingpad { ptr, i32 }
          cleanup
  %88 = extractvalue { ptr, i32 } %87, 0
  store ptr %88, ptr %7, align 8
  %89 = extractvalue { ptr, i32 } %87, 1
  store i32 %89, ptr %8, align 4
  br label %146

90:                                               ; preds = %56
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  %91 = load ptr, ptr %13, align 8, !tbaa !5
  %92 = invoke noundef ptr @_ZN7vraudio11ChannelView5beginEv(ptr noundef nonnull align 8 dereferenceable(17) %91)
          to label %93 unwind label %108

93:                                               ; preds = %90
  %94 = load i64, ptr %14, align 8, !tbaa !9
  %95 = mul i64 %94, 4
  %96 = getelementptr inbounds float, ptr %92, i64 %95
  store ptr %96, ptr %15, align 8, !tbaa !5
  %97 = load ptr, ptr %15, align 8, !tbaa !5
  %98 = load ptr, ptr %15, align 8, !tbaa !5
  %99 = getelementptr inbounds float, ptr %98, i64 4
  %100 = load ptr, ptr %5, align 8, !tbaa !5
  %101 = load i64, ptr %14, align 8, !tbaa !9
  %102 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7vraudio11ChannelViewixEm(ptr noundef nonnull align 8 dereferenceable(17) %100, i64 noundef %101)
          to label %103 unwind label %108

103:                                              ; preds = %93
  invoke void @_ZSt4fillIPffEvT_S1_RKT0_(ptr noundef %97, ptr noundef %99, ptr noundef nonnull align 4 dereferenceable(4) %102)
          to label %104 unwind label %108

104:                                              ; preds = %103
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  br label %105

105:                                              ; preds = %104
  %106 = load i64, ptr %14, align 8, !tbaa !9
  %107 = add i64 %106, 1
  store i64 %107, ptr %14, align 8, !tbaa !9
  br label %56, !llvm.loop !24

108:                                              ; preds = %103, %93, %90
  %109 = landingpad { ptr, i32 }
          cleanup
  %110 = extractvalue { ptr, i32 } %109, 0
  store ptr %110, ptr %7, align 8
  %111 = extractvalue { ptr, i32 } %109, 1
  store i32 %111, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  br label %146

112:                                              ; preds = %60
  %113 = load ptr, ptr %13, align 8, !tbaa !5
  %114 = invoke noundef ptr @_ZN7vraudio11ChannelView5beginEv(ptr noundef nonnull align 8 dereferenceable(17) %113)
          to label %115 unwind label %86

115:                                              ; preds = %112
  %116 = load i64, ptr %10, align 8, !tbaa !9
  %117 = mul i64 %116, 4
  %118 = getelementptr inbounds float, ptr %114, i64 %117
  %119 = load ptr, ptr %13, align 8, !tbaa !5
  %120 = invoke noundef ptr @_ZN7vraudio11ChannelView3endEv(ptr noundef nonnull align 8 dereferenceable(17) %119)
          to label %121 unwind label %86

121:                                              ; preds = %115
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  store float 0.000000e+00, ptr %16, align 4, !tbaa !26
  invoke void @_ZSt4fillIPffEvT_S1_RKT0_(ptr noundef %118, ptr noundef %120, ptr noundef nonnull align 4 dereferenceable(4) %16)
          to label %122 unwind label %133

122:                                              ; preds = %121
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.start.p0(i64 72, ptr %17) #6
  %123 = load i64, ptr %6, align 8, !tbaa !9
  %124 = getelementptr inbounds %"class.vraudio::FirFilter", ptr %18, i32 0, i32 0
  %125 = load i64, ptr %124, align 8, !tbaa !11
  %126 = add i64 %123, %125
  invoke void @_ZN7vraudio11AudioBufferC1Emm(ptr noundef nonnull align 8 dereferenceable(68) %17, i64 noundef 1, i64 noundef %126)
          to label %127 unwind label %137

127:                                              ; preds = %122
  %128 = getelementptr inbounds %"class.vraudio::FirFilter", ptr %18, i32 0, i32 3
  %129 = invoke noundef nonnull align 8 dereferenceable(68) ptr @_ZN7vraudio11AudioBufferaSERKS0_(ptr noundef nonnull align 8 dereferenceable(68) %128, ptr noundef nonnull align 8 dereferenceable(68) %17)
          to label %130 unwind label %141

130:                                              ; preds = %127
  call void @_ZN7vraudio11AudioBufferD2Ev(ptr noundef nonnull align 8 dereferenceable(68) %17) #6
  call void @llvm.lifetime.end.p0(i64 72, ptr %17) #6
  %131 = getelementptr inbounds %"class.vraudio::FirFilter", ptr %18, i32 0, i32 3
  invoke void @_ZN7vraudio11AudioBuffer5ClearEv(ptr noundef nonnull align 8 dereferenceable(68) %131)
          to label %132 unwind label %86

132:                                              ; preds = %130
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  ret void

133:                                              ; preds = %121
  %134 = landingpad { ptr, i32 }
          cleanup
  %135 = extractvalue { ptr, i32 } %134, 0
  store ptr %135, ptr %7, align 8
  %136 = extractvalue { ptr, i32 } %134, 1
  store i32 %136, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  br label %146

137:                                              ; preds = %122
  %138 = landingpad { ptr, i32 }
          cleanup
  %139 = extractvalue { ptr, i32 } %138, 0
  store ptr %139, ptr %7, align 8
  %140 = extractvalue { ptr, i32 } %138, 1
  store i32 %140, ptr %8, align 4
  br label %145

141:                                              ; preds = %127
  %142 = landingpad { ptr, i32 }
          cleanup
  %143 = extractvalue { ptr, i32 } %142, 0
  store ptr %143, ptr %7, align 8
  %144 = extractvalue { ptr, i32 } %142, 1
  store i32 %144, ptr %8, align 4
  call void @_ZN7vraudio11AudioBufferD2Ev(ptr noundef nonnull align 8 dereferenceable(68) %17) #6
  br label %145

145:                                              ; preds = %141, %137
  call void @llvm.lifetime.end.p0(i64 72, ptr %17) #6
  br label %146

146:                                              ; preds = %145, %133, %108, %86
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  br label %147

147:                                              ; preds = %146, %85, %73, %69
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  br label %148

148:                                              ; preds = %147, %65
  call void @_ZN7vraudio11AudioBufferD2Ev(ptr noundef nonnull align 8 dereferenceable(68) %20) #6
  br label %149

149:                                              ; preds = %148, %61
  call void @_ZN7vraudio11AudioBufferD2Ev(ptr noundef nonnull align 8 dereferenceable(68) %19) #6
  br label %150

150:                                              ; preds = %149
  %151 = load ptr, ptr %7, align 8
  %152 = load i32, ptr %8, align 4
  %153 = insertvalue { ptr, i32 } poison, ptr %151, 0
  %154 = insertvalue { ptr, i32 } %153, i32 %152, 1
  resume { ptr, i32 } %154
}

declare void @_ZN7vraudio11AudioBufferC1Ev(ptr noundef nonnull align 8 dereferenceable(68)) unnamed_addr #1

declare i32 @__gxx_personality_v0(...)

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK7vraudio11ChannelView4sizeEv(ptr noundef nonnull align 8 dereferenceable(17)) #3 align 2

declare void @_ZN7vraudio11AudioBufferC1Emm(ptr noundef nonnull align 8 dereferenceable(68), i64 noundef, i64 noundef) unnamed_addr #1

declare noundef nonnull align 8 dereferenceable(68) ptr @_ZN7vraudio11AudioBufferaSERKS0_(ptr noundef nonnull align 8 dereferenceable(68), ptr noundef nonnull align 8 dereferenceable(68)) #1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN7vraudio11AudioBufferD2Ev(ptr noundef nonnull align 8 dereferenceable(68)) unnamed_addr #4 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) #0 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4fillIPffEvT_S1_RKT0_(ptr noundef, ptr noundef, ptr noundef nonnull align 4 dereferenceable(4)) #5

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7vraudio11AudioBuffer5ClearEv(ptr noundef nonnull align 8 dereferenceable(68)) #0 align 2

attributes #0 = { 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 #1 = { "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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 = { 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 = { 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 #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 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"}
!26 = !{!27, !27, i64 0}
!27 = !{!"float", !7, i64 0}


; 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 }
%"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: mustprogress uwtable
define dso_local void @_ZN7vraudio9FirFilterC2ERKNS_11ChannelViewEm(ptr noundef nonnull align 8 dereferenceable(160) %0, ptr noundef nonnull align 8 dereferenceable(17) %1, i64 noundef %2) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %class.NullLogger, align 1
  %5 = alloca %class.NullLogger, align 1
  %6 = alloca %"class.vraudio::AudioBuffer", align 8
  %7 = alloca float, align 4
  %8 = alloca %"class.vraudio::AudioBuffer", align 8
  %9 = getelementptr inbounds i8, ptr %0, i64 16
  tail call void @_ZN7vraudio11AudioBufferC1Ev(ptr noundef nonnull align 8 dereferenceable(68) %9)
  %10 = getelementptr inbounds i8, ptr %0, i64 88
  invoke void @_ZN7vraudio11AudioBufferC1Ev(ptr noundef nonnull align 8 dereferenceable(68) %10)
          to label %11 unwind label %31

11:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #6
  %12 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN10NullLogger9GetStreamEv(ptr noundef nonnull align 1 dereferenceable(1) %4)
          to label %13 unwind label %33

13:                                               ; preds = %11
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #6
  %14 = call noundef i64 @_ZNK7vraudio11ChannelView4sizeEv(ptr noundef nonnull align 8 dereferenceable(17) %1)
  %15 = and i64 %14, 3
  %16 = icmp eq i64 %15, 0
  %17 = sub nuw nsw i64 4, %15
  %18 = select i1 %16, i64 0, i64 %17
  %19 = add i64 %18, %14
  store i64 %19, ptr %0, align 8, !tbaa !5
  %20 = lshr i64 %19, 2
  %21 = getelementptr inbounds i8, ptr %0, i64 8
  store i64 %20, ptr %21, align 8, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %5) #6
  %22 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN10NullLogger9GetStreamEv(ptr noundef nonnull align 1 dereferenceable(1) %5)
          to label %23 unwind label %35

23:                                               ; preds = %13
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #6
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %6) #6
  %24 = load i64, ptr %0, align 8, !tbaa !5
  %25 = shl i64 %24, 2
  invoke void @_ZN7vraudio11AudioBufferC1Emm(ptr noundef nonnull align 8 dereferenceable(68) %6, i64 noundef 1, i64 noundef %25)
          to label %26 unwind label %37

26:                                               ; preds = %23
  %27 = invoke noundef nonnull align 8 dereferenceable(68) ptr @_ZN7vraudio11AudioBufferaSERKS0_(ptr noundef nonnull align 8 dereferenceable(68) %9, ptr noundef nonnull align 8 dereferenceable(68) %6)
          to label %28 unwind label %39

28:                                               ; preds = %26
  call void @_ZN7vraudio11AudioBufferD2Ev(ptr noundef nonnull align 8 dereferenceable(68) %6) #6
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %6) #6
  %29 = invoke noundef nonnull align 8 dereferenceable(17) ptr @_ZN7vraudio11AudioBufferixEm(ptr noundef nonnull align 8 dereferenceable(68) %9, i64 noundef 0)
          to label %.preheader unwind label %42

.preheader:                                       ; preds = %28
  %.not = icmp eq i64 %14, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %50, %.preheader
  %30 = invoke noundef ptr @_ZN7vraudio11ChannelView5beginEv(ptr noundef nonnull align 8 dereferenceable(17) %29)
          to label %54 unwind label %42

31:                                               ; preds = %3
  %32 = landingpad { ptr, i32 }
          cleanup
  br label %73

33:                                               ; preds = %11
  %34 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #6
  br label %72

35:                                               ; preds = %13
  %36 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #6
  br label %72

37:                                               ; preds = %23
  %38 = landingpad { ptr, i32 }
          cleanup
  br label %41

39:                                               ; preds = %26
  %40 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7vraudio11AudioBufferD2Ev(ptr noundef nonnull align 8 dereferenceable(68) %6) #6
  br label %41

41:                                               ; preds = %39, %37
  %.pn = phi { ptr, i32 } [ %40, %39 ], [ %38, %37 ]
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %6) #6
  br label %72

42:                                               ; preds = %63, %54, %._crit_edge, %28
  %43 = landingpad { ptr, i32 }
          cleanup
  br label %72

.lr.ph:                                           ; preds = %.preheader, %50
  %.01936 = phi i64 [ %51, %50 ], [ 0, %.preheader ]
  %44 = invoke noundef ptr @_ZN7vraudio11ChannelView5beginEv(ptr noundef nonnull align 8 dereferenceable(17) %29)
          to label %45 unwind label %52

45:                                               ; preds = %.lr.ph
  %46 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7vraudio11ChannelViewixEm(ptr noundef nonnull align 8 dereferenceable(17) %1, i64 noundef %.01936)
          to label %47 unwind label %52

47:                                               ; preds = %45
  %.idx30 = shl i64 %.01936, 4
  %48 = getelementptr inbounds i8, ptr %44, i64 %.idx30
  %49 = getelementptr inbounds i8, ptr %48, i64 16
  invoke void @_ZSt4fillIPffEvT_S1_RKT0_(ptr noundef %48, ptr noundef nonnull %49, ptr noundef nonnull align 4 dereferenceable(4) %46)
          to label %50 unwind label %52

50:                                               ; preds = %47
  %51 = add nuw i64 %.01936, 1
  %exitcond.not = icmp eq i64 %51, %14
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !22

52:                                               ; preds = %47, %45, %.lr.ph
  %53 = landingpad { ptr, i32 }
          cleanup
  br label %72

54:                                               ; preds = %._crit_edge
  %55 = invoke noundef ptr @_ZN7vraudio11ChannelView3endEv(ptr noundef nonnull align 8 dereferenceable(17) %29)
          to label %56 unwind label %42

56:                                               ; preds = %54
  %.idx = shl i64 %14, 4
  %57 = getelementptr inbounds i8, ptr %30, i64 %.idx
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #6
  store float 0.000000e+00, ptr %7, align 4, !tbaa !24
  invoke void @_ZSt4fillIPffEvT_S1_RKT0_(ptr noundef %57, ptr noundef %55, ptr noundef nonnull align 4 dereferenceable(4) %7)
          to label %58 unwind label %65

58:                                               ; preds = %56
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #6
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %8) #6
  %59 = load i64, ptr %0, align 8, !tbaa !5
  %60 = add i64 %59, %2
  invoke void @_ZN7vraudio11AudioBufferC1Emm(ptr noundef nonnull align 8 dereferenceable(68) %8, i64 noundef 1, i64 noundef %60)
          to label %61 unwind label %67

61:                                               ; preds = %58
  %62 = invoke noundef nonnull align 8 dereferenceable(68) ptr @_ZN7vraudio11AudioBufferaSERKS0_(ptr noundef nonnull align 8 dereferenceable(68) %10, ptr noundef nonnull align 8 dereferenceable(68) %8)
          to label %63 unwind label %69

63:                                               ; preds = %61
  call void @_ZN7vraudio11AudioBufferD2Ev(ptr noundef nonnull align 8 dereferenceable(68) %8) #6
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %8) #6
  invoke void @_ZN7vraudio11AudioBuffer5ClearEv(ptr noundef nonnull align 8 dereferenceable(68) %10)
          to label %64 unwind label %42

64:                                               ; preds = %63
  ret void

65:                                               ; preds = %56
  %66 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #6
  br label %72

67:                                               ; preds = %58
  %68 = landingpad { ptr, i32 }
          cleanup
  br label %71

69:                                               ; preds = %61
  %70 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7vraudio11AudioBufferD2Ev(ptr noundef nonnull align 8 dereferenceable(68) %8) #6
  br label %71

71:                                               ; preds = %69, %67
  %.pn28 = phi { ptr, i32 } [ %70, %69 ], [ %68, %67 ]
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %8) #6
  br label %72

72:                                               ; preds = %35, %41, %71, %65, %52, %42, %33
  %.pn31.pn.pn = phi { ptr, i32 } [ %34, %33 ], [ %.pn, %41 ], [ %36, %35 ], [ %53, %52 ], [ %43, %42 ], [ %.pn28, %71 ], [ %66, %65 ]
  call void @_ZN7vraudio11AudioBufferD2Ev(ptr noundef nonnull align 8 dereferenceable(68) %10) #6
  br label %73

73:                                               ; preds = %72, %31
  %.pn31.pn.pn.pn = phi { ptr, i32 } [ %.pn31.pn.pn, %72 ], [ %32, %31 ]
  call void @_ZN7vraudio11AudioBufferD2Ev(ptr noundef nonnull align 8 dereferenceable(68) %9) #6
  resume { ptr, i32 } %.pn31.pn.pn.pn
}

declare void @_ZN7vraudio11AudioBufferC1Ev(ptr noundef nonnull align 8 dereferenceable(68)) unnamed_addr #1

declare i32 @__gxx_personality_v0(...)

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

; 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 #0 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK7vraudio11ChannelView4sizeEv(ptr noundef nonnull align 8 dereferenceable(17)) local_unnamed_addr #3 align 2

declare void @_ZN7vraudio11AudioBufferC1Emm(ptr noundef nonnull align 8 dereferenceable(68), i64 noundef, i64 noundef) unnamed_addr #1

declare noundef nonnull align 8 dereferenceable(68) ptr @_ZN7vraudio11AudioBufferaSERKS0_(ptr noundef nonnull align 8 dereferenceable(68), ptr noundef nonnull align 8 dereferenceable(68)) local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN7vraudio11AudioBufferD2Ev(ptr noundef nonnull align 8 dereferenceable(68)) unnamed_addr #4 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 #0 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4fillIPffEvT_S1_RKT0_(ptr noundef, ptr noundef, ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #5

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7vraudio11AudioBuffer5ClearEv(ptr noundef nonnull align 8 dereferenceable(68)) local_unnamed_addr #0 align 2

attributes #0 = { 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 #1 = { "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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 = { 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 = { 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 #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 = !{!25, !25, i64 0}
!25 = !{!"float", !8, i64 0}


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