; LLVM IR from merpheus-dev/LavaEngine :: src/Utils/soloud/src/filter (soloud_flangerfilter)

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

%"class.SoLoud::FlangerFilterInstance" = type { %"class.SoLoud::FilterInstance", ptr, i32, ptr, i32, double }
%"class.SoLoud::FilterInstance" = type { ptr, i32, i32, ptr, ptr }

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6SoLoud21FlangerFilterInstance6filterEPfjjfd(ptr noundef nonnull align 8 dereferenceable(72) %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, float noundef %4, double noundef %5) unnamed_addr #0 align 2 {
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca float, align 4
  %12 = alloca double, align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca double, align 8
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca float, align 4
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store i32 %2, ptr %9, align 4, !tbaa !9
  store i32 %3, ptr %10, align 4, !tbaa !9
  store float %4, ptr %11, align 4, !tbaa !11
  store double %5, ptr %12, align 8, !tbaa !13
  %21 = load ptr, ptr %7, align 8
  %22 = load double, ptr %12, align 8, !tbaa !13
  %23 = load ptr, ptr %21, align 8, !tbaa !15
  %24 = getelementptr inbounds ptr, ptr %23, i64 1
  %25 = load ptr, ptr %24, align 8
  call void %25(ptr noundef nonnull align 8 dereferenceable(32) %21, double noundef %22)
  %26 = getelementptr inbounds %"class.SoLoud::FlangerFilterInstance", ptr %21, i32 0, i32 2
  %27 = load i32, ptr %26, align 8, !tbaa !17
  %28 = uitofp i32 %27 to float
  %29 = getelementptr inbounds %"class.SoLoud::FilterInstance", ptr %21, i32 0, i32 3
  %30 = load ptr, ptr %29, align 8, !tbaa !20
  %31 = getelementptr inbounds float, ptr %30, i64 1
  %32 = load float, ptr %31, align 4, !tbaa !11
  %33 = load float, ptr %11, align 4, !tbaa !11
  %34 = fmul float %32, %33
  %35 = fcmp olt float %28, %34
  br i1 %35, label %36, label %77

36:                                               ; preds = %6
  %37 = getelementptr inbounds %"class.SoLoud::FlangerFilterInstance", ptr %21, i32 0, i32 1
  %38 = load ptr, ptr %37, align 8, !tbaa !21
  %39 = icmp eq ptr %38, null
  br i1 %39, label %41, label %40

40:                                               ; preds = %36
  call void @_ZdaPv(ptr noundef %38) #8
  br label %41

41:                                               ; preds = %40, %36
  %42 = getelementptr inbounds %"class.SoLoud::FilterInstance", ptr %21, i32 0, i32 3
  %43 = load ptr, ptr %42, align 8, !tbaa !20
  %44 = getelementptr inbounds float, ptr %43, i64 1
  %45 = load float, ptr %44, align 4, !tbaa !11
  %46 = load float, ptr %11, align 4, !tbaa !11
  %47 = fmul float %45, %46
  %48 = call noundef float @_ZSt4ceilf(float noundef %47)
  %49 = fptosi float %48 to i32
  %50 = getelementptr inbounds %"class.SoLoud::FlangerFilterInstance", ptr %21, i32 0, i32 2
  store i32 %49, ptr %50, align 8, !tbaa !17
  %51 = getelementptr inbounds %"class.SoLoud::FlangerFilterInstance", ptr %21, i32 0, i32 2
  %52 = load i32, ptr %51, align 8, !tbaa !17
  %53 = load i32, ptr %10, align 4, !tbaa !9
  %54 = mul i32 %52, %53
  %55 = zext i32 %54 to i64
  %56 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %55, i64 4)
  %57 = extractvalue { i64, i1 } %56, 1
  %58 = extractvalue { i64, i1 } %56, 0
  %59 = select i1 %57, i64 -1, i64 %58
  %60 = call noalias noundef nonnull ptr @_Znam(i64 noundef %59) #9
  %61 = getelementptr inbounds %"class.SoLoud::FlangerFilterInstance", ptr %21, i32 0, i32 1
  store ptr %60, ptr %61, align 8, !tbaa !21
  %62 = getelementptr inbounds %"class.SoLoud::FlangerFilterInstance", ptr %21, i32 0, i32 1
  %63 = load ptr, ptr %62, align 8, !tbaa !21
  %64 = icmp eq ptr %63, null
  br i1 %64, label %65, label %67

65:                                               ; preds = %41
  %66 = getelementptr inbounds %"class.SoLoud::FlangerFilterInstance", ptr %21, i32 0, i32 2
  store i32 0, ptr %66, align 8, !tbaa !17
  br label %210

67:                                               ; preds = %41
  %68 = getelementptr inbounds %"class.SoLoud::FlangerFilterInstance", ptr %21, i32 0, i32 1
  %69 = load ptr, ptr %68, align 8, !tbaa !21
  %70 = getelementptr inbounds %"class.SoLoud::FlangerFilterInstance", ptr %21, i32 0, i32 2
  %71 = load i32, ptr %70, align 8, !tbaa !17
  %72 = zext i32 %71 to i64
  %73 = mul i64 4, %72
  %74 = load i32, ptr %10, align 4, !tbaa !9
  %75 = zext i32 %74 to i64
  %76 = mul i64 %73, %75
  call void @llvm.memset.p0.i64(ptr align 4 %69, i8 0, i64 %76, i1 false)
  br label %77

77:                                               ; preds = %67, %6
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #10
  %78 = getelementptr inbounds %"class.SoLoud::FilterInstance", ptr %21, i32 0, i32 3
  %79 = load ptr, ptr %78, align 8, !tbaa !20
  %80 = getelementptr inbounds float, ptr %79, i64 1
  %81 = load float, ptr %80, align 4, !tbaa !11
  %82 = load float, ptr %11, align 4, !tbaa !11
  %83 = fmul float %81, %82
  %84 = call noundef float @_ZSt4ceilf(float noundef %83)
  %85 = fptosi float %84 to i32
  store i32 %85, ptr %15, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #10
  %86 = getelementptr inbounds %"class.SoLoud::FilterInstance", ptr %21, i32 0, i32 3
  %87 = load ptr, ptr %86, align 8, !tbaa !20
  %88 = getelementptr inbounds float, ptr %87, i64 2
  %89 = load float, ptr %88, align 4, !tbaa !11
  %90 = fpext float %89 to double
  %91 = fmul double %90, 0x400921FB54442D18
  %92 = fmul double %91, 2.000000e+00
  %93 = load float, ptr %11, align 4, !tbaa !11
  %94 = fpext float %93 to double
  %95 = fdiv double %92, %94
  store double %95, ptr %16, align 8, !tbaa !13
  store i32 0, ptr %13, align 4, !tbaa !9
  br label %96

96:                                               ; preds = %197, %77
  %97 = load i32, ptr %13, align 4, !tbaa !9
  %98 = load i32, ptr %10, align 4, !tbaa !9
  %99 = icmp ult i32 %97, %98
  br i1 %99, label %100, label %200

100:                                              ; preds = %96
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #10
  %101 = load i32, ptr %13, align 4, !tbaa !9
  %102 = getelementptr inbounds %"class.SoLoud::FlangerFilterInstance", ptr %21, i32 0, i32 2
  %103 = load i32, ptr %102, align 8, !tbaa !17
  %104 = mul i32 %101, %103
  store i32 %104, ptr %17, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #10
  %105 = load i32, ptr %13, align 4, !tbaa !9
  %106 = load i32, ptr %9, align 4, !tbaa !9
  %107 = mul i32 %105, %106
  store i32 %107, ptr %18, align 4, !tbaa !9
  store i32 0, ptr %14, align 4, !tbaa !9
  br label %108

108:                                              ; preds = %187, %100
  %109 = load i32, ptr %14, align 4, !tbaa !9
  %110 = load i32, ptr %9, align 4, !tbaa !9
  %111 = icmp ult i32 %109, %110
  br i1 %111, label %112, label %192

