; LLVM IR from sp-nitech/SPTK :: src/filter (all_zero_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::AllZeroDigitalFilter" = type <{ ptr, i32, i8, i8, [2 x i8] }>
%"class.sptk::AllZeroDigitalFilter::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 @_ZNK4sptk20AllZeroDigitalFilter3RunERKSt6vectorIdSaIdEEdPdPNS0_6BufferE(ptr noundef nonnull align 8 dereferenceable(14) %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
  %21 = 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
  %22 = load ptr, ptr %7, align 8
  %23 = getelementptr inbounds %"class.sptk::AllZeroDigitalFilter", ptr %22, i32 0, i32 3
  %24 = load i8, ptr %23, align 1, !tbaa !11, !range !15, !noundef !16
  %25 = trunc i8 %24 to i1
  br i1 %25, label %26, label %40

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

34:                                               ; preds = %26
  %35 = load ptr, ptr %10, align 8, !tbaa !5
  %36 = icmp eq ptr null, %35
  br i1 %36, label %40, label %37

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

40:                                               ; preds = %37, %34, %26, %5
  store i1 false, ptr %6, align 1
  br label %189

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

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

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

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

79:                                               ; preds = %67
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  %80 = load ptr, ptr %8, align 8, !tbaa !5
  %81 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %80, i64 noundef 1) #5
  store ptr %81, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  %82 = load ptr, ptr %11, align 8, !tbaa !5
  %83 = getelementptr inbounds %"class.sptk::AllZeroDigitalFilter::Buffer", ptr %82, i32 0, i32 1
  %84 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %83, i64 noundef 0) #5
  store ptr %84, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  %85 = load double, ptr %15, align 8, !tbaa !9
  store double %85, ptr %19, align 8, !tbaa !9
  %86 = getelementptr inbounds %"class.sptk::AllZeroDigitalFilter", ptr %22, i32 0, i32 2
  %87 = load i8, ptr %86, align 4, !tbaa !18, !range !15, !noundef !16
  %88 = trunc i8 %87 to i1
  br i1 %88, label %89, label %139

89:                                               ; preds = %79
  %90 = load ptr, ptr %18, align 8, !tbaa !5
  %91 = getelementptr inbounds double, ptr %90, i64 0
  %92 = load double, ptr %91, align 8, !tbaa !9
  %93 = load double, ptr %19, align 8, !tbaa !9
  %94 = fadd double %93, %92
  store double %94, ptr %19, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #5
  store i32 1, ptr %20, align 4, !tbaa !19
  br label %95

95:                                               ; preds = %120, %89
  %96 = load i32, ptr %20, align 4, !tbaa !19
  %97 = getelementptr inbounds %"class.sptk::AllZeroDigitalFilter", ptr %22, i32 0, i32 1
  %98 = load i32, ptr %97, align 8, !tbaa !17
  %99 = icmp slt i32 %96, %98
  br i1 %99, label %101, label %100

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

101:                                              ; preds = %95
  %102 = load ptr, ptr %18, align 8, !tbaa !5
  %103 = load i32, ptr %20, align 4, !tbaa !19
  %104 = sext i32 %103 to i64
  %105 = getelementptr inbounds double, ptr %102, i64 %104
  %106 = load double, ptr %105, align 8, !tbaa !9
  %107 = load ptr, ptr %17, align 8, !tbaa !5
  %108 = load i32, ptr %20, align 4, !tbaa !19
  %109 = sub nsw i32 %108, 1
  %110 = sext i32 %109 to i64
  %111 = getelementptr inbounds double, ptr %107, i64 %110
  %112 = load double, ptr %111, align 8, !tbaa !9
  %113 = load double, ptr %9, align 8, !tbaa !9
  %114 = call double @llvm.fmuladd.f64(double %112, double %113, double %106)
  %115 = load ptr, ptr %18, align 8, !tbaa !5
  %116 = load i32, ptr %20, align 4, !tbaa !19
  %117 = sub nsw i32 %116, 1
  %118 = sext i32 %117 to i64
  %119 = getelementptr inbounds double, ptr %115, i64 %118
  store double %114, ptr %119, align 8, !tbaa !9
  br label %120

120:                                              ; preds = %101
  %121 = load i32, ptr %20, align 4, !tbaa !19
  %122 = add nsw i32 %121, 1
  store i32 %122, ptr %20, align 4, !tbaa !19
  br label %95, !llvm.loop !20

123:                                              ; preds = %100
  %124 = load ptr, ptr %17, align 8, !tbaa !5
  %125 = getelementptr inbounds %"class.sptk::AllZeroDigitalFilter", ptr %22, i32 0, i32 1
  %126 = load i32, ptr %125, align 8, !tbaa !17
  %127 = sub nsw i32 %126, 1
  %128 = sext i32 %127 to i64
  %129 = getelementptr inbounds double, ptr %124, i64 %128
  %130 = load double, ptr %129, align 8, !tbaa !9
  %131 = load double, ptr %9, align 8, !tbaa !9
  %132 = fmul double %130, %131
  %133 = load ptr, ptr %18, align 8, !tbaa !5
  %134 = getelementptr inbounds %"class.sptk::AllZeroDigitalFilter", ptr %22, i32 0, i32 1
  %135 = load i32, ptr %134, align 8, !tbaa !17
  %136 = sub nsw i32 %135, 1
  %137 = sext i32 %136 to i64
  %138 = getelementptr inbounds double, ptr %133, i64 %137
  store double %132, ptr %138, align 8, !tbaa !9
  br label %185

139:                                              ; preds = %79
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #5
  %140 = getelementptr inbounds %"class.sptk::AllZeroDigitalFilter", ptr %22, i32 0, i32 1
  %141 = load i32, ptr %140, align 8, !tbaa !17
  %142 = sub nsw i32 %141, 1
  store i32 %142, ptr %21, align 4, !tbaa !19
  br label %143

143:                                              ; preds = %170, %139
  %144 = load i32, ptr %21, align 4, !tbaa !19
  %145 = icmp slt i32 0, %144
  br i1 %145, label %147, label %146

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

147:                                              ; preds = %143
  %148 = load ptr, ptr %17, align 8, !tbaa !5
  %149 = load i32, ptr %21, align 4, !tbaa !19
  %150 = sext i32 %149 to i64
  %151 = getelementptr inbounds double, ptr %148, i64 %150
  %152 = load double, ptr %151, align 8, !tbaa !9
  %153 = load ptr, ptr %18, align 8, !tbaa !5
  %154 = load i32, ptr %21, align 4, !tbaa !19
  %155 = sext i32 %154 to i64
  %156 = getelementptr inbounds double, ptr %153, i64 %155
  %157 = load double, ptr %156, align 8, !tbaa !9
  %158 = load double, ptr %19, align 8, !tbaa !9
  %159 = call double @llvm.fmuladd.f64(double %152, double %157, double %158)
  store double %159, ptr %19, align 8, !tbaa !9
  %160 = load ptr, ptr %18, align 8, !tbaa !5
  %161 = load i32, ptr %21, align 4, !tbaa !19
  %162 = sub nsw i32 %161, 1
  %163 = sext i32 %162 to i64
  %164 = getelementptr inbounds double, ptr %160, i64 %163
  %165 = load double, ptr %164, align 8, !tbaa !9
  %166 = load ptr, ptr %18, align 8, !tbaa !5
  %167 = load i32, ptr %21, align 4, !tbaa !19
  %168 = sext i32 %167 to i64
  %169 = getelementptr inbounds double, ptr %166, i64 %168
  store double %165, ptr %169, align 8, !tbaa !9
  br label %170

170:                                              ; preds = %147
  %171 = load i32, ptr %21, align 4, !tbaa !19
  %172 = add nsw i32 %171, -1
  store i32 %172, ptr %21, align 4, !tbaa !19
  br label %143, !llvm.loop !22

173:                                              ; preds = %146
  %174 = load ptr, ptr %17, align 8, !tbaa !5
  %175 = getelementptr inbounds double, ptr %174, i64 0
  %176 = load double, ptr %175, align 8, !tbaa !9
  %177 = load ptr, ptr %18, align 8, !tbaa !5
  %178 = getelementptr inbounds double, ptr %177, i64 0
  %179 = load double, ptr %178, align 8, !tbaa !9
  %180 = load double, ptr %19, align 8, !tbaa !9
  %181 = call double @llvm.fmuladd.f64(double %176, double %179, double %180)
  store double %181, ptr %19, align 8, !tbaa !9
  %182 = load double, ptr %9, align 8, !tbaa !9
  %183 = load ptr, ptr %18, align 8, !tbaa !5
  %184 = getelementptr inbounds double, ptr %183, i64 0
  store double %182, ptr %184, align 8, !tbaa !9
  br label %185

185:                                              ; preds = %173, %123
  %186 = load double, ptr %19, align 8, !tbaa !9
  %187 = load ptr, ptr %10, align 8, !tbaa !5
  store double %186, ptr %187, 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 %188

188:                                              ; preds = %185, %76
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  br label %189

189:                                              ; preds = %188, %40
  %190 = load i1, ptr %6, align 1
  ret i1 %190
}

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


; 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 @_ZNK4sptk20AllZeroDigitalFilter3RunERKSt6vectorIdSaIdEEdPdPNS0_6BufferE(ptr nocapture noundef nonnull readonly align 8 dereferenceable(14) %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 13
  %8 = load i8, ptr %7, align 1, !tbaa !5, !range !11, !noundef !12
  %9 = trunc nuw i8 %8 to i1
  br i1 %9, label %10, label %99

10:                                               ; preds = %5
  %11 = tail call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #6
  %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 %99, 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) #6
  %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) #6
  %26 = tail call ptr @_ZNSt6vectorIdSaIdEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %20) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #6
  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) #6
  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) #6
  %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 %98, 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) #6
  %35 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %20, i64 noundef 0) #6
  %36 = getelementptr inbounds i8, ptr %0, i64 12
  %37 = load i8, ptr %36, align 4, !tbaa !16, !range !11, !noundef !12
  %38 = trunc nuw i8 %37 to i1
  br i1 %38, label %39, label %84

39:                                               ; preds = %33
  %40 = load double, ptr %35, align 8, !tbaa !14
  %41 = fadd double %30, %40
  %42 = load i32, ptr %12, align 8, !tbaa !13
  %43 = icmp sgt i32 %42, 1
  br i1 %43, label %.lr.ph63.preheader, label %._crit_edge64

.lr.ph63.preheader:                               ; preds = %39
  %wide.trip.count = zext nneg i32 %42 to i64
  %44 = add nsw i64 %wide.trip.count, -1
  %min.iters.check = icmp ult i32 %42, 7
  br i1 %min.iters.check, label %.lr.ph63.preheader74, label %vector.memcheck

.lr.ph63.preheader74:                             ; preds = %middle.block, %vector.memcheck, %.lr.ph63.preheader
  %indvars.iv67.ph = phi i64 [ 1, %vector.memcheck ], [ 1, %.lr.ph63.preheader ], [ %ind.end, %middle.block ]
  %45 = and i64 %wide.trip.count, 1
  %lcmp.mod.not.not = icmp eq i64 %45, 0
  br i1 %lcmp.mod.not.not, label %.lr.ph63.prol, label %.lr.ph63.prol.loopexit

.lr.ph63.prol:                                    ; preds = %.lr.ph63.preheader74
  %46 = getelementptr inbounds double, ptr %35, i64 %indvars.iv67.ph
  %47 = load double, ptr %46, align 8, !tbaa !14
  %48 = add nsw i64 %indvars.iv67.ph, -1
  %49 = getelementptr inbounds double, ptr %34, i64 %48
  %50 = load double, ptr %49, align 8, !tbaa !14
  %51 = call double @llvm.fmuladd.f64(double %50, double %2, double %47)
  %52 = getelementptr inbounds double, ptr %35, i64 %48
  store double %51, ptr %52, align 8, !tbaa !14
  %indvars.iv.next68.prol = add nuw nsw i64 %indvars.iv67.ph, 1
  br label %.lr.ph63.prol.loopexit

.lr.ph63.prol.loopexit:                           ; preds = %.lr.ph63.prol, %.lr.ph63.preheader74
  %indvars.iv67.unr = phi i64 [ %indvars.iv67.ph, %.lr.ph63.preheader74 ], [ %indvars.iv.next68.prol, %.lr.ph63.prol ]
  %53 = add nsw i64 %wide.trip.count, -1
  %54 = icmp eq i64 %indvars.iv67.ph, %53
  br i1 %54, label %._crit_edge64, label %.lr.ph63.preheader74.new

.lr.ph63.preheader74.new:                         ; preds = %.lr.ph63.prol.loopexit
  %invariant.gep75 = getelementptr i8, ptr %35, i64 8
  br label %.lr.ph63

vector.memcheck:                                  ; preds = %.lr.ph63.preheader
  %55 = shl nuw nsw i64 %wide.trip.count, 3
  %scevgep = getelementptr i8, ptr %35, i64 %55
  %56 = getelementptr i8, ptr %34, i64 %55
  %scevgep70 = getelementptr i8, ptr %56, i64 -8
  %bound0 = icmp ult ptr %35, %scevgep70
  %bound1 = icmp ult ptr %34, %scevgep
  %found.conflict = and i1 %bound0, %bound1
  br i1 %found.conflict, label %.lr.ph63.preheader74, label %vector.ph

vector.ph:                                        ; preds = %vector.memcheck
  %n.vec = and i64 %44, -4
  %ind.end = or disjoint i64 %n.vec, 1
  %broadcast.splatinsert = insertelement <2 x double> poison, double %2, i64 0
  %broadcast.splat = shufflevector <2 x double> %broadcast.splatinsert, <2 x double> poison, <2 x i32> zeroinitializer
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %offset.idx = or disjoint i64 %index, 1
  %57 = getelementptr inbounds double, ptr %35, i64 %offset.idx
  %58 = getelementptr inbounds i8, ptr %57, i64 16
  %wide.load = load <2 x double>, ptr %57, align 8, !tbaa !14, !alias.scope !17, !noalias !20
  %wide.load71 = load <2 x double>, ptr %58, align 8, !tbaa !14, !alias.scope !17, !noalias !20
  %59 = getelementptr inbounds double, ptr %34, i64 %index
  %60 = getelementptr inbounds i8, ptr %59, i64 16
  %wide.load72 = load <2 x double>, ptr %59, align 8, !tbaa !14, !alias.scope !20
  %wide.load73 = load <2 x double>, ptr %60, align 8, !tbaa !14, !alias.scope !20
  %61 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %wide.load72, <2 x double> %broadcast.splat, <2 x double> %wide.load)
  %62 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %wide.load73, <2 x double> %broadcast.splat, <2 x double> %wide.load71)
  %63 = getelementptr inbounds double, ptr %35, i64 %index
  %64 = getelementptr inbounds i8, ptr %63, i64 16
  store <2 x double> %61, ptr %63, align 8, !tbaa !14, !alias.scope !17, !noalias !20
  store <2 x double> %62, ptr %64, align 8, !tbaa !14, !alias.scope !17, !noalias !20
  %index.next = add nuw i64 %index, 4
  %65 = icmp eq i64 %index.next, %n.vec
  br i1 %65, label %middle.block, label %vector.body, !llvm.loop !22

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %44, %n.vec
  br i1 %cmp.n, label %._crit_edge64, label %.lr.ph63.preheader74

._crit_edge64:                                    ; preds = %.lr.ph63.prol.loopexit, %.lr.ph63, %middle.block, %39
  %66 = add nsw i32 %42, -1
  %67 = sext i32 %66 to i64
  %68 = getelementptr inbounds double, ptr %34, i64 %67
  %69 = load double, ptr %68, align 8, !tbaa !14
  %70 = fmul double %69, %2
  %71 = getelementptr inbounds double, ptr %35, i64 %67
  store double %70, ptr %71, align 8, !tbaa !14
  br label %98

.lr.ph63:                                         ; preds = %.lr.ph63, %.lr.ph63.preheader74.new
  %indvars.iv67 = phi i64 [ %indvars.iv67.unr, %.lr.ph63.preheader74.new ], [ %indvars.iv.next68.1, %.lr.ph63 ]
  %72 = getelementptr inbounds double, ptr %35, i64 %indvars.iv67
  %73 = load double, ptr %72, align 8, !tbaa !14
  %74 = add nsw i64 %indvars.iv67, -1
  %75 = getelementptr inbounds double, ptr %34, i64 %74
  %76 = load double, ptr %75, align 8, !tbaa !14
  %77 = call double @llvm.fmuladd.f64(double %76, double %2, double %73)
  %78 = getelementptr inbounds double, ptr %35, i64 %74
  store double %77, ptr %78, align 8, !tbaa !14
  %gep76 = getelementptr double, ptr %invariant.gep75, i64 %indvars.iv67
  %79 = load double, ptr %gep76, align 8, !tbaa !14
  %80 = getelementptr inbounds double, ptr %34, i64 %indvars.iv67
  %81 = load double, ptr %80, align 8, !tbaa !14
  %82 = call double @llvm.fmuladd.f64(double %81, double %2, double %79)
  %83 = getelementptr inbounds double, ptr %35, i64 %indvars.iv67
  store double %82, ptr %83, align 8, !tbaa !14
  %indvars.iv.next68.1 = add nuw nsw i64 %indvars.iv67, 2
  %exitcond.not.1 = icmp eq i64 %indvars.iv.next68.1, %wide.trip.count
  br i1 %exitcond.not.1, label %._crit_edge64, label %.lr.ph63, !llvm.loop !26

84:                                               ; preds = %33
  %85 = load i32, ptr %12, align 8, !tbaa !13
  %invariant.gep = getelementptr i8, ptr %35, i64 -16
  %86 = icmp sgt i32 %85, 1
  br i1 %86, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %84
  %87 = zext nneg i32 %85 to i64
  br label %.lr.ph

._crit_edge:                                      ; preds = %.lr.ph, %84
  %.052.lcssa = phi double [ %30, %84 ], [ %95, %.lr.ph ]
  %88 = load double, ptr %34, align 8, !tbaa !14
  %89 = load double, ptr %35, align 8, !tbaa !14
  %90 = call double @llvm.fmuladd.f64(double %88, double %89, double %.052.lcssa)
  store double %2, ptr %35, align 8, !tbaa !14
  br label %98

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %indvars.iv = phi i64 [ %87, %.lr.ph.preheader ], [ %indvars.iv.next, %.lr.ph ]
  %.05259 = phi double [ %30, %.lr.ph.preheader ], [ %95, %.lr.ph ]
  %indvars.iv.next = add nsw i64 %indvars.iv, -1
  %91 = getelementptr inbounds double, ptr %34, i64 %indvars.iv.next
  %92 = load double, ptr %91, align 8, !tbaa !14
  %93 = getelementptr inbounds double, ptr %35, i64 %indvars.iv.next
  %94 = load double, ptr %93, align 8, !tbaa !14
  %95 = call double @llvm.fmuladd.f64(double %92, double %94, double %.05259)
  %gep = getelementptr double, ptr %invariant.gep, i64 %indvars.iv
  %96 = load double, ptr %gep, align 8, !tbaa !14
  store double %96, ptr %93, align 8, !tbaa !14
  %97 = icmp ugt i64 %indvars.iv, 2
  br i1 %97, label %.lr.ph, label %._crit_edge, !llvm.loop !27

98:                                               ; preds = %._crit_edge64, %._crit_edge, %27
  %storemerge = phi double [ %30, %27 ], [ %41, %._crit_edge64 ], [ %90, %._crit_edge ]
  store double %storemerge, ptr %3, align 8, !tbaa !14
  br label %99

99:                                               ; preds = %5, %10, %98
  %.154 = phi i1 [ true, %98 ], [ false, %10 ], [ false, %5 ]
  ret i1 %.154
}

; 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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <2 x double> @llvm.fmuladd.v2f64(<2 x double>, <2 x double>, <2 x double>) #5

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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !10, i64 13}
!6 = !{!"_ZTSN4sptk20AllZeroDigitalFilterE", !7, i64 8, !10, i64 12, !10, i64 13}
!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 = !{!6, !10, i64 12}
!17 = !{!18}
!18 = distinct !{!18, !19}
!19 = distinct !{!19, !"LVerDomain"}
!20 = !{!21}
!21 = distinct !{!21, !19}
!22 = distinct !{!22, !23, !24, !25}
!23 = !{!"llvm.loop.mustprogress"}
!24 = !{!"llvm.loop.isvectorized", i32 1}
!25 = !{!"llvm.loop.unroll.runtime.disable"}
!26 = distinct !{!26, !23, !24}
!27 = distinct !{!27, !23}


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