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

; 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.TriangleFilter = type { i32, i32 }

@g_mel_low_frequency = external hidden global i32, align 4
@g_mel_high_frequency = external hidden global i32, align 4
@g_mel_num = external hidden global i32, align 4
@g_mel_para = external hidden global [128 x %struct.TriangleFilter], align 16

; 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: nounwind uwtable
define dso_local void @GetMelPara(i32 noundef %0, i32 noundef %1) #1 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca float, align 4
  %7 = alloca float, align 4
  %8 = alloca float, align 4
  %9 = alloca float, align 4
  %10 = alloca [130 x i32], align 16
  store i32 %0, ptr %3, align 4, !tbaa !5
  store i32 %1, ptr %4, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 520, ptr %10) #4
  %11 = load i32, ptr @g_mel_low_frequency, align 4, !tbaa !5
  %12 = sitofp i32 %11 to float
  %13 = load i32, ptr %3, align 4, !tbaa !5
  %14 = sitofp i32 %13 to float
  %15 = fmul float %12, %14
  %16 = load i32, ptr %4, align 4, !tbaa !5
  %17 = sitofp i32 %16 to float
  %18 = fdiv float %15, %17
  %19 = fpext float %18 to double
  %20 = fdiv double %19, 7.000000e+02
  %21 = fadd double 1.000000e+00, %20
  %22 = call double @log(double noundef %21) #4
  %23 = fmul double 1.127000e+03, %22
  %24 = fptrunc double %23 to float
  store float %24, ptr %6, align 4, !tbaa !9
  %25 = load i32, ptr @g_mel_high_frequency, align 4, !tbaa !5
  %26 = sitofp i32 %25 to float
  %27 = load i32, ptr %3, align 4, !tbaa !5
  %28 = sitofp i32 %27 to float
  %29 = fmul float %26, %28
  %30 = load i32, ptr %4, align 4, !tbaa !5
  %31 = sitofp i32 %30 to float
  %32 = fdiv float %29, %31
  %33 = fpext float %32 to double
  %34 = fdiv double %33, 7.000000e+02
  %35 = fadd double 1.000000e+00, %34
  %36 = call double @log(double noundef %35) #4
  %37 = fmul double 1.127000e+03, %36
  %38 = fptrunc double %37 to float
  store float %38, ptr %7, align 4, !tbaa !9
  %39 = load float, ptr %7, align 4, !tbaa !9
  %40 = load float, ptr %6, align 4, !tbaa !9
  %41 = fsub float %39, %40
  %42 = load i32, ptr @g_mel_num, align 4, !tbaa !5
  %43 = add nsw i32 %42, 1
  %44 = sitofp i32 %43 to float
  %45 = fdiv float %41, %44
  store float %45, ptr %8, align 4, !tbaa !9
  %46 = load i32, ptr @g_mel_low_frequency, align 4, !tbaa !5
  %47 = getelementptr inbounds [130 x i32], ptr %10, i64 0, i64 0
  store i32 %46, ptr %47, align 16, !tbaa !5
  %48 = load float, ptr %6, align 4, !tbaa !9
  store float %48, ptr %9, align 4, !tbaa !9
  store i32 1, ptr %5, align 4, !tbaa !5
  br label %49

49:                                               ; preds = %74, %2
  %50 = load i32, ptr %5, align 4, !tbaa !5
  %51 = load i32, ptr @g_mel_num, align 4, !tbaa !5
  %52 = icmp sle i32 %50, %51
  br i1 %52, label %53, label %77

53:                                               ; preds = %49
  %54 = load float, ptr %9, align 4, !tbaa !9
  %55 = load float, ptr %8, align 4, !tbaa !9
  %56 = fadd float %54, %55
  store float %56, ptr %9, align 4, !tbaa !9
  %57 = load float, ptr %9, align 4, !tbaa !9
  %58 = fpext float %57 to double
  %59 = fdiv double %58, 1.127000e+03
  %60 = call double @exp(double noundef %59) #4
  %61 = call double @llvm.fmuladd.f64(double 7.000000e+02, double %60, double -7.000000e+02)
  %62 = fptrunc double %61 to float
  %63 = load i32, ptr %4, align 4, !tbaa !5
  %64 = sitofp i32 %63 to float
  %65 = fmul float %62, %64
  %66 = load i32, ptr %3, align 4, !tbaa !5
  %67 = sitofp i32 %66 to float
  %68 = fdiv float %65, %67
  %69 = fadd float %68, 5.000000e-01
  %70 = fptosi float %69 to i32
  %71 = load i32, ptr %5, align 4, !tbaa !5
  %72 = sext i32 %71 to i64
  %73 = getelementptr inbounds [130 x i32], ptr %10, i64 0, i64 %72
  store i32 %70, ptr %73, align 4, !tbaa !5
  br label %74

74:                                               ; preds = %53
  %75 = load i32, ptr %5, align 4, !tbaa !5
  %76 = add nsw i32 %75, 1
  store i32 %76, ptr %5, align 4, !tbaa !5
  br label %49, !llvm.loop !11

77:                                               ; preds = %49
  %78 = load i32, ptr @g_mel_high_frequency, align 4, !tbaa !5
  %79 = load i32, ptr %5, align 4, !tbaa !5
  %80 = sext i32 %79 to i64
  %81 = getelementptr inbounds [130 x i32], ptr %10, i64 0, i64 %80
  store i32 %78, ptr %81, align 4, !tbaa !5
  store i32 0, ptr %5, align 4, !tbaa !5
  br label %82

82:                                               ; preds = %151, %77
  %83 = load i32, ptr %5, align 4, !tbaa !5
  %84 = load i32, ptr @g_mel_num, align 4, !tbaa !5
  %85 = icmp slt i32 %83, %84
  br i1 %85, label %86, label %154

86:                                               ; preds = %82
  %87 = load i32, ptr %5, align 4, !tbaa !5
  %88 = sext i32 %87 to i64
  %89 = getelementptr inbounds [130 x i32], ptr %10, i64 0, i64 %88
  %90 = load i32, ptr %89, align 4, !tbaa !5
  %91 = load i32, ptr %5, align 4, !tbaa !5
  %92 = add nsw i32 %91, 1
  %93 = sext i32 %92 to i64
  %94 = getelementptr inbounds [130 x i32], ptr %10, i64 0, i64 %93
  %95 = load i32, ptr %94, align 4, !tbaa !5
  %96 = icmp eq i32 %90, %95
  br i1 %96, label %97, label %108

97:                                               ; preds = %86
  %98 = load i32, ptr %5, align 4, !tbaa !5
  %99 = add nsw i32 %98, 1
  %100 = sext i32 %99 to i64
  %101 = getelementptr inbounds [130 x i32], ptr %10, i64 0, i64 %100
  %102 = load i32, ptr %101, align 4, !tbaa !5
  %103 = sub nsw i32 %102, 1
  %104 = load i32, ptr %5, align 4, !tbaa !5
  %105 = sext i32 %104 to i64
  %106 = getelementptr inbounds [128 x %struct.TriangleFilter], ptr @g_mel_para, i64 0, i64 %105
  %107 = getelementptr inbounds %struct.TriangleFilter, ptr %106, i32 0, i32 0
  store i32 %103, ptr %107, align 8, !tbaa !13
  br label %117

108:                                              ; preds = %86
  %109 = load i32, ptr %5, align 4, !tbaa !5
  %110 = sext i32 %109 to i64
  %111 = getelementptr inbounds [130 x i32], ptr %10, i64 0, i64 %110
  %112 = load i32, ptr %111, align 4, !tbaa !5
  %113 = load i32, ptr %5, align 4, !tbaa !5
  %114 = sext i32 %113 to i64
  %115 = getelementptr inbounds [128 x %struct.TriangleFilter], ptr @g_mel_para, i64 0, i64 %114
  %116 = getelementptr inbounds %struct.TriangleFilter, ptr %115, i32 0, i32 0
  store i32 %112, ptr %116, align 8, !tbaa !13
  br label %117

117:                                              ; preds = %108, %97
  %118 = load i32, ptr %5, align 4, !tbaa !5
  %119 = add nsw i32 %118, 1
  %120 = sext i32 %119 to i64
  %121 = getelementptr inbounds [130 x i32], ptr %10, i64 0, i64 %120
  %122 = load i32, ptr %121, align 4, !tbaa !5
  %123 = load i32, ptr %5, align 4, !tbaa !5
  %124 = add nsw i32 %123, 2
  %125 = sext i32 %124 to i64
  %126 = getelementptr inbounds [130 x i32], ptr %10, i64 0, i64 %125
  %127 = load i32, ptr %126, align 4, !tbaa !5
  %128 = icmp eq i32 %122, %127
  br i1 %128, label %129, label %140

129:                                              ; preds = %117
  %130 = load i32, ptr %5, align 4, !tbaa !5
  %131 = add nsw i32 %130, 1
  %132 = sext i32 %131 to i64
  %133 = getelementptr inbounds [130 x i32], ptr %10, i64 0, i64 %132
  %134 = load i32, ptr %133, align 4, !tbaa !5
  %135 = add nsw i32 %134, 1
  %136 = load i32, ptr %5, align 4, !tbaa !5
  %137 = sext i32 %136 to i64
  %138 = getelementptr inbounds [128 x %struct.TriangleFilter], ptr @g_mel_para, i64 0, i64 %137
  %139 = getelementptr inbounds %struct.TriangleFilter, ptr %138, i32 0, i32 1
  store i32 %135, ptr %139, align 4, !tbaa !15
  br label %150

140:                                              ; preds = %117
  %141 = load i32, ptr %5, align 4, !tbaa !5
  %142 = add nsw i32 %141, 2
  %143 = sext i32 %142 to i64
  %144 = getelementptr inbounds [130 x i32], ptr %10, i64 0, i64 %143
  %145 = load i32, ptr %144, align 4, !tbaa !5
  %146 = load i32, ptr %5, align 4, !tbaa !5
  %147 = sext i32 %146 to i64
  %148 = getelementptr inbounds [128 x %struct.TriangleFilter], ptr @g_mel_para, i64 0, i64 %147
  %149 = getelementptr inbounds %struct.TriangleFilter, ptr %148, i32 0, i32 1
  store i32 %145, ptr %149, align 4, !tbaa !15
  br label %150

150:                                              ; preds = %140, %129
  br label %151

151:                                              ; preds = %150
  %152 = load i32, ptr %5, align 4, !tbaa !5
  %153 = add nsw i32 %152, 1
  store i32 %153, ptr %5, align 4, !tbaa !5
  br label %82, !llvm.loop !16

154:                                              ; preds = %82
  call void @llvm.lifetime.end.p0(i64 520, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  ret void
}

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

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

; 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 = { 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 #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 }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"float", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!14, !6, i64 0}
!14 = !{!"TriangleFilter", !6, i64 0, !6, i64 4}
!15 = !{!14, !6, i64 4}
!16 = distinct !{!16, !12}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.TriangleFilter = type { i32, i32 }

@g_mel_low_frequency = external hidden local_unnamed_addr global i32, align 4
@g_mel_high_frequency = external hidden local_unnamed_addr global i32, align 4
@g_mel_num = external hidden local_unnamed_addr global i32, align 4
@g_mel_para = external hidden local_unnamed_addr global [128 x %struct.TriangleFilter], align 16

; 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: nofree nounwind memory(readwrite, argmem: write, inaccessiblemem: write) uwtable
define dso_local void @GetMelPara(i32 noundef %0, i32 noundef %1) local_unnamed_addr #1 {
  %3 = alloca [130 x i32], align 16
  call void @llvm.lifetime.start.p0(i64 520, ptr nonnull %3) #4
  %4 = load i32, ptr @g_mel_low_frequency, align 4, !tbaa !5
  %5 = sitofp i32 %4 to float
  %6 = sitofp i32 %0 to float
  %7 = fmul float %6, %5
  %8 = sitofp i32 %1 to float
  %9 = fdiv float %7, %8
  %10 = fpext float %9 to double
  %11 = fdiv double %10, 7.000000e+02
  %12 = fadd double %11, 1.000000e+00
  %13 = tail call double @log(double noundef %12) #4
  %14 = fmul double %13, 1.127000e+03
  %15 = fptrunc double %14 to float
  %16 = load i32, ptr @g_mel_high_frequency, align 4, !tbaa !5
  %17 = sitofp i32 %16 to float
  %18 = fmul float %6, %17
  %19 = fdiv float %18, %8
  %20 = fpext float %19 to double
  %21 = fdiv double %20, 7.000000e+02
  %22 = fadd double %21, 1.000000e+00
  %23 = tail call double @log(double noundef %22) #4
  %24 = fmul double %23, 1.127000e+03
  %25 = fptrunc double %24 to float
  %26 = fsub float %25, %15
  %27 = load i32, ptr @g_mel_num, align 4, !tbaa !5
  %28 = add nsw i32 %27, 1
  %29 = sitofp i32 %28 to float
  %30 = fdiv float %26, %29
  %31 = load i32, ptr @g_mel_low_frequency, align 4, !tbaa !5
  store i32 %31, ptr %3, align 16, !tbaa !5
  %.not34 = icmp slt i32 %27, 1
  br i1 %.not34, label %._crit_edge41, label %.lr.ph

.lr.ph:                                           ; preds = %2, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 1, %2 ]
  %.036 = phi float [ %32, %.lr.ph ], [ %15, %2 ]
  %32 = fadd float %30, %.036
  %33 = fpext float %32 to double
  %34 = fdiv double %33, 1.127000e+03
  %35 = tail call double @exp(double noundef %34) #4
  %36 = tail call double @llvm.fmuladd.f64(double %35, double 7.000000e+02, double -7.000000e+02)
  %37 = fptrunc double %36 to float
  %38 = fmul float %8, %37
  %39 = fdiv float %38, %6
  %40 = fadd float %39, 5.000000e-01
  %41 = fptosi float %40 to i32
  %42 = getelementptr inbounds [130 x i32], ptr %3, i64 0, i64 %indvars.iv
  store i32 %41, ptr %42, align 4, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %43 = load i32, ptr @g_mel_num, align 4, !tbaa !5
  %44 = sext i32 %43 to i64
  %.not.not = icmp slt i64 %indvars.iv, %44
  br i1 %.not.not, label %.lr.ph, label %._crit_edge, !llvm.loop !9

._crit_edge:                                      ; preds = %.lr.ph
  %45 = and i64 %indvars.iv.next, 4294967295
  %46 = load i32, ptr @g_mel_high_frequency, align 4, !tbaa !5
  %47 = getelementptr inbounds [130 x i32], ptr %3, i64 0, i64 %45
  store i32 %46, ptr %47, align 4, !tbaa !5
  %48 = icmp sgt i32 %43, 0
  br i1 %48, label %.lr.ph40.preheader, label %._crit_edge41

.lr.ph40.preheader:                               ; preds = %._crit_edge
  %wide.trip.count = zext nneg i32 %43 to i64
  %.pre = load i32, ptr %3, align 16, !tbaa !5
  %.phi.trans.insert = getelementptr inbounds i8, ptr %3, i64 4
  %.pre49 = load i32, ptr %.phi.trans.insert, align 4, !tbaa !5
  %xtraiter = and i64 %wide.trip.count, 1
  %49 = icmp eq i32 %43, 1
  br i1 %49, label %._crit_edge41.loopexit.unr-lcssa, label %.lr.ph40.preheader.new

.lr.ph40.preheader.new:                           ; preds = %.lr.ph40.preheader
  %unroll_iter = and i64 %wide.trip.count, 2147483646
  br label %.lr.ph40

.lr.ph40:                                         ; preds = %.lr.ph40, %.lr.ph40.preheader.new
  %50 = phi i32 [ %.pre49, %.lr.ph40.preheader.new ], [ %66, %.lr.ph40 ]
  %51 = phi i32 [ %.pre, %.lr.ph40.preheader.new ], [ %57, %.lr.ph40 ]
  %indvars.iv45 = phi i64 [ 0, %.lr.ph40.preheader.new ], [ %indvars.iv.next46.1, %.lr.ph40 ]
  %niter = phi i64 [ 0, %.lr.ph40.preheader.new ], [ %niter.next.1, %.lr.ph40 ]
  %indvars.iv.next46 = or disjoint i64 %indvars.iv45, 1
  %52 = icmp eq i32 %51, %50
  %53 = add nsw i32 %50, -1
  %spec.select = select i1 %52, i32 %53, i32 %51
  %54 = getelementptr inbounds [128 x %struct.TriangleFilter], ptr @g_mel_para, i64 0, i64 %indvars.iv45
  store i32 %spec.select, ptr %54, align 16
  %55 = add nuw nsw i64 %indvars.iv45, 2
  %56 = getelementptr inbounds [130 x i32], ptr %3, i64 0, i64 %55
  %57 = load i32, ptr %56, align 8, !tbaa !5
  %58 = icmp eq i32 %50, %57
  %59 = add nsw i32 %50, 1
  %.sink48 = select i1 %58, i32 %59, i32 %57
  %60 = getelementptr inbounds [128 x %struct.TriangleFilter], ptr @g_mel_para, i64 0, i64 %indvars.iv45, i32 1
  store i32 %.sink48, ptr %60, align 4
  %indvars.iv.next46.1 = add nuw nsw i64 %indvars.iv45, 2
  %61 = icmp eq i32 %50, %57
  %62 = add nsw i32 %57, -1
  %spec.select.1 = select i1 %61, i32 %62, i32 %50
  %63 = getelementptr inbounds [128 x %struct.TriangleFilter], ptr @g_mel_para, i64 0, i64 %indvars.iv.next46
  store i32 %spec.select.1, ptr %63, align 8
  %64 = add nuw nsw i64 %indvars.iv45, 3
  %65 = getelementptr inbounds [130 x i32], ptr %3, i64 0, i64 %64
  %66 = load i32, ptr %65, align 4, !tbaa !5
  %67 = icmp eq i32 %57, %66
  %68 = add nsw i32 %57, 1
  %.sink48.1 = select i1 %67, i32 %68, i32 %66
  %69 = getelementptr inbounds [128 x %struct.TriangleFilter], ptr @g_mel_para, i64 0, i64 %indvars.iv.next46, i32 1
  store i32 %.sink48.1, ptr %69, align 4
  %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_edge41.loopexit.unr-lcssa, label %.lr.ph40, !llvm.loop !11

._crit_edge41.loopexit.unr-lcssa:                 ; preds = %.lr.ph40, %.lr.ph40.preheader
  %.unr = phi i32 [ %.pre49, %.lr.ph40.preheader ], [ %66, %.lr.ph40 ]
  %.unr52 = phi i32 [ %.pre, %.lr.ph40.preheader ], [ %57, %.lr.ph40 ]
  %indvars.iv45.unr = phi i64 [ 0, %.lr.ph40.preheader ], [ %indvars.iv.next46.1, %.lr.ph40 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge41, label %.lr.ph40.epil

.lr.ph40.epil:                                    ; preds = %._crit_edge41.loopexit.unr-lcssa
  %70 = icmp eq i32 %.unr52, %.unr
  %71 = add nsw i32 %.unr, -1
  %spec.select.epil = select i1 %70, i32 %71, i32 %.unr52
  %72 = getelementptr inbounds [128 x %struct.TriangleFilter], ptr @g_mel_para, i64 0, i64 %indvars.iv45.unr
  store i32 %spec.select.epil, ptr %72, align 8
  %73 = add nuw nsw i64 %indvars.iv45.unr, 2
  %74 = getelementptr inbounds [130 x i32], ptr %3, i64 0, i64 %73
  %75 = load i32, ptr %74, align 4, !tbaa !5
  %76 = icmp eq i32 %.unr, %75
  %77 = add nsw i32 %.unr, 1
  %.sink48.epil = select i1 %76, i32 %77, i32 %75
  %78 = getelementptr inbounds [128 x %struct.TriangleFilter], ptr @g_mel_para, i64 0, i64 %indvars.iv45.unr, i32 1
  store i32 %.sink48.epil, ptr %78, align 4
  br label %._crit_edge41

._crit_edge41:                                    ; preds = %.lr.ph40.epil, %._crit_edge41.loopexit.unr-lcssa, %2, %._crit_edge
  call void @llvm.lifetime.end.p0(i64 520, ptr nonnull %3) #4
  ret void
}

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

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nofree nounwind memory(readwrite, argmem: write, inaccessiblemem: write) 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 = { 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 }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}


; Effective O3 passes: BDCEPass,DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,MergedLoadStoreMotionPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass