; LLVM IR from jgaeddert/liquid-dsp :: sandbox (rkaiser2_test)

; 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.gsuserdata_s = type { i32, i32, float, float, 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
declare ptr @llvm.stacksave.p0() #1

; 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 void @llvm.stackrestore.p0(ptr) #1

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

; Function Attrs: nounwind uwtable
define dso_local float @gs_utility(ptr noundef %0, ptr noundef %1, i32 noundef %2) #3 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca float, align 4
  %9 = alloca float, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca float, align 4
  %13 = alloca float, align 4
  %14 = alloca i32, align 4
  %15 = alloca float, align 4
  %16 = alloca float, align 4
  %17 = alloca i32, align 4
  %18 = alloca float, align 4
  %19 = alloca float, align 4
  %20 = alloca ptr, align 8
  %21 = alloca i64, align 8
  %22 = alloca float, align 4
  %23 = alloca i32, align 4
  %24 = alloca float, align 4
  %25 = alloca float, align 4
  %26 = alloca float, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store i32 %2, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  %27 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %27, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  %28 = load ptr, ptr %7, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.gsuserdata_s, ptr %28, i32 0, i32 4
  %30 = load float, ptr %29, align 4, !tbaa !11
  store float %30, ptr %8, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  %31 = load ptr, ptr %7, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.gsuserdata_s, ptr %31, i32 0, i32 5
  %33 = load float, ptr %32, align 4, !tbaa !15
  store float %33, ptr %9, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  %34 = load ptr, ptr %7, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.gsuserdata_s, ptr %34, i32 0, i32 0
  %36 = load i32, ptr %35, align 4, !tbaa !16
  store i32 %36, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  %37 = load ptr, ptr %7, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.gsuserdata_s, ptr %37, i32 0, i32 1
  %39 = load i32, ptr %38, align 4, !tbaa !17
  store i32 %39, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  %40 = load ptr, ptr %7, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct.gsuserdata_s, ptr %40, i32 0, i32 2
  %42 = load float, ptr %41, align 4, !tbaa !18
  store float %42, ptr %12, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  %43 = load ptr, ptr %7, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct.gsuserdata_s, ptr %43, i32 0, i32 3
  %45 = load float, ptr %44, align 4, !tbaa !19
  store float %45, ptr %13, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  store i32 512, ptr %14, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  %46 = load ptr, ptr %5, align 8, !tbaa !5
  %47 = getelementptr inbounds float, ptr %46, i64 0
  %48 = load float, ptr %47, align 4, !tbaa !14
  store float %48, ptr %15, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  %49 = load ptr, ptr %5, align 8, !tbaa !5
  %50 = getelementptr inbounds float, ptr %49, i64 1
  %51 = load float, ptr %50, align 4, !tbaa !14
  %52 = fmul float %51, 1.000000e+03
  store float %52, ptr %16, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  %53 = load i32, ptr %10, align 4, !tbaa !9
  %54 = mul i32 2, %53
  %55 = load i32, ptr %11, align 4, !tbaa !9
  %56 = mul i32 %54, %55
  %57 = add i32 %56, 1
  store i32 %57, ptr %17, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  store float 0.000000e+00, ptr %18, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #6
  store float 0.000000e+00, ptr %19, align 4, !tbaa !14
  %58 = load i32, ptr %17, align 4, !tbaa !9
  %59 = zext i32 %58 to i64
  %60 = call ptr @llvm.stacksave.p0()
  store ptr %60, ptr %20, align 8
  %61 = alloca float, i64 %59, align 16
  store i64 %59, ptr %21, align 8
  %62 = load i32, ptr %17, align 4, !tbaa !9
  %63 = load float, ptr %15, align 4, !tbaa !14
  %64 = load float, ptr %16, align 4, !tbaa !14
  %65 = load float, ptr %13, align 4, !tbaa !14
  %66 = call i32 @liquid_firdes_kaiser(i32 noundef %62, float noundef %63, float noundef %64, float noundef %65, ptr noundef %61)
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #6
  store float 0.000000e+00, ptr %22, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #6
  store i32 0, ptr %23, align 4, !tbaa !9
  br label %67

67:                                               ; preds = %82, %3
  %68 = load i32, ptr %23, align 4, !tbaa !9
  %69 = load i32, ptr %17, align 4, !tbaa !9
  %70 = icmp ult i32 %68, %69
  br i1 %70, label %71, label %85

71:                                               ; preds = %67
  %72 = load i32, ptr %23, align 4, !tbaa !9
  %73 = zext i32 %72 to i64
  %74 = getelementptr inbounds float, ptr %61, i64 %73
  %75 = load float, ptr %74, align 4, !tbaa !14
  %76 = load i32, ptr %23, align 4, !tbaa !9
  %77 = zext i32 %76 to i64
  %78 = getelementptr inbounds float, ptr %61, i64 %77
  %79 = load float, ptr %78, align 4, !tbaa !14
  %80 = load float, ptr %22, align 4, !tbaa !14
  %81 = call float @llvm.fmuladd.f32(float %75, float %79, float %80)
  store float %81, ptr %22, align 4, !tbaa !14
  br label %82

82:                                               ; preds = %71
  %83 = load i32, ptr %23, align 4, !tbaa !9
  %84 = add i32 %83, 1
  store i32 %84, ptr %23, align 4, !tbaa !9
  br label %67, !llvm.loop !20

85:                                               ; preds = %67
  store i32 0, ptr %23, align 4, !tbaa !9
  br label %86

86:                                               ; preds = %101, %85
  %87 = load i32, ptr %23, align 4, !tbaa !9
  %88 = load i32, ptr %17, align 4, !tbaa !9
  %89 = icmp ult i32 %87, %88
  br i1 %89, label %90, label %104

90:                                               ; preds = %86
  %91 = load i32, ptr %10, align 4, !tbaa !9
  %92 = uitofp i32 %91 to float
  %93 = load float, ptr %22, align 4, !tbaa !14
  %94 = fdiv float %92, %93
  %95 = call float @sqrtf(float noundef %94) #6
  %96 = load i32, ptr %23, align 4, !tbaa !9
  %97 = zext i32 %96 to i64
  %98 = getelementptr inbounds float, ptr %61, i64 %97
  %99 = load float, ptr %98, align 4, !tbaa !14
  %100 = fmul float %99, %95
  store float %100, ptr %98, align 4, !tbaa !14
  br label %101

101:                                              ; preds = %90
  %102 = load i32, ptr %23, align 4, !tbaa !9
  %103 = add i32 %102, 1
  store i32 %103, ptr %23, align 4, !tbaa !9
  br label %86, !llvm.loop !22

104:                                              ; preds = %86
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #6
  %105 = load i32, ptr %10, align 4, !tbaa !9
  %106 = load i32, ptr %11, align 4, !tbaa !9
  call void @liquid_filter_isi(ptr noundef %61, i32 noundef %105, i32 noundef %106, ptr noundef %25, ptr noundef %24)
  %107 = load float, ptr %25, align 4, !tbaa !14
  %108 = call float @log10f(float noundef %107) #6
  %109 = fmul float 2.000000e+01, %108
  store float %109, ptr %18, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #6
  %110 = load i32, ptr %17, align 4, !tbaa !9
  %111 = load float, ptr %12, align 4, !tbaa !14
  %112 = fpext float %111 to double
  %113 = fadd double 1.000000e+00, %112
  %114 = fmul double 5.000000e-01, %113
  %115 = load i32, ptr %10, align 4, !tbaa !9
  %116 = uitofp i32 %115 to float
  %117 = fpext float %116 to double
  %118 = fdiv double %114, %117
  %119 = fptrunc double %118 to float
  %120 = load i32, ptr %14, align 4, !tbaa !9
  %121 = call float @liquid_filter_energy(ptr noundef %61, i32 noundef %110, float noundef %119, i32 noundef %120)
  store float %121, ptr %26, align 4, !tbaa !14
  %122 = load float, ptr %26, align 4, !tbaa !14
  %123 = call float @log10f(float noundef %122) #6
  %124 = fmul float 2.000000e+01, %123
  store float %124, ptr %19, align 4, !tbaa !14
  %125 = load float, ptr %8, align 4, !tbaa !14
  %126 = load float, ptr %18, align 4, !tbaa !14
  %127 = load float, ptr %9, align 4, !tbaa !14
  %128 = load float, ptr %19, align 4, !tbaa !14
  %129 = fmul float %127, %128
  %130 = call float @llvm.fmuladd.f32(float %125, float %126, float %129)
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  %131 = load ptr, ptr %20, align 8
  call void @llvm.stackrestore.p0(ptr %131)
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  ret float %130
}

declare i32 @liquid_firdes_kaiser(i32 noundef, float noundef, float noundef, float noundef, ptr noundef) #4

; Function Attrs: nounwind
declare float @sqrtf(float noundef) #5

declare void @liquid_filter_isi(ptr noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef) #4

; Function Attrs: nounwind
declare float @log10f(float noundef) #5

declare float @liquid_filter_energy(ptr noundef, i32 noundef, float noundef, i32 noundef) #4

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nosync nounwind willreturn }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { 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 #4 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind "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 #6 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"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, !13, i64 16}
!12 = !{!"gsuserdata_s", !10, i64 0, !10, i64 4, !13, i64 8, !13, i64 12, !13, i64 16, !13, i64 20}
!13 = !{!"float", !7, i64 0}
!14 = !{!13, !13, i64 0}
!15 = !{!12, !13, i64 20}
!16 = !{!12, !10, i64 0}
!17 = !{!12, !10, i64 4}
!18 = !{!12, !13, i64 8}
!19 = !{!12, !13, i64 12}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = distinct !{!22, !21}


; 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 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: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #1

; Function Attrs: nounwind uwtable
define dso_local float @gs_utility(ptr nocapture noundef readonly %0, ptr nocapture noundef readonly %1, i32 noundef %2) local_unnamed_addr #2 {
  %4 = alloca float, align 4
  %5 = alloca float, align 4
  %6 = getelementptr inbounds i8, ptr %0, i64 16
  %7 = load float, ptr %6, align 4, !tbaa !5
  %8 = getelementptr inbounds i8, ptr %0, i64 20
  %9 = load float, ptr %8, align 4, !tbaa !11
  %10 = load i32, ptr %0, align 4, !tbaa !12
  %11 = getelementptr inbounds i8, ptr %0, i64 4
  %12 = load i32, ptr %11, align 4, !tbaa !13
  %13 = getelementptr inbounds i8, ptr %0, i64 8
  %14 = load float, ptr %13, align 4, !tbaa !14
  %15 = getelementptr inbounds i8, ptr %0, i64 12
  %16 = load float, ptr %15, align 4, !tbaa !15
  %17 = load float, ptr %1, align 4, !tbaa !16
  %18 = getelementptr inbounds i8, ptr %1, i64 4
  %19 = load float, ptr %18, align 4, !tbaa !16
  %20 = fmul float %19, 1.000000e+03
  %21 = shl i32 %10, 1
  %22 = mul i32 %21, %12
  %23 = or disjoint i32 %22, 1
  %24 = zext i32 %23 to i64
  %25 = alloca float, i64 %24, align 16
  %26 = call i32 @liquid_firdes_kaiser(i32 noundef %23, float noundef %17, float noundef %20, float noundef %16, ptr noundef nonnull %25) #5
  %27 = or disjoint i32 %22, 1
  %wide.trip.count = zext i32 %27 to i64
  %xtraiter = and i64 %wide.trip.count, 3
  %28 = icmp ult i32 %22, 3
  br i1 %28, label %.epil.preheader, label %.new

.new:                                             ; preds = %3
  %unroll_iter = and i64 %wide.trip.count, 4294967292
  br label %38

.epil.preheader:                                  ; preds = %3, %38
  %indvars.iv.unr = phi i64 [ 0, %3 ], [ %indvars.iv.next.3, %38 ]
  %.03942.unr = phi float [ 0.000000e+00, %3 ], [ %50, %38 ]
  br label %29

29:                                               ; preds = %29, %.epil.preheader
  %indvars.iv.epil = phi i64 [ %indvars.iv.unr, %.epil.preheader ], [ %indvars.iv.next.epil, %29 ]
  %.03942.epil = phi float [ %.03942.unr, %.epil.preheader ], [ %32, %29 ]
  %epil.iter = phi i64 [ 0, %.epil.preheader ], [ %epil.iter.next, %29 ]
  %30 = getelementptr inbounds float, ptr %25, i64 %indvars.iv.epil
  %31 = load float, ptr %30, align 4, !tbaa !16
  %32 = call float @llvm.fmuladd.f32(float %31, float %31, float %.03942.epil)
  %indvars.iv.next.epil = add nuw nsw i64 %indvars.iv.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %.preheader, label %29, !llvm.loop !17

.preheader:                                       ; preds = %29
  %33 = uitofp i32 %10 to float
  %34 = fdiv float %33, %32
  %35 = or disjoint i32 %22, 1
  %36 = zext i32 %35 to i64
  %xtraiter53 = and i64 %36, 3
  %37 = icmp ult i32 %22, 3
  br i1 %37, label %.epil.preheader52, label %.preheader.new

.preheader.new:                                   ; preds = %.preheader
  %unroll_iter56 = and i64 %36, 4294967292
  br label %51

38:                                               ; preds = %38, %.new
  %indvars.iv = phi i64 [ 0, %.new ], [ %indvars.iv.next.3, %38 ]
  %.03942 = phi float [ 0.000000e+00, %.new ], [ %50, %38 ]
  %niter = phi i64 [ 0, %.new ], [ %niter.next.3, %38 ]
  %39 = getelementptr inbounds float, ptr %25, i64 %indvars.iv
  %40 = load float, ptr %39, align 16, !tbaa !16
  %41 = call float @llvm.fmuladd.f32(float %40, float %40, float %.03942)
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %42 = getelementptr inbounds float, ptr %25, i64 %indvars.iv.next
  %43 = load float, ptr %42, align 4, !tbaa !16
  %44 = call float @llvm.fmuladd.f32(float %43, float %43, float %41)
  %indvars.iv.next.1 = or disjoint i64 %indvars.iv, 2
  %45 = getelementptr inbounds float, ptr %25, i64 %indvars.iv.next.1
  %46 = load float, ptr %45, align 8, !tbaa !16
  %47 = call float @llvm.fmuladd.f32(float %46, float %46, float %44)
  %indvars.iv.next.2 = or disjoint i64 %indvars.iv, 3
  %48 = getelementptr inbounds float, ptr %25, i64 %indvars.iv.next.2
  %49 = load float, ptr %48, align 4, !tbaa !16
  %50 = call float @llvm.fmuladd.f32(float %49, float %49, float %47)
  %indvars.iv.next.3 = add nuw nsw i64 %indvars.iv, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %.epil.preheader, label %38, !llvm.loop !19

51:                                               ; preds = %51, %.preheader.new
  %indvars.iv46 = phi i64 [ 0, %.preheader.new ], [ %indvars.iv.next47.3, %51 ]
  %niter57 = phi i64 [ 0, %.preheader.new ], [ %niter57.next.3, %51 ]
  %52 = call float @sqrtf(float noundef %34) #5
  %53 = getelementptr inbounds float, ptr %25, i64 %indvars.iv46
  %54 = load float, ptr %53, align 16, !tbaa !16
  %55 = fmul float %52, %54
  store float %55, ptr %53, align 16, !tbaa !16
  %indvars.iv.next47 = or disjoint i64 %indvars.iv46, 1
  %56 = call float @sqrtf(float noundef %34) #5
  %57 = getelementptr inbounds float, ptr %25, i64 %indvars.iv.next47
  %58 = load float, ptr %57, align 4, !tbaa !16
  %59 = fmul float %56, %58
  store float %59, ptr %57, align 4, !tbaa !16
  %indvars.iv.next47.1 = or disjoint i64 %indvars.iv46, 2
  %60 = call float @sqrtf(float noundef %34) #5
  %61 = getelementptr inbounds float, ptr %25, i64 %indvars.iv.next47.1
  %62 = load float, ptr %61, align 8, !tbaa !16
  %63 = fmul float %60, %62
  store float %63, ptr %61, align 8, !tbaa !16
  %indvars.iv.next47.2 = or disjoint i64 %indvars.iv46, 3
  %64 = call float @sqrtf(float noundef %34) #5
  %65 = getelementptr inbounds float, ptr %25, i64 %indvars.iv.next47.2
  %66 = load float, ptr %65, align 4, !tbaa !16
  %67 = fmul float %64, %66
  store float %67, ptr %65, align 4, !tbaa !16
  %indvars.iv.next47.3 = add nuw nsw i64 %indvars.iv46, 4
  %niter57.next.3 = add i64 %niter57, 4
  %niter57.ncmp.3 = icmp eq i64 %niter57.next.3, %unroll_iter56
  br i1 %niter57.ncmp.3, label %.epil.preheader52, label %51, !llvm.loop !21

.epil.preheader52:                                ; preds = %.preheader, %51
  %indvars.iv46.unr = phi i64 [ 0, %.preheader ], [ %indvars.iv.next47.3, %51 ]
  br label %68

68:                                               ; preds = %68, %.epil.preheader52
  %indvars.iv46.epil = phi i64 [ %indvars.iv46.unr, %.epil.preheader52 ], [ %indvars.iv.next47.epil, %68 ]
  %epil.iter54 = phi i64 [ 0, %.epil.preheader52 ], [ %epil.iter54.next, %68 ]
  %69 = call float @sqrtf(float noundef %34) #5
  %70 = getelementptr inbounds float, ptr %25, i64 %indvars.iv46.epil
  %71 = load float, ptr %70, align 4, !tbaa !16
  %72 = fmul float %69, %71
  store float %72, ptr %70, align 4, !tbaa !16
  %indvars.iv.next47.epil = add nuw nsw i64 %indvars.iv46.epil, 1
  %epil.iter54.next = add i64 %epil.iter54, 1
  %epil.iter54.cmp.not = icmp eq i64 %epil.iter54.next, %xtraiter53
  br i1 %epil.iter54.cmp.not, label %.epilog-lcssa, label %68, !llvm.loop !22

.epilog-lcssa:                                    ; preds = %68
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #5
  call void @liquid_filter_isi(ptr noundef nonnull %25, i32 noundef %10, i32 noundef %12, ptr noundef nonnull %5, ptr noundef nonnull %4) #5
  %73 = load float, ptr %5, align 4, !tbaa !16
  %74 = call float @log10f(float noundef %73) #5
  %75 = fmul float %74, 2.000000e+01
  %76 = fpext float %14 to double
  %77 = fadd double %76, 1.000000e+00
  %78 = fmul double %77, 5.000000e-01
  %79 = fpext float %33 to double
  %80 = fdiv double %78, %79
  %81 = fptrunc double %80 to float
  %82 = call float @liquid_filter_energy(ptr noundef nonnull %25, i32 noundef %23, float noundef %81, i32 noundef 512) #5
  %83 = call float @log10f(float noundef %82) #5
  %84 = fmul float %83, 2.000000e+01
  %85 = fmul float %9, %84
  %86 = call float @llvm.fmuladd.f32(float %7, float %75, float %85)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #5
  ret float %86
}

declare i32 @liquid_firdes_kaiser(i32 noundef, float noundef, float noundef, float noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare float @sqrtf(float noundef) local_unnamed_addr #4

declare void @liquid_filter_isi(ptr noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare float @log10f(float noundef) local_unnamed_addr #4

declare float @liquid_filter_energy(ptr noundef, i32 noundef, float noundef, i32 noundef) local_unnamed_addr #3

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

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

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


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