; LLVM IR from Overload-Technologies/Overload :: Dependencies/soloud/src/filter (soloud_echofilter)

; 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::EchoFilterInstance" = type <{ %"class.SoLoud::FilterInstance", ptr, i32, i32, i32, [4 x i8] }>
%"class.SoLoud::FilterInstance" = type { ptr, i32, i32, ptr, ptr }

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6SoLoud18EchoFilterInstance6filterEPfjjjfd(ptr noundef nonnull align 8 dereferenceable(52) %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, float noundef %5, double noundef %6) unnamed_addr #0 align 2 {
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca float, align 4
  %14 = alloca double, align 8
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca float, align 4
  store ptr %0, ptr %8, align 8, !tbaa !5
  store ptr %1, ptr %9, align 8, !tbaa !5
  store i32 %2, ptr %10, align 4, !tbaa !9
  store i32 %3, ptr %11, align 4, !tbaa !9
  store i32 %4, ptr %12, align 4, !tbaa !9
  store float %5, ptr %13, align 4, !tbaa !11
  store double %6, ptr %14, align 8, !tbaa !13
  %22 = load ptr, ptr %8, align 8
  %23 = load double, ptr %14, align 8, !tbaa !13
  %24 = load ptr, ptr %22, align 8, !tbaa !15
  %25 = getelementptr inbounds ptr, ptr %24, i64 1
  %26 = load ptr, ptr %25, align 8
  call void %26(ptr noundef nonnull align 8 dereferenceable(32) %22, double noundef %23)
  %27 = getelementptr inbounds %"class.SoLoud::EchoFilterInstance", ptr %22, i32 0, i32 1
  %28 = load ptr, ptr %27, align 8, !tbaa !17
  %29 = icmp eq ptr %28, null
  br i1 %29, label %30, label %68

30:                                               ; preds = %7
  %31 = getelementptr inbounds %"class.SoLoud::FilterInstance", ptr %22, i32 0, i32 3
  %32 = load ptr, ptr %31, align 8, !tbaa !20
  %33 = getelementptr inbounds float, ptr %32, i64 1
  %34 = load float, ptr %33, align 4, !tbaa !11
  %35 = load float, ptr %13, align 4, !tbaa !11
  %36 = fmul float %34, %35
  %37 = call noundef float @_ZSt4ceilf(float noundef %36)
  %38 = fptosi float %37 to i32
  %39 = getelementptr inbounds %"class.SoLoud::EchoFilterInstance", ptr %22, i32 0, i32 3
  store i32 %38, ptr %39, align 4, !tbaa !21
  %40 = getelementptr inbounds %"class.SoLoud::EchoFilterInstance", ptr %22, i32 0, i32 3
  %41 = load i32, ptr %40, align 4, !tbaa !21
  %42 = load i32, ptr %12, align 4, !tbaa !9
  %43 = mul i32 %41, %42
  %44 = zext i32 %43 to i64
  %45 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %44, i64 4)
  %46 = extractvalue { i64, i1 } %45, 1
  %47 = extractvalue { i64, i1 } %45, 0
  %48 = select i1 %46, i64 -1, i64 %47
  %49 = call noalias noundef nonnull ptr @_Znam(i64 noundef %48) #5
  %50 = getelementptr inbounds %"class.SoLoud::EchoFilterInstance", ptr %22, i32 0, i32 1
  store ptr %49, ptr %50, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  store i32 0, ptr %15, align 4, !tbaa !9
  br label %51

51:                                               ; preds = %64, %30
  %52 = load i32, ptr %15, align 4, !tbaa !9
  %53 = getelementptr inbounds %"class.SoLoud::EchoFilterInstance", ptr %22, i32 0, i32 3
  %54 = load i32, ptr %53, align 4, !tbaa !21
  %55 = load i32, ptr %12, align 4, !tbaa !9
  %56 = mul i32 %54, %55
  %57 = icmp ult i32 %52, %56
  br i1 %57, label %58, label %67

58:                                               ; preds = %51
  %59 = getelementptr inbounds %"class.SoLoud::EchoFilterInstance", ptr %22, i32 0, i32 1
  %60 = load ptr, ptr %59, align 8, !tbaa !17
  %61 = load i32, ptr %15, align 4, !tbaa !9
  %62 = zext i32 %61 to i64
  %63 = getelementptr inbounds float, ptr %60, i64 %62
  store float 0.000000e+00, ptr %63, align 4, !tbaa !11
  br label %64

64:                                               ; preds = %58
  %65 = load i32, ptr %15, align 4, !tbaa !9
  %66 = add i32 %65, 1
  store i32 %66, ptr %15, align 4, !tbaa !9
  br label %51, !llvm.loop !22

67:                                               ; preds = %51
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  br label %68

68:                                               ; preds = %67, %7
  %69 = getelementptr inbounds %"class.SoLoud::FilterInstance", ptr %22, i32 0, i32 3
  %70 = load ptr, ptr %69, align 8, !tbaa !20
  %71 = getelementptr inbounds float, ptr %70, i64 1
  %72 = load float, ptr %71, align 4, !tbaa !11
  %73 = load float, ptr %13, align 4, !tbaa !11
  %74 = fmul float %72, %73
  %75 = call noundef float @_ZSt4ceilf(float noundef %74)
  %76 = fptosi float %75 to i32
  %77 = getelementptr inbounds %"class.SoLoud::EchoFilterInstance", ptr %22, i32 0, i32 2
  store i32 %76, ptr %77, align 8, !tbaa !24
  %78 = getelementptr inbounds %"class.SoLoud::EchoFilterInstance", ptr %22, i32 0, i32 2
  %79 = load i32, ptr %78, align 8, !tbaa !24
  %80 = getelementptr inbounds %"class.SoLoud::EchoFilterInstance", ptr %22, i32 0, i32 3
  %81 = load i32, ptr %80, align 4, !tbaa !21
  %82 = icmp sgt i32 %79, %81
  br i1 %82, label %83, label %87

83:                                               ; preds = %68
  %84 = getelementptr inbounds %"class.SoLoud::EchoFilterInstance", ptr %22, i32 0, i32 3
  %85 = load i32, ptr %84, align 4, !tbaa !21
  %86 = getelementptr inbounds %"class.SoLoud::EchoFilterInstance", ptr %22, i32 0, i32 2
  store i32 %85, ptr %86, align 8, !tbaa !24
  br label %87

87:                                               ; preds = %83, %68
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  %88 = getelementptr inbounds %"class.SoLoud::EchoFilterInstance", ptr %22, i32 0, i32 4
  %89 = load i32, ptr %88, align 8, !tbaa !25
  %90 = getelementptr inbounds %"class.SoLoud::EchoFilterInstance", ptr %22, i32 0, i32 2
  %91 = load i32, ptr %90, align 8, !tbaa !24
  %92 = add nsw i32 %89, %91
  %93 = sub nsw i32 %92, 1
  %94 = getelementptr inbounds %"class.SoLoud::EchoFilterInstance", ptr %22, i32 0, i32 2
  %95 = load i32, ptr %94, align 8, !tbaa !24
  %96 = srem i32 %93, %95
  store i32 %96, ptr %18, align 4, !tbaa !9
  store i32 0, ptr %16, align 4, !tbaa !9
  br label %97

97:                                               ; preds = %214, %87
  %98 = load i32, ptr %16, align 4, !tbaa !9
  %99 = load i32, ptr %10, align 4, !tbaa !9
  %100 = icmp ult i32 %98, %99
  br i1 %100, label %101, label %217

101:                                              ; preds = %97
  store i32 0, ptr %17, align 4, !tbaa !9
  br label %102

102:                                              ; preds = %201, %101
  %103 = load i32, ptr %17, align 4, !tbaa !9
  %104 = load i32, ptr %12, align 4, !tbaa !9
  %105 = icmp ult i32 %103, %104
  br i1 %105, label %106, label %204

106:                                              ; preds = %102
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #6
  %107 = load i32, ptr %17, align 4, !tbaa !9
  %108 = getelementptr inbounds %"class.SoLoud::EchoFilterInstance", ptr %22, i32 0, i32 2
  %109 = load i32, ptr %108, align 8, !tbaa !24
  %110 = mul i32 %107, %109
  store i32 %110, ptr %19, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #6
  %111 = load i32, ptr %17, align 4, !tbaa !9
  %112 = load i32, ptr %11, align 4, !tbaa !9
  %113 = mul i32 %111, %112
  store i32 %113, ptr %20, align 4, !tbaa !9
  %114 = getelementptr inbounds %"class.SoLoud::FilterInstance", ptr %22, i32 0, i32 3
  %115 = load ptr, ptr %114, align 8, !tbaa !20
  %116 = getelementptr inbounds float, ptr %115, i64 3
  %117 = load float, ptr %116, align 4, !tbaa !11
  %118 = getelementptr inbounds %"class.SoLoud::EchoFilterInstance", ptr %22, i32 0, i32 1
  %119 = load ptr, ptr %118, align 8, !tbaa !17
  %120 = load i32, ptr %18, align 4, !tbaa !9
  %121 = load i32, ptr %19, align 4, !tbaa !9
  %122 = add nsw i32 %120, %121
  %123 = sext i32 %122 to i64
  %124 = getelementptr inbounds float, ptr %119, i64 %123
  %125 = load float, ptr %124, align 4, !tbaa !11
  %126 = getelementptr inbounds %"class.SoLoud::FilterInstance", ptr %22, i32 0, i32 3
  %127 = load ptr, ptr %126, align 8, !tbaa !20
  %128 = getelementptr inbounds float, ptr %127, i64 3
  %129 = load float, ptr %128, align 4, !tbaa !11
  %130 = fsub float 1.000000e+00, %129
  %131 = getelementptr inbounds %"class.SoLoud::EchoFilterInstance", ptr %22, i32 0, i32 1
  %132 = load ptr, ptr %131, align 8, !tbaa !17
  %133 = getelementptr inbounds %"class.SoLoud::EchoFilterInstance", ptr %22, i32 0, i32 4
  %134 = load i32, ptr %133, align 8, !tbaa !25
  %135 = load i32, ptr %19, align 4, !tbaa !9
  %136 = add nsw i32 %134, %135
  %137 = sext i32 %136 to i64
  %138 = getelementptr inbounds float, ptr %132, i64 %137
  %139 = load float, ptr %138, align 4, !tbaa !11
  %140 = fmul float %130, %139
  %141 = call float @llvm.fmuladd.f32(float %117, float %125, float %140)
  %142 = getelementptr inbounds %"class.SoLoud::EchoFilterInstance", ptr %22, i32 0, i32 1
  %143 = load ptr, ptr %142, align 8, !tbaa !17
  %144 = getelementptr inbounds %"class.SoLoud::EchoFilterInstance", ptr %22, i32 0, i32 4
  %145 = load i32, ptr %144, align 8, !tbaa !25
  %146 = load i32, ptr %19, align 4, !tbaa !9
  %147 = add nsw i32 %145, %146
  %148 = sext i32 %147 to i64
  %149 = getelementptr inbounds float, ptr %143, i64 %148
  store float %141, ptr %149, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #6
  %150 = load ptr, ptr %9, align 8, !tbaa !5
  %151 = load i32, ptr %16, align 4, !tbaa !9
  %152 = load i32, ptr %20, align 4, !tbaa !9
  %153 = add i32 %151, %152
  %154 = zext i32 %153 to i64
  %155 = getelementptr inbounds float, ptr %150, i64 %154
  %156 = load float, ptr %155, align 4, !tbaa !11
  %157 = getelementptr inbounds %"class.SoLoud::EchoFilterInstance", ptr %22, i32 0, i32 1
  %158 = load ptr, ptr %157, align 8, !tbaa !17
  %159 = getelementptr inbounds %"class.SoLoud::EchoFilterInstance", ptr %22, i32 0, i32 4
  %160 = load i32, ptr %159, align 8, !tbaa !25
  %161 = load i32, ptr %19, align 4, !tbaa !9
  %162 = add nsw i32 %160, %161
  %163 = sext i32 %162 to i64
  %164 = getelementptr inbounds float, ptr %158, i64 %163
  %165 = load float, ptr %164, align 4, !tbaa !11
  %166 = getelementptr inbounds %"class.SoLoud::FilterInstance", ptr %22, i32 0, i32 3
  %167 = load ptr, ptr %166, align 8, !tbaa !20
  %168 = getelementptr inbounds float, ptr %167, i64 2
  %169 = load float, ptr %168, align 4, !tbaa !11
  %170 = call float @llvm.fmuladd.f32(float %165, float %169, float %156)
  store float %170, ptr %21, align 4, !tbaa !11
  %171 = load float, ptr %21, align 4, !tbaa !11
  %172 = getelementptr inbounds %"class.SoLoud::EchoFilterInstance", ptr %22, i32 0, i32 1
  %173 = load ptr, ptr %172, align 8, !tbaa !17
  %174 = getelementptr inbounds %"class.SoLoud::EchoFilterInstance", ptr %22, i32 0, i32 4
  %175 = load i32, ptr %174, align 8, !tbaa !25
  %176 = load i32, ptr %19, align 4, !tbaa !9
  %177 = add nsw i32 %175, %176
  %178 = sext i32 %177 to i64
  %179 = getelementptr inbounds float, ptr %173, i64 %178
  store float %171, ptr %179, align 4, !tbaa !11
  %180 = load float, ptr %21, align 4, !tbaa !11
  %181 = load ptr, ptr %9, align 8, !tbaa !5
  %182 = load i32, ptr %16, align 4, !tbaa !9
  %183 = load i32, ptr %20, align 4, !tbaa !9
  %184 = add i32 %182, %183
  %185 = zext i32 %184 to i64
  %186 = getelementptr inbounds float, ptr %181, i64 %185
  %187 = load float, ptr %186, align 4, !tbaa !11
  %188 = fsub float %180, %187
  %189 = getelementptr inbounds %"class.SoLoud::FilterInstance", ptr %22, i32 0, i32 3
  %190 = load ptr, ptr %189, align 8, !tbaa !20
  %191 = getelementptr inbounds float, ptr %190, i64 0
  %192 = load float, ptr %191, align 4, !tbaa !11
  %193 = load ptr, ptr %9, align 8, !tbaa !5
  %194 = load i32, ptr %16, align 4, !tbaa !9
  %195 = load i32, ptr %20, align 4, !tbaa !9
  %196 = add i32 %194, %195
  %197 = zext i32 %196 to i64
  %198 = getelementptr inbounds float, ptr %193, i64 %197
  %199 = load float, ptr %198, align 4, !tbaa !11
  %200 = call float @llvm.fmuladd.f32(float %188, float %192, float %199)
  store float %200, ptr %198, align 4, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  br label %201

201:                                              ; preds = %106
  %202 = load i32, ptr %17, align 4, !tbaa !9
  %203 = add i32 %202, 1
  store i32 %203, ptr %17, align 4, !tbaa !9
  br label %102, !llvm.loop !26

204:                                              ; preds = %102
  %205 = getelementptr inbounds %"class.SoLoud::EchoFilterInstance", ptr %22, i32 0, i32 4
  %206 = load i32, ptr %205, align 8, !tbaa !25
  store i32 %206, ptr %18, align 4, !tbaa !9
  %207 = getelementptr inbounds %"class.SoLoud::EchoFilterInstance", ptr %22, i32 0, i32 4
  %208 = load i32, ptr %207, align 8, !tbaa !25
  %209 = add nsw i32 %208, 1
  %210 = getelementptr inbounds %"class.SoLoud::EchoFilterInstance", ptr %22, i32 0, i32 2
  %211 = load i32, ptr %210, align 8, !tbaa !24
  %212 = srem i32 %209, %211
  %213 = getelementptr inbounds %"class.SoLoud::EchoFilterInstance", ptr %22, i32 0, i32 4
  store i32 %212, ptr %213, align 8, !tbaa !25
  br label %214

214:                                              ; preds = %204
  %215 = load i32, ptr %16, align 4, !tbaa !9
  %216 = add i32 %215, 1
  store i32 %216, ptr %16, align 4, !tbaa !9
  br label %97, !llvm.loop !27

217:                                              ; preds = %97
  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
  ret void
}

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

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

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

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

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

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

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 = { 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 #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { builtin allocsize(0) }
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++ 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, !6, i64 32}
!18 = !{!"_ZTSN6SoLoud18EchoFilterInstanceE", !19, i64 0, !6, i64 32, !10, i64 40, !10, i64 44, !10, i64 48}
!19 = !{!"_ZTSN6SoLoud14FilterInstanceE", !10, i64 8, !10, i64 12, !6, i64 16, !6, i64 24}
!20 = !{!19, !6, i64 16}
!21 = !{!18, !10, i64 44}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}
!24 = !{!18, !10, i64 40}
!25 = !{!18, !10, i64 48}
!26 = distinct !{!26, !23}
!27 = distinct !{!27, !23}


; 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 @_ZN6SoLoud18EchoFilterInstance6filterEPfjjjfd(ptr noundef nonnull align 8 dereferenceable(52) %0, ptr nocapture noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, float noundef %5, double noundef %6) unnamed_addr #0 align 2 {
  %8 = load ptr, ptr %0, align 8, !tbaa !5
  %9 = getelementptr inbounds i8, ptr %8, i64 8
  %10 = load ptr, ptr %9, align 8
  tail call void %10(ptr noundef nonnull align 8 dereferenceable(32) %0, double noundef %6)
  %11 = getelementptr inbounds i8, ptr %0, i64 32
  %12 = load ptr, ptr %11, align 8, !tbaa !8
  %13 = icmp eq ptr %12, null
  br i1 %13, label %14, label %.loopexit

14:                                               ; preds = %7
  %15 = getelementptr inbounds i8, ptr %0, i64 16
  %16 = load ptr, ptr %15, align 8, !tbaa !14
  %17 = getelementptr inbounds i8, ptr %16, i64 4
  %18 = load float, ptr %17, align 4, !tbaa !15
  %19 = fmul float %18, %5
  %20 = tail call noundef float @_ZSt4ceilf(float noundef %19)
  %21 = fptosi float %20 to i32
  %22 = getelementptr inbounds i8, ptr %0, i64 44
  store i32 %21, ptr %22, align 4, !tbaa !17
  %23 = mul i32 %21, %4
  %24 = zext i32 %23 to i64
  %25 = shl nuw nsw i64 %24, 2
  %26 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %25) #6
  store ptr %26, ptr %11, align 8, !tbaa !8
  %.not = icmp eq i32 %23, 0
  br i1 %.not, label %.loopexit, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %14
  tail call void @llvm.memset.p0.i64(ptr nonnull align 4 %26, i8 0, i64 %25, i1 false), !tbaa !15
  br label %.loopexit

