; LLVM IR from jgaeddert/liquid-dsp :: sandbox (fft_recursive_test)

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

@.str.4 = external hidden unnamed_addr constant [4 x i8], align 1
@optarg = external global ptr, align 8
@stderr = external global ptr, align 8
@.str.5 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [5 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local void @usage() #0

declare i32 @printf(ptr noundef, ...) #1

; Function Attrs: nounwind uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #2 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca float, align 4
  %15 = alloca float, align 4
  %16 = alloca { float, float }, align 4
  store i32 0, ptr %3, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #9
  store i32 30, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #9
  br label %17

17:                                               ; preds = %29, %2
  %18 = load i32, ptr %4, align 4, !tbaa !5
  %19 = load ptr, ptr %5, align 8, !tbaa !9
  %20 = call i32 @getopt(i32 noundef %18, ptr noundef %19, ptr noundef @.str.4) #9
  store i32 %20, ptr %7, align 4, !tbaa !5
  %21 = icmp ne i32 %20, -1
  br i1 %21, label %22, label %30

22:                                               ; preds = %17
  %23 = load i32, ptr %7, align 4, !tbaa !5
  switch i32 %23, label %28 [
    i32 104, label %24
    i32 110, label %25
  ]

24:                                               ; preds = %22
  call void @usage()
  store i32 0, ptr %3, align 4
  store i32 1, ptr %8, align 4
  br label %180

25:                                               ; preds = %22
  %26 = load ptr, ptr @optarg, align 8, !tbaa !9
  %27 = call i32 @atoi(ptr noundef %26) #10
  store i32 %27, ptr %6, align 4, !tbaa !5
  br label %29

28:                                               ; preds = %22
  call void @exit(i32 noundef 1) #11
  unreachable

29:                                               ; preds = %25
  br label %17, !llvm.loop !11

30:                                               ; preds = %17
  %31 = load i32, ptr %6, align 4, !tbaa !5
  %32 = icmp ult i32 %31, 2
  br i1 %32, label %33, label %39

33:                                               ; preds = %30
  %34 = load ptr, ptr @stderr, align 8, !tbaa !9
  %35 = load ptr, ptr %5, align 8, !tbaa !9
  %36 = getelementptr inbounds ptr, ptr %35, i64 0
  %37 = load ptr, ptr %36, align 8, !tbaa !9
  %38 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %34, ptr noundef @.str.5, ptr noundef %37) #9
  call void @exit(i32 noundef 1) #11
  unreachable

39:                                               ; preds = %30
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #9
  %40 = load i32, ptr %6, align 4, !tbaa !5
  %41 = zext i32 %40 to i64
  %42 = call ptr @llvm.stacksave.p0()
  store ptr %42, ptr %10, align 8
  %43 = alloca { float, float }, i64 %41, align 16
  store i64 %41, ptr %11, align 8
  %44 = load i32, ptr %6, align 4, !tbaa !5
  %45 = zext i32 %44 to i64
  %46 = alloca { float, float }, i64 %45, align 16
  store i64 %45, ptr %12, align 8
  %47 = load i32, ptr %6, align 4, !tbaa !5
  %48 = zext i32 %47 to i64
  %49 = alloca { float, float }, i64 %48, align 16
  store i64 %48, ptr %13, align 8
  store i32 0, ptr %9, align 4, !tbaa !5
  br label %50

50:                                               ; preds = %68, %39
  %51 = load i32, ptr %9, align 4, !tbaa !5
  %52 = load i32, ptr %6, align 4, !tbaa !5
  %53 = icmp ult i32 %51, %52
  br i1 %53, label %54, label %71

54:                                               ; preds = %50
  %55 = load i32, ptr %9, align 4, !tbaa !5
  %56 = uitofp i32 %55 to float
  %57 = load i32, ptr %9, align 4, !tbaa !5
  %58 = uitofp i32 %57 to float
  %59 = fsub float 3.000000e+00, %58
  %60 = fmul float 0.000000e+00, %59
  %61 = fmul float 1.000000e+00, %59
  %62 = fadd float %56, %60
  %63 = load i32, ptr %9, align 4, !tbaa !5
  %64 = zext i32 %63 to i64
  %65 = getelementptr inbounds { float, float }, ptr %43, i64 %64
  %66 = getelementptr inbounds { float, float }, ptr %65, i32 0, i32 0
  %67 = getelementptr inbounds { float, float }, ptr %65, i32 0, i32 1
  store float %62, ptr %66, align 8
  store float %61, ptr %67, align 4
  br label %68

68:                                               ; preds = %54
  %69 = load i32, ptr %9, align 4, !tbaa !5
  %70 = add i32 %69, 1
  store i32 %70, ptr %9, align 4, !tbaa !5
  br label %50, !llvm.loop !13

71:                                               ; preds = %50
  %72 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  %73 = load i32, ptr %6, align 4, !tbaa !5
  call void @dft_run(i32 noundef %73, ptr noundef %43, ptr noundef %49, i32 noundef -1)
  store i32 0, ptr %9, align 4, !tbaa !5
  br label %74

74:                                               ; preds = %84, %71
  %75 = load i32, ptr %9, align 4, !tbaa !5
  %76 = load i32, ptr %6, align 4, !tbaa !5
  %77 = icmp ult i32 %75, %76
  br i1 %77, label %78, label %87

78:                                               ; preds = %74
  %79 = load i32, ptr %9, align 4, !tbaa !5
  %80 = zext i32 %79 to i64
  %81 = getelementptr inbounds { float, float }, ptr %46, i64 %80
  %82 = getelementptr inbounds { float, float }, ptr %81, i32 0, i32 0
  %83 = getelementptr inbounds { float, float }, ptr %81, i32 0, i32 1
  store float 0.000000e+00, ptr %82, align 8
  store float 0.000000e+00, ptr %83, align 4
  br label %84

84:                                               ; preds = %78
  %85 = load i32, ptr %9, align 4, !tbaa !5
  %86 = add i32 %85, 1
  store i32 %86, ptr %9, align 4, !tbaa !5
  br label %74, !llvm.loop !14

87:                                               ; preds = %74
  %88 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  %89 = load i32, ptr %6, align 4, !tbaa !5
  call void @fft_recursion(i32 noundef %89, ptr noundef %43, ptr noundef %46, i32 noundef -1)
  store i32 0, ptr %9, align 4, !tbaa !5
  br label %90

90:                                               ; preds = %129, %87
  %91 = load i32, ptr %9, align 4, !tbaa !5
  %92 = load i32, ptr %6, align 4, !tbaa !5
  %93 = icmp ult i32 %91, %92
  br i1 %93, label %94, label %132

94:                                               ; preds = %90
  %95 = load i32, ptr %9, align 4, !tbaa !5
  %96 = load i32, ptr %9, align 4, !tbaa !5
  %97 = zext i32 %96 to i64
  %98 = getelementptr inbounds { float, float }, ptr %46, i64 %97
  %99 = getelementptr inbounds { float, float }, ptr %98, i32 0, i32 0
  %100 = load float, ptr %99, align 8
  %101 = getelementptr inbounds { float, float }, ptr %98, i32 0, i32 1
  %102 = load float, ptr %101, align 4
  %103 = fpext float %100 to double
  %104 = load i32, ptr %9, align 4, !tbaa !5
  %105 = zext i32 %104 to i64
  %106 = getelementptr inbounds { float, float }, ptr %46, i64 %105
  %107 = getelementptr inbounds { float, float }, ptr %106, i32 0, i32 0
  %108 = load float, ptr %107, align 8
  %109 = getelementptr inbounds { float, float }, ptr %106, i32 0, i32 1
  %110 = load float, ptr %109, align 4
  %111 = fpext float %110 to double
  %112 = load i32, ptr %9, align 4, !tbaa !5
  %113 = zext i32 %112 to i64
  %114 = getelementptr inbounds { float, float }, ptr %49, i64 %113
  %115 = getelementptr inbounds { float, float }, ptr %114, i32 0, i32 0
  %116 = load float, ptr %115, align 8
  %117 = getelementptr inbounds { float, float }, ptr %114, i32 0, i32 1
  %118 = load float, ptr %117, align 4
  %119 = fpext float %116 to double
  %120 = load i32, ptr %9, align 4, !tbaa !5
  %121 = zext i32 %120 to i64
  %122 = getelementptr inbounds { float, float }, ptr %49, i64 %121
  %123 = getelementptr inbounds { float, float }, ptr %122, i32 0, i32 0
  %124 = load float, ptr %123, align 8
  %125 = getelementptr inbounds { float, float }, ptr %122, i32 0, i32 1
  %126 = load float, ptr %125, align 4
  %127 = fpext float %126 to double
  %128 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, i32 noundef %95, double noundef %103, double noundef %111, double noundef %119, double noundef %127)
  br label %129

129:                                              ; preds = %94
  %130 = load i32, ptr %9, align 4, !tbaa !5
  %131 = add i32 %130, 1
  store i32 %131, ptr %9, align 4, !tbaa !5
  br label %90, !llvm.loop !15

132:                                              ; preds = %90
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #9
  store float 0.000000e+00, ptr %14, align 4, !tbaa !16
  store i32 0, ptr %9, align 4, !tbaa !5
  br label %133

133:                                              ; preds = %162, %132
  %134 = load i32, ptr %9, align 4, !tbaa !5
  %135 = load i32, ptr %6, align 4, !tbaa !5
  %136 = icmp ult i32 %134, %135
  br i1 %136, label %137, label %165

137:                                              ; preds = %133
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #9
  %138 = load i32, ptr %9, align 4, !tbaa !5
  %139 = zext i32 %138 to i64
  %140 = getelementptr inbounds { float, float }, ptr %46, i64 %139
  %141 = getelementptr inbounds { float, float }, ptr %140, i32 0, i32 0
  %142 = load float, ptr %141, align 8
  %143 = getelementptr inbounds { float, float }, ptr %140, i32 0, i32 1
  %144 = load float, ptr %143, align 4
  %145 = load i32, ptr %9, align 4, !tbaa !5
  %146 = zext i32 %145 to i64
  %147 = getelementptr inbounds { float, float }, ptr %49, i64 %146
  %148 = getelementptr inbounds { float, float }, ptr %147, i32 0, i32 0
  %149 = load float, ptr %148, align 8
  %150 = getelementptr inbounds { float, float }, ptr %147, i32 0, i32 1
  %151 = load float, ptr %150, align 4
  %152 = fsub float %142, %149
  %153 = fsub float %144, %151
  %154 = getelementptr inbounds { float, float }, ptr %16, i32 0, i32 0
  %155 = getelementptr inbounds { float, float }, ptr %16, i32 0, i32 1
  store float %152, ptr %154, align 4
  store float %153, ptr %155, align 4
  %156 = load <2 x float>, ptr %16, align 4
  %157 = call float @cabsf(<2 x float> noundef %156) #9
  store float %157, ptr %15, align 4, !tbaa !16
  %158 = load float, ptr %15, align 4, !tbaa !16
  %159 = load float, ptr %15, align 4, !tbaa !16
  %160 = load float, ptr %14, align 4, !tbaa !16
  %161 = call float @llvm.fmuladd.f32(float %158, float %159, float %160)
  store float %161, ptr %14, align 4, !tbaa !16
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #9
  br label %162

162:                                              ; preds = %137
  %163 = load i32, ptr %9, align 4, !tbaa !5
  %164 = add i32 %163, 1
  store i32 %164, ptr %9, align 4, !tbaa !5
  br label %133, !llvm.loop !18

165:                                              ; preds = %133
  %166 = load float, ptr %14, align 4, !tbaa !16
  %167 = load i32, ptr %6, align 4, !tbaa !5
  %168 = uitofp i32 %167 to float
  %169 = fdiv float %166, %168
  %170 = call float @sqrtf(float noundef %169) #9
  store float %170, ptr %14, align 4, !tbaa !16
  %171 = load float, ptr %14, align 4, !tbaa !16
  %172 = fpext float %171 to double
  %173 = load float, ptr %14, align 4, !tbaa !16
  %174 = fpext float %173 to double
  %175 = fcmp olt double %174, 1.000000e-03
  %176 = zext i1 %175 to i64
  %177 = select i1 %175, ptr @.str.10, ptr @.str.11
  %178 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, double noundef %172, ptr noundef %177)
  store i32 0, ptr %3, align 4
  store i32 1, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #9
  %179 = load ptr, ptr %10, align 8
  call void @llvm.stackrestore.p0(ptr %179)
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #9
  br label %180

180:                                              ; preds = %165, %24
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #9
  %181 = load i32, ptr %3, align 4
  ret i32 %181
}

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

; Function Attrs: nounwind
declare i32 @getopt(i32 noundef, ptr noundef, ptr noundef) #4

; Function Attrs: inlinehint nounwind willreturn memory(read) uwtable
declare i32 @atoi(ptr noundef nonnull) #5

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) #6

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #4

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #7

; Function Attrs: nounwind uwtable
declare dso_local void @dft_run(i32 noundef, ptr noundef, ptr noundef, i32 noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local void @fft_recursion(i32 noundef, ptr noundef, ptr noundef, i32 noundef) #2

; Function Attrs: nounwind
declare float @cabsf(<2 x float> noundef) #4

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #8

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

; Function Attrs: nounwind
declare float @sqrtf(float noundef) #4

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #7

attributes #0 = { 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 #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 = { nounwind uwtable "min-legal-vector-width"="64" "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 = { inlinehint nounwind willreturn memory(read) 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 #6 = { noreturn 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 #7 = { nocallback nofree nosync nounwind willreturn }
attributes #8 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #9 = { nounwind }
attributes #10 = { nounwind willreturn memory(read) }
attributes #11 = { noreturn 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !12}
!16 = !{!17, !17, i64 0}
!17 = !{!"float", !7, i64 0}
!18 = distinct !{!18, !12}


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

@.str.4 = external hidden unnamed_addr constant [4 x i8], align 1
@optarg = external local_unnamed_addr global ptr, align 8
@stderr = external local_unnamed_addr global ptr, align 8
@.str.5 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [5 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local void @usage() local_unnamed_addr #0

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr noundef %1) local_unnamed_addr #2 {
  br label %3

3:                                                ; preds = %6, %2
  %.043 = phi i32 [ 30, %2 ], [ %8, %6 ]
  %4 = tail call i32 @getopt(i32 noundef %0, ptr noundef %1, ptr noundef nonnull @.str.4) #10
  switch i32 %4, label %9 [
    i32 -1, label %10
    i32 104, label %5
    i32 110, label %6
  ]

5:                                                ; preds = %3
  tail call void @usage()
  br label %68

6:                                                ; preds = %3
  %7 = load ptr, ptr @optarg, align 8, !tbaa !5
  %8 = tail call i32 @atoi(ptr nocapture noundef %7) #11
  br label %3, !llvm.loop !9

9:                                                ; preds = %3
  tail call void @exit(i32 noundef 1) #12
  unreachable

10:                                               ; preds = %3
  %11 = icmp ult i32 %.043, 2
  br i1 %11, label %12, label %16

12:                                               ; preds = %10
  %13 = load ptr, ptr @stderr, align 8, !tbaa !5
  %14 = load ptr, ptr %1, align 8, !tbaa !5
  %15 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %13, ptr noundef nonnull @.str.5, ptr noundef %14) #13
  tail call void @exit(i32 noundef 1) #12
  unreachable

16:                                               ; preds = %10
  %17 = zext i32 %.043 to i64
  %18 = tail call ptr @llvm.stacksave.p0()
  %19 = alloca { float, float }, i64 %17, align 16
  %20 = alloca { float, float }, i64 %17, align 16
  %21 = alloca { float, float }, i64 %17, align 16
  %min.iters.check = icmp ult i32 %.043, 4
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.ph

vector.ph:                                        ; preds = %16
  %n.vec = and i64 %17, 4294967292
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %vec.ind = phi <4 x i32> [ <i32 0, i32 1, i32 2, i32 3>, %vector.ph ], [ %vec.ind.next, %vector.body ]
  %22 = uitofp <4 x i32> %vec.ind to <4 x float>
  %23 = fsub <4 x float> <float 3.000000e+00, float 3.000000e+00, float 3.000000e+00, float 3.000000e+00>, %22
  %24 = fmul <4 x float> %23, zeroinitializer
  %25 = fadd <4 x float> %24, %22
  %26 = getelementptr inbounds { float, float }, ptr %19, i64 %index
  %interleaved.vec = shufflevector <4 x float> %25, <4 x float> %23, <8 x i32> <i32 0, i32 4, i32 1, i32 5, i32 2, i32 6, i32 3, i32 7>
  store <8 x float> %interleaved.vec, ptr %26, align 16
  %index.next = add nuw i64 %index, 4
  %vec.ind.next = add <4 x i32> %vec.ind, <i32 4, i32 4, i32 4, i32 4>
  %27 = icmp eq i64 %index.next, %n.vec
  br i1 %27, label %middle.block, label %vector.body, !llvm.loop !11

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %17
  br i1 %cmp.n, label %.loopexit, label %scalar.ph.preheader

scalar.ph.preheader:                              ; preds = %middle.block, %16
  %indvars.iv.ph = phi i64 [ 0, %16 ], [ %n.vec, %middle.block ]
  br label %scalar.ph

scalar.ph:                                        ; preds = %scalar.ph.preheader, %scalar.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %scalar.ph ], [ %indvars.iv.ph, %scalar.ph.preheader ]
  %28 = trunc nuw i64 %indvars.iv to i32
  %29 = uitofp i32 %28 to float
  %30 = fsub float 3.000000e+00, %29
  %31 = fmul float %30, 0.000000e+00
  %32 = fadd float %31, %29
  %33 = getelementptr inbounds { float, float }, ptr %19, i64 %indvars.iv
  %34 = getelementptr inbounds i8, ptr %33, i64 4
  store float %32, ptr %33, align 8
  store float %30, ptr %34, align 4
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %17
  br i1 %exitcond.not, label %.loopexit, label %scalar.ph, !llvm.loop !14

.loopexit:                                        ; preds = %scalar.ph, %middle.block
  %35 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6)
  call void @dft_run(i32 noundef %.043, ptr noundef nonnull %19, ptr noundef nonnull %21, i32 noundef -1)
  %36 = shl nuw nsw i64 %17, 3
  call void @llvm.memset.p0.i64(ptr nonnull align 16 %20, i8 0, i64 %36, i1 false)
  %37 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7)
  call void @fft_recursion(i32 noundef %.043, ptr noundef nonnull %19, ptr noundef nonnull %20, i32 noundef -1)
  br label %38

38:                                               ; preds = %.loopexit, %38
  %indvars.iv58 = phi i64 [ 0, %.loopexit ], [ %indvars.iv.next59, %38 ]
  %39 = getelementptr inbounds { float, float }, ptr %20, i64 %indvars.iv58
  %40 = load float, ptr %39, align 8
  %41 = getelementptr inbounds i8, ptr %39, i64 4
  %42 = fpext float %40 to double
  %43 = load float, ptr %41, align 4
  %44 = fpext float %43 to double
  %45 = getelementptr inbounds { float, float }, ptr %21, i64 %indvars.iv58
  %46 = load float, ptr %45, align 8
  %47 = getelementptr inbounds i8, ptr %45, i64 4
  %48 = fpext float %46 to double
  %49 = load float, ptr %47, align 4
  %50 = fpext float %49 to double
  %51 = trunc nuw i64 %indvars.iv58 to i32
  %52 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8, i32 noundef %51, double noundef %42, double noundef %44, double noundef %48, double noundef %50)
  %indvars.iv.next59 = add nuw nsw i64 %indvars.iv58, 1
  %exitcond62.not = icmp eq i64 %indvars.iv.next59, %17
  br i1 %exitcond62.not, label %.preheader, label %38, !llvm.loop !15

.preheader:                                       ; preds = %38, %.preheader
  %indvars.iv63 = phi i64 [ %indvars.iv.next64, %.preheader ], [ 0, %38 ]
  %.04251 = phi float [ %59, %.preheader ], [ 0.000000e+00, %38 ]
  %53 = getelementptr inbounds { float, float }, ptr %20, i64 %indvars.iv63
  %54 = getelementptr inbounds { float, float }, ptr %21, i64 %indvars.iv63
  %55 = load <2 x float>, ptr %53, align 8
  %56 = load <2 x float>, ptr %54, align 8
  %57 = fsub <2 x float> %55, %56
  %58 = call float @cabsf(<2 x float> noundef %57) #10
  %59 = call float @llvm.fmuladd.f32(float %58, float %58, float %.04251)
  %indvars.iv.next64 = add nuw nsw i64 %indvars.iv63, 1
  %exitcond67.not = icmp eq i64 %indvars.iv.next64, %17
  br i1 %exitcond67.not, label %60, label %.preheader, !llvm.loop !16

60:                                               ; preds = %.preheader
  %61 = uitofp i32 %.043 to float
  %62 = fdiv float %59, %61
  %63 = call float @sqrtf(float noundef %62) #10
  %64 = fpext float %63 to double
  %65 = fcmp olt double %64, 1.000000e-03
  %66 = select i1 %65, ptr @.str.10, ptr @.str.11
  %67 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.9, double noundef %64, ptr noundef nonnull %66)
  call void @llvm.stackrestore.p0(ptr %18)
  br label %68

68:                                               ; preds = %60, %5
  ret i32 0
}

; Function Attrs: nounwind
declare i32 @getopt(i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress nofree nounwind willreturn memory(read) uwtable
declare i32 @atoi(ptr nocapture noundef nonnull) local_unnamed_addr #4

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) local_unnamed_addr #5

; Function Attrs: nofree nounwind
declare noundef i32 @fprintf(ptr nocapture noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #1

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #6

; Function Attrs: nounwind uwtable
declare dso_local void @dft_run(i32 noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local void @fft_recursion(i32 noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: nounwind
declare float @cabsf(<2 x float> noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #7

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare float @sqrtf(float noundef) local_unnamed_addr #8

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #6

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #9

attributes #0 = { 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 #1 = { nofree 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 #2 = { nounwind uwtable "min-legal-vector-width"="64" "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 "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 = { inlinehint mustprogress nofree nounwind willreturn memory(read) 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 #5 = { noreturn 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 #6 = { mustprogress nocallback nofree nosync nounwind willreturn }
attributes #7 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #8 = { 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 #9 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #10 = { nounwind }
attributes #11 = { nounwind willreturn memory(read) }
attributes #12 = { noreturn nounwind }
attributes #13 = { cold 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/C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10, !12, !13}
!12 = !{!"llvm.loop.isvectorized", i32 1}
!13 = !{!"llvm.loop.unroll.runtime.disable"}
!14 = distinct !{!14, !10, !13, !12}
!15 = distinct !{!15, !10}
!16 = distinct !{!16, !10}


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