; LLVM IR from sp-nitech/SPTK :: src/math (real_valued_fast_fourier_transform)

; 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.sptk::RealValuedFastFourierTransform" = type { ptr, i32, i32, i32, %"class.sptk::FastFourierTransform", i8, %"class.std::vector" }
%"class.sptk::FastFourierTransform" = type { ptr, i32, i32, i32, i8, %"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 }

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4sptk30RealValuedFastFourierTransformC2Eii(ptr noundef nonnull align 8 dereferenceable(104) %0, i32 noundef %1, i32 noundef %2) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca double, align 8
  %11 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i32 %1, ptr %5, align 4, !tbaa !9
  store i32 %2, ptr %6, align 4, !tbaa !9
  %12 = load ptr, ptr %4, align 8
  store ptr getelementptr inbounds inrange(-16, 16) ({ [4 x ptr] }, ptr @_ZTVN4sptk30RealValuedFastFourierTransformE, i32 0, i32 0, i32 2), ptr %12, align 8, !tbaa !11
  %13 = getelementptr inbounds %"class.sptk::RealValuedFastFourierTransform", ptr %12, i32 0, i32 1
  %14 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %14, ptr %13, align 8, !tbaa !13
  %15 = getelementptr inbounds %"class.sptk::RealValuedFastFourierTransform", ptr %12, i32 0, i32 2
  %16 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %16, ptr %15, align 4, !tbaa !21
  %17 = getelementptr inbounds %"class.sptk::RealValuedFastFourierTransform", ptr %12, i32 0, i32 3
  %18 = getelementptr inbounds %"class.sptk::RealValuedFastFourierTransform", ptr %12, i32 0, i32 2
  %19 = load i32, ptr %18, align 4, !tbaa !21
  %20 = sdiv i32 %19, 2
  store i32 %20, ptr %17, align 8, !tbaa !22
  %21 = getelementptr inbounds %"class.sptk::RealValuedFastFourierTransform", ptr %12, i32 0, i32 4
  %22 = getelementptr inbounds %"class.sptk::RealValuedFastFourierTransform", ptr %12, i32 0, i32 3
  %23 = load i32, ptr %22, align 8, !tbaa !22
  call void @_ZN4sptk20FastFourierTransformC1Ei(ptr noundef nonnull align 8 dereferenceable(48) %21, i32 noundef %23)
  %24 = getelementptr inbounds %"class.sptk::RealValuedFastFourierTransform", ptr %12, i32 0, i32 5
  store i8 1, ptr %24, align 8, !tbaa !23
  %25 = getelementptr inbounds %"class.sptk::RealValuedFastFourierTransform", ptr %12, i32 0, i32 6
  call void @_ZNSt6vectorIdSaIdEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %25) #5
  %26 = getelementptr inbounds %"class.sptk::RealValuedFastFourierTransform", ptr %12, i32 0, i32 1
  %27 = load i32, ptr %26, align 8, !tbaa !13
  %28 = icmp slt i32 %27, 0
  br i1 %28, label %44, label %29

29:                                               ; preds = %3
  %30 = getelementptr inbounds %"class.sptk::RealValuedFastFourierTransform", ptr %12, i32 0, i32 2
  %31 = load i32, ptr %30, align 4, !tbaa !21
  %32 = getelementptr inbounds %"class.sptk::RealValuedFastFourierTransform", ptr %12, i32 0, i32 1
  %33 = load i32, ptr %32, align 8, !tbaa !13
  %34 = icmp sle i32 %31, %33
  br i1 %34, label %44, label %35

35:                                               ; preds = %29
  %36 = getelementptr inbounds %"class.sptk::RealValuedFastFourierTransform", ptr %12, i32 0, i32 2
  %37 = load i32, ptr %36, align 4, !tbaa !21
  %38 = invoke noundef zeroext i1 @_ZN4sptk12IsPowerOfTwoEi(i32 noundef %37)
          to label %39 unwind label %46