.loopexit:                                        ; preds = %.lr.ph.preheader, %14, %7
  %27 = getelementptr inbounds i8, ptr %0, i64 16
  %28 = load ptr, ptr %27, align 8, !tbaa !14
  %29 = getelementptr inbounds i8, ptr %28, i64 4
  %30 = load float, ptr %29, align 4, !tbaa !15
  %31 = fmul float %30, %5
  %32 = tail call noundef float @_ZSt4ceilf(float noundef %31)
  %33 = fptosi float %32 to i32
  %34 = getelementptr inbounds i8, ptr %0, i64 40
  %35 = getelementptr inbounds i8, ptr %0, i64 44
  %36 = load i32, ptr %35, align 4, !tbaa !17
  %spec.store.select = tail call i32 @llvm.smin.i32(i32 %36, i32 %33)
  store i32 %spec.store.select, ptr %34, align 8
  %37 = getelementptr inbounds i8, ptr %0, i64 48
  %.not44 = icmp eq i32 %2, 0
  br i1 %.not44, label %88, label %.preheader.lr.ph

.preheader.lr.ph:                                 ; preds = %.loopexit
  %.promoted = load i32, ptr %37, align 8, !tbaa !18
  %.not45 = icmp eq i32 %4, 0
  %38 = load ptr, ptr %27, align 8
  %39 = getelementptr inbounds i8, ptr %38, i64 12
  %40 = load ptr, ptr %11, align 8
  %41 = getelementptr inbounds i8, ptr %38, i64 8
  br i1 %.not45, label %.preheader.preheader, label %.preheader.us.preheader

.preheader.preheader:                             ; preds = %.preheader.lr.ph
  %xtraiter = and i32 %2, 3
  %42 = icmp ult i32 %2, 4
  br i1 %42, label %._crit_edge43.loopexit.unr-lcssa, label %.preheader.preheader.new

.preheader.preheader.new:                         ; preds = %.preheader.preheader
  %unroll_iter = and i32 %2, -4
  br label %.preheader

.preheader.us.preheader:                          ; preds = %.preheader.lr.ph
  %43 = add i32 %spec.store.select, -1
  %44 = add i32 %43, %.promoted
  %45 = srem i32 %44, %spec.store.select
  br label %.preheader.us

.preheader.us:                                    ; preds = %.preheader.us.preheader, %._crit_edge.us
  %.03442.us = phi i32 [ %75, %._crit_edge.us ], [ 0, %.preheader.us.preheader ]
  %.03641.us = phi i32 [ %46, %._crit_edge.us ], [ %45, %.preheader.us.preheader ]
  %46 = phi i32 [ %74, %._crit_edge.us ], [ %.promoted, %.preheader.us.preheader ]
  br label %47

47:                                               ; preds = %.preheader.us, %47
  %.03539.us = phi i32 [ 0, %.preheader.us ], [ %72, %47 ]
  %48 = mul i32 %.03539.us, %spec.store.select
  %49 = mul i32 %.03539.us, %3
  %50 = load float, ptr %39, align 4, !tbaa !15
  %51 = add nsw i32 %48, %.03641.us
  %52 = sext i32 %51 to i64
  %53 = getelementptr inbounds float, ptr %40, i64 %52
  %54 = load float, ptr %53, align 4, !tbaa !15
  %55 = fsub float 1.000000e+00, %50
  %56 = add nsw i32 %46, %48
  %57 = sext i32 %56 to i64
  %58 = getelementptr inbounds float, ptr %40, i64 %57
  %59 = load float, ptr %58, align 4, !tbaa !15
  %60 = fmul float %55, %59
  %61 = tail call float @llvm.fmuladd.f32(float %50, float %54, float %60)
  store float %61, ptr %58, align 4, !tbaa !15
  %62 = add i32 %49, %.03442.us
  %63 = zext i32 %62 to i64
  %64 = getelementptr inbounds float, ptr %1, i64 %63
  %65 = load float, ptr %64, align 4, !tbaa !15
  %66 = load float, ptr %41, align 4, !tbaa !15
  %67 = tail call float @llvm.fmuladd.f32(float %61, float %66, float %65)
  store float %67, ptr %58, align 4, !tbaa !15
  %68 = load float, ptr %64, align 4, !tbaa !15
  %69 = fsub float %67, %68
  %70 = load float, ptr %38, align 4, !tbaa !15
  %71 = tail call float @llvm.fmuladd.f32(float %69, float %70, float %68)
  store float %71, ptr %64, align 4, !tbaa !15
  %72 = add nuw i32 %.03539.us, 1
  %exitcond.not = icmp eq i32 %72, %4
  br i1 %exitcond.not, label %._crit_edge.us, label %47, !llvm.loop !19

