; LLVM IR from sp-nitech/SPTK :: third_party/REAPER/epoch_tracker (epoch_tracker)

; 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::reaper::FFT" = type { ptr, ptr, i32, i32, i32, i32 }

declare i32 @__gxx_personality_v0(...)

; 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: mustprogress uwtable
define dso_local void @_ZN4sptk6reaper12EpochTracker16HilbertTransformEPsiPf(ptr noundef nonnull align 8 dereferenceable(500) %0, ptr noundef %1, i32 noundef %2, ptr noundef %3) #1 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca %"class.sptk::reaper::FFT", align 8
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca float, align 4
  %19 = alloca i32, align 4
  %20 = alloca float, align 4
  %21 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store i32 %2, ptr %7, align 4, !tbaa !9
  store ptr %3, ptr %8, align 8, !tbaa !5
  %22 = load ptr, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr %9) #8
  %23 = load i32, ptr %7, align 4, !tbaa !9
  %24 = call noundef i32 @_ZN4sptk6reaper3FFT25fft_pow2_from_window_sizeEi(i32 noundef %23)
  call void @_ZN4sptk6reaper3FFTC1Ei(ptr noundef nonnull align 8 dereferenceable(32) %9, i32 noundef %24)
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #8
  %25 = invoke noundef i32 @_ZN4sptk6reaper3FFT11get_fftSizeEv(ptr noundef nonnull align 8 dereferenceable(32) %9)
          to label %26 unwind label %48

26:                                               ; preds = %4
  store i32 %25, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #8
  %27 = load i32, ptr %10, align 4, !tbaa !9
  %28 = sext i32 %27 to i64
  %29 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %28, i64 4)
  %30 = extractvalue { i64, i1 } %29, 1
  %31 = extractvalue { i64, i1 } %29, 0
  %32 = select i1 %30, i64 -1, i64 %31
  %33 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %32) #9
          to label %34 unwind label %52

34:                                               ; preds = %26
  store ptr %33, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #8
  %35 = load i32, ptr %10, align 4, !tbaa !9
  %36 = sext i32 %35 to i64
  %37 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %36, i64 4)
  %38 = extractvalue { i64, i1 } %37, 1
  %39 = extractvalue { i64, i1 } %37, 0
  %40 = select i1 %38, i64 -1, i64 %39
  %41 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %40) #9
          to label %42 unwind label %56

42:                                               ; preds = %34
  store ptr %41, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #8
  store i32 0, ptr %15, align 4, !tbaa !9
  br label %43

43:                                               ; preds = %75, %42
  %44 = load i32, ptr %15, align 4, !tbaa !9
  %45 = load i32, ptr %7, align 4, !tbaa !9
  %46 = icmp slt i32 %44, %45
  br i1 %46, label %60, label %47

47:                                               ; preds = %43
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #8
  br label %78

48:                                               ; preds = %4
  %49 = landingpad { ptr, i32 }
          cleanup
  %50 = extractvalue { ptr, i32 } %49, 0
  store ptr %50, ptr %11, align 8
  %51 = extractvalue { ptr, i32 } %49, 1
  store i32 %51, ptr %12, align 4
  br label %203

52:                                               ; preds = %26
  %53 = landingpad { ptr, i32 }
          cleanup
  %54 = extractvalue { ptr, i32 } %53, 0
  store ptr %54, ptr %11, align 8
  %55 = extractvalue { ptr, i32 } %53, 1
  store i32 %55, ptr %12, align 4
  br label %202

56:                                               ; preds = %168, %97, %34
  %57 = landingpad { ptr, i32 }
          cleanup
  %58 = extractvalue { ptr, i32 } %57, 0
  store ptr %58, ptr %11, align 8
  %59 = extractvalue { ptr, i32 } %57, 1
  store i32 %59, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  br label %202

60:                                               ; preds = %43
  %61 = load ptr, ptr %6, align 8, !tbaa !5
  %62 = load i32, ptr %15, align 4, !tbaa !9
  %63 = sext i32 %62 to i64
  %64 = getelementptr inbounds i16, ptr %61, i64 %63
  %65 = load i16, ptr %64, align 2, !tbaa !11
  %66 = sitofp i16 %65 to float
  %67 = load ptr, ptr %13, align 8, !tbaa !5
  %68 = load i32, ptr %15, align 4, !tbaa !9
  %69 = sext i32 %68 to i64
  %70 = getelementptr inbounds float, ptr %67, i64 %69
  store float %66, ptr %70, align 4, !tbaa !13
  %71 = load ptr, ptr %14, align 8, !tbaa !5
  %72 = load i32, ptr %15, align 4, !tbaa !9
  %73 = sext i32 %72 to i64
  %74 = getelementptr inbounds float, ptr %71, i64 %73
  store float 0.000000e+00, ptr %74, align 4, !tbaa !13
  br label %75

75:                                               ; preds = %60
  %76 = load i32, ptr %15, align 4, !tbaa !9
  %77 = add nsw i32 %76, 1
  store i32 %77, ptr %15, align 4, !tbaa !9
  br label %43, !llvm.loop !15

78:                                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #8
  %79 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %79, ptr %16, align 4, !tbaa !9
  br label %80

80:                                               ; preds = %94, %78
  %81 = load i32, ptr %16, align 4, !tbaa !9
  %82 = load i32, ptr %10, align 4, !tbaa !9
  %83 = icmp slt i32 %81, %82
  br i1 %83, label %85, label %84

84:                                               ; preds = %80
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #8
  br label %97

85:                                               ; preds = %80
  %86 = load ptr, ptr %13, align 8, !tbaa !5
  %87 = load i32, ptr %16, align 4, !tbaa !9
  %88 = sext i32 %87 to i64
  %89 = getelementptr inbounds float, ptr %86, i64 %88
  store float 0.000000e+00, ptr %89, align 4, !tbaa !13
  %90 = load ptr, ptr %14, align 8, !tbaa !5
  %91 = load i32, ptr %16, align 4, !tbaa !9
  %92 = sext i32 %91 to i64
  %93 = getelementptr inbounds float, ptr %90, i64 %92
  store float 0.000000e+00, ptr %93, align 4, !tbaa !13
  br label %94

94:                                               ; preds = %85
  %95 = load i32, ptr %16, align 4, !tbaa !9
  %96 = add nsw i32 %95, 1
  store i32 %96, ptr %16, align 4, !tbaa !9
  br label %80, !llvm.loop !17

97:                                               ; preds = %84
  %98 = load ptr, ptr %13, align 8, !tbaa !5
  %99 = load ptr, ptr %14, align 8, !tbaa !5
  invoke void @_ZN4sptk6reaper3FFT3fftEPfS2_(ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef %98, ptr noundef %99)
          to label %100 unwind label %56

100:                                              ; preds = %97
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #8
  store i32 1, ptr %17, align 4, !tbaa !9
  br label %101

101:                                              ; preds = %128, %100
  %102 = load i32, ptr %17, align 4, !tbaa !9
  %103 = load i32, ptr %10, align 4, !tbaa !9
  %104 = sdiv i32 %103, 2
  %105 = icmp slt i32 %102, %104
  br i1 %105, label %107, label %106

106:                                              ; preds = %101
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #8
  br label %131

107:                                              ; preds = %101
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #8
  %108 = load ptr, ptr %14, align 8, !tbaa !5
  %109 = load i32, ptr %17, align 4, !tbaa !9
  %110 = sext i32 %109 to i64
  %111 = getelementptr inbounds float, ptr %108, i64 %110
  %112 = load float, ptr %111, align 4, !tbaa !13
  store float %112, ptr %18, align 4, !tbaa !13
  %113 = load ptr, ptr %13, align 8, !tbaa !5
  %114 = load i32, ptr %17, align 4, !tbaa !9
  %115 = sext i32 %114 to i64
  %116 = getelementptr inbounds float, ptr %113, i64 %115
  %117 = load float, ptr %116, align 4, !tbaa !13
  %118 = fneg float %117
  %119 = load ptr, ptr %14, align 8, !tbaa !5
  %120 = load i32, ptr %17, align 4, !tbaa !9
  %121 = sext i32 %120 to i64
  %122 = getelementptr inbounds float, ptr %119, i64 %121
  store float %118, ptr %122, align 4, !tbaa !13
  %123 = load float, ptr %18, align 4, !tbaa !13
  %124 = load ptr, ptr %13, align 8, !tbaa !5
  %125 = load i32, ptr %17, align 4, !tbaa !9
  %126 = sext i32 %125 to i64
  %127 = getelementptr inbounds float, ptr %124, i64 %126
  store float %123, ptr %127, align 4, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #8
  br label %128

128:                                              ; preds = %107
  %129 = load i32, ptr %17, align 4, !tbaa !9
  %130 = add nsw i32 %129, 1
  store i32 %130, ptr %17, align 4, !tbaa !9
  br label %101, !llvm.loop !18

131:                                              ; preds = %106
  %132 = load ptr, ptr %14, align 8, !tbaa !5
  %133 = getelementptr inbounds float, ptr %132, i64 0
  store float 0.000000e+00, ptr %133, align 4, !tbaa !13
  %134 = load ptr, ptr %13, align 8, !tbaa !5
  %135 = getelementptr inbounds float, ptr %134, i64 0
  store float 0.000000e+00, ptr %135, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #8
  %136 = load i32, ptr %10, align 4, !tbaa !9
  %137 = sdiv i32 %136, 2
  %138 = add nsw i32 %137, 1
  store i32 %138, ptr %19, align 4, !tbaa !9
  br label %139

139:                                              ; preds = %165, %131
  %140 = load i32, ptr %19, align 4, !tbaa !9
  %141 = load i32, ptr %10, align 4, !tbaa !9
  %142 = icmp slt i32 %140, %141
  br i1 %142, label %144, label %143

143:                                              ; preds = %139
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #8
  br label %168

144:                                              ; preds = %139
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #8
  %145 = load ptr, ptr %14, align 8, !tbaa !5
  %146 = load i32, ptr %19, align 4, !tbaa !9
  %147 = sext i32 %146 to i64
  %148 = getelementptr inbounds float, ptr %145, i64 %147
  %149 = load float, ptr %148, align 4, !tbaa !13
  store float %149, ptr %20, align 4, !tbaa !13
  %150 = load ptr, ptr %13, align 8, !tbaa !5
  %151 = load i32, ptr %19, align 4, !tbaa !9
  %152 = sext i32 %151 to i64
  %153 = getelementptr inbounds float, ptr %150, i64 %152
  %154 = load float, ptr %153, align 4, !tbaa !13
  %155 = load ptr, ptr %14, align 8, !tbaa !5
  %156 = load i32, ptr %19, align 4, !tbaa !9
  %157 = sext i32 %156 to i64
  %158 = getelementptr inbounds float, ptr %155, i64 %157
  store float %154, ptr %158, align 4, !tbaa !13
  %159 = load float, ptr %20, align 4, !tbaa !13
  %160 = fneg float %159
  %161 = load ptr, ptr %13, align 8, !tbaa !5
  %162 = load i32, ptr %19, align 4, !tbaa !9
  %163 = sext i32 %162 to i64
  %164 = getelementptr inbounds float, ptr %161, i64 %163
  store float %160, ptr %164, align 4, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #8
  br label %165

165:                                              ; preds = %144
  %166 = load i32, ptr %19, align 4, !tbaa !9
  %167 = add nsw i32 %166, 1
  store i32 %167, ptr %19, align 4, !tbaa !9
  br label %139, !llvm.loop !19

168:                                              ; preds = %143
  %169 = load ptr, ptr %13, align 8, !tbaa !5
  %170 = load ptr, ptr %14, align 8, !tbaa !5
  invoke void @_ZN4sptk6reaper3FFT4ifftEPfS2_(ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef %169, ptr noundef %170)
          to label %171 unwind label %56

171:                                              ; preds = %168
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #8
  store i32 0, ptr %21, align 4, !tbaa !9
  br label %172

172:                                              ; preds = %190, %171
  %173 = load i32, ptr %21, align 4, !tbaa !9
  %174 = load i32, ptr %7, align 4, !tbaa !9
  %175 = icmp slt i32 %173, %174
  br i1 %175, label %177, label %176

176:                                              ; preds = %172
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #8
  br label %193

177:                                              ; preds = %172
  %178 = load ptr, ptr %13, align 8, !tbaa !5
  %179 = load i32, ptr %21, align 4, !tbaa !9
  %180 = sext i32 %179 to i64
  %181 = getelementptr inbounds float, ptr %178, i64 %180
  %182 = load float, ptr %181, align 4, !tbaa !13
  %183 = load i32, ptr %10, align 4, !tbaa !9
  %184 = sitofp i32 %183 to float
  %185 = fdiv float %182, %184
  %186 = load ptr, ptr %8, align 8, !tbaa !5
  %187 = load i32, ptr %21, align 4, !tbaa !9
  %188 = sext i32 %187 to i64
  %189 = getelementptr inbounds float, ptr %186, i64 %188
  store float %185, ptr %189, align 4, !tbaa !13
  br label %190

190:                                              ; preds = %177
  %191 = load i32, ptr %21, align 4, !tbaa !9
  %192 = add nsw i32 %191, 1
  store i32 %192, ptr %21, align 4, !tbaa !9
  br label %172, !llvm.loop !20

193:                                              ; preds = %176
  %194 = load ptr, ptr %13, align 8, !tbaa !5
  %195 = icmp eq ptr %194, null
  br i1 %195, label %197, label %196

196:                                              ; preds = %193
  call void @_ZdaPv(ptr noundef %194) #10
  br label %197

197:                                              ; preds = %196, %193
  %198 = load ptr, ptr %14, align 8, !tbaa !5
  %199 = icmp eq ptr %198, null
  br i1 %199, label %201, label %200

200:                                              ; preds = %197
  call void @_ZdaPv(ptr noundef %198) #10
  br label %201

201:                                              ; preds = %200, %197
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #8
  call void @_ZN4sptk6reaper3FFTD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %9) #8
  ret void

202:                                              ; preds = %56, %52
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  br label %203

203:                                              ; preds = %202, %48
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #8
  call void @_ZN4sptk6reaper3FFTD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %9) #8
  br label %204

204:                                              ; preds = %203
  %205 = load ptr, ptr %11, align 8
  %206 = load i32, ptr %12, align 4
  %207 = insertvalue { ptr, i32 } poison, ptr %205, 0
  %208 = insertvalue { ptr, i32 } %207, i32 %206, 1
  resume { ptr, i32 } %208
}

; Function Attrs: nobuiltin nounwind
declare void @_ZdaPv(ptr noundef) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN4sptk6reaper3FFT25fft_pow2_from_window_sizeEi(i32 noundef) #3 align 2

declare void @_ZN4sptk6reaper3FFTC1Ei(ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN4sptk6reaper3FFT11get_fftSizeEv(ptr noundef nonnull align 8 dereferenceable(32)) #3 align 2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare { i64, i1 } @llvm.umul.with.overflow.i64(i64, i64) #5

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) #6

declare void @_ZN4sptk6reaper3FFT3fftEPfS2_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef) #4

declare void @_ZN4sptk6reaper3FFT4ifftEPfS2_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef) #4

; Function Attrs: nounwind
declare void @_ZN4sptk6reaper3FFTD1Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #7

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { nobuiltin 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 #3 = { 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 #4 = { "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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { nobuiltin allocsize(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 #7 = { 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 #8 = { nounwind }
attributes #9 = { builtin allocsize(0) }
attributes #10 = { builtin 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 = !{!"short", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"float", !7, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}
!18 = distinct !{!18, !16}
!19 = distinct !{!19, !16}
!20 = distinct !{!20, !16}


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

%"class.sptk::reaper::FFT" = type { ptr, ptr, i32, i32, i32, i32 }

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4sptk6reaper12EpochTracker16HilbertTransformEPsiPf(ptr nocapture noundef nonnull readnone align 8 dereferenceable(500) %0, ptr nocapture noundef readonly %1, i32 noundef %2, ptr nocapture noundef writeonly %3) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca %"class.sptk::reaper::FFT", align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #9
  %6 = tail call noundef i32 @_ZN4sptk6reaper3FFT25fft_pow2_from_window_sizeEi(i32 noundef %2)
  call void @_ZN4sptk6reaper3FFTC1Ei(ptr noundef nonnull align 8 dereferenceable(32) %5, i32 noundef %6)
  %7 = call noundef i32 @_ZN4sptk6reaper3FFT11get_fftSizeEv(ptr noundef nonnull align 8 dereferenceable(32) %5)
  %8 = zext nneg i32 %7 to i64
  %9 = icmp slt i32 %7, 0
  %10 = shl nuw nsw i64 %8, 2
  %11 = select i1 %9, i64 -1, i64 %10
  %12 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %11) #10
          to label %13 unwind label %33

13:                                               ; preds = %4
  %14 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %11) #10
          to label %.preheader75 unwind label %35

.preheader75:                                     ; preds = %13
  %15 = icmp sgt i32 %2, 0
  br i1 %15, label %.lr.ph.preheader, label %.preheader74

.lr.ph.preheader:                                 ; preds = %.preheader75
  %16 = zext nneg i32 %2 to i64
  %17 = shl nuw nsw i64 %16, 2
  call void @llvm.memset.p0.i64(ptr nonnull align 4 %14, i8 0, i64 %17, i1 false), !tbaa !5
  %min.iters.check = icmp ult i32 %2, 8
  br i1 %min.iters.check, label %.lr.ph.preheader159, label %vector.ph

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

vector.ph:                                        ; preds = %.lr.ph.preheader
  %n.vec = and i64 %16, 2147483640
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %18 = getelementptr inbounds i16, ptr %1, i64 %index
  %19 = getelementptr inbounds i8, ptr %18, i64 8
  %wide.load = load <4 x i16>, ptr %18, align 2, !tbaa !9
  %wide.load112 = load <4 x i16>, ptr %19, align 2, !tbaa !9
  %20 = sitofp <4 x i16> %wide.load to <4 x float>
  %21 = sitofp <4 x i16> %wide.load112 to <4 x float>
  %22 = getelementptr inbounds float, ptr %12, i64 %index
  %23 = getelementptr inbounds i8, ptr %22, i64 16
  store <4 x float> %20, ptr %22, align 4, !tbaa !5
  store <4 x float> %21, ptr %23, align 4, !tbaa !5
  %index.next = add nuw i64 %index, 8
  %24 = icmp eq i64 %index.next, %n.vec
  br i1 %24, label %middle.block, label %vector.body, !llvm.loop !11

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %16
  br i1 %cmp.n, label %.preheader74, label %.lr.ph.preheader159

.preheader74:                                     ; preds = %.lr.ph, %middle.block, %.preheader75
  %25 = icmp sgt i32 %7, %2
  br i1 %25, label %.lr.ph78.preheader, label %._crit_edge

.lr.ph78.preheader:                               ; preds = %.preheader74
  %26 = sext i32 %2 to i64
  %27 = shl nsw i64 %26, 2
  %scevgep = getelementptr i8, ptr %12, i64 %27
  %28 = xor i32 %2, -1
  %29 = add i32 %7, %28
  %30 = zext i32 %29 to i64
  %31 = shl nuw nsw i64 %30, 2
  %32 = add nuw nsw i64 %31, 4
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(1) %scevgep, i8 0, i64 %32, i1 false), !tbaa !5
  %scevgep91 = getelementptr i8, ptr %14, i64 %27
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(1) %scevgep91, i8 0, i64 %32, i1 false), !tbaa !5
  br label %._crit_edge

33:                                               ; preds = %4
  %34 = landingpad { ptr, i32 }
          cleanup
  br label %82

35:                                               ; preds = %._crit_edge86, %._crit_edge, %13
  %36 = landingpad { ptr, i32 }
          cleanup
  br label %82

.lr.ph:                                           ; preds = %.lr.ph.preheader159, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ %indvars.iv.ph, %.lr.ph.preheader159 ]
  %37 = getelementptr inbounds i16, ptr %1, i64 %indvars.iv
  %38 = load i16, ptr %37, align 2, !tbaa !9
  %39 = sitofp i16 %38 to float
  %40 = getelementptr inbounds float, ptr %12, i64 %indvars.iv
  store float %39, ptr %40, align 4, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %16
  br i1 %exitcond.not, label %.preheader74, label %.lr.ph, !llvm.loop !15

._crit_edge:                                      ; preds = %.lr.ph78.preheader, %.preheader74
  invoke void @_ZN4sptk6reaper3FFT3fftEPfS2_(ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef nonnull %12, ptr noundef nonnull %14)
          to label %.preheader73 unwind label %35

.preheader73:                                     ; preds = %._crit_edge
  %41 = sdiv i32 %7, 2
  %42 = icmp sgt i32 %7, 3
  br i1 %42, label %.lr.ph80.preheader, label %._crit_edge81

.lr.ph80.preheader:                               ; preds = %.preheader73
  %smax = call i32 @llvm.smax.i32(i32 %41, i32 2)
  %wide.trip.count99 = zext nneg i32 %smax to i64
  %43 = add nsw i64 %wide.trip.count99, -1
  %min.iters.check115 = icmp slt i32 %7, 18
  br i1 %min.iters.check115, label %.lr.ph80.preheader158, label %vector.ph116

.lr.ph80.preheader158:                            ; preds = %middle.block113, %.lr.ph80.preheader
  %indvars.iv96.ph = phi i64 [ 1, %.lr.ph80.preheader ], [ %ind.end, %middle.block113 ]
  br label %.lr.ph80

vector.ph116:                                     ; preds = %.lr.ph80.preheader
  %n.vec118 = and i64 %43, -8
  %ind.end = or disjoint i64 %n.vec118, 1
  br label %vector.body120

vector.body120:                                   ; preds = %vector.body120, %vector.ph116
  %index121 = phi i64 [ 0, %vector.ph116 ], [ %index.next126, %vector.body120 ]
  %offset.idx = or disjoint i64 %index121, 1
  %44 = getelementptr inbounds float, ptr %14, i64 %offset.idx
  %45 = getelementptr inbounds i8, ptr %44, i64 16
  %wide.load122 = load <4 x float>, ptr %44, align 4, !tbaa !5
  %wide.load123 = load <4 x float>, ptr %45, align 4, !tbaa !5
  %46 = getelementptr inbounds float, ptr %12, i64 %offset.idx
  %47 = getelementptr inbounds i8, ptr %46, i64 16
  %wide.load124 = load <4 x float>, ptr %46, align 4, !tbaa !5
  %wide.load125 = load <4 x float>, ptr %47, align 4, !tbaa !5
  %48 = fneg <4 x float> %wide.load124
  %49 = fneg <4 x float> %wide.load125
  store <4 x float> %48, ptr %44, align 4, !tbaa !5
  store <4 x float> %49, ptr %45, align 4, !tbaa !5
  store <4 x float> %wide.load122, ptr %46, align 4, !tbaa !5
  store <4 x float> %wide.load123, ptr %47, align 4, !tbaa !5
  %index.next126 = add nuw i64 %index121, 8
  %50 = icmp eq i64 %index.next126, %n.vec118
  br i1 %50, label %middle.block113, label %vector.body120, !llvm.loop !16

middle.block113:                                  ; preds = %vector.body120
  %cmp.n127 = icmp eq i64 %43, %n.vec118
  br i1 %cmp.n127, label %._crit_edge81, label %.lr.ph80.preheader158

._crit_edge81:                                    ; preds = %.lr.ph80, %middle.block113, %.preheader73
  store float 0.000000e+00, ptr %14, align 4, !tbaa !5
  store float 0.000000e+00, ptr %12, align 4, !tbaa !5
  %.06482 = add nsw i32 %41, 1
  %51 = icmp slt i32 %.06482, %7
  br i1 %51, label %.lr.ph85.preheader, label %._crit_edge86

.lr.ph85.preheader:                               ; preds = %._crit_edge81
  %narrow = add nsw i32 %41, 1
  %52 = sext i32 %narrow to i64
  %wide.trip.count105 = sext i32 %7 to i64
  %53 = xor i32 %41, -1
  %54 = sext i32 %53 to i64
  %55 = add nsw i64 %54, %wide.trip.count105
  %min.iters.check130 = icmp ult i64 %55, 8
  br i1 %min.iters.check130, label %.lr.ph85.preheader157, label %vector.ph131

.lr.ph85.preheader157:                            ; preds = %middle.block128, %.lr.ph85.preheader
  %indvars.iv102.ph = phi i64 [ %52, %.lr.ph85.preheader ], [ %ind.end134, %middle.block128 ]
  br label %.lr.ph85

vector.ph131:                                     ; preds = %.lr.ph85.preheader
  %n.vec133 = and i64 %55, -8
  %ind.end134 = add nsw i64 %n.vec133, %52
  br label %vector.body136

vector.body136:                                   ; preds = %vector.body136, %vector.ph131
  %index137 = phi i64 [ 0, %vector.ph131 ], [ %index.next143, %vector.body136 ]
  %offset.idx138 = add i64 %index137, %52
  %56 = getelementptr inbounds float, ptr %14, i64 %offset.idx138
  %57 = getelementptr inbounds i8, ptr %56, i64 16
  %wide.load139 = load <4 x float>, ptr %56, align 4, !tbaa !5
  %wide.load140 = load <4 x float>, ptr %57, align 4, !tbaa !5
  %58 = getelementptr inbounds float, ptr %12, i64 %offset.idx138
  %59 = getelementptr inbounds i8, ptr %58, i64 16
  %wide.load141 = load <4 x float>, ptr %58, align 4, !tbaa !5
  %wide.load142 = load <4 x float>, ptr %59, align 4, !tbaa !5
  store <4 x float> %wide.load141, ptr %56, align 4, !tbaa !5
  store <4 x float> %wide.load142, ptr %57, align 4, !tbaa !5
  %60 = fneg <4 x float> %wide.load139
  %61 = fneg <4 x float> %wide.load140
  store <4 x float> %60, ptr %58, align 4, !tbaa !5
  store <4 x float> %61, ptr %59, align 4, !tbaa !5
  %index.next143 = add nuw i64 %index137, 8
  %62 = icmp eq i64 %index.next143, %n.vec133
  br i1 %62, label %middle.block128, label %vector.body136, !llvm.loop !17

middle.block128:                                  ; preds = %vector.body136
  %cmp.n144 = icmp eq i64 %55, %n.vec133
  br i1 %cmp.n144, label %._crit_edge86, label %.lr.ph85.preheader157

.lr.ph80:                                         ; preds = %.lr.ph80.preheader158, %.lr.ph80
  %indvars.iv96 = phi i64 [ %indvars.iv.next97, %.lr.ph80 ], [ %indvars.iv96.ph, %.lr.ph80.preheader158 ]
  %63 = getelementptr inbounds float, ptr %14, i64 %indvars.iv96
  %64 = load float, ptr %63, align 4, !tbaa !5
  %65 = getelementptr inbounds float, ptr %12, i64 %indvars.iv96
  %66 = load float, ptr %65, align 4, !tbaa !5
  %67 = fneg float %66
  store float %67, ptr %63, align 4, !tbaa !5
  store float %64, ptr %65, align 4, !tbaa !5
  %indvars.iv.next97 = add nuw nsw i64 %indvars.iv96, 1
  %exitcond100.not = icmp eq i64 %indvars.iv.next97, %wide.trip.count99
  br i1 %exitcond100.not, label %._crit_edge81, label %.lr.ph80, !llvm.loop !18

._crit_edge86:                                    ; preds = %.lr.ph85, %middle.block128, %._crit_edge81
  invoke void @_ZN4sptk6reaper3FFT4ifftEPfS2_(ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef nonnull %12, ptr noundef nonnull %14)
          to label %.preheader unwind label %35

.preheader:                                       ; preds = %._crit_edge86
  br i1 %15, label %.lr.ph88, label %._crit_edge89

.lr.ph88:                                         ; preds = %.preheader
  %68 = sitofp i32 %7 to float
  %wide.trip.count110 = zext nneg i32 %2 to i64
  %min.iters.check147 = icmp ult i32 %2, 4
  br i1 %min.iters.check147, label %scalar.ph146.preheader, label %vector.ph148

scalar.ph146.preheader:                           ; preds = %middle.block145, %.lr.ph88
  %indvars.iv107.ph = phi i64 [ 0, %.lr.ph88 ], [ %n.vec150, %middle.block145 ]
  br label %scalar.ph146

vector.ph148:                                     ; preds = %.lr.ph88
  %n.vec150 = and i64 %wide.trip.count110, 2147483644
  %broadcast.splatinsert = insertelement <4 x float> poison, float %68, i64 0
  %broadcast.splat = shufflevector <4 x float> %broadcast.splatinsert, <4 x float> poison, <4 x i32> zeroinitializer
  br label %vector.body152

vector.body152:                                   ; preds = %vector.body152, %vector.ph148
  %index153 = phi i64 [ 0, %vector.ph148 ], [ %index.next155, %vector.body152 ]
  %69 = getelementptr inbounds float, ptr %12, i64 %index153
  %wide.load154 = load <4 x float>, ptr %69, align 4, !tbaa !5
  %70 = fdiv <4 x float> %wide.load154, %broadcast.splat
  %71 = getelementptr inbounds float, ptr %3, i64 %index153
  store <4 x float> %70, ptr %71, align 4, !tbaa !5
  %index.next155 = add nuw i64 %index153, 4
  %72 = icmp eq i64 %index.next155, %n.vec150
  br i1 %72, label %middle.block145, label %vector.body152, !llvm.loop !19

middle.block145:                                  ; preds = %vector.body152
  %cmp.n156 = icmp eq i64 %n.vec150, %wide.trip.count110
  br i1 %cmp.n156, label %._crit_edge89, label %scalar.ph146.preheader

.lr.ph85:                                         ; preds = %.lr.ph85.preheader157, %.lr.ph85
  %indvars.iv102 = phi i64 [ %indvars.iv.next103, %.lr.ph85 ], [ %indvars.iv102.ph, %.lr.ph85.preheader157 ]
  %73 = getelementptr inbounds float, ptr %14, i64 %indvars.iv102
  %74 = load float, ptr %73, align 4, !tbaa !5
  %75 = getelementptr inbounds float, ptr %12, i64 %indvars.iv102
  %76 = load float, ptr %75, align 4, !tbaa !5
  store float %76, ptr %73, align 4, !tbaa !5
  %77 = fneg float %74
  store float %77, ptr %75, align 4, !tbaa !5
  %indvars.iv.next103 = add nsw i64 %indvars.iv102, 1
  %exitcond106.not = icmp eq i64 %indvars.iv.next103, %wide.trip.count105
  br i1 %exitcond106.not, label %._crit_edge86, label %.lr.ph85, !llvm.loop !20

scalar.ph146:                                     ; preds = %scalar.ph146.preheader, %scalar.ph146
  %indvars.iv107 = phi i64 [ %indvars.iv.next108, %scalar.ph146 ], [ %indvars.iv107.ph, %scalar.ph146.preheader ]
  %78 = getelementptr inbounds float, ptr %12, i64 %indvars.iv107
  %79 = load float, ptr %78, align 4, !tbaa !5
  %80 = fdiv float %79, %68
  %81 = getelementptr inbounds float, ptr %3, i64 %indvars.iv107
  store float %80, ptr %81, align 4, !tbaa !5
  %indvars.iv.next108 = add nuw nsw i64 %indvars.iv107, 1
  %exitcond111.not = icmp eq i64 %indvars.iv.next108, %wide.trip.count110
  br i1 %exitcond111.not, label %._crit_edge89, label %scalar.ph146, !llvm.loop !21

._crit_edge89:                                    ; preds = %scalar.ph146, %middle.block145, %.preheader
  call void @_ZdaPv(ptr noundef nonnull %12) #11
  call void @_ZdaPv(ptr noundef nonnull %14) #11
  call void @_ZN4sptk6reaper3FFTD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #9
  ret void

82:                                               ; preds = %35, %33
  %.pn = phi { ptr, i32 } [ %36, %35 ], [ %34, %33 ]
  call void @_ZN4sptk6reaper3FFTD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #9
  resume { ptr, i32 } %.pn
}

; Function Attrs: nobuiltin nounwind
declare void @_ZdaPv(ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN4sptk6reaper3FFT25fft_pow2_from_window_sizeEi(i32 noundef) local_unnamed_addr #3 align 2

declare void @_ZN4sptk6reaper3FFTC1Ei(ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN4sptk6reaper3FFT11get_fftSizeEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #3 align 2

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) local_unnamed_addr #5

declare void @_ZN4sptk6reaper3FFT3fftEPfS2_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef) local_unnamed_addr #4

declare void @_ZN4sptk6reaper3FFT4ifftEPfS2_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: nounwind
declare void @_ZN4sptk6reaper3FFTD1Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #6

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { nobuiltin 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 #3 = { 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 #4 = { "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 = { nobuiltin allocsize(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 = { 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 nounwind willreturn memory(argmem: write) }
attributes #8 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #9 = { nounwind }
attributes #10 = { builtin allocsize(0) }
attributes #11 = { builtin 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 = !{!"float", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"short", !7, i64 0}
!11 = distinct !{!11, !12, !13, !14}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!"llvm.loop.isvectorized", i32 1}
!14 = !{!"llvm.loop.unroll.runtime.disable"}
!15 = distinct !{!15, !12, !14, !13}
!16 = distinct !{!16, !12, !13, !14}
!17 = distinct !{!17, !12, !13, !14}
!18 = distinct !{!18, !12, !14, !13}
!19 = distinct !{!19, !12, !13, !14}
!20 = distinct !{!20, !12, !14, !13}
!21 = distinct !{!21, !12, !14, !13}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LCSSAPass,LICMPass,LoopIdiomRecognizePass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,PostOrderFunctionAttrsPass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass