; LLVM IR from jingweizhanghuai/Morn :: src/wave (morn_wave_FFT)

; 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.MWave = type { i32, i32, [32 x ptr] }

@.str = external hidden unnamed_addr constant [80 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [10 x i8], align 1
@__FUNCTION__.mWaveFrequencyComponent = external hidden unnamed_addr constant [24 x i8], align 1

; 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

declare void @m_Exception(i32 noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, ...) #1

; Function Attrs: nounwind
declare double @cos(double noundef) #2

; Function Attrs: nounwind
declare double @sin(double noundef) #2

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

declare ptr @m_PropertyRead(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1

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

17:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  %18 = load ptr, ptr %4, align 8, !tbaa !5
  %19 = call ptr @m_PropertyRead(ptr noundef %18, ptr noundef @.str.4, ptr noundef %7, ptr noundef null)
  %20 = icmp eq ptr %19, null
  %21 = zext i1 %20 to i32
  store i32 %21, ptr %8, align 4, !tbaa !11
  %22 = load i32, ptr %8, align 4, !tbaa !11
  %23 = icmp ne i32 %22, 0
  br i1 %23, label %24, label %26

24:                                               ; preds = %17
  %25 = load i32, ptr %8, align 4, !tbaa !11
  call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef %25, i32 noundef -1, ptr noundef @.str, i32 noundef 455, ptr noundef @__FUNCTION__.mWaveFrequencyComponent, ptr noundef @.str.1)
  br label %26

26:                                               ; preds = %24, %17
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  br label %27

27:                                               ; preds = %26
  br label %28

28:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  %29 = load float, ptr %5, align 4, !tbaa !9
  %30 = fpext float %29 to double
  %31 = fmul double 0x401921FB54442D18, %30
  %32 = load float, ptr %7, align 4, !tbaa !9
  %33 = fpext float %32 to double
  %34 = fdiv double %31, %33
  %35 = fptrunc double %34 to float
  store float %35, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  store i32 0, ptr %10, align 4, !tbaa !11
  br label %36

36:                                               ; preds = %105, %28
  %37 = load i32, ptr %10, align 4, !tbaa !11
  %38 = load ptr, ptr %4, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.MWave, ptr %38, i32 0, i32 0
  %40 = load i32, ptr %39, align 8, !tbaa !13
  %41 = icmp slt i32 %37, %40
  br i1 %41, label %43, label %42

42:                                               ; preds = %36
  store i32 4, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  br label %108

43:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %44 = load ptr, ptr %4, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.MWave, ptr %44, i32 0, i32 2
  %46 = load i32, ptr %10, align 4, !tbaa !11
  %47 = sext i32 %46 to i64
  %48 = getelementptr inbounds [32 x ptr], ptr %45, i64 0, i64 %47
  %49 = load ptr, ptr %48, align 8, !tbaa !5
  store ptr %49, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  store float 0.000000e+00, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  %50 = load ptr, ptr %12, align 8, !tbaa !5
  %51 = getelementptr inbounds float, ptr %50, i64 0
  %52 = load float, ptr %51, align 4, !tbaa !9
  store float %52, ptr %14, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  store float 0.000000e+00, ptr %15, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  store i32 1, ptr %16, align 4, !tbaa !11
  br label %53

53:                                               ; preds = %91, %43
  %54 = load i32, ptr %16, align 4, !tbaa !11
  %55 = load ptr, ptr %4, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.MWave, ptr %55, i32 0, i32 1
  %57 = load i32, ptr %56, align 4, !tbaa !15
  %58 = icmp slt i32 %54, %57
  br i1 %58, label %60, label %59

59:                                               ; preds = %53
  store i32 7, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  br label %94

60:                                               ; preds = %53
  %61 = load float, ptr %13, align 4, !tbaa !9
  %62 = load float, ptr %9, align 4, !tbaa !9
  %63 = fadd float %61, %62
  store float %63, ptr %13, align 4, !tbaa !9
  %64 = load float, ptr %14, align 4, !tbaa !9
  %65 = fpext float %64 to double
  %66 = load ptr, ptr %12, align 8, !tbaa !5
  %67 = load i32, ptr %16, align 4, !tbaa !11
  %68 = sext i32 %67 to i64
  %69 = getelementptr inbounds float, ptr %66, i64 %68
  %70 = load float, ptr %69, align 4, !tbaa !9
  %71 = fpext float %70 to double
  %72 = load float, ptr %13, align 4, !tbaa !9
  %73 = fpext float %72 to double
  %74 = call double @cos(double noundef %73) #5
  %75 = call double @llvm.fmuladd.f64(double %71, double %74, double %65)
  %76 = fptrunc double %75 to float
  store float %76, ptr %14, align 4, !tbaa !9
  %77 = load float, ptr %15, align 4, !tbaa !9
  %78 = fpext float %77 to double
  %79 = load ptr, ptr %12, align 8, !tbaa !5
  %80 = load i32, ptr %16, align 4, !tbaa !11
  %81 = sext i32 %80 to i64
  %82 = getelementptr inbounds float, ptr %79, i64 %81
  %83 = load float, ptr %82, align 4, !tbaa !9
  %84 = fpext float %83 to double
  %85 = load float, ptr %13, align 4, !tbaa !9
  %86 = fpext float %85 to double
  %87 = call double @sin(double noundef %86) #5
  %88 = fneg double %84
  %89 = call double @llvm.fmuladd.f64(double %88, double %87, double %78)
  %90 = fptrunc double %89 to float
  store float %90, ptr %15, align 4, !tbaa !9
  br label %91

91:                                               ; preds = %60
  %92 = load i32, ptr %16, align 4, !tbaa !11
  %93 = add nsw i32 %92, 1
  store i32 %93, ptr %16, align 4, !tbaa !11
  br label %53, !llvm.loop !16

94:                                               ; preds = %59
  %95 = load float, ptr %14, align 4, !tbaa !9
  %96 = load float, ptr %14, align 4, !tbaa !9
  %97 = load float, ptr %15, align 4, !tbaa !9
  %98 = load float, ptr %15, align 4, !tbaa !9
  %99 = fmul float %97, %98
  %100 = call float @llvm.fmuladd.f32(float %95, float %96, float %99)
  %101 = load ptr, ptr %6, align 8, !tbaa !5
  %102 = load i32, ptr %10, align 4, !tbaa !11
  %103 = sext i32 %102 to i64
  %104 = getelementptr inbounds float, ptr %101, i64 %103
  store float %100, ptr %104, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  br label %105

105:                                              ; preds = %94
  %106 = load i32, ptr %10, align 4, !tbaa !11
  %107 = add nsw i32 %106, 1
  store i32 %107, ptr %10, align 4, !tbaa !11
  br label %36, !llvm.loop !18

108:                                              ; preds = %42
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  ret void
}

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #3

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nounwind 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 = { 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 = !{!10, !10, i64 0}
!10 = !{!"float", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !12, i64 0}
!14 = !{!"MWave", !12, i64 0, !12, i64 4, !7, i64 8}
!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"

@.str = external hidden unnamed_addr constant [80 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [10 x i8], align 1
@__FUNCTION__.mWaveFrequencyComponent = external hidden unnamed_addr constant [24 x i8], align 1

; 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

declare void @m_Exception(i32 noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, ...) local_unnamed_addr #1

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @cos(double noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @sin(double noundef) local_unnamed_addr #2

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

declare ptr @m_PropertyRead(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local void @mWaveFrequencyComponent(ptr noundef %0, float noundef %1, ptr nocapture noundef writeonly %2) local_unnamed_addr #4 {
  %4 = alloca float, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #6
  %5 = call ptr @m_PropertyRead(ptr noundef %0, ptr noundef nonnull @.str.4, ptr noundef nonnull %4, ptr noundef null) #6
  %6 = icmp eq ptr %5, null
  br i1 %6, label %7, label %8

7:                                                ; preds = %3
  call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef 1, i32 noundef -1, ptr noundef nonnull @.str, i32 noundef 455, ptr noundef nonnull @__FUNCTION__.mWaveFrequencyComponent, ptr noundef nonnull @.str.1) #6
  br label %8

8:                                                ; preds = %7, %3
  %9 = fpext float %1 to double
  %10 = fmul double %9, 0x401921FB54442D18
  %11 = load float, ptr %4, align 4, !tbaa !5
  %12 = fpext float %11 to double
  %13 = fdiv double %10, %12
  %14 = fptrunc double %13 to float
  %15 = load i32, ptr %0, align 8, !tbaa !9
  %16 = icmp sgt i32 %15, 0
  br i1 %16, label %.lr.ph39, label %._crit_edge40

.lr.ph39:                                         ; preds = %8
  %17 = getelementptr inbounds i8, ptr %0, i64 8
  %18 = getelementptr inbounds i8, ptr %0, i64 4
  %19 = load i32, ptr %18, align 4, !tbaa !12
  %20 = icmp sgt i32 %19, 1
  br i1 %20, label %.lr.ph39.split, label %.lr.ph39.split.us

.lr.ph39.split.us:                                ; preds = %.lr.ph39
  %wide.trip.count = zext nneg i32 %15 to i64
  %xtraiter = and i64 %wide.trip.count, 1
  %21 = icmp eq i32 %15, 1
  br i1 %21, label %._crit_edge40.loopexit57.unr-lcssa, label %.lr.ph39.split.us.new

.lr.ph39.split.us.new:                            ; preds = %.lr.ph39.split.us
  %unroll_iter = and i64 %wide.trip.count, 2147483646
  br label %22

22:                                               ; preds = %22, %.lr.ph39.split.us.new
  %indvars.iv = phi i64 [ 0, %.lr.ph39.split.us.new ], [ %indvars.iv.next.1, %22 ]
  %niter = phi i64 [ 0, %.lr.ph39.split.us.new ], [ %niter.next.1, %22 ]
  %23 = getelementptr inbounds [32 x ptr], ptr %17, i64 0, i64 %indvars.iv
  %24 = load ptr, ptr %23, align 8, !tbaa !13
  %25 = load float, ptr %24, align 4, !tbaa !5
  %26 = call float @llvm.fmuladd.f32(float %25, float %25, float 0.000000e+00)
  %27 = getelementptr inbounds float, ptr %2, i64 %indvars.iv
  store float %26, ptr %27, align 4, !tbaa !5
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %28 = getelementptr inbounds [32 x ptr], ptr %17, i64 0, i64 %indvars.iv.next
  %29 = load ptr, ptr %28, align 8, !tbaa !13
  %30 = load float, ptr %29, align 4, !tbaa !5
  %31 = call float @llvm.fmuladd.f32(float %30, float %30, float 0.000000e+00)
  %32 = getelementptr inbounds float, ptr %2, i64 %indvars.iv.next
  store float %31, ptr %32, align 4, !tbaa !5
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 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_edge40.loopexit57.unr-lcssa, label %22, !llvm.loop !15

._crit_edge40.loopexit57.unr-lcssa:               ; preds = %22, %.lr.ph39.split.us
  %indvars.iv.unr = phi i64 [ 0, %.lr.ph39.split.us ], [ %indvars.iv.next.1, %22 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge40, label %._crit_edge40.loopexit57.epilog-lcssa

._crit_edge40.loopexit57.epilog-lcssa:            ; preds = %._crit_edge40.loopexit57.unr-lcssa
  %33 = getelementptr inbounds [32 x ptr], ptr %17, i64 0, i64 %indvars.iv.unr
  %34 = load ptr, ptr %33, align 8, !tbaa !13
  %35 = load float, ptr %34, align 4, !tbaa !5
  %36 = call float @llvm.fmuladd.f32(float %35, float %35, float 0.000000e+00)
  %37 = getelementptr inbounds float, ptr %2, i64 %indvars.iv.unr
  store float %36, ptr %37, align 4, !tbaa !5
  br label %._crit_edge40

._crit_edge40:                                    ; preds = %._crit_edge40.loopexit57.epilog-lcssa, %._crit_edge40.loopexit57.unr-lcssa, %._crit_edge, %8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #6
  ret void

.lr.ph39.split:                                   ; preds = %.lr.ph39, %._crit_edge
  %38 = phi i32 [ %45, %._crit_edge ], [ %15, %.lr.ph39 ]
  %39 = phi i32 [ %46, %._crit_edge ], [ %19, %.lr.ph39 ]
  %indvars.iv47 = phi i64 [ %indvars.iv.next48, %._crit_edge ], [ 0, %.lr.ph39 ]
  %40 = getelementptr inbounds [32 x ptr], ptr %17, i64 0, i64 %indvars.iv47
  %41 = load ptr, ptr %40, align 8, !tbaa !13
  %42 = load float, ptr %41, align 4, !tbaa !5
  %43 = icmp sgt i32 %39, 1
  %44 = insertelement <2 x float> <float poison, float 0.000000e+00>, float %42, i64 0
  br i1 %43, label %.lr.ph, label %._crit_edge

._crit_edge.loopexit:                             ; preds = %.lr.ph
  %.pre = load i32, ptr %0, align 8, !tbaa !9
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %.lr.ph39.split
  %45 = phi i32 [ %38, %.lr.ph39.split ], [ %.pre, %._crit_edge.loopexit ]
  %46 = phi i32 [ %39, %.lr.ph39.split ], [ %73, %._crit_edge.loopexit ]
  %47 = phi <2 x float> [ %44, %.lr.ph39.split ], [ %72, %._crit_edge.loopexit ]
  %48 = fmul <2 x float> %47, %47
  %49 = extractelement <2 x float> %48, i64 1
  %50 = extractelement <2 x float> %47, i64 0
  %51 = call float @llvm.fmuladd.f32(float %50, float %50, float %49)
  %52 = getelementptr inbounds float, ptr %2, i64 %indvars.iv47
  store float %51, ptr %52, align 4, !tbaa !5
  %indvars.iv.next48 = add nuw nsw i64 %indvars.iv47, 1
  %53 = sext i32 %45 to i64
  %54 = icmp slt i64 %indvars.iv.next48, %53
  br i1 %54, label %.lr.ph39.split, label %._crit_edge40, !llvm.loop !17

.lr.ph:                                           ; preds = %.lr.ph39.split, %.lr.ph
  %indvars.iv44 = phi i64 [ %indvars.iv.next45, %.lr.ph ], [ 1, %.lr.ph39.split ]
  %.03032 = phi float [ %56, %.lr.ph ], [ 0.000000e+00, %.lr.ph39.split ]
  %55 = phi <2 x float> [ %72, %.lr.ph ], [ %44, %.lr.ph39.split ]
  %56 = fadd float %.03032, %14
  %57 = fpext <2 x float> %55 to <2 x double>
  %58 = getelementptr inbounds float, ptr %41, i64 %indvars.iv44
  %59 = load float, ptr %58, align 4, !tbaa !5
  %60 = fpext float %59 to double
  %61 = fpext float %56 to double
  %62 = call double @cos(double noundef %61) #6
  %63 = load float, ptr %58, align 4, !tbaa !5
  %64 = fpext float %63 to double
  %65 = call double @sin(double noundef %61) #6
  %66 = fneg double %64
  %67 = insertelement <2 x double> poison, double %60, i64 0
  %68 = insertelement <2 x double> %67, double %66, i64 1
  %69 = insertelement <2 x double> poison, double %62, i64 0
  %70 = insertelement <2 x double> %69, double %65, i64 1
  %71 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %68, <2 x double> %70, <2 x double> %57)
  %72 = fptrunc <2 x double> %71 to <2 x float>
  %indvars.iv.next45 = add nuw nsw i64 %indvars.iv44, 1
  %73 = load i32, ptr %18, align 4, !tbaa !12
  %74 = sext i32 %73 to i64
  %75 = icmp slt i64 %indvars.iv.next45, %74
  br i1 %75, label %.lr.ph, label %._crit_edge.loopexit, !llvm.loop !19
}

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <2 x double> @llvm.fmuladd.v2f64(<2 x double>, <2 x double>, <2 x double>) #5

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 #3 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { 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 }

!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/C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"MWave", !11, i64 0, !11, i64 4, !7, i64 8}
!11 = !{!"int", !7, i64 0}
!12 = !{!10, !11, i64 4}
!13 = !{!14, !14, i64 0}
!14 = !{!"any pointer", !7, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16, !18}
!18 = !{!"llvm.loop.unswitch.partial.disable"}
!19 = distinct !{!19, !16}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalDCEPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SCCPPass,SLPVectorizerPass,SROAPass,SimpleLoopUnswitchPass,SimplifyCFGPass,VectorCombinePass