; LLVM IR from jgaeddert/liquid-dsp :: src/filter/src (filter_crcf)

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

; 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: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #1

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #1

; Function Attrs: nounwind uwtable
define dso_local float @iirfilt_crcf_groupdelay(ptr noundef %0, float noundef %1) #2 {
  %3 = alloca ptr, align 8
  %4 = alloca float, align 4
  %5 = alloca float, align 4
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store float %1, ptr %4, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #4
  store float 0.000000e+00, ptr %5, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  %10 = load ptr, ptr %3, align 8, !tbaa !5
  %11 = getelementptr inbounds %struct.iirfilt_crcf_s, ptr %10, i32 0, i32 6
  %12 = load i32, ptr %11, align 4, !tbaa !11
  %13 = icmp eq i32 %12, 0
  br i1 %13, label %14, label %77

14:                                               ; preds = %2
  %15 = load ptr, ptr %3, align 8, !tbaa !5
  %16 = getelementptr inbounds %struct.iirfilt_crcf_s, ptr %15, i32 0, i32 4
  %17 = load i32, ptr %16, align 4, !tbaa !14
  %18 = zext i32 %17 to i64
  %19 = call ptr @llvm.stacksave.p0()
  store ptr %19, ptr %7, align 8
  %20 = alloca float, i64 %18, align 16
  store i64 %18, ptr %8, align 8
  %21 = load ptr, ptr %3, align 8, !tbaa !5
  %22 = getelementptr inbounds %struct.iirfilt_crcf_s, ptr %21, i32 0, i32 5
  %23 = load i32, ptr %22, align 8, !tbaa !15
  %24 = zext i32 %23 to i64
  %25 = alloca float, i64 %24, align 16
  store i64 %24, ptr %9, align 8
  store i32 0, ptr %6, align 4, !tbaa !16
  br label %26

26:                                               ; preds = %43, %14
  %27 = load i32, ptr %6, align 4, !tbaa !16
  %28 = load ptr, ptr %3, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.iirfilt_crcf_s, ptr %28, i32 0, i32 4
  %30 = load i32, ptr %29, align 4, !tbaa !14
  %31 = icmp ult i32 %27, %30
  br i1 %31, label %32, label %46

32:                                               ; preds = %26
  %33 = load ptr, ptr %3, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.iirfilt_crcf_s, ptr %33, i32 0, i32 0
  %35 = load ptr, ptr %34, align 8, !tbaa !17
  %36 = load i32, ptr %6, align 4, !tbaa !16
  %37 = zext i32 %36 to i64
  %38 = getelementptr inbounds float, ptr %35, i64 %37
  %39 = load float, ptr %38, align 4, !tbaa !9
  %40 = load i32, ptr %6, align 4, !tbaa !16
  %41 = zext i32 %40 to i64
  %42 = getelementptr inbounds float, ptr %20, i64 %41
  store float %39, ptr %42, align 4, !tbaa !9
  br label %43

43:                                               ; preds = %32
  %44 = load i32, ptr %6, align 4, !tbaa !16
  %45 = add i32 %44, 1
  store i32 %45, ptr %6, align 4, !tbaa !16
  br label %26, !llvm.loop !18

46:                                               ; preds = %26
  store i32 0, ptr %6, align 4, !tbaa !16
  br label %47

47:                                               ; preds = %64, %46
  %48 = load i32, ptr %6, align 4, !tbaa !16
  %49 = load ptr, ptr %3, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.iirfilt_crcf_s, ptr %49, i32 0, i32 5
  %51 = load i32, ptr %50, align 8, !tbaa !15
  %52 = icmp ult i32 %48, %51
  br i1 %52, label %53, label %67

53:                                               ; preds = %47
  %54 = load ptr, ptr %3, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.iirfilt_crcf_s, ptr %54, i32 0, i32 1
  %56 = load ptr, ptr %55, align 8, !tbaa !20
  %57 = load i32, ptr %6, align 4, !tbaa !16
  %58 = zext i32 %57 to i64
  %59 = getelementptr inbounds float, ptr %56, i64 %58
  %60 = load float, ptr %59, align 4, !tbaa !9
  %61 = load i32, ptr %6, align 4, !tbaa !16
  %62 = zext i32 %61 to i64
  %63 = getelementptr inbounds float, ptr %25, i64 %62
  store float %60, ptr %63, align 4, !tbaa !9
  br label %64

64:                                               ; preds = %53
  %65 = load i32, ptr %6, align 4, !tbaa !16
  %66 = add i32 %65, 1
  store i32 %66, ptr %6, align 4, !tbaa !16
  br label %47, !llvm.loop !21

67:                                               ; preds = %47
  %68 = load ptr, ptr %3, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.iirfilt_crcf_s, ptr %68, i32 0, i32 4
  %70 = load i32, ptr %69, align 4, !tbaa !14
  %71 = load ptr, ptr %3, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.iirfilt_crcf_s, ptr %71, i32 0, i32 5
  %73 = load i32, ptr %72, align 8, !tbaa !15
  %74 = load float, ptr %4, align 4, !tbaa !9
  %75 = call float @iir_group_delay(ptr noundef %20, i32 noundef %70, ptr noundef %25, i32 noundef %73, float noundef %74)
  store float %75, ptr %5, align 4, !tbaa !9
  %76 = load ptr, ptr %7, align 8
  call void @llvm.stackrestore.p0(ptr %76)
  br label %101

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

78:                                               ; preds = %97, %77
  %79 = load i32, ptr %6, align 4, !tbaa !16
  %80 = load ptr, ptr %3, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.iirfilt_crcf_s, ptr %80, i32 0, i32 10
  %82 = load i32, ptr %81, align 8, !tbaa !22
  %83 = icmp ult i32 %79, %82
  br i1 %83, label %84, label %100

84:                                               ; preds = %78
  %85 = load ptr, ptr %3, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.iirfilt_crcf_s, ptr %85, i32 0, i32 9
  %87 = load ptr, ptr %86, align 8, !tbaa !23
  %88 = load i32, ptr %6, align 4, !tbaa !16
  %89 = zext i32 %88 to i64
  %90 = getelementptr inbounds ptr, ptr %87, i64 %89
  %91 = load ptr, ptr %90, align 8, !tbaa !5
  %92 = load float, ptr %4, align 4, !tbaa !9
  %93 = call float @iirfiltsos_crcf_groupdelay(ptr noundef %91, float noundef %92)
  %94 = fsub float %93, 2.000000e+00
  %95 = load float, ptr %5, align 4, !tbaa !9
  %96 = fadd float %95, %94
  store float %96, ptr %5, align 4, !tbaa !9
  br label %97

97:                                               ; preds = %84
  %98 = load i32, ptr %6, align 4, !tbaa !16
  %99 = add i32 %98, 1
  store i32 %99, ptr %6, align 4, !tbaa !16
  br label %78, !llvm.loop !24

100:                                              ; preds = %78
  br label %101

101:                                              ; preds = %100, %67
  %102 = load float, ptr %5, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  ret float %102
}

declare float @iir_group_delay(ptr noundef, i32 noundef, ptr noundef, i32 noundef, float noundef) #3

; Function Attrs: nounwind uwtable
declare dso_local float @iirfiltsos_crcf_groupdelay(ptr noundef, float noundef) #2

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

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


; 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: mustprogress nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #0

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #0

; Function Attrs: nounwind uwtable
define dso_local float @iirfilt_crcf_groupdelay(ptr nocapture noundef readonly %0, float noundef %1) local_unnamed_addr #1 {
  %3 = getelementptr inbounds i8, ptr %0, i64 36
  %4 = load i32, ptr %3, align 4, !tbaa !5
  %5 = icmp eq i32 %4, 0
  br i1 %5, label %9, label %.preheader29

.preheader29:                                     ; preds = %2
  %6 = getelementptr inbounds i8, ptr %0, i64 64
  %7 = load i32, ptr %6, align 8, !tbaa !12
  %.not = icmp eq i32 %7, 0
  br i1 %.not, label %.loopexit, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader29
  %8 = getelementptr inbounds i8, ptr %0, i64 56
  br label %74

9:                                                ; preds = %2
  %10 = getelementptr inbounds i8, ptr %0, i64 28
  %11 = load i32, ptr %10, align 4, !tbaa !13
  %12 = zext i32 %11 to i64
  %13 = tail call ptr @llvm.stacksave.p0()
  %14 = alloca float, i64 %12, align 16
  %15 = getelementptr inbounds i8, ptr %0, i64 32
  %16 = load i32, ptr %15, align 8, !tbaa !14
  %17 = zext i32 %16 to i64
  %18 = alloca float, i64 %17, align 16
  %19 = ptrtoint ptr %18 to i64
  %20 = load i32, ptr %10, align 4, !tbaa !13
  %.not37 = icmp eq i32 %20, 0
  br i1 %.not37, label %.preheader, label %.lr.ph33

.lr.ph33:                                         ; preds = %9
  %21 = ptrtoint ptr %14 to i64
  %22 = load ptr, ptr %0, align 8, !tbaa !15
  %wide.trip.count = zext i32 %20 to i64
  %min.iters.check = icmp ult i32 %20, 8
  %23 = ptrtoint ptr %22 to i64
  %24 = sub i64 %21, %23
  %diff.check = icmp ult i64 %24, 32
  %or.cond = select i1 %min.iters.check, i1 true, i1 %diff.check
  br i1 %or.cond, label %scalar.ph.preheader, label %vector.ph

scalar.ph.preheader:                              ; preds = %middle.block, %.lr.ph33
  %indvars.iv40.ph = phi i64 [ 0, %.lr.ph33 ], [ %n.vec, %middle.block ]
  %xtraiter = and i64 %wide.trip.count, 3
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %scalar.ph.prol.loopexit, label %scalar.ph.prol

scalar.ph.prol:                                   ; preds = %scalar.ph.preheader, %scalar.ph.prol
  %indvars.iv40.prol = phi i64 [ %indvars.iv.next41.prol, %scalar.ph.prol ], [ %indvars.iv40.ph, %scalar.ph.preheader ]
  %prol.iter = phi i64 [ %prol.iter.next, %scalar.ph.prol ], [ 0, %scalar.ph.preheader ]
  %25 = getelementptr inbounds float, ptr %22, i64 %indvars.iv40.prol
  %26 = load float, ptr %25, align 4, !tbaa !16
  %27 = getelementptr inbounds float, ptr %14, i64 %indvars.iv40.prol
  store float %26, ptr %27, align 4, !tbaa !16
  %indvars.iv.next41.prol = add nuw nsw i64 %indvars.iv40.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 %scalar.ph.prol.loopexit, label %scalar.ph.prol, !llvm.loop !17

scalar.ph.prol.loopexit:                          ; preds = %scalar.ph.prol, %scalar.ph.preheader
  %indvars.iv40.unr = phi i64 [ %indvars.iv40.ph, %scalar.ph.preheader ], [ %indvars.iv.next41.prol, %scalar.ph.prol ]
  %28 = sub nsw i64 %indvars.iv40.ph, %wide.trip.count
  %29 = icmp ugt i64 %28, -4
  br i1 %29, label %.preheader, label %scalar.ph

vector.ph:                                        ; preds = %.lr.ph33
  %n.vec = and i64 %wide.trip.count, 4294967288
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %30 = getelementptr inbounds float, ptr %22, i64 %index
  %31 = getelementptr inbounds i8, ptr %30, i64 16
  %wide.load = load <4 x float>, ptr %30, align 4, !tbaa !16
  %wide.load48 = load <4 x float>, ptr %31, align 4, !tbaa !16
  %32 = getelementptr inbounds float, ptr %14, i64 %index
  %33 = getelementptr inbounds i8, ptr %32, i64 16
  store <4 x float> %wide.load, ptr %32, align 16, !tbaa !16
  store <4 x float> %wide.load48, ptr %33, align 16, !tbaa !16
  %index.next = add nuw i64 %index, 8
  %34 = icmp eq i64 %index.next, %n.vec
  br i1 %34, label %middle.block, label %vector.body, !llvm.loop !19

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count
  br i1 %cmp.n, label %.preheader, label %scalar.ph.preheader

.preheader:                                       ; preds = %scalar.ph.prol.loopexit, %scalar.ph, %middle.block, %9
  %.not38 = icmp eq i32 %16, 0
  br i1 %.not38, label %._crit_edge, label %.lr.ph36

.lr.ph36:                                         ; preds = %.preheader
  %35 = getelementptr inbounds i8, ptr %0, i64 8
  %36 = load ptr, ptr %35, align 8, !tbaa !23
  %min.iters.check53 = icmp ult i32 %16, 8
  %37 = ptrtoint ptr %36 to i64
  %38 = sub i64 %19, %37
  %diff.check50 = icmp ult i64 %38, 32
  %or.cond66 = select i1 %min.iters.check53, i1 true, i1 %diff.check50
  br i1 %or.cond66, label %scalar.ph52.preheader, label %vector.ph54

scalar.ph52.preheader:                            ; preds = %middle.block51, %.lr.ph36
  %indvars.iv43.ph = phi i64 [ 0, %.lr.ph36 ], [ %n.vec56, %middle.block51 ]
  %xtraiter67 = and i64 %17, 3
  %lcmp.mod68.not = icmp eq i64 %xtraiter67, 0
  br i1 %lcmp.mod68.not, label %scalar.ph52.prol.loopexit, label %scalar.ph52.prol

scalar.ph52.prol:                                 ; preds = %scalar.ph52.preheader, %scalar.ph52.prol
  %indvars.iv43.prol = phi i64 [ %indvars.iv.next44.prol, %scalar.ph52.prol ], [ %indvars.iv43.ph, %scalar.ph52.preheader ]
  %prol.iter69 = phi i64 [ %prol.iter69.next, %scalar.ph52.prol ], [ 0, %scalar.ph52.preheader ]
  %39 = getelementptr inbounds float, ptr %36, i64 %indvars.iv43.prol
  %40 = load float, ptr %39, align 4, !tbaa !16
  %41 = getelementptr inbounds float, ptr %18, i64 %indvars.iv43.prol
  store float %40, ptr %41, align 4, !tbaa !16
  %indvars.iv.next44.prol = add nuw nsw i64 %indvars.iv43.prol, 1
  %prol.iter69.next = add i64 %prol.iter69, 1
  %prol.iter69.cmp.not = icmp eq i64 %prol.iter69.next, %xtraiter67
  br i1 %prol.iter69.cmp.not, label %scalar.ph52.prol.loopexit, label %scalar.ph52.prol, !llvm.loop !24

scalar.ph52.prol.loopexit:                        ; preds = %scalar.ph52.prol, %scalar.ph52.preheader
  %indvars.iv43.unr = phi i64 [ %indvars.iv43.ph, %scalar.ph52.preheader ], [ %indvars.iv.next44.prol, %scalar.ph52.prol ]
  %42 = sub nsw i64 %indvars.iv43.ph, %17
  %43 = icmp ugt i64 %42, -4
  br i1 %43, label %._crit_edge, label %scalar.ph52

vector.ph54:                                      ; preds = %.lr.ph36
  %n.vec56 = and i64 %17, 4294967288
  br label %vector.body58

vector.body58:                                    ; preds = %vector.body58, %vector.ph54
  %index59 = phi i64 [ 0, %vector.ph54 ], [ %index.next62, %vector.body58 ]
  %44 = getelementptr inbounds float, ptr %36, i64 %index59
  %45 = getelementptr inbounds i8, ptr %44, i64 16
  %wide.load60 = load <4 x float>, ptr %44, align 4, !tbaa !16
  %wide.load61 = load <4 x float>, ptr %45, align 4, !tbaa !16
  %46 = getelementptr inbounds float, ptr %18, i64 %index59
  %47 = getelementptr inbounds i8, ptr %46, i64 16
  store <4 x float> %wide.load60, ptr %46, align 16, !tbaa !16
  store <4 x float> %wide.load61, ptr %47, align 16, !tbaa !16
  %index.next62 = add nuw i64 %index59, 8
  %48 = icmp eq i64 %index.next62, %n.vec56
  br i1 %48, label %middle.block51, label %vector.body58, !llvm.loop !25

middle.block51:                                   ; preds = %vector.body58
  %cmp.n63 = icmp eq i64 %n.vec56, %17
  br i1 %cmp.n63, label %._crit_edge, label %scalar.ph52.preheader

scalar.ph:                                        ; preds = %scalar.ph.prol.loopexit, %scalar.ph
  %indvars.iv40 = phi i64 [ %indvars.iv.next41.3, %scalar.ph ], [ %indvars.iv40.unr, %scalar.ph.prol.loopexit ]
  %49 = getelementptr inbounds float, ptr %22, i64 %indvars.iv40
  %50 = load float, ptr %49, align 4, !tbaa !16
  %51 = getelementptr inbounds float, ptr %14, i64 %indvars.iv40
  store float %50, ptr %51, align 4, !tbaa !16
  %indvars.iv.next41 = add nuw nsw i64 %indvars.iv40, 1
  %52 = getelementptr inbounds float, ptr %22, i64 %indvars.iv.next41
  %53 = load float, ptr %52, align 4, !tbaa !16
  %54 = getelementptr inbounds float, ptr %14, i64 %indvars.iv.next41
  store float %53, ptr %54, align 4, !tbaa !16
  %indvars.iv.next41.1 = add nuw nsw i64 %indvars.iv40, 2
  %55 = getelementptr inbounds float, ptr %22, i64 %indvars.iv.next41.1
  %56 = load float, ptr %55, align 4, !tbaa !16
  %57 = getelementptr inbounds float, ptr %14, i64 %indvars.iv.next41.1
  store float %56, ptr %57, align 4, !tbaa !16
  %indvars.iv.next41.2 = add nuw nsw i64 %indvars.iv40, 3
  %58 = getelementptr inbounds float, ptr %22, i64 %indvars.iv.next41.2
  %59 = load float, ptr %58, align 4, !tbaa !16
  %60 = getelementptr inbounds float, ptr %14, i64 %indvars.iv.next41.2
  store float %59, ptr %60, align 4, !tbaa !16
  %indvars.iv.next41.3 = add nuw nsw i64 %indvars.iv40, 4
  %exitcond.not.3 = icmp eq i64 %indvars.iv.next41.3, %wide.trip.count
  br i1 %exitcond.not.3, label %.preheader, label %scalar.ph, !llvm.loop !26

scalar.ph52:                                      ; preds = %scalar.ph52.prol.loopexit, %scalar.ph52
  %indvars.iv43 = phi i64 [ %indvars.iv.next44.3, %scalar.ph52 ], [ %indvars.iv43.unr, %scalar.ph52.prol.loopexit ]
  %61 = getelementptr inbounds float, ptr %36, i64 %indvars.iv43
  %62 = load float, ptr %61, align 4, !tbaa !16
  %63 = getelementptr inbounds float, ptr %18, i64 %indvars.iv43
  store float %62, ptr %63, align 4, !tbaa !16
  %indvars.iv.next44 = add nuw nsw i64 %indvars.iv43, 1
  %64 = getelementptr inbounds float, ptr %36, i64 %indvars.iv.next44
  %65 = load float, ptr %64, align 4, !tbaa !16
  %66 = getelementptr inbounds float, ptr %18, i64 %indvars.iv.next44
  store float %65, ptr %66, align 4, !tbaa !16
  %indvars.iv.next44.1 = add nuw nsw i64 %indvars.iv43, 2
  %67 = getelementptr inbounds float, ptr %36, i64 %indvars.iv.next44.1
  %68 = load float, ptr %67, align 4, !tbaa !16
  %69 = getelementptr inbounds float, ptr %18, i64 %indvars.iv.next44.1
  store float %68, ptr %69, align 4, !tbaa !16
  %indvars.iv.next44.2 = add nuw nsw i64 %indvars.iv43, 3
  %70 = getelementptr inbounds float, ptr %36, i64 %indvars.iv.next44.2
  %71 = load float, ptr %70, align 4, !tbaa !16
  %72 = getelementptr inbounds float, ptr %18, i64 %indvars.iv.next44.2
  store float %71, ptr %72, align 4, !tbaa !16
  %indvars.iv.next44.3 = add nuw nsw i64 %indvars.iv43, 4
  %exitcond47.not.3 = icmp eq i64 %indvars.iv.next44.3, %17
  br i1 %exitcond47.not.3, label %._crit_edge, label %scalar.ph52, !llvm.loop !27

._crit_edge:                                      ; preds = %scalar.ph52.prol.loopexit, %scalar.ph52, %middle.block51, %.preheader
  %73 = call float @iir_group_delay(ptr noundef nonnull %14, i32 noundef %20, ptr noundef nonnull %18, i32 noundef %16, float noundef %1) #3
  call void @llvm.stackrestore.p0(ptr %13)
  br label %.loopexit

74:                                               ; preds = %.lr.ph, %74
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %74 ]
  %.031 = phi float [ 0.000000e+00, %.lr.ph ], [ %80, %74 ]
  %75 = load ptr, ptr %8, align 8, !tbaa !28
  %76 = getelementptr inbounds ptr, ptr %75, i64 %indvars.iv
  %77 = load ptr, ptr %76, align 8, !tbaa !29
  %78 = tail call float @iirfiltsos_crcf_groupdelay(ptr noundef %77, float noundef %1)
  %79 = fadd float %78, -2.000000e+00
  %80 = fadd float %.031, %79
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %81 = load i32, ptr %6, align 8, !tbaa !12
  %82 = zext i32 %81 to i64
  %83 = icmp ult i64 %indvars.iv.next, %82
  br i1 %83, label %74, label %.loopexit, !llvm.loop !30

.loopexit:                                        ; preds = %74, %.preheader29, %._crit_edge
  %.1 = phi float [ %73, %._crit_edge ], [ 0.000000e+00, %.preheader29 ], [ %80, %74 ]
  ret float %.1
}

declare float @iir_group_delay(ptr noundef, i32 noundef, ptr noundef, i32 noundef, float noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local float @iirfiltsos_crcf_groupdelay(ptr noundef, float noundef) local_unnamed_addr #1

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn }
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 = { "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 }

!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, !10, i64 36}
!6 = !{!"iirfilt_crcf_s", !7, i64 0, !7, i64 8, !7, i64 16, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !7, i64 40, !7, i64 48, !7, i64 56, !10, i64 64, !11, i64 68}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"float", !8, i64 0}
!12 = !{!6, !10, i64 64}
!13 = !{!6, !10, i64 28}
!14 = !{!6, !10, i64 32}
!15 = !{!6, !7, i64 0}
!16 = !{!11, !11, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.unroll.disable"}
!19 = distinct !{!19, !20, !21, !22}
!20 = !{!"llvm.loop.mustprogress"}
!21 = !{!"llvm.loop.isvectorized", i32 1}
!22 = !{!"llvm.loop.unroll.runtime.disable"}
!23 = !{!6, !7, i64 8}
!24 = distinct !{!24, !18}
!25 = distinct !{!25, !20, !21, !22}
!26 = distinct !{!26, !20, !21}
!27 = distinct !{!27, !20, !21}
!28 = !{!6, !7, i64 56}
!29 = !{!7, !7, i64 0}
!30 = distinct !{!30, !20}


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