; LLVM IR from sp-nitech/SPTK :: src/filter (infinite_impulse_response_digital_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.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.sptk::InfiniteImpulseResponseDigitalFilter" = type <{ ptr, %"class.std::vector", %"class.std::vector", i32, i32, i32, i8, [3 x i8] }>
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.sptk::InfiniteImpulseResponseDigitalFilter::Buffer" = type <{ ptr, %"class.std::vector", i32, [4 x i8] }>

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZNK4sptk36InfiniteImpulseResponseDigitalFilter3RunEdPdPNS0_6BufferE(ptr noundef nonnull align 8 dereferenceable(69) %0, double noundef %1, ptr noundef %2, ptr noundef %3) #1 align 2 {
  %5 = alloca i1, align 1
  %6 = alloca ptr, align 8
  %7 = alloca double, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %11 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %12 = alloca double, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca double, align 8
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca ptr, align 8
  %19 = alloca double, align 8
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store double %1, ptr %7, align 8, !tbaa !9
  store ptr %2, ptr %8, align 8, !tbaa !5
  store ptr %3, ptr %9, align 8, !tbaa !5
  %22 = load ptr, ptr %6, align 8
  %23 = getelementptr inbounds %"class.sptk::InfiniteImpulseResponseDigitalFilter", ptr %22, i32 0, i32 6
  %24 = load i8, ptr %23, align 4, !tbaa !11, !range !19, !noundef !20
  %25 = trunc i8 %24 to i1
  br i1 %25, label %26, label %32

26:                                               ; preds = %4
  %27 = load ptr, ptr %8, align 8, !tbaa !5
  %28 = icmp eq ptr null, %27
  br i1 %28, label %32, label %29

29:                                               ; preds = %26
  %30 = load ptr, ptr %9, align 8, !tbaa !5
  %31 = icmp eq ptr null, %30
  br i1 %31, label %32, label %33

32:                                               ; preds = %29, %26, %4
  store i1 false, ptr %5, align 1
  br label %158

33:                                               ; preds = %29
  %34 = load ptr, ptr %9, align 8, !tbaa !5
  %35 = getelementptr inbounds %"class.sptk::InfiniteImpulseResponseDigitalFilter::Buffer", ptr %34, i32 0, i32 1
  %36 = call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %35) #5
  %37 = getelementptr inbounds %"class.sptk::InfiniteImpulseResponseDigitalFilter", ptr %22, i32 0, i32 5
  %38 = load i32, ptr %37, align 8, !tbaa !21
  %39 = add nsw i32 %38, 1
  %40 = sext i32 %39 to i64
  %41 = icmp ne i64 %36, %40
  br i1 %41, label %42, label %63

42:                                               ; preds = %33
  %43 = load ptr, ptr %9, align 8, !tbaa !5
  %44 = getelementptr inbounds %"class.sptk::InfiniteImpulseResponseDigitalFilter::Buffer", ptr %43, i32 0, i32 1
  %45 = getelementptr inbounds %"class.sptk::InfiniteImpulseResponseDigitalFilter", ptr %22, i32 0, i32 5
  %46 = load i32, ptr %45, align 8, !tbaa !21
  %47 = add nsw i32 %46, 1
  %48 = sext i32 %47 to i64
  call void @_ZNSt6vectorIdSaIdEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %44, i64 noundef %48)
  %49 = load ptr, ptr %9, align 8, !tbaa !5
  %50 = getelementptr inbounds %"class.sptk::InfiniteImpulseResponseDigitalFilter::Buffer", ptr %49, i32 0, i32 1
  %51 = call ptr @_ZNSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %50) #5
  %52 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %10, i32 0, i32 0
  store ptr %51, ptr %52, align 8
  %53 = load ptr, ptr %9, align 8, !tbaa !5
  %54 = getelementptr inbounds %"class.sptk::InfiniteImpulseResponseDigitalFilter::Buffer", ptr %53, i32 0, i32 1
  %55 = call ptr @_ZNSt6vectorIdSaIdEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %54) #5
  %56 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %11, i32 0, i32 0
  store ptr %55, ptr %56, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  store double 0.000000e+00, ptr %12, align 8, !tbaa !9
  %57 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %10, i32 0, i32 0
  %58 = load ptr, ptr %57, align 8
  %59 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %11, i32 0, i32 0
  %60 = load ptr, ptr %59, align 8
  call void @_ZSt4fillIN9__gnu_cxx17__normal_iteratorIPdSt6vectorIdSaIdEEEEdEvT_S7_RKT0_(ptr %58, ptr %60, ptr noundef nonnull align 8 dereferenceable(8) %12)
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  %61 = load ptr, ptr %9, align 8, !tbaa !5
  %62 = getelementptr inbounds %"class.sptk::InfiniteImpulseResponseDigitalFilter::Buffer", ptr %61, i32 0, i32 2
  store i32 0, ptr %62, align 8, !tbaa !22
  br label %63

