; LLVM IR from nativeformat/NFSmartPlayer :: source/plugins/util (ButterFilter)

; 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.nativeformat::plugin::util::ButterFilter" = type { i32, i32, i32, %"struct.nativeformat::plugin::util::ButterFilter::pzrep", %"struct.nativeformat::plugin::util::ButterFilter::pzrep", double, double, double, [21 x double], [21 x double], %"class.std::vector", %"class.std::vector" }
%"struct.nativeformat::plugin::util::ButterFilter::pzrep" = type { [20 x %"class.std::complex"], [20 x %"class.std::complex"], i32, i32 }
%"class.std::complex" = type { { double, double } }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::vector<float>, std::allocator<std::vector<float>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<float>, std::allocator<std::vector<float>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<float>, std::allocator<std::vector<float>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<float>, std::allocator<std::vector<float>>>::_Vector_impl_data" = type { ptr, ptr, ptr }

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZN12nativeformat6plugin4util12ButterFilter6filterEPfm(ptr noundef nonnull align 8 dereferenceable(1720) %0, ptr noundef %1, i64 noundef %2) #0 align 2 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i64, align 8
  %7 = alloca float, align 4
  %8 = alloca float, align 4
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca i32, align 4
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  %16 = alloca i64, align 8
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  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
  %19 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #3
  store float 0.000000e+00, ptr %7, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #3
  store float 0.000000e+00, ptr %8, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #3
  %20 = getelementptr inbounds %"class.nativeformat::plugin::util::ButterFilter", ptr %19, i32 0, i32 4
  %21 = getelementptr inbounds %"struct.nativeformat::plugin::util::ButterFilter::pzrep", ptr %20, i32 0, i32 2
  %22 = load i32, ptr %21, align 8, !tbaa !13
  %23 = sext i32 %22 to i64
  store i64 %23, ptr %9, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #3
  %24 = getelementptr inbounds %"class.nativeformat::plugin::util::ButterFilter", ptr %19, i32 0, i32 4
  %25 = getelementptr inbounds %"struct.nativeformat::plugin::util::ButterFilter::pzrep", ptr %24, i32 0, i32 3
  %26 = load i32, ptr %25, align 4, !tbaa !23
  %27 = sext i32 %26 to i64
  store i64 %27, ptr %10, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #3
  store i64 0, ptr %11, align 8, !tbaa !9
  br label %28

28:                                               ; preds = %205, %3
  %29 = load i64, ptr %11, align 8, !tbaa !9
  %30 = load i64, ptr %6, align 8, !tbaa !9
  %31 = icmp ult i64 %29, %30
  br i1 %31, label %33, label %32

32:                                               ; preds = %28
  store i32 2, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #3
  br label %208

33:                                               ; preds = %28
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #3
  store i64 0, ptr %13, align 8, !tbaa !9
  br label %34

34:                                               ; preds = %201, %33
  %35 = load i64, ptr %13, align 8, !tbaa !9
  %36 = getelementptr inbounds %"class.nativeformat::plugin::util::ButterFilter", ptr %19, i32 0, i32 2
  %37 = load i32, ptr %36, align 8, !tbaa !24
  %38 = zext i32 %37 to i64
  %39 = icmp ult i64 %35, %38
  br i1 %39, label %41, label %40

40:                                               ; preds = %34
  store i32 5, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #3
  br label %204

