; LLVM IR from Seeed-Studio/Seeed_Arduino_edgeimpulse :: src/edge-impulse-sdk/dsp/dct/fast-dct-fft.ll (ZN2ei3dct17inverse_transformEPfm)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.kiss_fft_cpx = type { float, float }

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

; Function Attrs: nounwind allocsize(0,1)
declare noalias ptr @calloc(i64 noundef, i64 noundef) #1

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt3cosf(float noundef) #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt3sinf(float noundef) #3

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN2ei3dct17inverse_transformEPfm(ptr noundef %0, i64 noundef %1) #4 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca i64, align 8
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca i64, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i64, align 8
  %14 = alloca float, align 4
  %15 = alloca i64, align 8
  %16 = alloca i64, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i64 %1, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  %17 = load i64, ptr %5, align 8, !tbaa !9
  %18 = mul i64 %17, 8
  store i64 %18, ptr %6, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  %19 = load i64, ptr %5, align 8, !tbaa !9
  %20 = mul i64 %19, 8
  store i64 %20, ptr %7, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  %21 = load i64, ptr %6, align 8, !tbaa !9
  %22 = call noalias ptr @calloc(i64 noundef %21, i64 noundef 1) #7
  store ptr %22, ptr %8, align 8, !tbaa !5
  %23 = load ptr, ptr %8, align 8, !tbaa !5
  %24 = icmp ne ptr %23, null
  br i1 %24, label %26, label %25

25:                                               ; preds = %2
  store i32 -1002, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %146

26:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  %27 = load i64, ptr %7, align 8, !tbaa !9
  %28 = call noalias ptr @calloc(i64 noundef %27, i64 noundef 1) #7
  store ptr %28, ptr %10, align 8, !tbaa !5
  %29 = load ptr, ptr %10, align 8, !tbaa !5
  %30 = icmp ne ptr %29, null
  br i1 %30, label %33, label %31

31:                                               ; preds = %26
  %32 = load ptr, ptr %8, align 8, !tbaa !5
  call void @free(ptr noundef %32) #6
  store i32 -1002, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %145

33:                                               ; preds = %26
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %34 = load i64, ptr %5, align 8, !tbaa !9
  %35 = trunc i64 %34 to i32
  %36 = call ptr @kiss_fft_alloc(i32 noundef %35, i32 noundef 0, ptr noundef null, ptr noundef null, ptr noundef %11)
  store ptr %36, ptr %12, align 8, !tbaa !5
  %37 = load ptr, ptr %12, align 8, !tbaa !5
  %38 = icmp ne ptr %37, null
  br i1 %38, label %42, label %39

39:                                               ; preds = %33
  %40 = load ptr, ptr %10, align 8, !tbaa !5
  call void @free(ptr noundef %40) #6
  %41 = load ptr, ptr %8, align 8, !tbaa !5
  call void @free(ptr noundef %41) #6
  store i32 -1002, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %144

42:                                               ; preds = %33
  %43 = load i64, ptr %5, align 8, !tbaa !9
  %44 = icmp ugt i64 %43, 0
  br i1 %44, label %45, label %50

45:                                               ; preds = %42
  %46 = load ptr, ptr %4, align 8, !tbaa !5
  %47 = getelementptr inbounds float, ptr %46, i64 0
  %48 = load float, ptr %47, align 4, !tbaa !11
  %49 = fdiv float %48, 2.000000e+00
  store float %49, ptr %47, align 4, !tbaa !11
  br label %50

50:                                               ; preds = %45, %42
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  store i64 0, ptr %13, align 8, !tbaa !9
  br label %51

51:                                               ; preds = %85, %50
  %52 = load i64, ptr %13, align 8, !tbaa !9
  %53 = load i64, ptr %5, align 8, !tbaa !9
  %54 = icmp ult i64 %52, %53
  br i1 %54, label %56, label %55

55:                                               ; preds = %51
  store i32 2, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  br label %88