._crit_edge.us:                                   ; preds = %47
  %73 = add nsw i32 %46, 1
  %74 = srem i32 %73, %spec.store.select
  %75 = add nuw i32 %.03442.us, 1
  %exitcond49.not = icmp eq i32 %75, %2
  br i1 %exitcond49.not, label %._crit_edge43, label %.preheader.us, !llvm.loop !21

.preheader:                                       ; preds = %.preheader, %.preheader.preheader.new
  %76 = phi i32 [ %.promoted, %.preheader.preheader.new ], [ %84, %.preheader ]
  %niter = phi i32 [ 0, %.preheader.preheader.new ], [ %niter.next.3, %.preheader ]
  %77 = add nsw i32 %76, 1
  %78 = srem i32 %77, %spec.store.select
  %79 = add nsw i32 %78, 1
  %80 = srem i32 %79, %spec.store.select
  %81 = add nsw i32 %80, 1
  %82 = srem i32 %81, %spec.store.select
  %83 = add nsw i32 %82, 1
  %84 = srem i32 %83, %spec.store.select
  %niter.next.3 = add i32 %niter, 4
  %niter.ncmp.3 = icmp eq i32 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %._crit_edge43.loopexit.unr-lcssa, label %.preheader, !llvm.loop !21

._crit_edge43.loopexit.unr-lcssa:                 ; preds = %.preheader, %.preheader.preheader
  %.lcssa.ph = phi i32 [ poison, %.preheader.preheader ], [ %84, %.preheader ]
  %.unr = phi i32 [ %.promoted, %.preheader.preheader ], [ %84, %.preheader ]
  %lcmp.mod.not = icmp eq i32 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge43, label %.preheader.epil

.preheader.epil:                                  ; preds = %._crit_edge43.loopexit.unr-lcssa, %.preheader.epil
  %85 = phi i32 [ %87, %.preheader.epil ], [ %.unr, %._crit_edge43.loopexit.unr-lcssa ]
  %epil.iter = phi i32 [ %epil.iter.next, %.preheader.epil ], [ 0, %._crit_edge43.loopexit.unr-lcssa ]
  %86 = add nsw i32 %85, 1
  %87 = srem i32 %86, %spec.store.select
  %epil.iter.next = add i32 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i32 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %._crit_edge43, label %.preheader.epil, !llvm.loop !22

._crit_edge43:                                    ; preds = %._crit_edge.us, %._crit_edge43.loopexit.unr-lcssa, %.preheader.epil
  %.us-phi = phi i32 [ %.lcssa.ph, %._crit_edge43.loopexit.unr-lcssa ], [ %87, %.preheader.epil ], [ %74, %._crit_edge.us ]
  store i32 %.us-phi, ptr %37, align 8, !tbaa !18
  br label %88

88:                                               ; preds = %._crit_edge43, %.loopexit
  ret void
}

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

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smin.i32(i32, i32) #4

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

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 = { 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 #2 = { 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 #3 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #6 = { builtin allocsize(0) }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !13, i64 32}
!9 = !{!"_ZTSN6SoLoud18EchoFilterInstanceE", !10, i64 0, !13, i64 32, !11, i64 40, !11, i64 44, !11, i64 48}
!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 = !{!10, !13, i64 16}
!15 = !{!16, !16, i64 0}
!16 = !{!"float", !12, i64 0}
!17 = !{!9, !11, i64 44}
!18 = !{!9, !11, i64 48}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = distinct !{!21, !20}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.unroll.disable"}


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