63:                                               ; preds = %42, %33
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  %64 = load ptr, ptr %9, align 8, !tbaa !5
  %65 = getelementptr inbounds %"class.sptk::InfiniteImpulseResponseDigitalFilter::Buffer", ptr %64, i32 0, i32 1
  %66 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %65, i64 noundef 0) #5
  store ptr %66, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  %67 = getelementptr inbounds %"class.sptk::InfiniteImpulseResponseDigitalFilter", ptr %22, i32 0, i32 1
  %68 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %67, i64 noundef 0) #5
  store ptr %68, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  %69 = load double, ptr %7, align 8, !tbaa !9
  %70 = fneg double %69
  %71 = load ptr, ptr %14, align 8, !tbaa !5
  %72 = getelementptr inbounds double, ptr %71, i64 0
  %73 = load double, ptr %72, align 8, !tbaa !9
  %74 = fmul double %70, %73
  store double %74, ptr %15, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  store i32 1, ptr %16, align 4, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  %75 = load ptr, ptr %9, align 8, !tbaa !5
  %76 = getelementptr inbounds %"class.sptk::InfiniteImpulseResponseDigitalFilter::Buffer", ptr %75, i32 0, i32 2
  %77 = load i32, ptr %76, align 8, !tbaa !22
  store i32 %77, ptr %17, align 4, !tbaa !24
  br label %78

78:                                               ; preds = %99, %63
  %79 = load i32, ptr %16, align 4, !tbaa !24
  %80 = getelementptr inbounds %"class.sptk::InfiniteImpulseResponseDigitalFilter", ptr %22, i32 0, i32 3
  %81 = load i32, ptr %80, align 8, !tbaa !25
  %82 = icmp sle i32 %79, %81
  br i1 %82, label %84, label %83

83:                                               ; preds = %78
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  br label %102

84:                                               ; preds = %78
  %85 = getelementptr inbounds %"class.sptk::InfiniteImpulseResponseDigitalFilter", ptr %22, i32 0, i32 5
  %86 = load i32, ptr %85, align 8, !tbaa !21
  call void @_ZN12_GLOBAL__N_111MovePointerEiPi(i32 noundef %86, ptr noundef %17)
  %87 = load ptr, ptr %13, align 8, !tbaa !5
  %88 = load i32, ptr %17, align 4, !tbaa !24
  %89 = sext i32 %88 to i64
  %90 = getelementptr inbounds double, ptr %87, i64 %89
  %91 = load double, ptr %90, align 8, !tbaa !9
  %92 = load ptr, ptr %14, align 8, !tbaa !5
  %93 = load i32, ptr %16, align 4, !tbaa !24
  %94 = sext i32 %93 to i64
  %95 = getelementptr inbounds double, ptr %92, i64 %94
  %96 = load double, ptr %95, align 8, !tbaa !9
  %97 = load double, ptr %15, align 8, !tbaa !9
  %98 = call double @llvm.fmuladd.f64(double %91, double %96, double %97)
  store double %98, ptr %15, align 8, !tbaa !9
  br label %99

99:                                               ; preds = %84
  %100 = load i32, ptr %16, align 4, !tbaa !24
  %101 = add nsw i32 %100, 1
  store i32 %101, ptr %16, align 4, !tbaa !24
  br label %78, !llvm.loop !26

102:                                              ; preds = %83
  %103 = load double, ptr %15, align 8, !tbaa !9
  %104 = fneg double %103
  %105 = load ptr, ptr %13, align 8, !tbaa !5
  %106 = load ptr, ptr %9, align 8, !tbaa !5
  %107 = getelementptr inbounds %"class.sptk::InfiniteImpulseResponseDigitalFilter::Buffer", ptr %106, i32 0, i32 2
  %108 = load i32, ptr %107, align 8, !tbaa !22
  %109 = sext i32 %108 to i64
  %110 = getelementptr inbounds double, ptr %105, i64 %109
  store double %104, ptr %110, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  %111 = getelementptr inbounds %"class.sptk::InfiniteImpulseResponseDigitalFilter", ptr %22, i32 0, i32 2
  %112 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %111, i64 noundef 0) #5
  store ptr %112, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  store double 0.000000e+00, ptr %19, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #5
  store i32 0, ptr %20, align 4, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #5
  %113 = load ptr, ptr %9, align 8, !tbaa !5
  %114 = getelementptr inbounds %"class.sptk::InfiniteImpulseResponseDigitalFilter::Buffer", ptr %113, i32 0, i32 2
  %115 = load i32, ptr %114, align 8, !tbaa !22
  %116 = add nsw i32 %115, 1
  store i32 %116, ptr %21, align 4, !tbaa !24
  br label %117

117:                                              ; preds = %138, %102
  %118 = load i32, ptr %20, align 4, !tbaa !24
  %119 = getelementptr inbounds %"class.sptk::InfiniteImpulseResponseDigitalFilter", ptr %22, i32 0, i32 4
  %120 = load i32, ptr %119, align 4, !tbaa !28
  %121 = icmp sle i32 %118, %120
  br i1 %121, label %123, label %122

122:                                              ; preds = %117
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
  br label %141

123:                                              ; preds = %117
  %124 = getelementptr inbounds %"class.sptk::InfiniteImpulseResponseDigitalFilter", ptr %22, i32 0, i32 5
  %125 = load i32, ptr %124, align 8, !tbaa !21
  call void @_ZN12_GLOBAL__N_111MovePointerEiPi(i32 noundef %125, ptr noundef %21)
  %126 = load ptr, ptr %13, align 8, !tbaa !5
  %127 = load i32, ptr %21, align 4, !tbaa !24
  %128 = sext i32 %127 to i64
  %129 = getelementptr inbounds double, ptr %126, i64 %128
  %130 = load double, ptr %129, align 8, !tbaa !9
  %131 = load ptr, ptr %18, align 8, !tbaa !5
  %132 = load i32, ptr %20, align 4, !tbaa !24
  %133 = sext i32 %132 to i64
  %134 = getelementptr inbounds double, ptr %131, i64 %133
  %135 = load double, ptr %134, align 8, !tbaa !9
  %136 = load double, ptr %19, align 8, !tbaa !9
  %137 = call double @llvm.fmuladd.f64(double %130, double %135, double %136)
  store double %137, ptr %19, align 8, !tbaa !9
  br label %138

138:                                              ; preds = %123
  %139 = load i32, ptr %20, align 4, !tbaa !24
  %140 = add nsw i32 %139, 1
  store i32 %140, ptr %20, align 4, !tbaa !24
  br label %117, !llvm.loop !29

141:                                              ; preds = %122
  %142 = load double, ptr %19, align 8, !tbaa !9
  %143 = load ptr, ptr %8, align 8, !tbaa !5
  store double %142, ptr %143, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  %144 = load ptr, ptr %9, align 8, !tbaa !5
  %145 = getelementptr inbounds %"class.sptk::InfiniteImpulseResponseDigitalFilter::Buffer", ptr %144, i32 0, i32 2
  %146 = load i32, ptr %145, align 8, !tbaa !22
  %147 = add nsw i32 %146, 1
  store i32 %147, ptr %145, align 8, !tbaa !22
  %148 = getelementptr inbounds %"class.sptk::InfiniteImpulseResponseDigitalFilter", ptr %22, i32 0, i32 5
  %149 = load i32, ptr %148, align 8, !tbaa !21
  %150 = load ptr, ptr %9, align 8, !tbaa !5
  %151 = getelementptr inbounds %"class.sptk::InfiniteImpulseResponseDigitalFilter::Buffer", ptr %150, i32 0, i32 2
  %152 = load i32, ptr %151, align 8, !tbaa !22
  %153 = icmp slt i32 %149, %152
  br i1 %153, label %154, label %157

154:                                              ; preds = %141
  %155 = load ptr, ptr %9, align 8, !tbaa !5
  %156 = getelementptr inbounds %"class.sptk::InfiniteImpulseResponseDigitalFilter::Buffer", ptr %155, i32 0, i32 2
  store i32 0, ptr %156, align 8, !tbaa !22
  br label %157

157:                                              ; preds = %154, %141
  store i1 true, ptr %5, align 1
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  br label %158

158:                                              ; preds = %157, %32
  %159 = load i1, ptr %5, align 1
  ret i1 %159
}

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZN12_GLOBAL__N_111MovePointerEiPi(i32 noundef, ptr noundef) #0

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

attributes #0 = { 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 #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 = { 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 #3 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !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 = !{!"double", !7, i64 0}
!11 = !{!12, !18, i64 68}
!12 = !{!"_ZTSN4sptk36InfiniteImpulseResponseDigitalFilterE", !13, i64 8, !13, i64 32, !17, i64 56, !17, i64 60, !17, i64 64, !18, i64 68}
!13 = !{!"_ZTSSt6vectorIdSaIdEE", !14, i64 0}
!14 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!17 = !{!"int", !7, i64 0}
!18 = !{!"bool", !7, i64 0}
!19 = !{i8 0, i8 2}
!20 = !{}
!21 = !{!12, !17, i64 64}
!22 = !{!23, !17, i64 32}
!23 = !{!"_ZTSN4sptk36InfiniteImpulseResponseDigitalFilter6BufferE", !13, i64 8, !17, i64 32}
!24 = !{!17, !17, i64 0}
!25 = !{!12, !17, i64 56}
!26 = distinct !{!26, !27}
!27 = !{!"llvm.loop.mustprogress"}
!28 = !{!12, !17, i64 60}
!29 = distinct !{!29, !27}


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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZNK4sptk36InfiniteImpulseResponseDigitalFilter3RunEdPdPNS0_6BufferE(ptr noundef nonnull align 8 dereferenceable(69) %0, double noundef %1, ptr noundef writeonly %2, ptr noundef %3) local_unnamed_addr #1 align 2 {
  %5 = alloca double, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = getelementptr inbounds i8, ptr %0, i64 68
  %9 = load i8, ptr %8, align 4, !tbaa !5, !range !16, !noundef !17
  %10 = trunc nuw i8 %9 to i1
  %11 = icmp ne ptr %2, null
  %or.cond.not = and i1 %11, %10
  %12 = icmp ne ptr %3, null
  %or.cond3.not = and i1 %12, %or.cond.not
  br i1 %or.cond3.not, label %13, label %67

13:                                               ; preds = %4
  %14 = getelementptr inbounds i8, ptr %3, i64 8
  %15 = tail call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %14) #5
  %16 = getelementptr inbounds i8, ptr %0, i64 64
  %17 = load i32, ptr %16, align 8, !tbaa !18
  %18 = add nsw i32 %17, 1
  %19 = sext i32 %18 to i64
  %.not44 = icmp eq i64 %15, %19
  br i1 %.not44, label %24, label %20

20:                                               ; preds = %13
  tail call void @_ZNSt6vectorIdSaIdEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %19)
  %21 = tail call ptr @_ZNSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %14) #5
  %22 = tail call ptr @_ZNSt6vectorIdSaIdEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %14) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #5
  store double 0.000000e+00, ptr %5, align 8, !tbaa !19
  call void @_ZSt4fillIN9__gnu_cxx17__normal_iteratorIPdSt6vectorIdSaIdEEEEdEvT_S7_RKT0_(ptr %21, ptr %22, ptr noundef nonnull align 8 dereferenceable(8) %5)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  %23 = getelementptr inbounds i8, ptr %3, i64 32
  store i32 0, ptr %23, align 8, !tbaa !21
  br label %24

24:                                               ; preds = %20, %13
  %25 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef 0) #5
  %26 = getelementptr inbounds i8, ptr %0, i64 8
  %27 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %26, i64 noundef 0) #5
  %28 = fneg double %1
  %29 = load double, ptr %27, align 8, !tbaa !19
  %30 = fmul double %29, %28
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #5
  %31 = getelementptr inbounds i8, ptr %3, i64 32
  %32 = load i32, ptr %31, align 8, !tbaa !21
  store i32 %32, ptr %6, align 4, !tbaa !23
  %33 = getelementptr inbounds i8, ptr %0, i64 56
  %34 = load i32, ptr %33, align 8, !tbaa !24
  %.not4550 = icmp slt i32 %34, 1
  br i1 %.not4550, label %._crit_edge, label %.lr.ph

._crit_edge.loopexit:                             ; preds = %.lr.ph
  %.pre = load i32, ptr %31, align 8, !tbaa !21
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %24
  %35 = phi i32 [ %32, %24 ], [ %.pre, %._crit_edge.loopexit ]
  %.040.lcssa = phi double [ %30, %24 ], [ %52, %._crit_edge.loopexit ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #5
  %36 = fneg double %.040.lcssa
  %37 = sext i32 %35 to i64
  %38 = getelementptr inbounds double, ptr %25, i64 %37
  store double %36, ptr %38, align 8, !tbaa !19
  %39 = getelementptr inbounds i8, ptr %0, i64 32
  %40 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %39, i64 noundef 0) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #5
  %41 = load i32, ptr %31, align 8, !tbaa !21
  %42 = add nsw i32 %41, 1
  store i32 %42, ptr %7, align 4, !tbaa !23
  %43 = getelementptr inbounds i8, ptr %0, i64 60
  %44 = load i32, ptr %43, align 4, !tbaa !25
  %.not4653 = icmp slt i32 %44, 0
  br i1 %.not4653, label %._crit_edge58, label %.lr.ph57

.lr.ph:                                           ; preds = %24, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 1, %24 ]
  %.04051 = phi double [ %52, %.lr.ph ], [ %30, %24 ]
  %45 = load i32, ptr %16, align 8, !tbaa !18
  call void @_ZN12_GLOBAL__N_111MovePointerEiPi(i32 noundef %45, ptr noundef nonnull %6)
  %46 = load i32, ptr %6, align 4, !tbaa !23
  %47 = sext i32 %46 to i64
  %48 = getelementptr inbounds double, ptr %25, i64 %47
  %49 = load double, ptr %48, align 8, !tbaa !19
  %50 = getelementptr inbounds double, ptr %27, i64 %indvars.iv
  %51 = load double, ptr %50, align 8, !tbaa !19
  %52 = call double @llvm.fmuladd.f64(double %49, double %51, double %.04051)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %53 = load i32, ptr %33, align 8, !tbaa !24
  %54 = sext i32 %53 to i64
  %.not45.not = icmp slt i64 %indvars.iv, %54
  br i1 %.not45.not, label %.lr.ph, label %._crit_edge.loopexit, !llvm.loop !26

._crit_edge58.loopexit:                           ; preds = %.lr.ph57
  %.pre65 = load i32, ptr %31, align 8, !tbaa !21
  %.pre66 = add nsw i32 %.pre65, 1
  br label %._crit_edge58

._crit_edge58:                                    ; preds = %._crit_edge58.loopexit, %._crit_edge
  %.pre-phi = phi i32 [ %.pre66, %._crit_edge58.loopexit ], [ %42, %._crit_edge ]
  %55 = phi i32 [ %.pre65, %._crit_edge58.loopexit ], [ %41, %._crit_edge ]
  %.037.lcssa = phi double [ %64, %._crit_edge58.loopexit ], [ 0.000000e+00, %._crit_edge ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #5
  store double %.037.lcssa, ptr %2, align 8, !tbaa !19
  %56 = load i32, ptr %16, align 8, !tbaa !18
  %.not47 = icmp sgt i32 %56, %55
  %spec.store.select = select i1 %.not47, i32 %.pre-phi, i32 0
  store i32 %spec.store.select, ptr %31, align 8
  br label %67

.lr.ph57:                                         ; preds = %._crit_edge, %.lr.ph57
  %indvars.iv62 = phi i64 [ %indvars.iv.next63, %.lr.ph57 ], [ 0, %._crit_edge ]
  %.03754 = phi double [ %64, %.lr.ph57 ], [ 0.000000e+00, %._crit_edge ]
  %57 = load i32, ptr %16, align 8, !tbaa !18
  call void @_ZN12_GLOBAL__N_111MovePointerEiPi(i32 noundef %57, ptr noundef nonnull %7)
  %58 = load i32, ptr %7, align 4, !tbaa !23
  %59 = sext i32 %58 to i64
  %60 = getelementptr inbounds double, ptr %25, i64 %59
  %61 = load double, ptr %60, align 8, !tbaa !19
  %62 = getelementptr inbounds double, ptr %40, i64 %indvars.iv62
  %63 = load double, ptr %62, align 8, !tbaa !19
  %64 = call double @llvm.fmuladd.f64(double %61, double %63, double %.03754)
  %indvars.iv.next63 = add nuw nsw i64 %indvars.iv62, 1
  %65 = load i32, ptr %43, align 4, !tbaa !25
  %66 = sext i32 %65 to i64
  %.not46.not = icmp slt i64 %indvars.iv62, %66
  br i1 %.not46.not, label %.lr.ph57, label %._crit_edge58.loopexit, !llvm.loop !28

67:                                               ; preds = %4, %._crit_edge58
  ret i1 %or.cond3.not
}

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZN12_GLOBAL__N_111MovePointerEiPi(i32 noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #4

attributes #0 = { 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 #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 = { 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 #3 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !15, i64 68}
!6 = !{!"_ZTSN4sptk36InfiniteImpulseResponseDigitalFilterE", !7, i64 8, !7, i64 32, !14, i64 56, !14, i64 60, !14, i64 64, !15, i64 68}
!7 = !{!"_ZTSSt6vectorIdSaIdEE", !8, i64 0}
!8 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !9, i64 0}
!9 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !10, i64 0}
!10 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !11, i64 0, !11, i64 8, !11, i64 16}
!11 = !{!"any pointer", !12, i64 0}
!12 = !{!"omnipotent char", !13, i64 0}
!13 = !{!"Simple C++ TBAA"}
!14 = !{!"int", !12, i64 0}
!15 = !{!"bool", !12, i64 0}
!16 = !{i8 0, i8 2}
!17 = !{}
!18 = !{!6, !14, i64 64}
!19 = !{!20, !20, i64 0}
!20 = !{!"double", !12, i64 0}
!21 = !{!22, !14, i64 32}
!22 = !{!"_ZTSN4sptk36InfiniteImpulseResponseDigitalFilter6BufferE", !7, i64 8, !14, i64 32}
!23 = !{!14, !14, i64 0}
!24 = !{!6, !14, i64 56}
!25 = !{!6, !14, i64 60}
!26 = distinct !{!26, !27}
!27 = !{!"llvm.loop.mustprogress"}
!28 = distinct !{!28, !27}


; Effective O3 passes: DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass