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

; 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_cccf_s = type { ptr, ptr, ptr, i32, i32, i32, i32, ptr, ptr, ptr, i32, { float, 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_cccf_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_cccf_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 %83

14:                                               ; preds = %2
  %15 = load ptr, ptr %3, align 8, !tbaa !5
  %16 = getelementptr inbounds %struct.iirfilt_cccf_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_cccf_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 = %46, %14
  %27 = load i32, ptr %6, align 4, !tbaa !16
  %28 = load ptr, ptr %3, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.iirfilt_cccf_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 %49

32:                                               ; preds = %26
  %33 = load ptr, ptr %3, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.iirfilt_cccf_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, float }, ptr %35, i64 %37
  %39 = getelementptr inbounds { float, float }, ptr %38, i32 0, i32 0
  %40 = load float, ptr %39, align 4
  %41 = getelementptr inbounds { float, float }, ptr %38, i32 0, i32 1
  %42 = load float, ptr %41, align 4
  %43 = load i32, ptr %6, align 4, !tbaa !16
  %44 = zext i32 %43 to i64
  %45 = getelementptr inbounds float, ptr %20, i64 %44
  store float %40, ptr %45, align 4, !tbaa !9
  br label %46

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

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

50:                                               ; preds = %70, %49
  %51 = load i32, ptr %6, align 4, !tbaa !16
  %52 = load ptr, ptr %3, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.iirfilt_cccf_s, ptr %52, i32 0, i32 5
  %54 = load i32, ptr %53, align 8, !tbaa !15
  %55 = icmp ult i32 %51, %54
  br i1 %55, label %56, label %73

56:                                               ; preds = %50
  %57 = load ptr, ptr %3, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.iirfilt_cccf_s, ptr %57, i32 0, i32 1
  %59 = load ptr, ptr %58, align 8, !tbaa !20
  %60 = load i32, ptr %6, align 4, !tbaa !16
  %61 = zext i32 %60 to i64
  %62 = getelementptr inbounds { float, float }, ptr %59, i64 %61
  %63 = getelementptr inbounds { float, float }, ptr %62, i32 0, i32 0
  %64 = load float, ptr %63, align 4
  %65 = getelementptr inbounds { float, float }, ptr %62, i32 0, i32 1
  %66 = load float, ptr %65, align 4
  %67 = load i32, ptr %6, align 4, !tbaa !16
  %68 = zext i32 %67 to i64
  %69 = getelementptr inbounds float, ptr %25, i64 %68
  store float %64, ptr %69, align 4, !tbaa !9
  br label %70

70:                                               ; preds = %56
  %71 = load i32, ptr %6, align 4, !tbaa !16
  %72 = add i32 %71, 1
  store i32 %72, ptr %6, align 4, !tbaa !16
  br label %50, !llvm.loop !21

73:                                               ; preds = %50
  %74 = load ptr, ptr %3, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct.iirfilt_cccf_s, ptr %74, i32 0, i32 4
  %76 = load i32, ptr %75, align 4, !tbaa !14
  %77 = load ptr, ptr %3, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.iirfilt_cccf_s, ptr %77, i32 0, i32 5
  %79 = load i32, ptr %78, align 8, !tbaa !15
  %80 = load float, ptr %4, align 4, !tbaa !9
  %81 = call float @iir_group_delay(ptr noundef %20, i32 noundef %76, ptr noundef %25, i32 noundef %79, float noundef %80)
  store float %81, ptr %5, align 4, !tbaa !9
  %82 = load ptr, ptr %7, align 8
  call void @llvm.stackrestore.p0(ptr %82)
  br label %107

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

84:                                               ; preds = %103, %83
  %85 = load i32, ptr %6, align 4, !tbaa !16
  %86 = load ptr, ptr %3, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.iirfilt_cccf_s, ptr %86, i32 0, i32 10
  %88 = load i32, ptr %87, align 8, !tbaa !22
  %89 = icmp ult i32 %85, %88
  br i1 %89, label %90, label %106

90:                                               ; preds = %84
  %91 = load ptr, ptr %3, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.iirfilt_cccf_s, ptr %91, i32 0, i32 9
  %93 = load ptr, ptr %92, align 8, !tbaa !23
  %94 = load i32, ptr %6, align 4, !tbaa !16
  %95 = zext i32 %94 to i64
  %96 = getelementptr inbounds ptr, ptr %93, i64 %95
  %97 = load ptr, ptr %96, align 8, !tbaa !5
  %98 = load float, ptr %4, align 4, !tbaa !9
  %99 = call float @iirfiltsos_cccf_groupdelay(ptr noundef %97, float noundef %98)
  %100 = fsub float %99, 2.000000e+00
  %101 = load float, ptr %5, align 4, !tbaa !9
  %102 = fadd float %101, %100
  store float %102, ptr %5, align 4, !tbaa !9
  br label %103

103:                                              ; preds = %90
  %104 = load i32, ptr %6, align 4, !tbaa !16
  %105 = add i32 %104, 1
  store i32 %105, ptr %6, align 4, !tbaa !16
  br label %84, !llvm.loop !24

106:                                              ; preds = %84
  br label %107

107:                                              ; preds = %106, %73
  %108 = 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 %108
}

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_cccf_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_cccf_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, !7, 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_cccf_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 !11
  %.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 %82

9:                                                ; preds = %2
  %10 = getelementptr inbounds i8, ptr %0, i64 28
  %11 = load i32, ptr %10, align 4, !tbaa !12
  %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 !13
  %17 = zext i32 %16 to i64
  %18 = alloca float, i64 %17, align 16
  %19 = load i32, ptr %10, align 4, !tbaa !12
  %.not37 = icmp eq i32 %19, 0
  br i1 %.not37, label %.preheader, label %.lr.ph33

.lr.ph33:                                         ; preds = %9
  %20 = load ptr, ptr %0, align 8, !tbaa !14
  %wide.trip.count = zext i32 %19 to i64
  %min.iters.check = icmp ult i32 %19, 17
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.memcheck

scalar.ph.preheader:                              ; preds = %vector.body, %vector.memcheck, %.lr.ph33
  %indvars.iv40.ph = phi i64 [ 0, %vector.memcheck ], [ 0, %.lr.ph33 ], [ %n.vec, %vector.body ]
  %21 = sub nsw i64 %wide.trip.count, %indvars.iv40.ph
  %xtraiter = and i64 %21, 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 ]
  %22 = getelementptr inbounds { float, float }, ptr %20, i64 %indvars.iv40.prol
  %23 = load float, ptr %22, align 4
  %24 = getelementptr inbounds float, ptr %14, i64 %indvars.iv40.prol
  store float %23, ptr %24, align 4, !tbaa !15
  %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 ]
  %25 = sub nsw i64 %indvars.iv40.ph, %wide.trip.count
  %26 = icmp ugt i64 %25, -4
  br i1 %26, label %.preheader, label %scalar.ph

vector.memcheck:                                  ; preds = %.lr.ph33
  %27 = shl nuw nsw i64 %wide.trip.count, 2
  %scevgep = getelementptr i8, ptr %14, i64 %27
  %28 = shl nuw nsw i64 %wide.trip.count, 3
  %29 = getelementptr i8, ptr %20, i64 %28
  %scevgep48 = getelementptr i8, ptr %29, i64 -4
  %bound0 = icmp ult ptr %14, %scevgep48
  %bound1 = icmp ult ptr %20, %scevgep
  %found.conflict = and i1 %bound0, %bound1
  br i1 %found.conflict, label %scalar.ph.preheader, label %vector.ph

vector.ph:                                        ; preds = %vector.memcheck
  %n.mod.vf = and i64 %wide.trip.count, 7
  %30 = icmp eq i64 %n.mod.vf, 0
  %31 = select i1 %30, i64 8, i64 %n.mod.vf
  %n.vec = sub nsw i64 %wide.trip.count, %31
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %32 = or disjoint i64 %index, 4
  %33 = getelementptr inbounds { float, float }, ptr %20, i64 %index
  %34 = getelementptr inbounds { float, float }, ptr %20, i64 %32
  %wide.vec = load <8 x float>, ptr %33, align 4
  %wide.vec49 = load <8 x float>, ptr %34, align 4
  %strided.vec = shufflevector <8 x float> %wide.vec, <8 x float> poison, <4 x i32> <i32 0, i32 2, i32 4, i32 6>
  %strided.vec50 = shufflevector <8 x float> %wide.vec49, <8 x float> poison, <4 x i32> <i32 0, i32 2, i32 4, i32 6>
  %35 = getelementptr inbounds float, ptr %14, i64 %index
  %36 = getelementptr inbounds i8, ptr %35, i64 16
  store <4 x float> %strided.vec, ptr %35, align 16, !tbaa !15, !alias.scope !19, !noalias !22
  store <4 x float> %strided.vec50, ptr %36, align 16, !tbaa !15, !alias.scope !19, !noalias !22
  %index.next = add nuw i64 %index, 8
  %37 = icmp eq i64 %index.next, %n.vec
  br i1 %37, label %scalar.ph.preheader, label %vector.body, !llvm.loop !24

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

.lr.ph36:                                         ; preds = %.preheader
  %38 = getelementptr inbounds i8, ptr %0, i64 8
  %39 = load ptr, ptr %38, align 8, !tbaa !28
  %min.iters.check59 = icmp ult i32 %16, 17
  br i1 %min.iters.check59, label %scalar.ph58.preheader, label %vector.memcheck51

scalar.ph58.preheader:                            ; preds = %vector.body64, %vector.memcheck51, %.lr.ph36
  %indvars.iv43.ph = phi i64 [ 0, %vector.memcheck51 ], [ 0, %.lr.ph36 ], [ %n.vec62, %vector.body64 ]
  %40 = sub nsw i64 %17, %indvars.iv43.ph
  %xtraiter71 = and i64 %40, 3
  %lcmp.mod72.not = icmp eq i64 %xtraiter71, 0
  br i1 %lcmp.mod72.not, label %scalar.ph58.prol.loopexit, label %scalar.ph58.prol

scalar.ph58.prol:                                 ; preds = %scalar.ph58.preheader, %scalar.ph58.prol
  %indvars.iv43.prol = phi i64 [ %indvars.iv.next44.prol, %scalar.ph58.prol ], [ %indvars.iv43.ph, %scalar.ph58.preheader ]
  %prol.iter73 = phi i64 [ %prol.iter73.next, %scalar.ph58.prol ], [ 0, %scalar.ph58.preheader ]
  %41 = getelementptr inbounds { float, float }, ptr %39, i64 %indvars.iv43.prol
  %42 = load float, ptr %41, align 4
  %43 = getelementptr inbounds float, ptr %18, i64 %indvars.iv43.prol
  store float %42, ptr %43, align 4, !tbaa !15
  %indvars.iv.next44.prol = add nuw nsw i64 %indvars.iv43.prol, 1
  %prol.iter73.next = add i64 %prol.iter73, 1
  %prol.iter73.cmp.not = icmp eq i64 %prol.iter73.next, %xtraiter71
  br i1 %prol.iter73.cmp.not, label %scalar.ph58.prol.loopexit, label %scalar.ph58.prol, !llvm.loop !29

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

vector.memcheck51:                                ; preds = %.lr.ph36
  %46 = shl nuw nsw i64 %17, 2
  %scevgep52 = getelementptr i8, ptr %18, i64 %46
  %47 = shl nuw nsw i64 %17, 3
  %48 = getelementptr i8, ptr %39, i64 %47
  %scevgep53 = getelementptr i8, ptr %48, i64 -4
  %bound054 = icmp ult ptr %18, %scevgep53
  %bound155 = icmp ult ptr %39, %scevgep52
  %found.conflict56 = and i1 %bound054, %bound155
  br i1 %found.conflict56, label %scalar.ph58.preheader, label %vector.ph60

vector.ph60:                                      ; preds = %vector.memcheck51
  %n.mod.vf61 = and i64 %17, 7
  %49 = icmp eq i64 %n.mod.vf61, 0
  %50 = select i1 %49, i64 8, i64 %n.mod.vf61
  %n.vec62 = sub nsw i64 %17, %50
  br label %vector.body64

vector.body64:                                    ; preds = %vector.body64, %vector.ph60
  %index65 = phi i64 [ 0, %vector.ph60 ], [ %index.next70, %vector.body64 ]
  %51 = or disjoint i64 %index65, 4
  %52 = getelementptr inbounds { float, float }, ptr %39, i64 %index65
  %53 = getelementptr inbounds { float, float }, ptr %39, i64 %51
  %wide.vec66 = load <8 x float>, ptr %52, align 4
  %wide.vec67 = load <8 x float>, ptr %53, align 4
  %strided.vec68 = shufflevector <8 x float> %wide.vec66, <8 x float> poison, <4 x i32> <i32 0, i32 2, i32 4, i32 6>
  %strided.vec69 = shufflevector <8 x float> %wide.vec67, <8 x float> poison, <4 x i32> <i32 0, i32 2, i32 4, i32 6>
  %54 = getelementptr inbounds float, ptr %18, i64 %index65
  %55 = getelementptr inbounds i8, ptr %54, i64 16
  store <4 x float> %strided.vec68, ptr %54, align 16, !tbaa !15, !alias.scope !30, !noalias !33
  store <4 x float> %strided.vec69, ptr %55, align 16, !tbaa !15, !alias.scope !30, !noalias !33
  %index.next70 = add nuw i64 %index65, 8
  %56 = icmp eq i64 %index.next70, %n.vec62
  br i1 %56, label %scalar.ph58.preheader, label %vector.body64, !llvm.loop !35

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 ]
  %57 = getelementptr inbounds { float, float }, ptr %20, i64 %indvars.iv40
  %58 = load float, ptr %57, align 4
  %59 = getelementptr inbounds float, ptr %14, i64 %indvars.iv40
  store float %58, ptr %59, align 4, !tbaa !15
  %indvars.iv.next41 = add nuw nsw i64 %indvars.iv40, 1
  %60 = getelementptr inbounds { float, float }, ptr %20, i64 %indvars.iv.next41
  %61 = load float, ptr %60, align 4
  %62 = getelementptr inbounds float, ptr %14, i64 %indvars.iv.next41
  store float %61, ptr %62, align 4, !tbaa !15
  %indvars.iv.next41.1 = add nuw nsw i64 %indvars.iv40, 2
  %63 = getelementptr inbounds { float, float }, ptr %20, i64 %indvars.iv.next41.1
  %64 = load float, ptr %63, align 4
  %65 = getelementptr inbounds float, ptr %14, i64 %indvars.iv.next41.1
  store float %64, ptr %65, align 4, !tbaa !15
  %indvars.iv.next41.2 = add nuw nsw i64 %indvars.iv40, 3
  %66 = getelementptr inbounds { float, float }, ptr %20, i64 %indvars.iv.next41.2
  %67 = load float, ptr %66, align 4
  %68 = getelementptr inbounds float, ptr %14, i64 %indvars.iv.next41.2
  store float %67, ptr %68, align 4, !tbaa !15
  %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 !36

scalar.ph58:                                      ; preds = %scalar.ph58.prol.loopexit, %scalar.ph58
  %indvars.iv43 = phi i64 [ %indvars.iv.next44.3, %scalar.ph58 ], [ %indvars.iv43.unr, %scalar.ph58.prol.loopexit ]
  %69 = getelementptr inbounds { float, float }, ptr %39, i64 %indvars.iv43
  %70 = load float, ptr %69, align 4
  %71 = getelementptr inbounds float, ptr %18, i64 %indvars.iv43
  store float %70, ptr %71, align 4, !tbaa !15
  %indvars.iv.next44 = add nuw nsw i64 %indvars.iv43, 1
  %72 = getelementptr inbounds { float, float }, ptr %39, i64 %indvars.iv.next44
  %73 = load float, ptr %72, align 4
  %74 = getelementptr inbounds float, ptr %18, i64 %indvars.iv.next44
  store float %73, ptr %74, align 4, !tbaa !15
  %indvars.iv.next44.1 = add nuw nsw i64 %indvars.iv43, 2
  %75 = getelementptr inbounds { float, float }, ptr %39, i64 %indvars.iv.next44.1
  %76 = load float, ptr %75, align 4
  %77 = getelementptr inbounds float, ptr %18, i64 %indvars.iv.next44.1
  store float %76, ptr %77, align 4, !tbaa !15
  %indvars.iv.next44.2 = add nuw nsw i64 %indvars.iv43, 3
  %78 = getelementptr inbounds { float, float }, ptr %39, i64 %indvars.iv.next44.2
  %79 = load float, ptr %78, align 4
  %80 = getelementptr inbounds float, ptr %18, i64 %indvars.iv.next44.2
  store float %79, ptr %80, align 4, !tbaa !15
  %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.ph58, !llvm.loop !37

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

82:                                               ; preds = %.lr.ph, %82
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %82 ]
  %.031 = phi float [ 0.000000e+00, %.lr.ph ], [ %88, %82 ]
  %83 = load ptr, ptr %8, align 8, !tbaa !38
  %84 = getelementptr inbounds ptr, ptr %83, i64 %indvars.iv
  %85 = load ptr, ptr %84, align 8, !tbaa !39
  %86 = tail call float @iirfiltsos_cccf_groupdelay(ptr noundef %85, float noundef %1)
  %87 = fadd float %86, -2.000000e+00
  %88 = fadd float %.031, %87
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %89 = load i32, ptr %6, align 8, !tbaa !11
  %90 = zext i32 %89 to i64
  %91 = icmp ult i64 %indvars.iv.next, %90
  br i1 %91, label %82, label %.loopexit, !llvm.loop !40

.loopexit:                                        ; preds = %82, %.preheader29, %._crit_edge
  %.1 = phi float [ %81, %._crit_edge ], [ 0.000000e+00, %.preheader29 ], [ %88, %82 ]
  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_cccf_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_cccf_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, !8, 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 = !{!6, !10, i64 64}
!12 = !{!6, !10, i64 28}
!13 = !{!6, !10, i64 32}
!14 = !{!6, !7, i64 0}
!15 = !{!16, !16, i64 0}
!16 = !{!"float", !8, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.unroll.disable"}
!19 = !{!20}
!20 = distinct !{!20, !21}
!21 = distinct !{!21, !"LVerDomain"}
!22 = !{!23}
!23 = distinct !{!23, !21}
!24 = distinct !{!24, !25, !26, !27}
!25 = !{!"llvm.loop.mustprogress"}
!26 = !{!"llvm.loop.isvectorized", i32 1}
!27 = !{!"llvm.loop.unroll.runtime.disable"}
!28 = !{!6, !7, i64 8}
!29 = distinct !{!29, !18}
!30 = !{!31}
!31 = distinct !{!31, !32}
!32 = distinct !{!32, !"LVerDomain"}
!33 = !{!34}
!34 = distinct !{!34, !32}
!35 = distinct !{!35, !25, !26, !27}
!36 = distinct !{!36, !25, !26}
!37 = distinct !{!37, !25, !26}
!38 = !{!6, !7, i64 56}
!39 = !{!7, !7, i64 0}
!40 = distinct !{!40, !25}


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