41:                                               ; preds = %34
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #3
  %42 = load i64, ptr %11, align 8, !tbaa !9
  %43 = getelementptr inbounds %"class.nativeformat::plugin::util::ButterFilter", ptr %19, i32 0, i32 2
  %44 = load i32, ptr %43, align 8, !tbaa !24
  %45 = zext i32 %44 to i64
  %46 = mul i64 %42, %45
  %47 = load i64, ptr %13, align 8, !tbaa !9
  %48 = add i64 %46, %47
  store i64 %48, ptr %14, align 8, !tbaa !9
  store float 0.000000e+00, ptr %8, align 4, !tbaa !11
  %49 = load ptr, ptr %5, align 8, !tbaa !5
  %50 = load i64, ptr %14, align 8, !tbaa !9
  %51 = getelementptr inbounds float, ptr %49, i64 %50
  %52 = load float, ptr %51, align 4, !tbaa !11
  %53 = fpext float %52 to double
  %54 = getelementptr inbounds %"class.nativeformat::plugin::util::ButterFilter", ptr %19, i32 0, i32 7
  %55 = load double, ptr %54, align 8, !tbaa !25
  %56 = fdiv double %53, %55
  %57 = fptrunc double %56 to float
  store float %57, ptr %7, align 4, !tbaa !11
  %58 = getelementptr inbounds %"class.nativeformat::plugin::util::ButterFilter", ptr %19, i32 0, i32 8
  %59 = load i64, ptr %10, align 8, !tbaa !9
  %60 = getelementptr inbounds [21 x double], ptr %58, i64 0, i64 %59
  %61 = load double, ptr %60, align 8, !tbaa !26
  %62 = load float, ptr %7, align 4, !tbaa !11
  %63 = fpext float %62 to double
  %64 = load float, ptr %8, align 4, !tbaa !11
  %65 = fpext float %64 to double
  %66 = call double @llvm.fmuladd.f64(double %61, double %63, double %65)
  %67 = fptrunc double %66 to float
  store float %67, ptr %8, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #3
  store i64 1, ptr %15, align 8, !tbaa !9
  br label %68

68:                                               ; preds = %92, %41
  %69 = load i64, ptr %15, align 8, !tbaa !9
  %70 = load i64, ptr %10, align 8, !tbaa !9
  %71 = icmp ule i64 %69, %70
  br i1 %71, label %73, label %72

72:                                               ; preds = %68
  store i32 8, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #3
  br label %95

73:                                               ; preds = %68
  %74 = getelementptr inbounds %"class.nativeformat::plugin::util::ButterFilter", ptr %19, i32 0, i32 8
  %75 = load i64, ptr %10, align 8, !tbaa !9
  %76 = load i64, ptr %15, align 8, !tbaa !9
  %77 = sub i64 %75, %76
  %78 = getelementptr inbounds [21 x double], ptr %74, i64 0, i64 %77
  %79 = load double, ptr %78, align 8, !tbaa !26
  %80 = getelementptr inbounds %"class.nativeformat::plugin::util::ButterFilter", ptr %19, i32 0, i32 10
  %81 = load i64, ptr %13, align 8, !tbaa !9
  %82 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IfSaIfEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %80, i64 noundef %81) #3
  %83 = load i64, ptr %15, align 8, !tbaa !9
  %84 = sub i64 %83, 1
  %85 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %82, i64 noundef %84) #3
  %86 = load float, ptr %85, align 4, !tbaa !11
  %87 = fpext float %86 to double
  %88 = load float, ptr %8, align 4, !tbaa !11
  %89 = fpext float %88 to double
  %90 = call double @llvm.fmuladd.f64(double %79, double %87, double %89)
  %91 = fptrunc double %90 to float
  store float %91, ptr %8, align 4, !tbaa !11
  br label %92

92:                                               ; preds = %73
  %93 = load i64, ptr %15, align 8, !tbaa !9
  %94 = add i64 %93, 1
  store i64 %94, ptr %15, align 8, !tbaa !9
  br label %68, !llvm.loop !27

95:                                               ; preds = %72
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #3
  store i64 1, ptr %16, align 8, !tbaa !9
  br label %96

96:                                               ; preds = %121, %95
  %97 = load i64, ptr %16, align 8, !tbaa !9
  %98 = load i64, ptr %9, align 8, !tbaa !9
  %99 = icmp ule i64 %97, %98
  br i1 %99, label %101, label %100

100:                                              ; preds = %96
  store i32 11, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #3
  br label %124

101:                                              ; preds = %96
  %102 = getelementptr inbounds %"class.nativeformat::plugin::util::ButterFilter", ptr %19, i32 0, i32 9
  %103 = load i64, ptr %9, align 8, !tbaa !9
  %104 = load i64, ptr %16, align 8, !tbaa !9
  %105 = sub i64 %103, %104
  %106 = getelementptr inbounds [21 x double], ptr %102, i64 0, i64 %105
  %107 = load double, ptr %106, align 8, !tbaa !26
  %108 = getelementptr inbounds %"class.nativeformat::plugin::util::ButterFilter", ptr %19, i32 0, i32 11
  %109 = load i64, ptr %13, align 8, !tbaa !9
  %110 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IfSaIfEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %108, i64 noundef %109) #3
  %111 = load i64, ptr %16, align 8, !tbaa !9
  %112 = sub i64 %111, 1
  %113 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %110, i64 noundef %112) #3
  %114 = load float, ptr %113, align 4, !tbaa !11
  %115 = fpext float %114 to double
  %116 = load float, ptr %8, align 4, !tbaa !11
  %117 = fpext float %116 to double
  %118 = fneg double %107
  %119 = call double @llvm.fmuladd.f64(double %118, double %115, double %117)
  %120 = fptrunc double %119 to float
  store float %120, ptr %8, align 4, !tbaa !11
  br label %121

121:                                              ; preds = %101
  %122 = load i64, ptr %16, align 8, !tbaa !9
  %123 = add i64 %122, 1
  store i64 %123, ptr %16, align 8, !tbaa !9
  br label %96, !llvm.loop !29

124:                                              ; preds = %100
  %125 = getelementptr inbounds %"class.nativeformat::plugin::util::ButterFilter", ptr %19, i32 0, i32 9
  %126 = load i64, ptr %9, align 8, !tbaa !9
  %127 = getelementptr inbounds [21 x double], ptr %125, i64 0, i64 %126
  %128 = load double, ptr %127, align 8, !tbaa !26
  %129 = load float, ptr %8, align 4, !tbaa !11
  %130 = fpext float %129 to double
  %131 = fdiv double %130, %128
  %132 = fptrunc double %131 to float
  store float %132, ptr %8, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #3
  %133 = getelementptr inbounds %"class.nativeformat::plugin::util::ButterFilter", ptr %19, i32 0, i32 4
  %134 = getelementptr inbounds %"struct.nativeformat::plugin::util::ButterFilter::pzrep", ptr %133, i32 0, i32 3
  %135 = load i32, ptr %134, align 4, !tbaa !23
  %136 = sub nsw i32 %135, 1
  store i32 %136, ptr %17, align 4, !tbaa !30
  br label %137

137:                                              ; preds = %156, %124
  %138 = load i32, ptr %17, align 4, !tbaa !30
  %139 = icmp sgt i32 %138, 0
  br i1 %139, label %141, label %140

140:                                              ; preds = %137
  store i32 14, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #3
  br label %159

141:                                              ; preds = %137
  %142 = getelementptr inbounds %"class.nativeformat::plugin::util::ButterFilter", ptr %19, i32 0, i32 10
  %143 = load i64, ptr %13, align 8, !tbaa !9
  %144 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IfSaIfEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %142, i64 noundef %143) #3
  %145 = load i32, ptr %17, align 4, !tbaa !30
  %146 = sub nsw i32 %145, 1
  %147 = sext i32 %146 to i64
  %148 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %144, i64 noundef %147) #3
  %149 = load float, ptr %148, align 4, !tbaa !11
  %150 = getelementptr inbounds %"class.nativeformat::plugin::util::ButterFilter", ptr %19, i32 0, i32 10
  %151 = load i64, ptr %13, align 8, !tbaa !9
  %152 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IfSaIfEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %150, i64 noundef %151) #3
  %153 = load i32, ptr %17, align 4, !tbaa !30
  %154 = sext i32 %153 to i64
  %155 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %152, i64 noundef %154) #3
  store float %149, ptr %155, align 4, !tbaa !11
  br label %156

156:                                              ; preds = %141
  %157 = load i32, ptr %17, align 4, !tbaa !30
  %158 = add nsw i32 %157, -1
  store i32 %158, ptr %17, align 4, !tbaa !30
  br label %137, !llvm.loop !31

159:                                              ; preds = %140
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #3
  %160 = getelementptr inbounds %"class.nativeformat::plugin::util::ButterFilter", ptr %19, i32 0, i32 4
  %161 = getelementptr inbounds %"struct.nativeformat::plugin::util::ButterFilter::pzrep", ptr %160, i32 0, i32 2
  %162 = load i32, ptr %161, align 8, !tbaa !13
  %163 = sub nsw i32 %162, 1
  store i32 %163, ptr %18, align 4, !tbaa !30
  br label %164

164:                                              ; preds = %183, %159
  %165 = load i32, ptr %18, align 4, !tbaa !30
  %166 = icmp sgt i32 %165, 0
  br i1 %166, label %168, label %167

167:                                              ; preds = %164
  store i32 17, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #3
  br label %186

168:                                              ; preds = %164
  %169 = getelementptr inbounds %"class.nativeformat::plugin::util::ButterFilter", ptr %19, i32 0, i32 11
  %170 = load i64, ptr %13, align 8, !tbaa !9
  %171 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IfSaIfEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %169, i64 noundef %170) #3
  %172 = load i32, ptr %18, align 4, !tbaa !30
  %173 = sub nsw i32 %172, 1
  %174 = sext i32 %173 to i64
  %175 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %171, i64 noundef %174) #3
  %176 = load float, ptr %175, align 4, !tbaa !11
  %177 = getelementptr inbounds %"class.nativeformat::plugin::util::ButterFilter", ptr %19, i32 0, i32 11
  %178 = load i64, ptr %13, align 8, !tbaa !9
  %179 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IfSaIfEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %177, i64 noundef %178) #3
  %180 = load i32, ptr %18, align 4, !tbaa !30
  %181 = sext i32 %180 to i64
  %182 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %179, i64 noundef %181) #3
  store float %176, ptr %182, align 4, !tbaa !11
  br label %183

183:                                              ; preds = %168
  %184 = load i32, ptr %18, align 4, !tbaa !30
  %185 = add nsw i32 %184, -1
  store i32 %185, ptr %18, align 4, !tbaa !30
  br label %164, !llvm.loop !32

186:                                              ; preds = %167
  %187 = load float, ptr %7, align 4, !tbaa !11
  %188 = getelementptr inbounds %"class.nativeformat::plugin::util::ButterFilter", ptr %19, i32 0, i32 10
  %189 = load i64, ptr %13, align 8, !tbaa !9
  %190 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IfSaIfEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %188, i64 noundef %189) #3
  %191 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %190, i64 noundef 0) #3
  store float %187, ptr %191, align 4, !tbaa !11
  %192 = load float, ptr %8, align 4, !tbaa !11
  %193 = getelementptr inbounds %"class.nativeformat::plugin::util::ButterFilter", ptr %19, i32 0, i32 11
  %194 = load i64, ptr %13, align 8, !tbaa !9
  %195 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IfSaIfEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %193, i64 noundef %194) #3
  %196 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %195, i64 noundef 0) #3
  store float %192, ptr %196, align 4, !tbaa !11
  %197 = load float, ptr %8, align 4, !tbaa !11
  %198 = load ptr, ptr %5, align 8, !tbaa !5
  %199 = load i64, ptr %14, align 8, !tbaa !9
  %200 = getelementptr inbounds float, ptr %198, i64 %199
  store float %197, ptr %200, align 4, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #3
  br label %201

201:                                              ; preds = %186
  %202 = load i64, ptr %13, align 8, !tbaa !9
  %203 = add i64 %202, 1
  store i64 %203, ptr %13, align 8, !tbaa !9
  br label %34, !llvm.loop !33

204:                                              ; preds = %40
  br label %205

205:                                              ; preds = %204
  %206 = load i64, ptr %11, align 8, !tbaa !9
  %207 = add i64 %206, 1
  store i64 %207, ptr %11, align 8, !tbaa !9
  br label %28, !llvm.loop !34

208:                                              ; preds = %32
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #3
  ret void
}

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #0 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 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = !{!14, !16, i64 1304}
!14 = !{!"_ZTSN12nativeformat6plugin4util12ButterFilterE", !15, i64 0, !16, i64 4, !16, i64 8, !17, i64 16, !17, i64 664, !18, i64 1312, !18, i64 1320, !18, i64 1328, !7, i64 1336, !7, i64 1504, !19, i64 1672, !19, i64 1696}
!15 = !{!"_ZTSN12nativeformat6plugin4util10FilterTypeE", !7, i64 0}
!16 = !{!"int", !7, i64 0}
!17 = !{!"_ZTSN12nativeformat6plugin4util12ButterFilter5pzrepE", !7, i64 0, !7, i64 320, !16, i64 640, !16, i64 644}
!18 = !{!"double", !7, i64 0}
!19 = !{!"_ZTSSt6vectorIS_IfSaIfEESaIS1_EE", !20, i64 0}
!20 = !{!"_ZTSSt12_Vector_baseISt6vectorIfSaIfEESaIS2_EE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseISt6vectorIfSaIfEESaIS2_EE12_Vector_implE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseISt6vectorIfSaIfEESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!23 = !{!14, !16, i64 1308}
!24 = !{!14, !16, i64 8}
!25 = !{!14, !18, i64 1328}
!26 = !{!18, !18, i64 0}
!27 = distinct !{!27, !28}
!28 = !{!"llvm.loop.mustprogress"}
!29 = distinct !{!29, !28}
!30 = !{!16, !16, i64 0}
!31 = distinct !{!31, !28}
!32 = distinct !{!32, !28}
!33 = distinct !{!33, !28}
!34 = distinct !{!34, !28}


; 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
define dso_local void @_ZN12nativeformat6plugin4util12ButterFilter6filterEPfm(ptr noundef nonnull align 8 dereferenceable(1720) %0, ptr nocapture noundef %1, i64 noundef %2) local_unnamed_addr #0 align 2 {
  %4 = getelementptr inbounds i8, ptr %0, i64 1304
  %5 = load i32, ptr %4, align 8, !tbaa !5
  %6 = sext i32 %5 to i64
  %7 = getelementptr inbounds i8, ptr %0, i64 1308
  %8 = load i32, ptr %7, align 4, !tbaa !18
  %9 = sext i32 %8 to i64
  %.not83 = icmp eq i64 %2, 0
  br i1 %.not83, label %._crit_edge82, label %.preheader60.lr.ph

.preheader60.lr.ph:                               ; preds = %3
  %10 = getelementptr inbounds i8, ptr %0, i64 8
  %11 = getelementptr inbounds i8, ptr %0, i64 1328
  %12 = getelementptr inbounds i8, ptr %0, i64 1336
  %13 = getelementptr inbounds [21 x double], ptr %12, i64 0, i64 %9
  %.not62 = icmp eq i32 %8, 0
  %14 = getelementptr inbounds i8, ptr %0, i64 1672
  %.not5965 = icmp eq i32 %5, 0
  %15 = getelementptr inbounds i8, ptr %0, i64 1504
  %16 = getelementptr inbounds i8, ptr %0, i64 1696
  %17 = getelementptr inbounds [21 x double], ptr %15, i64 0, i64 %6
  %.pre = load i32, ptr %10, align 8, !tbaa !19
  br label %.preheader60

.preheader60:                                     ; preds = %.preheader60.lr.ph, %._crit_edge80
  %18 = phi i32 [ %.pre, %.preheader60.lr.ph ], [ %20, %._crit_edge80 ]
  %.05381 = phi i64 [ 0, %.preheader60.lr.ph ], [ %21, %._crit_edge80 ]
  %.not84 = icmp eq i32 %18, 0
  br i1 %.not84, label %._crit_edge80, label %.lr.ph79.preheader

.lr.ph79.preheader:                               ; preds = %.preheader60
  %19 = zext i32 %18 to i64
  br label %.lr.ph79

._crit_edge82:                                    ; preds = %._crit_edge80, %3
  ret void

._crit_edge80:                                    ; preds = %._crit_edge77, %.preheader60
  %20 = phi i32 [ 0, %.preheader60 ], [ %80, %._crit_edge77 ]
  %21 = add nuw i64 %.05381, 1
  %exitcond.not = icmp eq i64 %21, %2
  br i1 %exitcond.not, label %._crit_edge82, label %.preheader60, !llvm.loop !20

.lr.ph79:                                         ; preds = %.lr.ph79.preheader, %._crit_edge77
  %22 = phi i64 [ %81, %._crit_edge77 ], [ %19, %.lr.ph79.preheader ]
  %.05278 = phi i64 [ %79, %._crit_edge77 ], [ 0, %.lr.ph79.preheader ]
  %23 = mul i64 %22, %.05381
  %24 = getelementptr float, ptr %1, i64 %23
  %25 = getelementptr float, ptr %24, i64 %.05278
  %26 = load float, ptr %25, align 4, !tbaa !22
  %27 = fpext float %26 to double
  %28 = load double, ptr %11, align 8, !tbaa !24
  %29 = fdiv double %27, %28
  %30 = fptrunc double %29 to float
  %31 = load double, ptr %13, align 8, !tbaa !25
  %32 = fpext float %30 to double
  %33 = tail call double @llvm.fmuladd.f64(double %31, double %32, double 0.000000e+00)
  %.05461 = fptrunc double %33 to float
  br i1 %.not62, label %.preheader, label %.lr.ph

.preheader:                                       ; preds = %.lr.ph, %.lr.ph79
  %.054.lcssa = phi float [ %.05461, %.lr.ph79 ], [ %.054, %.lr.ph ]
  br i1 %.not5965, label %._crit_edge, label %.lr.ph68

.lr.ph:                                           ; preds = %.lr.ph79, %.lr.ph
  %.05464 = phi float [ %.054, %.lr.ph ], [ %.05461, %.lr.ph79 ]
  %.05163 = phi i64 [ %44, %.lr.ph ], [ 1, %.lr.ph79 ]
  %34 = sub i64 %9, %.05163
  %35 = getelementptr inbounds [21 x double], ptr %12, i64 0, i64 %34
  %36 = load double, ptr %35, align 8, !tbaa !25
  %37 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IfSaIfEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %.05278) #2
  %38 = add i64 %.05163, -1
  %39 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %37, i64 noundef %38) #2
  %40 = load float, ptr %39, align 4, !tbaa !22
  %41 = fpext float %40 to double
  %42 = fpext float %.05464 to double
  %43 = tail call double @llvm.fmuladd.f64(double %36, double %41, double %42)
  %44 = add i64 %.05163, 1
  %.054 = fptrunc double %43 to float
  %.not = icmp ugt i64 %44, %9
  br i1 %.not, label %.preheader, label %.lr.ph, !llvm.loop !26

._crit_edge:                                      ; preds = %.lr.ph68, %.preheader
  %.1.lcssa = phi float [ %.054.lcssa, %.preheader ], [ %63, %.lr.ph68 ]
  %45 = load double, ptr %17, align 8, !tbaa !25
  %46 = fpext float %.1.lcssa to double
  %47 = fdiv double %46, %45
  %48 = fptrunc double %47 to float
  %49 = load i32, ptr %7, align 4, !tbaa !18
  %50 = icmp sgt i32 %49, 1
  br i1 %50, label %.lr.ph72.preheader, label %._crit_edge73

.lr.ph72.preheader:                               ; preds = %._crit_edge
  %51 = zext nneg i32 %49 to i64
  br label %.lr.ph72

.lr.ph68:                                         ; preds = %.preheader, %.lr.ph68
  %.05067 = phi i64 [ %64, %.lr.ph68 ], [ 1, %.preheader ]
  %.166 = phi float [ %63, %.lr.ph68 ], [ %.054.lcssa, %.preheader ]
  %52 = sub i64 %6, %.05067
  %53 = getelementptr inbounds [21 x double], ptr %15, i64 0, i64 %52
  %54 = load double, ptr %53, align 8, !tbaa !25
  %55 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IfSaIfEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %16, i64 noundef %.05278) #2
  %56 = add i64 %.05067, -1
  %57 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %55, i64 noundef %56) #2
  %58 = load float, ptr %57, align 4, !tbaa !22
  %59 = fpext float %58 to double
  %60 = fpext float %.166 to double
  %61 = fneg double %54
  %62 = tail call double @llvm.fmuladd.f64(double %61, double %59, double %60)
  %63 = fptrunc double %62 to float
  %64 = add i64 %.05067, 1
  %.not59 = icmp ugt i64 %64, %6
  br i1 %.not59, label %._crit_edge, label %.lr.ph68, !llvm.loop !27

._crit_edge73:                                    ; preds = %.lr.ph72, %._crit_edge
  %65 = load i32, ptr %4, align 8, !tbaa !5
  %66 = icmp sgt i32 %65, 1
  br i1 %66, label %.lr.ph76.preheader, label %._crit_edge77

.lr.ph76.preheader:                               ; preds = %._crit_edge73
  %67 = zext nneg i32 %65 to i64
  br label %.lr.ph76

.lr.ph72:                                         ; preds = %.lr.ph72.preheader, %.lr.ph72
  %indvars.iv = phi i64 [ %51, %.lr.ph72.preheader ], [ %indvars.iv.next, %.lr.ph72 ]
  %indvars.iv.next = add nsw i64 %indvars.iv, -1
  %68 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IfSaIfEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %.05278) #2
  %69 = add nsw i64 %indvars.iv, -2
  %70 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %68, i64 noundef %69) #2
  %71 = load float, ptr %70, align 4, !tbaa !22
  %72 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IfSaIfEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %.05278) #2
  %73 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %72, i64 noundef %indvars.iv.next) #2
  store float %71, ptr %73, align 4, !tbaa !22
  %74 = icmp ugt i64 %indvars.iv, 2
  br i1 %74, label %.lr.ph72, label %._crit_edge73, !llvm.loop !28

._crit_edge77:                                    ; preds = %.lr.ph76, %._crit_edge73
  %75 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IfSaIfEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %.05278) #2
  %76 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %75, i64 noundef 0) #2
  store float %30, ptr %76, align 4, !tbaa !22
  %77 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IfSaIfEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %16, i64 noundef %.05278) #2
  %78 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %77, i64 noundef 0) #2
  store float %48, ptr %78, align 4, !tbaa !22
  store float %48, ptr %25, align 4, !tbaa !22
  %79 = add nuw nsw i64 %.05278, 1
  %80 = load i32, ptr %10, align 8, !tbaa !19
  %81 = zext i32 %80 to i64
  %82 = icmp ult i64 %79, %81
  br i1 %82, label %.lr.ph79, label %._crit_edge80, !llvm.loop !29

.lr.ph76:                                         ; preds = %.lr.ph76.preheader, %.lr.ph76
  %indvars.iv87 = phi i64 [ %67, %.lr.ph76.preheader ], [ %indvars.iv.next88, %.lr.ph76 ]
  %indvars.iv.next88 = add nsw i64 %indvars.iv87, -1
  %83 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IfSaIfEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %16, i64 noundef %.05278) #2
  %84 = add nsw i64 %indvars.iv87, -2
  %85 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %83, i64 noundef %84) #2
  %86 = load float, ptr %85, align 4, !tbaa !22
  %87 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IfSaIfEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %16, i64 noundef %.05278) #2
  %88 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %87, i64 noundef %indvars.iv.next88) #2
  store float %86, ptr %88, align 4, !tbaa !22
  %89 = icmp ugt i64 %indvars.iv87, 2
  br i1 %89, label %.lr.ph76, label %._crit_edge77, !llvm.loop !30
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IfSaIfEESaIS1_EEixEm(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 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #0 align 2

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 nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { 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, !10, i64 1304}
!6 = !{!"_ZTSN12nativeformat6plugin4util12ButterFilterE", !7, i64 0, !10, i64 4, !10, i64 8, !11, i64 16, !11, i64 664, !12, i64 1312, !12, i64 1320, !12, i64 1328, !8, i64 1336, !8, i64 1504, !13, i64 1672, !13, i64 1696}
!7 = !{!"_ZTSN12nativeformat6plugin4util10FilterTypeE", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"_ZTSN12nativeformat6plugin4util12ButterFilter5pzrepE", !8, i64 0, !8, i64 320, !10, i64 640, !10, i64 644}
!12 = !{!"double", !8, i64 0}
!13 = !{!"_ZTSSt6vectorIS_IfSaIfEESaIS1_EE", !14, i64 0}
!14 = !{!"_ZTSSt12_Vector_baseISt6vectorIfSaIfEESaIS2_EE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseISt6vectorIfSaIfEESaIS2_EE12_Vector_implE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseISt6vectorIfSaIfEESaIS2_EE17_Vector_impl_dataE", !17, i64 0, !17, i64 8, !17, i64 16}
!17 = !{!"any pointer", !8, i64 0}
!18 = !{!6, !10, i64 1308}
!19 = !{!6, !10, i64 8}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = !{!23, !23, i64 0}
!23 = !{!"float", !8, i64 0}
!24 = !{!6, !12, i64 1328}
!25 = !{!12, !12, i64 0}
!26 = distinct !{!26, !21}
!27 = distinct !{!27, !21}
!28 = distinct !{!28, !21}
!29 = distinct !{!29, !21}
!30 = distinct !{!30, !21}


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