112:                                              ; preds = %108
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #10
  %113 = load i32, ptr %15, align 4, !tbaa !9
  %114 = sitofp i32 %113 to double
  %115 = getelementptr inbounds %"class.SoLoud::FlangerFilterInstance", ptr %21, i32 0, i32 5
  %116 = load double, ptr %115, align 8, !tbaa !22
  %117 = call double @cos(double noundef %116) #10
  %118 = fadd double 1.000000e+00, %117
  %119 = fmul double %114, %118
  %120 = call double @llvm.floor.f64(double %119)
  %121 = fptosi double %120 to i32
  %122 = sdiv i32 %121, 2
  store i32 %122, ptr %19, align 4, !tbaa !9
  %123 = load double, ptr %16, align 8, !tbaa !13
  %124 = getelementptr inbounds %"class.SoLoud::FlangerFilterInstance", ptr %21, i32 0, i32 5
  %125 = load double, ptr %124, align 8, !tbaa !22
  %126 = fadd double %125, %123
  store double %126, ptr %124, align 8, !tbaa !22
  %127 = load ptr, ptr %8, align 8, !tbaa !5
  %128 = load i32, ptr %18, align 4, !tbaa !9
  %129 = sext i32 %128 to i64
  %130 = getelementptr inbounds float, ptr %127, i64 %129
  %131 = load float, ptr %130, align 4, !tbaa !11
  %132 = getelementptr inbounds %"class.SoLoud::FlangerFilterInstance", ptr %21, i32 0, i32 1
  %133 = load ptr, ptr %132, align 8, !tbaa !21
  %134 = load i32, ptr %17, align 4, !tbaa !9
  %135 = getelementptr inbounds %"class.SoLoud::FlangerFilterInstance", ptr %21, i32 0, i32 4
  %136 = load i32, ptr %135, align 8, !tbaa !23
  %137 = getelementptr inbounds %"class.SoLoud::FlangerFilterInstance", ptr %21, i32 0, i32 2
  %138 = load i32, ptr %137, align 8, !tbaa !17
  %139 = urem i32 %136, %138
  %140 = add i32 %134, %139
  %141 = zext i32 %140 to i64
  %142 = getelementptr inbounds float, ptr %133, i64 %141
  store float %131, ptr %142, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #10
  %143 = load ptr, ptr %8, align 8, !tbaa !5
  %144 = load i32, ptr %18, align 4, !tbaa !9
  %145 = sext i32 %144 to i64
  %146 = getelementptr inbounds float, ptr %143, i64 %145
  %147 = load float, ptr %146, align 4, !tbaa !11
  %148 = getelementptr inbounds %"class.SoLoud::FlangerFilterInstance", ptr %21, i32 0, i32 1
  %149 = load ptr, ptr %148, align 8, !tbaa !21
  %150 = load i32, ptr %17, align 4, !tbaa !9
  %151 = getelementptr inbounds %"class.SoLoud::FlangerFilterInstance", ptr %21, i32 0, i32 2
  %152 = load i32, ptr %151, align 8, !tbaa !17
  %153 = load i32, ptr %19, align 4, !tbaa !9
  %154 = sub i32 %152, %153
  %155 = getelementptr inbounds %"class.SoLoud::FlangerFilterInstance", ptr %21, i32 0, i32 4
  %156 = load i32, ptr %155, align 8, !tbaa !23
  %157 = add i32 %154, %156
  %158 = getelementptr inbounds %"class.SoLoud::FlangerFilterInstance", ptr %21, i32 0, i32 2
  %159 = load i32, ptr %158, align 8, !tbaa !17
  %160 = urem i32 %157, %159
  %161 = add i32 %150, %160
  %162 = zext i32 %161 to i64
  %163 = getelementptr inbounds float, ptr %149, i64 %162
  %164 = load float, ptr %163, align 4, !tbaa !11
  %165 = fadd float %147, %164
  %166 = fmul float 5.000000e-01, %165
  store float %166, ptr %20, align 4, !tbaa !11
  %167 = getelementptr inbounds %"class.SoLoud::FlangerFilterInstance", ptr %21, i32 0, i32 4
  %168 = load i32, ptr %167, align 8, !tbaa !23
  %169 = add i32 %168, 1
  store i32 %169, ptr %167, align 8, !tbaa !23
  %170 = load float, ptr %20, align 4, !tbaa !11
  %171 = load ptr, ptr %8, align 8, !tbaa !5
  %172 = load i32, ptr %18, align 4, !tbaa !9
  %173 = sext i32 %172 to i64
  %174 = getelementptr inbounds float, ptr %171, i64 %173
  %175 = load float, ptr %174, align 4, !tbaa !11
  %176 = fsub float %170, %175
  %177 = getelementptr inbounds %"class.SoLoud::FilterInstance", ptr %21, i32 0, i32 3
  %178 = load ptr, ptr %177, align 8, !tbaa !20
  %179 = getelementptr inbounds float, ptr %178, i64 0
  %180 = load float, ptr %179, align 4, !tbaa !11
  %181 = load ptr, ptr %8, align 8, !tbaa !5
  %182 = load i32, ptr %18, align 4, !tbaa !9
  %183 = sext i32 %182 to i64
  %184 = getelementptr inbounds float, ptr %181, i64 %183
  %185 = load float, ptr %184, align 4, !tbaa !11
  %186 = call float @llvm.fmuladd.f32(float %176, float %180, float %185)
  store float %186, ptr %184, align 4, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #10
  br label %187

187:                                              ; preds = %112
  %188 = load i32, ptr %14, align 4, !tbaa !9
  %189 = add i32 %188, 1
  store i32 %189, ptr %14, align 4, !tbaa !9
  %190 = load i32, ptr %18, align 4, !tbaa !9
  %191 = add nsw i32 %190, 1
  store i32 %191, ptr %18, align 4, !tbaa !9
  br label %108, !llvm.loop !24

192:                                              ; preds = %108
  %193 = load i32, ptr %9, align 4, !tbaa !9
  %194 = getelementptr inbounds %"class.SoLoud::FlangerFilterInstance", ptr %21, i32 0, i32 4
  %195 = load i32, ptr %194, align 8, !tbaa !23
  %196 = sub i32 %195, %193
  store i32 %196, ptr %194, align 8, !tbaa !23
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #10
  br label %197

197:                                              ; preds = %192
  %198 = load i32, ptr %13, align 4, !tbaa !9
  %199 = add i32 %198, 1
  store i32 %199, ptr %13, align 4, !tbaa !9
  br label %96, !llvm.loop !26

200:                                              ; preds = %96
  %201 = load i32, ptr %9, align 4, !tbaa !9
  %202 = getelementptr inbounds %"class.SoLoud::FlangerFilterInstance", ptr %21, i32 0, i32 4
  %203 = load i32, ptr %202, align 8, !tbaa !23
  %204 = add i32 %203, %201
  store i32 %204, ptr %202, align 8, !tbaa !23
  %205 = getelementptr inbounds %"class.SoLoud::FlangerFilterInstance", ptr %21, i32 0, i32 2
  %206 = load i32, ptr %205, align 8, !tbaa !17
  %207 = getelementptr inbounds %"class.SoLoud::FlangerFilterInstance", ptr %21, i32 0, i32 4
  %208 = load i32, ptr %207, align 8, !tbaa !23
  %209 = urem i32 %208, %206
  store i32 %209, ptr %207, align 8, !tbaa !23
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #10
  br label %210

210:                                              ; preds = %200, %65
  ret void
}

; Function Attrs: nobuiltin nounwind
declare void @_ZdaPv(ptr noundef) #1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt4ceilf(float noundef) #2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare { i64, i1 } @llvm.umul.with.overflow.i64(i64, i64) #3

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) #4

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #5

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

; Function Attrs: nounwind
declare double @cos(double noundef) #7

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

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

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

attributes #0 = { mustprogress 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 = { nobuiltin 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 #2 = { inlinehint mustprogress 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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nobuiltin 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 #5 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #6 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #7 = { 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 #8 = { builtin nounwind }
attributes #9 = { builtin allocsize(0) }
attributes #10 = { 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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"double", !7, i64 0}
!15 = !{!16, !16, i64 0}
!16 = !{!"vtable pointer", !8, i64 0}
!17 = !{!18, !10, i64 40}
!18 = !{!"_ZTSN6SoLoud21FlangerFilterInstanceE", !19, i64 0, !6, i64 32, !10, i64 40, !6, i64 48, !10, i64 56, !14, i64 64}
!19 = !{!"_ZTSN6SoLoud14FilterInstanceE", !10, i64 8, !10, i64 12, !6, i64 16, !6, i64 24}
!20 = !{!19, !6, i64 16}
!21 = !{!18, !6, i64 32}
!22 = !{!18, !14, i64 64}
!23 = !{!18, !10, i64 56}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"}
!26 = distinct !{!26, !25}


; 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 uwtable
define dso_local void @_ZN6SoLoud21FlangerFilterInstance6filterEPfjjfd(ptr noundef nonnull align 8 dereferenceable(72) %0, ptr nocapture noundef %1, i32 noundef %2, i32 noundef %3, float noundef %4, double noundef %5) unnamed_addr #0 align 2 {
  %7 = load ptr, ptr %0, align 8, !tbaa !5
  %8 = getelementptr inbounds i8, ptr %7, i64 8
  %9 = load ptr, ptr %8, align 8
  tail call void %9(ptr noundef nonnull align 8 dereferenceable(32) %0, double noundef %5)
  %10 = getelementptr inbounds i8, ptr %0, i64 40
  %11 = load i32, ptr %10, align 8, !tbaa !8
  %12 = uitofp i32 %11 to float
  %13 = getelementptr inbounds i8, ptr %0, i64 16
  %14 = load ptr, ptr %13, align 8, !tbaa !15
  %15 = getelementptr inbounds i8, ptr %14, i64 4
  %16 = load float, ptr %15, align 4, !tbaa !16
  %17 = fmul float %16, %4
  %18 = fcmp ogt float %17, %12
  br i1 %18, label %19, label %35

19:                                               ; preds = %6
  %20 = getelementptr inbounds i8, ptr %0, i64 32
  %21 = load ptr, ptr %20, align 8, !tbaa !18
  %22 = icmp eq ptr %21, null
  br i1 %22, label %24, label %23

23:                                               ; preds = %19
  tail call void @_ZdaPv(ptr noundef nonnull %21) #7
  %.pre = load ptr, ptr %13, align 8, !tbaa !15
  %.phi.trans.insert = getelementptr inbounds i8, ptr %.pre, i64 4
  %.pre48 = load float, ptr %.phi.trans.insert, align 4, !tbaa !16
  %.pre57 = fmul float %.pre48, %4
  br label %24

24:                                               ; preds = %23, %19
  %.pre-phi = phi float [ %.pre57, %23 ], [ %17, %19 ]
  %25 = tail call noundef float @_ZSt4ceilf(float noundef %.pre-phi)
  %26 = fptosi float %25 to i32
  store i32 %26, ptr %10, align 8, !tbaa !8
  %27 = mul i32 %26, %3
  %28 = zext i32 %27 to i64
  %29 = shl nuw nsw i64 %28, 2
  %30 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %29) #8
  store ptr %30, ptr %20, align 8, !tbaa !18
  %31 = zext i32 %26 to i64
  %32 = zext i32 %3 to i64
  %33 = shl nuw nsw i64 %32, 2
  %34 = mul i64 %33, %31
  tail call void @llvm.memset.p0.i64(ptr nonnull align 4 %30, i8 0, i64 %34, i1 false)
  %.pre49 = load ptr, ptr %13, align 8, !tbaa !15
  %.phi.trans.insert50 = getelementptr inbounds i8, ptr %.pre49, i64 4
  %.pre51 = load float, ptr %.phi.trans.insert50, align 4, !tbaa !16
  %.pre58 = fmul float %.pre51, %4
  br label %35

35:                                               ; preds = %24, %6
  %.pre-phi59 = phi float [ %.pre58, %24 ], [ %17, %6 ]
  %36 = tail call noundef float @_ZSt4ceilf(float noundef %.pre-phi59)
  %37 = load ptr, ptr %13, align 8, !tbaa !15
  %38 = getelementptr inbounds i8, ptr %37, i64 8
  %39 = load float, ptr %38, align 4, !tbaa !16
  %40 = fpext float %39 to double
  %41 = fmul double %40, 0x400921FB54442D18
  %42 = fmul double %41, 2.000000e+00
  %43 = fpext float %4 to double
  %44 = fdiv double %42, %43
  %.not = icmp eq i32 %3, 0
  br i1 %.not, label %.._crit_edge42_crit_edge, label %.lr.ph41

.._crit_edge42_crit_edge:                         ; preds = %35
  %.phi.trans.insert54 = getelementptr inbounds i8, ptr %0, i64 56
  %.pre55 = load i32, ptr %.phi.trans.insert54, align 8, !tbaa !19
  br label %._crit_edge42

.lr.ph41:                                         ; preds = %35
  %45 = fptosi float %36 to i32
  %.not43 = icmp eq i32 %2, 0
  %46 = sitofp i32 %45 to double
  %47 = getelementptr inbounds i8, ptr %0, i64 64
  %48 = getelementptr inbounds i8, ptr %0, i64 32
  %49 = getelementptr inbounds i8, ptr %0, i64 56
  br i1 %.not43, label %.lr.ph41.split, label %.lr.ph.us.preheader

.lr.ph.us.preheader:                              ; preds = %.lr.ph41
  %.pre52 = load i32, ptr %10, align 8, !tbaa !8
  %.pre53.pre = load double, ptr %47, align 8, !tbaa !20
  br label %.lr.ph.us

.lr.ph.us:                                        ; preds = %.lr.ph.us.preheader, %._crit_edge.us
  %.pre53 = phi double [ %.pre53.pre, %.lr.ph.us.preheader ], [ %61, %._crit_edge.us ]
  %50 = phi i32 [ %.pre52, %.lr.ph.us.preheader ], [ %66, %._crit_edge.us ]
  %indvars.iv = phi i32 [ 0, %.lr.ph.us.preheader ], [ %indvars.iv.next, %._crit_edge.us ]
  %.039.us = phi i32 [ 0, %.lr.ph.us.preheader ], [ %87, %._crit_edge.us ]
  %51 = sext i32 %indvars.iv to i64
  %52 = mul i32 %50, %.039.us
  br label %53

53:                                               ; preds = %.lr.ph.us, %53
  %54 = phi double [ %.pre53, %.lr.ph.us ], [ %61, %53 ]
  %indvars.iv44 = phi i64 [ %51, %.lr.ph.us ], [ %indvars.iv.next45, %53 ]
  %.03338.us = phi i32 [ 0, %.lr.ph.us ], [ %85, %53 ]
  %55 = tail call double @cos(double noundef %54) #9
  %56 = fadd double %55, 1.000000e+00
  %57 = fmul double %56, %46
  %58 = tail call double @llvm.floor.f64(double %57)
  %59 = fptosi double %58 to i32
  %.neg.us = sdiv i32 %59, -2
  %60 = load double, ptr %47, align 8, !tbaa !20
  %61 = fadd double %44, %60
  store double %61, ptr %47, align 8, !tbaa !20
  %62 = getelementptr inbounds float, ptr %1, i64 %indvars.iv44
  %63 = load float, ptr %62, align 4, !tbaa !16
  %64 = load ptr, ptr %48, align 8, !tbaa !18
  %65 = load i32, ptr %49, align 8, !tbaa !19
  %66 = load i32, ptr %10, align 8, !tbaa !8
  %67 = urem i32 %65, %66
  %68 = add i32 %67, %52
  %69 = zext i32 %68 to i64
  %70 = getelementptr inbounds float, ptr %64, i64 %69
  store float %63, ptr %70, align 4, !tbaa !16
  %71 = add i32 %65, %.neg.us
  %72 = add i32 %71, %66
  %73 = urem i32 %72, %66
  %74 = add i32 %73, %52
  %75 = zext i32 %74 to i64
  %76 = getelementptr inbounds float, ptr %64, i64 %75
  %77 = load float, ptr %76, align 4, !tbaa !16
  %78 = fadd float %63, %77
  %79 = fmul float %78, 5.000000e-01
  %80 = add i32 %65, 1
  store i32 %80, ptr %49, align 8, !tbaa !19
  %81 = fsub float %79, %63
  %82 = load ptr, ptr %13, align 8, !tbaa !15
  %83 = load float, ptr %82, align 4, !tbaa !16
  %84 = tail call float @llvm.fmuladd.f32(float %81, float %83, float %63)
  store float %84, ptr %62, align 4, !tbaa !16
  %85 = add nuw i32 %.03338.us, 1
  %indvars.iv.next45 = add nsw i64 %indvars.iv44, 1
  %exitcond.not = icmp eq i32 %85, %2
  br i1 %exitcond.not, label %._crit_edge.us, label %53, !llvm.loop !21

._crit_edge.us:                                   ; preds = %53
  %86 = sub i32 %80, %2
  store i32 %86, ptr %49, align 8, !tbaa !19
  %87 = add nuw i32 %.039.us, 1
  %indvars.iv.next = add i32 %indvars.iv, %2
  %exitcond47.not = icmp eq i32 %87, %3
  br i1 %exitcond47.not, label %._crit_edge42, label %.lr.ph.us, !llvm.loop !23

.lr.ph41.split:                                   ; preds = %.lr.ph41
  %.promoted = load i32, ptr %49, align 8, !tbaa !19
  br label %._crit_edge42

._crit_edge42:                                    ; preds = %._crit_edge.us, %.._crit_edge42_crit_edge, %.lr.ph41.split
  %88 = phi i32 [ %.pre55, %.._crit_edge42_crit_edge ], [ %.promoted, %.lr.ph41.split ], [ %86, %._crit_edge.us ]
  %89 = getelementptr inbounds i8, ptr %0, i64 56
  %90 = add i32 %88, %2
  %91 = load i32, ptr %10, align 8, !tbaa !8
  %92 = urem i32 %90, %91
  store i32 %92, ptr %89, align 8, !tbaa !19
  ret void
}

; Function Attrs: nobuiltin nounwind
declare void @_ZdaPv(ptr noundef) local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt4ceilf(float noundef) local_unnamed_addr #2

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #4

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

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

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

attributes #0 = { mustprogress 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 = { nobuiltin 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 #2 = { inlinehint mustprogress 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 = { nobuiltin 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 #4 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { 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 #6 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #7 = { builtin nounwind }
attributes #8 = { builtin allocsize(0) }
attributes #9 = { 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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !11, i64 40}
!9 = !{!"_ZTSN6SoLoud21FlangerFilterInstanceE", !10, i64 0, !13, i64 32, !11, i64 40, !13, i64 48, !11, i64 56, !14, i64 64}
!10 = !{!"_ZTSN6SoLoud14FilterInstanceE", !11, i64 8, !11, i64 12, !13, i64 16, !13, i64 24}
!11 = !{!"int", !12, i64 0}
!12 = !{!"omnipotent char", !7, i64 0}
!13 = !{!"any pointer", !12, i64 0}
!14 = !{!"double", !12, i64 0}
!15 = !{!10, !13, i64 16}
!16 = !{!17, !17, i64 0}
!17 = !{!"float", !12, i64 0}
!18 = !{!9, !13, i64 32}
!19 = !{!9, !11, i64 56}
!20 = !{!9, !14, i64 64}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = distinct !{!23, !22}


; Effective O3 passes: BDCEPass,CorrelatedValuePropagationPass,DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass