; LLVM IR from sp-nitech/SPTK :: src/filter (second_order_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.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.std::initializer_list" = type { ptr, i64 }
%"class.std::allocator" = type { i8 }
%"class.sptk::SecondOrderDigitalFilter" = type <{ ptr, %"class.sptk::InfiniteImpulseResponseDigitalFilter", i8, [7 x i8] }>
%"class.sptk::InfiniteImpulseResponseDigitalFilter" = type <{ ptr, %"class.std::vector", %"class.std::vector", i32, i32, i32, i8, [3 x i8] }>

@_ZTVN4sptk24SecondOrderDigitalFilterE = external dso_local unnamed_addr constant { [4 x ptr] }, align 8

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4sptk24SecondOrderDigitalFilterC2ENS0_10FilterTypeEddd(ptr noundef nonnull align 8 dereferenceable(81) %0, i32 noundef %1, double noundef %2, double noundef %3, double noundef %4) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca double, align 8
  %9 = alloca double, align 8
  %10 = alloca double, align 8
  %11 = alloca %"class.std::vector", align 8
  %12 = alloca %"class.std::initializer_list", align 8
  %13 = alloca [1 x double], align 8
  %14 = alloca %"class.std::allocator", align 1
  %15 = alloca i1, align 1
  %16 = alloca i1, align 1
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  %19 = alloca %"class.std::vector", align 8
  %20 = alloca %"class.std::initializer_list", align 8
  %21 = alloca [1 x double], align 8
  %22 = alloca %"class.std::allocator", align 1
  %23 = alloca i1, align 1
  %24 = alloca i1, align 1
  %25 = alloca double, align 8
  %26 = alloca i32, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store i32 %1, ptr %7, align 4, !tbaa !9
  store double %2, ptr %8, align 8, !tbaa !11
  store double %3, ptr %9, align 8, !tbaa !11
  store double %4, ptr %10, align 8, !tbaa !11
  %27 = load ptr, ptr %6, align 8
  store ptr getelementptr inbounds inrange(-16, 16) ({ [4 x ptr] }, ptr @_ZTVN4sptk24SecondOrderDigitalFilterE, i32 0, i32 0, i32 2), ptr %27, align 8, !tbaa !13
  %28 = getelementptr inbounds %"class.sptk::SecondOrderDigitalFilter", ptr %27, i32 0, i32 1
  call void @llvm.lifetime.start.p0(i64 24, ptr %11) #4
  %29 = load i32, ptr %7, align 4, !tbaa !9
  %30 = icmp eq i32 0, %29
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  store i1 false, ptr %15, align 1
  store i1 false, ptr %16, align 1
  br i1 %30, label %31, label %35

31:                                               ; preds = %5
  %32 = load double, ptr %8, align 8, !tbaa !11
  %33 = load double, ptr %9, align 8, !tbaa !11
  %34 = load double, ptr %10, align 8, !tbaa !11
  call void @_ZN12_GLOBAL__N_121GetFilterCoefficientsEddd(ptr dead_on_unwind writable sret(%"class.std::vector") align 8 %11, double noundef %32, double noundef %33, double noundef %34)
  br label %43

35:                                               ; preds = %5
  store double 1.000000e+00, ptr %13, align 8, !tbaa !11
  %36 = getelementptr inbounds %"class.std::initializer_list", ptr %12, i32 0, i32 0
  store ptr %13, ptr %36, align 8, !tbaa !15
  %37 = getelementptr inbounds %"class.std::initializer_list", ptr %12, i32 0, i32 1
  store i64 1, ptr %37, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 1, ptr %14) #4
  store i1 true, ptr %15, align 1
  call void @_ZNSaIdEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #4
  store i1 true, ptr %16, align 1
  %38 = getelementptr inbounds { ptr, i64 }, ptr %12, i32 0, i32 0
  %39 = load ptr, ptr %38, align 8
  %40 = getelementptr inbounds { ptr, i64 }, ptr %12, i32 0, i32 1
  %41 = load i64, ptr %40, align 8
  invoke void @_ZNSt6vectorIdSaIdEEC2ESt16initializer_listIdERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %11, ptr %39, i64 %41, ptr noundef nonnull align 1 dereferenceable(1) %14)
          to label %42 unwind label %87

42:                                               ; preds = %35
  br label %43

43:                                               ; preds = %42, %31
  call void @llvm.lifetime.start.p0(i64 24, ptr %19) #4
  %44 = load i32, ptr %7, align 4, !tbaa !9
  %45 = icmp eq i32 0, %44
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #4
  store i1 false, ptr %23, align 1
  store i1 false, ptr %24, align 1
  br i1 %45, label %46, label %54

46:                                               ; preds = %43
  store double 1.000000e+00, ptr %21, align 8, !tbaa !11
  %47 = getelementptr inbounds %"class.std::initializer_list", ptr %20, i32 0, i32 0
  store ptr %21, ptr %47, align 8, !tbaa !15
  %48 = getelementptr inbounds %"class.std::initializer_list", ptr %20, i32 0, i32 1
  store i64 1, ptr %48, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 1, ptr %22) #4
  store i1 true, ptr %23, align 1
  call void @_ZNSaIdEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %22) #4
  store i1 true, ptr %24, align 1
  %49 = getelementptr inbounds { ptr, i64 }, ptr %20, i32 0, i32 0
  %50 = load ptr, ptr %49, align 8
  %51 = getelementptr inbounds { ptr, i64 }, ptr %20, i32 0, i32 1
  %52 = load i64, ptr %51, align 8
  invoke void @_ZNSt6vectorIdSaIdEEC2ESt16initializer_listIdERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %19, ptr %50, i64 %52, ptr noundef nonnull align 1 dereferenceable(1) %22)
          to label %53 unwind label %91

53:                                               ; preds = %46
  br label %59

54:                                               ; preds = %43
  %55 = load double, ptr %8, align 8, !tbaa !11
  %56 = load double, ptr %9, align 8, !tbaa !11
  %57 = load double, ptr %10, align 8, !tbaa !11
  invoke void @_ZN12_GLOBAL__N_121GetFilterCoefficientsEddd(ptr dead_on_unwind writable sret(%"class.std::vector") align 8 %19, double noundef %55, double noundef %56, double noundef %57)
          to label %58 unwind label %91

58:                                               ; preds = %54
  br label %59

59:                                               ; preds = %58, %53
  invoke void @_ZN4sptk36InfiniteImpulseResponseDigitalFilterC1ERKSt6vectorIdSaIdEES5_(ptr noundef nonnull align 8 dereferenceable(69) %28, ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 8 dereferenceable(24) %19)
          to label %60 unwind label %95

60:                                               ; preds = %59
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #4
  %61 = load i1, ptr %24, align 1
  br i1 %61, label %62, label %63

62:                                               ; preds = %60
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %22) #4
  br label %63

63:                                               ; preds = %62, %60
  %64 = load i1, ptr %23, align 1
  br i1 %64, label %65, label %66

65:                                               ; preds = %63
  call void @llvm.lifetime.end.p0(i64 1, ptr %22) #4
  br label %66

66:                                               ; preds = %65, %63
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %19) #4
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #4
  %67 = load i1, ptr %16, align 1
  br i1 %67, label %68, label %69

68:                                               ; preds = %66
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #4
  br label %69

69:                                               ; preds = %68, %66
  %70 = load i1, ptr %15, align 1
  br i1 %70, label %71, label %72

71:                                               ; preds = %69
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #4
  br label %72

72:                                               ; preds = %71, %69
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #4
  %73 = getelementptr inbounds %"class.sptk::SecondOrderDigitalFilter", ptr %27, i32 0, i32 2
  store i8 1, ptr %73, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #4
  %74 = load double, ptr %10, align 8, !tbaa !11
  %75 = fmul double 5.000000e-01, %74
  store double %75, ptr %25, align 8, !tbaa !11
  %76 = load double, ptr %8, align 8, !tbaa !11
  %77 = fcmp ole double %76, 0.000000e+00
  br i1 %77, label %85, label %78

78:                                               ; preds = %72
  %79 = load double, ptr %25, align 8, !tbaa !11
  %80 = load double, ptr %8, align 8, !tbaa !11
  %81 = fcmp ole double %79, %80
  br i1 %81, label %85, label %82

82:                                               ; preds = %78
  %83 = load double, ptr %9, align 8, !tbaa !11
  %84 = fcmp ole double %83, 0.000000e+00
  br i1 %84, label %85, label %113

85:                                               ; preds = %82, %78, %72
  %86 = getelementptr inbounds %"class.sptk::SecondOrderDigitalFilter", ptr %27, i32 0, i32 2
  store i8 0, ptr %86, align 8, !tbaa !19
  store i32 1, ptr %26, align 4
  br label %114

87:                                               ; preds = %35
  %88 = landingpad { ptr, i32 }
          cleanup
  %89 = extractvalue { ptr, i32 } %88, 0
  store ptr %89, ptr %17, align 8
  %90 = extractvalue { ptr, i32 } %88, 1
  store i32 %90, ptr %18, align 4
  br label %106

91:                                               ; preds = %54, %46
  %92 = landingpad { ptr, i32 }
          cleanup
  %93 = extractvalue { ptr, i32 } %92, 0
  store ptr %93, ptr %17, align 8
  %94 = extractvalue { ptr, i32 } %92, 1
  store i32 %94, ptr %18, align 4
  br label %99

95:                                               ; preds = %59
  %96 = landingpad { ptr, i32 }
          cleanup
  %97 = extractvalue { ptr, i32 } %96, 0
  store ptr %97, ptr %17, align 8
  %98 = extractvalue { ptr, i32 } %96, 1
  store i32 %98, ptr %18, align 4
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #4
  br label %99

99:                                               ; preds = %95, %91
  %100 = load i1, ptr %24, align 1
  br i1 %100, label %101, label %102

101:                                              ; preds = %99
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %22) #4
  br label %102

102:                                              ; preds = %101, %99
  %103 = load i1, ptr %23, align 1
  br i1 %103, label %104, label %105

104:                                              ; preds = %102
  call void @llvm.lifetime.end.p0(i64 1, ptr %22) #4
  br label %105

105:                                              ; preds = %104, %102
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %19) #4
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #4
  br label %106

106:                                              ; preds = %105, %87
  %107 = load i1, ptr %16, align 1
  br i1 %107, label %108, label %109

108:                                              ; preds = %106
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #4
  br label %109

109:                                              ; preds = %108, %106
  %110 = load i1, ptr %15, align 1
  br i1 %110, label %111, label %112

111:                                              ; preds = %109
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #4
  br label %112

112:                                              ; preds = %111, %109
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #4
  br label %117

113:                                              ; preds = %82
  store i32 0, ptr %26, align 4
  br label %114

114:                                              ; preds = %113, %85
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #4
  %115 = load i32, ptr %26, align 4
  switch i32 %115, label %122 [
    i32 0, label %116
    i32 1, label %116
  ]

116:                                              ; preds = %114, %114
  ret void

117:                                              ; preds = %112
  %118 = load ptr, ptr %17, align 8
  %119 = load i32, ptr %18, align 4
  %120 = insertvalue { ptr, i32 } poison, ptr %118, 0
  %121 = insertvalue { ptr, i32 } %120, i32 %119, 1
  resume { ptr, i32 } %121

122:                                              ; preds = %114
  unreachable
}

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN12_GLOBAL__N_121GetFilterCoefficientsEddd(ptr dead_on_unwind noalias writable sret(%"class.std::vector") align 8, double noundef, double noundef, double noundef) #0

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

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

declare i32 @__gxx_personality_v0(...)

declare void @_ZN4sptk36InfiniteImpulseResponseDigitalFilterC1ERKSt6vectorIdSaIdEES5_(ptr noundef nonnull align 8 dereferenceable(69), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3

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

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

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

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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { "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 = { 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 = !{!"_ZTSN4sptk24SecondOrderDigitalFilter10FilterTypeE", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"vtable pointer", !8, i64 0}
!15 = !{!16, !6, i64 0}
!16 = !{!"_ZTSSt16initializer_listIdE", !6, i64 0, !17, i64 8}
!17 = !{!"long", !7, i64 0}
!18 = !{!16, !17, i64 8}
!19 = !{!20, !27, i64 80}
!20 = !{!"_ZTSN4sptk24SecondOrderDigitalFilterE", !21, i64 8, !27, i64 80}
!21 = !{!"_ZTSN4sptk36InfiniteImpulseResponseDigitalFilterE", !22, i64 8, !22, i64 32, !26, i64 56, !26, i64 60, !26, i64 64, !27, i64 68}
!22 = !{!"_ZTSSt6vectorIdSaIdEE", !23, i64 0}
!23 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !25, i64 0}
!25 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!26 = !{!"int", !7, i64 0}
!27 = !{!"bool", !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.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.std::allocator" = type { i8 }

@_ZTVN4sptk24SecondOrderDigitalFilterE = external dso_local unnamed_addr constant { [4 x ptr] }, align 8

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4sptk24SecondOrderDigitalFilterC2ENS0_10FilterTypeEddd(ptr noundef nonnull align 8 dereferenceable(81) %0, i32 noundef %1, double noundef %2, double noundef %3, double noundef %4) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca %"class.std::vector", align 8
  %7 = alloca [1 x double], align 8
  %8 = alloca %"class.std::allocator", align 1
  %9 = alloca %"class.std::vector", align 8
  %10 = alloca [1 x double], align 8
  %11 = alloca %"class.std::allocator", align 1
  store ptr getelementptr inbounds inrange(-16, 16) (i8, ptr @_ZTVN4sptk24SecondOrderDigitalFilterE, i64 16), ptr %0, align 8, !tbaa !5
  %12 = getelementptr inbounds i8, ptr %0, i64 8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #4
  %.not = icmp eq i32 %1, 0
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #4
  br i1 %.not, label %14, label %13

13:                                               ; preds = %5
  store double 1.000000e+00, ptr %7, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %8) #4
  call void @_ZNSaIdEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #4
  invoke void @_ZNSt6vectorIdSaIdEEC2ESt16initializer_listIdERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %6, ptr nonnull %7, i64 1, ptr noundef nonnull align 1 dereferenceable(1) %8)
          to label %15 unwind label %.thread49

14:                                               ; preds = %5
  call void @_ZN12_GLOBAL__N_121GetFilterCoefficientsEddd(ptr dead_on_unwind nonnull writable sret(%"class.std::vector") align 8 %6, double noundef %2, double noundef %3, double noundef %4)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %9) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #4
  store double 1.000000e+00, ptr %10, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %11) #4
  call void @_ZNSaIdEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #4
  invoke void @_ZNSt6vectorIdSaIdEEC2ESt16initializer_listIdERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %9, ptr nonnull %10, i64 1, ptr noundef nonnull align 1 dereferenceable(1) %11)
          to label %16 unwind label %26

15:                                               ; preds = %13
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %9) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #4
  invoke void @_ZN12_GLOBAL__N_121GetFilterCoefficientsEddd(ptr dead_on_unwind nonnull writable sret(%"class.std::vector") align 8 %9, double noundef %2, double noundef %3, double noundef %4)
          to label %16 unwind label %26

16:                                               ; preds = %15, %14
  invoke void @_ZN4sptk36InfiniteImpulseResponseDigitalFilterC1ERKSt6vectorIdSaIdEES5_(ptr noundef nonnull align 8 dereferenceable(69) %12, ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 8 dereferenceable(24) %9)
          to label %17 unwind label %28

17:                                               ; preds = %16
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #4
  br i1 %.not, label %.critedge, label %.critedge40

.critedge:                                        ; preds = %17
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #4
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #4
  br label %.critedge42

.critedge40:                                      ; preds = %17
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #4
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #4
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #4
  br label %.critedge42

.critedge42:                                      ; preds = %.critedge, %.critedge40
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #4
  %18 = getelementptr inbounds i8, ptr %0, i64 80
  store i8 1, ptr %18, align 8, !tbaa !11
  %19 = fcmp ugt double %2, 0.000000e+00
  br i1 %19, label %20, label %24

20:                                               ; preds = %.critedge42
  %21 = fmul double %4, 5.000000e-01
  %22 = fcmp ole double %21, %2
  %23 = fcmp ole double %3, 0.000000e+00
  %or.cond = or i1 %23, %22
  br i1 %or.cond, label %24, label %33

24:                                               ; preds = %20, %.critedge42
  store i8 0, ptr %18, align 8, !tbaa !11
  br label %33

.thread49:                                        ; preds = %13
  %25 = landingpad { ptr, i32 }
          cleanup
  br label %32

26:                                               ; preds = %15, %14
  %27 = landingpad { ptr, i32 }
          cleanup
  br label %30

28:                                               ; preds = %16
  %29 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #4
  br label %30

30:                                               ; preds = %28, %26
  %.pn = phi { ptr, i32 } [ %29, %28 ], [ %27, %26 ]
  br i1 %.not, label %31, label %.thread54

.thread54:                                        ; preds = %30
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #4
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #4
  br label %32

31:                                               ; preds = %30
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #4
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #4
  br label %.critedge46

32:                                               ; preds = %.thread54, %.thread49
  %.pn.pn53 = phi { ptr, i32 } [ %25, %.thread49 ], [ %.pn, %.thread54 ]
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #4
  br label %.critedge46

.critedge46:                                      ; preds = %31, %32
  %.pn.pn52 = phi { ptr, i32 } [ %.pn, %31 ], [ %.pn.pn53, %32 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #4
  resume { ptr, i32 } %.pn.pn52

33:                                               ; preds = %20, %24
  ret void
}

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN12_GLOBAL__N_121GetFilterCoefficientsEddd(ptr dead_on_unwind noalias writable sret(%"class.std::vector") align 8, double noundef, double noundef, double noundef) local_unnamed_addr #0

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

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

declare i32 @__gxx_personality_v0(...)

declare void @_ZN4sptk36InfiniteImpulseResponseDigitalFilterC1ERKSt6vectorIdSaIdEES5_(ptr noundef nonnull align 8 dereferenceable(69), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3

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

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

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

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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { "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 = { 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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"double", !10, i64 0}
!10 = !{!"omnipotent char", !7, i64 0}
!11 = !{!12, !20, i64 80}
!12 = !{!"_ZTSN4sptk24SecondOrderDigitalFilterE", !13, i64 8, !20, i64 80}
!13 = !{!"_ZTSN4sptk36InfiniteImpulseResponseDigitalFilterE", !14, i64 8, !14, i64 32, !19, i64 56, !19, i64 60, !19, i64 64, !20, i64 68}
!14 = !{!"_ZTSSt6vectorIdSaIdEE", !15, i64 0}
!15 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !18, i64 0, !18, i64 8, !18, i64 16}
!18 = !{!"any pointer", !10, i64 0}
!19 = !{!"int", !10, i64 0}
!20 = !{!"bool", !10, i64 0}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,ReassociatePass,SROAPass,SimplifyCFGPass