56:                                               ; preds = %51
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  %57 = load i64, ptr %13, align 8, !tbaa !9
  %58 = uitofp i64 %57 to double
  %59 = fmul double %58, 0x400921FB54442D18
  %60 = load i64, ptr %5, align 8, !tbaa !9
  %61 = mul i64 %60, 2
  %62 = uitofp i64 %61 to double
  %63 = fdiv double %59, %62
  %64 = fptrunc double %63 to float
  store float %64, ptr %14, align 4, !tbaa !11
  %65 = load ptr, ptr %4, align 8, !tbaa !5
  %66 = load i64, ptr %13, align 8, !tbaa !9
  %67 = getelementptr inbounds float, ptr %65, i64 %66
  %68 = load float, ptr %67, align 4, !tbaa !11
  %69 = load float, ptr %14, align 4, !tbaa !11
  %70 = call noundef float @_ZSt3cosf(float noundef %69)
  %71 = fmul float %68, %70
  %72 = load ptr, ptr %10, align 8, !tbaa !5
  %73 = load i64, ptr %13, align 8, !tbaa !9
  %74 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %72, i64 %73
  %75 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %74, i32 0, i32 0
  store float %71, ptr %75, align 4, !tbaa !13
  %76 = load float, ptr %14, align 4, !tbaa !11
  %77 = call noundef float @_ZSt3sinf(float noundef %76)
  %78 = fneg float %77
  %79 = load ptr, ptr %10, align 8, !tbaa !5
  %80 = load i64, ptr %13, align 8, !tbaa !9
  %81 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %79, i64 %80
  %82 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %81, i32 0, i32 1
  %83 = load float, ptr %82, align 4, !tbaa !15
  %84 = fmul float %83, %78
  store float %84, ptr %82, align 4, !tbaa !15
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  br label %85

85:                                               ; preds = %56
  %86 = load i64, ptr %13, align 8, !tbaa !9
  %87 = add i64 %86, 1
  store i64 %87, ptr %13, align 8, !tbaa !9
  br label %51, !llvm.loop !16

88:                                               ; preds = %55
  %89 = load ptr, ptr %12, align 8, !tbaa !5
  %90 = load ptr, ptr %10, align 8, !tbaa !5
  %91 = load ptr, ptr %8, align 8, !tbaa !5
  call void @kiss_fft(ptr noundef %89, ptr noundef %90, ptr noundef %91)
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  %92 = load i64, ptr %5, align 8, !tbaa !9
  %93 = udiv i64 %92, 2
  store i64 %93, ptr %15, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  store i64 0, ptr %16, align 8, !tbaa !9
  br label %94

94:                                               ; preds = %123, %88
  %95 = load i64, ptr %16, align 8, !tbaa !9
  %96 = load i64, ptr %15, align 8, !tbaa !9
  %97 = icmp ult i64 %95, %96
  br i1 %97, label %99, label %98

98:                                               ; preds = %94
  store i32 5, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  br label %126

99:                                               ; preds = %94
  %100 = load ptr, ptr %8, align 8, !tbaa !5
  %101 = load i64, ptr %16, align 8, !tbaa !9
  %102 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %100, i64 %101
  %103 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %102, i32 0, i32 0
  %104 = load float, ptr %103, align 4, !tbaa !13
  %105 = load ptr, ptr %4, align 8, !tbaa !5
  %106 = load i64, ptr %16, align 8, !tbaa !9
  %107 = mul i64 %106, 2
  %108 = add i64 %107, 0
  %109 = getelementptr inbounds float, ptr %105, i64 %108
  store float %104, ptr %109, align 4, !tbaa !11
  %110 = load ptr, ptr %8, align 8, !tbaa !5
  %111 = load i64, ptr %5, align 8, !tbaa !9
  %112 = sub i64 %111, 1
  %113 = load i64, ptr %16, align 8, !tbaa !9
  %114 = sub i64 %112, %113
  %115 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %110, i64 %114
  %116 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %115, i32 0, i32 0
  %117 = load float, ptr %116, align 4, !tbaa !13
  %118 = load ptr, ptr %4, align 8, !tbaa !5
  %119 = load i64, ptr %16, align 8, !tbaa !9
  %120 = mul i64 %119, 2
  %121 = add i64 %120, 1
  %122 = getelementptr inbounds float, ptr %118, i64 %121
  store float %117, ptr %122, align 4, !tbaa !11
  br label %123

123:                                              ; preds = %99
  %124 = load i64, ptr %16, align 8, !tbaa !9
  %125 = add i64 %124, 1
  store i64 %125, ptr %16, align 8, !tbaa !9
  br label %94, !llvm.loop !18

126:                                              ; preds = %98
  %127 = load i64, ptr %5, align 8, !tbaa !9
  %128 = urem i64 %127, 2
  %129 = icmp eq i64 %128, 1
  br i1 %129, label %130, label %140

130:                                              ; preds = %126
  %131 = load ptr, ptr %8, align 8, !tbaa !5
  %132 = load i64, ptr %15, align 8, !tbaa !9
  %133 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %131, i64 %132
  %134 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %133, i32 0, i32 0
  %135 = load float, ptr %134, align 4, !tbaa !13
  %136 = load ptr, ptr %4, align 8, !tbaa !5
  %137 = load i64, ptr %5, align 8, !tbaa !9
  %138 = sub i64 %137, 1
  %139 = getelementptr inbounds float, ptr %136, i64 %138
  store float %135, ptr %139, align 4, !tbaa !11
  br label %140

140:                                              ; preds = %130, %126
  %141 = load ptr, ptr %12, align 8, !tbaa !5
  call void @free(ptr noundef %141) #6
  %142 = load ptr, ptr %10, align 8, !tbaa !5
  call void @free(ptr noundef %142) #6
  %143 = load ptr, ptr %8, align 8, !tbaa !5
  call void @free(ptr noundef %143) #6
  store i32 0, ptr %3, align 4
  store i32 1, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  br label %144

144:                                              ; preds = %140, %39
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  br label %145

145:                                              ; preds = %144, %31
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  br label %146

146:                                              ; preds = %145, %25
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  %147 = load i32, ptr %3, align 4
  ret i32 %147
}

declare ptr @kiss_fft_alloc(i32 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef) #5

declare void @kiss_fft(ptr noundef, ptr noundef, ptr noundef) #5

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nounwind allocsize(0,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 "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 = { inlinehint 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 = { 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 #5 = { "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 }
attributes #7 = { nounwind allocsize(0,1) }

!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 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = !{!14, !12, i64 0}
!14 = !{!"_ZTS12kiss_fft_cpx", !12, i64 0, !12, i64 4}
!15 = !{!14, !12, i64 4}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = distinct !{!18, !17}


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

%struct.kiss_fft_cpx = type { float, float }

; 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 nofree nounwind willreturn allockind("alloc,zeroed") allocsize(0,1) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @calloc(i64 noundef, i64 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt3cosf(float noundef) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt3sinf(float noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
define dso_local noundef range(i32 -1002, 1) i32 @_ZN2ei3dct17inverse_transformEPfm(ptr nocapture noundef %0, i64 noundef %1) local_unnamed_addr #4 {
  %3 = alloca i64, align 8
  %4 = shl i64 %1, 3
  %5 = tail call noalias ptr @calloc(i64 noundef %4, i64 noundef 1) #6
  %.not = icmp eq ptr %5, null
  br i1 %.not, label %70, label %6

6:                                                ; preds = %2
  %7 = tail call noalias ptr @calloc(i64 noundef %4, i64 noundef 1) #6
  %.not58 = icmp eq ptr %7, null
  br i1 %.not58, label %8, label %9

8:                                                ; preds = %6
  tail call void @free(ptr noundef nonnull %5) #7
  br label %70

9:                                                ; preds = %6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #7
  %10 = trunc i64 %1 to i32
  %11 = call ptr @kiss_fft_alloc(i32 noundef %10, i32 noundef 0, ptr noundef null, ptr noundef null, ptr noundef nonnull %3)
  %.not59 = icmp eq ptr %11, null
  br i1 %.not59, label %12, label %13

12:                                               ; preds = %9
  call void @free(ptr noundef nonnull %7) #7
  br label %69

13:                                               ; preds = %9
  %.not60 = icmp eq i64 %1, 0
  br i1 %.not60, label %._crit_edge66.thread, label %.lr.ph

._crit_edge66.thread:                             ; preds = %13
  call void @kiss_fft(ptr noundef nonnull %11, ptr noundef nonnull %7, ptr noundef nonnull %5)
  br label %68

.lr.ph:                                           ; preds = %13
  %14 = load float, ptr %0, align 4, !tbaa !5
  %15 = fmul float %14, 5.000000e-01
  store float %15, ptr %0, align 4, !tbaa !5
  %16 = shl i64 %1, 1
  %17 = uitofp i64 %16 to double
  br label %20

._crit_edge:                                      ; preds = %20
  call void @kiss_fft(ptr noundef nonnull %11, ptr noundef nonnull %7, ptr noundef nonnull %5)
  %18 = lshr i64 %1, 1
  %invariant.gep = getelementptr %struct.kiss_fft_cpx, ptr %5, i64 %1
  %.not68 = icmp eq i64 %1, 1
  br i1 %.not68, label %._crit_edge66.thread73, label %.lr.ph65.preheader

.lr.ph65.preheader:                               ; preds = %._crit_edge
  %19 = icmp eq i64 %18, 1
  br i1 %19, label %._crit_edge66.unr-lcssa, label %.lr.ph65.preheader.new

.lr.ph65.preheader.new:                           ; preds = %.lr.ph65.preheader
  %unroll_iter = and i64 %18, 9223372036854775806
  br label %.lr.ph65

20:                                               ; preds = %.lr.ph, %20
  %.05162 = phi i64 [ 0, %.lr.ph ], [ %35, %20 ]
  %21 = uitofp i64 %.05162 to double
  %22 = fmul double %21, 0x400921FB54442D18
  %23 = fdiv double %22, %17
  %24 = fptrunc double %23 to float
  %25 = getelementptr inbounds float, ptr %0, i64 %.05162
  %26 = load float, ptr %25, align 4, !tbaa !5
  %27 = call noundef float @_ZSt3cosf(float noundef %24)
  %28 = fmul float %26, %27
  %29 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %7, i64 %.05162
  store float %28, ptr %29, align 4, !tbaa !9
  %30 = call noundef float @_ZSt3sinf(float noundef %24)
  %31 = fneg float %30
  %32 = getelementptr inbounds i8, ptr %29, i64 4
  %33 = load float, ptr %32, align 4, !tbaa !11
  %34 = fmul float %33, %31
  store float %34, ptr %32, align 4, !tbaa !11
  %35 = add nuw i64 %.05162, 1
  %exitcond.not = icmp eq i64 %35, %1
  br i1 %exitcond.not, label %._crit_edge, label %20, !llvm.loop !12

._crit_edge66.unr-lcssa:                          ; preds = %.lr.ph65, %.lr.ph65.preheader
  %.063.unr = phi i64 [ 0, %.lr.ph65.preheader ], [ %63, %.lr.ph65 ]
  %36 = and i64 %1, 2
  %lcmp.mod.not = icmp eq i64 %36, 0
  br i1 %lcmp.mod.not, label %._crit_edge66, label %.lr.ph65.epil

.lr.ph65.epil:                                    ; preds = %._crit_edge66.unr-lcssa
  %37 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %5, i64 %.063.unr
  %38 = load float, ptr %37, align 4, !tbaa !9
  %39 = shl nuw i64 %.063.unr, 1
  %40 = getelementptr inbounds float, ptr %0, i64 %39
  store float %38, ptr %40, align 4, !tbaa !5
  %41 = xor i64 %.063.unr, -1
  %gep.epil = getelementptr %struct.kiss_fft_cpx, ptr %invariant.gep, i64 %41
  %42 = load float, ptr %gep.epil, align 4, !tbaa !9
  %43 = or disjoint i64 %39, 1
  %44 = getelementptr inbounds float, ptr %0, i64 %43
  store float %42, ptr %44, align 4, !tbaa !5
  br label %._crit_edge66

._crit_edge66:                                    ; preds = %._crit_edge66.unr-lcssa, %.lr.ph65.epil
  %45 = and i64 %1, 1
  %.not61 = icmp eq i64 %45, 0
  br i1 %.not61, label %68, label %._crit_edge66.thread73

.lr.ph65:                                         ; preds = %.lr.ph65, %.lr.ph65.preheader.new
  %.063 = phi i64 [ 0, %.lr.ph65.preheader.new ], [ %63, %.lr.ph65 ]
  %niter = phi i64 [ 0, %.lr.ph65.preheader.new ], [ %niter.next.1, %.lr.ph65 ]
  %46 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %5, i64 %.063
  %47 = load float, ptr %46, align 4, !tbaa !9
  %48 = shl nuw i64 %.063, 1
  %49 = getelementptr inbounds float, ptr %0, i64 %48
  store float %47, ptr %49, align 4, !tbaa !5
  %50 = xor i64 %.063, -1
  %gep = getelementptr %struct.kiss_fft_cpx, ptr %invariant.gep, i64 %50
  %51 = load float, ptr %gep, align 4, !tbaa !9
  %52 = or disjoint i64 %48, 1
  %53 = getelementptr inbounds float, ptr %0, i64 %52
  store float %51, ptr %53, align 4, !tbaa !5
  %54 = or disjoint i64 %.063, 1
  %55 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %5, i64 %54
  %56 = load float, ptr %55, align 4, !tbaa !9
  %57 = shl nuw i64 %54, 1
  %58 = getelementptr inbounds float, ptr %0, i64 %57
  store float %56, ptr %58, align 4, !tbaa !5
  %59 = xor i64 %.063, -2
  %gep.1 = getelementptr %struct.kiss_fft_cpx, ptr %invariant.gep, i64 %59
  %60 = load float, ptr %gep.1, align 4, !tbaa !9
  %61 = or disjoint i64 %57, 1
  %62 = getelementptr inbounds float, ptr %0, i64 %61
  store float %60, ptr %62, align 4, !tbaa !5
  %63 = add nuw nsw i64 %.063, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %._crit_edge66.unr-lcssa, label %.lr.ph65, !llvm.loop !14

._crit_edge66.thread73:                           ; preds = %._crit_edge, %._crit_edge66
  %64 = getelementptr inbounds %struct.kiss_fft_cpx, ptr %5, i64 %18
  %65 = load float, ptr %64, align 4, !tbaa !9
  %66 = getelementptr float, ptr %0, i64 %1
  %67 = getelementptr i8, ptr %66, i64 -4
  store float %65, ptr %67, align 4, !tbaa !5
  br label %68

68:                                               ; preds = %._crit_edge66.thread, %._crit_edge66.thread73, %._crit_edge66
  call void @free(ptr noundef %11) #7
  call void @free(ptr noundef %7) #7
  br label %69

69:                                               ; preds = %68, %12
  %.050 = phi i32 [ 0, %68 ], [ -1002, %12 ]
  call void @free(ptr noundef nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #7
  br label %70

70:                                               ; preds = %8, %69, %2
  %.2 = phi i32 [ -1002, %2 ], [ %.050, %69 ], [ -1002, %8 ]
  ret i32 %.2
}

declare ptr @kiss_fft_alloc(i32 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #5

declare void @kiss_fft(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #5

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nofree nounwind willreturn allockind("alloc,zeroed") allocsize(0,1) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "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 = { mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "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 = { inlinehint 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 = { 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 #5 = { "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 allocsize(0,1) }
attributes #7 = { 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, !6, i64 0}
!10 = !{!"_ZTS12kiss_fft_cpx", !6, i64 0, !6, i64 4}
!11 = !{!10, !6, i64 4}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !13}


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