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

; 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.ei::fft_complex_t" = type { float, float }

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN2ei3dct9transformEPfm(ptr noundef %0, i64 noundef %1) #0 {
  %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 i64, align 8
  %13 = alloca i32, align 4
  %14 = alloca i64, align 8
  %15 = alloca float, align 4
  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
  %16 = load i64, ptr %5, align 8, !tbaa !9
  %17 = udiv i64 %16, 2
  %18 = add i64 %17, 1
  %19 = mul i64 %18, 8
  store i64 %19, ptr %6, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  %20 = load i64, ptr %5, align 8, !tbaa !9
  %21 = mul i64 %20, 4
  store i64 %21, ptr %7, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  %22 = load i64, ptr %6, align 8, !tbaa !9
  %23 = call noalias ptr @calloc(i64 noundef %22, i64 noundef 1) #7
  store ptr %23, ptr %8, align 8, !tbaa !5
  %24 = load ptr, ptr %8, align 8, !tbaa !5
  %25 = icmp ne ptr %24, null
  br i1 %25, label %27, label %26

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

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

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

34:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  %35 = load i64, ptr %5, align 8, !tbaa !9
  %36 = udiv i64 %35, 2
  store i64 %36, ptr %11, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  store i64 0, ptr %12, align 8, !tbaa !9
  br label %37

37:                                               ; preds = %63, %34
  %38 = load i64, ptr %12, align 8, !tbaa !9
  %39 = load i64, ptr %11, align 8, !tbaa !9
  %40 = icmp ult i64 %38, %39
  br i1 %40, label %42, label %41

41:                                               ; preds = %37
  store i32 2, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  br label %66

42:                                               ; preds = %37
  %43 = load ptr, ptr %4, align 8, !tbaa !5
  %44 = load i64, ptr %12, align 8, !tbaa !9
  %45 = mul i64 %44, 2
  %46 = getelementptr inbounds float, ptr %43, i64 %45
  %47 = load float, ptr %46, align 4, !tbaa !11
  %48 = load ptr, ptr %10, align 8, !tbaa !5
  %49 = load i64, ptr %12, align 8, !tbaa !9
  %50 = getelementptr inbounds float, ptr %48, i64 %49
  store float %47, ptr %50, align 4, !tbaa !11
  %51 = load ptr, ptr %4, align 8, !tbaa !5
  %52 = load i64, ptr %12, align 8, !tbaa !9
  %53 = mul i64 %52, 2
  %54 = add i64 %53, 1
  %55 = getelementptr inbounds float, ptr %51, i64 %54
  %56 = load float, ptr %55, align 4, !tbaa !11
  %57 = load ptr, ptr %10, align 8, !tbaa !5
  %58 = load i64, ptr %5, align 8, !tbaa !9
  %59 = sub i64 %58, 1
  %60 = load i64, ptr %12, align 8, !tbaa !9
  %61 = sub i64 %59, %60
  %62 = getelementptr inbounds float, ptr %57, i64 %61
  store float %56, ptr %62, align 4, !tbaa !11
  br label %63

63:                                               ; preds = %42
  %64 = load i64, ptr %12, align 8, !tbaa !9
  %65 = add i64 %64, 1
  store i64 %65, ptr %12, align 8, !tbaa !9
  br label %37, !llvm.loop !13

66:                                               ; preds = %41
  %67 = load i64, ptr %5, align 8, !tbaa !9
  %68 = urem i64 %67, 2
  %69 = icmp eq i64 %68, 1
  br i1 %69, label %70, label %79

70:                                               ; preds = %66
  %71 = load ptr, ptr %4, align 8, !tbaa !5
  %72 = load i64, ptr %5, align 8, !tbaa !9
  %73 = sub i64 %72, 1
  %74 = getelementptr inbounds float, ptr %71, i64 %73
  %75 = load float, ptr %74, align 4, !tbaa !11
  %76 = load ptr, ptr %10, align 8, !tbaa !5
  %77 = load i64, ptr %11, align 8, !tbaa !9
  %78 = getelementptr inbounds float, ptr %76, i64 %77
  store float %75, ptr %78, align 4, !tbaa !11
  br label %79

79:                                               ; preds = %70, %66
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  %80 = load ptr, ptr %10, align 8, !tbaa !5
  %81 = load i64, ptr %5, align 8, !tbaa !9
  %82 = load ptr, ptr %8, align 8, !tbaa !5
  %83 = load i64, ptr %5, align 8, !tbaa !9
  %84 = udiv i64 %83, 2
  %85 = add i64 %84, 1
  %86 = load i64, ptr %5, align 8, !tbaa !9
  %87 = call noundef i32 @_ZN2ei5numpy4rfftEPKfmPNS_13fft_complex_tEmm(ptr noundef %80, i64 noundef %81, ptr noundef %82, i64 noundef %85, i64 noundef %86)
  store i32 %87, ptr %13, align 4, !tbaa !15
  %88 = load i32, ptr %13, align 4, !tbaa !15
  %89 = icmp ne i32 %88, 0
  br i1 %89, label %90, label %94

90:                                               ; preds = %79
  %91 = load ptr, ptr %10, align 8, !tbaa !5
  call void @free(ptr noundef %91) #6
  %92 = load ptr, ptr %8, align 8, !tbaa !5
  call void @free(ptr noundef %92) #6
  %93 = load i32, ptr %13, align 4, !tbaa !15
  store i32 %93, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %136

94:                                               ; preds = %79
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  store i64 0, ptr %14, align 8, !tbaa !9
  br label %95

95:                                               ; preds = %130, %94
  %96 = load i64, ptr %14, align 8, !tbaa !9
  %97 = load i64, ptr %5, align 8, !tbaa !9
  %98 = udiv i64 %97, 2
  %99 = add i64 %98, 1
  %100 = icmp ult i64 %96, %99
  br i1 %100, label %102, label %101

101:                                              ; preds = %95
  store i32 5, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  br label %133

102:                                              ; preds = %95
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  %103 = load i64, ptr %14, align 8, !tbaa !9
  %104 = uitofp i64 %103 to double
  %105 = fmul double %104, 0x400921FB54442D18
  %106 = load i64, ptr %5, align 8, !tbaa !9
  %107 = mul i64 %106, 2
  %108 = uitofp i64 %107 to double
  %109 = fdiv double %105, %108
  %110 = fptrunc double %109 to float
  store float %110, ptr %15, align 4, !tbaa !11
  %111 = load ptr, ptr %8, align 8, !tbaa !5
  %112 = load i64, ptr %14, align 8, !tbaa !9
  %113 = getelementptr inbounds %"struct.ei::fft_complex_t", ptr %111, i64 %112
  %114 = getelementptr inbounds %"struct.ei::fft_complex_t", ptr %113, i32 0, i32 0
  %115 = load float, ptr %114, align 4, !tbaa !17
  %116 = load float, ptr %15, align 4, !tbaa !11
  %117 = call noundef float @_ZSt3cosf(float noundef %116)
  %118 = load ptr, ptr %8, align 8, !tbaa !5
  %119 = load i64, ptr %14, align 8, !tbaa !9
  %120 = getelementptr inbounds %"struct.ei::fft_complex_t", ptr %118, i64 %119
  %121 = getelementptr inbounds %"struct.ei::fft_complex_t", ptr %120, i32 0, i32 1
  %122 = load float, ptr %121, align 4, !tbaa !19
  %123 = load float, ptr %15, align 4, !tbaa !11
  %124 = call noundef float @_ZSt3sinf(float noundef %123)
  %125 = fmul float %122, %124
  %126 = call float @llvm.fmuladd.f32(float %115, float %117, float %125)
  %127 = load ptr, ptr %4, align 8, !tbaa !5
  %128 = load i64, ptr %14, align 8, !tbaa !9
  %129 = getelementptr inbounds float, ptr %127, i64 %128
  store float %126, ptr %129, align 4, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  br label %130

130:                                              ; preds = %102
  %131 = load i64, ptr %14, align 8, !tbaa !9
  %132 = add i64 %131, 1
  store i64 %132, ptr %14, align 8, !tbaa !9
  br label %95, !llvm.loop !20

133:                                              ; preds = %101
  %134 = load ptr, ptr %10, align 8, !tbaa !5
  call void @free(ptr noundef %134) #6
  %135 = load ptr, ptr %8, align 8, !tbaa !5
  call void @free(ptr noundef %135) #6
  store i32 0, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %136

136:                                              ; preds = %133, %90
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  br label %137

137:                                              ; preds = %136, %32
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  br label %138

138:                                              ; preds = %137, %26
  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
  %139 = load i32, ptr %3, align 4
  ret i32 %139
}

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

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

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

; 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
declare dso_local noundef i32 @_ZN2ei5numpy4rfftEPKfmPNS_13fft_complex_tEmm(ptr noundef, i64 noundef, ptr noundef, i64 noundef, i64 noundef) #0 align 2

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

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

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

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 = { 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 #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 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 #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!16, !16, i64 0}
!16 = !{!"int", !7, i64 0}
!17 = !{!18, !12, i64 0}
!18 = !{!"_ZTSN2ei13fft_complex_tE", !12, i64 0, !12, i64 4}
!19 = !{!18, !12, i64 4}
!20 = distinct !{!20, !14}


; 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.ei::fft_complex_t" = type { float, float }

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN2ei3dct9transformEPfm(ptr nocapture noundef %0, i64 noundef %1) local_unnamed_addr #0 {
  %3 = lshr i64 %1, 1
  %4 = add nuw i64 %3, 1
  %5 = shl i64 %4, 3
  %6 = tail call noalias ptr @calloc(i64 noundef %5, i64 noundef 1) #5
  %.not = icmp eq ptr %6, null
  br i1 %.not, label %66, label %7

7:                                                ; preds = %2
  %8 = shl i64 %1, 2
  %9 = tail call noalias ptr @calloc(i64 noundef %8, i64 noundef 1) #5
  %.not55 = icmp eq ptr %9, null
  br i1 %.not55, label %11, label %.preheader59

.preheader59:                                     ; preds = %7
  %invariant.gep = getelementptr float, ptr %9, i64 %1
  %.not62 = icmp ult i64 %1, 2
  br i1 %.not62, label %._crit_edge, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %.preheader59
  %10 = icmp eq i64 %3, 1
  br i1 %10, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph.preheader.new

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

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

._crit_edge.loopexit.unr-lcssa:                   ; preds = %.lr.ph, %.lr.ph.preheader
  %.05060.unr = phi i64 [ 0, %.lr.ph.preheader ], [ %39, %.lr.ph ]
  %12 = and i64 %1, 2
  %lcmp.mod.not = icmp eq i64 %12, 0
  br i1 %lcmp.mod.not, label %._crit_edge, label %.lr.ph.epil

.lr.ph.epil:                                      ; preds = %._crit_edge.loopexit.unr-lcssa
  %13 = shl nuw i64 %.05060.unr, 1
  %14 = getelementptr inbounds float, ptr %0, i64 %13
  %15 = load float, ptr %14, align 4, !tbaa !5
  %16 = getelementptr inbounds float, ptr %9, i64 %.05060.unr
  store float %15, ptr %16, align 4, !tbaa !5
  %17 = or disjoint i64 %13, 1
  %18 = getelementptr inbounds float, ptr %0, i64 %17
  %19 = load float, ptr %18, align 4, !tbaa !5
  %20 = xor i64 %.05060.unr, -1
  %gep.epil = getelementptr float, ptr %invariant.gep, i64 %20
  store float %19, ptr %gep.epil, align 4, !tbaa !5
  br label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph.epil, %._crit_edge.loopexit.unr-lcssa, %.preheader59
  %21 = and i64 %1, 1
  %.not56 = icmp eq i64 %21, 0
  br i1 %.not56, label %45, label %40

.lr.ph:                                           ; preds = %.lr.ph, %.lr.ph.preheader.new
  %.05060 = phi i64 [ 0, %.lr.ph.preheader.new ], [ %39, %.lr.ph ]
  %niter = phi i64 [ 0, %.lr.ph.preheader.new ], [ %niter.next.1, %.lr.ph ]
  %22 = shl nuw i64 %.05060, 1
  %23 = getelementptr inbounds float, ptr %0, i64 %22
  %24 = load float, ptr %23, align 4, !tbaa !5
  %25 = getelementptr inbounds float, ptr %9, i64 %.05060
  store float %24, ptr %25, align 4, !tbaa !5
  %26 = or disjoint i64 %22, 1
  %27 = getelementptr inbounds float, ptr %0, i64 %26
  %28 = load float, ptr %27, align 4, !tbaa !5
  %29 = xor i64 %.05060, -1
  %gep = getelementptr float, ptr %invariant.gep, i64 %29
  store float %28, ptr %gep, align 4, !tbaa !5
  %30 = or disjoint i64 %.05060, 1
  %31 = shl nuw i64 %30, 1
  %32 = getelementptr inbounds float, ptr %0, i64 %31
  %33 = load float, ptr %32, align 4, !tbaa !5
  %34 = getelementptr inbounds float, ptr %9, i64 %30
  store float %33, ptr %34, align 4, !tbaa !5
  %35 = or disjoint i64 %31, 1
  %36 = getelementptr inbounds float, ptr %0, i64 %35
  %37 = load float, ptr %36, align 4, !tbaa !5
  %38 = xor i64 %.05060, -2
  %gep.1 = getelementptr float, ptr %invariant.gep, i64 %38
  store float %37, ptr %gep.1, align 4, !tbaa !5
  %39 = add nuw nsw i64 %.05060, 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_edge.loopexit.unr-lcssa, label %.lr.ph, !llvm.loop !9

40:                                               ; preds = %._crit_edge
  %41 = getelementptr float, ptr %0, i64 %1
  %42 = getelementptr i8, ptr %41, i64 -4
  %43 = load float, ptr %42, align 4, !tbaa !5
  %44 = getelementptr inbounds float, ptr %9, i64 %3
  store float %43, ptr %44, align 4, !tbaa !5
  br label %45

45:                                               ; preds = %40, %._crit_edge
  %46 = tail call noundef i32 @_ZN2ei5numpy4rfftEPKfmPNS_13fft_complex_tEmm(ptr noundef nonnull %9, i64 noundef %1, ptr noundef nonnull %6, i64 noundef %4, i64 noundef %1)
  %.not57 = icmp eq i32 %46, 0
  br i1 %.not57, label %.preheader, label %49

.preheader:                                       ; preds = %45
  %47 = shl i64 %1, 1
  %48 = uitofp i64 %47 to double
  br label %51

49:                                               ; preds = %45
  tail call void @free(ptr noundef nonnull %9) #6
  tail call void @free(ptr noundef %6) #6
  br label %66

50:                                               ; preds = %51
  tail call void @free(ptr noundef %9) #6
  tail call void @free(ptr noundef nonnull %6) #6
  br label %66

51:                                               ; preds = %.preheader, %51
  %.04961 = phi i64 [ 0, %.preheader ], [ %65, %51 ]
  %52 = uitofp nneg i64 %.04961 to double
  %53 = fmul double %52, 0x400921FB54442D18
  %54 = fdiv double %53, %48
  %55 = fptrunc double %54 to float
  %56 = getelementptr inbounds %"struct.ei::fft_complex_t", ptr %6, i64 %.04961
  %57 = load float, ptr %56, align 4, !tbaa !11
  %58 = tail call noundef float @_ZSt3cosf(float noundef %55)
  %59 = getelementptr inbounds i8, ptr %56, i64 4
  %60 = load float, ptr %59, align 4, !tbaa !13
  %61 = tail call noundef float @_ZSt3sinf(float noundef %55)
  %62 = fmul float %60, %61
  %63 = tail call float @llvm.fmuladd.f32(float %57, float %58, float %62)
  %64 = getelementptr inbounds float, ptr %0, i64 %.04961
  store float %63, ptr %64, align 4, !tbaa !5
  %65 = add nuw i64 %.04961, 1
  %exitcond63.not = icmp eq i64 %.04961, %3
  br i1 %exitcond63.not, label %50, label %51, !llvm.loop !14

66:                                               ; preds = %11, %50, %49, %2
  %.2 = phi i32 [ -1002, %2 ], [ -1002, %11 ], [ %46, %49 ], [ 0, %50 ]
  ret i32 %.2
}

; 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 uwtable
declare dso_local noundef i32 @_ZN2ei5numpy4rfftEPKfmPNS_13fft_complex_tEmm(ptr noundef, i64 noundef, ptr noundef, i64 noundef, i64 noundef) local_unnamed_addr #0 align 2

; 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 nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #4

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 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 nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { nounwind allocsize(0,1) }
attributes #6 = { 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 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!12, !6, i64 0}
!12 = !{!"_ZTSN2ei13fft_complex_tE", !6, i64 0, !6, i64 4}
!13 = !{!12, !6, i64 4}
!14 = distinct !{!14, !10}


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