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

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

25:                                               ; preds = %5
  %26 = load ptr, ptr %8, align 8, !tbaa !5
  %27 = call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %26) #5
  %28 = getelementptr inbounds %"class.sptk::AllPoleLatticeDigitalFilter", ptr %21, i32 0, i32 1
  %29 = load i32, ptr %28, align 8, !tbaa !17
  %30 = add nsw i32 %29, 1
  %31 = sext i32 %30 to i64
  %32 = icmp ne i64 %27, %31
  br i1 %32, label %39, label %33

33:                                               ; preds = %25
  %34 = load ptr, ptr %10, align 8, !tbaa !5
  %35 = icmp eq ptr null, %34
  br i1 %35, label %39, label %36

36:                                               ; preds = %33
  %37 = load ptr, ptr %11, align 8, !tbaa !5
  %38 = icmp eq ptr null, %37
  br i1 %38, label %39, label %40

39:                                               ; preds = %36, %33, %25, %5
  store i1 false, ptr %6, align 1
  br label %150

40:                                               ; preds = %36
  %41 = load ptr, ptr %11, align 8, !tbaa !5
  %42 = getelementptr inbounds %"class.sptk::AllPoleLatticeDigitalFilter::Buffer", ptr %41, i32 0, i32 1
  %43 = call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %42) #5
  %44 = getelementptr inbounds %"class.sptk::AllPoleLatticeDigitalFilter", ptr %21, i32 0, i32 1
  %45 = load i32, ptr %44, align 8, !tbaa !17
  %46 = sext i32 %45 to i64
  %47 = icmp ne i64 %43, %46
  br i1 %47, label %48, label %66

48:                                               ; preds = %40
  %49 = load ptr, ptr %11, align 8, !tbaa !5
  %50 = getelementptr inbounds %"class.sptk::AllPoleLatticeDigitalFilter::Buffer", ptr %49, i32 0, i32 1
  %51 = getelementptr inbounds %"class.sptk::AllPoleLatticeDigitalFilter", ptr %21, i32 0, i32 1
  %52 = load i32, ptr %51, align 8, !tbaa !17
  %53 = sext i32 %52 to i64
  call void @_ZNSt6vectorIdSaIdEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %50, i64 noundef %53)
  %54 = load ptr, ptr %11, align 8, !tbaa !5
  %55 = getelementptr inbounds %"class.sptk::AllPoleLatticeDigitalFilter::Buffer", ptr %54, i32 0, i32 1
  %56 = call ptr @_ZNSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %55) #5
  %57 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %12, i32 0, i32 0
  store ptr %56, ptr %57, align 8
  %58 = load ptr, ptr %11, align 8, !tbaa !5
  %59 = getelementptr inbounds %"class.sptk::AllPoleLatticeDigitalFilter::Buffer", ptr %58, i32 0, i32 1
  %60 = call ptr @_ZNSt6vectorIdSaIdEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %59) #5
  %61 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %13, i32 0, i32 0
  store ptr %60, ptr %61, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  store double 0.000000e+00, ptr %14, align 8, !tbaa !9
  %62 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %12, i32 0, i32 0
  %63 = load ptr, ptr %62, align 8
  %64 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %13, i32 0, i32 0
  %65 = load ptr, ptr %64, align 8
  call void @_ZSt4fillIN9__gnu_cxx17__normal_iteratorIPdSt6vectorIdSaIdEEEEdEvT_S7_RKT0_(ptr %63, ptr %65, ptr noundef nonnull align 8 dereferenceable(8) %14)
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  br label %66

66:                                               ; preds = %48, %40
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  %67 = load double, ptr %9, align 8, !tbaa !9
  %68 = load ptr, ptr %8, align 8, !tbaa !5
  %69 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %68, i64 noundef 0) #5
  %70 = load double, ptr %69, align 8, !tbaa !9
  %71 = fmul double %67, %70
  store double %71, ptr %15, align 8, !tbaa !9
  %72 = getelementptr inbounds %"class.sptk::AllPoleLatticeDigitalFilter", ptr %21, i32 0, i32 1
  %73 = load i32, ptr %72, align 8, !tbaa !17
  %74 = icmp eq i32 0, %73
  br i1 %74, label %75, label %78

75:                                               ; preds = %66
  %76 = load double, ptr %15, align 8, !tbaa !9
  %77 = load ptr, ptr %10, align 8, !tbaa !5
  store double %76, ptr %77, align 8, !tbaa !9
  store i1 true, ptr %6, align 1
  store i32 1, ptr %16, align 4
  br label %149

78:                                               ; preds = %66
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  %79 = load ptr, ptr %8, align 8, !tbaa !5
  %80 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %79, i64 noundef 1) #5
  store ptr %80, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  %81 = load ptr, ptr %11, align 8, !tbaa !5
  %82 = getelementptr inbounds %"class.sptk::AllPoleLatticeDigitalFilter::Buffer", ptr %81, i32 0, i32 1
  %83 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %82, i64 noundef 0) #5
  store ptr %83, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  %84 = load double, ptr %15, align 8, !tbaa !9
  store double %84, ptr %19, align 8, !tbaa !9
  %85 = load ptr, ptr %17, align 8, !tbaa !5
  %86 = getelementptr inbounds %"class.sptk::AllPoleLatticeDigitalFilter", ptr %21, i32 0, i32 1
  %87 = load i32, ptr %86, align 8, !tbaa !17
  %88 = sub nsw i32 %87, 1
  %89 = sext i32 %88 to i64
  %90 = getelementptr inbounds double, ptr %85, i64 %89
  %91 = load double, ptr %90, align 8, !tbaa !9
  %92 = load ptr, ptr %18, align 8, !tbaa !5
  %93 = getelementptr inbounds %"class.sptk::AllPoleLatticeDigitalFilter", ptr %21, i32 0, i32 1
  %94 = load i32, ptr %93, align 8, !tbaa !17
  %95 = sub nsw i32 %94, 1
  %96 = sext i32 %95 to i64
  %97 = getelementptr inbounds double, ptr %92, i64 %96
  %98 = load double, ptr %97, align 8, !tbaa !9
  %99 = load double, ptr %19, align 8, !tbaa !9
  %100 = fneg double %91
  %101 = call double @llvm.fmuladd.f64(double %100, double %98, double %99)
  store double %101, ptr %19, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #5
  %102 = getelementptr inbounds %"class.sptk::AllPoleLatticeDigitalFilter", ptr %21, i32 0, i32 1
  %103 = load i32, ptr %102, align 8, !tbaa !17
  %104 = sub nsw i32 %103, 2
  store i32 %104, ptr %20, align 4, !tbaa !18
  br label %105

105:                                              ; preds = %140, %78
  %106 = load i32, ptr %20, align 4, !tbaa !18
  %107 = icmp sle i32 0, %106
  br i1 %107, label %109, label %108

108:                                              ; preds = %105
  store i32 2, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
  br label %143

109:                                              ; preds = %105
  %110 = load ptr, ptr %17, align 8, !tbaa !5
  %111 = load i32, ptr %20, align 4, !tbaa !18
  %112 = sext i32 %111 to i64
  %113 = getelementptr inbounds double, ptr %110, i64 %112
  %114 = load double, ptr %113, align 8, !tbaa !9
  %115 = load ptr, ptr %18, align 8, !tbaa !5
  %116 = load i32, ptr %20, align 4, !tbaa !18
  %117 = sext i32 %116 to i64
  %118 = getelementptr inbounds double, ptr %115, i64 %117
  %119 = load double, ptr %118, align 8, !tbaa !9
  %120 = load double, ptr %19, align 8, !tbaa !9
  %121 = fneg double %114
  %122 = call double @llvm.fmuladd.f64(double %121, double %119, double %120)
  store double %122, ptr %19, align 8, !tbaa !9
  %123 = load ptr, ptr %18, align 8, !tbaa !5
  %124 = load i32, ptr %20, align 4, !tbaa !18
  %125 = sext i32 %124 to i64
  %126 = getelementptr inbounds double, ptr %123, i64 %125
  %127 = load double, ptr %126, align 8, !tbaa !9
  %128 = load ptr, ptr %17, align 8, !tbaa !5
  %129 = load i32, ptr %20, align 4, !tbaa !18
  %130 = sext i32 %129 to i64
  %131 = getelementptr inbounds double, ptr %128, i64 %130
  %132 = load double, ptr %131, align 8, !tbaa !9
  %133 = load double, ptr %19, align 8, !tbaa !9
  %134 = call double @llvm.fmuladd.f64(double %132, double %133, double %127)
  %135 = load ptr, ptr %18, align 8, !tbaa !5
  %136 = load i32, ptr %20, align 4, !tbaa !18
  %137 = add nsw i32 %136, 1
  %138 = sext i32 %137 to i64
  %139 = getelementptr inbounds double, ptr %135, i64 %138
  store double %134, ptr %139, align 8, !tbaa !9
  br label %140

140:                                              ; preds = %109
  %141 = load i32, ptr %20, align 4, !tbaa !18
  %142 = add nsw i32 %141, -1
  store i32 %142, ptr %20, align 4, !tbaa !18
  br label %105, !llvm.loop !19

143:                                              ; preds = %108
  %144 = load double, ptr %19, align 8, !tbaa !9
  %145 = load ptr, ptr %18, align 8, !tbaa !5
  %146 = getelementptr inbounds double, ptr %145, i64 0
  store double %144, ptr %146, align 8, !tbaa !9
  %147 = load double, ptr %19, align 8, !tbaa !9
  %148 = load ptr, ptr %10, align 8, !tbaa !5
  store double %147, ptr %148, align 8, !tbaa !9
  store i1 true, ptr %6, align 1
  store i32 1, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  br label %149

149:                                              ; preds = %143, %75
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  br label %150

150:                                              ; preds = %149, %39
  %151 = load i1, ptr %6, align 1
  ret i1 %151
}

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIdSaIdEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #0 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)) #1 align 2

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

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

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

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 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 #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, !14, i64 12}
!12 = !{!"_ZTSN4sptk27AllPoleLatticeDigitalFilterE", !13, i64 8, !14, i64 12}
!13 = !{!"int", !7, i64 0}
!14 = !{!"bool", !7, i64 0}
!15 = !{i8 0, i8 2}
!16 = !{}
!17 = !{!12, !13, i64 8}
!18 = !{!13, !13, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}


; 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 uwtable
define dso_local noundef zeroext i1 @_ZNK4sptk27AllPoleLatticeDigitalFilter3RunERKSt6vectorIdSaIdEEdPdPNS0_6BufferE(ptr nocapture noundef nonnull readonly align 8 dereferenceable(13) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, double noundef %2, ptr noundef writeonly %3, ptr noundef %4) local_unnamed_addr #0 align 2 {
  %6 = alloca double, align 8
  %7 = getelementptr inbounds i8, ptr %0, i64 12
  %8 = load i8, ptr %7, align 4, !tbaa !5, !range !11, !noundef !12
  %9 = trunc nuw i8 %8 to i1
  br i1 %9, label %10, label %75

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

19:                                               ; preds = %10
  %20 = getelementptr inbounds i8, ptr %4, i64 8
  %21 = tail call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %20) #5
  %22 = load i32, ptr %12, align 8, !tbaa !13
  %23 = sext i32 %22 to i64
  %.not = icmp eq i64 %21, %23
  br i1 %.not, label %27, label %24

24:                                               ; preds = %19
  tail call void @_ZNSt6vectorIdSaIdEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %20, i64 noundef %23)
  %25 = tail call ptr @_ZNSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %20) #5
  %26 = tail call ptr @_ZNSt6vectorIdSaIdEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %20) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #5
  store double 0.000000e+00, ptr %6, align 8, !tbaa !14
  call void @_ZSt4fillIN9__gnu_cxx17__normal_iteratorIPdSt6vectorIdSaIdEEEEdEvT_S7_RKT0_(ptr %25, ptr %26, ptr noundef nonnull align 8 dereferenceable(8) %6)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  br label %27

27:                                               ; preds = %24, %19
  %28 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef 0) #5
  %29 = load double, ptr %28, align 8, !tbaa !14
  %30 = fmul double %29, %2
  %31 = load i32, ptr %12, align 8, !tbaa !13
  %32 = icmp eq i32 %31, 0
  br i1 %32, label %74, label %33

33:                                               ; preds = %27
  %34 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef 1) #5
  %35 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %20, i64 noundef 0) #5
  %36 = load i32, ptr %12, align 8, !tbaa !13
  %37 = add nsw i32 %36, -1
  %38 = sext i32 %37 to i64
  %39 = getelementptr inbounds double, ptr %34, i64 %38
  %40 = load double, ptr %39, align 8, !tbaa !14
  %41 = getelementptr inbounds double, ptr %35, i64 %38
  %42 = load double, ptr %41, align 8, !tbaa !14
  %43 = fneg double %40
  %44 = call double @llvm.fmuladd.f64(double %43, double %42, double %30)
  %45 = icmp sgt i32 %36, 1
  br i1 %45, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %33
  %46 = add nsw i32 %36, -2
  %47 = zext i32 %46 to i64
  %48 = and i64 %47, 1
  %lcmp.mod.not.not = icmp eq i64 %48, 0
  br i1 %lcmp.mod.not.not, label %.lr.ph.prol, label %.lr.ph.prol.loopexit

.lr.ph.prol:                                      ; preds = %.lr.ph.preheader
  %49 = getelementptr inbounds double, ptr %34, i64 %47
  %50 = load double, ptr %49, align 8, !tbaa !14
  %51 = getelementptr inbounds double, ptr %35, i64 %47
  %52 = load double, ptr %51, align 8, !tbaa !14
  %53 = fneg double %50
  %54 = call double @llvm.fmuladd.f64(double %53, double %52, double %44)
  %55 = call double @llvm.fmuladd.f64(double %50, double %54, double %52)
  %56 = getelementptr inbounds i8, ptr %51, i64 8
  store double %55, ptr %56, align 8, !tbaa !14
  %indvars.iv.next.prol = add nsw i64 %47, -1
  br label %.lr.ph.prol.loopexit

.lr.ph.prol.loopexit:                             ; preds = %.lr.ph.prol, %.lr.ph.preheader
  %.lcssa.unr = phi double [ poison, %.lr.ph.preheader ], [ %54, %.lr.ph.prol ]
  %indvars.iv.unr = phi i64 [ %47, %.lr.ph.preheader ], [ %indvars.iv.next.prol, %.lr.ph.prol ]
  %.04045.unr = phi double [ %44, %.lr.ph.preheader ], [ %54, %.lr.ph.prol ]
  %57 = icmp eq i32 %46, 0
  br i1 %57, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %.lr.ph.prol.loopexit, %.lr.ph, %33
  %.040.lcssa = phi double [ %44, %33 ], [ %.lcssa.unr, %.lr.ph.prol.loopexit ], [ %71, %.lr.ph ]
  store double %.040.lcssa, ptr %35, align 8, !tbaa !14
  br label %74

.lr.ph:                                           ; preds = %.lr.ph.prol.loopexit, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next.1, %.lr.ph ], [ %indvars.iv.unr, %.lr.ph.prol.loopexit ]
  %.04045 = phi double [ %71, %.lr.ph ], [ %.04045.unr, %.lr.ph.prol.loopexit ]
  %58 = getelementptr inbounds double, ptr %34, i64 %indvars.iv
  %59 = load double, ptr %58, align 8, !tbaa !14
  %60 = getelementptr inbounds double, ptr %35, i64 %indvars.iv
  %61 = load double, ptr %60, align 8, !tbaa !14
  %62 = fneg double %59
  %63 = call double @llvm.fmuladd.f64(double %62, double %61, double %.04045)
  %64 = call double @llvm.fmuladd.f64(double %59, double %63, double %61)
  %65 = getelementptr inbounds i8, ptr %60, i64 8
  store double %64, ptr %65, align 8, !tbaa !14
  %indvars.iv.next = add nsw i64 %indvars.iv, -1
  %66 = getelementptr inbounds double, ptr %34, i64 %indvars.iv.next
  %67 = load double, ptr %66, align 8, !tbaa !14
  %68 = getelementptr inbounds double, ptr %35, i64 %indvars.iv.next
  %69 = load double, ptr %68, align 8, !tbaa !14
  %70 = fneg double %67
  %71 = call double @llvm.fmuladd.f64(double %70, double %69, double %63)
  %72 = call double @llvm.fmuladd.f64(double %67, double %71, double %69)
  %73 = getelementptr inbounds i8, ptr %68, i64 8
  store double %72, ptr %73, align 8, !tbaa !14
  %indvars.iv.next.1 = add nsw i64 %indvars.iv, -2
  %.not48.1 = icmp eq i64 %indvars.iv.next, 0
  br i1 %.not48.1, label %._crit_edge, label %.lr.ph, !llvm.loop !16

74:                                               ; preds = %27, %._crit_edge
  %storemerge = phi double [ %.040.lcssa, %._crit_edge ], [ %30, %27 ]
  store double %storemerge, ptr %3, align 8, !tbaa !14
  br label %75

75:                                               ; preds = %5, %10, %74
  %.1 = phi i1 [ true, %74 ], [ false, %10 ], [ false, %5 ]
  ret i1 %.1
}

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

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

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

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

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

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 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 #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, !10, i64 12}
!6 = !{!"_ZTSN4sptk27AllPoleLatticeDigitalFilterE", !7, i64 8, !10, i64 12}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"bool", !8, i64 0}
!11 = !{i8 0, i8 2}
!12 = !{}
!13 = !{!6, !7, i64 8}
!14 = !{!15, !15, i64 0}
!15 = !{!"double", !8, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}


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