39:                                               ; preds = %35
  br i1 %38, label %40, label %44

40:                                               ; preds = %39
  %41 = getelementptr inbounds %"class.sptk::RealValuedFastFourierTransform", ptr %12, i32 0, i32 4
  %42 = invoke noundef zeroext i1 @_ZNK4sptk20FastFourierTransform7IsValidEv(ptr noundef nonnull align 8 dereferenceable(48) %41)
          to label %43 unwind label %46

43:                                               ; preds = %40
  br i1 %42, label %50, label %44

44:                                               ; preds = %43, %39, %29, %3
  %45 = getelementptr inbounds %"class.sptk::RealValuedFastFourierTransform", ptr %12, i32 0, i32 5
  store i8 0, ptr %45, align 8, !tbaa !23
  br label %96

46:                                               ; preds = %40, %35
  %47 = landingpad { ptr, i32 }
          cleanup
  %48 = extractvalue { ptr, i32 } %47, 0
  store ptr %48, ptr %7, align 8
  %49 = extractvalue { ptr, i32 } %47, 1
  store i32 %49, ptr %8, align 4
  br label %97

50:                                               ; preds = %43
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  %51 = getelementptr inbounds %"class.sptk::RealValuedFastFourierTransform", ptr %12, i32 0, i32 2
  %52 = load i32, ptr %51, align 4, !tbaa !21
  %53 = getelementptr inbounds %"class.sptk::RealValuedFastFourierTransform", ptr %12, i32 0, i32 2
  %54 = load i32, ptr %53, align 4, !tbaa !21
  %55 = sdiv i32 %54, 4
  %56 = sub nsw i32 %52, %55
  %57 = add nsw i32 %56, 1
  store i32 %57, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %58 = getelementptr inbounds %"class.sptk::RealValuedFastFourierTransform", ptr %12, i32 0, i32 2
  %59 = load i32, ptr %58, align 4, !tbaa !21
  %60 = sitofp i32 %59 to double
  %61 = fdiv double 0x400921FB54442D18, %60
  %62 = fmul double %61, 2.000000e+00
  store double %62, ptr %10, align 8, !tbaa !24
  %63 = getelementptr inbounds %"class.sptk::RealValuedFastFourierTransform", ptr %12, i32 0, i32 6
  %64 = load i32, ptr %9, align 4, !tbaa !9
  %65 = sext i32 %64 to i64
  invoke void @_ZNSt6vectorIdSaIdEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %63, i64 noundef %65)
          to label %66 unwind label %72

66:                                               ; preds = %50
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  store i32 0, ptr %11, align 4, !tbaa !9
  br label %67

67:                                               ; preds = %86, %66
  %68 = load i32, ptr %11, align 4, !tbaa !9
  %69 = load i32, ptr %9, align 4, !tbaa !9
  %70 = icmp slt i32 %68, %69
  br i1 %70, label %76, label %71

71:                                               ; preds = %67
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  br label %89

72:                                               ; preds = %50
  %73 = landingpad { ptr, i32 }
          cleanup
  %74 = extractvalue { ptr, i32 } %73, 0
  store ptr %74, ptr %7, align 8
  %75 = extractvalue { ptr, i32 } %73, 1
  store i32 %75, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  br label %97

76:                                               ; preds = %67
  %77 = load double, ptr %10, align 8, !tbaa !24
  %78 = load i32, ptr %11, align 4, !tbaa !9
  %79 = sitofp i32 %78 to double
  %80 = fmul double %77, %79
  %81 = call double @sin(double noundef %80) #5
  %82 = getelementptr inbounds %"class.sptk::RealValuedFastFourierTransform", ptr %12, i32 0, i32 6
  %83 = load i32, ptr %11, align 4, !tbaa !9
  %84 = sext i32 %83 to i64
  %85 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %82, i64 noundef %84) #5
  store double %81, ptr %85, align 8, !tbaa !24
  br label %86

86:                                               ; preds = %76
  %87 = load i32, ptr %11, align 4, !tbaa !9
  %88 = add nsw i32 %87, 1
  store i32 %88, ptr %11, align 4, !tbaa !9
  br label %67, !llvm.loop !26

89:                                               ; preds = %71
  %90 = getelementptr inbounds %"class.sptk::RealValuedFastFourierTransform", ptr %12, i32 0, i32 6
  %91 = getelementptr inbounds %"class.sptk::RealValuedFastFourierTransform", ptr %12, i32 0, i32 2
  %92 = load i32, ptr %91, align 4, !tbaa !21
  %93 = sdiv i32 %92, 2
  %94 = sext i32 %93 to i64
  %95 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %90, i64 noundef %94) #5
  store double 0.000000e+00, ptr %95, align 8, !tbaa !24
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  br label %96

96:                                               ; preds = %89, %44
  ret void

97:                                               ; preds = %72, %46
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %25) #5
  call void @_ZN4sptk20FastFourierTransformD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %21) #5
  br label %98

98:                                               ; preds = %97
  %99 = load ptr, ptr %7, align 8
  %100 = load i32, ptr %8, align 4
  %101 = insertvalue { ptr, i32 } poison, ptr %99, 0
  %102 = insertvalue { ptr, i32 } %101, i32 %100, 1
  resume { ptr, i32 } %102
}

declare void @_ZN4sptk20FastFourierTransformC1Ei(ptr noundef nonnull align 8 dereferenceable(48), i32 noundef) unnamed_addr #1

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

declare noundef zeroext i1 @_ZN4sptk12IsPowerOfTwoEi(i32 noundef) #1

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: nounwind
declare double @sin(double noundef) #4

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

; 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 void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 align 2

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

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 = { "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 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { nounwind "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 #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 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"vtable pointer", !8, i64 0}
!13 = !{!14, !10, i64 8}
!14 = !{!"_ZTSN4sptk30RealValuedFastFourierTransformE", !10, i64 8, !10, i64 12, !10, i64 16, !15, i64 24, !16, i64 72, !17, i64 80}
!15 = !{!"_ZTSN4sptk20FastFourierTransformE", !10, i64 8, !10, i64 12, !10, i64 16, !16, i64 20, !17, i64 24}
!16 = !{!"bool", !7, i64 0}
!17 = !{!"_ZTSSt6vectorIdSaIdEE", !18, i64 0}
!18 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!21 = !{!14, !10, i64 12}
!22 = !{!14, !10, i64 16}
!23 = !{!14, !16, i64 72}
!24 = !{!25, !25, i64 0}
!25 = !{!"double", !7, i64 0}
!26 = distinct !{!26, !27}
!27 = !{!"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"

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4sptk30RealValuedFastFourierTransformC2Eii(ptr noundef nonnull align 8 dereferenceable(104) %0, i32 noundef %1, i32 noundef %2) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  store ptr getelementptr inbounds inrange(-16, 16) (i8, ptr @_ZTVN4sptk30RealValuedFastFourierTransformE, i64 16), ptr %0, align 8, !tbaa !5
  %4 = getelementptr inbounds i8, ptr %0, i64 8
  store i32 %1, ptr %4, align 8, !tbaa !8
  %5 = getelementptr inbounds i8, ptr %0, i64 12
  store i32 %2, ptr %5, align 4, !tbaa !19
  %6 = getelementptr inbounds i8, ptr %0, i64 16
  %7 = sdiv i32 %2, 2
  store i32 %7, ptr %6, align 8, !tbaa !20
  %8 = getelementptr inbounds i8, ptr %0, i64 24
  tail call void @_ZN4sptk20FastFourierTransformC1Ei(ptr noundef nonnull align 8 dereferenceable(48) %8, i32 noundef %7)
  %9 = getelementptr inbounds i8, ptr %0, i64 72
  store i8 1, ptr %9, align 8, !tbaa !21
  %10 = getelementptr inbounds i8, ptr %0, i64 80
  tail call void @_ZNSt6vectorIdSaIdEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #4
  %11 = load i32, ptr %4, align 8, !tbaa !8
  %12 = icmp slt i32 %11, 0
  br i1 %12, label %20, label %13

13:                                               ; preds = %3
  %14 = load i32, ptr %5, align 4, !tbaa !19
  %.not = icmp sgt i32 %14, %11
  br i1 %.not, label %15, label %20

15:                                               ; preds = %13
  %16 = invoke noundef zeroext i1 @_ZN4sptk12IsPowerOfTwoEi(i32 noundef %14)
          to label %17 unwind label %21

17:                                               ; preds = %15
  br i1 %16, label %18, label %20

18:                                               ; preds = %17
  %19 = tail call noundef zeroext i1 @_ZNK4sptk20FastFourierTransform7IsValidEv(ptr noundef nonnull align 8 dereferenceable(48) %8)
  br i1 %19, label %23, label %20

20:                                               ; preds = %18, %17, %13, %3
  store i8 0, ptr %9, align 8, !tbaa !21
  br label %42

21:                                               ; preds = %15
  %22 = landingpad { ptr, i32 }
          cleanup
  br label %43

23:                                               ; preds = %18
  %24 = load i32, ptr %5, align 4, !tbaa !19
  %.neg = sdiv i32 %24, -4
  %25 = add i32 %.neg, %24
  %26 = add i32 %25, 1
  %27 = sitofp i32 %24 to double
  %28 = fdiv double 0x400921FB54442D18, %27
  %29 = fmul double %28, 2.000000e+00
  %30 = sext i32 %26 to i64
  invoke void @_ZNSt6vectorIdSaIdEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %30)
          to label %.preheader unwind label %35

.preheader:                                       ; preds = %23
  %.not1617 = icmp slt i32 %25, 0
  br i1 %.not1617, label %._crit_edge, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %.preheader
  %wide.trip.count = zext i32 %26 to i64
  br label %.lr.ph

._crit_edge:                                      ; preds = %.lr.ph, %.preheader
  %31 = load i32, ptr %5, align 4, !tbaa !19
  %32 = sdiv i32 %31, 2
  %33 = sext i32 %32 to i64
  %34 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %33) #4
  store double 0.000000e+00, ptr %34, align 8, !tbaa !22
  br label %42

35:                                               ; preds = %23
  %36 = landingpad { ptr, i32 }
          cleanup
  br label %43

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %.lr.ph ]
  %37 = trunc nuw nsw i64 %indvars.iv to i32
  %38 = uitofp nneg i32 %37 to double
  %39 = fmul double %29, %38
  %40 = tail call double @sin(double noundef %39) #4
  %41 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %indvars.iv) #4
  store double %40, ptr %41, align 8, !tbaa !22
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !24

42:                                               ; preds = %._crit_edge, %20
  ret void

43:                                               ; preds = %35, %21
  %.pn = phi { ptr, i32 } [ %36, %35 ], [ %22, %21 ]
  tail call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #4
  tail call void @_ZN4sptk20FastFourierTransformD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %8) #4
  resume { ptr, i32 } %.pn
}

declare void @_ZN4sptk20FastFourierTransformC1Ei(ptr noundef nonnull align 8 dereferenceable(48), i32 noundef) unnamed_addr #1

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

declare noundef zeroext i1 @_ZN4sptk12IsPowerOfTwoEi(i32 noundef) local_unnamed_addr #1

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK4sptk20FastFourierTransform7IsValidEv(ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #2 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: mustprogress nofree nounwind willreturn memory(write)
declare double @sin(double noundef) local_unnamed_addr #3

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

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

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

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 = { "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 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nofree nounwind willreturn memory(write) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }

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

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


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass