; LLVM IR from jgaeddert/liquid-dsp :: src/equalization/src (equalizer_rrrf)

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

; Function Attrs: nounwind uwtable
define dso_local ptr @eqlms_rrrf_create(ptr noundef %0, i32 noundef %1) #0 {
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store i32 %1, ptr %4, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
  %7 = call noalias ptr @malloc(i64 noundef 64) #5
  store ptr %7, ptr %5, align 8, !tbaa !5
  %8 = load i32, ptr %4, align 4, !tbaa !9
  %9 = load ptr, ptr %5, align 8, !tbaa !5
  %10 = getelementptr inbounds %struct.eqlms_rrrf_s, ptr %9, i32 0, i32 0
  store i32 %8, ptr %10, align 8, !tbaa !11
  %11 = load ptr, ptr %5, align 8, !tbaa !5
  %12 = getelementptr inbounds %struct.eqlms_rrrf_s, ptr %11, i32 0, i32 1
  store float 5.000000e-01, ptr %12, align 4, !tbaa !14
  %13 = load ptr, ptr %5, align 8, !tbaa !5
  %14 = getelementptr inbounds %struct.eqlms_rrrf_s, ptr %13, i32 0, i32 0
  %15 = load i32, ptr %14, align 8, !tbaa !11
  %16 = zext i32 %15 to i64
  %17 = mul i64 %16, 4
  %18 = call noalias ptr @malloc(i64 noundef %17) #5
  %19 = load ptr, ptr %5, align 8, !tbaa !5
  %20 = getelementptr inbounds %struct.eqlms_rrrf_s, ptr %19, i32 0, i32 2
  store ptr %18, ptr %20, align 8, !tbaa !15
  %21 = load ptr, ptr %5, align 8, !tbaa !5
  %22 = getelementptr inbounds %struct.eqlms_rrrf_s, ptr %21, i32 0, i32 0
  %23 = load i32, ptr %22, align 8, !tbaa !11
  %24 = zext i32 %23 to i64
  %25 = mul i64 %24, 4
  %26 = call noalias ptr @malloc(i64 noundef %25) #5
  %27 = load ptr, ptr %5, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.eqlms_rrrf_s, ptr %27, i32 0, i32 3
  store ptr %26, ptr %28, align 8, !tbaa !16
  %29 = load ptr, ptr %5, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.eqlms_rrrf_s, ptr %29, i32 0, i32 0
  %31 = load i32, ptr %30, align 8, !tbaa !11
  %32 = zext i32 %31 to i64
  %33 = mul i64 %32, 4
  %34 = call noalias ptr @malloc(i64 noundef %33) #5
  %35 = load ptr, ptr %5, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.eqlms_rrrf_s, ptr %35, i32 0, i32 4
  store ptr %34, ptr %36, align 8, !tbaa !17
  %37 = load ptr, ptr %5, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.eqlms_rrrf_s, ptr %37, i32 0, i32 0
  %39 = load i32, ptr %38, align 8, !tbaa !11
  %40 = call ptr @windowf_create(i32 noundef %39)
  %41 = load ptr, ptr %5, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.eqlms_rrrf_s, ptr %41, i32 0, i32 7
  store ptr %40, ptr %42, align 8, !tbaa !18
  %43 = load ptr, ptr %5, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct.eqlms_rrrf_s, ptr %43, i32 0, i32 0
  %45 = load i32, ptr %44, align 8, !tbaa !11
  %46 = call ptr @wdelayf_create(i32 noundef %45)
  %47 = load ptr, ptr %5, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.eqlms_rrrf_s, ptr %47, i32 0, i32 8
  store ptr %46, ptr %48, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  %49 = load ptr, ptr %3, align 8, !tbaa !5
  %50 = icmp eq ptr %49, null
  br i1 %50, label %51, label %78

51:                                               ; preds = %2
  store i32 0, ptr %6, align 4, !tbaa !9
  br label %52

52:                                               ; preds = %74, %51
  %53 = load i32, ptr %6, align 4, !tbaa !9
  %54 = load ptr, ptr %5, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.eqlms_rrrf_s, ptr %54, i32 0, i32 0
  %56 = load i32, ptr %55, align 8, !tbaa !11
  %57 = icmp ult i32 %53, %56
  br i1 %57, label %58, label %77

58:                                               ; preds = %52
  %59 = load i32, ptr %6, align 4, !tbaa !9
  %60 = load ptr, ptr %5, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.eqlms_rrrf_s, ptr %60, i32 0, i32 0
  %62 = load i32, ptr %61, align 8, !tbaa !11
  %63 = udiv i32 %62, 2
  %64 = icmp eq i32 %59, %63
  %65 = zext i1 %64 to i64
  %66 = select i1 %64, double 1.000000e+00, double 0.000000e+00
  %67 = fptrunc double %66 to float
  %68 = load ptr, ptr %5, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.eqlms_rrrf_s, ptr %68, i32 0, i32 2
  %70 = load ptr, ptr %69, align 8, !tbaa !15
  %71 = load i32, ptr %6, align 4, !tbaa !9
  %72 = zext i32 %71 to i64
  %73 = getelementptr inbounds float, ptr %70, i64 %72
  store float %67, ptr %73, align 4, !tbaa !20
  br label %74

74:                                               ; preds = %58
  %75 = load i32, ptr %6, align 4, !tbaa !9
  %76 = add i32 %75, 1
  store i32 %76, ptr %6, align 4, !tbaa !9
  br label %52, !llvm.loop !21

77:                                               ; preds = %52
  br label %108

78:                                               ; preds = %2
  store i32 0, ptr %6, align 4, !tbaa !9
  br label %79

79:                                               ; preds = %104, %78
  %80 = load i32, ptr %6, align 4, !tbaa !9
  %81 = load ptr, ptr %5, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.eqlms_rrrf_s, ptr %81, i32 0, i32 0
  %83 = load i32, ptr %82, align 8, !tbaa !11
  %84 = icmp ult i32 %80, %83
  br i1 %84, label %85, label %107

85:                                               ; preds = %79
  %86 = load ptr, ptr %3, align 8, !tbaa !5
  %87 = load ptr, ptr %5, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.eqlms_rrrf_s, ptr %87, i32 0, i32 0
  %89 = load i32, ptr %88, align 8, !tbaa !11
  %90 = load i32, ptr %6, align 4, !tbaa !9
  %91 = sub i32 %89, %90
  %92 = sub i32 %91, 1
  %93 = zext i32 %92 to i64
  %94 = getelementptr inbounds float, ptr %86, i64 %93
  %95 = load float, ptr %94, align 4, !tbaa !20
  %96 = fpext float %95 to double
  %97 = fptrunc double %96 to float
  %98 = load ptr, ptr %5, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.eqlms_rrrf_s, ptr %98, i32 0, i32 2
  %100 = load ptr, ptr %99, align 8, !tbaa !15
  %101 = load i32, ptr %6, align 4, !tbaa !9
  %102 = zext i32 %101 to i64
  %103 = getelementptr inbounds float, ptr %100, i64 %102
  store float %97, ptr %103, align 4, !tbaa !20
  br label %104

104:                                              ; preds = %85
  %105 = load i32, ptr %6, align 4, !tbaa !9
  %106 = add i32 %105, 1
  store i32 %106, ptr %6, align 4, !tbaa !9
  br label %79, !llvm.loop !23

107:                                              ; preds = %79
  br label %108

108:                                              ; preds = %107, %77
  %109 = load ptr, ptr %5, align 8, !tbaa !5
  %110 = call i32 @eqlms_rrrf_reset(ptr noundef %109)
  %111 = load ptr, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  ret ptr %111
}

; 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)
declare noalias ptr @malloc(i64 noundef) #2

declare ptr @windowf_create(i32 noundef) #3

declare ptr @wdelayf_create(i32 noundef) #3

; Function Attrs: nounwind uwtable
declare dso_local i32 @eqlms_rrrf_reset(ptr noundef) #0

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

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

!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 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"eqlms_rrrf_s", !10, i64 0, !13, i64 4, !6, i64 8, !6, i64 16, !6, i64 24, !10, i64 32, !10, i64 36, !6, i64 40, !6, i64 48, !13, i64 56}
!13 = !{!"float", !7, i64 0}
!14 = !{!12, !13, i64 4}
!15 = !{!12, !6, i64 8}
!16 = !{!12, !6, i64 16}
!17 = !{!12, !6, i64 24}
!18 = !{!12, !6, i64 40}
!19 = !{!12, !6, i64 48}
!20 = !{!13, !13, i64 0}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = distinct !{!23, !22}


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

; Function Attrs: nounwind uwtable
define dso_local noundef ptr @eqlms_rrrf_create(ptr noundef readonly %0, i32 noundef %1) local_unnamed_addr #0 {
  %3 = tail call noalias dereferenceable_or_null(64) ptr @malloc(i64 noundef 64) #3
  store i32 %1, ptr %3, align 8, !tbaa !5
  %4 = getelementptr inbounds i8, ptr %3, i64 4
  store float 5.000000e-01, ptr %4, align 4, !tbaa !12
  %5 = zext i32 %1 to i64
  %6 = shl nuw nsw i64 %5, 2
  %7 = tail call noalias ptr @malloc(i64 noundef %6) #3
  %8 = getelementptr inbounds i8, ptr %3, i64 8
  store ptr %7, ptr %8, align 8, !tbaa !13
  %9 = tail call noalias ptr @malloc(i64 noundef %6) #3
  %10 = getelementptr inbounds i8, ptr %3, i64 16
  store ptr %9, ptr %10, align 8, !tbaa !14
  %11 = tail call noalias ptr @malloc(i64 noundef %6) #3
  %12 = getelementptr inbounds i8, ptr %3, i64 24
  store ptr %11, ptr %12, align 8, !tbaa !15
  %13 = tail call ptr @windowf_create(i32 noundef %1) #4
  %14 = getelementptr inbounds i8, ptr %3, i64 40
  store ptr %13, ptr %14, align 8, !tbaa !16
  %15 = tail call ptr @wdelayf_create(i32 noundef %1) #4
  %16 = getelementptr inbounds i8, ptr %3, i64 48
  store ptr %15, ptr %16, align 8, !tbaa !17
  %17 = icmp eq ptr %0, null
  %.not38 = icmp eq i32 %1, 0
  br i1 %17, label %.preheader, label %.preheader33

.preheader33:                                     ; preds = %2
  br i1 %.not38, label %.loopexit, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %.preheader33
  %min.iters.check = icmp ult i32 %1, 16
  br i1 %min.iters.check, label %.lr.ph.preheader62, label %vector.scevcheck

.lr.ph.preheader62:                               ; preds = %middle.block, %vector.scevcheck, %.lr.ph.preheader
  %indvars.iv.ph = phi i64 [ 0, %vector.scevcheck ], [ 0, %.lr.ph.preheader ], [ %n.vec, %middle.block ]
  %xtraiter = and i64 %5, 3
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.lr.ph.prol.loopexit, label %.lr.ph.prol

.lr.ph.prol:                                      ; preds = %.lr.ph.preheader62, %.lr.ph.prol
  %indvars.iv.prol = phi i64 [ %indvars.iv.next.prol, %.lr.ph.prol ], [ %indvars.iv.ph, %.lr.ph.preheader62 ]
  %prol.iter = phi i64 [ %prol.iter.next, %.lr.ph.prol ], [ 0, %.lr.ph.preheader62 ]
  %18 = trunc nuw i64 %indvars.iv.prol to i32
  %19 = xor i32 %18, -1
  %20 = add i32 %19, %1
  %21 = zext i32 %20 to i64
  %22 = getelementptr inbounds float, ptr %0, i64 %21
  %23 = load float, ptr %22, align 4, !tbaa !18
  %24 = getelementptr inbounds float, ptr %7, i64 %indvars.iv.prol
  store float %23, ptr %24, align 4, !tbaa !18
  %indvars.iv.next.prol = add nuw nsw i64 %indvars.iv.prol, 1
  %prol.iter.next = add i64 %prol.iter, 1
  %prol.iter.cmp.not = icmp eq i64 %prol.iter.next, %xtraiter
  br i1 %prol.iter.cmp.not, label %.lr.ph.prol.loopexit, label %.lr.ph.prol, !llvm.loop !19

.lr.ph.prol.loopexit:                             ; preds = %.lr.ph.prol, %.lr.ph.preheader62
  %indvars.iv.unr = phi i64 [ %indvars.iv.ph, %.lr.ph.preheader62 ], [ %indvars.iv.next.prol, %.lr.ph.prol ]
  %25 = sub nsw i64 %indvars.iv.ph, %5
  %26 = icmp ugt i64 %25, -4
  br i1 %26, label %.loopexit, label %.lr.ph

vector.scevcheck:                                 ; preds = %.lr.ph.preheader
  %27 = add nsw i64 %5, -1
  %28 = add i32 %1, -1
  %29 = trunc i64 %27 to i32
  %30 = icmp ult i32 %28, %29
  %31 = icmp ugt i64 %27, 4294967295
  %32 = or i1 %30, %31
  br i1 %32, label %.lr.ph.preheader62, label %vector.ph

vector.ph:                                        ; preds = %vector.scevcheck
  %n.vec = and i64 %5, 4294967288
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %33 = trunc i64 %index to i32
  %34 = xor i32 %33, -1
  %35 = add i32 %34, %1
  %36 = zext i32 %35 to i64
  %37 = getelementptr inbounds float, ptr %0, i64 %36
  %38 = getelementptr inbounds i8, ptr %37, i64 -12
  %39 = getelementptr inbounds i8, ptr %37, i64 -28
  %wide.load = load <4 x float>, ptr %38, align 4, !tbaa !18
  %reverse = shufflevector <4 x float> %wide.load, <4 x float> poison, <4 x i32> <i32 3, i32 2, i32 1, i32 0>
  %wide.load48 = load <4 x float>, ptr %39, align 4, !tbaa !18
  %reverse49 = shufflevector <4 x float> %wide.load48, <4 x float> poison, <4 x i32> <i32 3, i32 2, i32 1, i32 0>
  %40 = getelementptr inbounds float, ptr %7, i64 %index
  %41 = getelementptr inbounds i8, ptr %40, i64 16
  store <4 x float> %reverse, ptr %40, align 4, !tbaa !18
  store <4 x float> %reverse49, ptr %41, align 4, !tbaa !18
  %index.next = add nuw i64 %index, 8
  %42 = icmp eq i64 %index.next, %n.vec
  br i1 %42, label %middle.block, label %vector.body, !llvm.loop !21

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %5
  br i1 %cmp.n, label %.loopexit, label %.lr.ph.preheader62

.preheader:                                       ; preds = %2
  br i1 %.not38, label %.loopexit, label %.lr.ph37

.lr.ph37:                                         ; preds = %.preheader
  %43 = lshr i32 %1, 1
  %44 = zext nneg i32 %43 to i64
  %min.iters.check52 = icmp ult i32 %1, 8
  br i1 %min.iters.check52, label %scalar.ph51.preheader, label %vector.ph53

vector.ph53:                                      ; preds = %.lr.ph37
  %n.vec55 = and i64 %5, 4294967288
  %broadcast.splatinsert = insertelement <4 x i64> poison, i64 %44, i64 0
  %broadcast.splat = shufflevector <4 x i64> %broadcast.splatinsert, <4 x i64> poison, <4 x i32> zeroinitializer
  br label %vector.body57

vector.body57:                                    ; preds = %vector.body57, %vector.ph53
  %index58 = phi i64 [ 0, %vector.ph53 ], [ %index.next60, %vector.body57 ]
  %vec.ind = phi <4 x i64> [ <i64 0, i64 1, i64 2, i64 3>, %vector.ph53 ], [ %vec.ind.next, %vector.body57 ]
  %step.add = add <4 x i64> %vec.ind, <i64 4, i64 4, i64 4, i64 4>
  %45 = icmp eq <4 x i64> %vec.ind, %broadcast.splat
  %46 = icmp eq <4 x i64> %step.add, %broadcast.splat
  %47 = select <4 x i1> %45, <4 x float> <float 1.000000e+00, float 1.000000e+00, float 1.000000e+00, float 1.000000e+00>, <4 x float> zeroinitializer
  %48 = select <4 x i1> %46, <4 x float> <float 1.000000e+00, float 1.000000e+00, float 1.000000e+00, float 1.000000e+00>, <4 x float> zeroinitializer
  %49 = getelementptr inbounds float, ptr %7, i64 %index58
  %50 = getelementptr inbounds i8, ptr %49, i64 16
  store <4 x float> %47, ptr %49, align 4, !tbaa !18
  store <4 x float> %48, ptr %50, align 4, !tbaa !18
  %index.next60 = add nuw i64 %index58, 8
  %vec.ind.next = add <4 x i64> %vec.ind, <i64 8, i64 8, i64 8, i64 8>
  %51 = icmp eq i64 %index.next60, %n.vec55
  br i1 %51, label %middle.block50, label %vector.body57, !llvm.loop !25

middle.block50:                                   ; preds = %vector.body57
  %cmp.n61 = icmp eq i64 %n.vec55, %5
  br i1 %cmp.n61, label %.loopexit, label %scalar.ph51.preheader

scalar.ph51.preheader:                            ; preds = %middle.block50, %.lr.ph37
  %indvars.iv41.ph = phi i64 [ 0, %.lr.ph37 ], [ %n.vec55, %middle.block50 ]
  br label %scalar.ph51

scalar.ph51:                                      ; preds = %scalar.ph51.preheader, %scalar.ph51
  %indvars.iv41 = phi i64 [ %indvars.iv.next42, %scalar.ph51 ], [ %indvars.iv41.ph, %scalar.ph51.preheader ]
  %52 = icmp eq i64 %indvars.iv41, %44
  %53 = select i1 %52, float 1.000000e+00, float 0.000000e+00
  %54 = getelementptr inbounds float, ptr %7, i64 %indvars.iv41
  store float %53, ptr %54, align 4, !tbaa !18
  %indvars.iv.next42 = add nuw nsw i64 %indvars.iv41, 1
  %exitcond45.not = icmp eq i64 %indvars.iv.next42, %5
  br i1 %exitcond45.not, label %.loopexit, label %scalar.ph51, !llvm.loop !26

.lr.ph:                                           ; preds = %.lr.ph.prol.loopexit, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next.3, %.lr.ph ], [ %indvars.iv.unr, %.lr.ph.prol.loopexit ]
  %55 = trunc nuw i64 %indvars.iv to i32
  %56 = xor i32 %55, -1
  %57 = add i32 %56, %1
  %58 = zext i32 %57 to i64
  %59 = getelementptr inbounds float, ptr %0, i64 %58
  %60 = load float, ptr %59, align 4, !tbaa !18
  %61 = getelementptr inbounds float, ptr %7, i64 %indvars.iv
  store float %60, ptr %61, align 4, !tbaa !18
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %62 = trunc nuw i64 %indvars.iv.next to i32
  %63 = xor i32 %62, -1
  %64 = add i32 %63, %1
  %65 = zext i32 %64 to i64
  %66 = getelementptr inbounds float, ptr %0, i64 %65
  %67 = load float, ptr %66, align 4, !tbaa !18
  %68 = getelementptr inbounds float, ptr %7, i64 %indvars.iv.next
  store float %67, ptr %68, align 4, !tbaa !18
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %69 = trunc nuw i64 %indvars.iv.next.1 to i32
  %70 = xor i32 %69, -1
  %71 = add i32 %70, %1
  %72 = zext i32 %71 to i64
  %73 = getelementptr inbounds float, ptr %0, i64 %72
  %74 = load float, ptr %73, align 4, !tbaa !18
  %75 = getelementptr inbounds float, ptr %7, i64 %indvars.iv.next.1
  store float %74, ptr %75, align 4, !tbaa !18
  %indvars.iv.next.2 = add nuw nsw i64 %indvars.iv, 3
  %76 = trunc nuw i64 %indvars.iv.next.2 to i32
  %77 = xor i32 %76, -1
  %78 = add i32 %77, %1
  %79 = zext i32 %78 to i64
  %80 = getelementptr inbounds float, ptr %0, i64 %79
  %81 = load float, ptr %80, align 4, !tbaa !18
  %82 = getelementptr inbounds float, ptr %7, i64 %indvars.iv.next.2
  store float %81, ptr %82, align 4, !tbaa !18
  %indvars.iv.next.3 = add nuw nsw i64 %indvars.iv, 4
  %exitcond.not.3 = icmp eq i64 %indvars.iv.next.3, %5
  br i1 %exitcond.not.3, label %.loopexit, label %.lr.ph, !llvm.loop !27

.loopexit:                                        ; preds = %.lr.ph.prol.loopexit, %.lr.ph, %scalar.ph51, %middle.block, %middle.block50, %.preheader33, %.preheader
  %83 = tail call i32 @eqlms_rrrf_reset(ptr noundef nonnull %3)
  ret ptr %3
}

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #1

declare ptr @windowf_create(i32 noundef) local_unnamed_addr #2

declare ptr @wdelayf_create(i32 noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local i32 @eqlms_rrrf_reset(ptr noundef) local_unnamed_addr #0

attributes #0 = { 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 #1 = { mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) 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 = { "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 allocsize(0) }
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, !7, i64 0}
!6 = !{!"eqlms_rrrf_s", !7, i64 0, !10, i64 4, !11, i64 8, !11, i64 16, !11, i64 24, !7, i64 32, !7, i64 36, !11, i64 40, !11, i64 48, !10, i64 56}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"float", !8, i64 0}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!6, !10, i64 4}
!13 = !{!6, !11, i64 8}
!14 = !{!6, !11, i64 16}
!15 = !{!6, !11, i64 24}
!16 = !{!6, !11, i64 40}
!17 = !{!6, !11, i64 48}
!18 = !{!10, !10, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.unroll.disable"}
!21 = distinct !{!21, !22, !23, !24}
!22 = !{!"llvm.loop.mustprogress"}
!23 = !{!"llvm.loop.isvectorized", i32 1}
!24 = !{!"llvm.loop.unroll.runtime.disable"}
!25 = distinct !{!25, !22, !23, !24}
!26 = distinct !{!26, !22, !24, !23}
!27 = distinct !{!27, !22, !23}


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