; LLVM IR from shamadee/web-dsp-demo :: cpp/dft.ll (ZN3DFT7forwardEPdi)

; 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"

%struct.DFT = type { ptr }
%struct.FourierTransform = type { i32, i32, i32, double, ptr, ptr, ptr, i32, double, ptr, ptr }

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN16FourierTransform17calculateSpectrumEv(ptr noundef nonnull align 8 dereferenceable(80)) #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3DFT7forwardEPdi(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef %1, i32 noundef %2) #2 align 2 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca double, align 8
  %8 = alloca double, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store i32 %2, ptr %6, align 4, !tbaa !9
  %12 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #3
  store double 0.000000e+00, ptr %7, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #3
  store double 0.000000e+00, ptr %8, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #3
  store i32 0, ptr %9, align 4, !tbaa !9
  br label %13

13:                                               ; preds = %83, %3
  %14 = load i32, ptr %9, align 4, !tbaa !9
  %15 = getelementptr inbounds %struct.DFT, ptr %12, i32 0, i32 0
  %16 = load ptr, ptr %15, align 8, !tbaa !13
  %17 = getelementptr inbounds %struct.FourierTransform, ptr %16, i32 0, i32 0
  %18 = load i32, ptr %17, align 8, !tbaa !15
  %19 = sdiv i32 %18, 2
  %20 = icmp slt i32 %14, %19
  br i1 %20, label %22, label %21

21:                                               ; preds = %13
  store i32 2, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #3
  br label %86

22:                                               ; preds = %13
  store double 0.000000e+00, ptr %7, align 8, !tbaa !11
  store double 0.000000e+00, ptr %8, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #3
  store i32 0, ptr %11, align 4, !tbaa !9
  br label %23

23:                                               ; preds = %63, %22
  %24 = load i32, ptr %11, align 4, !tbaa !9
  %25 = load i32, ptr %6, align 4, !tbaa !9
  %26 = icmp slt i32 %24, %25
  br i1 %26, label %28, label %27

27:                                               ; preds = %23
  store i32 5, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #3
  br label %66

28:                                               ; preds = %23
  %29 = getelementptr inbounds %struct.DFT, ptr %12, i32 0, i32 0
  %30 = load ptr, ptr %29, align 8, !tbaa !13
  %31 = getelementptr inbounds %struct.FourierTransform, ptr %30, i32 0, i32 10
  %32 = load ptr, ptr %31, align 8, !tbaa !17
  %33 = load i32, ptr %9, align 4, !tbaa !9
  %34 = load i32, ptr %11, align 4, !tbaa !9
  %35 = mul nsw i32 %33, %34
  %36 = sext i32 %35 to i64
  %37 = getelementptr inbounds double, ptr %32, i64 %36
  %38 = load double, ptr %37, align 8, !tbaa !11
  %39 = load ptr, ptr %5, align 8, !tbaa !5
  %40 = load i32, ptr %11, align 4, !tbaa !9
  %41 = sext i32 %40 to i64
  %42 = getelementptr inbounds double, ptr %39, i64 %41
  %43 = load double, ptr %42, align 8, !tbaa !11
  %44 = load double, ptr %7, align 8, !tbaa !11
  %45 = call double @llvm.fmuladd.f64(double %38, double %43, double %44)
  store double %45, ptr %7, align 8, !tbaa !11
  %46 = getelementptr inbounds %struct.DFT, ptr %12, i32 0, i32 0
  %47 = load ptr, ptr %46, align 8, !tbaa !13
  %48 = getelementptr inbounds %struct.FourierTransform, ptr %47, i32 0, i32 9
  %49 = load ptr, ptr %48, align 8, !tbaa !18
  %50 = load i32, ptr %9, align 4, !tbaa !9
  %51 = load i32, ptr %11, align 4, !tbaa !9
  %52 = mul nsw i32 %50, %51
  %53 = sext i32 %52 to i64
  %54 = getelementptr inbounds double, ptr %49, i64 %53
  %55 = load double, ptr %54, align 8, !tbaa !11
  %56 = load ptr, ptr %5, align 8, !tbaa !5
  %57 = load i32, ptr %11, align 4, !tbaa !9
  %58 = sext i32 %57 to i64
  %59 = getelementptr inbounds double, ptr %56, i64 %58
  %60 = load double, ptr %59, align 8, !tbaa !11
  %61 = load double, ptr %8, align 8, !tbaa !11
  %62 = call double @llvm.fmuladd.f64(double %55, double %60, double %61)
  store double %62, ptr %8, align 8, !tbaa !11
  br label %63

63:                                               ; preds = %28
  %64 = load i32, ptr %11, align 4, !tbaa !9
  %65 = add nsw i32 %64, 1
  store i32 %65, ptr %11, align 4, !tbaa !9
  br label %23, !llvm.loop !19

66:                                               ; preds = %27
  %67 = load double, ptr %7, align 8, !tbaa !11
  %68 = getelementptr inbounds %struct.DFT, ptr %12, i32 0, i32 0
  %69 = load ptr, ptr %68, align 8, !tbaa !13
  %70 = getelementptr inbounds %struct.FourierTransform, ptr %69, i32 0, i32 5
  %71 = load ptr, ptr %70, align 8, !tbaa !21
  %72 = load i32, ptr %9, align 4, !tbaa !9
  %73 = sext i32 %72 to i64
  %74 = getelementptr inbounds double, ptr %71, i64 %73
  store double %67, ptr %74, align 8, !tbaa !11
  %75 = load double, ptr %8, align 8, !tbaa !11
  %76 = getelementptr inbounds %struct.DFT, ptr %12, i32 0, i32 0
  %77 = load ptr, ptr %76, align 8, !tbaa !13
  %78 = getelementptr inbounds %struct.FourierTransform, ptr %77, i32 0, i32 6
  %79 = load ptr, ptr %78, align 8, !tbaa !22
  %80 = load i32, ptr %9, align 4, !tbaa !9
  %81 = sext i32 %80 to i64
  %82 = getelementptr inbounds double, ptr %79, i64 %81
  store double %75, ptr %82, align 8, !tbaa !11
  br label %83

83:                                               ; preds = %66
  %84 = load i32, ptr %9, align 4, !tbaa !9
  %85 = add nsw i32 %84, 1
  store i32 %85, ptr %9, align 4, !tbaa !9
  br label %13, !llvm.loop !23

