; LLVM IR from sp-nitech/SPTK :: src/math (discrete_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::DiscreteFourierTransform" = type { ptr, i32, i8, %"class.std::vector", %"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
declare dso_local void @_ZNSt6vectorIdSaIdEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #0 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZNK4sptk24DiscreteFourierTransform3RunERKSt6vectorIdSaIdEES5_PS3_S6_(ptr noundef nonnull align 8 dereferenceable(64) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(24) %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 ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca double, 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 ptr %2, ptr %9, align 8, !tbaa !5
  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::DiscreteFourierTransform", ptr %22, i32 0, i32 2
  %24 = load i8, ptr %23, align 4, !tbaa !9, !range !17, !noundef !18
  %25 = trunc i8 %24 to i1
  br i1 %25, label %26, label %46

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) #4
  %29 = getelementptr inbounds %"class.sptk::DiscreteFourierTransform", ptr %22, i32 0, i32 1
  %30 = load i32, ptr %29, align 8, !tbaa !19
  %31 = sext i32 %30 to i64
  %32 = icmp ne i64 %28, %31
  br i1 %32, label %46, label %33

33:                                               ; preds = %26
  %34 = load ptr, ptr %9, align 8, !tbaa !5
  %35 = call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %34) #4
  %36 = getelementptr inbounds %"class.sptk::DiscreteFourierTransform", ptr %22, i32 0, i32 1
  %37 = load i32, ptr %36, align 8, !tbaa !19
  %38 = sext i32 %37 to i64
  %39 = icmp ne i64 %35, %38
  br i1 %39, label %46, label %40

40:                                               ; preds = %33
  %41 = load ptr, ptr %10, align 8, !tbaa !5
  %42 = icmp eq ptr null, %41
  br i1 %42, label %46, label %43

43:                                               ; preds = %40
  %44 = load ptr, ptr %11, align 8, !tbaa !5
  %45 = icmp eq ptr null, %44
  br i1 %45, label %46, label %47

46:                                               ; preds = %43, %40, %33, %26, %5
  store i1 false, ptr %6, align 1
  br label %167

47:                                               ; preds = %43
  %48 = load ptr, ptr %10, align 8, !tbaa !5
  %49 = call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %48) #4
  %50 = getelementptr inbounds %"class.sptk::DiscreteFourierTransform", ptr %22, i32 0, i32 1
  %51 = load i32, ptr %50, align 8, !tbaa !19
  %52 = sext i32 %51 to i64
  %53 = icmp ne i64 %49, %52
  br i1 %53, label %54, label %59

54:                                               ; preds = %47
  %55 = load ptr, ptr %10, align 8, !tbaa !5
  %56 = getelementptr inbounds %"class.sptk::DiscreteFourierTransform", ptr %22, i32 0, i32 1
  %57 = load i32, ptr %56, align 8, !tbaa !19
  %58 = sext i32 %57 to i64
  call void @_ZNSt6vectorIdSaIdEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %55, i64 noundef %58)
  br label %59

59:                                               ; preds = %54, %47
  %60 = load ptr, ptr %11, align 8, !tbaa !5
  %61 = call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %60) #4
  %62 = getelementptr inbounds %"class.sptk::DiscreteFourierTransform", ptr %22, i32 0, i32 1
  %63 = load i32, ptr %62, align 8, !tbaa !19
  %64 = sext i32 %63 to i64
  %65 = icmp ne i64 %61, %64
  br i1 %65, label %66, label %71

66:                                               ; preds = %59
  %67 = load ptr, ptr %11, align 8, !tbaa !5
  %68 = getelementptr inbounds %"class.sptk::DiscreteFourierTransform", ptr %22, i32 0, i32 1
  %69 = load i32, ptr %68, align 8, !tbaa !19
  %70 = sext i32 %69 to i64
  call void @_ZNSt6vectorIdSaIdEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %67, i64 noundef %70)
  br label %71

71:                                               ; preds = %66, %59
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  %72 = load ptr, ptr %8, align 8, !tbaa !5
  %73 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %72, i64 noundef 0) #4
  store ptr %73, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  %74 = load ptr, ptr %9, align 8, !tbaa !5
  %75 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %74, i64 noundef 0) #4
  store ptr %75, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  %76 = load ptr, ptr %10, align 8, !tbaa !5
  %77 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %76, i64 noundef 0) #4
  store ptr %77, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  %78 = load ptr, ptr %11, align 8, !tbaa !5
  %79 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %78, i64 noundef 0) #4
  store ptr %79, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #4
  store i32 0, ptr %16, align 4, !tbaa !20
  br label %80

80:                                               ; preds = %163, %71
  %81 = load i32, ptr %16, align 4, !tbaa !20
  %82 = getelementptr inbounds %"class.sptk::DiscreteFourierTransform", ptr %22, i32 0, i32 1
  %83 = load i32, ptr %82, align 8, !tbaa !19
  %84 = icmp slt i32 %81, %83
  br i1 %84, label %86, label %85

85:                                               ; preds = %80
  store i32 2, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  br label %166

86:                                               ; preds = %80
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #4
  store double 0.000000e+00, ptr %18, align 8, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #4
  store double 0.000000e+00, ptr %19, align 8, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #4
  store i32 0, ptr %20, align 4, !tbaa !20
  br label %87

87:                                               ; preds = %149, %86
  %88 = load i32, ptr %20, align 4, !tbaa !20
  %89 = getelementptr inbounds %"class.sptk::DiscreteFourierTransform", ptr %22, i32 0, i32 1
  %90 = load i32, ptr %89, align 8, !tbaa !19
  %91 = icmp slt i32 %88, %90
  br i1 %91, label %93, label %92

92:                                               ; preds = %87
  store i32 5, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #4
  br label %152

93:                                               ; preds = %87
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #4
  %94 = load i32, ptr %16, align 4, !tbaa !20
  %95 = load i32, ptr %20, align 4, !tbaa !20
  %96 = mul nsw i32 %94, %95
  %97 = getelementptr inbounds %"class.sptk::DiscreteFourierTransform", ptr %22, i32 0, i32 1
  %98 = load i32, ptr %97, align 8, !tbaa !19
  %99 = srem i32 %96, %98
  store i32 %99, ptr %21, align 4, !tbaa !20
  %100 = load ptr, ptr %12, align 8, !tbaa !5
  %101 = load i32, ptr %20, align 4, !tbaa !20
  %102 = sext i32 %101 to i64
  %103 = getelementptr inbounds double, ptr %100, i64 %102
  %104 = load double, ptr %103, align 8, !tbaa !21
  %105 = getelementptr inbounds %"class.sptk::DiscreteFourierTransform", ptr %22, i32 0, i32 4
  %106 = load i32, ptr %21, align 4, !tbaa !20
  %107 = sext i32 %106 to i64
  %108 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %105, i64 noundef %107) #4
  %109 = load double, ptr %108, align 8, !tbaa !21
  %110 = load ptr, ptr %13, align 8, !tbaa !5
  %111 = load i32, ptr %20, align 4, !tbaa !20
  %112 = sext i32 %111 to i64
  %113 = getelementptr inbounds double, ptr %110, i64 %112
  %114 = load double, ptr %113, align 8, !tbaa !21
  %115 = getelementptr inbounds %"class.sptk::DiscreteFourierTransform", ptr %22, i32 0, i32 3
  %116 = load i32, ptr %21, align 4, !tbaa !20
  %117 = sext i32 %116 to i64
  %118 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %115, i64 noundef %117) #4
  %119 = load double, ptr %118, align 8, !tbaa !21
  %120 = fmul double %114, %119
  %121 = fneg double %120
  %122 = call double @llvm.fmuladd.f64(double %104, double %109, double %121)
  %123 = load double, ptr %18, align 8, !tbaa !21
  %124 = fadd double %123, %122
  store double %124, ptr %18, align 8, !tbaa !21
  %125 = load ptr, ptr %12, align 8, !tbaa !5
  %126 = load i32, ptr %20, align 4, !tbaa !20
  %127 = sext i32 %126 to i64
  %128 = getelementptr inbounds double, ptr %125, i64 %127
  %129 = load double, ptr %128, align 8, !tbaa !21
  %130 = getelementptr inbounds %"class.sptk::DiscreteFourierTransform", ptr %22, i32 0, i32 3
  %131 = load i32, ptr %21, align 4, !tbaa !20
  %132 = sext i32 %131 to i64
  %133 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %130, i64 noundef %132) #4
  %134 = load double, ptr %133, align 8, !tbaa !21
  %135 = load ptr, ptr %13, align 8, !tbaa !5
  %136 = load i32, ptr %20, align 4, !tbaa !20
  %137 = sext i32 %136 to i64
  %138 = getelementptr inbounds double, ptr %135, i64 %137
  %139 = load double, ptr %138, align 8, !tbaa !21
  %140 = getelementptr inbounds %"class.sptk::DiscreteFourierTransform", ptr %22, i32 0, i32 4
  %141 = load i32, ptr %21, align 4, !tbaa !20
  %142 = sext i32 %141 to i64
  %143 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %140, i64 noundef %142) #4
  %144 = load double, ptr %143, align 8, !tbaa !21
  %145 = fmul double %139, %144
  %146 = call double @llvm.fmuladd.f64(double %129, double %134, double %145)
  %147 = load double, ptr %19, align 8, !tbaa !21
  %148 = fadd double %147, %146
  store double %148, ptr %19, align 8, !tbaa !21
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #4
  br label %149

149:                                              ; preds = %93
  %150 = load i32, ptr %20, align 4, !tbaa !20
  %151 = add nsw i32 %150, 1
  store i32 %151, ptr %20, align 4, !tbaa !20
  br label %87, !llvm.loop !23

152:                                              ; preds = %92
  %153 = load double, ptr %18, align 8, !tbaa !21
  %154 = load ptr, ptr %14, align 8, !tbaa !5
  %155 = load i32, ptr %16, align 4, !tbaa !20
  %156 = sext i32 %155 to i64
  %157 = getelementptr inbounds double, ptr %154, i64 %156
  store double %153, ptr %157, align 8, !tbaa !21
  %158 = load double, ptr %19, align 8, !tbaa !21
  %159 = load ptr, ptr %15, align 8, !tbaa !5
  %160 = load i32, ptr %16, align 4, !tbaa !20
  %161 = sext i32 %160 to i64
  %162 = getelementptr inbounds double, ptr %159, i64 %161
  store double %158, ptr %162, align 8, !tbaa !21
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  br label %163

163:                                              ; preds = %152
  %164 = load i32, ptr %16, align 4, !tbaa !20
  %165 = add nsw i32 %164, 1
  store i32 %165, ptr %16, align 4, !tbaa !20
  br label %80, !llvm.loop !25

166:                                              ; preds = %85
  store i1 true, ptr %6, align 1
  store i32 1, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  br label %167

167:                                              ; preds = %166, %46
  %168 = load i1, ptr %6, align 1
  ret i1 %168
}

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

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

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

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 willreturn memory(argmem: readwrite) }
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 speculatable willreturn memory(none) }
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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !12, i64 12}
!10 = !{!"_ZTSN4sptk24DiscreteFourierTransformE", !11, i64 8, !12, i64 12, !13, i64 16, !13, i64 40}
!11 = !{!"int", !7, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{!"_ZTSSt6vectorIdSaIdEE", !14, i64 0}
!14 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!17 = !{i8 0, i8 2}
!18 = !{}
!19 = !{!10, !11, i64 8}
!20 = !{!11, !11, i64 0}
!21 = !{!22, !22, i64 0}
!22 = !{!"double", !7, i64 0}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}
!25 = distinct !{!25, !24}


; 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 @_ZNSt6vectorIdSaIdEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #0 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZNK4sptk24DiscreteFourierTransform3RunERKSt6vectorIdSaIdEES5_PS3_S6_(ptr noundef nonnull align 8 dereferenceable(64) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef %3, ptr noundef %4) local_unnamed_addr #0 align 2 {
  %6 = getelementptr inbounds i8, ptr %0, i64 12
  %7 = load i8, ptr %6, align 4, !tbaa !5, !range !16, !noundef !17
  %8 = trunc nuw i8 %7 to i1
  br i1 %8, label %9, label %.loopexit

9:                                                ; preds = %5
  %10 = tail call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #3
  %11 = getelementptr inbounds i8, ptr %0, i64 8
  %12 = load i32, ptr %11, align 8, !tbaa !18
  %13 = sext i32 %12 to i64
  %.not = icmp eq i64 %10, %13
  br i1 %.not, label %14, label %.loopexit

14:                                               ; preds = %9
  %15 = tail call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #3
  %16 = load i32, ptr %11, align 8, !tbaa !18
  %17 = sext i32 %16 to i64
  %18 = icmp ne i64 %15, %17
  %19 = icmp eq ptr %3, null
  %or.cond = or i1 %19, %18
  %20 = icmp eq ptr %4, null
  %or.cond3 = or i1 %20, %or.cond
  br i1 %or.cond3, label %.loopexit, label %21

21:                                               ; preds = %14
  %22 = tail call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #3
  %23 = load i32, ptr %11, align 8, !tbaa !18
  %24 = sext i32 %23 to i64
  %.not51 = icmp eq i64 %22, %24
  br i1 %.not51, label %26, label %25

25:                                               ; preds = %21
  tail call void @_ZNSt6vectorIdSaIdEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %24)
  br label %26

26:                                               ; preds = %25, %21
  %27 = tail call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #3
  %28 = load i32, ptr %11, align 8, !tbaa !18
  %29 = sext i32 %28 to i64
  %.not52 = icmp eq i64 %27, %29
  br i1 %.not52, label %31, label %30

30:                                               ; preds = %26
  tail call void @_ZNSt6vectorIdSaIdEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %29)
  br label %31

31:                                               ; preds = %30, %26
  %32 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef 0) #3
  %33 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef 0) #3
  %34 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 0) #3
  %35 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef 0) #3
  %36 = load i32, ptr %11, align 8, !tbaa !18
  %37 = icmp sgt i32 %36, 0
  br i1 %37, label %.preheader.preheader, label %.loopexit

.preheader.preheader:                             ; preds = %31
  %38 = getelementptr inbounds i8, ptr %0, i64 40
  %39 = getelementptr inbounds i8, ptr %0, i64 16
  br label %.preheader

.preheader:                                       ; preds = %.preheader.preheader, %._crit_edge
  %40 = phi i32 [ %36, %.preheader.preheader ], [ %42, %._crit_edge ]
  %indvars.iv64 = phi i64 [ 0, %.preheader.preheader ], [ %indvars.iv.next65, %._crit_edge ]
  %41 = icmp sgt i32 %40, 0
  br i1 %41, label %.lr.ph, label %.preheader.._crit_edge_crit_edge

.preheader.._crit_edge_crit_edge:                 ; preds = %.preheader
  %.pre = sext i32 %40 to i64
  br label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph, %.preheader.._crit_edge_crit_edge
  %.pre-phi = phi i64 [ %.pre, %.preheader.._crit_edge_crit_edge ], [ %82, %.lr.ph ]
  %42 = phi i32 [ %40, %.preheader.._crit_edge_crit_edge ], [ %81, %.lr.ph ]
  %43 = phi <2 x double> [ zeroinitializer, %.preheader.._crit_edge_crit_edge ], [ %80, %.lr.ph ]
  %44 = getelementptr inbounds double, ptr %34, i64 %indvars.iv64
  %45 = extractelement <2 x double> %43, i64 0
  store double %45, ptr %44, align 8, !tbaa !19
  %46 = getelementptr inbounds double, ptr %35, i64 %indvars.iv64
  %47 = extractelement <2 x double> %43, i64 1
  store double %47, ptr %46, align 8, !tbaa !19
  %indvars.iv.next65 = add nuw nsw i64 %indvars.iv64, 1
  %48 = icmp slt i64 %indvars.iv.next65, %.pre-phi
  br i1 %48, label %.preheader, label %.loopexit, !llvm.loop !21

.lr.ph:                                           ; preds = %.preheader, %.lr.ph
  %indvars.iv61 = phi i64 [ %indvars.iv.next62, %.lr.ph ], [ 0, %.preheader ]
  %49 = phi i32 [ %81, %.lr.ph ], [ %40, %.preheader ]
  %50 = phi <2 x double> [ %80, %.lr.ph ], [ zeroinitializer, %.preheader ]
  %51 = mul nuw nsw i64 %indvars.iv61, %indvars.iv64
  %52 = trunc nuw nsw i64 %51 to i32
  %53 = srem i32 %52, %49
  %54 = getelementptr inbounds double, ptr %32, i64 %indvars.iv61
  %55 = load double, ptr %54, align 8, !tbaa !19
  %56 = zext nneg i32 %53 to i64
  %57 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %38, i64 noundef %56) #3
  %58 = load double, ptr %57, align 8, !tbaa !19
  %59 = getelementptr inbounds double, ptr %33, i64 %indvars.iv61
  %60 = load double, ptr %59, align 8, !tbaa !19
  %61 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %39, i64 noundef %56) #3
  %62 = load double, ptr %61, align 8, !tbaa !19
  %63 = fneg double %60
  %64 = load double, ptr %54, align 8, !tbaa !19
  %65 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %39, i64 noundef %56) #3
  %66 = load double, ptr %65, align 8, !tbaa !19
  %67 = load double, ptr %59, align 8, !tbaa !19
  %68 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %38, i64 noundef %56) #3
  %69 = load double, ptr %68, align 8, !tbaa !19
  %70 = insertelement <2 x double> poison, double %62, i64 0
  %71 = insertelement <2 x double> %70, double %67, i64 1
  %72 = insertelement <2 x double> poison, double %63, i64 0
  %73 = insertelement <2 x double> %72, double %69, i64 1
  %74 = fmul <2 x double> %71, %73
  %75 = insertelement <2 x double> poison, double %55, i64 0
  %76 = insertelement <2 x double> %75, double %64, i64 1
  %77 = insertelement <2 x double> poison, double %58, i64 0
  %78 = insertelement <2 x double> %77, double %66, i64 1
  %79 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %76, <2 x double> %78, <2 x double> %74)
  %80 = fadd <2 x double> %50, %79
  %indvars.iv.next62 = add nuw nsw i64 %indvars.iv61, 1
  %81 = load i32, ptr %11, align 8, !tbaa !18
  %82 = sext i32 %81 to i64
  %83 = icmp slt i64 %indvars.iv.next62, %82
  br i1 %83, label %.lr.ph, label %._crit_edge, !llvm.loop !24

.loopexit:                                        ; preds = %._crit_edge, %31, %5, %9, %14
  %.0 = phi i1 [ false, %14 ], [ false, %9 ], [ false, %5 ], [ true, %31 ], [ true, %._crit_edge ]
  ret i1 %.0
}

; 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 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: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <2 x double> @llvm.fmuladd.v2f64(<2 x double>, <2 x double>, <2 x double>) #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 = { 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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { nounwind }

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

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


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