; LLVM IR from sp-nitech/SPTK :: src/math (inverse_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::InverseDiscreteFourierTransform" = 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 @_ZNK4sptk31InverseDiscreteFourierTransform3RunERKSt6vectorIdSaIdEES5_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::InverseDiscreteFourierTransform", 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::InverseDiscreteFourierTransform", 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::InverseDiscreteFourierTransform", 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 %175

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::InverseDiscreteFourierTransform", 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::InverseDiscreteFourierTransform", 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::InverseDiscreteFourierTransform", 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::InverseDiscreteFourierTransform", 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 = %171, %71
  %81 = load i32, ptr %16, align 4, !tbaa !20
  %82 = getelementptr inbounds %"class.sptk::InverseDiscreteFourierTransform", 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 %174

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::InverseDiscreteFourierTransform", 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 %20, align 4, !tbaa !20
  %95 = load i32, ptr %16, align 4, !tbaa !20
  %96 = mul nsw i32 %94, %95
  %97 = getelementptr inbounds %"class.sptk::InverseDiscreteFourierTransform", 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::InverseDiscreteFourierTransform", 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::InverseDiscreteFourierTransform", 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 = call double @llvm.fmuladd.f64(double %104, double %109, double %120)
  %122 = load double, ptr %18, align 8, !tbaa !21
  %123 = fadd double %122, %121
  store double %123, ptr %18, align 8, !tbaa !21
  %124 = load ptr, ptr %12, align 8, !tbaa !5
  %125 = load i32, ptr %20, align 4, !tbaa !20
  %126 = sext i32 %125 to i64
  %127 = getelementptr inbounds double, ptr %124, i64 %126
  %128 = load double, ptr %127, align 8, !tbaa !21
  %129 = getelementptr inbounds %"class.sptk::InverseDiscreteFourierTransform", ptr %22, i32 0, i32 3
  %130 = load i32, ptr %21, align 4, !tbaa !20
  %131 = sext i32 %130 to i64
  %132 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %129, i64 noundef %131) #4
  %133 = load double, ptr %132, align 8, !tbaa !21
  %134 = load ptr, ptr %13, align 8, !tbaa !5
  %135 = load i32, ptr %20, align 4, !tbaa !20
  %136 = sext i32 %135 to i64
  %137 = getelementptr inbounds double, ptr %134, i64 %136
  %138 = load double, ptr %137, align 8, !tbaa !21
  %139 = getelementptr inbounds %"class.sptk::InverseDiscreteFourierTransform", ptr %22, i32 0, i32 4
  %140 = load i32, ptr %21, align 4, !tbaa !20
  %141 = sext i32 %140 to i64
  %142 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %139, i64 noundef %141) #4
  %143 = load double, ptr %142, align 8, !tbaa !21
  %144 = fmul double %138, %143
  %145 = fneg double %144
  %146 = call double @llvm.fmuladd.f64(double %128, double %133, 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 = getelementptr inbounds %"class.sptk::InverseDiscreteFourierTransform", ptr %22, i32 0, i32 1
  %155 = load i32, ptr %154, align 8, !tbaa !19
  %156 = sitofp i32 %155 to double
  %157 = fdiv double %153, %156
  %158 = load ptr, ptr %14, align 8, !tbaa !5
  %159 = load i32, ptr %16, align 4, !tbaa !20
  %160 = sext i32 %159 to i64
  %161 = getelementptr inbounds double, ptr %158, i64 %160
  store double %157, ptr %161, align 8, !tbaa !21
  %162 = load double, ptr %19, align 8, !tbaa !21
  %163 = getelementptr inbounds %"class.sptk::InverseDiscreteFourierTransform", ptr %22, i32 0, i32 1
  %164 = load i32, ptr %163, align 8, !tbaa !19
  %165 = sitofp i32 %164 to double
  %166 = fdiv double %162, %165
  %167 = load ptr, ptr %15, align 8, !tbaa !5
  %168 = load i32, ptr %16, align 4, !tbaa !20
  %169 = sext i32 %168 to i64
  %170 = getelementptr inbounds double, ptr %167, i64 %169
  store double %166, ptr %170, 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 %171

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

174:                                              ; 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 %175

175:                                              ; preds = %174, %46
  %176 = load i1, ptr %6, align 1
  ret i1 %176
}

; 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 = !{!"_ZTSN4sptk31InverseDiscreteFourierTransformE", !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 @_ZNK4sptk31InverseDiscreteFourierTransform3RunERKSt6vectorIdSaIdEES5_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.iv67 = phi i64 [ 0, %.preheader.preheader ], [ %indvars.iv.next68, %._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 ], [ %85, %.lr.ph ]
  %42 = phi i32 [ %40, %.preheader.._crit_edge_crit_edge ], [ %84, %.lr.ph ]
  %43 = phi <2 x double> [ zeroinitializer, %.preheader.._crit_edge_crit_edge ], [ %83, %.lr.ph ]
  %44 = sitofp i32 %42 to double
  %45 = extractelement <2 x double> %43, i64 0
  %46 = fdiv double %45, %44
  %47 = getelementptr inbounds double, ptr %34, i64 %indvars.iv67
  store double %46, ptr %47, align 8, !tbaa !19
  %48 = extractelement <2 x double> %43, i64 1
  %49 = fdiv double %48, %44
  %50 = getelementptr inbounds double, ptr %35, i64 %indvars.iv67
  store double %49, ptr %50, align 8, !tbaa !19
  %indvars.iv.next68 = add nuw nsw i64 %indvars.iv67, 1
  %51 = icmp slt i64 %indvars.iv.next68, %.pre-phi
  br i1 %51, label %.preheader, label %.loopexit, !llvm.loop !21

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