86:                                               ; preds = %21
  %87 = getelementptr inbounds %struct.DFT, ptr %12, i32 0, i32 0
  %88 = load ptr, ptr %87, align 8, !tbaa !13
  call void @_ZN16FourierTransform17calculateSpectrumEv(ptr noundef nonnull align 8 dereferenceable(80) %88)
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #3
  ret void
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { 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 = { 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 = !{!"double", !7, i64 0}
!13 = !{!14, !6, i64 0}
!14 = !{!"_ZTS3DFT", !6, i64 0}
!15 = !{!16, !10, i64 0}
!16 = !{!"_ZTS16FourierTransform", !10, i64 0, !10, i64 4, !10, i64 8, !12, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !10, i64 48, !12, i64 56, !6, i64 64, !6, i64 72}
!17 = !{!16, !6, i64 72}
!18 = !{!16, !6, i64 64}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = !{!16, !6, i64 32}
!22 = !{!16, !6, i64 40}
!23 = distinct !{!23, !20}


; 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
declare dso_local void @_ZN16FourierTransform17calculateSpectrumEv(ptr noundef nonnull align 8 dereferenceable(80)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3DFT7forwardEPdi(ptr nocapture noundef nonnull readonly align 8 dereferenceable(8) %0, ptr nocapture noundef readonly %1, i32 noundef %2) local_unnamed_addr #0 align 2 {
  %4 = load ptr, ptr %0, align 8, !tbaa !5
  %5 = load i32, ptr %4, align 8, !tbaa !10
  %6 = sdiv i32 %5, 2
  %7 = icmp sgt i32 %5, 1
  br i1 %7, label %.preheader.lr.ph, label %._crit_edge27

.preheader.lr.ph:                                 ; preds = %3
  %8 = icmp sgt i32 %2, 0
  %9 = getelementptr inbounds i8, ptr %4, i64 32
  %10 = load ptr, ptr %9, align 8, !tbaa !14
  %11 = getelementptr inbounds i8, ptr %4, i64 40
  %12 = load ptr, ptr %11, align 8, !tbaa !15
  br i1 %8, label %.preheader.lr.ph.split.us, label %.preheader.preheader

.preheader.preheader:                             ; preds = %.preheader.lr.ph
  %13 = ptrtoint ptr %12 to i64
  %14 = ptrtoint ptr %10 to i64
  %wide.trip.count = zext nneg i32 %6 to i64
  %min.iters.check = icmp ult i32 %6, 4
  %15 = sub i64 %13, %14
  %diff.check = icmp ult i64 %15, 32
  %or.cond = select i1 %min.iters.check, i1 true, i1 %diff.check
  br i1 %or.cond, label %.preheader.preheader46, label %vector.ph

.preheader.preheader46:                           ; preds = %middle.block, %.preheader.preheader
  %indvars.iv.ph = phi i64 [ 0, %.preheader.preheader ], [ %n.vec, %middle.block ]
  %xtraiter = and i64 %wide.trip.count, 3
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.preheader.prol.loopexit, label %.preheader.prol

.preheader.prol:                                  ; preds = %.preheader.preheader46, %.preheader.prol
  %indvars.iv.prol = phi i64 [ %indvars.iv.next.prol, %.preheader.prol ], [ %indvars.iv.ph, %.preheader.preheader46 ]
  %prol.iter = phi i64 [ %prol.iter.next, %.preheader.prol ], [ 0, %.preheader.preheader46 ]
  %16 = getelementptr inbounds double, ptr %10, i64 %indvars.iv.prol
  store double 0.000000e+00, ptr %16, align 8, !tbaa !16
  %17 = getelementptr inbounds double, ptr %12, i64 %indvars.iv.prol
  store double 0.000000e+00, ptr %17, align 8, !tbaa !16
  %indvars.iv.next.prol = add nuw nsw i64 %indvars.iv.prol, 1
  %prol.iter.next = add i64 %prol.iter, 1
  %prol.iter.cmp.not = icmp eq i64 %prol.iter.next, %xtraiter
  br i1 %prol.iter.cmp.not, label %.preheader.prol.loopexit, label %.preheader.prol, !llvm.loop !17

.preheader.prol.loopexit:                         ; preds = %.preheader.prol, %.preheader.preheader46
  %indvars.iv.unr = phi i64 [ %indvars.iv.ph, %.preheader.preheader46 ], [ %indvars.iv.next.prol, %.preheader.prol ]
  %18 = sub nsw i64 %indvars.iv.ph, %wide.trip.count
  %19 = icmp ugt i64 %18, -4
  br i1 %19, label %._crit_edge27, label %.preheader

vector.ph:                                        ; preds = %.preheader.preheader
  %n.vec = and i64 %wide.trip.count, 1073741820
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %20 = getelementptr inbounds double, ptr %10, i64 %index
  %21 = getelementptr inbounds i8, ptr %20, i64 16
  store <2 x double> zeroinitializer, ptr %20, align 8, !tbaa !16
  store <2 x double> zeroinitializer, ptr %21, align 8, !tbaa !16
  %22 = getelementptr inbounds double, ptr %12, i64 %index
  %23 = getelementptr inbounds i8, ptr %22, i64 16
  store <2 x double> zeroinitializer, ptr %22, align 8, !tbaa !16
  store <2 x double> zeroinitializer, ptr %23, align 8, !tbaa !16
  %index.next = add nuw i64 %index, 4
  %24 = icmp eq i64 %index.next, %n.vec
  br i1 %24, label %middle.block, label %vector.body, !llvm.loop !19

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count
  br i1 %cmp.n, label %._crit_edge27, label %.preheader.preheader46

.preheader.lr.ph.split.us:                        ; preds = %.preheader.lr.ph
  %25 = getelementptr inbounds i8, ptr %4, i64 64
  %26 = getelementptr inbounds i8, ptr %4, i64 72
  %27 = load ptr, ptr %26, align 8, !tbaa !23
  %28 = load ptr, ptr %25, align 8, !tbaa !24
  %wide.trip.count40 = zext nneg i32 %6 to i64
  %wide.trip.count35 = zext nneg i32 %2 to i64
  %xtraiter48 = and i64 %wide.trip.count35, 1
  %29 = icmp eq i32 %2, 1
  %unroll_iter = and i64 %wide.trip.count35, 2147483646
  %lcmp.mod49.not = icmp eq i64 %xtraiter48, 0
  br label %.preheader.us

.preheader.us:                                    ; preds = %._crit_edge.us, %.preheader.lr.ph.split.us
  %indvars.iv37 = phi i64 [ %indvars.iv.next38, %._crit_edge.us ], [ 0, %.preheader.lr.ph.split.us ]
  br i1 %29, label %._crit_edge.us.unr-lcssa, label %.preheader.us.new

.preheader.us.new:                                ; preds = %.preheader.us, %.preheader.us.new
  %indvars.iv32 = phi i64 [ %indvars.iv.next33.1, %.preheader.us.new ], [ 0, %.preheader.us ]
  %30 = phi <2 x double> [ %54, %.preheader.us.new ], [ zeroinitializer, %.preheader.us ]
  %niter = phi i64 [ %niter.next.1, %.preheader.us.new ], [ 0, %.preheader.us ]
  %31 = mul nuw nsw i64 %indvars.iv32, %indvars.iv37
  %32 = getelementptr inbounds double, ptr %27, i64 %31
  %33 = load double, ptr %32, align 8, !tbaa !16
  %34 = getelementptr inbounds double, ptr %1, i64 %indvars.iv32
  %35 = load double, ptr %34, align 8, !tbaa !16
  %36 = getelementptr inbounds double, ptr %28, i64 %31
  %37 = load double, ptr %36, align 8, !tbaa !16
  %38 = insertelement <2 x double> poison, double %37, i64 0
  %39 = insertelement <2 x double> %38, double %33, i64 1
  %40 = insertelement <2 x double> poison, double %35, i64 0
  %41 = shufflevector <2 x double> %40, <2 x double> poison, <2 x i32> zeroinitializer
  %42 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %39, <2 x double> %41, <2 x double> %30)
  %indvars.iv.next33 = or disjoint i64 %indvars.iv32, 1
  %43 = mul nuw nsw i64 %indvars.iv.next33, %indvars.iv37
  %44 = getelementptr inbounds double, ptr %27, i64 %43
  %45 = load double, ptr %44, align 8, !tbaa !16
  %46 = getelementptr inbounds double, ptr %1, i64 %indvars.iv.next33
  %47 = load double, ptr %46, align 8, !tbaa !16
  %48 = getelementptr inbounds double, ptr %28, i64 %43
  %49 = load double, ptr %48, align 8, !tbaa !16
  %50 = insertelement <2 x double> poison, double %49, i64 0
  %51 = insertelement <2 x double> %50, double %45, i64 1
  %52 = insertelement <2 x double> poison, double %47, i64 0
  %53 = shufflevector <2 x double> %52, <2 x double> poison, <2 x i32> zeroinitializer
  %54 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %51, <2 x double> %53, <2 x double> %42)
  %indvars.iv.next33.1 = add nuw nsw i64 %indvars.iv32, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %._crit_edge.us.unr-lcssa, label %.preheader.us.new, !llvm.loop !25

._crit_edge.us.unr-lcssa:                         ; preds = %.preheader.us.new, %.preheader.us
  %.lcssa.ph = phi <2 x double> [ poison, %.preheader.us ], [ %54, %.preheader.us.new ]
  %indvars.iv32.unr = phi i64 [ 0, %.preheader.us ], [ %indvars.iv.next33.1, %.preheader.us.new ]
  %.unr = phi <2 x double> [ zeroinitializer, %.preheader.us ], [ %54, %.preheader.us.new ]
  br i1 %lcmp.mod49.not, label %._crit_edge.us, label %._crit_edge.us.epilog-lcssa

._crit_edge.us.epilog-lcssa:                      ; preds = %._crit_edge.us.unr-lcssa
  %55 = mul nuw nsw i64 %indvars.iv32.unr, %indvars.iv37
  %56 = getelementptr inbounds double, ptr %27, i64 %55
  %57 = load double, ptr %56, align 8, !tbaa !16
  %58 = getelementptr inbounds double, ptr %1, i64 %indvars.iv32.unr
  %59 = load double, ptr %58, align 8, !tbaa !16
  %60 = getelementptr inbounds double, ptr %28, i64 %55
  %61 = load double, ptr %60, align 8, !tbaa !16
  %62 = insertelement <2 x double> poison, double %61, i64 0
  %63 = insertelement <2 x double> %62, double %57, i64 1
  %64 = insertelement <2 x double> poison, double %59, i64 0
  %65 = shufflevector <2 x double> %64, <2 x double> poison, <2 x i32> zeroinitializer
  %66 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %63, <2 x double> %65, <2 x double> %.unr)
  br label %._crit_edge.us

._crit_edge.us:                                   ; preds = %._crit_edge.us.unr-lcssa, %._crit_edge.us.epilog-lcssa
  %.lcssa = phi <2 x double> [ %.lcssa.ph, %._crit_edge.us.unr-lcssa ], [ %66, %._crit_edge.us.epilog-lcssa ]
  %67 = getelementptr inbounds double, ptr %10, i64 %indvars.iv37
  %68 = extractelement <2 x double> %.lcssa, i64 1
  store double %68, ptr %67, align 8, !tbaa !16
  %69 = getelementptr inbounds double, ptr %12, i64 %indvars.iv37
  %70 = extractelement <2 x double> %.lcssa, i64 0
  store double %70, ptr %69, align 8, !tbaa !16
  %indvars.iv.next38 = add nuw nsw i64 %indvars.iv37, 1
  %exitcond41.not = icmp eq i64 %indvars.iv.next38, %wide.trip.count40
  br i1 %exitcond41.not, label %._crit_edge27, label %.preheader.us, !llvm.loop !26

.preheader:                                       ; preds = %.preheader.prol.loopexit, %.preheader
  %indvars.iv = phi i64 [ %indvars.iv.next.3, %.preheader ], [ %indvars.iv.unr, %.preheader.prol.loopexit ]
  %71 = getelementptr inbounds double, ptr %10, i64 %indvars.iv
  store double 0.000000e+00, ptr %71, align 8, !tbaa !16
  %72 = getelementptr inbounds double, ptr %12, i64 %indvars.iv
  store double 0.000000e+00, ptr %72, align 8, !tbaa !16
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %73 = getelementptr inbounds double, ptr %10, i64 %indvars.iv.next
  store double 0.000000e+00, ptr %73, align 8, !tbaa !16
  %74 = getelementptr inbounds double, ptr %12, i64 %indvars.iv.next
  store double 0.000000e+00, ptr %74, align 8, !tbaa !16
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %75 = getelementptr inbounds double, ptr %10, i64 %indvars.iv.next.1
  store double 0.000000e+00, ptr %75, align 8, !tbaa !16
  %76 = getelementptr inbounds double, ptr %12, i64 %indvars.iv.next.1
  store double 0.000000e+00, ptr %76, align 8, !tbaa !16
  %indvars.iv.next.2 = add nuw nsw i64 %indvars.iv, 3
  %77 = getelementptr inbounds double, ptr %10, i64 %indvars.iv.next.2
  store double 0.000000e+00, ptr %77, align 8, !tbaa !16
  %78 = getelementptr inbounds double, ptr %12, i64 %indvars.iv.next.2
  store double 0.000000e+00, ptr %78, align 8, !tbaa !16
  %indvars.iv.next.3 = add nuw nsw i64 %indvars.iv, 4
  %exitcond.not.3 = icmp eq i64 %indvars.iv.next.3, %wide.trip.count
  br i1 %exitcond.not.3, label %._crit_edge27, label %.preheader, !llvm.loop !27

._crit_edge27:                                    ; preds = %.preheader.prol.loopexit, %.preheader, %._crit_edge.us, %middle.block, %3
  tail call void @_ZN16FourierTransform17calculateSpectrumEv(ptr noundef nonnull align 8 dereferenceable(80) %4)
  ret void
}

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

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }

!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, !7, i64 0}
!6 = !{!"_ZTS3DFT", !7, i64 0}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!11, !12, i64 0}
!11 = !{!"_ZTS16FourierTransform", !12, i64 0, !12, i64 4, !12, i64 8, !13, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !12, i64 48, !13, i64 56, !7, i64 64, !7, i64 72}
!12 = !{!"int", !8, i64 0}
!13 = !{!"double", !8, i64 0}
!14 = !{!11, !7, i64 32}
!15 = !{!11, !7, i64 40}
!16 = !{!13, !13, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.unroll.disable"}
!19 = distinct !{!19, !20, !21, !22}
!20 = !{!"llvm.loop.mustprogress"}
!21 = !{!"llvm.loop.isvectorized", i32 1}
!22 = !{!"llvm.loop.unroll.runtime.disable"}
!23 = !{!11, !7, i64 72}
!24 = !{!11, !7, i64 64}
!25 = distinct !{!25, !20}
!26 = distinct !{!26, !20}
!27 = distinct !{!27, !20, !21}


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